rtl.h (get_pool_constant, [...]): Replace rtx parameters with const_rtx parameters.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4 with const_rtx parameters.
5 * varasm.c (get_pool_constant): Likewise.
6 * rtlanal.c (rtx_referenced_p_1): Delete.
7 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8 Assert that the rtx we're looking for is nonnull. Allow searches
9 for constant pool SYMBOL_REFs.
10
11 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12
13 * reload1.c: Include rtl-iter.h.
14 (note_reg_elim_costly): Turn from being a for_each_rtx callback
15 to being a function that examines each subrtx itself.
16 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
17
18 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19
20 * regcprop.c (cprop_find_used_regs_1): Delete.
21 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22
23 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * regcprop.c: Include rtl-iter.h.
26 (kill_value): Take a const_rtx.
27 (kill_autoinc_value): Turn from being a for_each_rtx callback
28 to being a function that examines each subrtx itself.
29 (copyprop_hardreg_forward_1): Update accordingly.
30
31 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
32
33 * reg-stack.c: Include rtl-iter.h.
34 (subst_stack_regs_in_debug_insn): Delete.
35 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
36 instead of for_each_rtx.
37
38 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
39
40 * lower-subreg.c (find_decomposable_subregs): Turn from being
41 a for_each_rtx callback to being a function that examines each
42 subrtx itself. Remove handling of null rtxes.
43 (decompose_multiword_subregs): Update accordingly.
44
45 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
46
47 * lower-subreg.c (adjust_decomposed_uses): Delete.
48 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
49 Remove handling of null rtxes.
50
51 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
52
53 * lower-subreg.c: Include rtl-iter.h.
54 (resolve_subreg_use): Turn from being a for_each_rtx callback
55 to being a function that examines each subrtx itself. Remove
56 handling of null rtxes.
57 (resolve_reg_notes, resolve_simple_move): Update accordingly.
58 (decompose_multiword_subregs): Likewise.
59
60 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
61
62 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
63 to being a function that examines each subrtx itself.
64 (simplify_using_condition, simplify_using_initial_values): Update
65 accordingly.
66
67 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
68
69 * loop-iv.c: Include rtl-iter.h.
70 (find_single_def_src): New function.
71 (replace_single_def_regs): Turn from being a for_each_rtx callback
72 to being a function that examines each subrtx itself.
73 (replace_in_expr, simplify_using_initial_values): Update accordingly.
74
75 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
76
77 * jump.c (eh_returnjump_p_1): Delete.
78 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
79 Remove handling of null rtxes.
80
81 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
82
83 * jump.c: Include rtl-iter.h.
84 (returnjump_p_1): Delete.
85 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
86 Remove handling of null rtxes.
87
88 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
89
90 * ira.c: Include rtl-iter.h.
91 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
92 to being a function that examines each subrtx itself. Remove
93 handling of null rtxes.
94 (update_equiv_regs): Update call accordingly.
95
96 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
97
98 * fwprop.c: Include rtl-iter.h.
99 (varying_mem_p): Turn from being a for_each_rtx callback to being
100 a function that examines each subrtx itself.
101 (propagate_rtx): Update accordingly.
102
103 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
104
105 * function.c: Include rtl-iter.h
106 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
107 callback to being a function that examines each subrtx itself.
108 Return the changed flag.
109 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
110 (instantiate_virtual_regs): Update calls accordingly.
111
112 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
113
114 * final.c: Include rtl-iter.h.
115 (mark_symbol_ref_as_used): Delete.
116 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
117 for_each_rtx.
118
119 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
120
121 * emit-rtl.c: Include rtl-iter.h.
122 (find_auto_inc): Turn from being a for_each_rtx callback to being
123 a function that examines each subrtx itself. Assume the first operand
124 to an RTX_AUTOINC is the automodified register.
125 (try_split): Update call accordingly.
126
127 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
128
129 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
130 Return a bool, inverting the result so that 0/false means "not ok".
131 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
132 subrtxes of a CONST.
133 (mem_loc_descriptor, add_const_value_attribute)
134 (resolve_addr_in_expr): Update calls accordingly.
135
136 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
137
138 * dwarf2out.c: Include rtl-iter.h.
139 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
140 Remove unused data parameter. Return a bool, inverting the result
141 so that 0/false means "not ok".
142 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
143 instead of for_each_rtx.
144
145 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
146
147 * dse.c: Include rtl-iter.h.
148 (check_mem_read_rtx): Change void * parameter to real type.
149 Remove return value.
150 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
151 for_each_rtx. Don't handle null rtxes.
152
153 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
154
155 * df-problems.c: Include rtl-iter.h.
156 (find_memory): Turn from being a for_each_rtx callback to being
157 a function that examines each subrtx itself. Continue to look for
158 volatile references even after a nonvolatile one has been found.
159 (can_move_insns_across): Update calls accordingly.
160
161 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
162
163 * ddg.c (walk_mems_2, walk_mems_1): Delete.
164 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
165 to iterate over subrtxes. Return a bool rather than an int.
166
167 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
168
169 * ddg.c: Include rtl-iter.h.
170 (mark_mem_use_1): Rename to...
171 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
172 instead of for_each_rtx.
173 (mem_read_insn_p): Update accordingly.
174
175 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
176
177 * cse.c (change_cc_mode_args): Delete.
178 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
179 a function that examines each subrtx itself. Take the fields of
180 change_cc_mode_args as argument and return void.
181 (cse_change_cc_mode_insn): Update calls accordingly.
182
183 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
184
185 * cse.c (is_dead_reg): Change argument to const_rtx.
186 (dead_debug_insn_data): Delete.
187 (is_dead_debug_insn): Expand commentary. Turn from being a
188 for_each_rtx callback to being a function that examines
189 each subrtx itself. Take the fields of dead_debug_insn_data
190 as argument.
191 (delete_trivially_dead_insns): Update call accordingly.
192
193 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
194
195 * cse.c (check_for_label_ref): Move earlier in file. Turn from
196 being a for_each_rtx callback to being a function that examines
197 each subrtx itself.
198 (cse_extended_basic_block): Update call accordingly.
199
200 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
201
202 * cse.c (check_dependence_data): Delete.
203 (check_dependence): Change from being a for_each_rtx callback to being
204 a function that examines all subrtxes itself. Don't handle null rtxes.
205 (invalidate): Update call accordingly.
206
207 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
208
209 * cse.c: Include rtl-iter.h.
210 (approx_reg_cost_1): Delete.
211 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
212 Don't handle null rtxes.
213
214 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
215
216 * cfgcleanup.c: Include rtl-iter.h.
217 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
218 to being a function that examines each subrtx itself.
219 (thread_jump): Update accordingly.
220
221 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
222
223 * combine-stack-adj.c: Include rtl-iter.h.
224 (record_stack_refs_data): Delete.
225 (record_stack_refs): Turn from being a for_each_rtx callback
226 to being a function that examines each subrtx itself.
227 Take a pointer to the reflist. Invert sense of return value
228 so that true means success and false means failure. Don't
229 handle null rtxes.
230 (combine_stack_adjustments_for_block): Update accordingly.
231
232 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
233
234 * combine.c (record_truncated_value): Turn from being a for_each_rtx
235 callback to a function that takes an rtx and returns a bool
236 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
237 for_each_rtx.
238
239 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
240
241 * combine.c: Include rtl-iter.h.
242 (unmentioned_reg_p_1): Delete.
243 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
244 Don't handle null rtxes.
245
246 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
247
248 * calls.c: Include rtl-iter.h.
249 (internal_arg_pointer_based_exp_1): Delete.
250 (internal_arg_pointer_based_exp): Take a const_rtx.
251 Use FOR_EACH_SUBRTX to iterate over subrtxes.
252
253 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
254
255 * caller-save.c: Include rtl-iter.h.
256 (add_used_regs_1): Delete.
257 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
258 to iterate over subrtxes. Assert that any remaining pseudos
259 have been spilled.
260
261 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
262
263 * bt-load.c: Include rtl-iter.h.
264 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
265 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
266 to iterate over subrtxes.
267 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
268 find_btr_use rather than btr_referenced_p.
269
270 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
271
272 * alias.c: Include rtl-iter.h.
273 (refs_newer_value_cb): Delete.
274 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
275
276 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
277
278 * rtl-iter.h: New file.
279 * rtlanal.c: Include it.
280 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
281 (generic_subrtx_iterator <T>::add_single_to_queue)
282 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
283 (generic_subrtx_iterator <T>::free_array): New functions.
284 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
285 (generic_subrtx_iterator <const_rtx_accessor>)
286 (generic_subrtx_iterator <rtx_var_accessor>
287 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
288 (setup_reg_subrtx_bounds): New function.
289 (init_rtlanal): Call it.
290
291 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
292
293 PR target/62261
294 * config/sh/sh.md (ashlsi3): Handle negative shift count for
295 TARGET_SHMEDIA.
296 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
297
298 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
299
300 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
301
302 2014-08-27 David Malcolm <dmalcolm@redhat.com>
303
304 * rtl.h (JUMP_LABEL_AS_INSN): New.
305
306 2014-08-27 David Malcolm <dmalcolm@redhat.com>
307
308 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
309 rtx_expr_list **.
310 (alloc_EXPR_LIST): Strengthen return type from rtx to
311 rtx_expr_list *.
312 (remove_free_EXPR_LIST_node): Likewise for param.
313 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
314 from rtx to rtx_expr_list *.
315 * sched-int.h (struct deps_desc): Strengthen fields
316 "pending_read_mems" and "pending_write_mems" from rtx to
317 rtx_expr_list *.
318
319 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
320 rtx to rtx_expr_list *.
321 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
322 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
323 rtx_expr_list **.
324 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
325 from rtx to rtx_expr_list *.
326 * loop-iv.c (simplify_using_initial_values): Strengthen local
327 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
328 "pnote_next" from rtx * to rtx_expr_list **.
329 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
330 param "exprp" from rtx * to rtx_expr_list **.
331 (add_insn_mem_dependence): Strengthen local "mem_list" from
332 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
333 to rtx_expr_list *.
334 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
335 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
336 param "old_mems_p" from rtx * to rtx_expr_list **.
337 * var-tracking.c (struct adjust_mem_data): Strengthen field
338 "side_effects" from rtx to rtx_expr_list *.
339 (adjust_insn): Replace NULL_RTX with NULL when assigning to
340 rtx_expr_list *.
341 (prepare_call_arguments): Likewise.
342
343 2014-08-27 David Malcolm <dmalcolm@redhat.com>
344
345 * function.h (struct rtl_data): Strengthen field
346 "x_stack_slot_list" from rtx to rtx_expr_list *.
347
348 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
349 when assigning to stack_slot_list.
350
351 2014-08-27 David Malcolm <dmalcolm@redhat.com>
352
353 * function.h (struct rtl_data): Strengthen field
354 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
355 * rtl.h (remove_node_from_expr_list): Strengthen second param from
356 rtx * to rtx_expr_list **.
357
358 * cfgbuild.c (make_edges): In loop over
359 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
360 rtx_expr_list *, and use methods of the latter class to clarify
361 the code.
362 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
363 rtx_expr_list *, and use methods of the latter class to clarify
364 the code.
365 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
366 * reload1.c (set_initial_label_offsets): Likewise for local "x".
367 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
368 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
369 to rtx_expr_list *. Use methods of the latter class to clarify
370 the code.
371
372 2014-08-27 David Malcolm <dmalcolm@redhat.com>
373
374 * function.h (struct expr_status): Strengthen field
375 "x_forced_labels" from rtx to rtx_expr_list *.
376
377 * cfgbuild.c (make_edges): Split local "x" into two locals,
378 strengthening one from rtx to rtx_expr_list *, and using methods
379 of said class.
380 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
381 loop over forced_labels, introduce strengthen it from rtx to
382 rtx_expr_list *, using methods to clarify the code.
383 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
384 to rtx_expr_list *, using methods of said class to clarify the
385 code.
386 * reload1.c (set_initial_label_offsets): Split local "x" into two
387 per-loop variables, strengthening the first from rtx to
388 rtx_expr_list * and using methods.
389
390 2014-08-27 David Malcolm <dmalcolm@redhat.com>
391
392 * coretypes.h (class rtx_expr_list): Add forward declaration.
393 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
394 * gengenrtl.c (special_rtx): Add EXPR_LIST.
395 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
396 invariant: GET_CODE (X) == EXPR_LIST.
397 (is_a_helper <rtx_expr_list *>::test): New.
398 (rtx_expr_list::next): New.
399 (rtx_expr_list::element): New.
400 (gen_rtx_EXPR_LIST): New.
401
402 2014-08-27 David Malcolm <dmalcolm@redhat.com>
403
404 * varasm.c (mark_constants): Convert a GET_CODE check into a
405 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
406 Use methods of rtx_sequence to clarify the code.
407
408 2014-08-27 David Malcolm <dmalcolm@redhat.com>
409
410 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
411 local "seq" via a checked cast, and use methods of rtx_sequence
412 to simplify the code.
413
414 2014-08-27 David Malcolm <dmalcolm@redhat.com>
415
416 * resource.c (mark_referenced_resources): Strengthen local
417 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
418 using methods of rtx_sequence to clarify the code.
419 (find_dead_or_set_registers): Within the switch statement, convert
420 a GET_CODE check to a dyn_cast, introducing local "seq". Within
421 the JUMP_P handling, introduce another local "seq", adding a
422 checked cast to rtx_sequence *. In both cases, use methods of
423 rtx_sequence to clarify the code.
424 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
425 via a checked cast, and use methods of rtx_sequence to simplify
426 the code.
427
428 2014-08-27 David Malcolm <dmalcolm@redhat.com>
429
430 * reorg.c (redundant_insn): In two places in the function, replace
431 a check of GET_CODE with a dyn_cast, introducing local "seq", and
432 usings methods of rtx_sequence to clarify the code.
433
434 2014-08-27 David Malcolm <dmalcolm@redhat.com>
435
436 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
437 local "seq" with a checked cast, and use methods of rtx_sequence
438 to clarify the code.
439
440 2014-08-27 David Malcolm <dmalcolm@redhat.com>
441
442 * function.c (contains): Introduce local "seq" for PATTERN (insn),
443 with a checked cast, in the region for where we know it's a
444 SEQUENCE. Use methods of rtx_sequence.
445
446 2014-08-27 David Malcolm <dmalcolm@redhat.com>
447
448 * final.c (get_attr_length_1): Replace GET_CODE check with a
449 dyn_cast, introducing local "seq" and the use of methods of
450 rtx_sequence.
451 (shorten_branches): Likewise, introducing local "body_seq".
452 Strengthen local "inner_insn" from rtx to rtx_insn *.
453 (reemit_insn_block_notes): Replace GET_CODE check with a
454 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
455 Use methods of rtx_sequence.
456 (final_scan_insn): Likewise, introducing local "seq" for when
457 "body" is known to be a SEQUENCE, using its methods.
458
459 2014-08-27 David Malcolm <dmalcolm@redhat.com>
460
461 * except.c (can_throw_external): Strengthen local "seq" from rtx
462 to rtx_sequence *. Use methods of rtx_sequence.
463 (insn_nothrow_p): Likewise.
464
465 2014-08-27 David Malcolm <dmalcolm@redhat.com>
466
467 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
468 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
469 Use methods of rtx_sequence.
470 (scan_trace): Likewise for local "pat".
471
472 2014-08-27 David Malcolm <dmalcolm@redhat.com>
473
474 * coretypes.h (class rtx_sequence): Add forward declaration.
475 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
476 invariant: GET_CODE (X) == SEQUENCE.
477 (is_a_helper <rtx_sequence *>::test): New.
478 (is_a_helper <const rtx_sequence *>::test): New.
479 (rtx_sequence::len): New.
480 (rtx_sequence::element): New.
481 (rtx_sequence::insn): New.
482
483 2014-08-27 David Malcolm <dmalcolm@redhat.com>
484
485 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
486 rtx_insn_list **.
487 (alloc_INSN_LIST): Strengthen return type from rtx to
488 rtx_insn_list *.
489 (copy_INSN_LIST): Likewise for return type and param.
490 (concat_INSN_LIST): Likewise for both params and return type.
491 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
492 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
493 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
494 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
495
496 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
497 "implicit_sets", "control_uses", "clobbers" from rtx to
498 rtx_insn_list *.
499 (struct deps_desc): Likewise for fields "pending_read_insns",
500 "pending_write_insns", "pending_jump_insns",
501 "last_pending_memory_flush", "last_function_call",
502 "last_function_call_may_noreturn", "sched_before_next_call",
503 "sched_before_next_jump".
504 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
505 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
506
507 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
508 from rtx to rtx_insn_list *.
509 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
510 rtx_insn_list *.
511
512 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
513 to rtx_insn_list **.
514 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
515 rtx_insn_list *.
516 (queue_insn): Likewise for local "link".
517 (struct haifa_saved_data): Strengthen field "insn_queue" from
518 rtx * to rtx_insn_list **.
519 (save_backtrack_point): Update allocation of save->insn_queue to
520 reflect the strengthening of elements from rtx to rtx_insn_list *.
521 (queue_to_ready): Strengthen local "link" from rtx to
522 rtx_insn_list *; use methods "next" and "insn" when traversing the
523 list.
524 (early_queue_to_ready): Likewise for locals "link", "next_link",
525 "prev_link".
526 (schedule_block): Update allocation of insn_queue to reflect the
527 strengthening of elements from rtx to rtx_insn_list *. Strengthen
528 local "link" from rtx to rtx_insn_list *, and use methods when
529 working it.
530 (add_to_speculative_block): Strengthen locals "twins" and
531 "next_node" from rtx to rtx_insn_list *, and use methods when
532 working with them. Strengthen local "twin" from rtx to
533 rtx_insn *, eliminating a checked cast.
534 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
535 from rtx to rtx_insn_list *, and use methods when working with
536 them.
537
538 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
539 from rtx to rtx_insn_list *, adding a checked cast.
540 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
541 rtx_insn_list **.
542 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
543 "newlink" from rtx to rtx_insn_list *. Strengthen local
544 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
545 from rtx to rtx_insn *.
546 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
547 from rtx to rtx_insn_list *. Use methods of the latter class.
548 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
549 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
550 (remove_free_INSN_LIST_node): Strengthen return type and local
551 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
552 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
553 rtx_insn_list *, using "insn" method.
554
555 * sched-deps.c (add_dependence_list): Strengthen param "list"
556 from rtx to rtx_insn_list *, and use methods when working with it.
557 (add_dependence_list_and_free): Strengthen param "listp" from
558 rtx * to rtx_insn_list **.
559 (remove_from_dependence_list): Strenghten param "listp" from rtx *
560 to rtx_insn_list **, and use methods when working with *listp.
561 (remove_from_both_dependence_lists): Strengthen param "listp" from
562 rtx * to rtx_insn_list **
563 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
564 to rtx_insn_list **. Eliminate local "link", in favor of two new
565 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
566 respectively.
567 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
568 by introducing local "cond_deps".
569 (remove_from_deps): Strengthen param "insn" from rtx to
570 rtx_insn *.
571
572 * sched-rgn.c (concat_insn_mem_list): Strengthen param
573 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
574 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
575 Use methods of rtx_insn_list.
576
577 * store-motion.c (struct st_expr): Strengthen fields
578 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
579 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
580 rtx_insn_list *.
581 (find_moveable_store): Split out "tmp" into multiple more-tightly
582 scoped locals. Use methods of rtx_insn_list *.
583 (compute_store_table): Strengthen local "tmp" from rtx to
584 rtx_insn *. Use methods of rtx_insn_list *.
585
586 2014-08-27 David Malcolm <dmalcolm@redhat.com>
587
588 * coretypes.h (class rtx_insn_list): Add forward declaration.
589 * rtl.h (class rtx_insn_list): New subclass of rtx_def
590 (is_a_helper <rtx_insn_list *>::test): New.
591 (rtx_insn_list::next): New.
592 (rtx_insn_list::insn): New.
593 (gen_rtx_INSN_LIST): Add prototype.
594 * emit-rtl.c (gen_rtx_INSN_LIST): New.
595 * gengenrtl.c (special_rtx): Add INSN_LIST.
596
597 2014-08-27 David Malcolm <dmalcolm@redhat.com>
598
599 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
600 "prev" from rtx to rtx_insn *.
601
602 2014-08-27 David Malcolm <dmalcolm@redhat.com>
603
604 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
605 functions. Require merely an rtx for now, not an rtx_insn *.
606 (BLOCK_FOR_INSN): Likewise.
607 (INSN_LOCATION): Likewise.
608 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
609
610 2014-08-27 David Malcolm <dmalcolm@redhat.com>
611
612 * rtl.h (PATTERN): Convert this macro into a pair of inline
613 functions, for now, requiring const_rtx and rtx.
614
615 2014-08-27 David Malcolm <dmalcolm@redhat.com>
616
617 * target.def (unwind_emit): Strengthen param "insn" from rtx to
618 rtx_insn *.
619 (final_postscan_insn): Likewise.
620 (adjust_cost): Likewise.
621 (adjust_priority): Likewise.
622 (variable_issue): Likewise.
623 (macro_fusion_pair_p): Likewise.
624 (dfa_post_cycle_insn): Likewise.
625 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
626 (first_cycle_multipass_issue): Likewise.
627 (dfa_new_cycle): Likewise.
628 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
629 (speculate_insn): Likewise for param "insn".
630 (gen_spec_check): Likewise for params "insn" and "label".
631 (get_insn_spec_ds): Likewise for param "insn".
632 (get_insn_checked_ds): Likewise.
633 (dispatch_do): Likewise.
634 (dispatch): Likewise.
635 (cannot_copy_insn_p): Likewise.
636 (invalid_within_doloop): Likewise.
637 (legitimate_combined_insn): Likewise.
638 (needed): Likewise.
639 (after): Likewise.
640
641 * doc/tm.texi: Automatically updated to reflect changes to
642 target.def.
643
644 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
645 working with insn.
646 (schedule_block): Likewise.
647 (sched_init): Likewise.
648 (sched_speculate_insn): Strengthen param "insn" from rtx to
649 rtx_insn *.
650 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
651 working with insn.
652 * hooks.c (hook_bool_rtx_true): Rename to...
653 hook_bool_rtx_insn_true): ...this, and strengthen first param from
654 rtx to rtx_insn *.
655 (hook_constcharptr_const_rtx_null): Rename to...
656 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
657 first param from const_rtx to const 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
665 * hooks.h (hook_bool_rtx_true): Rename to...
666 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
667 rtx to rtx_insn *.
668 (hook_bool_rtx_int_false): Rename to...
669 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
670 param from rtx to rtx_insn *.
671 (hook_void_rtx_int): Rename to...
672 (hook_void_rtx_insn_int): ...this, and strengthen first param from
673 rtx to rtx_insn *.
674 (hook_constcharptr_const_rtx_null): Rename to...
675 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
676 first param from const_rtx to const rtx_insn *.
677
678 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
679 and local "prev" from rtx to rtx_insn *.
680
681 * sched-int.h (sched_speculate_insn): Strengthen first param from
682 rtx to rtx_insn *.
683
684 * sel-sched.c (create_speculation_check): Likewise for local "label".
685 * targhooks.c (default_invalid_within_doloop): Strengthen param
686 "insn" from const_rtx to const rtx_insn *.
687 * targhooks.h (default_invalid_within_doloop): Strengthen param
688 from const_rtx to const rtx_insn *.
689
690 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
691 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
692
693 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
694 "insn".
695 (arc_invalid_within_doloop): Likewise, with const.
696
697 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
698 (arm_cannot_copy_insn_p): Likewise for param "insn".
699 (arm_unwind_emit): Likewise.
700
701 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
702 "dep_insn".
703
704 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
705 (c6x_variable_issue): Likewise. Removed now-redundant checked
706 cast.
707 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
708
709 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
710 Likewise for param "insn".
711 (epiphany_mode_after): Likewise.
712 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
713 params "insn", "dep_insn".
714 (epiphany_mode_needed): Likewise for param "insn".
715 (epiphany_mode_after): Likewise.
716
717 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
718 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
719 (ix86_avx_u128_mode_needed): Likewise.
720 (ix86_i387_mode_needed): Likewise.
721 (ix86_mode_needed): Likewise.
722 (ix86_avx_u128_mode_after): Likewise.
723 (ix86_mode_after): Likewise.
724 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
725 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
726 (ix86_adjust_priority): Likewise for param "insn".
727 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
728 (do_dispatch): Likewise.
729 (has_dispatch): Likewise.
730 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
731
732 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
733 reflect renaming of default hook implementation from
734 hook_constcharptr_const_rtx_null to
735 hook_constcharptr_const_rtx_insn_null.
736 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
737 rtx to rtx_insn *.
738 (ia64_variable_issue): Likewise for param "insn".
739 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
740 (ia64_dfa_new_cycle): Likewise.
741 (ia64_get_insn_spec_ds): Likewise.
742 (ia64_get_insn_checked_ds): Likewise.
743 (ia64_speculate_insn): Likewise.
744 (ia64_gen_spec_check): Likewise for params "insn", "label".
745 (ia64_asm_unwind_emit): Likewise for param "insn".
746
747 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
748
749 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
750 "insn", "def_insn".
751 (m68k_sched_variable_issue): Likewise for param "insn".
752
753 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
754 "def_insn".
755
756 * config/microblaze/microblaze.c (microblaze_adjust_cost):
757 Likewise for params "insn", "dep".
758
759 * config/mips/mips.c (mips_adjust_cost): Likewise.
760 (mips_variable_issue): Likewise for param "insn".
761 (mips_final_postscan_insn): Likewise.
762
763 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
764 for params "insn", "dep".
765
766 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
767 "dep_insn".
768 (pa_adjust_priority): Likewise for param "insn".
769
770 * config/picochip/picochip.c (picochip_sched_adjust_cost):
771 Likewise for params "insn", "dep_insn".
772
773 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
774 param "insn".
775 (rs6000_variable_issue): Likewise.
776 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
777 (rs6000_debug_adjust_cost): Likewise.
778 (rs6000_adjust_priority): Likewise for param "insn".
779 (rs6000_use_sched_lookahead_guard): Likewise.
780 (get_next_active_insn): Likewise for return type and both params.
781 (redefine_groups): Likewise for params "prev_head_insn", "tail"
782 and locals "insn", "next_insn".
783 (pad_groups): Likewise.
784
785 * config/s390/s390.c (s390_adjust_priority): Likewise for param
786 "insn".
787 (s390_cannot_copy_insn_p): Likewise.
788 (s390_sched_variable_issue): Likewise for third param, eliminating
789 checked cast.
790 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
791 default hook implementation from hook_constcharptr_const_rtx_null
792 to hook_constcharptr_const_rtx_insn_null.
793
794 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
795 from rtx to rtx_insn *.
796 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
797 (sh_variable_issue): Likewise for param "insn".
798 (sh_dfa_new_cycle): Likewise.
799 (sh_mode_needed): Likewise.
800 (sh_mode_after): Likewise.
801
802 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
803 params "insn", "dep_insn".
804 (hypersparc_adjust_cost): Likewise.
805 (sparc_adjust_cost): Likewise.
806
807 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
808 param, eliminated checked cast.
809 (spu_sched_adjust_cost): Likewise for first and third params.
810
811 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
812 params "insn" and "dep_insn" from rtx to rtx_insn *.
813
814 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
815
816 2014-08-27 David Malcolm <dmalcolm@redhat.com>
817
818 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
819 (set_is_load_p): ...this, updating to work on a SET pattern rather
820 than an insn.
821 (is_store_insn): Rename to...
822 (set_is_store_p): ...this, updating to work on a SET pattern
823 rather than an insn.
824 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
825 top of function to where it is needed. Rewrite the bogus
826 condition that checks for "insn" and "dep" being PARALLEL to
827 instead use single_set, introducing locals "insn_set" and
828 "dep_set". Given that we only ever returned "cost" for a non-pair
829 of SETs, bail out early if we don't have a pair of SET.
830 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
831 use the new locals "insn_set" and "dep_set", and update calls to
832 is_load_insn and is_store_insn to be calls to set_is_load_p and
833 set_is_store_p.
834
835 2014-08-27 Guozhi Wei <carrot@google.com>
836
837 PR target/62262
838 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
839 amount before using it.
840
841 2014-08-27 Richard Biener <rguenther@suse.de>
842
843 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
844 get_maxval_strlen inside a more useful API.
845 (gimple_fold_builtin_with_strlen): Remove and fold into ...
846 (gimple_fold_builtin): ... caller.
847 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
848 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
849 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
850 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
851 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
852 gimple_fold_builtin_sprintf): Adjust to compute maxval
853 themselves.
854
855 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
856
857 PR other/62248
858 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
859
860 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
861 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
862 Anna Tikhonova <anna.tikhonova@intel.com>
863 Ilya Tocar <ilya.tocar@intel.com>
864 Andrey Turetskiy <andrey.turetskiy@intel.com>
865 Ilya Verbin <ilya.verbin@intel.com>
866 Kirill Yukhin <kirill.yukhin@intel.com>
867 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
868
869 * config/i386/sse.md
870 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
871 Use `concat_tg_mode' attribute to determine asm register size.
872
873 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
874 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
875 Anna Tikhonova <anna.tikhonova@intel.com>
876 Ilya Tocar <ilya.tocar@intel.com>
877 Andrey Turetskiy <andrey.turetskiy@intel.com>
878 Ilya Verbin <ilya.verbin@intel.com>
879 Kirill Yukhin <kirill.yukhin@intel.com>
880 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
881
882 * config/i386/sse.md
883 (define_mode_iterator VI48_AVX512VL): New.
884 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
885 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
886 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
887 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
888 with VI1): Change mode iterator.
889 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
890 with VI_ULOADSTORE_BW_AVX512VL): New.
891 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
892 with VI_ULOADSTORE_F_AVX512VL): Ditto.
893 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
894 with VI1): Change mode iterator.
895 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
896 with VI_ULOADSTORE_BW_AVX512VL): New.
897 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
898 with VI_ULOADSTORE_F_AVX512VL): Ditto.
899 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
900 with VI1): Change mode iterator.
901 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
902 with VI_ULOADSTORE_BW_AVX512VL): New.
903 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
904 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
905 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
906 (define_insn "<avx512>_storedqu<mode>_mask" with
907 VI48_AVX512VL): New.
908 (define_insn "<avx512>_storedqu<mode>_mask" with
909 VI12_AVX512VL): Ditto.
910
911 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
912 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
913 Anna Tikhonova <anna.tikhonova@intel.com>
914 Ilya Tocar <ilya.tocar@intel.com>
915 Andrey Turetskiy <andrey.turetskiy@intel.com>
916 Ilya Verbin <ilya.verbin@intel.com>
917 Kirill Yukhin <kirill.yukhin@intel.com>
918 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
919
920 * config/i386/sse.md
921 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
922 (define_mode_iterator VI48_AVX512BW): New.
923 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
924 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
925 with VI48_AVX2_48_AVX512F): New.
926 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
927 with VI2_AVX512VL): Ditto.
928
929 2014-08-27 Richard Biener <rguenther@suse.de>
930
931 PR middle-end/62239
932 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
933 (fold_builtin_3): Do not fold strcat_chk here.
934 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
935 from builtins.c.
936 (gimple_fold_builtin): Fold strcat_chk here.
937
938 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
939
940 * dwarf2out.h (dwarf2out_decl): Remove prototype.
941 * dwarf2out.c (dwarf2out_decl): Make static.
942
943 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
944
945 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
946
947 2014-08-26 David Malcolm <dmalcolm@redhat.com>
948
949 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
950 from rtx to rtx_insn *.
951 (cselib_lookup_from_insn): Likewise for final param.
952 (cselib_subst_to_values_from_insn): Likewise.
953 (cselib_add_permanent_equiv): Likewise.
954
955 * cselib.c (cselib_current_insn): Likewise for this variable.
956 (cselib_subst_to_values_from_insn): Likewise for param "insn".
957 (cselib_lookup_from_insn): Likewise.
958 (cselib_add_permanent_equiv): Likewise for param "insn" and local
959 "save_cselib_current_insn".
960 (cselib_process_insn): Replace use of NULL_RTX with NULL.
961
962 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
963 from rtx to rtx_insn *.
964
965 2014-08-26 David Malcolm <dmalcolm@redhat.com>
966
967 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
968 rtx_insn *.
969
970 2014-08-26 David Malcolm <dmalcolm@redhat.com>
971
972 * df.h (df_dump_insn_problem_function): Strengthen first param of
973 this callback from const_rtx to const rtx_insn *.
974 (struct df_insn_info): Strengthen field "insn" from rtx to
975 rtx_insn *.
976 (DF_REF_INSN): Eliminate this function, reinstating the older
977 macro definition.
978 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
979 (df_reg_defined): Likewise.
980 (df_find_use): Likewise.
981 (df_reg_used): Likewise.
982 (df_dump_insn_top): Strengthen param 1 from const_rtx to
983 const rtx_insn *.
984 (df_dump_insn_bottom): Likewise.
985 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
986 (df_insn_debug_regno): Likewise.
987 (debug_df_insn): Likewise.
988 (df_rd_simulate_one_insn): Likewise for param 2.
989 (df_word_lr_simulate_defs): Likewise for param 1.
990 (df_word_lr_simulate_uses): Likewise.
991 (df_md_simulate_one_insn): Likewise for param 2.
992 (df_simulate_find_noclobber_defs): Likewise for param 1.
993 (df_simulate_find_defs): Likewise.
994 (df_simulate_defs): Likewise.
995 (df_simulate_uses): Likewise.
996 (df_simulate_one_insn_backwards): Likewise for param 2.
997 (df_simulate_one_insn_forwards): Likewise.
998 (df_uses_create): Likewise for param 2.
999 (df_insn_create_insn_record): Likewise for param 1.
1000 (df_insn_delete): Likewise.
1001 (df_insn_rescan): Likewise.
1002 (df_insn_rescan_debug_internal): Likewise.
1003 (df_insn_change_bb): Likewise.
1004 (df_notes_rescan): Likewise.
1005 * rtl.h (remove_death): Likewise for param 2.
1006 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1007 const rtx_insn *.
1008 * sched-int.h (reemit_notes): Strengthen param from rtx to
1009 rtx_insn *.
1010 * valtrack.h (propagate_for_debug): Likewise for param 1.
1011
1012 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1013 local "tmp_rtx" from const_rtx to const rtx_insn *.
1014 * combine.c (remove_death): Strengthen param "insn" from rtx to
1015 rtx_insn *.
1016 (move_deaths): Likewise for local "where_dead".
1017 * cse.c (delete_trivially_dead_insns): Introduce local
1018 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1019 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1020 rtx_insn *.
1021 (df_reg_defined): Likewise.
1022 (df_find_use): Likewise.
1023 (df_reg_used): Likewise.
1024 (df_dump_insn_problem_data): Strengthen param "insn" from
1025 const_rtx to const rtx_insn *.
1026 (df_dump_insn_top): Likewise.
1027 (df_dump_insn_bottom): Likewise.
1028 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1029 (df_insn_debug_regno): Likewise.
1030 (debug_df_insn): Likewise.
1031 (DF_REF_INSN): Delete.
1032 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1033 from rtx to rtx_insn *.
1034 (df_chain_insn_top_dump): Strengthen param "insn" from
1035 const_rtx to const rtx_insn *.
1036 (df_chain_insn_bottom_dump): Likewise.
1037 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1038 rtx_insn *.
1039 (df_word_lr_simulate_uses): Likewise.
1040 (df_print_note): Likewise.
1041 (df_remove_dead_and_unused_notes): Likewise.
1042 (df_set_unused_notes_for_mw): Likewise.
1043 (df_set_dead_notes_for_mw): Likewise.
1044 (df_create_unused_note): Likewise.
1045 (df_simulate_find_defs): Likewise.
1046 (df_simulate_find_uses): Likewise.
1047 (df_simulate_find_noclobber_defs): Likewise.
1048 (df_simulate_defs): Likewise.
1049 (df_simulate_uses): Likewise.
1050 (df_simulate_one_insn_backwards): Likewise.
1051 (df_simulate_one_insn_forwards): Likewise.
1052 (df_md_simulate_one_insn): Likewise.
1053 * df-scan.c (df_uses_create): Likewise.
1054 (df_insn_create_insn_record): Likewise.
1055 (df_insn_delete): Likewise.
1056 (df_insn_rescan): Likewise.
1057 (df_insn_rescan_debug_internal): Likewise.
1058 (df_insn_change_bb): Likewise.
1059 (df_notes_rescan): Likewise.
1060 (df_refs_add_to_chains): Likewise.
1061 (df_insn_refs_verify): Likewise.
1062 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1063 when invoking df_insn_delete.
1064 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1065 (set_unique_reg_note): Add checked cast.
1066 * final.c (cleanup_subreg_operands): Likewise.
1067 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1068 "insn" from rtx to rtx_insn *.
1069 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1070 "last" from rtx to rtx_insn *.
1071 * ira-emit.c (change_regs_in_insn): New function.
1072 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1073 Invoke change_regs_in_insn rather than change_regs.
1074 * ira.c (update_equiv_regs): Strengthen locals "insn",
1075 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1076 for_each_rtx_in_insn rather than for_each_rtx.
1077 * recog.c (confirm_change_group): Add checked casts.
1078 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1079 Add checked cast.
1080 (peep2_fill_buffer): Add checked cast.
1081 * rtlanal.c (remove_note): Likewise.
1082 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1083 locals "next" "end" from rtx to rtx_insn *.
1084
1085 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1086
1087 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1088 to rtx_insn *.
1089 (struct reg_use_data): Likewise for field "insn".
1090 (insn_cost): Likewise for param.
1091 (real_insn_for_shadow): Likewise for return type and param.
1092 (increase_insn_priority): Likewise for param 1.
1093 (debug_dependencies): Likewise for both params.
1094
1095 * haifa-sched.c (insn_delay): Likewise for param "insn".
1096 (real_insn_for_shadow): Likewise for return type and param "insn".
1097 (update_insn_after_change): Likewise for param "insn".
1098 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1099 "other".
1100 (insn_cost): Likewise for param "insn".
1101 (increase_insn_priority): Likewise.
1102 (calculate_reg_deaths): Likewise.
1103 (setup_insn_reg_pressure_info): Likewise.
1104 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1105 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1106 (model_recompute): Likewise.
1107 (must_restore_pattern_p): Likewise for param "next".
1108 (model_excess_cost): Likewise for param "insn".
1109 (queue_remove): Likewise.
1110 (adjust_priority): Likewise for param "prev".
1111 (update_register_pressure): Likewise for param "insn".
1112 (setup_insn_max_reg_pressure): Likewise for local "insn".
1113 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1114 (model_add_to_schedule): Likewise.
1115 (model_reset_queue_indices): Likewise for local "insn".
1116 (unschedule_insns_until): Strengthen local "recompute_vec" from
1117 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1118 "con" from rtx to rtx_insn *.
1119 (restore_last_backtrack_point): Likewise for both locals "x". Add
1120 checked casts.
1121 (estimate_insn_tick): Likewise for param "insn".
1122 (commit_schedule): Likewise for params "prev_head", "tail" and
1123 local "x".
1124 (verify_shadows): Likewise for locals "i1", "i2".
1125 (dump_insn_stream): Likewise for params "head", "tail" and locals
1126 "next_tail", "insn".
1127 (schedule_block): Likewise for locals "insn", "x". Add a checked
1128 cast.
1129 (fix_inter_tick): Likewise for params "head", "tail".
1130 (create_check_block_twin): Likewise for local "jump".
1131 (haifa_change_pattern): Likewise for param "insn".
1132 (haifa_speculate_insn): Likewise.
1133 (dump_new_block_header): Likewise for params "head", "tail".
1134 (fix_jump_move): Likewise for param "jump".
1135 (move_block_after_check): Likewise.
1136 (sched_init_insn_luid): Likewise for param "insn".
1137 (sched_init_luids): Likewise for local "insn".
1138 (insn_luid): Likewise for param "insn".
1139 (init_h_i_d): Likewise.
1140 (haifa_init_h_i_d): Likewise for local "insn".
1141 (haifa_init_insn): Likewise for param "insn".
1142 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1143 "other".
1144 (create_insn_reg_use): Likewise for param "insn".
1145 (setup_insn_reg_uses): Likewise. Add a checked cast.
1146 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1147 "tail" from rtx to rtx_insn *.
1148 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1149 "insn", "next_tail".
1150
1151 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1152
1153 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1154 from rtx to rtx_insn *.
1155 (model_add_to_schedule): Likewise for locals "start", "end",
1156 "iter".
1157
1158 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1159
1160 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1161 rtx_insn *.
1162 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1163 "to" and locals "insn", "next", "copy". Remove now-redundant
1164 checked cast.
1165
1166 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1167
1168 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1169 rtx_insn * and param 4 from rtx * to rtx_insn **.
1170 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1171 param 2 from rtx * to rtx_insn **.
1172
1173 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1174 rtx_insn * and final param from rtx * to rtx_insn **.
1175
1176 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1177 from rtx to rtx_insn *.
1178 (try_head_merge_bb): Likewise for both locals named "move_upto".
1179 * df-problems.c (can_move_insns_across): Likewise for params
1180 "from", "to", "across_from", "across_to" and locals "insn",
1181 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1182 rtx_insn **.
1183 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1184 from rtx to rtx_insn *.
1185 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1186 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1187 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1188 rtx_insn *.
1189 (noce_try_abs): Likewise.
1190 (noce_get_condition): Likewise for param "jump". Strengthen param
1191 "earliest" from rtx * to rtx_insn **.
1192 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1193 rtx_insn *.
1194 (find_cond_trap): Likewise.
1195 (dead_or_predicable): Likewise for local "earliest".
1196 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1197 checked cast.
1198 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1199 and local "prev". Strengthen param "earliest" from rtx * to
1200 rtx_insn **.
1201 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1202 Strengthen param "earliest" from rtx * to rtx_insn **.
1203
1204 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1205
1206 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1207 "to" and local "insn" from rtx to rtx_insn *.
1208
1209 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1210
1211 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1212 from rtx to rtx_insn *.
1213 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1214 (code_motion_path_driver): Likewise for local "last_insn".
1215 (simplify_changed_insns): Likewise for local "insn".
1216
1217 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1218
1219 * rtl.h (push_to_sequence): Strengthen param from rtx to
1220 rtx_insn *.
1221 (push_to_sequence2): Likewise for both params.
1222 (delete_insns_since): Likewise for param.
1223 (reorder_insns_nobb): Likewise for all three params.
1224 (set_new_first_and_last_insn): Likewise for both params.
1225
1226 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1227 rtx_insn *. Remove now-redundant cast.
1228 (set_last_insn): Likewise.
1229
1230 * builtins.c (expand_builtin_return): Strengthen local
1231 "call_fusage" from rtx to rtx_insn *.
1232 * cfgrtl.c (create_basic_block_structure): Likewise for local
1233 "after".
1234 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1235 "first", "last" and local "insn".
1236 (delete_insns_since): Likewise for param "from".
1237 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1238 and local "x".
1239 (push_to_sequence): Likewise for param "first" and local "last".
1240 (push_to_sequence2): Likewise for params "first" and "last".
1241 * lra.c (emit_add3_insn): Likewise for local "last".
1242 (lra_emit_add): Likewise.
1243 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1244 "last_insn".
1245 (process_address_1): Likewise for locals "insn", last".
1246 * modulo-sched.c (ps_first_note): Likewise for return type.
1247 * optabs.c (expand_binop_directly): Likewise for param "last".
1248
1249 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1250
1251 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1252 to rtx_insn*.
1253 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1254
1255 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1256
1257 * function.h (struct sequence_stack): Strengthen fields "first"
1258 and "last" from rtx to rtx_insn *.
1259 (struct emit_status): Likewise for fields "x_first_insn" and
1260 "x_last_insn".
1261
1262 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1263 (set_first_insn): Add checked cast.
1264 (get_last_insn): Remove now-redundant checked cast.
1265 (set_last_insn): Add checked cast.
1266
1267 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1268 "saved_first" and "saved_last" from rtx to rtx_insn *.
1269
1270 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1271
1272 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1273 (unlink_insn_chain): Strengthen both params from rtx to
1274 rtx_insn *.
1275
1276 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1277 variable.
1278 (unlink_insn_chain): Likewise for params "first" and "last".
1279 Remove now-redundant checked cast.
1280 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1281 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1282 rtx_insn *.
1283 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1284 params.
1285 (add_insn): Likewise for param "insn" and local "prev".
1286 (add_insn_after_nobb): Likewise for both params and local "next".
1287 (add_insn_before_nobb): Likewise for both params and local "prev".
1288 (add_insn_after): Rename param "after" to "uncast_after",
1289 introducing local "after" with another checked cast.
1290 (add_insn_before): Rename params "insn" and "before", giving them
1291 "uncast_" prefixes, adding the old names back using checked casts.
1292 (emit_note_after): Likewise for param "after".
1293 (emit_note_before): Likewise for param "before".
1294 (emit_label): Add a checked cast.
1295
1296 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1297
1298 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1299 "insn" from rtx to rtx_insn *.
1300
1301 * cselib.c (cselib_record_sets_hook): Likewise.
1302
1303 * var-tracking.c (add_with_sets): Likewise, renaming back from
1304 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1305 to rtx_insn *.
1306
1307 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1308
1309 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1310 and "header_" from rtx to rtx_insn *.
1311 (struct basic_block_d): Likewise for field "head_" within "x"
1312 field of union basic_block_il_dependent.
1313 (BB_HEAD): Drop function...
1314 (SET_BB_HEAD): ...and this function in favor of...
1315 (BB_HEAD): ...reinstate macro.
1316 (BB_END): Drop function...
1317 (SET_BB_END): ...and this function in favor of...
1318 (BB_END): ...reinstate macro.
1319 (BB_HEADER): Drop function...
1320 (SET_BB_HEADER): ...and this function in favor of...
1321 (BB_HEADER): ...reinstate macro.
1322
1323 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1324 (fix_crossing_unconditional_branches): Likewise.
1325 * caller-save.c (save_call_clobbered_regs): Likewise.
1326 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1327 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1328 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1329 (merge_blocks_move_successor_nojumps): Likewise.
1330 (outgoing_edges_match): Update use of for_each_rtx to
1331 for_each_rtx_in_insn.
1332 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1333 (expand_gimple_cond): Likewise.
1334 (expand_gimple_tailcall): Likewise.
1335 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1336 SET_BB_END.
1337 (construct_exit_block): Drop use of SET_BB_END.
1338 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1339 rtx_insn *.
1340 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1341 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1342 SET_BB_HEAD and SET_BB_END.
1343 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1344 SET_BB_END.
1345 (rtl_delete_block): Drop use of SET_BB_HEAD.
1346 (rtl_split_block): Drop use of SET_BB_END.
1347 (emit_nop_for_unique_locus_between): Likewise.
1348 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1349 (block_label): Drop use of SET_BB_HEAD.
1350 (fixup_abnormal_edges): Drop use of SET_BB_END.
1351 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1352 (relink_block_chain): Likewise.
1353 (fixup_reorder_chain): Drop use of SET_BB_END.
1354 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1355 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1356 rtx_insn **. Drop use of SET_BB_HEADER.
1357 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1358 SET_BB_HEAD.
1359 (BB_HEAD): Delete this function.
1360 (SET_BB_HEAD): Likewise.
1361 (BB_END): Likewise.
1362 (SET_BB_END): Likewise.
1363 (BB_HEADER): Likewise.
1364 (SET_BB_HEADER): Likewise.
1365 * emit-rtl.c (add_insn_after): Rename param "insn" to
1366 "uncast_insn", adding a new local "insn" and a checked cast to
1367 rtx_insn *. Drop use of SET_BB_END.
1368 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1369 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1370 (reorder_insns): Drop use of SET_BB_END.
1371 (emit_insn_after_1): Strengthen param "first" and locals "last",
1372 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1373 (emit_pattern_after_noloc): Add checked cast.
1374 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1375 (restore_other_notes): Likewise.
1376 (move_insn): Likewise.
1377 (sched_extend_bb): Likewise.
1378 (fix_jump_move): Likewise.
1379 * ifcvt.c (noce_process_if_block): Likewise.
1380 (dead_or_predicable): Likewise.
1381 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1382 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1383 * sel-sched-ir.c (sel_move_insn): Likewise.
1384 * sel-sched.c (move_nop_to_previous_block): Likewise.
1385
1386 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1387 SET_BB_END.
1388 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1389
1390 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1391
1392 * basic-block.h (create_basic_block_structure): Strengthen params
1393 1 "head" and 2 "end" from rtx to rtx_insn *.
1394 * cfgrtl.c (create_basic_block_structure): Likewise.
1395 (rtl_create_basic_block): Update casts from void * to rtx to
1396 rtx_insn *, so that we can pass them as rtx_insn * to
1397 create_basic_block_structure.
1398 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1399
1400 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1401
1402 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1403 rtx_insn **.
1404 (check_for_inc_dec): Strengthen param "insn" from rtx to
1405 rtx_insn *.
1406
1407 * cselib.h (cselib_process_insn): Likewise.
1408
1409 * cselib.c (cselib_record_sets): Likewise.
1410 (cselib_process_insn): Likewise.
1411
1412 * dse.c (struct insn_info): Likewise for field "insn".
1413 (check_for_inc_dec_1): Likewise for local "insn".
1414 (check_for_inc_dec): Likewise for param "insn".
1415 (scan_insn): Likewise.
1416 (dse_step1): Likewise for local "insn".
1417
1418 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1419 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1420
1421 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1422
1423 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1424 from rtx to rtx_insn *.
1425 (DEP_PRO): Delete this function and...
1426 (SET_DEP_PRO): ...this function in favor of...
1427 (DEP_PRO): ...reinstate this macro.
1428 (DEP_CON): Delete this function and...
1429 (SET_DEP_CON): ...this function in favor of...
1430 (DEP_CON): ...reinstate this old macro.
1431 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1432 (init_dep): Likewise.
1433 (set_priorities): Likewise for both params.
1434 (sd_copy_back_deps): Likewise for params 1 and 2.
1435
1436 * haifa-sched.c (priority): Likewise for param "insn" and local
1437 "next".
1438 (set_priorities): Likewise for params "head" and "tail" and local
1439 "insn".
1440 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1441 local "consumer".
1442 (add_to_speculative_block): Add a checked cast.
1443 (create_check_block_twin): Drop use of SET_DEP_CON.
1444 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1445 rtx to rtx_insn *.
1446
1447 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1448 Drop use of SET_DEP_PRO
1449 (init_dep): Strengthen params "pro" and "con" from rtx to
1450 rtx_insn *.
1451 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1452 use of SET_DEP_CON.
1453 (DEP_PRO): Delete.
1454 (DEP_CON): Delete.
1455 (SET_DEP_PRO): Delete.
1456 (SET_DEP_CON): Delete.
1457
1458 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1459
1460 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1461 from rtx to rtx_insn *.
1462 (VINSN_INSN_RTX): Eliminate rvalue function and...
1463 (SET_VINSN_INSN): ...lvalue function in favor of...
1464 (VINSN_INSN_RTX): reinstate this old macro.
1465
1466 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1467 in favor of VINSN_INSN_RTX.
1468 (VINSN_INSN_RTX): Delete this function.
1469 (SET_VINSN_INSN_RTX): Likewise.
1470
1471 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1472
1473 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1474 (BND_TO): Delete this function and...
1475 (SET_BND_TO): ...this functions in favor of...
1476 (BND_TO): ...reinstating this macro.
1477 (struct _fence): Strengthen field "executing_insns" from
1478 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1479 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1480 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1481 and param "insn" from rtx to insn_t.
1482 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1483 rtx_insn *.
1484
1485 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1486 vec<rtx_insn *> .
1487 (rtx_vec_t): Likewise.
1488 (struct sched_deps_info_def): Strengthen param of "start_insn"
1489 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1490 "note_mem_dep" callback and first param of "note_dep" callback.
1491
1492 * haifa-sched.c (add_to_speculative_block): Strengthen param
1493 "insn" from rtx to rtx_insn *.
1494 (clear_priorities): Likewise.
1495 (calc_priorities): Likewise for local "insn".
1496
1497 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1498 Remove redundant checked cast.
1499 (haifa_note_mem_dep): Likewise for param "pending_insn".
1500 (haifa_note_dep): Likewise for param "elem".
1501 (note_mem_dep): Likewise for param "e".
1502 (sched_analyze_1): Add checked casts.
1503 (sched_analyze_2): Likewise.
1504
1505 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1506 from rtx to rtx_insn *.
1507 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1508 from vec<rtx> * to vec<rtx_insn *> *.
1509
1510 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1511 scaffolding.
1512 (flist_add): Strengthen param "executing_insns" from
1513 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1514 (advance_deps_context): Remove now-redundant checked cast.
1515 (init_fences): Replace uses of NULL_RTX with NULL.
1516 (merge_fences): Strengthen params "last_scheduled_insn" and
1517 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1518 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1519 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1520 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1521 an instruction, rather than doing double-duty as a pattern.
1522 (return_nop_to_pool): Update for change of insn_t.
1523 (deps_init_id): Remove now-redundant checked cast.
1524 (struct sched_scan_info_def): Strengthen param of "init_insn"
1525 callback from rtx to insn_t.
1526 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1527 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1528 NULL.
1529 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1530 "end" from rtx to rtx_insn *.
1531 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1532 (rtx insn_rtx, bool force_unique_p)
1533 (BND_TO): Delete function.
1534 (SET_BND_TO): Delete function.
1535
1536 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1537 rtx to rtx_insn *.
1538 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1539 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1540 rtx to rtx_insn *.
1541 (undo_transformations): Likewise for param "insn".
1542 (update_liveness_on_insn): Likewise.
1543 (compute_live_below_insn): Likewise for param "insn" and local
1544 "succ".
1545 (update_data_sets): Likewise for param "insn".
1546 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1547 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1548 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1549 rtx_insn *.
1550 (move_cond_jump): Likewise for param "insn".
1551 (move_cond_jump): Drop use of SET_BND_TO.
1552 (compute_av_set_on_boundaries): Likewise.
1553 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1554 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1555 from rtx to rtx_insn *.
1556 (maybe_emit_renaming_copy): Likewise for param "insn".
1557 (maybe_emit_speculative_check): Likewise.
1558 (handle_emitting_transformations): Likewise.
1559 (remove_insn_from_stream): Likewise.
1560 (code_motion_process_successors): Strengthen local "succ" from rtx
1561 to insn_t.
1562
1563 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1564
1565 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1566 ilist_t, not _xlist_t;
1567 (ILIST_INSN): Define in terms of new union field "insn".
1568 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1569 _XLIST_NEXT.
1570 (struct _list_node): Add new field "insn" to the union, of type
1571 insn_t.
1572 (ilist_add): Replace macro with an inline function, requiring an
1573 insn_t.
1574 (ilist_remove): Define this macro directly in terms of
1575 _list_remove, rather than indirectly via _xlist_remove.
1576 (ilist_clear): Likewise, in terms of _list_clear rather than
1577 _xlist_clear.
1578 (ilist_is_in_p): Replace macro with an inline function, requiring
1579 an insn_t.
1580 (_list_iter_cond_insn): New function.
1581 (ilist_iter_remove): Define this macro directly in terms of
1582 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1583 (ilist_iterator): Define directly in terms of _list_iterator
1584 rather than indirectly through _xlist_iterator.
1585 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1586 than in terms of _FOR_EACH_X.
1587 (FOR_EACH_INSN_1): Likewise.
1588
1589 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1590
1591 PR target/60606
1592 PR target/61330
1593 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1594 DECL_HARD_REGISTER and return for invalid register specifications.
1595 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1596 DECL_HARD_REGISTER, call expand_one_error_var.
1597 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1598 CC_REGNUM with non-MODE_CC modes.
1599 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1600
1601 2014-08-26 Marek Polacek <polacek@redhat.com>
1602
1603 PR c/61271
1604 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1605
1606 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1607
1608 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1609 qi cost; add di cost.
1610 (cortexa57_addrcost_table): Likewise.
1611
1612 2014-08-26 Marek Polacek <polacek@redhat.com>
1613
1614 PR c/61271
1615 * expr.c (is_aligning_offset): Remove logical not.
1616
1617 2014-08-26 Marek Polacek <polacek@redhat.com>
1618
1619 PR c/61271
1620 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1621 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1622
1623 2014-08-26 Richard Biener <rguenther@suse.de>
1624
1625 PR tree-optimization/62175
1626 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1627 expand possibly trapping operations.
1628
1629 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1630
1631 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1632 "insn" from rtx to rtx_insn *.
1633 (permute_load): Likewise for param "insn".
1634 (permute_store): Likewise.
1635 (handle_special_swappables): Likewise for local "insn".
1636 (replace_swap_with_copy): Likewise for locals "insn" and
1637 "new_insn".
1638 (rs6000_analyze_swaps): Likewise for local "insn".
1639
1640 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1641
1642 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1643 to rtx_insn *.
1644
1645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1646
1647 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1648 "note_list" from rtx to rtx_insn *.
1649 (BB_NOTE_LIST): Replace this function and...
1650 (SET_BB_NOTE_LIST): ...this function with...
1651 (BB_NOTE_LIST): ...the former macro implementation.
1652
1653 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1654 local "from_start" from rtx to rtx_insn *. Strengthen param
1655 "to_endp" from rtx * to rtx_insn **.
1656
1657 * haifa-sched.c (concat_note_lists): Likewise.
1658 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1659 BB_NOTE_LIST.
1660 (sel_restore_notes): Likewise.
1661 (move_bb_info): Likewise.
1662 (BB_NOTE_LIST): Delete this function.
1663 (SET_BB_NOTE_LIST): Delete this function.
1664 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1665 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1666
1667 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1668
1669 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1670 from rtx * to rtx_insn **.
1671 (reorder2): Likewise.
1672 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1673 from rtx to rtx_insn *.
1674
1675 * doc/tm.texi: Update mechanically for above change to target.def.
1676
1677 * sched-int.h (note_list): Strengthen this variable from rtx to
1678 rtx_insn *.
1679 (remove_notes): Likewise for both params.
1680 (restore_other_notes): Likewise for return type and first param.
1681 (struct ready_list): Strengthen field "vec" from rtx * to
1682 rtx_insn **.
1683 (struct dep_replacement): Strenghten field "insn" from rtx to
1684 rtx_insn *.
1685 (struct deps_desc): Likewise for fields "last_debug_insn",
1686 "last_args_size".
1687 (struct haifa_sched_info): Likewise for callback field
1688 "can_schedule_ready_p"'s param, for first param of "new_ready"
1689 callback field, for both params of "rank" callback field, for
1690 first field of "print_insn" callback field (with a const), for
1691 both params of "contributes_to_priority" callback, for param
1692 of "insn_finishes_block_p" callback, for fields "prev_head",
1693 "next_tail", "head", "tail", for first param of "add_remove_insn"
1694 callback, for first param of "begin_schedule_ready" callback, for
1695 both params of "begin_move_insn" callback, and for second param
1696 of "advance_target_bb" callback.
1697 (add_dependence): Likewise for params 1 and 2.
1698 (sched_analyze): Likewise for params 2 and 3.
1699 (deps_analyze_insn): Likewise for param 2.
1700 (ready_element): Likewise for return type.
1701 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1702 (try_ready): Strenghten param from rtx to rtx_insn *.
1703 (sched_emit_insn): Likewise for return type.
1704 (record_delay_slot_pair): Likewise for params 1 and 2.
1705 (add_delay_dependencies): Likewise for param.
1706 (contributes_to_priority): Likewise for both params.
1707 (find_modifiable_mems): Likewise.
1708
1709 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1710 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1711 "first_older_only_insn" from rtx to rtx_insn *.
1712 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1713 rtx_insn **.
1714
1715 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1716 "last_scheduled_iter0" from rtx to rtx_insn *.
1717 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1718 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1719 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1720 "insn" from rtx to rtx_insn *.
1721 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1722 rtx_insn **.
1723 (c6x_sched_reorder2): Strengthen param "ready" and locals
1724 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1725 "insn" from rtx to rtx_insn *.
1726 (c6x_variable_issue): Add a checked cast when assigning from insn
1727 to ss.last_scheduled_iter0.
1728 (split_delayed_branch): Strengthen param "insn" and local "i1"
1729 from rtx to rtx_insn *.
1730 (split_delayed_nonbranch): Likewise.
1731 (undo_split_delayed_nonbranch): Likewise for local "insn".
1732 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1733 "entry_after", "end_packet", "head_insn", "tail_insn",
1734 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1735 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1736 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1737 but add a checked cast on loop->start_label. Consolidate calls to
1738 avoid assigning result of gen_spkernel to "insn", now an
1739 rtx_insn *.
1740
1741 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1742 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1743 rtx to rtx_insn *.
1744 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1745 rtx_insn **. Strengthen locals "top", "next" from rtx to
1746 rtx_insn *.
1747 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1748 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1749 (add_parameter_dependencies): Strengthen params "call", "head" and
1750 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1751 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1752 (add_dependee_for_func_arg): Likewise for param "arg" and local
1753 "insn".
1754 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1755 "tail" and locals "insn", "first_arg".
1756
1757 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1758 for params "head", "tail" and locals "insn", "next", "next_tail".
1759 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1760 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1761 "insn", "lowest", "highest" from rtx to rtx_insn *.
1762 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1763 rtx_insn **.
1764 (ia64_sched_reorder2): Likewise.
1765
1766 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1767 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1768 from rtx * to rtx_insn **.
1769 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1770 rtx_insn **.
1771 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1772 rtx_insn *.
1773 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1774 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1775 to rtx_insn *.
1776
1777 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1778 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1779 to rtx_insn *.
1780 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1781 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1782 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1783 rtx_insn **.
1784 (vr4130_reorder): Likewise.
1785 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1786 rtx to rtx_insn *.
1787 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1788 rtx_insn **.
1789 (mips_sched_reorder): Likewise.
1790 (mips_sched_reorder2): Likewise.
1791
1792 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1793
1794 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1795 Strengthen local "tmp" from rtx to rtx_insn *.
1796 (rs6000_sched_reorder2): Likewise.
1797
1798 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1799 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1800 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1801 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1802
1803 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1804 "tmp2" from rtx to rtx_insn *.
1805 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1806 Strengthen local "insn" from rtx to rtx_insn *.
1807 (ready_reorder): Strengthen param "ready" from rtx * to
1808 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1809 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1810 (sh_reorder2): Likewise.
1811
1812 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1813 local "insn" from rtx to rtx_insn *.
1814
1815 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1816 rtx_insn *.
1817 (scheduled_insns): Strengthen this variable from vec<rtx> to
1818 vec<rtx_insn *>.
1819 (set_modulo_params): Likewise for locals "i1", "i2".
1820 (record_delay_slot_pair): Likewise for params "i1", "i2".
1821 (add_delay_dependencies): Likewise for param "insn".
1822 (cond_clobbered_p): Likewise.
1823 (recompute_todo_spec): Likewise for local "prev".
1824 (last_scheduled_insn): Likewise for this variable.
1825 (nonscheduled_insns_begin): Likewise.
1826 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1827 rtx_insn **.
1828 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1829 rtx_insn *.
1830 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1831 Strengthen local "insn" from rtx to rtx_insn *.
1832 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1833 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1834 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1835 (ready_remove_first): Likewise for return type and local "t".
1836 (ready_element): Likewise for return type.
1837 (ready_remove): Likewise for return type and local "t".
1838 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1839 (check_clobbered_conditions): Strengthen local "x" from rtx to
1840 rtx_insn *, adding a checked cast.
1841 (schedule_insn): Likewise for param "insn".
1842 (remove_notes): Likewise for params "head", "tail" and locals
1843 "next_tail", "insn", "next".
1844 (struct haifa_saved_data): Likewise for fields
1845 "last_scheduled_insn", "nonscheduled_insns_begin".
1846 (save_backtrack_point): Update for change to field "vec" of
1847 struct ready_list.
1848 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1849 rtx_insn **.
1850 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1851 from rtx to rtx_insn *
1852 (resolve_dependencies): Strengthen param "insn" from rtx to
1853 rtx_insn *
1854 (restore_other_notes): Likewise for return type, for param "head"
1855 and local "note_head".
1856 (undo_all_replacements): Likewise for local "insn".
1857 (first_nonscheduled_insn): Likewise for return type and local "insn".
1858 (queue_to_ready): Likewise for local "insn", adding checked casts.
1859 (early_queue_to_ready): Likewise for local "insn".
1860 (debug_ready_list_1): Strengthen local "p" from rtx * to
1861 rtx_insn **.
1862 (move_insn): Strengthen param "insn" and local "note" from rtx to
1863 rtx_insn *
1864 (insn_finishes_cycle_p): Likewise for param "insn".
1865 (max_issue): Likewise for local "insn".
1866 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1867 to rtx_insn **.
1868 (commit_schedule): Strengthen param "prev_head" and local "insn"
1869 from rtx to rtx_insn *
1870 (prune_ready_list): Likewise for local "insn".
1871 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1872 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1873 (set_priorities): Likewise for local "prev_head".
1874 (try_ready): Likewise for param "next".
1875 (fix_tick_ready): Likewise.
1876 (change_queue_index): Likewise.
1877 (sched_extend_ready_list): Update for change to field "vec" of
1878 struct ready_list.
1879 (generate_recovery_code): Strengthen param "insn" from rtx to
1880 rtx_insn *.
1881 (begin_speculative_block): Likewise.
1882 (create_check_block_twin): Likewise for param "insn" and locals
1883 "label", "check", "twin". Introduce local "check_pat" to avoid
1884 "check" being used as a plain rtx before being used as an insn.
1885 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1886 extracting elements from ready_list.
1887 (sched_remove_insn): Strengthen param "insn" from rtx to
1888 rtx_insn *.
1889 (sched_emit_insn): Likewise for return type.
1890 (ready_remove_first_dispatch): Likewise for return type and local
1891 "insn".
1892
1893 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1894
1895 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1896 const rtx_insn *.
1897
1898 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1899 from rtx to rtx_insn *.
1900 (add_dependence_list): Likewise for param "insn". Add a checked
1901 cast.
1902 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1903 to rtx_insn *. Strengthen param "list_p" from rtx * to
1904 rtx_insn **.
1905 (chain_to_prev_insn): Strengthen param "insn" and locals
1906 "prec_nonnote", "i" from rtx to rtx_insn *.
1907 (flush_pending_lists): Likewise for param "insn".
1908 (cur_insn): Likewise for this variable.
1909 (haifa_start_insn): Add a checked cast.
1910 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1911 (sched_analyze_reg): Likewise for param "insn".
1912 (sched_analyze_1): Likewise.
1913 (sched_analyze_2): Likewise. Add checked casts.
1914 (sched_analyze_insn): Likewise. Also for local "prev".
1915 (deps_analyze_insn): Likewise for param "insn".
1916 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1917 (add_dependence_1): Likewise for params "insn", "elem".
1918 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1919 (parse_add_or_inc): Likewise for param "insn".
1920 (find_inc): Likewise for local "inc_cand".
1921 (find_modifiable_mems): Likewise for params "head", "tail" and
1922 locals "insn", "next_tail".
1923
1924 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1925 (begin_schedule_ready): Likewise for param "insn".
1926 (begin_move_insn): Likewise for params "insn" and "last".
1927 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1928 const rtx_insn *.
1929 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1930 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1931 (ebb_add_remove_insn): Likewise for param "insn".
1932 (advance_target_bb): Likewise.
1933
1934 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1935 "insn".
1936 (check_live): Likewise for param "insn".
1937 (init_ready_list): Likewise for local "insn".
1938 (can_schedule_ready_p): Likewise for param "insn".
1939 (begin_schedule_ready): Likewise.
1940 (new_ready): Likewise for param "next".
1941 (rgn_print_insn): Likewise for param "insn".
1942 (rgn_rank): Likewise for params "insn1", "insn2".
1943 (contributes_to_priority): Likewise for params "next", "insn".
1944 (rgn_insn_finishes_block_p): Likewise for param "insn".
1945 (add_branch_dependences): Likewise for params "head", "tail" and
1946 locals "insn", "last".
1947 (rgn_add_remove_insn): Likewise for param "insn".
1948 (advance_target_bb): Likewise.
1949
1950 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1951 const_rtx to const rtx_insn *.
1952
1953 * sel-sched-dump.h (sel_print_insn): Likewise.
1954
1955 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1956 (deps_init_id): Likewise.
1957
1958 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1959 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1960 rtx_insn **.
1961
1962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1963
1964 * output.h (final_start_function): Strengthen param 1 from rtx to
1965 rtx_insn *.
1966
1967 * final.c (final_start_function): Likewise, renaming back from
1968 "uncast_first" to "first", and dropping the checked cast from rtx
1969 to rtx_insn *.
1970
1971 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1972
1973 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1974 * final.c (final): Likewise. Rename param back from
1975 "uncast_first" to "first" and eliminate the checked cast from rtx
1976 to rtx_insn *.
1977
1978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1979
1980 * output.h (shorten_branches): Strengthen param from rtx to
1981 rtx_insn *.
1982
1983 * final.c (shorten_branches): Likewise, renaming param back from
1984 "uncast_first" to "first", and dropping the checked cast from rtx
1985 to rtx_insn *.
1986
1987 * genattr.c (gen_attr): Likewise when writing out the prototype of
1988 shorten_branches.
1989
1990 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1991
1992 * sched-int.h (struct haifa_sched_info): Strengthen fields
1993 "prev_head" and "next_tail" from rtx to rtx_insn *.
1994
1995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1996
1997 * rtl.h (rtx_jump_table_data::get_labels): New method.
1998 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1999 with use of the new rtx_jump_table_data::get_labels method.
2000 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2001 to rtx_jump_table_data *. Simplify by using get_labels method.
2002 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2003 a dyn_cast, introducing local "table", using it to replace
2004 label-lookup logic with a get_labels method call.
2005 (patch_jump_insn): Simplify using get_labels method.
2006 * dwarf2cfi.c (create_trace_edges): Likewise.
2007 * rtlanal.c (label_is_jump_target_p): Likewise.
2008
2009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2010
2011 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2012 to rtx_insn *.
2013
2014 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2015 (unshare_all_rtl_again): Likewise, also for local "p".
2016
2017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2018
2019 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2020 to rtx_insn *.
2021 * cfgrtl.c (delete_insn_and_edges): Likewise.
2022
2023 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2024
2025 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2026 from rtx to rtx_insn *.
2027
2028 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2029
2030 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2031
2032 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2033 locals "returnjump", "epilogue_end", "insn", "next".
2034
2035 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2036 "returnjump" from rtx * to rtx_insn **.
2037 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2038
2039 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2040
2041 * basic-block.h (struct edge_def). Strengthen "r" within
2042 union edge_def_insns from rtx to rtx_insn *.
2043
2044 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2045 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2046 rtx_insn *.
2047 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2048 from rtx to rtx_insn *.
2049 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2050 rtx_insn *.
2051 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2052 (reg_used_on_edge): Likewise.
2053 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2054 (gt_pch_nx): New overload for rtx_insn *&.
2055 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2056 from rtx to rtx_insn *.
2057
2058 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2059
2060 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2061 from rtx to rtx_insn *.
2062 (BB_FOOTER): Replace function with access macro.
2063 (SET_BB_FOOTER): Delete.
2064
2065 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2066 with BB_FOOTER.
2067 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2068 (emit_barrier_after_bb): Likewise.
2069 (record_effective_endpoints): Likewise.
2070 (relink_block_chain): Likewise.
2071 (fixup_fallthru_exit_predecessor): Likewise.
2072 (cfg_layout_duplicate_bb): Likewise.
2073 (cfg_layout_split_block): Likewise.
2074 (cfg_layout_delete_block): Likewise.
2075 (cfg_layout_merge_blocks): Likewise.
2076 (BB_FOOTER): Delete function.
2077 (SET_BB_FOOTER): Delete function.
2078 * combine.c (update_cfg_for_uncondjump): Replace uses of
2079 SET_BB_FOOTER with BB_FOOTER.
2080
2081 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2082
2083 * except.h (struct eh_landing_pad_d): Strengthen field
2084 "landing_pad" from rtx to rtx_code_label *.
2085
2086 * except.c (sjlj_emit_dispatch_table): Likewise for param
2087 "dispatch_label"
2088 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2089
2090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2091
2092 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2093 first param from rtx to rtx_insn *.
2094 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2095 field "set_frame_ptr_insn".
2096 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2097 "csend" from rtx to rtx_code_label *.
2098 (xtensa_expand_atomic): Likewise for local "csloop".
2099 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2100 rtx_insn *.
2101 (xtensa_call_tls_desc): Likewise for return type and locals
2102 "call_insn", "insns".
2103 (xtensa_legitimize_tls_address): Likewise for local "insns".
2104 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2105
2106 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2107
2108 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2109 first param from rtx to rtx_insn *.
2110 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2111 "insn".
2112
2113 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2114
2115 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2116 Strengthen param 1 from rtx to rtx_insn *.
2117 (tilepro_output_cbranch): Likewise.
2118 (tilepro_adjust_insn_length): Likewise.
2119 (tilepro_final_prescan_insn): Likewise for sole param.
2120
2121 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2122 Likewise for local "last".
2123 (cbranch_predicted_p): Likewise for param "insn".
2124 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2125 (tilepro_output_cbranch_with_opcode): Likewise.
2126 (tilepro_output_cbranch): Likewise.
2127 (frame_emit_load): Likewise for return type and locals "seq",
2128 "insn".
2129 (emit_sp_adjust): Likewise for return type and local "insn".
2130 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2131 "insn".
2132 (tilepro_adjust_insn_length): Likewise for param "insn".
2133 (next_insn_to_bundle): Likewise for return type and params
2134 "r", "end".
2135 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2136 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2137 local "new_insns".
2138 (match_addli_pcrel): Likewise for param "insn".
2139 (replace_addli_pcrel): Likewise.
2140 (match_auli_pcrel): Likewise.
2141 (replace_auli_pcrel): Likewise.
2142 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2143 "next_insn".
2144 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2145 "queue", "next_queue", "prev".
2146 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2147 (tilepro_final_prescan_insn): Likewise for param "insn".
2148
2149 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2150
2151 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2152 Strengthen param 1 from rtx to rtx_insn *.
2153 (tilegx_output_cbranch): Likewise.
2154 (tilegx_adjust_insn_length): Likewise.
2155 (tilegx_final_prescan_insn): Likewise for sole param.
2156
2157 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2158 or local "last".
2159 (cbranch_predicted_p): Likewise for param "insn".
2160 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2161 (tilegx_output_cbranch_with_opcode): Likewise.
2162 (tilegx_output_cbranch): Likewise.
2163 (frame_emit_load): Likewise for return type.
2164 (set_frame_related_p): Likewise for locals "seq", "insn".
2165 (emit_sp_adjust): Likewise for return type, and for local "insn".
2166 Introduce local "pat" for use in place of "insn" where the latter
2167 isn't an instruction.
2168 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2169 from rtx to rtx_insn *.
2170 (tilegx_adjust_insn_length): Likewise for param "insn".
2171 (next_insn_to_bundle): Likewise for return type and params "r" and
2172 "end".
2173 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2174 "end".
2175 (replace_insns): Likewise for params "old_insn", "new_insns".
2176 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2177 "new_insns".
2178 (replace_mov_pcrel_step2): Likewise.
2179 (replace_mov_pcrel_step3): Likewise.
2180 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2181 "next_insn".
2182 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2183 "queue", "next_queue", "prev".
2184 (tilegx_output_mi_thunk): Likewise for local "insn".
2185 (tilegx_final_prescan_insn): Likewise for param "insn".
2186
2187 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2188
2189 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2190 rtx to rtx_insn *.
2191 (frame_emit_load): Likewise.
2192 (frame_emit_add_imm): Likewise, also for local "insn".
2193 (spu_expand_prologue): Likewise for local "insn".
2194 (struct spu_bb_info): Likewise for field "prop_jump".
2195 (emit_nop_for_insn): Likewise for param "insn" and local
2196 "new_insn".
2197 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2198 "hbr_insn".
2199 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2200 locals "hint", "insn".
2201 (get_branch_target): Likewise for param "branch".
2202 (insn_clobbers_hbr): Likewise for param "insn".
2203 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2204 locals "insn", "before_4", "before_16".
2205 (insert_hbrp): Likewise for local "insn".
2206 (spu_machine_dependent_reorg): Likewise for locals "branch",
2207 "insn", "next", "bbend".
2208 (uses_ls_unit): Likewise for param "insn".
2209 (get_pipe): Likewise.
2210 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2211 introducing a checked cast.
2212 (spu_sched_adjust_cost): Likewise for params "insn" and
2213 "dep_insn".
2214 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2215 (spu_sms_res_mii): Likewise.
2216
2217 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2218
2219 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2220 from rtx to rtx_insn *.
2221 (output_cbranch): Likewise for param 6.
2222 (output_return): Likewise for param 1.
2223 (output_sibcall): Likewise.
2224 (output_v8plus_shift): Likewise.
2225 (output_v8plus_mult): Likewise.
2226 (output_v9branch): Likewise for param 7.
2227 (output_cbcond): Likewise for param 3.
2228
2229 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2230 for local "insn".
2231 (sparc_legitimize_pic_address): Likewise.
2232 (sparc_emit_call_insn): Likewise.
2233 (emit_save_or_restore_regs): Likewise.
2234 (emit_window_save): Likewise for return type and local "insn".
2235 (sparc_expand_prologue): Likewise for local "insn".
2236 (sparc_flat_expand_prologue): Likewise.
2237 (output_return): Likewise for param "insn".
2238 (output_sibcall): Likewise for param "insn" and local "delay".
2239 (output_ubranch): Likewise for param "insn".
2240 (output_cbranch): Likewise.
2241 (output_cbcond): Likewise.
2242 (output_v9branch): Likewise.
2243 (output_v8plus_shift): Likewise.
2244 (sparc_output_mi_thunk): Likewise for local "insn".
2245 (get_some_local_dynamic_name): Likewise.
2246 (output_v8plus_mult): Likewise for param "insn".
2247
2248 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2249
2250 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2251 from rtx to rtx_insn *.
2252 (output_branchy_insn): Likewise for param 3.
2253 (output_far_jump): Likewise for param 1.
2254 (final_prescan_insn): Likewise.
2255 (sh_insn_length_adjustment): Likewise for sole param.
2256
2257 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2258 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2259 rtx_code_label *.
2260 (sh_emit_compare_and_set): Likewise for local "lab".
2261 (output_far_jump): Strengthen param "insn" and local "prev" from
2262 rtx to rtx_insn *.
2263 (output_branchy_insn): Likewise for param "insn" and local
2264 "next_insn".
2265 (output_ieee_ccmpeq): Likewise for param "insn".
2266 (struct label_ref_list_d): Strengthen field "label" from rtx to
2267 rtx_code_label *.
2268 (pool_node): Likewise.
2269 (pool_window_label): Likewise for this global.
2270 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2271 (dump_table): Strengthen params "start", "barrier" and local
2272 "scan" from rtx to rtx_insn *.
2273 (broken_move): Likewise for param "insn".
2274 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2275 Strengthen param "first_mova" from rtx * to rtx_insn **.
2276 (mova_p): Likewise for param "insn".
2277 (fixup_mova): Likewise for param "mova".
2278 (find_barrier): Likewise for return type, params "mova" and
2279 "from", and locals "barrier_before_mova", "found_barrier",
2280 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2281 "label" from rtx to rtx_code_label *.
2282 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2283 rtx to rtx_insn *.
2284 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2285 (split_branches): Likewise for param "first" and local "insn".
2286 (final_prescan_insn): Likewise for param "insn".
2287 (sequence_insn_p): Likewise for locals "prev", "next".
2288 (sh_insn_length_adjustment): Likewise for param "insn".
2289 (sh_can_redirect_branch): Likewise for local "insn".
2290 (find_r0_life_regions): Likewise for locals "end", "insn".
2291 (sh_output_mi_thunk): Likewise for local "insns".
2292
2293 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2294
2295 * config/score/score.c (score_output_mi_thunk): Strengthen local
2296 "insn" from rtx to rtx_insn *.
2297 (score_prologue): Likewise.
2298
2299 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2300
2301 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2302 1 from rtx to rtx_insn *.
2303 (s390_emit_jump): Likewise for return type.
2304 (s390_emit_call): Likewise.
2305 (s390_load_got): Likewise.
2306
2307 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2308 variable.
2309 (s390_match_ccmode): Likewise for param "insn".
2310 (s390_emit_jump): Likewise for return type.
2311 (s390_split_branches): Likewise for local "label".
2312 (struct constant): Strengthen field "label" from rtx to
2313 rtx_code_label *.
2314 (struct constant_pool): Likewise for field "label". Strengthen
2315 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2316 rtx_insn *.
2317 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2318 insns.
2319 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2320 (s390_end_pool): Likewise.
2321 (s390_dump_pool): Likewise for local "insn".
2322 (s390_mainpool_start): Likewise.
2323 (s390_chunkify_start): Likewise.
2324 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2325 with insns. Strengthen locals "label", "jump", "barrier", "next",
2326 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2327 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2328 rtx_insn *.
2329 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2330 "jump", "label", "next_insn".
2331 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2332 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2333 "tbegin_insn".
2334 (s390_load_got): Likewise for return type and local "insns".
2335 (s390_save_gprs_to_fprs): Likewise for local "insn".
2336 (s390_restore_gprs_from_fprs): Likewise.
2337 (pass_s390_early_mach::execute): Likewise.
2338 (s390_emit_prologue): Likewise for local "insns".
2339 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2340 rtx_code_label *.
2341 (s390_emit_call): Strengthen return type and local "insn" from
2342 rtx to rtx_insn *.
2343 (s390_emit_tpf_eh_return): Likewise for local "insn".
2344 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2345 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2346 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2347 local "cur_insn".
2348 (s390_non_addr_reg_read_p): Likewise for param "insn".
2349 (find_cond_jump): Likewise for return type and param "insn".
2350 (s390_swap_cmp): Likewise for param "insn".
2351 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2352 "prev_insn", "next_insn".
2353 (s390_reorg): Likewise for locals "insn", "target".
2354 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2355 (s390_sched_variable_issue): For now, rename param "insn" to
2356 "uncast_insn", introducing a checked cast.
2357 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2358 insn.
2359 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2360 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2361
2362 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2363
2364 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2365 param from rtx to rtx_insn *.
2366 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2367
2368 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2369
2370 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2371 4 from rtx to rtx_insn *.
2372 (rs6000_final_prescan_insn): Likewise for first param.
2373 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2374 local "insn".
2375 (rs6000_get_some_local_dynamic_name): Likewise.
2376 (output_cbranch): Likewise for param "insn".
2377 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2378 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2379 (rs6000_emit_allocate_stack): Likewise for local "insn".
2380 (load_cr_save): Likewise.
2381 (restore_saved_cr): Likewise.
2382 (restore_saved_lr): Likewise.
2383 (emit_cfa_restores): Likewise.
2384 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2385 "deleted_debug_label".
2386 (rs6000_output_mi_thunk): Likewise for local "insn".
2387 (rs6000_final_prescan_insn): Likewise for param "insn".
2388
2389 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2390
2391 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2392 Strengthen param "insn" from rtx to rtx_insn *.
2393 * config/picochip/picochip.c (picochip_current_prescan_insn):
2394 Likewise for this variable.
2395 (picochip_final_prescan_insn): Likewise for param "insn".
2396
2397 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2398
2399 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2400 from rtx to rtx_insn *.
2401 (pa_output_indirect_call): Likewise.
2402 (pa_adjust_insn_length): Likewise.
2403 (pa_attr_length_millicode_call): Likewise.
2404 (pa_attr_length_call): Likewise.
2405 (pa_attr_length_indirect_call): Likewise.
2406
2407 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2408 "insn".
2409 (pa_attr_length_millicode_call): Likewise.
2410 (pa_attr_length_call): Likewise.
2411 (pa_output_call): Likewise.
2412 (pa_attr_length_indirect_call): Likewise.
2413 (pa_output_indirect_call): Likewise.
2414
2415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2416
2417 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2418 Strengthen first param from rtx to rtx_insn *.
2419 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2420 param "insn".
2421
2422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2423
2424 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2425 type from rtx to rtx_insn *.
2426 (mips_expand_call): Likewise.
2427 (mips_adjust_insn_length): Likewise for first param.
2428 (mips_output_conditional_branch): Likewise.
2429 (mips_output_order_conditional_branch): Likewise.
2430 (mips_final_prescan_insn): Likewise.
2431
2432 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2433 rtx_insn * for the SEQUENCE case.
2434 (SEQ_END): Likewise.
2435 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2436 (mips_emit_call_insn): Likewise, also for local "insn".
2437 (mips16_gp_pseudo_reg): Likewise for local "scan".
2438 (mips16_build_call_stub): Likewise for return type and for local
2439 "insn". Introduce a new local "pattern" so that "insn" can indeed
2440 be an insn.
2441 (mips_expand_call): Strengthen return type and local "insn" from
2442 rtx to rtx_insn *.
2443 (mips_block_move_loop): Strengthen local "label" from rtx to
2444 rtx_code_label *.
2445 (mips_expand_synci_loop): Likewise for locals "label",
2446 "end_label".
2447 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2448 rtx_insn *.
2449 (mips16e_collect_argument_saves): Likewise for locals "insn",
2450 "next".
2451 (mips_find_gp_ref): Likewise for param of callback for "pred"
2452 param, and for local "insn".
2453 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2454 (mips_insn_has_flexible_gp_ref_p): Likewise.
2455 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2456 local "insn".
2457 (mips_epilogue_set_cfa): Likewise for local "insn".
2458 (mips_expand_epilogue): Likewise.
2459 (mips_adjust_insn_length): Likewise for param "insn".
2460 (mips_output_conditional_branch): Likewise.
2461 (mips_output_order_conditional_branch): Likewise.
2462 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2463 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2464 "falu2_turn_enabled_insn".
2465 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2466 "done_label" from rtx to rtx_code_label *.
2467 (struct mips16_constant): Likewise for field "label".
2468 (mips16_add_constant): Likewise for return type.
2469 (mips16_emit_constants_1): Strengthen return type and param "insn"
2470 from rtx to rtx_insn *.
2471 (mips16_emit_constants): Likewise for param "insn".
2472 (mips16_insn_length): Likewise.
2473 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2474 to rtx_code_label *.
2475 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2476 from rtx to rtx_insn *.
2477 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2478 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2479 (r10k_simplify_address): Strengthen param "insn" and local
2480 "def_insn" from rtx to rtx_insn *.
2481 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2482 rtx_insn *.
2483 (r10k_needs_protection_p_1): Update target type of cast of data
2484 from to rtx to rtx_insn *.
2485 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2486 rtx * to rtx_insn **.
2487 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2488 rtx_insn *.
2489 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2490 (mips_call_expr_from_insn): Likewise for param "insn".
2491 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2492 (mips_find_pic_call_symbol): Likewise for param "insn".
2493 (mips_annotate_pic_calls): Likewise for local "insn".
2494 (mips_sim_insn): Likewise for this variable.
2495 (struct mips_sim): Likewise for field "insn" within elements of
2496 last_set array.
2497 (mips_sim_wait_reg): Likewise for param "insn".
2498 (mips_sim_wait_regs): Likewise.
2499 (mips_sim_wait_units): Likewise.
2500 (mips_sim_wait_insn): Likewise.
2501 (mips_sim_issue_insn): Likewise.
2502 (mips_sim_finish_insn): Likewise.
2503 (mips_seq_time): Likewise for param "seq" and local "insn".
2504 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2505 locals "first", "second".
2506 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2507 "last", "last2", "next".
2508 (mips_avoid_hazard): Likewise for params "after", "insn".
2509 (mips_reorg_process_insns): Likewise for locals "insn",
2510 "last_insn", "subinsn", "next_insn".
2511 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2512 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2513 "jump_sequence".
2514 (mips_output_mi_thunk): Likewise for local "insn".
2515 (mips_final_prescan_insn): Likewise for param "insn".
2516
2517 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2518
2519 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2520 Strengthen return type and local "insns" from rtx to rtx_insn *.
2521 (microblaze_legitimize_tls_address): Likewise for local "insns".
2522 (microblaze_block_move_loop): Strengthen local "label" from rtx
2523 to rtx_code_label *.
2524 (microblaze_expand_prologue): Strengthen two locals named "insn"
2525 from rtx to rtx_insn *.
2526 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2527 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2528 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2529 to rtx_code_label *.
2530
2531 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2532
2533 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2534 param from rtx to rtx_insn *.
2535 (mep_reuse_lo): Likewise for third param.
2536 (mep_use_post_modify_p): Likewise for first param.
2537 (mep_core_address_length): Likewise.
2538 (mep_cop_address_length): Likewise.
2539 (mep_final_prescan_insn): Likewise.
2540 (mep_store_data_bypass_p): Likewise for both params.
2541 (mep_mul_hilo_bypass_p): Likewise.
2542 (mep_ipipe_ldc_p): Likewise for param.
2543
2544 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2545 (mep_rewrite_mult): Likewise.
2546 (mep_rewrite_mulsi3): Likewise.
2547 (mep_rewrite_maddsi3): Likewise.
2548 (mep_reuse_lo_p_1): Likewise.
2549 (mep_reuse_lo_p): Likewise.
2550 (mep_frame_expr): Likewise.
2551 (mep_make_parallel): Likewise for both params.
2552 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2553 local "insn".
2554 (mep_use_post_modify_p): Likewise for param "insn".
2555 (mep_core_address_length): Likewise.
2556 (mep_cop_address_length): Likewise.
2557 (mep_reg_set_in_function): Likewise for local "insn".
2558 (mep_asm_without_operands_p): Likewise.
2559 (F): Likewise for return type and param "x".
2560 (add_constant): Likewise for local "insn".
2561 (maybe_dead_move): Likewise for return type and local "insn".
2562 (mep_expand_prologue): Likewise for local "insn".
2563 (mep_final_prescan_insn): Likewise for param "insn".
2564 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2565 "next", "follow", "x".
2566 (mep_insert_repeat_label_last): Likewise for return type, param
2567 "last_insn", and locals "next", "prev". Strengthen param "label"
2568 from rtx to rtx_code_label *.
2569 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2570 rtx_insn *.
2571 (struct mep_doloop_end): Likewise for fields "insn" and
2572 "fallthrough".
2573 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2574 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2575 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2576 rtx_insn *.
2577 (mep_invert_branch): Likewise for params "insn" and "after".
2578 (mep_reorg_erepeat): Likewise for param "insns" and locals
2579 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2580 "l" from rtx to rtx_code_label *.
2581 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2582 from rtx to rtx_insn *.
2583 (mep_reorg_addcombine): Likewise for param "insns" and locals
2584 "i", "n".
2585 (add_sp_insn_p): Likewise for param "insn".
2586 (mep_reorg_noframe): Likewise for param "insns" and locals
2587 "start_frame_insn", "end_frame_insn", "next".
2588 (mep_reorg): Likewise for local "insns".
2589 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2590 cast.
2591 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2592 (mep_mul_hilo_bypass_p): Likewise.
2593 (mep_ipipe_ldc_p): Likewise for param "insn".
2594 (mep_make_bundle): Likewise for return type, param "cop" and local
2595 "insn", splitting out the latter into a new local "seq" for when it
2596 is a SEQUENCE rather than an insn.
2597 (core_insn_p): Likewise for param "insn".
2598 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2599 "last", "first", "note", "prev", "core_insn".
2600
2601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2602
2603 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2604 rtx to rtx_insn *.
2605 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2606 (m68k_final_prescan_insn): Likewise for first param.
2607
2608 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2609 (m68k_set_frame_related): Likewise for param "insn".
2610 (output_btst): Likewise for param "insn".
2611 (m68k_final_prescan_insn): Likewise.
2612 (m68k_move_to_reg): Likewise for local "insn".
2613 (m68k_call_tls_get_addr): Likewise for local "insns".
2614 (m68k_call_m68k_read_tp): Likewise.
2615 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2616 (m68k_output_mi_thunk): Likewise for local "insn".
2617
2618 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2619
2620 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2621 first param from rtx to rtx_insn *.
2622 (iq2000_adjust_insn_length): Likewise.
2623 (iq2000_output_conditional_branch): Likewise.
2624 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2625 "insn" and local "nop_insn".
2626 (iq2000_annotate_frame_insn): Likewise for param "insn".
2627 (iq2000_expand_prologue): Likewise for both locals "insn".
2628 (iq2000_adjust_insn_length): Likewise for param "insn".
2629 (iq2000_output_conditional_branch): Likewise.
2630
2631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2632
2633 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2634 "insns" from rtx to rtx_insn *.
2635 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2636 (struct spill_fill_data): Likewise for field "init_after" and for
2637 elements of array field "prev_insn".
2638 (spill_restore_mem): Likewise for locals "insn", "first".
2639 (do_spill): Likewise for local "insn".
2640 (do_restore): Likewise.
2641 (ia64_expand_prologue): Likewise.
2642 (ia64_expand_epilogue): Likewise.
2643 (emit_insn_group_barriers): Likewise for locals "insn",
2644 "last_label".
2645 (emit_all_insn_group_barriers): Likewise for locals "insn",
2646 "last".
2647 (dfa_stop_insn): Likewise for this global.
2648 (dfa_pre_cycle_insn): Likewise.
2649 (ia64_nop): Likewise.
2650 (final_emit_insn_group_barriers): Likewise for locals "insn",
2651 "last".
2652 (emit_predicate_relation_info): Likewise for locals "head", "n",
2653 "insn", "b", "a".
2654 (ia64_reorg): Likewise for local "insn".
2655 (ia64_output_mi_thunk): Likewise.
2656 (expand_vec_perm_interleave_2): Likewise for local "seq".
2657
2658 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2659
2660 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2661 param 1 "insn" from rtx to rtx_insn *.
2662 (ix86_use_lea_for_mov): Likewise.
2663 (ix86_avoid_lea_for_addr): Likewise.
2664 (ix86_split_lea_for_addr): Likewise.
2665 (ix86_lea_for_add_ok): Likewise.
2666 (ix86_output_call_insn): Likewise.
2667
2668 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2669 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2670 (ix86_output_function_epilogue): Likewise for locals "insn",
2671 "deleted_debug_label".
2672 (legitimize_tls_address): Likewise for local "insn".
2673 (get_some_local_dynamic_name): Likewise.
2674 (increase_distance): Likewise for params "prev", "next".
2675 (distance_non_agu_define_in_bb): Likewise for params "insn",
2676 "start" and locals "prev", "next".
2677 (distance_non_agu_define): Likewise for param "insn".
2678 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2679 locals "next", "prev".
2680 (distance_agu_use): Likewise for param "insn".
2681 (ix86_lea_outperforms): Likewise.
2682 (ix86_ok_to_clobber_flags): Likewise.
2683 (ix86_avoid_lea_for_add): Likewise.
2684 (ix86_use_lea_for_mov): Likewise.
2685 (ix86_avoid_lea_for_addr): Likewise.
2686 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2687 (ix86_split_lea_for_addr): Likewise for param "insn".
2688 (ix86_lea_for_add_ok): Likewise for param "insn".
2689 (ix86_expand_carry_flag_compare): Likewise for local
2690 "compare_seq".
2691 (ix86_expand_int_movcc): Likewise.
2692 (ix86_output_call_insn): Likewise for param "insn".
2693 (ix86_output_call_insn): Likewise for local "i".
2694 (x86_output_mi_thunk): Introduce local "insn", using it in place
2695 of "tmp" when dealing with insns.
2696 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2697 "start".
2698 (ix86_pad_returns): Likewise for locals "ret", "prev".
2699 (ix86_count_insn_bb): Likewise for local "insn".
2700 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2701 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2702 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2703 (expand_vec_perm_interleave2): Likewise for local "seq".
2704 (expand_vec_perm_vperm2f128_vblend): Likewise.
2705 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2706 call to for_each_rtx with for_each_rtx_in_insn.
2707
2708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2709
2710 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2711 "label" from rtx to rtx_code_label *.
2712 (ix86_expand_prologue): Likewise.
2713 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2714 "varargs_label".
2715 (ix86_split_idivmod): Likewise for locals "end_label" and
2716 "qimode_label".
2717 (ix86_expand_branch): Likewise for local "label2".
2718 (ix86_expand_aligntest): Likewise for return type and local "label".
2719 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2720 "top_label".
2721 (expand_movmem_epilogue): Likewise for the various locals named
2722 "label".
2723 (expand_setmem_epilogue): Likewise.
2724 (expand_small_movmem_or_setmem): Likewise for local "label".
2725 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2726 Strengthen param "done_label" from rtx * to rtx_code_label **.
2727 Strengthen locals "loop_label" and "label" from rtx to
2728 rtx_code_label *.
2729 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2730 Likewise for locals "loop_label", "label".
2731 (ix86_expand_set_or_movmem): Likewise for locals "label",
2732 "jump_around_label", "hot_label".
2733 (ix86_expand_strlensi_unroll_1): Likewise for locals
2734 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2735 "end_2_label".
2736 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2737 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2738 "label2", "jump_label".
2739 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2740 local "label".
2741 (ix86_expand_lfloorceil): Likewise for local "label".
2742 (ix86_expand_rint): Likewise.
2743 (ix86_expand_floorceildf_32): Likewise.
2744 (ix86_expand_floorceil): Likewise.
2745 (ix86_expand_rounddf_32): Likewise.
2746 (ix86_expand_trunc): Likewise.
2747 (ix86_expand_truncdf_32): Likewise.
2748 (ix86_expand_round): Likewise.
2749
2750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2751
2752 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2753 first param from rtx to rtx_insn *.
2754 (h8300_insn_length_from_table): Likewise.
2755 * config/h8300/h8300.c (F): Likewise for return type and param
2756 "x".
2757 (Fpa): Add a checked cast to rtx_insn *.
2758 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2759 rtx_insn *.
2760 (final_prescan_insn): Likewise for param "insn".
2761 (h8300_binary_length): Likewise.
2762 (h8300_insn_length_from_table): Likewise.
2763
2764 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2765
2766 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2767 Strengthen first param "insn" from rtx to rtx_insn *.
2768
2769 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2770 Likewise.
2771 (frame_insn): Likewise for return type. Introduce local "insn"
2772 for use in place of local "x" for use as an rtx_insn *.
2773 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2774 (epiphany_expand_prologue): Likewise for local "insn".
2775 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2776 * config/epiphany/resolve-sw-modes.c
2777 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2778 "seq".
2779
2780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2781
2782 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2783 param from rtx to rtx_insn *.
2784 (c6x_final_prescan_insn): Likewise for first param.
2785
2786 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2787 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2788 (c6x_expand_compare): Strengthen local "insns" from rtx to
2789 rtx_insn *.
2790 (c6x_get_unit_specifier): Likewise for param "insn".
2791 (c6x_print_unit_specifier_field): Likewise.
2792 (c6x_final_prescan_insn): Likewise.
2793 (emit_add_sp_const): Likewise for local "insn".
2794 (c6x_expand_prologue): Likewise.
2795
2796 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2797
2798 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2799 param 1 from rtx to rtx_insn *.
2800 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2801 the various locals named "insn".
2802 (expand_epilogue_reg_restore): Likewise.
2803 (frame_related_constant_load): Likewise.
2804 (add_to_reg): Likewise.
2805 (emit_link_insn): Likewise.
2806 (do_link): Likewise.
2807 (expand_interrupt_handler_prologue): Likewise.
2808 (branch_dest): Likewise for param "branch".
2809 (asm_conditional_branch): Likewise for param "insn".
2810 (gen_one_bundle): Likewise for elements of param "slot" and local
2811 "t".
2812 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2813 elements of local "slot".
2814 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2815 "queue", "next_queue", "prev".
2816 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2817 (add_sched_insns_for_speculation): Likewise for local "insn".
2818
2819 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2820
2821 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2822 from rtx to rtx_insn *.
2823 (output_movhi): Likewise.
2824 (output_movsisf): Likewise.
2825 (avr_out_tstsi): Likewise.
2826 (avr_out_tsthi): Likewise.
2827 (avr_out_tstpsi): Likewise.
2828 (avr_out_compare): Likewise.
2829 (avr_out_compare64): Likewise.
2830 (avr_out_movpsi): Likewise.
2831 (ashlqi3_out): Likewise.
2832 (ashlhi3_out): Likewise.
2833 (ashlsi3_out): Likewise.
2834 (ashrqi3_out): Likewise.
2835 (ashrhi3_out): Likewise.
2836 (ashrsi3_out): Likewise.
2837 (lshrqi3_out): Likewise.
2838 (lshrhi3_out): Likewise.
2839 (lshrsi3_out): Likewise.
2840 (avr_out_ashlpsi3): Likewise.
2841 (avr_out_ashrpsi3): Likewise.
2842 (avr_out_lshrpsi3): Likewise.
2843 (avr_out_fract): Likewise.
2844 (avr_out_sbxx_branch): Likewise.
2845 (avr_out_round): Likewise.
2846 (avr_out_xload): Likewise.
2847 (avr_out_movmem): Likewise.
2848 (adjust_insn_length): Likewise.
2849 (avr_out_lpm): Likewise.
2850 (reg_unused_after): Likewise.
2851 (_reg_unused_after): Likewise.
2852 (avr_jump_mode): Likewise for second param.
2853 (jump_over_one_insn): Likewise for first param.
2854 (avr_final_prescan_insn): Likewise.
2855 (out_shift_with_cnt): Likewise for second param.
2856
2857 * config/avr/avr.c (get_sequence_length): Likewise for param
2858 "insns" and local "insn".
2859 (emit_push_byte): Likewise for local "insn".
2860 (emit_push_sfr): Likewise.
2861 (avr_prologue_setup_frame): Likewise for locals "insn",
2862 "fp_plus_insns", "sp_plus_insns".
2863 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2864 "sp_plus_insns".
2865 (avr_jump_mode): Likewise for param "insn".
2866 (avr_final_prescan_insn): Likewise.
2867 (avr_find_unused_d_reg): Likewise.
2868 (avr_out_lpm_no_lpmx): Likewise.
2869 (avr_out_lpm): Likewise.
2870 (avr_out_xload): Likewise.
2871 (output_movqi): Likewise.
2872 (output_movhi): Likewise.
2873 (out_movqi_r_mr): Likewise.
2874 (out_movhi_r_mr): Likewise.
2875 (out_movsi_r_mr): Likewise.
2876 (out_movsi_mr_r): Likewise.
2877 (output_movsisf): Likewise.
2878 (avr_out_load_psi): Likewise.
2879 (avr_out_store_psi): Likewise.
2880 (avr_out_movpsi): Likewise.
2881 (out_movqi_mr_r): Likewise.
2882 (avr_out_movhi_mr_r_xmega): Likewise.
2883 (out_movhi_mr_r): Likewise.
2884 (compare_condition): Likewise for param "insn" and local "next".
2885 (compare_sign_p): Likewise for param "insn".
2886 (compare_diff_p): Likewise.
2887 (compare_eq_p): Likewise.
2888 (avr_out_compare): Likewise.
2889 (avr_out_compare64): Likewise.
2890 (avr_out_tsthi): Likewise.
2891 (avr_out_tstpsi): Likewise.
2892 (avr_out_tstsi): Likewise.
2893 (out_shift_with_cnt): Likewise.
2894 (ashlqi3_out): Likewise.
2895 (ashlhi3_out): Likewise.
2896 (avr_out_ashlpsi3): Likewise.
2897 (ashlsi3_out): Likewise.
2898 (ashrqi3_out): Likewise.
2899 (ashrhi3_out): Likewise.
2900 (avr_out_ashrpsi3): Likewise.
2901 (ashrsi3_out): Likewise.
2902 (lshrqi3_out): Likewise.
2903 (lshrhi3_out): Likewise.
2904 (avr_out_lshrpsi3): Likewise.
2905 (lshrsi3_out): Likewise.
2906 (avr_out_fract): Likewise.
2907 (avr_out_round): Likewise.
2908 (avr_adjust_insn_length): Likewise.
2909 (reg_unused_after): Likewise.
2910 (_reg_unused_after): Likewise.
2911 (avr_compare_pattern): Likewise.
2912 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2913 and locals "branch1", "branch2", "insn2", "jump".
2914 (avr_reorg): Likewise for local "insn".
2915 (avr_2word_insn_p): Likewise for param "insn".
2916 (jump_over_one_insn_p): Likewise.
2917 (avr_out_sbxx_branch): Likewise.
2918 (avr_out_movmem): Likewise.
2919
2920 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2921
2922 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2923 param from rtx to rtx_insn *.
2924 (thumb1_final_prescan_insn): Likewise.
2925 (thumb2_final_prescan_insn): Likewise.
2926
2927 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2928 rtx to rtx_insn *.
2929 (struct minipool_node): Likewise for field "insn".
2930 (dump_minipool): Likewise for param "scan".
2931 (create_fix_barrier): Likewise for local "from". Strengthen local
2932 "label" from rtx to rtx_code_label *.
2933 (push_minipool_barrier): Strengthen param "insn" from rtx to
2934 rtx_insn *.
2935 (push_minipool_fix): Likewise.
2936 (note_invalid_constants): Likewise.
2937 (thumb2_reorg): Likewise for local "insn".
2938 (arm_reorg): Likewise.
2939 (thumb2_final_prescan_insn): Likewise for param
2940 "insn" and local "first_insn".
2941 (arm_final_prescan_insn): Likewise for param "insn" and locals
2942 "start_insn", "this_insn".
2943 (arm_debugger_arg_offset): Likewise for param "insn".
2944 (thumb1_emit_multi_reg_push): Likewise for return type and local
2945 "insn".
2946 (thumb1_final_prescan_insn): Likewise for param "insn".
2947 (thumb_far_jump_used_p): Likewise for local "insn".
2948 (thumb1_expand_prologue): Likewise.
2949 (arm_expand_epilogue_apcs_frame): Likewise.
2950 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2951 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2952 from rtx to rtx_code_label *.
2953 (arm_split_atomic_op): Likewise for local "label".
2954 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2955
2956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2957
2958 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2959 first param from rtx to rtx_insn *.
2960 (arc_verify_short): Likewise.
2961 (arc_short_long): Likewise.
2962 (arc_need_delay): Likewise.
2963
2964 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2965 "target_insn".
2966 (arc_ccfsm_advance): Likewise for param "insn" and locals
2967 "start_insn", "this_insn".
2968 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2969 (arc_ccfsm_post_advance): Likewise for param "insn".
2970 (arc_next_active_insn): Likewise for return type and param "insn".
2971 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2972 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2973 (output_short_suffix): Likewise for local "insn".
2974 (arc_final_prescan_insn): Likewise for param "insn". Remove
2975 now-redundant checked cast.
2976 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2977 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2978 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2979 for use where lc_set became an insn.
2980 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2981 rtx to rtx_insn *.
2982 (arc_get_insn_variants): Likewise for local "prev".
2983 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2984 "next".
2985 (arc_predicate_delay_insns): Likewise for local "insn".
2986 (arc_pad_return): Likewise for local "prev". For now, add a
2987 checked cast when extracting the insn from "final_sequence".
2988 (arc_short_long): Likewise for param "insn".
2989 (arc_need_delay): Likewise for param "insn" and local "next".
2990 (arc_label_align): Likewise for locals "prev", "next".
2991
2992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2993
2994 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2995 "insn" from rtx to rtx_insn *.
2996 (alpha_gp_save_rtx): Likewise for local "seq".
2997 (alpha_instantiate_decls): Likewise for local "top".
2998 (get_some_local_dynamic_name): Likewise for local "insn".
2999 (alpha_does_function_need_gp): Likewise.
3000 (set_frame_related_p): Likewise for return type and for locals
3001 "seq" and "insn".
3002 (emit_frame_store_1): Likewise for local "insn".
3003 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3004 (alpha_end_function): Likewise for local "insn".
3005 (alpha_output_mi_thunk_osf): Likewise.
3006 (alphaev4_insn_pipe): Likewise for param "insn".
3007 (alphaev5_insn_pipe): Likewise.
3008 (alphaev4_next_group): Likewise for return type and param 1
3009 "insn".
3010 (alphaev5_next_group): Likewise.
3011 (alpha_align_insns_1): Likewise for return type and param 1 of
3012 callback param "next_group", and for locals "i", "next", "prev",
3013 "where", "where2", "insn".
3014
3015 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3016
3017 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3018 rather than modifying the stmt.
3019
3020 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3021
3022 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3023 cgraph_state conversion.
3024
3025 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3026
3027 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3028 Strengthen local "insns" from rtx to rtx_insn *.
3029 (aarch64_set_frame_expr): Likewise for local "insn".
3030 (aarch64_save_or_restore_fprs): Likewise.
3031 (aarch64_save_or_restore_callee_save_registers): Likewise.
3032 (aarch64_expand_prologue): Likewise.
3033 (aarch64_expand_epilogue): Likewise.
3034 (aarch64_output_mi_thunk): Likewise.
3035 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3036 "label2" from rtx to rtx_code_label *.
3037 (aarch64_split_atomic_op): Likewise for local "label".
3038
3039 2014-08-25 Martin Liska <mliska@suse.cz>
3040
3041 * cgraph.h (symtab_node):
3042 (bool needed_p (void)): created from decide_is_symbol_needed
3043 (bool referred_to_p (void)): created from referred_to_p
3044 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3045 * cgraph.h (cgraph_node):
3046 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3047 (void expand (void)): created from expand_function
3048 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3049 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3050 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3051 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3052 * cgraph.h (varpool_node):
3053 (static void add (tree decl): created from varpool_add_new_variable
3054 * cgraph.h (cgraph_edge):
3055 void remove (void);
3056 (void remove_caller (void)): created from cgraph_edge_remove_caller
3057 (void remove_callee (void)): created from cgraph_edge_remove_callee
3058 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3059 created from cgraph_set_call_stmt
3060 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3061 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3062 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3063 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3064 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3065 created from cgraph_speculative_call_info
3066 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3067 int freq_scale, bool update_original)): created from cgraph_clone_edge
3068 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3069 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3070 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3071 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3072 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3073 (static void rebuild_references (void)): created from cgraph_rebuild_references
3074 * cgraph.h (symbol_table):
3075 (create_reference): renamed from add_reference
3076 (maybe_create_reference): renamed from maybe_add_reference
3077 (void register_symbol (symtab_node *node)): new function
3078 (void clear_asm_symbols (void)): new function
3079 (void unregister (symtab_node *node)): new function
3080 (void release_symbol (cgraph_node *node, int uid)): new function
3081 (cgraph_node * allocate_cgraph_symbol (void)): new function
3082 (void initialize (void)): created from cgraph_init
3083 (symtab_node *first_symbol (void)):new function
3084 (asm_node *first_asm_symbol (void)):new function
3085 (symtab_node *first_defined_symbol (void)):new function
3086 (varpool_node *first_variable (void)):new function
3087 (varpool_node *next_variable (varpool_node *node)):new function
3088 (varpool_node *first_static_initializer (void)):new function
3089 (varpool_node *next_static_initializer (varpool_node *node)):new function
3090 (varpool_node *first_defined_variable (void)):new function
3091 (varpool_node *next_defined_variable (varpool_node *node)):new function
3092 (cgraph_node *first_defined_function (void)):new function
3093 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3094 (cgraph_node *first_function (void)):new function
3095 (cgraph_node *next_function (cgraph_node *node)):new function
3096 (cgraph_node *first_function_with_gimple_body (void)):new function
3097 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3098 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3099 created from symtab_remove_unreachable_nodes
3100 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3101 (void process_new_functions (void)): created from cgraph_process_new_functions
3102 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3103 (bool output_variables (void)): created from varpool_node::output_variables
3104 (void output_asm_statements (void)): created from output_asm_statements
3105 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3106 (void compile (void)): created from compile
3107 (void output_weakrefs (void)): created from output_weakrefs
3108 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3109 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3110 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3111 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3112 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3113 created from cgraph_next_function_with_gimple_body
3114 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3115 created from cgraph_remove_edge_removal_hook
3116 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3117 created from cgraph_add_node_removal_hook
3118 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3119 created from cgraph_remove_node_removal_hook
3120 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3121 created from varpool_add_node_removal_hook
3122 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3123 created from varpool_remove_node_removal_hook
3124 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3125 created from cgraph_add_function_insertion_hook
3126 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3127 created from cgraph_remove_function_insertion_hook
3128 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3129 created from varpool_add_variable_insertion_hook
3130 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3131 created from varpool_remove_variable_insertion_hook
3132 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3133 created from cgraph_add_edge_duplication_hook
3134 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3135 created from cgraph_remove_edge_duplication_hook
3136 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3137 created from cgraph_add_node_duplication_hook
3138 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3139 created from cgraph_remove_node_duplication_hook
3140 (void call_edge_removal_hooks (cgraph_edge *e)):
3141 created from cgraph_call_edge_removal_hooks
3142 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3143 created from call_function_insertion_hooks
3144 (void call_cgraph_removal_hooks (cgraph_node *node)):
3145 created from cgraph_call_node_removal_hooks
3146 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3147 created from cgraph_node::call_duplication_hooks
3148 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3149 created from cgraph_call_edge_duplication_hooks
3150 (void call_varpool_removal_hooks (varpool_node *node)):
3151 created from varpool_call_node_removal_hooks
3152 (void call_varpool_insertion_hooks (varpool_node *node)):
3153 created from varpool_call_variable_insertion_hooks
3154 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3155 created from insert_to_assembler_name_hash
3156 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3157 created from unlink_from_assembler_name_hash
3158 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3159 created from symtab_prevail_in_asm_name_hash
3160 (void symtab_initialize_asm_name_hash (void)):
3161 created from symtab_initialize_asm_name_hash
3162 (void change_decl_assembler_name (tree decl, tree name)):
3163 created from change_decl_assembler_name
3164 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3165 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3166 created from decl_assembler_name_hash
3167 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3168 created from decl_assembler_name_equal
3169 (static hashval_t hash_node_by_assembler_name (const void *p)):
3170 created from hash_node_by_assembler_name
3171 (static int eq_assembler_name (const void *p1, const void *p2)):
3172 created from eq_assembler_name
3173
3174 2014-08-25 Marek Polacek <polacek@redhat.com>
3175
3176 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3177
3178 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3179
3180 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3181 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3182 SWI1248_AVX512BW mode iterator.
3183
3184 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3185
3186 PR target/62111
3187 * config/sh/predicates.md (general_extend_operand): Disable
3188 TRUNCATE before reload completes.
3189
3190 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3191
3192 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3193
3194 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3195
3196 PR target/61996
3197 * config/sh/sh.opt (musermode): Allow negative form.
3198 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3199 targets that don't support it.
3200 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3201 Document -mno-usermode option.
3202
3203 2014-08-24 Kito Cheng <kito@0xlab.org>
3204
3205 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3206 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3207 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3208 * doc/tm.texi: Regenerate.
3209
3210 2014-08-24 Kito Cheng <kito@0xlab.org>
3211
3212 * ira.c: Fix typo in comment.
3213
3214 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3215
3216 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3217 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3218
3219 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3220
3221 PR target/62038
3222 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3223 last_address when the current function is a thunk.
3224 (pa_asm_output_mi_thunk): When we don't have named sections or they
3225 are not being used, check that thunk can reach the stub table with a
3226 short branch.
3227
3228 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3229
3230 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3231 rtx_insn *.
3232 (pass_web::execute): Likewise for local "insn".
3233
3234 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3235
3236 * var-tracking.c (struct micro_operation_def): Strengthen field
3237 "insn" from rtx to rtx_insn *.
3238 (struct emit_note_data_def): Likewise.
3239 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3240 (vt_stack_adjustments): Likewise for local "insn".
3241 (adjust_insn): Likewise for param "insn".
3242 (val_store): Likewise.
3243 (val_resolve): Likewise.
3244 (struct count_use_info): Likewise for field "insn".
3245 (log_op_type): Likewise for param "insn".
3246 (reverse_op): Likewise.
3247 (prepare_call_arguments): Likewise.
3248 (add_with_sets): The initial param takes an insn, but we can't
3249 yet strengthen it from rtx to rtx_insn * since it's used as a
3250 cselib_record_sets_hook callback. For now rename initial param
3251 from "insn" to "uncast_insn", and introduce a local "insn" of
3252 the stronger rtx_insn * type, with a checked cast.
3253 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3254 rtx_insn *.
3255 (emit_note_insn_var_location): Likewise.
3256 (emit_notes_for_changes): Likewise.
3257 (emit_notes_for_differences): Likewise.
3258 (next_non_note_insn_var_location): Likewise for return type and
3259 for param "insn".
3260 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3261 (vt_initialize): Likewise for local "insn".
3262 (delete_debug_insns): Likewise for locals "insn" and "next".
3263
3264 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3265
3266 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3267 rtx_insn *.
3268 (mark_constant_pool): Likewise for local "insn".
3269
3270 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3271
3272 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3273 rtx to rtx_insn *.
3274 (dead_debug_promote_uses): Likewise.
3275 (dead_debug_insert_temp): Likewise.
3276
3277 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3278
3279 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3280 from const_rtx to const rtx_insn *.
3281 (store_killed_after): Likewise. Strengthen locals "last", "act"
3282 from rtx to rtx_insn *.
3283 (store_killed_before): Strengthen param "insn" from const_rtx to
3284 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3285 (find_moveable_store): Strengthen param "insn" from rtx to
3286 rtx_insn *.
3287 (compute_store_table): Likewise for local "insn".
3288 (insert_insn_start_basic_block): Likewise for param "insn" and
3289 locals "prev", "before", "insn".
3290 (insert_store): For now, add a checked cast to rtx_insn * on the
3291 result of gen_move_insn.
3292 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3293 to rtx_insn *.
3294 (replace_store_insn): Likewise. For now, add a checked cast to
3295 rtx_insn * on the result of gen_move_insn.
3296
3297 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3298
3299 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3300 rtx_insn *.
3301 (expand_sjlj_dispatch_table): Likewise.
3302
3303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3304
3305 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3306 "insn" from rtx to rtx_insn *.
3307
3308 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3309
3310 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3311 "insn" from rtx to rtx_insn *.
3312 (dup_block_and_redirect): Likewise for param 3 "before".
3313
3314 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3315 from rtx to rtx_insn *.
3316 (move_insn_for_shrink_wrap): Likewise.
3317 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3318 (dup_block_and_redirect): Likewise for param "before" and local
3319 "insn".
3320 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3321 "end".
3322 (convert_to_simple_return): Likewise for local "start".
3323
3324 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3325 Strengthen local "insn" from rtx to rtx_insn *, for use when
3326 invoking requires_stack_frame_p.
3327
3328 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3329
3330 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3331 rtx_insn *.
3332 (speculate_expr): Likewise for locals "orig_insn_rtx",
3333 "spec_insn_rtx".
3334 (eq_transformed_insns): Likewise for locals "i1", "i2".
3335 (check_for_new_jump): Likewise for return type and local "end".
3336 (find_new_jump): Likewise for return type and local "jump".
3337 (sel_split_edge): Likewise for local "jump".
3338 (sel_create_recovery_block): Likewise.
3339 (sel_redirect_edge_and_branch_force): Likewise.
3340 (sel_redirect_edge_and_branch): Likewise.
3341
3342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3343
3344 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3345 "new_insn" from rtx to rtx_insn *.
3346 (create_insn_rtx_with_rhs): Likewise for return type and for local
3347 "insn_rtx".
3348 (create_insn_rtx_with_lhs): Likewise.
3349 (create_speculation_check): Likewise for local "insn_rtx".
3350 (implicit_clobber_conflict_p): Likewise for local "insn".
3351 (get_expr_cost): Likewise.
3352 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3353 (move_cond_jump): Likewise for locals "next", "prev", "link",
3354 "head", "from", "to".
3355
3356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3357
3358 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3359 "next" from rtx to rtx_insn *.
3360 (find_conditional_protection): Likewise for local "next".
3361 (is_conditionally_protected): Likewise for local "insn1".
3362 (is_pfree): Likewise for locals "insn1", "insn2".
3363
3364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3365
3366 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3367 from rtx to rtx_insn *.
3368
3369 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3370 locals "insn1", "insn2" from rtx to rtx_insn *.
3371 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3372 locals "insn", "prev", "last_jump", "next_tail".
3373 (schedule_ebb): Likewise for params "head", "tail".
3374 (schedule_ebbs): Likewise for locals "tail", "head".
3375
3376 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3377 to rtx_insn on "last_insn" in one of the invocations of
3378 schedule_ebb.
3379
3380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3381
3382 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3383 "elem", "insn" from rtx to rtx_insn *.
3384 (change_spec_dep_to_hard): Likewise.
3385 (get_back_and_forw_lists): Likewise for local "con".
3386 (sd_add_dep): Likewise for locals "elem", "insn".
3387 (sd_resolve_dep): Likewise for locals "pro", "con".
3388 (sd_unresolve_dep): Likewise.
3389 (sd_delete_dep): Likewise.
3390 (chain_to_prev_insn): Likewise for local "pro".
3391 (find_inc): Likewise for locals "pro", "con".
3392
3393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3394
3395 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3396 to rtx_insn *.
3397 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3398 const rtx_insn *.
3399 (modified_between_p): Strengthen local "insn" from rtx to
3400 rtx_insn *.
3401 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3402 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3403 const rtx_insn *.
3404
3405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3406
3407 * resource.c (next_insn_no_annul): Strengthen local "next" from
3408 rtx to rtx_insn *.
3409 (mark_referenced_resources): Likewise for local "insn".
3410
3411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3412
3413 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3414 to rtx_insn *.
3415 (find_reloads): Likewise for param 1.
3416 (subst_reloads): Likewise for sole param.
3417 (find_equiv_reg): Likwise for param 2.
3418 (regno_clobbered_p): Likwise for param 2.
3419 (reload): Likewise for param 1.
3420
3421 * caller-save.c (save_call_clobbered_regs): Strengthen local
3422 "insn" from rtx to rtx_insn *.
3423 (insert_one_insn): Likewise for local "insn".
3424
3425 * reload.c (this_insn): Likewise for this global.
3426 (find_reloads): Likewise for param "insn".
3427 (find_reloads_toplev): Likewise.
3428 (find_reloads_address): Likewise.
3429 (subst_reg_equivs): Likewise.
3430 (update_auto_inc_notes): Likewise.
3431 (find_reloads_address_1): Likewise.
3432 (find_reloads_subreg_address): Likewise.
3433 (subst_reloads): Likewise.
3434 (find_equiv_reg): Likewise, also for local "p".
3435 (regno_clobbered_p): Likewise for param "insn".
3436
3437 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3438 array.
3439 (spill_reg_store): Likewise for the elements of this array.
3440 (remove_init_insns): Likewise for local "equiv_insn".
3441 (will_delete_init_insn_p): Likewise for param "insn".
3442 (reload): Likewise for param ""first" and local "insn".
3443 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3444 rtx_insn *.
3445 (calculate_elim_costs_all_insns): Likewise.
3446 (delete_caller_save_insns): Likewise.
3447 (spill_failure): Likewise for param "insn".
3448 (delete_dead_insn): Likewise.
3449 (set_label_offsets): Likewise.
3450 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3451 "prev_insn".
3452 (elimination_costs_in_insn): Likewise for param "insn".
3453 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3454 when referring to an insn.
3455 (set_initial_label_offsets): Likewise.
3456 (set_offsets_for_label): Strengthen param "insn" from rtx to
3457 rtx_insn *.
3458 (init_eliminable_invariants): Likewise for param "first" and local
3459 "insn".
3460 (fixup_eh_region_note): Likewise for param "insn".
3461 (reload_as_needed): Likewise for locals "prev", "insn",
3462 "old_next", "old_prev", "next".
3463 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3464 "last".
3465 (reload_inheritance_insn): Strengthen elements of this array from
3466 rtx to rtx_insn *.
3467 (failed_reload): Likewise for param "insn".
3468 (choose_reload_regs): Likewise for local "insn". Replace use of
3469 NULL_RTX with NULL when referring to an insn.
3470 (input_reload_insns): Strengthen elements of this array from rtx
3471 to rtx_insn *.
3472 (other_input_address_reload_insns): Likewise for this global.
3473 (other_input_reload_insns): Likewise for this global.
3474 (input_address_reload_insns): Likwise for the elements of this
3475 array.
3476 (inpaddr_address_reload_insns): Likwise for the elements of this
3477 array.
3478 (output_reload_insns): Likewise for the elements of this array.
3479 (output_address_reload_insns): Likewise for the elements of this
3480 array.
3481 (outaddr_address_reload_insns): Likewise for the elements of this
3482 array.
3483 (operand_reload_insns): Likewise for this global.
3484 (other_operand_reload_insns): Likewise for this global.
3485 (other_output_reload_insns): Likewise for the elements of this
3486 array.
3487 (new_spill_reg_store): Likewise for the elements of this
3488 array.
3489 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3490 Strengthen local "where" from rtx * to rtx_insn **.
3491 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3492 from rtx to rtx_insn *.
3493 (do_input_reload): Likewise for local "insn".
3494 (do_output_reload): Likewise for local "insn".
3495 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3496 (emit_insn_if_valid_for_reload): Likewise for return type and local
3497 "last". Add checked cast to rtx_insn when returning "insn" since
3498 this has been through emit_insn.
3499 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3500 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3501 returning "insn" since it's been through
3502 emit_insn_if_valid_for_reload at this point.
3503 (delete_output_reload): Strengthen param "insn" and locals
3504 "output_reload_insn", "i2" from rtx to rtx_insn *.
3505 (delete_address_reloads): Likewise for params "dead_insn",
3506 "current_insn" and locals "prev", "next".
3507 (delete_address_reloads_1): Likewise for params "dead_insn",
3508 "current_insn" and locals "prev", "i2".
3509 (inc_for_reload): Likewise for locals "last", "add_insn".
3510 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3511 rtx_insn *.
3512
3513 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3514 param of this duplicate of the prototype from reload.h
3515
3516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3517
3518 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3519 rtx to rtx_insn *.
3520 (regstat_bb_compute_calls_crossed): Likewise.
3521
3522 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3523
3524 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3525 to rtx_insn *.
3526 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3527 with an insn.
3528 (regrename_analyze): Strengthen local "insn" from rtx to
3529 rtx_insn *.
3530 (scan_rtx_reg): Likewise for param "insn".
3531 (scan_rtx_address): Likewise.
3532 (scan_rtx): Likewise.
3533 (restore_operands): Likewise.
3534 (record_out_operands): Likewise.
3535 (build_def_use): Likewise for local "insn". Replace use of
3536 NULL_RTX with NULL when dealing with an insn.
3537
3538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3539
3540 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3541 * reginfo.c (reg_scan): Likewise, also for local "insn".
3542 (reg_scan_mark_refs): Likewise for param "insn".
3543 (init_subregs_of_mode): Likewise for local "insn".
3544
3545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3546
3547 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3548 "insn" from rtx to rtx_insn *.
3549 (replace_oldest_value_reg): Likewise for param "insn".
3550 (replace_oldest_value_addr): Likewise.
3551 (replace_oldest_value_mem): Likewise.
3552 (apply_debug_insn_changes): Likewise for local "last_insn".
3553 (copyprop_hardreg_forward_1): Likewise for local "insn".
3554
3555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3556
3557 * reg-stack.c (next_flags_user): Strengthen return type and param
3558 "insn" from rtx to rtx_insn *.
3559 (straighten_stack): Likewise for param "insn".
3560 (check_asm_stack_operands): Likewise.
3561 (remove_regno_note): Likewise.
3562 (emit_pop_insn): Likewise for return type, param "insn", local
3563 "pop_insn".
3564 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3565 "limit" from rtx to rtx_insn *.
3566 (swap_to_top): Likewise for param "insn".
3567 (move_for_stack_reg): Likewise.
3568 (move_nan_for_stack_reg): Likewise.
3569 (swap_rtx_condition): Likewise.
3570 (compare_for_stack_reg): Likewise.
3571 (subst_all_stack_regs_in_debug_insn): Likewise.
3572 (subst_stack_regs_pat): Likewise, and local "insn2".
3573 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3574 rtx_insn *.
3575 (subst_stack_regs): Likewise.
3576 (change_stack): Likewise.
3577 (convert_regs_1): Likewise for locals "insn", "next".
3578
3579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3580
3581 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3582 rtx_insn *.
3583 (combine_set_extension): Likewise for param "curr_insn".
3584 (transform_ifelse): Likewise for param "def_insn".
3585 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3586 from vec<rtx> * to vec<rtx_insn *> *.
3587 (is_cond_copy_insn): Likewise for param "insn".
3588 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3589 to vec<rtx_insn *>.
3590 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3591 local "def_insn" from rtx to rtx_insn *.
3592 (get_sub_rtx): Likewise for param "def_insn".
3593 (merge_def_and_ext): Likewise.
3594 (combine_reaching_defs): Likewise.
3595 (add_removable_extension): Likewise for param "insn".
3596 (find_removable_extensions): Likewise for local "insn".
3597 (find_and_remove_re): Likewise for locals "curr_insn" and
3598 "def_insn". Strengthen locals "reinsn_del_list" and
3599 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3600
3601 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3602
3603 * recog.c (split_insn): Strengthen param "insn" and locals
3604 "first", "last" from rtx to rtx_insn *.
3605 (split_all_insns): Likewise for locals "insn", "next".
3606 (split_all_insns_noflow): Likewise.
3607
3608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3609
3610 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3611 const rtx_insn *.
3612 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3613 (debug_rtx_find): Likewise for param 1 "x".
3614
3615 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3616 const_rtx to const rtx_insn *. Likewise for local "insn".
3617 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3618 (debug_rtx_find): Likewise for param 1 "x".
3619 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3620 from const_rtx to const rtx_insn * within the appropriate cases of
3621 the switch statement.
3622
3623 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3624 Strengthen local "insns" from rtx to rtx_insn * since this is
3625 passed to a call to debug_rtx_list.
3626
3627 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3628
3629 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3630 to rtx_insn *.
3631
3632 * function.c (stack_protect_epilogue): Add checked cast to
3633 rtx_insn for now when invoking predict_insn_def.
3634
3635 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3636 rtx_insn *.
3637 (predict_insn_def): Likewise.
3638 (rtl_predict_edge): Likewise for local "last_insn".
3639 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3640 const rtx_insn *.
3641 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3642 to rtx_insn *.
3643 (bb_estimate_probability_locally): Likewise for local "last_insn".
3644 (expensive_function_p): Likewise for local "insn".
3645
3646 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3647 local "jmp", since this is used when invoking predict_insn_def.
3648
3649 2014-08-22 Marek Polacek <polacek@redhat.com>
3650
3651 PR c++/62199
3652 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3653
3654 2014-08-22 Marek Polacek <polacek@redhat.com>
3655
3656 PR c/61271
3657 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3658 a comparison in parens.
3659 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3660 in parens.
3661
3662 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3663
3664 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3665 rtx_insn *.
3666
3667 * cprop.c (fis_get_condition): Likewise.
3668
3669 * postreload.c (reload_cse_regs): Likewise for param "first".
3670 (reload_cse_simplify): Likewise for param "insn".
3671 (reload_cse_regs_1): Likewise for local "insn".
3672 (reload_cse_simplify_set): Likewise for param "insn".
3673 (reload_cse_simplify_operands): Likewise.
3674 (struct reg_use): Likewise for field "insn".
3675 (reload_combine_purge_insn_uses): Likewise for param "insn".
3676 (fixup_debug_insns): Likewise for params "from", "to" and local
3677 "insn".
3678 (try_replace_in_use): Likewise for local "use_insn".
3679 (reload_combine_recognize_const_pattern): Likewise for param
3680 "insn" and locals "add_moved_after_insn", "use_insn".
3681 (reload_combine_recognize_pattern): Likewise for param "insn" and
3682 local "prev".
3683 (reload_combine): Likewise for locals "insn", "prev".
3684 (reload_combine_note_use): Likewise for param "insn".
3685 (move2add_use_add2_insn): Likewise.
3686 (move2add_use_add3_insn): Likewise.
3687 (reload_cse_move2add): Likewise, also for local "next".
3688 (move2add_note_store): Likewise for local "insn".
3689
3690 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3691
3692 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3693 rtx to rtx_insn *.
3694 (struct unoccr): Likewise.
3695 (struct modifies_mem): Likewise.
3696 (alloc_mem): Likewise for local "insn".
3697 (insert_expr_in_table): Likewise for param "insn".
3698 (dump_expr_hash_table_entry): Likewise for local "insn".
3699 (oprs_unchanged_p): Likewise for param "insn".
3700 (load_killed_in_block_p): Likewise for local "setter".
3701 (record_last_reg_set_info): Likewise for param "insn".
3702 (record_last_reg_set_info_regno): Likewise.
3703 (record_last_mem_set_info): Likewise.
3704 (record_last_set_info): Likewise for local "last_set_insn".
3705 (record_opr_changes): Likewise for param "insn".
3706 (hash_scan_set): Likewise.
3707 (compute_hash_table): Likewise for local "insn".
3708 (get_avail_load_store_reg): Likewise for param "insn".
3709 (eliminate_partially_redundant_load): Likewise, also for locals
3710 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3711 RTX for insns.
3712 (eliminate_partially_redundant_loads): Likewise for local "insn".
3713
3714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3715
3716 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3717 rtx to rtx_insn *.
3718 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3719 (expand_twoval_unop): Likewise for locals entry_last", "last".
3720 (expand_twoval_binop): Likewise.
3721 (expand_twoval_binop_libfunc): Likewise for local "insns".
3722 (widen_leading): Likewise for local "last".
3723 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3724 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3725 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3726 (expand_parity): Likewise for locals "last" and "seq".
3727 (expand_ffs): Likewise for local "seq". Strengthen local
3728 "nonzero_label" from rtx to rtx_code_label *.
3729 (expand_absneg_bit): Strengthen local "insns" from rtx to
3730 rtx_insn *.
3731 (expand_unop_direct): Likewise for local "last".
3732 (expand_unop): Likewise for locals "last", "insns".
3733 (expand_abs_nojump): Likewise for local "last".
3734 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3735 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3736 rtx_insn *.
3737 (expand_copysign_absneg): Strengthen local "label" from rtx to
3738 rtx_code_label *.
3739 (expand_copysign_bit): Strengthen local "insns" from rtx to
3740 rtx_insn *.
3741 (struct no_conflict_data): Likewise for fields "first", "insn".
3742 (emit_libcall_block_1): Likewise for param "insns" and locals
3743 "next", "last", "insn".
3744 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3745 on "insns" when invoking emit_libcall_block_1. Ultimately we
3746 want to strengthen insns itself.
3747 (prepare_cmp_insn): Strengthen local "last" from rtx to
3748 rtx_insn *.
3749 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3750 (prepare_float_lib_cmp): Likewise for local "insns".
3751 (emit_conditional_move): Likewise for local "last".
3752 (emit_conditional_add): Likewise.
3753 (have_sub2_insn): Likewise for local "seq".
3754 (expand_float): Likewise for local "insns". Strengthen locals
3755 "label", "neglabel" from rtx to rtx_code_label *.
3756 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3757 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3758 (expand_fixed_convert): Likewise for local "insns" (to
3759 rtx_insn *).
3760 (expand_sfix_optab): Likewise for local "last".
3761 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3762 to rtx_code_label *.
3763 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3764 from rtx to rtx_insn *.
3765 (expand_atomic_fetch_op): Likewise for local "insn".
3766 (maybe_legitimize_operand_same_code): Likewise for local "last".
3767 (maybe_legitimize_operands): Likewise.
3768
3769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3770
3771 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3772 "insn" from rtx to rtx_insn *.
3773 (ps_rtl_insn): Likewise for return type.
3774 (doloop_register_get): Likewise for params "head", "tail" and
3775 locals "insn", "first_insn_not_to_check".
3776 (schedule_reg_move): Likewise for local "this_insn".
3777 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3778 of gen_move_insn for now.
3779 (reset_sched_times): Strengthen local "insn" from rtx to
3780 rtx_insn *.
3781 (permute_partial_schedule): Likewise.
3782 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3783 (dump_insn_location): Likewise for param "insn".
3784 (loop_canon_p): Likewise for local "insn".
3785 (sms_schedule): Likewise.
3786 (print_partial_schedule): Likewise.
3787 (ps_has_conflicts): Likewise.
3788
3789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3790
3791 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3792 "tailp" from rtx * to rtx_insn **.
3793
3794 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3795 from rtx to rtx_insn *.
3796 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3797 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3798 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3799 rtx to rtx_insn *.
3800 * modulo-sched.c (const_iteration_count): Strengthen return type
3801 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3802 use of NULL_RTX with NULL when working with insns.
3803 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3804 to rtx_insn *.
3805 (sms_schedule): Likewise.
3806 * sched-rgn.c (init_ready_list): Likewise, also for locals
3807 "src_head" and "src_next_tail".
3808 (compute_block_dependences): Likewise.
3809 (free_block_dependencies): Likewise.
3810 (debug_rgn_dependencies): Likewise.
3811 (free_rgn_deps): Likewise.
3812 (compute_priorities): Likewise.
3813 (schedule_region): Likewise.
3814 * sel-sched.c (find_ebb_boundaries): Likewise.
3815
3816 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3817 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3818
3819 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3820
3821 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3822 from rtx to rtx_insn *.
3823 (new_seginfo): Likewise for param "insn".
3824 (create_pre_exit): Likewise for locals "last_insn",
3825 "before_return_copy", "return_copy".
3826 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3827 "mode_set".
3828
3829 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3830
3831 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3832 from rtx to rtx_insn *.
3833 (lra_push_insn): Likewise for 1st param.
3834 (lra_push_insn_and_update_insn_regno_info): Likewise.
3835 (lra_pop_insn): Likewise for return type.
3836 (lra_invalidate_insn_data): Likewise for 1st param.
3837 (lra_set_insn_deleted): Likewise.
3838 (lra_delete_dead_insn): Likewise.
3839 (lra_process_new_insns): Likewise for first 3 params.
3840 (lra_set_insn_recog_data): Likewise for 1st param.
3841 (lra_update_insn_recog_data): Likewise.
3842 (lra_set_used_insn_alternative): Likewise.
3843 (lra_invalidate_insn_regno_info): Likewise.
3844 (lra_update_insn_regno_info): Likewise.
3845 (lra_former_scratch_operand_p): Likewise.
3846 (lra_eliminate_regs_1): Likewise.
3847 (lra_get_insn_recog_data): Likewise.
3848
3849 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3850 rtx to rtx_insn *.
3851
3852 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3853 "mv1" and "mv2".
3854 (substitute_within_insn): New.
3855 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3856 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3857 Replace call to "substitute" with call to substitute_within_insn.
3858
3859 * lra-constraints.c (curr_insn): Strengthen from rtx to
3860 rtx_insn *.
3861 (get_equiv_with_elimination): Likewise for param "insn".
3862 (match_reload): Strengthen params "before" and "after" from rtx *
3863 to rtx_insn **.
3864 (emit_spill_move): Likewise for return type. Add a checked cast
3865 to rtx_insn * on result of gen_move_insn for now.
3866 (check_and_process_move): Likewise for local "before". Replace
3867 NULL_RTX with NULL when referring to insns.
3868 (process_addr_reg): Strengthen params "before" and "after" from
3869 rtx * to rtx_insn **.
3870 (insert_move_for_subreg): Likewise.
3871 (simplify_operand_subreg): Strengthen locals "before" and "after"
3872 from rtx to rtx_insn *.
3873 (process_address_1): Strengthen params "before" and "after" from
3874 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3875 rtx to rtx_insn *.
3876 (process_address): Strengthen params "before" and "after" from
3877 rtx * to rtx_insn **.
3878 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3879 (curr_insn_transform): Strengthen locals "before" and "after"
3880 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3881 to insns.
3882 (loc_equivalence_callback): Update cast of "data", changing
3883 resulting type from rtx to rtx_insn *.
3884 (substitute_pseudo_within_insn): New.
3885 (inherit_reload_reg): Strengthen param "insn" from rtx to
3886 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3887 NULL when referring to insns. Add a checked cast to rtx_insn *
3888 when using usage_insn to invoke lra_update_insn_regno_info.
3889 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3890 likewise for locals "restore", "save". Add checked casts to
3891 rtx_insn * when using usage_insn to invoke
3892 lra_update_insn_regno_info and lra_process_new_insns. Replace
3893 NULL_RTX with NULL when referring to insns.
3894 (split_if_necessary): Strengthen param "insn" from rtx to
3895 rtx_insn *.
3896 (update_ebb_live_info): Likewise for params "head", "tail" and local
3897 "prev_insn".
3898 (get_last_insertion_point): Likewise for return type and local "insn".
3899 (get_live_on_other_edges): Likewise for local "last".
3900 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3901 "prev_insn", "next_insn", "restore".
3902 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3903 (undo_optional_reloads): Likewise for local "insn".
3904
3905 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3906 "insn".
3907 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3908 insns.
3909 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3910 rtx_insn *.
3911 (spill_pseudos): Likewise for local "insn".
3912 (init_elimination): Likewise.
3913 (process_insn_for_elimination): Likewise for param "insn".
3914
3915 * lra-lives.c (curr_insn): Likewise.;
3916
3917 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3918 (remove_pseudos): Likewise for param "insn".
3919 (spill_pseudos): Likewise for local "insn".
3920 (lra_final_code_change): Likewise for locals "insn", "curr".
3921
3922 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3923 (lra_set_insn_deleted): Likewise.
3924 (lra_delete_dead_insn): Likewise, and for local "prev".
3925 (new_insn_reg): Likewise for param "insn".
3926 (lra_set_insn_recog_data): Likewise.
3927 (lra_update_insn_recog_data): Likewise.
3928 (lra_set_used_insn_alternative): Likewise.
3929 (get_insn_freq): Likewise.
3930 (invalidate_insn_data_regno_info): Likewise.
3931 (lra_invalidate_insn_regno_info): Likewise.
3932 (lra_update_insn_regno_info): Likewise.
3933 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3934 vec<rtx_insn *>.
3935 (lra_push_insn_1): Strengthen param "insn" from rtx to
3936 rtx_insn *.
3937 (lra_push_insn): Likewise.
3938 (lra_push_insn_and_update_insn_regno_info): Likewise.
3939 (lra_pop_insn): Likewise for return type and local "insn".
3940 (push_insns): Likewise for params "from", "to", and local "insn".
3941 (setup_sp_offset): Likewise for params "from", "last" and locals
3942 "before", "insn".
3943 (lra_process_new_insns): Likewise for params "insn", "before",
3944 "after" and local "last".
3945 (struct sloc): Likewise for field "insn".
3946 (lra_former_scratch_operand_p): Likewise for param "insn".
3947 (remove_scratches): Likewise for locals "insn", "last".
3948 (check_rtl): Likewise for local "insn".
3949 (add_auto_inc_notes): Likewise for param "insn".
3950 (update_inc_notes): Likewise for local "insn".
3951 (lra): Replace NULL_RTX with NULL when referring to insn.
3952
3953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3954
3955 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3956 to rtx_insn *.
3957 (resolve_reg_notes): Likewise.
3958 (resolve_simple_move): Likewise for return type, param "insn", and
3959 locals "insns", "minsn".
3960 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3961 (resolve_use): Likewise.
3962 (resolve_debug): Likewise.
3963 (find_decomposable_shift_zext): Likewise.
3964 (resolve_shift_zext): Likewise for return type, param "insn", and
3965 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3966 (decompose_multiword_subregs): Likewise for local "insn",
3967 "orig_insn", "decomposed_shift", "end".
3968
3969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3970
3971 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3972 param "insns" from rtx to rtx_insn *.
3973
3974 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3975 rtx to rtx_insn *.
3976 (struct iv_to_split): Likewise.
3977 (loop_exit_at_end_p): Likewise for local "insn".
3978 (split_edge_and_insert): Likewise for param "insns".
3979 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3980 and locals "seq", "jump".
3981 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3982 "branch_code"; update invocations of compare_and_jump_seq to
3983 eliminate NULL_RTX in favor of NULL.
3984 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3985 rtx to rtx_insn *.
3986 (reset_debug_uses_in_loop): Likewise.
3987 (analyze_insn_to_expand_var): Likewise for param "insn".
3988 (analyze_iv_to_split_insn): Likewise.
3989 (analyze_insns_in_loop): Likewise for local "insn".
3990 (insert_base_initialization): Likewise for param
3991 "insn" and local "seq".
3992 (split_iv): Likewise for param "insn" and local "seq".
3993 (expand_var_during_unrolling): Likewise for param "insn".
3994 (insert_var_expansion_initialization): Likewise for local "seq".
3995 (combine_var_copies_in_loop_exit): Likewise.
3996 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3997 "insn".
3998 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3999 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4000 "next".
4001
4002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4003
4004 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4005 rtx_insn *.
4006 (iv_analyze_result): Likewise.
4007 (iv_analyze_expr): Likewise.
4008 (biv_p): Likewise.
4009
4010 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4011 local "def_insn" from rtx to rtx_insn *.
4012 (get_biv_step_1): Likewise for local "insn".
4013 (iv_analyze_expr): Likewise for param "insn".
4014 (iv_analyze_def): Likewise for local "insn".
4015 (iv_analyze_op): Likewise for param "insn".
4016 (iv_analyze): Likewise.
4017 (iv_analyze_result): Likewise.
4018 (biv_p): Likewise.
4019 (suitable_set_for_replacement): Likewise.
4020 (simplify_using_initial_values): Likewise for local "insn".
4021 (iv_number_of_iterations): Likewise for param "insn".
4022 (check_simple_exit): Add checked cast to rtx_insn when invoking
4023 iv_number_of_iterations for now (until get_condition is
4024 strengthened).
4025
4026 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4027 "insn" from rtx to rtx_insn *.
4028 (analyze_insns_in_loop): Likewise for local "insn".
4029
4030 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4031
4032 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4033 to rtx_insn *.
4034 (struct invariant): Likewise.
4035 (hash_invariant_expr_1): Likewise for param "insn".
4036 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4037 (find_exits): Likewise for local "insn".
4038 (create_new_invariant): Likewise for param "insn".
4039 (check_dependencies): Likewise.
4040 (find_invariant_insn): Likewise.
4041 (record_uses): Likewise.
4042 (find_invariants_insn): Likewise.
4043 (find_invariants_bb): Likewise for local "insn".
4044 (get_pressure_class_and_nregs): Likewise for param "insn".
4045 (calculate_loop_reg_pressure): Likewise for local "insn".
4046
4047 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4048
4049 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4050 to rtx_insn *.
4051 (add_test): Likewise for locals "seq", "jump".
4052 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4053
4054 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4055
4056 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4057 rtx_insn *.
4058 (rebuild_jump_labels_chain): Likewise for param "chain".
4059
4060 * cfgexpand.c (pass_expand::execute): Add checked cast to
4061 rtx_insn * when calling rebuild_jump_labels_chain in region where
4062 we know e->insns.r is non-NULL.
4063
4064 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4065 rtx_insn *.
4066 (rebuild_jump_labels): Likewise.
4067 (rebuild_jump_labels_chain): Likewise for param "chain".
4068 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4069 (init_label_info): Likewise for param "f".
4070 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4071 "prev_nonjump_insn".
4072 (mark_all_labels): Likewise for param "f" and locals "insn",
4073 "prev_nonjump_insn".
4074
4075 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4076
4077 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4078 from rtx to rtx_insn *insn.
4079 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4080 (ira_add_allocno_copy): Likewise.
4081 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4082 rtx to rtx_insn *.
4083 (ira_create_copy): Likewise.
4084 (ira_add_allocno_copy): Likewise.
4085 (create_bb_allocnos): Likewise for local "insn".
4086 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4087 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4088 process_regs_for_copy for rtx_insn * param.
4089 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4090 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4091 process_regs_for_copy for rtx_insn * param.
4092 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4093 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4094 (record_operand_costs): Likewise.
4095 (scan_one_insn): Likewise for return type, and for param "insn".
4096 (process_bb_for_costs): Likewise for local "insn".
4097 (process_bb_node_for_hard_reg_moves): Likewise.
4098 * ira-emit.c (struct move): Likewise for field "insn".
4099 (create_move): Eliminate use of NULL_RTX when dealing with an
4100 rtx_insn *.
4101 (emit_move_list): Strengthen return type and locals "result",
4102 "insn" from rtx to rtx_insn *insn.
4103 (emit_moves): Likewise for locals "insns", "tmp".
4104 (ira_emit): Likewise for local "insn".
4105 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4106 "insn".
4107 (find_call_crossed_cheap_reg): Likewise.
4108 (process_bb_node_lives): Likewise for local "insn".
4109 * ira.c (decrease_live_ranges_number): Likewise.
4110 (compute_regs_asm_clobbered): Likewise.
4111 (build_insn_chain): Likewise.
4112 (find_moveable_pseudos): Likewise, also locals "def_insn",
4113 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4114 to rtx_insn **. Add a checked cast when assigning from
4115 "closest_use" into closest_uses array in a region where we know
4116 it's a non-NULL insn.
4117 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4118 to rtx_insn *.
4119 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4120 "last_interesting_insn", "uin".
4121 (move_unallocated_pseudos): Likewise for locals "def_insn",
4122 "move_insn", "newinsn".
4123
4124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4125
4126 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4127 Strengthen locals "done_label", "do_error" from rtx to
4128 rtx_code_label *.
4129 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4130 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4131 rtx_code_label *.
4132 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4133 "done_label", "do_error" to rtx_code_label * and local "last" to
4134 rtx_insn *.
4135 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4136 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4137 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4138 "after_lopart_neg", "do_overflow", "hipart_different" to
4139 rtx_code_label * and local "last" to rtx_insn *.
4140
4141 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4142
4143 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4144 "insn" and "move_insn" from rtx to rtx_insn *.
4145
4146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4147
4148 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4149 rtx_insn *.
4150 (cheap_bb_rtx_cost_p): Likewise.
4151 (first_active_insn): Likewise for return type and local "insn".
4152 (last_active_insn): Likewise for return type and locals "insn",
4153 "head".
4154 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4155 "insn_b".
4156 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4157 "seq".
4158 (noce_try_move): Likewise for local "seq".
4159 (noce_try_store_flag): Likewise.
4160 (noce_try_store_flag_constants): Likewise.
4161 (noce_try_addcc): Likewise.
4162 (noce_try_store_flag_mask): Likewise.
4163 (noce_try_cmove): Likewise.
4164 (noce_try_minmax): Likewise.
4165 (noce_try_abs): Likewise.
4166 (noce_try_sign_mask): Likewise.
4167 (noce_try_bitop): Likewise.
4168 (noce_can_store_speculate_p): Likewise for local "insn".
4169 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4170 seq".
4171 (check_cond_move_block): Likewise for local "insn".
4172 (cond_move_convert_if_block): Likewise.
4173 (cond_move_process_if_block): Likewise for locals "seq",
4174 "loc_insn".
4175 (noce_find_if_block): Likewise for local "jump".
4176 (merge_if_block): Likewise for local "last".
4177 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4178 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4179 (block_has_only_trap): Likewise for return type and local "trap".
4180 (find_if_case_1): Likewise for local "jump".
4181 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4182 "insn".
4183
4184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4185
4186 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4187 "last_insn", "loop_end" from rtx to rtx_insn *.
4188
4189 * hw-doloop.c (scan_loop): Likewise for local "insn".
4190 (discover_loop): Likewise for param "tail_insn".
4191 (discover_loops): Likewise for local "tail".
4192
4193 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4194 cast to rtx_insn * when assigning from an rtx local to a
4195 hwloop_info's "last_insn" field.
4196
4197 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4198
4199 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4200 (add_delay_dependencies): Strengthen local "pro" from rtx to
4201 rtx_insn *.
4202 (recompute_todo_spec): Likewise.
4203 (dep_cost_1): Likewise for locals "insn", "used".
4204 (schedule_insn): Likewise for local "dbg".
4205 (schedule_insn): Likewise for locals "pro", "next".
4206 (unschedule_insns_until): Likewise for local "con".
4207 (restore_pattern): Likewise for local "next".
4208 (estimate_insn_tick): Likewise for local "pro".
4209 (resolve_dependencies): Likewise for local "next".
4210 (fix_inter_tick): Likewise.
4211 (fix_tick_ready): Likewise for local "pro".
4212 (add_to_speculative_block): Likewise for locals "check", "twin",
4213 "pro".
4214 (sched_extend_bb): Likewise for locals "end", "insn".
4215 (init_before_recovery): Likewise for local "x".
4216 (sched_create_recovery_block): Likewise for local "barrier".
4217 (create_check_block_twin): Likewise for local "pro".
4218 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4219 "consumer".
4220 (unlink_bb_notes): Update for change to type of bb_header.
4221 Strengthen locals "prev", "label", "note", "next" from rtx to
4222 rtx_insn *.
4223 (clear_priorities): Likewise for local "pro".
4224
4225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4226
4227 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4228 rtx_insn *.
4229 (test_insn): Likewise for this global.
4230 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4231 const rtx_insn *.
4232 (oprs_anticipatable_p): Likewise.
4233 (oprs_available_p): Likewise.
4234 (insert_expr_in_table): Strengthen param "insn" from rtx to
4235 rtx_insn *.
4236 (hash_scan_set): Likewise.
4237 (hash_scan_clobber): Likewise.
4238 (hash_scan_call): Likewise.
4239 (hash_scan_insn): Likewise.
4240 (compute_hash_table_work): Likewise for local "insn".
4241 (process_insert_insn): Likewise for return type and local "pat".
4242 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4243 "pat", "pat_end", "maybe_cc0_setter".
4244 (pre_edge_insert): Likewise for local "insn".
4245 (pre_insert_copy_insn): Likewise for param "insn".
4246 (pre_insert_copies): Likewise for local "insn".
4247 (struct set_data): Likewise for field "insn".
4248 (single_set_gcse): Likewise for param "insn".
4249 (gcse_emit_move_after): Likewise.
4250 (pre_delete): Likewise for local "insn".
4251 (update_bb_reg_pressure): Likewise for param "from" and local
4252 "insn".
4253 (should_hoist_expr_to_dom): Likewise for param "from".
4254 (hoist_code): Likewise for local "insn".
4255 (get_pressure_class_and_nregs): Likewise for param "insn".
4256 (calculate_bb_reg_pressure): Likewise for local "insn".
4257 (compute_ld_motion_mems): Likewise.
4258
4259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4260
4261 * genpeep.c (main): Rename param back from "uncast_ins1" to
4262 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4263 checked cast.
4264
4265 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4266
4267 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4268
4269 PR target/62195
4270 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4271 documentation to state it is only for VSX operations.
4272
4273 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4274 constraint only active if VSX.
4275
4276 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4277 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4278 (lfiwzx): Likewise.
4279
4280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4281
4282 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4283 Strengthen local "insn" from rtx to rtx_insn *.
4284 (use_killed_between): Likewise for param "target_insn".
4285 (all_uses_available_at): Likewise for param "target_insn" and
4286 local "next".
4287 (update_df_init): Likewise for params "def_insn", "insn".
4288 (update_df): Likewise for param "insn".
4289 (try_fwprop_subst): Likewise for param "def_insn" and local
4290 "insn".
4291 (free_load_extend): Likewise for param "insn".
4292 (forward_propagate_subreg): Likewise for param "def_insn" and
4293 local "use_insn".
4294 (forward_propagate_asm): Likewise for param "def_insn" and local
4295 "use_insn".
4296 (forward_propagate_and_simplify): Likewise for param "def_insn"
4297 and local "use_insn".
4298 (forward_propagate_into): Likewise for locals "def_insn" and
4299 "use_insn".
4300
4301 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4302
4303 * function.c (emit_initial_value_sets): Strengthen local "seq"
4304 from rtx to rtx_insn *.
4305 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4306 local "seq".
4307 (instantiate_virtual_regs): Likewise for local "insn".
4308 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4309 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4310 (expand_function_end): Likewise for locals "insn" and "seq".
4311 (epilogue_done): Likewise for local "insn".
4312 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4313 "last", "trial".
4314 (reposition_prologue_and_epilogue_notes): Likewise for locals
4315 "insn", "last", "note", "first".
4316 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4317 (pass_match_asm_constraints::execute): Likewise for local "insn".
4318
4319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4320
4321 * output.h (final_scan_insn): Strengthen return type from rtx to
4322 rtx_insn *.
4323 (final_forward_branch_p): Likewise for param.
4324 (current_output_insn): Likewise for this global.
4325
4326 * final.c (rtx debug_insn): Likewise for this variable.
4327 (current_output_insn): Likewise.
4328 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4329 adding "insn" back in as an rtx_insn * with a checked cast, so
4330 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4331 first param.
4332 (compute_alignments): Strengthen local "label" from rtx to
4333 rtx_insn *.
4334 (shorten_branches): Rename param from "first" to "uncast_first",
4335 introducing a new local rtx_insn * "first" using a checked cast to
4336 effectively strengthen "first" from rtx to rtx_insn * without
4337 affecting the type signature. Strengthen locals "insn", "seq",
4338 "next", "label" from rtx to rtx_insn *.
4339 (change_scope): Strengthen param "orig_insn" and local "insn" from
4340 rtx to rtx_insn *.
4341 (final_start_function): Rename param from "first" to "uncast_first",
4342 introducing a new local rtx_insn * "first" using a checked cast to
4343 effectively strengthen "first" from rtx to rtx_insn * without
4344 affecting the type signature. Strengthen local "insn" from rtx to
4345 rtx_insn *.
4346 (dump_basic_block_info): Strengthen param "insn" from rtx to
4347 rtx_insn *.
4348 (final): Rename param from "first" to "uncast_first",
4349 introducing a new local rtx_insn * "first" using a checked cast to
4350 effectively strengthen "first" from rtx to rtx_insn * without
4351 affecting the type signature. Strengthen locals "insn", "next"
4352 from rtx to rtx_insn *.
4353 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4354 rtx_insn *.
4355 (call_from_call_insn): Strengthen param "insn" from rtx to
4356 rtx_call_insn *.
4357 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4358 introducing a new local rtx_insn * "insn" using a checked cast to
4359 effectively strengthen "insn" from rtx to rtx_insn * without
4360 affecting the type signature. Strengthen return type and locals
4361 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4362 now-redundant checked cast to rtx_insn * from both invocations of
4363 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4364 introducing a local "call_insn" for use when invoking
4365 call_from_call_insn.
4366 (notice_source_line): Strengthen param "insn" from rtx to
4367 rtx_insn *.
4368 (leaf_function_p): Likewise for local "insn".
4369 (final_forward_branch_p): Likewise.
4370 (leaf_renumber_regs): Likewise for param "first".
4371 (rest_of_clean_state): Likewise for locals "insn" and "next".
4372 (self_recursive_call_p): Likewise for param "insn".
4373 (collect_fn_hard_reg_usage): Likewise for local "insn".
4374 (get_call_fndecl): Likewise for param "insn".
4375 (get_call_cgraph_rtl_info): Likewise.
4376 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4377 introducing a new local rtx_insn * "insn" using a checked cast to
4378 effectively strengthen "insn" from rtx to rtx_insn * without
4379 affecting the type signature.
4380
4381 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4382 cast when assigning from param "insn" to current_output_insn.
4383 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4384 so that we can assign it back to current_output_insn.
4385
4386 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4387
4388 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4389 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4390 atmxt540s and atmxt540sreva devices.
4391 * config/avr/avr-tables.opt: Regenerate.
4392 * config/avr/t-multilib: Regenerate.
4393 * doc/avr-mmcu.texi: Regenerate.
4394
4395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4396
4397 * expr.c (convert_move): Strengthen local "insns" from rtx to
4398 rtx_insn *.
4399 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4400 "top_label" from rtx to rtx_code_label *.
4401 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4402 rtx_insn *.
4403 (emit_single_push_insn): Likewise for locals "prev", "last".
4404 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4405 to rtx_code_label *.
4406 (store_constructor): Likewise for locals "loop_start", "loop_end".
4407 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4408 rtx_insn *.
4409 (expand_expr_real_2): Likewise.
4410 (expand_expr_real_1): Strengthen local "label" from rtx to
4411 rtx_code_label *.
4412
4413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4414
4415 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4416 from rtx to rtx_insn *.
4417 (store_bit_field_1): Likewise.
4418 (extract_bit_field_1): Likewise.
4419 (expand_mult_const): Likewise for local "insns".
4420 (expmed_mult_highpart): Strengthen local "label" from rtx to
4421 rtx_code_label *.
4422 (expand_smod_pow2): Likewise.
4423 (expand_sdiv_pow2): Likewise.
4424 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4425 rtx_insn *. Strengthen locals "label", "label1", "label2",
4426 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4427 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4428 (emit_store_flag): Likewise.
4429 (emit_store_flag_force): Strengthen local "label" from rtx to
4430 rtx_code_label *.
4431 (do_cmp_and_jump): Likewise for param "label".
4432
4433 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4434
4435 * explow.c (force_reg): Strengthen local "insn" from rtx to
4436 rtx_insn *.
4437 (adjust_stack_1): Likewise.
4438 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4439 "final_label", "available_label", "space_available" from rtx to
4440 rtx_code_label *.
4441 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4442 (anti_adjust_stack_and_probe): Likewise.
4443
4444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4445
4446 * except.h (sjlj_emit_function_exit_after): Strengthen param
4447 "after" from rtx to rtx_insn *. This is only called with
4448 result of get_last_insn (in function.c) so type-change should be
4449 self-contained.
4450
4451 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4452 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4453 to rtx_insn *. These fields are only used from except.c so this
4454 type-change should be self-contained to this patch.
4455
4456 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4457 local "last" from rtx to rtx_insn *.
4458 (dw2_build_landing_pads): Likewise for local "seq".
4459 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4460 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4461 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4462 rtx to rtx_insn *.
4463 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4464 to rtx_insn *.
4465 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4466 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4467 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4468 referring to an insn. Strengthen local "dispatch_label" from
4469 rtx to rtx_code_label *.
4470 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4471 rtx_insn *.
4472 (expand_eh_return): Strengthen local "around_label" from
4473 rtx to rtx_code_label *.
4474 (convert_to_eh_region_ranges): Strengthen locals "iter",
4475 "last_action_insn", "first_no_action_insn",
4476 "first_no_action_insn_before_switch",
4477 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4478
4479 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4480
4481 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4482 from rtx to rtx_insn *.
4483 (cached_next_real_insn): Likewise.
4484 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4485 working with insns.
4486 (dwarf2out_var_location): Strengthen locals "next_real",
4487 "next_note", "expected_next_loc_note", "last_start", "insn" from
4488 rtx to rtx_insn *.
4489
4490 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4491
4492 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4493 from rtx to rtx_insn *.
4494 (create_pseudo_cfg): Likewise for local "insn".
4495
4496 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4497
4498 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4499 from rtx to rtx_insn *.
4500 (df_bb_regno_last_def_find): Likewise.
4501
4502 * df-problems.c (df_rd_bb_local_compute): Likewise.
4503 (df_lr_bb_local_compute): Likewise.
4504 (df_live_bb_local_compute): Likewise.
4505 (df_chain_remove_problem): Likewise.
4506 (df_chain_create_bb): Likewise.
4507 (df_word_lr_bb_local_compute): Likewise.
4508 (df_remove_dead_eq_notes): Likewise for param "insn".
4509 (df_note_bb_compute): Likewise for local "insn".
4510 (simulate_backwards_to_point): Likewise.
4511 (df_md_bb_local_compute): Likewise.
4512
4513 * df-scan.c (df_scan_free_bb_info): Likewise.
4514 (df_scan_start_dump): Likewise.
4515 (df_scan_start_block): Likewise.
4516 (df_install_ref_incremental): Likewise for local "insn".
4517 (df_insn_rescan_all): Likewise.
4518 (df_reorganize_refs_by_reg_by_insn): Likewise.
4519 (df_reorganize_refs_by_insn_bb): Likewise.
4520 (df_recompute_luids): Likewise.
4521 (df_bb_refs_record): Likewise.
4522 (df_update_entry_exit_and_calls): Likewise.
4523 (df_bb_verify): Likewise.
4524
4525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4526
4527 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4528 "first_note" from rtx to rtx_insn *.
4529 (get_node_of_insn): Likewise for param 2 "insn".
4530 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4531
4532 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4533 rtx_insn *.
4534 (mem_write_insn_p): Likewise.
4535 (mem_access_insn_p): Likewise.
4536 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4537 (def_has_ccmode_p): Likewise for param "insn".
4538 (add_cross_iteration_register_deps): Likewise for locals
4539 "def_insn" and "use_insn".
4540 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4541 (build_intra_loop_deps): Likewise for local "src_insn".
4542 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4543 to rtx_insn *.
4544 (get_node_of_insn): Likewise for param "insn".
4545
4546 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4547
4548 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4549 (deletable_insn_p): Strengthen param "insn" from rtx to
4550 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4551 find_call_stack_args, since this is guarded by CALL_P (insn).
4552 (marked_insn_p): Strengthen param "insn" from rtx to
4553 rtx_insn *.
4554 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4555 invoking find_call_stack_args, since this is guarded by
4556 CALL_P (insn).
4557 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4558 rtx_insn *; we know this is an insn since this was called by
4559 mark_nonreg_stores.
4560 (mark_nonreg_stores_2): Likewise.
4561 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4562 rtx_insn *.
4563 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4564 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4565 to rtx_insn *.
4566 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4567 from rtx to rtx_insn *.
4568 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4569 "next", "ref_insn".
4570 (delete_unmarked_insns): Likewise for locals "insn", "next".
4571 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4572 (mark_reg_dependencies): Likewise for param "insn".
4573 (rest_of_handle_ud_dce): Likewise for local "insn".
4574 (word_dce_process_block): Likewise.
4575 (dce_process_block): Likewise.
4576
4577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4578
4579 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4580 from rtx to rtx_insn *.
4581 (struct change_cc_mode_args): Likewise for field "insn".
4582 (this_insn): Strengthen from rtx to rtx_insn *.
4583 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4584 with insn.
4585 (validate_canon_reg): Strengthen param "insn" from rtx to
4586 rtx_insn *.
4587 (canon_reg): Likewise.
4588 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4589 dealing with insn.
4590 (record_jump_equiv): Strengthen param "insn" from rtx to
4591 rtx_insn *.
4592 (try_back_substitute_reg): Likewise, also for locals "prev",
4593 "bb_head".
4594 (find_sets_in_insn): Likewise for param "insn".
4595 (canonicalize_insn): Likewise.
4596 (cse_insn): Likewise. Add a checked cast.
4597 (invalidate_from_clobbers): Likewise for param "insn".
4598 (invalidate_from_sets_and_clobbers): Likewise.
4599 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4600 dealing with insn.
4601 (cse_prescan_path): Strengthen local "insn" from rtx to
4602 rtx_insn *.
4603 (cse_extended_basic_block): Likewise for locals "insn" and
4604 "prev_insn".
4605 (cse_main): Likewise for param "f".
4606 (check_for_label_ref): Likewise for local "insn".
4607 (set_live_p): Likewise for second param ("insn").
4608 (insn_live_p): Likewise for first param ("insn") and for local
4609 "next".
4610 (cse_change_cc_mode_insn): Likewise for first param "insn".
4611 (cse_change_cc_mode_insns): Likewise for first and second params
4612 "start" and "end".
4613 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4614 and "end".
4615 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4616 "cc_src_insn".
4617
4618 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4620 Anna Tikhonova <anna.tikhonova@intel.com>
4621 Ilya Tocar <ilya.tocar@intel.com>
4622 Andrey Turetskiy <andrey.turetskiy@intel.com>
4623 Ilya Verbin <ilya.verbin@intel.com>
4624 Kirill Yukhin <kirill.yukhin@intel.com>
4625 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4626
4627 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4628 New.
4629 * config/i386/sse.md
4630 (define_mode_iterator VI248_AVX2): Delete.
4631 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4632 (define_mode_iterator VI48_AVX2): Ditto.
4633 (define_insn <shift_insn><mode>3): Delete.
4634 (define_insn "<shift_insn><mode>3<mask_name>" with
4635 VI2_AVX2_AVX512BW): New.
4636 (define_insn "<shift_insn><mode>3<mask_name>" with
4637 VI48_AVX2): Ditto.
4638
4639 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4641 Anna Tikhonova <anna.tikhonova@intel.com>
4642 Ilya Tocar <ilya.tocar@intel.com>
4643 Andrey Turetskiy <andrey.turetskiy@intel.com>
4644 Ilya Verbin <ilya.verbin@intel.com>
4645 Kirill Yukhin <kirill.yukhin@intel.com>
4646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4647
4648 * config/i386/sse.md
4649 (define_mode_iterator VI4F_BRCST32x2): New.
4650 (define_mode_attr 64x2_mode): Ditto.
4651 (define_mode_attr 32x2mode): Ditto.
4652 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4653 with VI4F_BRCST32x2): Ditto.
4654 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4655 with V16FI mode iterator): Ditto.
4656 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4657 with V16FI): Ditto.
4658 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4659 with VI8F_BRCST64x2): Ditto.
4660
4661 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4662 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4663 Anna Tikhonova <anna.tikhonova@intel.com>
4664 Ilya Tocar <ilya.tocar@intel.com>
4665 Andrey Turetskiy <andrey.turetskiy@intel.com>
4666 Ilya Verbin <ilya.verbin@intel.com>
4667 Kirill Yukhin <kirill.yukhin@intel.com>
4668 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4669
4670 * config/i386/sse.md
4671 (define_mode_iterator VI8_AVX512VL): New.
4672 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4673
4674 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4675
4676 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4677 (define_mode_iterator V48_AVX512VL): New.
4678 (define_mode_iterator V12_AVX512VL): Ditto.
4679 (define_insn <avx512>_load<mode>_mask): Split into two similar
4680 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4681 Refactor output template.
4682 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4683
4684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4685
4686 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4687 rtx_insn *.
4688 (reg_available_p): Likewise for param "insn".
4689 (insert_set_in_table): Likewise.
4690 (hash_scan_set): Likewise.
4691 (hash_scan_insn): Likewise.
4692 (make_set_regs_unavailable): Likewise.
4693 (compute_hash_table_work): Likewise for local "insn".
4694 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4695 const rtx_insn *.
4696 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4697 (try_replace_reg): Likewise.
4698 (find_avail_set): Likewise.
4699 (cprop_jump): Likewise for params "setcc", "jump".
4700 (constprop_register): Likewise for param "insn".
4701 (cprop_insn): Likewise.
4702 (do_local_cprop): Likewise.
4703 (local_cprop_pass): Likewise for local "insn".
4704 (bypass_block): Likewise for params "setcc" and "jump".
4705 (bypass_conditional_jumps): Likewise for locals "setcc" and
4706 "insn".
4707 (one_cprop_pass): Likewise for local "insn".
4708
4709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4710
4711 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4712 from rtx to rtx_insn *.
4713 (struct comparison): Likewise, also for field "prev_clobber".
4714 (conforming_compare): Likewise for param "insn".
4715 (arithmetic_flags_clobber_p): Likewise.
4716 (find_flags_uses_in_insn): Likewise.
4717 (find_comparison_dom_walker::before_dom_children): Likewise for
4718 locals "insn", "next", "last_clobber".
4719 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4720
4721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4722
4723 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4724 "insn" from rtx to rtx_insn *.
4725 (single_set_for_csa): Likewise for param "insn".
4726 (record_one_stack_ref): Likewise.
4727 (try_apply_stack_adjustment): Likewise.
4728 (struct record_stack_refs_data): Likewise for field "insn".
4729 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4730 (prev_active_insn_bb): Likewise for return type and param "insn".
4731 (next_active_insn_bb): Likewise.
4732 (force_move_args_size_note): Likewise for params "prev" and "last"
4733 and locals "test", "next_candidate", "prev_candidate".
4734 (combine_stack_adjustments_for_block): Strengthen locals
4735 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4736 rtx_insn *.
4737
4738 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4739
4740 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4741 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4742 (subst_insn): Likewise for this variable.
4743 (added_links_insn): Likewise.
4744 (struct insn_link): Likewise for field "insn".
4745 (alloc_insn_link): Likewise for param "insn".
4746 (struct undobuf): Likewise for field "other_insn".
4747 (find_single_use): Likewise for param "insn" and local "next".
4748 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4749 (delete_noop_moves): Likewise for locals "insn", "next".
4750 (create_log_links): Likewise for locals "insn", "use_insn".
4751 Strengthen local "next_use" from rtx * to rtx_insn **.
4752 (insn_a_feeds_b): Likewise for params "a", "b".
4753 (combine_instructions): Likewise for param "f" and locals "insn",
4754 "next", "prev", "first", "last_combined_insn", "link", "link1",
4755 "temp". Replace use of NULL_RTX with NULL when referring to
4756 insns.
4757 (setup_incoming_promotions): Likewise for param "first"
4758 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4759 (can_combine_p): Likewise for params "insn", "i3", "pred",
4760 "pred2", "succ", "succ2" and for local "p".
4761 (combinable_i3pat): Likewise for param "i3".
4762 (cant_combine_insn_p): Likewise for param "insn".
4763 (likely_spilled_retval_p): Likewise.
4764 (adjust_for_new_dest): Likewise.
4765 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4766 (try_combine): Likewise for return type and for params "i3", "i2",
4767 "i1", "i0", "last_combined_insn", and for locals "insn",
4768 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4769 "i0_insn". Eliminate local "tem" in favor of new locals
4770 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4771 checked cast for now to rtx_insn * on the return type of
4772 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4773 insns.
4774 (find_split_point): Strengthen param "insn" from rtx to
4775 rtx_insn *.
4776 (simplify_set): Likewise for local "other_insn".
4777 (recog_for_combine): Likewise for param "insn".
4778 (record_value_for_reg): Likewise.
4779 (record_dead_and_set_regs_1): Likewise for local
4780 "record_dead_insn".
4781 (record_dead_and_set_regs): Likewise for param "insn".
4782 (record_promoted_value): Likewise.
4783 (check_promoted_subreg): Likewise.
4784 (get_last_value_validate): Likewise.
4785 (reg_dead_at_p): Likewise.
4786 (move_deaths): Likewise for param "to_insn".
4787 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4788 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4789 in favor of new locals "tem_note" and "tem_insn", the latter being
4790 an rtx_insn *.
4791 (distribute_links): Strengthen locals "place", "insn" from rtx to
4792 rtx_insn *.
4793
4794 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4795
4796 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4797 than a const_rtx.
4798 (can_delete_label_p): Require a const rtx_code_label * rather than
4799 a const_rtx.
4800 (delete_insn): Add checked cast to rtx_code_label * when we know
4801 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4802 rtx to rtx_insn *.
4803 (delete_insn_chain): Strengthen locals "prev" and "current" from
4804 rtx to rtx_insn *. Add a checked cast when assigning from
4805 "finish" (strengthening the params will come later). Add a
4806 checked cast to rtx_note * in region where we know
4807 NOTE_P (current).
4808 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4809 rtx_insn *.
4810 (compute_bb_for_insn): Likewise.
4811 (free_bb_for_insn): Likewise for local "insn".
4812 (compute_bb_for_insn): Likewise.
4813 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4814 local "insn" from rtx to rtx_insn *
4815 (flow_active_insn_p): Require a const rtx_insn * rather than a
4816 const_rtx.
4817 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4818 rtx_insn *.
4819 (can_fallthru): Likewise for locals "insn" and "insn2".
4820 (bb_note): Likewise for local "note".
4821 (first_insn_after_basic_block_note): Likewise for local "note" and
4822 for return type.
4823 (rtl_split_block): Likewise for locals "insn" and "next".
4824 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4825 "end".
4826 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4827 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4828 "prev", "tmp".
4829 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4830 them), "kill_from", "barrier", "new_insn".
4831 (patch_jump_insn): Likewise for params "insn", "old_label".
4832 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4833 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4834 "old_label", "new_label".
4835 (rtl_tidy_fallthru_edge): Likewise for local "q".
4836 (rtl_split_edge): Likewise for locals "before", "last".
4837 (commit_one_edge_insertion): Likewise for locals "before",
4838 "after", "insns", "tmp", "last", adding a checked cast where
4839 currently necessary.
4840 (commit_edge_insertions): Likewise.
4841 (rtl_dump_bb): Likewise for locals "insn", "last".
4842 (print_rtl_with_bb): Likewise for local "x".
4843 (rtl_verify_bb_insns): Likewise for local "x".
4844 (rtl_verify_bb_pointers): Likewise for local "insn".
4845 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4846 "head", "end".
4847 (rtl_verify_fallthru): Likewise for local "insn".
4848 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4849 (purge_dead_edges): Likewise for local "insn".
4850 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4851 (skip_insns_after_block): Likewise for return type and for locals
4852 "insn", "last_insn", "next_head", "prev".
4853 (record_effective_endpoints): Likewise for locals "next_insn",
4854 "insn", "end".
4855 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4856 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4857 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4858 (duplicate_insn_chain): For now, add checked cast from rtx to
4859 rtx_insn * when returning insn.
4860 (cfg_layout_duplicate_bb): Likewise for local "insn".
4861 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4862 "prev", "remaints".
4863 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4864 (rtl_block_empty_p): Likewise.
4865 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4866 "split_point", "last".
4867 (rtl_block_ends_with_call_p): Likewise for local "insn".
4868 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4869 const rtx_insn *.
4870 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4871 "split_at_insn" from rtx to rtx_insn *.
4872 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4873 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4874 to const rtx_insn *.
4875 (rtl_account_profile_record): Likewise.
4876
4877 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4878
4879 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4880 rtx to rtx_insn *.
4881 (average_num_loop_insns): Likewise.
4882 (init_set_costs): Likewise for local "seq".
4883 (seq_cost): Likewise for param "seq", from const_rtx to const
4884 rtx_insn *.
4885
4886 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4887
4888 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4889 rtx to rtx_insn *.
4890
4891 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4892
4893 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4894 "f1" and "f2" from rtx * to rtx_insn **.
4895 (flow_find_head_matching_sequence): Likewise.
4896
4897 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4898 "cbranch_insn" from rtx to rtx_insn *.
4899 (thread_jump): Likewise for local "insn".
4900 (try_forward_edges): Likewise for local "last".
4901 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4902 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4903 "real_b_end".
4904 (can_replace_by): Likewise for params "i1", "i2".
4905 (old_insns_match_p): Likewise.
4906 (merge_notes): Likewise.
4907 (walk_to_nondebug_insn): Likewise for param "i1".
4908 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4909 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4910 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4911 (flow_find_head_matching_sequence): Strengthen params "f1" and
4912 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4913 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4914 rtx_insn *.
4915 (outgoing_edges_match): Likewise for locals "last1", "last2".
4916 (try_crossjump_to_edge): Likewise for local "insn".
4917 Replace call to for_each_rtx with for_each_rtx_in_insn.
4918
4919 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4920 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4921 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4922 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4923 (try_optimize_cfg): Strengthen local "last" from rtx to
4924 rtx_insn *.
4925 (delete_dead_jumptables): Likewise for locals "insn", "next",
4926 "label".
4927
4928 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4929 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4930 "rtx else_first_tail", to reflect the basic-block.h changes above.
4931
4932 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4933
4934 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4935 rtx_insn *.
4936 (purge_dead_tablejump_edges): Likewise.
4937 (find_bb_boundaries): Likewise for locals "insn", "end",
4938 "flow_transfer_insn".
4939
4940 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4941
4942 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4943 "ins" and "prev" from rtx to rtx_insn *.
4944
4945 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4946
4947 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4948 rtx_insn *.
4949 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4950 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4951 "scan_start".
4952 (load_register_parameters): Likewise for local "before_arg".
4953 (check_sibcall_argument_overlap): Likewise for param "insn".
4954 (expand_call): Likewise for locals "normal_call_insns",
4955 "tail_call_insns", "insns", "before_call", "after_args",
4956 "before_arg", "last", "prev". Strengthen one of the "last" from
4957 rtx to rtx_call_insn *.
4958 (fixup_tail_calls): Strengthen local "insn" from rtx to
4959 rtx_insn *.
4960 (emit_library_call_value_1): Likewise for locals "before_call" and
4961 "last".
4962
4963 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4964
4965 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4966 and "last" from rtx to rtx_insn *.
4967 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4968 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4969 rtx_call_insn *.
4970 (expand_errno_check): Strengthen local "lab" from rtx to
4971 rtx_code_label *.
4972 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4973 rtx_insn *.
4974 (expand_builtin_mathfn_2): Likewise.
4975 (expand_builtin_mathfn_ternary): Likewise.
4976 (expand_builtin_mathfn_3): Likewise.
4977 (expand_builtin_interclass_mathfn): Likewise for local "last".
4978 (expand_builtin_int_roundingfn): Likewise for local "insns".
4979 (expand_builtin_int_roundingfn_2): Likewise.
4980 (expand_builtin_strlen): Likewise for local "before_strlen".
4981 (expand_builtin_strncmp): Likewise for local "seq".
4982 (expand_builtin_signbit): Likewise for local "last".
4983 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4984 from rtx to rtx_code_label *.
4985 (expand_stack_restore): Strengthen local "prev" from rtx to
4986 rtx_insn *.
4987
4988 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4989
4990 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4991 to rtx_insn *.
4992 (struct btr_def_s): Likewise.
4993 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4994 const rtx_insn *.
4995 (add_btr_def): Likewise.
4996 (new_btr_user): Likewise.
4997 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4998 rtx to rtx_insn *.
4999 (link_btr_uses): Likewise.
5000 (move_btr_def): Likewise for locals "insp", "old_insn",
5001 "new_insn". Add checked cast to rtx_insn * for now on result of
5002 gen_move_insn.
5003 (can_move_up): Strengthen param "insn" from const_rtx to
5004 const rtx_insn *.
5005
5006 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5007
5008 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5009 rtx_insn *.
5010 (get_uncond_jump_length): Likewise for locals "label", "jump".
5011 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5012 "jump", "insn".
5013 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5014 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5015 (find_jump_block): Likewise for local "insn".
5016 (fix_crossing_conditional_branches): Likewise for locals
5017 "old_jump", "new_jump".
5018 (fix_crossing_unconditional_branches): Likewise for locals
5019 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5020 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5021
5022 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5023
5024 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5025 rtx to rtx_insn *.
5026 (struct mem_insn): Likewise for field "insn".
5027 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5028 (reg_next_inc_use): Likewise.
5029 (reg_next_def): Likewise.
5030 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5031 from rtx to rtx_insn *.
5032 (move_insn_before): Likewise for param "next_insn" and local "insns".
5033 (attempt_change): Likewise for local "mov_insn".
5034 (try_merge): Likewise for param "last_insn".
5035 (get_next_ref): Likewise for return type and local "insn".
5036 Strengthen param "next_array" from rtx * to rtx_insn **.
5037 (parse_add_or_inc): Strengthen param "insn" from rtx to
5038 rtx_insn *.
5039 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5040 the latter).
5041 (merge_in_block): Likewise for locals "insn", "curr",
5042 "other_insn".
5043 (pass_inc_dec::execute): Update allocations of the arrays to
5044 reflect the stronger types.
5045
5046 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5047
5048 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5049 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5050 from rtx to rtx_code_label *.
5051
5052 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5053
5054 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5055 to rtx_insn *.
5056
5057 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5058
5059 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5060 generated a warning and prevented bootstrapping the compiler.
5061
5062 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5063
5064 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5065 rtx_insn *.
5066
5067 * jump.c (delete_related_insns): Likewise, also for locals "next"
5068 and "prev".
5069
5070 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5071
5072 * genautomata.c (output_internal_insn_latency_func): When writing
5073 the function "internal_insn_latency" to insn-automata.c,
5074 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5075 allowing the optional guard function of (define_bypass) clauses to
5076 expect a pair of rtx_insn *, rather than a pair of rtx.
5077 (output_insn_latency_func): When writing the function
5078 "insn_latency", add an "uncast_" prefix to params "insn" and
5079 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5080 using checked casts from the params, thus enabling the above
5081 change to the generated "internal_insn_latency" function.
5082
5083 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5084
5085 PR tree-optimization/62091
5086 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5087 handle correctly arrays.
5088 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5089 inheritance binfos.
5090 (record_known_type): Walk into inner type.
5091 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5092 condition on no type changes.
5093
5094 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5095
5096 * genattrtab.c (write_attr_get): Within the generated get_attr_
5097 functions, rename param "insn" to "uncast_insn" and reintroduce
5098 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5099 is an rtx_insn * within insn-attrtab.c
5100
5101 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5102
5103 * output.h (peephole): Strengthen return type from rtx to
5104 rtx_insn *.
5105 * rtl.h (delete_for_peephole): Likewise for both params.
5106 * genpeep.c (main): In generated "peephole" function, strengthen
5107 return type and local "insn" from rtx to rtx_insn *. For now,
5108 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5109 rtx_insn *, with a checked cast.
5110 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5111 locals "insn", "next", "prev" from rtx to rtx_insn *.
5112
5113 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5114
5115 PR tree-optimization/62112
5116 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5117 * gimple-iterator.h (gsi_replace): Return bool.
5118 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5119 moved from ref_may_alias_global_p.
5120 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5121 New overloads.
5122 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5123 (stmt_kills_ref_p_1): Rename...
5124 (stmt_kills_ref_p): ... to this.
5125 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5126 stmt_kills_ref_p): Declare.
5127 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5128 Move the self-assignment case...
5129 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5130
5131 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5132
5133 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5134
5135 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5136 "after". For now, don't strengthen param "trial", which requires
5137 adding checked casts when returning it.
5138
5139 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5140
5141 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5142 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5143 "var_location" hook from rtx to rtx_insn *.
5144 (debug_nothing_rtx): Delete in favor of...
5145 (debug_nothing_rtx_code_label): New prototype.
5146 (debug_nothing_rtx_rtx): Delete unused prototype.
5147 (debug_nothing_rtx_insn): New prototype.
5148
5149 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5150 invoking debug_hooks->var_location (in two places, one in a NOTE
5151 case of a switch statement, the other guarded by a CALL_P
5152 conditional. Add checked cast to rtx_code_label * when invoking
5153 debug_hooks->label (within CODE_LABEL case of switch statement).
5154
5155 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5156 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5157 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5158 (xcoff_debug_hooks): Likewise.
5159 * debug.c (do_nothing_debug_hooks): Likewise.
5160 (debug_nothing_rtx): Delete in favor of...
5161 (debug_nothing_rtx_insn): New function.
5162 (debug_nothing_rtx_rtx): Delete unused function.
5163 (debug_nothing_rtx_code_label): New function.
5164 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5165 debug_nothing_rtx to debug_nothing_rtx_code_label.
5166 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5167 to rtx_insn *.
5168 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5169 debug_nothing_rtx to debug_nothing_rtx_insn.
5170 (sdbout_label): Strengthen param "insn" from rtx to
5171 rtx_code_label *.
5172 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5173 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5174 "var_location" hook from debug_nothing_rtx to
5175 debug_nothing_rtx_insn.
5176
5177 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5178
5179 * recog.h (insn_output_fn): Update this function typedef to match
5180 the changes below to the generated output functions, strengthening
5181 the 2nd param from rtx to rtx_insn *.
5182
5183 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5184 insn when invoking an output function, to match the new signature
5185 of insn_output_fn with a stronger second param.
5186
5187 * genconditions.c (write_header): In the generated code for
5188 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5189 to match the other changes in this patch.
5190
5191 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5192 the generated "gen_" functions from rtx to rtx_insn * within their
5193 implementations.
5194
5195 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5196 the subfunctions within the generated "recog_", "split", "peephole2"
5197 function trees from rtx to rtx_insn *. For now, the top-level
5198 generated functions ("recog", "split", "peephole2") continue to
5199 take a plain rtx for "insn", to avoid introducing dependencies on
5200 other patches. Rename this 2nd param from "insn" to
5201 "uncast_insn", and reintroduce "insn" as a local variable of type
5202 rtx_insn *, initialized at the top of the generated function with
5203 a checked cast on "uncast_insn".
5204 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5205 the generated "gen_" functions from rtx to rtx_insn * within their
5206 prototypes.
5207
5208 * genoutput.c (process_template): Strengthen the 2nd param within
5209 the generated "output_" functions "insn" from rtx to rtx_insn *.
5210
5211 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5212
5213 * tree-profile.c (tree_profiling): Skip external functions
5214 when doing coverage instrumentation.
5215 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5216
5217 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5218
5219 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5220 (vec_mergee): Likewise.
5221 (vec_mergeo): Likewise.
5222 (vec_cntlz): Likewise.
5223 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5224 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5225 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5226 VMRGEW, and VMRGOW.
5227 * doc/extend.texi: Document various forms of vec_cpsgn,
5228 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5229 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5230 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5231 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5232 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5233
5234 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5235
5236 * config/rs6000/rs6000.c (context.h): New include.
5237 (tree-pass.h): Likewise.
5238 (make_pass_analyze_swaps): New decl.
5239 (rs6000_option_override): Register pass_analyze_swaps.
5240 (swap_web_entry): New subsclass of web_entry_base (df.h).
5241 (special_handling_values): New enum.
5242 (union_defs): New function.
5243 (union_uses): Likewise.
5244 (insn_is_load_p): Likewise.
5245 (insn_is_store_p): Likewise.
5246 (insn_is_swap_p): Likewise.
5247 (rtx_is_swappable_p): Likewise.
5248 (insn_is_swappable_p): Likewise.
5249 (chain_purpose): New enum.
5250 (chain_contains_only_swaps): New function.
5251 (mark_swaps_for_removal): Likewise.
5252 (swap_const_vector_halves): Likewise.
5253 (adjust_subreg_index): Likewise.
5254 (permute_load): Likewise.
5255 (permute_store): Likewise.
5256 (handle_special_swappables): Likewise.
5257 (replace_swap_with_copy): Likewise.
5258 (dump_swap_insn_table): Likewise.
5259 (rs6000_analyze_swaps): Likewise.
5260 (pass_data_analyze_swaps): New pass_data.
5261 (pass_analyze_swaps): New rtl_opt_pass.
5262 (make_pass_analyze_swaps): New function.
5263 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5264
5265 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5266
5267 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5268 type from rtx to rtx_insn *.
5269 (create_copy_of_insn_rtx): Likewise.
5270 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5271 (create_copy_of_insn_rtx): Likewise, also for local "res".
5272
5273 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5274
5275 * rtl.h (find_first_parameter_load): Strengthen return type from
5276 rtx to rtx_insn *.
5277 * rtlanal.c (find_first_parameter_load): Strengthen return type
5278 from rtx to rtx_insn *. Add checked cast for now, to postpone
5279 strengthening the params.
5280
5281 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5282
5283 PR fortran/44054
5284 * diagnostic.c: Set default caret.
5285 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5286 line is needed.
5287 * diagnostic.h (struct diagnostic_context):
5288
5289 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5290
5291 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5292 (sel_bb_head): Strengthen return type insn_t (currently just an
5293 rtx) to rtx_insn *.
5294 (sel_bb_end): Likewise.
5295
5296 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5297 (sel_bb_head): Strengthen return type and local "head" from
5298 insn_t (currently just an rtx) to rtx_insn *.
5299 (sel_bb_end): Likewise for return type.
5300 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5301 working with insn.
5302
5303 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5304
5305 * basic-block.h (get_last_bb_insn): Strengthen return type from
5306 rtx to rtx_insn *.
5307 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5308 end".
5309
5310 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5311
5312 PR fortran/44054
5313 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5314 to here ...
5315 (diagnostic_report_diagnostic): ... from here.
5316 * toplev.c (general_init): Move code to c-family.
5317
5318 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5319
5320 * df.h (web_entry_base): Replace existing struct web_entry with a
5321 new class web_entry_base with only the predecessor member.
5322 (unionfind_root): Remove declaration and move to class member.
5323 (unionfind_union): Remove declaration and move to friend
5324 function.
5325 (union_defs): Remove declaration.
5326 * web.c (web_entry_base::unionfind_root): Modify to be member
5327 function and adjust accessors.
5328 (unionfind_union): Modify to be friend function and adjust
5329 accessors.
5330 (web_entry): New subclass of web_entry_base containing the reg
5331 member.
5332 (union_match_dups): Modify for struct -> class changes.
5333 (union_defs): Likewise.
5334 (entry_register): Likewise.
5335 (pass_web::execute): Likewise.
5336
5337 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5338
5339 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5340 builtin define __VEC_ELEMENT_REG_ORDER__.
5341
5342 2014-08-20 Martin Jambor <mjambor@suse.cz>
5343 Wei Mi <wmi@google.com>
5344
5345 PR ipa/60449
5346 PR middle-end/61776
5347 * tree-ssa-operands.c (update_stmt_operands): Remove
5348 MODIFIED_NORETURN_CALLS.
5349 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5350 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5351 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5352 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5353 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5354 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5355 (gimple_call_set_ctrl_altering): New func.
5356 (gimple_call_ctrl_altering_p): Ditto.
5357 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5358 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5359 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5360 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5361 remove MODIFIED_NORETURN_CALLS.
5362
5363 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5364
5365 * coverage.c (coverage_compute_profile_id): Return non-0;
5366 also handle symbols with unique name.
5367 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5368
5369 2014-08-20 Steve Ellcey <sellcey@mips.com>
5370
5371 PR middle-end/49191
5372 * doc/sourcebuild.texi (non_strict_align): New.
5373
5374 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5375
5376 * cgraphunit.c (ipa_passes, compile): Reshedule
5377 symtab_remove_unreachable_nodes passes; update comments.
5378 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5379 TODO_remove_functions before the pass; the functions ought to be
5380 already removed.
5381 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5382 TODO_remove_functions.
5383 * passes.c (pass_data_early_local_passes): Do not schedule function
5384 removal.
5385 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5386
5387 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5388
5389 PR c/59304
5390 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5391 before setting the option.
5392 * diagnostic.c (diagnostic_classify_diagnostic): Record
5393 command-line status.
5394
5395 2014-08-20 Richard Biener <rguenther@suse.de>
5396
5397 PR lto/62190
5398 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5399 to build uint{16,32,64}_type_node.
5400
5401 2014-08-20 Terry Guo <terry.guo@arm.com>
5402
5403 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5404 with immediate_operand.
5405
5406 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5407
5408 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5409 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5410 NULL.
5411
5412 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5413
5414 PR preprocessor/51303
5415 * incpath.c (remove_duplicates): Use cpp_warning.
5416
5417 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5418
5419 PR c/60975
5420 PR c/53063
5421 * doc/options.texi (CPP): Document it.
5422 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5423 * optc-gen.awk: Handle CPP.
5424 * opth-gen.awk: Likewise.
5425
5426 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5427
5428 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5429 rtx_insn *.
5430 (duplicate_insn_chain): Likewise.
5431 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5432 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5433 checked cast for now (until we can strengthen the params in the
5434 same way).
5435 (duplicate_insn_chain): Likewise.
5436
5437 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5438
5439 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5440 rtx_insn *.
5441 (prev_cc0_setter): Likewise.
5442
5443 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5444 rtx_insn *, adding checked casts for now as necessary.
5445 (prev_cc0_setter): Likewise.
5446
5447 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5448
5449 * expr.h (emit_move_insn): Strengthen return type from rtx to
5450 rtx_insn *.
5451 (emit_move_insn_1): Likewise.
5452 (emit_move_complex_push): Likewise.
5453 (emit_move_complex_parts): Likewise.
5454
5455 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5456 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5457 with insns.
5458 (emit_move_complex_push): Strengthen return type from rtx to
5459 rtx_insn *.
5460 (emit_move_complex): Likewise, also for local "ret".
5461 (emit_move_ccmode): Likewise.
5462 (emit_move_multi_word): Likewise for return type and locals
5463 "last_insn", "seq".
5464 (emit_move_insn_1): Likewise for return type and locals "result",
5465 "ret".
5466 (emit_move_insn): Likewise for return type and local "last_insn".
5467 (compress_float_constant): Likewise.
5468
5469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5470
5471 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5472 from rtx to rtx_insn *.
5473
5474 * rtl.h (emit_insn_before): Likewise.
5475 (emit_insn_before_noloc): Likewise.
5476 (emit_insn_before_setloc): Likewise.
5477 (emit_jump_insn_before): Likewise.
5478 (emit_jump_insn_before_noloc): Likewise.
5479 (emit_jump_insn_before_setloc): Likewise.
5480 (emit_call_insn_before): Likewise.
5481 (emit_call_insn_before_noloc): Likewise.
5482 (emit_call_insn_before_setloc): Likewise.
5483 (emit_debug_insn_before): Likewise.
5484 (emit_debug_insn_before_noloc): Likewise.
5485 (emit_debug_insn_before_setloc): Likewise.
5486 (emit_label_before): Likewise.
5487 (emit_insn_after): Likewise.
5488 (emit_insn_after_noloc): Likewise.
5489 (emit_insn_after_setloc): Likewise.
5490 (emit_jump_insn_after): Likewise.
5491 (emit_jump_insn_after_noloc): Likewise.
5492 (emit_jump_insn_after_setloc): Likewise.
5493 (emit_call_insn_after): Likewise.
5494 (emit_call_insn_after_noloc): Likewise.
5495 (emit_call_insn_after_setloc): Likewise.
5496 (emit_debug_insn_after): Likewise.
5497 (emit_debug_insn_after_noloc): Likewise.
5498 (emit_debug_insn_after_setloc): Likewise.
5499 (emit_label_after): Likewise.
5500 (emit_insn): Likewise.
5501 (emit_debug_insn): Likewise.
5502 (emit_jump_insn): Likewise.
5503 (emit_call_insn): Likewise.
5504 (emit_label): Likewise.
5505 (gen_clobber): Likewise.
5506 (emit_clobber): Likewise.
5507 (gen_use): Likewise.
5508 (emit_use): Likewise.
5509 (emit): Likewise.
5510
5511 (emit_barrier_before): Strengthen return type from rtx to
5512 rtx_barrier *.
5513 (emit_barrier_after): Likewise.
5514 (emit_barrier): Likewise.
5515
5516 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5517 from rtx to rtx_insn *. Add checked casts for now when converting
5518 "last" from rtx to rtx_insn *.
5519 (emit_insn_before_noloc): Likewise for return type.
5520 (emit_jump_insn_before_noloc): Likewise.
5521 (emit_call_insn_before_noloc): Likewise.
5522 (emit_debug_insn_before_noloc): Likewise.
5523 (emit_barrier_before): Strengthen return type and local "insn"
5524 from rtx to rtx_barrier *.
5525 (emit_label_before): Strengthen return type from rtx to
5526 rtx_insn *. Add checked cast for now when returning param
5527 (emit_pattern_after_noloc): Strengthen return type from rtx to
5528 rtx_insn *. Add checked casts for now when converting "last" from
5529 rtx to rtx_insn *.
5530 (emit_insn_after_noloc): Strengthen return type from rtx to
5531 rtx_insn *.
5532 (emit_jump_insn_after_noloc): Likewise.
5533 (emit_call_insn_after_noloc): Likewise.
5534 (emit_debug_insn_after_noloc): Likewise.
5535 (emit_barrier_after): Strengthen return type from rtx to
5536 rtx_barrier *.
5537 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5538 Add checked cast for now when converting "label" from rtx to
5539 rtx_insn *.
5540 (emit_pattern_after_setloc): Strengthen return type from rtx to
5541 rtx_insn *. Add checked casts for now when converting "last" from
5542 rtx to rtx_insn *.
5543 (emit_pattern_after): Strengthen return type from rtx to
5544 rtx_insn *.
5545 (emit_insn_after_setloc): Likewise.
5546 (emit_insn_after): Likewise.
5547 (emit_jump_insn_after_setloc): Likewise.
5548 (emit_jump_insn_after): Likewise.
5549 (emit_call_insn_after_setloc): Likewise.
5550 (emit_call_insn_after): Likewise.
5551 (emit_debug_insn_after_setloc): Likewise.
5552 (emit_debug_insn_after): Likewise.
5553 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5554 when converting "last" from rtx to rtx_insn *.
5555 (emit_pattern_before): Strengthen return type from rtx to
5556 rtx_insn *.
5557 (emit_insn_before_setloc): Likewise.
5558 (emit_insn_before): Likewise.
5559 (emit_jump_insn_before_setloc): Likewise.
5560 (emit_jump_insn_before): Likewise.
5561 (emit_call_insn_before_setloc): Likewise.
5562 (emit_call_insn_before): Likewise.
5563 (emit_debug_insn_before_setloc): Likewise.
5564 (emit_debug_insn_before): Likewise.
5565 (emit_insn): Strengthen return type and locals "last", "insn",
5566 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5567 within cases where we know we have an insn.
5568 (emit_debug_insn): Likewise.
5569 (emit_jump_insn): Likewise.
5570 (emit_call_insn): Strengthen return type and local "insn" from rtx
5571 to rtx_insn *.
5572 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5573 a checked cast to rtx_insn * for now on "label".
5574 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5575 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5576 (emit_use): Likewise.
5577 (gen_use): Likewise, also for local "seq".
5578 (emit): Likewise for return type and local "insn".
5579 (rtx_insn): Likewise for return type and local "new_rtx".
5580
5581 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5582 from rtx to rtx_barrier *.
5583
5584 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5585 changed return type from rtx to rtx_insn *, we must update
5586 "emit_fn" type, and this in turn means updating...
5587 (frame_insn): ...this. Strengthen return type from rtx to
5588 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5589
5590 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5591
5592 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5593 rtx to rtx_jump_table_data *. Also for local.
5594 * rtl.h (emit_jump_table_data): Likewise.
5595
5596 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5597
5598 * basic-block.h (create_basic_block_structure): Strengthen third
5599 param "bb_note" from rtx to rtx_note *.
5600 * rtl.h (emit_note_before): Strengthen return type from rtx to
5601 rtx_note *.
5602 (emit_note_after): Likewise.
5603 (emit_note): Likewise.
5604 (emit_note_copy): Likewise. Also, strengthen param similarly.
5605 * function.h (struct rtl_data): Strengthen field
5606 "x_stack_check_probe_note" from rtx to rtx_note *.
5607
5608 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5609 from rtx to rtx_note *.
5610 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5611 "bb_note" from rtx to rtx_note *.
5612 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5613 when calling emit_note_copy.
5614 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5615 rtx_note *.
5616 (emit_note_after): Likewise.
5617 (emit_note_before): Likewise.
5618 (emit_note_copy): Likewise. Also, strengthen param similarly.
5619 (emit_note): Likewise.
5620 * except.c (emit_note_eh_region_end): Likewise for return type.
5621 Strengthen local "next" from rtx to rtx_insn *.
5622 (convert_to_eh_region_ranges): Strengthen local "note"
5623 from rtx to rtx_note *.
5624 * final.c (change_scope): Likewise.
5625 (reemit_insn_block_notes): Likewise, for both locals named "note".
5626 Also, strengthen local "insn" from rtx to rtx_insn *.
5627 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5628 rtx to rtx_note *.
5629 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5630 strengthen local "seq" from rtx to rtx_insn *.
5631 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5632 to rtx_note *.
5633 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5634 vec<rtx_note *>.
5635 (get_bb_note_from_pool): Strengthen return type from rtx to
5636 rtx_note *.
5637 (sel_create_basic_block): Strengthen local "new_bb_note" from
5638 insn_t to rtx_note *.
5639 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5640 "note" from rtx to rtx_note *.
5641 (emit_notes_in_bb): Likewise.
5642
5643 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5644
5645 * function.h (struct rtl_data): Strengthen field
5646 "x_parm_birth_insn" from rtx to rtx_insn *.
5647 * function.c (struct assign_parm_data_all): Strengthen fields
5648 "first_conversion_insn" and "last_conversion_insn" from rtx to
5649 rtx_insn *.
5650
5651 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5652
5653 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5654 to rtx_insn *; also for local "var_end_seq".
5655 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5656 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5657 "insn".
5658 (expand_gimple_cond): Likewise for locals "last2" and "last".
5659 (mark_transaction_restart_calls): Likewise for local "insn".
5660 (expand_gimple_stmt): Likewise for return type and locals "last"
5661 and "insn".
5662 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5663 (avoid_complex_debug_insns): Likewise for param "insn".
5664 (expand_debug_locations): Likewise for locals "insn", "last",
5665 "prev_insn" and "insn2".
5666 (expand_gimple_basic_block): Likewise for local "last".
5667 (construct_exit_block): Likewise for locals "head", "end",
5668 "orig_end".
5669 (pass_expand::execute): Likewise for locals "var_seq",
5670 "var_ret_seq", "next".
5671
5672 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5673
5674 * asan.h (asan_emit_stack_protection): Strengthen return type from
5675 rtx to rtx_insn *.
5676 * asan.c (asan_emit_stack_protection): Likewise. Add local
5677 "insns" to hold the return value.
5678
5679 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5680
5681 * basic-block.h (bb_note): Strengthen return type from rtx to
5682 rtx_note *.
5683 * sched-int.h (bb_note): Likewise.
5684 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5685
5686 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5687
5688 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5689 rtx_insn *.
5690
5691 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5692 "insn" from rtx to rtx_insn *.
5693 (make_debug_insn_raw): Strengthen return type from rtx to
5694 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5695 (make_jump_insn_raw): Strengthen return type from rtx to
5696 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5697 (make_call_insn_raw): Strengthen return type from rtx to
5698 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5699 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5700 callback from rtx to rtx_insn *; likewise for local "insn" and
5701 "next", adding a checked cast to rtx_insn in the relevant cases of
5702 the switch statement.
5703 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5704 callback from rtx to rtx_insn *.
5705 (emit_pattern_after_setloc): Likewise.
5706 (emit_pattern_after): Likewise.
5707 (emit_pattern_before_setloc): Likewise.
5708 (emit_pattern_before): Likewise.
5709
5710 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5711
5712 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5713 rtx_call_insn *.
5714 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5715 accepting an rtx_insn *.
5716 (last_call_insn): Strengthen return type from rtx to
5717 rtx_call_insn *.
5718
5719 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5720
5721 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5722 "insns" from rtx to rtx_insn *.
5723 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5724 locals "insn" and "prev".
5725
5726 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5727
5728 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5729 rtx_jump_table_data **.
5730
5731 * cfgbuild.c (make_edges): Introduce local "table", using it in
5732 place of "tmp" for jump table data.
5733 (find_bb_boundaries): Strengthen local "table" from rtx to
5734 rtx_jump_table_data *.
5735 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5736 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5737 (try_crossjump_to_edge): Likewise.
5738 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5739 "table".
5740 (patch_jump_insn): Introduce local "table", using it in place of
5741 "tmp" for jump table data.
5742 (force_nonfallthru_and_redirect): Introduce local "table", so that
5743 call to tablejump_p can receive an rtx_jump_table_data **. Update
5744 logic around the call to overwrite "note" appropriately if
5745 tablejump_p returns non-zero.
5746 (get_last_bb_insn): Introduce local "table", using it in place of
5747 "tmp" for jump table data.
5748 * dwarf2cfi.c (create_trace_edges): Likewise.
5749
5750 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5751 from rtx to rtx_jump_table_data *.
5752 (create_fix_barrier): Strengthen local "tmp" from rtx to
5753 rtx_jump_table_data *.
5754 (arm_reorg): Likewise for local "table".
5755
5756 * config/s390/s390.c (s390_chunkify_start): Likewise.
5757
5758 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5759
5760 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5761 rtx to rtx_jump_table_data *.
5762
5763 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5764 rtx_jump_table_data **. Add a checked cast when writing through
5765 the pointer: we know there that local "table" is non-NULL and that
5766 JUMP_TABLE_DATA_P (table) holds.
5767 (label_is_jump_target_p): Introduce local "table", using it in
5768 place of "tmp" for jump table data.
5769
5770 2014-08-19 Marek Polacek <polacek@redhat.com>
5771
5772 PR c++/62153
5773 * doc/invoke.texi: Document -Wbool-compare.
5774
5775 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5776
5777 * rtl.h (entry_of_function): Strengthen return type from rtx to
5778 rtx_insn *.
5779 * cfgrtl.c (entry_of_function): Likewise.
5780
5781 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5782
5783 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5784 rtx_insn *, adding a checked cast for now.
5785 (get_last_insn): Likewise.
5786
5787 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5788
5789 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5790 rtx_code_label *.
5791
5792 * emit-rtl.c (gen_label_rtx): Likewise.
5793
5794 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5795
5796 * rtl.h (previous_insn): Strengthen return type from rtx to
5797 rtx_insn *.
5798 (next_insn): Likewise.
5799 (prev_nonnote_insn): Likewise.
5800 (prev_nonnote_insn_bb): Likewise.
5801 (next_nonnote_insn): Likewise.
5802 (next_nonnote_insn_bb): Likewise.
5803 (prev_nondebug_insn): Likewise.
5804 (next_nondebug_insn): Likewise.
5805 (prev_nonnote_nondebug_insn): Likewise.
5806 (next_nonnote_nondebug_insn): Likewise.
5807 (prev_real_insn): Likewise.
5808 (next_real_insn): Likewise.
5809 (prev_active_insn): Likewise.
5810 (next_active_insn): Likewise.
5811
5812 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5813 rtx_insn *, adding a checked cast.
5814 (previous_insn): Likewise.
5815 (next_nonnote_insn): Likewise.
5816 (next_nonnote_insn_bb): Likewise.
5817 (prev_nonnote_insn): Likewise.
5818 (prev_nonnote_insn_bb): Likewise.
5819 (next_nondebug_insn): Likewise.
5820 (prev_nondebug_insn): Likewise.
5821 (next_nonnote_nondebug_insn): Likewise.
5822 (prev_nonnote_nondebug_insn): Likewise.
5823 (next_real_insn): Likewise.
5824 (prev_real_insn): Likewise.
5825 (next_active_insn): Likewise.
5826 (prev_active_insn): Likewise.
5827
5828 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5829 param "stepfunc" so that it returns an rtx_insn * rather than an
5830 rtx, to track the change to prev_nonnote_insn_bb, which is the
5831 only function this is called with.
5832 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5833
5834 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5835
5836 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5837 assert.
5838
5839 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5840
5841 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5842 (class rtx_nonjump_insn): Likewise.
5843 (class rtx_jump_insn): Likewise.
5844 (class rtx_call_insn): Likewise.
5845 (class rtx_jump_table_data): Likewise.
5846 (class rtx_barrier): Likewise.
5847 (class rtx_code_label): Likewise.
5848 (class rtx_note): Likewise.
5849
5850 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5851 adding the invariant DEBUG_INSN_P (X).
5852 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5853 the invariant NONJUMP_INSN_P (X).
5854 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5855 the invariant JUMP_P (X).
5856 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5857 the invariant CALL_P (X).
5858 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5859 invariant JUMP_TABLE_DATA_P (X).
5860 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5861 invariant BARRIER_P (X).
5862 (class rtx_code_label): New, a subclass of rtx_insn, adding
5863 the invariant LABEL_P (X).
5864 (class rtx_note): New, a subclass of rtx_insn, adding
5865 the invariant NOTE_P(X).
5866 (is_a_helper <rtx_debug_insn *>::test): New.
5867 (is_a_helper <rtx_nonjump_insn *>::test): New.
5868 (is_a_helper <rtx_jump_insn *>::test): New.
5869 (is_a_helper <rtx_call_insn *>::test): New.
5870 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5871 overloaded for both rtx and rtx_insn *.
5872 (is_a_helper <rtx_barrier *>::test): New.
5873 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5874 for both rtx and rtx_insn *.
5875 (is_a_helper <rtx_note *>::test): New.
5876
5877 2014-08-19 Marek Polacek <polacek@redhat.com>
5878
5879 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5880 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5881 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5882 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5883
5884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5885
5886 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5887 rtx_insn *. To help with transition, for now, convert from an
5888 access macro into a pair of functions: BND_TO, returning an
5889 rtx_insn *, and...
5890 (SET_BND_TO): New function, for use where BND_TO is used as an
5891 lvalue.
5892
5893 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5894 SET_BND_TO.
5895 (BND_TO): New function, adding a checked cast.
5896 (SET_BND_TO): New function.
5897
5898 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5899 SET_BND_TO.
5900 (compute_av_set_on_boundaries): Likewise.
5901
5902 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5903
5904 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5905 destination if it is used in source.
5906 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5907 (*popcount<mode>2_falsedep_1): Likewise.
5908
5909 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5910
5911 PR other/62168
5912 * configure.ac: Set install_gold_as_default to no first.
5913 * configure: Regenerated.
5914
5915 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5916
5917 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5918 "note_list" field will eventually be an rtx_insn *. To help with
5919 transition, for now, convert from an access macro into a pair of
5920 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5921 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5922 used as an lvalue.
5923
5924 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5925 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5926
5927 * sel-sched-ir.c (init_bb): Likewise.
5928 (sel_restore_notes): Likewise.
5929 (move_bb_info): Likewise.
5930 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5931 (SET_BB_NOTE_LIST): New function.
5932
5933 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5934
5935 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5936 field will eventually be an rtx_insn *. To help with transition,
5937 for now, convert from an access macro into a pair of functions:
5938 VINSN_INSN_RTX, returning an rtx_insn *, and...
5939 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5940 is used as an lvalue.
5941
5942 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5943 SET_VINSN_INSN_RTX where it's used as an lvalue.
5944 (VINSN_INSN_RTX): New function.
5945 (SET_VINSN_INSN_RTX): New function.
5946
5947 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5948
5949 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5950 eventually be rtx_insn *, but to help with transition, for now,
5951 convert from an access macro into a pair of functions: DEP_PRO
5952 returning an rtx_insn * and...
5953 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5954 lvalue, returning an rtx&.
5955 (DEP_CON): Analogous changes to DEP_PRO above.
5956 (SET_DEP_CON): Likewise.
5957
5958 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5959 an lvalue to SET_DEP_CON.
5960 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5961 (sd_copy_back_deps): Likewise for DEP_CON.
5962 (DEP_PRO): New function, adding a checked cast for now.
5963 (DEP_CON): Likewise.
5964 (SET_DEP_PRO): New function.
5965 (SET_DEP_CON): Likewise.
5966
5967 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5968
5969 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5970 (extra_options): Add i386/cygwin.opt.
5971 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5972 (CPP_SPEC): Accept -pthread.
5973 (LINK_SPEC): Ditto.
5974 (GOMP_SELF_SPECS): Update comment.
5975 * config/i386/cygwin.opt: New file for -pthread flag.
5976
5977 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5978
5979 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5980 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5981 that we can return an rtx_insn *.
5982
5983 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5984
5985 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5986 when building executables, not DLLs. Add --large-address-aware
5987 under the same conditions.
5988 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5989 when building executables, not DLLs. Add --large-address-aware
5990 under the same conditions when using -m32.
5991
5992 * config/i386/cygwin-stdint.h: Throughout, make type
5993 definitions dependent on target architecture, not host.
5994
5995 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5996
5997 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5998 the return type from rtx to rtx_insn *, which will enable various
5999 conversions in followup patches. For now this is is done by a
6000 checked cast.
6001 (NEXT_INSN): Likewise.
6002 (SET_PREV_INSN): Convert to an inline function. This is intended
6003 for use as an lvalue, and so returns an rtx& to allow in-place
6004 modification.
6005 (SET_NEXT_INSN): Likewise.
6006
6007 2014-07-08 Mark Wielaard <mjw@redhat.com>
6008
6009 PR debug/59051
6010 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6011
6012 2014-08-19 Marek Polacek <polacek@redhat.com>
6013
6014 PR c/61271
6015 * cgraphunit.c (handle_alias_pairs): Fix condition.
6016
6017 2014-08-19 Richard Biener <rguenther@suse.de>
6018
6019 * gimple-fold.c (fold_gimple_assign): Properly build a
6020 null-pointer constant when devirtualizing addresses.
6021
6022 2014-07-07 Mark Wielaard <mjw@redhat.com>
6023
6024 * dwarf2out.c (decl_quals): New function.
6025 (modified_type_die): Take one cv_quals argument instead of two,
6026 one for const and one for volatile.
6027 (add_type_attribute): Likewise.
6028 (generic_parameter_die): Call add_type_attribute with one modifier
6029 argument.
6030 (base_type_for_mode): Likewise.
6031 (add_bounds_info): Likewise.
6032 (add_subscript_info): Likewise.
6033 (gen_array_type_die): Likewise.
6034 (gen_descr_array_type_die): Likewise.
6035 (gen_entry_point_die): Likewise.
6036 (gen_enumeration_type_die): Likewise.
6037 (gen_formal_parameter_die): Likewise.
6038 (gen_subprogram_die): Likewise.
6039 (gen_variable_die): Likewise.
6040 (gen_const_die): Likewise.
6041 (gen_field_die): Likewise.
6042 (gen_pointer_type_die): Likewise.
6043 (gen_reference_type_die): Likewise.
6044 (gen_ptr_to_mbr_type_die): Likewise.
6045 (gen_inheritance_die): Likewise.
6046 (gen_subroutine_type_die): Likewise.
6047 (gen_typedef_die): Likewise.
6048 (force_type_die): Likewise.
6049
6050 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6051
6052 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6053 if unset.
6054 * configure: Regenerate.
6055
6056 2014-08-19 Richard Biener <rguenther@suse.de>
6057
6058 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6059 DECL_EXTERNALs in BLOCKs as non-references.
6060 * tree-streamer-out.c (streamer_write_chain): Likewise.
6061
6062 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6063 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6064 Anna Tikhonova <anna.tikhonova@intel.com>
6065 Ilya Tocar <ilya.tocar@intel.com>
6066 Andrey Turetskiy <andrey.turetskiy@intel.com>
6067 Ilya Verbin <ilya.verbin@intel.com>
6068 Kirill Yukhin <kirill.yukhin@intel.com>
6069 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6070
6071 * config/i386/sse.md
6072 (define_mode_iterator VI48_AVX512F): Delete.
6073 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6074 (define_mode_iterator VI2_AVX512VL): Ditto.
6075 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6076 Delete.
6077 (define_insn
6078 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6079 New.
6080 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6081 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6082 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6083 with VI48_AVX512F_AVX512VL): New.
6084 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6085 with VI2_AVX512VL): Ditto.
6086
6087 2014-08-19 Marek Polacek <polacek@redhat.com>
6088
6089 * doc/invoke.texi: Document -Wc99-c11-compat.
6090
6091 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6092
6093 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6094 for rvalues, and...
6095 (SET_PREV_INSN): New macro, for use as an lvalue.
6096 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6097
6098 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6099 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6100 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6101 (fixup_abnormal_edges): Likewise.
6102 (unlink_insn_chain): Likewise.
6103 (fixup_reorder_chain): Likewise.
6104 (cfg_layout_delete_block): Likewise.
6105 (cfg_layout_merge_blocks): Likewise.
6106 * combine.c (update_cfg_for_uncondjump): Likewise.
6107 * emit-rtl.c (link_insn_into_chain): Likewise.
6108 (remove_insn): Likewise.
6109 (delete_insns_since): Likewise.
6110 (reorder_insns_nobb): Likewise.
6111 (emit_insn_after_1): Likewise.
6112 * final.c (rest_of_clean_state): Likewise.
6113 (final_scan_insn): Likewise.
6114 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6115 * haifa-sched.c (concat_note_lists): Likewise.
6116 (remove_notes): Likewise.
6117 (restore_other_notes): Likewise.
6118 (move_insn): Likewise.
6119 (unlink_bb_notes): Likewise.
6120 (restore_bb_notes): Likewise.
6121 * jump.c (delete_for_peephole): Likewise.
6122 * optabs.c (emit_libcall_block_1): Likewise.
6123 * reorg.c (emit_delay_sequence): Likewise.
6124 (fill_simple_delay_slots): Likewise.
6125 * sel-sched-ir.c (sel_move_insn): Likewise.
6126 (sel_remove_insn): Likewise.
6127 (get_bb_note_from_pool): Likewise.
6128 * sel-sched.c (move_nop_to_previous_block): Likewise.
6129
6130 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6131 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6132 (c6x_gen_bundles): Likewise.
6133 (hwloop_optimize): Likewise.
6134 * config/frv/frv.c (frv_function_prologue): Likewise.
6135 (frv_register_nop): Likewise.
6136 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6137 (ia64_reorg): Likewise.
6138 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6139 (mep_make_bundle): Likewise.
6140 (mep_bundle_insns): Likewise.
6141 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6142 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6143 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6144
6145 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6146
6147 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6148 return type from rtx to rtx_insn *.
6149 (BB_END): Likewise.
6150 (BB_HEADER): Likewise.
6151 (BB_FOOTER): Likewise.
6152 (SET_BB_HEAD): Convert to a function.
6153 (SET_BB_END): Likewise.
6154 (SET_BB_HEADER): Likewise.
6155 (SET_BB_FOOTER): Likewise.
6156
6157 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6158 Strengthen the return type from rtx to rtx_insn *. For now, this
6159 is done by adding a checked cast, but this will eventually
6160 become a field lookup.
6161 (BB_END): Likewise.
6162 (BB_HEADER): Likewise.
6163 (BB_FOOTER): Likewise.
6164 (SET_BB_HEAD): New function, from macro of same name. This is
6165 intended for use as an lvalue, and so returns an rtx& to allow
6166 in-place modification.
6167 (SET_BB_END): Likewise.
6168 (SET_BB_HEADER): Likewise.
6169 (SET_BB_FOOTER): Likewise.
6170
6171 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6172
6173 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6174 for rvalues, and...
6175 (SET_BB_HEAD): New macro, for use as a lvalue.
6176 (BB_END, SET_BB_END): Likewise.
6177 (BB_HEADER, SET_BB_HEADER): Likewise.
6178 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6179
6180 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6181 of BB_* macros into SET_BB_* macros.
6182 (fix_crossing_unconditional_branches): Likewise.
6183 * caller-save.c (save_call_clobbered_regs): Likewise.
6184 (insert_one_insn): Likewise.
6185 * cfgbuild.c (find_bb_boundaries): Likewise.
6186 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6187 (outgoing_edges_match): Likewise.
6188 (try_optimize_cfg): Likewise.
6189 * cfgexpand.c (expand_gimple_cond): Likewise.
6190 (expand_gimple_tailcall): Likewise.
6191 (expand_gimple_basic_block): Likewise.
6192 (construct_exit_block): Likewise.
6193 * cfgrtl.c (delete_insn): Likewise.
6194 (create_basic_block_structure): Likewise.
6195 (rtl_delete_block): Likewise.
6196 (rtl_split_block): Likewise.
6197 (emit_nop_for_unique_locus_between): Likewise.
6198 (rtl_merge_blocks): Likewise.
6199 (block_label): Likewise.
6200 (try_redirect_by_replacing_jump): Likewise.
6201 (emit_barrier_after_bb): Likewise.
6202 (fixup_abnormal_edges): Likewise.
6203 (record_effective_endpoints): Likewise.
6204 (relink_block_chain): Likewise.
6205 (fixup_reorder_chain): Likewise.
6206 (fixup_fallthru_exit_predecessor): Likewise.
6207 (cfg_layout_duplicate_bb): Likewise.
6208 (cfg_layout_split_block): Likewise.
6209 (cfg_layout_delete_block): Likewise.
6210 (cfg_layout_merge_blocks): Likewise.
6211 * combine.c (update_cfg_for_uncondjump): Likewise.
6212 * emit-rtl.c (add_insn_after): Likewise.
6213 (remove_insn): Likewise.
6214 (reorder_insns): Likewise.
6215 (emit_insn_after_1): Likewise.
6216 * haifa-sched.c (get_ebb_head_tail): Likewise.
6217 (restore_other_notes): Likewise.
6218 (move_insn): Likewise.
6219 (sched_extend_bb): Likewise.
6220 (fix_jump_move): Likewise.
6221 * ifcvt.c (noce_process_if_block): Likewise.
6222 (dead_or_predicable): Likewise.
6223 * ira.c (update_equiv_regs): Likewise.
6224 * reg-stack.c (change_stack): Likewise.
6225 * sel-sched-ir.c (sel_move_insn): Likewise.
6226 * sel-sched.c (move_nop_to_previous_block): Likewise.
6227
6228 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6229 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6230
6231 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6232
6233 * rtl.h (for_each_rtx_in_insn): New function.
6234 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6235
6236 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6237
6238 * coretypes.h (class rtx_insn): Add forward declaration.
6239
6240 * rtl.h: Include is-a.h.
6241 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6242 workaround to ensure gengtype knows inheritance is occurring,
6243 whilst continuing to use the pre-existing special-casing for
6244 rtx_def.
6245 (class rtx_insn): New subclass of rtx_def, adding the
6246 invariant that we're dealing with something we can sanely use
6247 INSN_UID, NEXT_INSN, PREV_INSN on.
6248 (is_a_helper <rtx_insn *>::test): New.
6249 (is_a_helper <const rtx_insn *>::test): New.
6250
6251 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6252
6253 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6254
6255 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6256
6257 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6258 comdats as extern.
6259
6260 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6261
6262 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6263 to BUILT_IN_UNREACHABLE.
6264
6265 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6266
6267 PR target/62011
6268 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6269 New tune flag.
6270 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6271 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6272 (ffs<mode>2): Do not expand with tzcnt for
6273 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6274 (ffssi2_no_cmove): Ditto.
6275 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6276 (ctz<mode>2): New expander.
6277 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6278 (*ctz<mode>2_falsedep): New insn.
6279 (*ctz<mode>2): Rename from ctz<mode>2.
6280 (clz<mode>2_lzcnt): New expander.
6281 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6282 (*clz<mode>2_lzcnt_falsedep): New insn.
6283 (*clz<mode>2): Rename from ctz<mode>2.
6284 (popcount<mode>2): New expander.
6285 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6286 (*popcount<mode>2_falsedep): New insn.
6287 (*popcount<mode>2): Rename from ctz<mode>2.
6288 (*popcount<mode>2_cmp): Remove.
6289 (*popcountsi2_cmp_zext): Ditto.
6290
6291 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6292
6293 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6294 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6295 * config/microblaze/microblaze.h
6296 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6297
6298 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6299
6300 PR other/62168
6301 * configure.ac: Set install_gold_as_default to no for
6302 --enable-gold=no.
6303 * configure: Regenerated.
6304
6305 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6306
6307 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6308 * config.in: Add undef of HAVE_isl.
6309 * configure: Regenerate.
6310 * configure.ac: Add definition of HAVE_isl.
6311 * graphite-blocking.c: Add checking of HAVE_isl.
6312 * graphite-dependences.c: Likewise.
6313 * graphite-interchange.c: Likewise.
6314 * graphite-isl-ast-to-gimple.c: Likewise.
6315 * graphite-optimize-isl.c: Likewise.
6316 * graphite-poly.c: Likewise.
6317 * graphite-scop-detection.c: Likewise.
6318 * graphite-sese-to-poly.c: Likewise.
6319 * graphite.c: Likewise.
6320 * toplev.c: Replace the checking of HAVE_cloog with the checking
6321 of HAVE_isl.
6322
6323 2014-08-18 Richard Biener <rguenther@suse.de>
6324
6325 PR tree-optimization/62090
6326 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6327 (fold_builtin_3): Do not fold snprintf.
6328 (fold_builtin_4): Likewise.
6329 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6330 moved from builtins.c.
6331 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6332 (gimple_fold_builtin): Do not fold sprintf here.
6333
6334 2014-08-18 Richard Biener <rguenther@suse.de>
6335
6336 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6337 code to ...
6338 (maybe_canonicalize_mem_ref_addr): ... this function.
6339 (fold_stmt_1): Apply it here before all simplification.
6340
6341 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6342
6343 PR ipa/61800
6344 * cgraph.h (cgraph_node::create_indirect_edge): Add
6345 compute_indirect_info param.
6346 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6347 indirect_info only when it is required.
6348 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6349 indirect_info fore cloned indirect edge.
6350
6351 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6352 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6353 Anna Tikhonova <anna.tikhonova@intel.com>
6354 Ilya Tocar <ilya.tocar@intel.com>
6355 Andrey Turetskiy <andrey.turetskiy@intel.com>
6356 Ilya Verbin <ilya.verbin@intel.com>
6357 Kirill Yukhin <kirill.yukhin@intel.com>
6358 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6359
6360 * config/i386/sse.md
6361 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6362 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6363
6364 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6365 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6366 Anna Tikhonova <anna.tikhonova@intel.com>
6367 Ilya Tocar <ilya.tocar@intel.com>
6368 Andrey Turetskiy <andrey.turetskiy@intel.com>
6369 Ilya Verbin <ilya.verbin@intel.com>
6370 Kirill Yukhin <kirill.yukhin@intel.com>
6371 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6372
6373 * config/i386/sse.md
6374 (define_mode_iterator VF1_AVX512VL): New.
6375 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6376 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6377 New.
6378
6379 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6381 Anna Tikhonova <anna.tikhonova@intel.com>
6382 Ilya Tocar <ilya.tocar@intel.com>
6383 Andrey Turetskiy <andrey.turetskiy@intel.com>
6384 Ilya Verbin <ilya.verbin@intel.com>
6385 Kirill Yukhin <kirill.yukhin@intel.com>
6386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6387
6388 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6389 * config/i386/i386.md
6390 (define_code_iterator any_float): New.
6391 (define_code_attr floatsuffix): New.
6392 * config/i386/sse.md
6393 (define_mode_iterator VF1_128_256VL): New.
6394 (define_mode_iterator VF2_512_256VL): New.
6395 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6396 TARGET check.
6397 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6398 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6399 New.
6400 (define_mode_attr qq2pssuff): New.
6401 (define_mode_attr sselongvecmode): New.
6402 (define_mode_attr sselongvecmodelower): New.
6403 (define_mode_attr sseintvecmode3): New.
6404 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6405 New.
6406 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6407 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6408 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6409 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6410
6411 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6412 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6413 Anna Tikhonova <anna.tikhonova@intel.com>
6414 Ilya Tocar <ilya.tocar@intel.com>
6415 Andrey Turetskiy <andrey.turetskiy@intel.com>
6416 Ilya Verbin <ilya.verbin@intel.com>
6417 Kirill Yukhin <kirill.yukhin@intel.com>
6418 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6419
6420 * config/i386/sse.md
6421 (define_mode_iterator VF2_AVX512VL): New.
6422 (define_mode_attr sseintvecmode2): New.
6423 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6424 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6425 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6426 (define_insn
6427 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6428 Ditto.
6429 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6430 Ditto.
6431 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6432 Ditto.
6433
6434 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6436 Anna Tikhonova <anna.tikhonova@intel.com>
6437 Ilya Tocar <ilya.tocar@intel.com>
6438 Andrey Turetskiy <andrey.turetskiy@intel.com>
6439 Ilya Verbin <ilya.verbin@intel.com>
6440 Kirill Yukhin <kirill.yukhin@intel.com>
6441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6442
6443 * config/i386/i386.md
6444 (define_insn "*movoi_internal_avx"): Add evex version.
6445 (define_insn "*movti_internal"): Ditto.
6446
6447 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6449 Anna Tikhonova <anna.tikhonova@intel.com>
6450 Ilya Tocar <ilya.tocar@intel.com>
6451 Andrey Turetskiy <andrey.turetskiy@intel.com>
6452 Ilya Verbin <ilya.verbin@intel.com>
6453 Kirill Yukhin <kirill.yukhin@intel.com>
6454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6455
6456 * config/i386/i386.md
6457 (define_attr "isa"): Add avx512dq, noavx512dq.
6458 (define_attr "enabled"): Ditto.
6459 * config/i386/sse.md
6460 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6461
6462 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6463 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6464 Anna Tikhonova <anna.tikhonova@intel.com>
6465 Ilya Tocar <ilya.tocar@intel.com>
6466 Andrey Turetskiy <andrey.turetskiy@intel.com>
6467 Ilya Verbin <ilya.verbin@intel.com>
6468 Kirill Yukhin <kirill.yukhin@intel.com>
6469 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6470
6471 * config/i386/i386.c
6472 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6473 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6474 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6475 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6476 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6477 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6478 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6479 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6480 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6481 * config/i386/sse.md
6482 (define_mode_iterator VMOVE): Allow V4TI mode.
6483 (define_mode_iterator V_AVX512VL): New.
6484 (define_mode_iterator V): New handling for AVX512VL.
6485 (define_insn "avx512f_load<mode>_mask"): Delete.
6486 (define_insn "<avx512>_load<mode>_mask"): New.
6487 (define_insn "avx512f_store<mode>_mask"): Delete.
6488 (define_insn "<avx512>_store<mode>_mask"): New.
6489
6490
6491 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6492
6493 PR sanitizer/62089
6494 * asan.c (instrument_derefs): Fix bitfield check.
6495
6496 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6497
6498 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6499 * config/rs6000/htm.md (ttest): Remove clobber.
6500 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6501 (and_operand): Reformat.
6502 (and_2rld_operand): New predicate.
6503 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6504 parameter.
6505 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6506 parameter. Handle AND directly.
6507 (rs6000_split_logical_di): Remove last parameter.
6508 (rs6000_split_logical): Remove last parameter. Remove obsolete
6509 comment.
6510 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6511 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6512 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6513 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6514 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6515 and 5 anonymous splitters): Delete.
6516 (and<mode>3): New expander.
6517 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6518 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6519 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6520 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6521 (floatdisf2_internal1): Remove clobbers.
6522 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6523 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6524 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6525 (and<mode>3 for BOOL_128): Remove clobber.
6526 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6527 rs6000_split_logical.
6528 (*bool<mode>3_internal for BOOL_128): Adjust call of
6529 rs6000_split_logical.
6530 (*boolc<mode>3_internal1 for BOOL_128,
6531 *boolc<mode>3_internal2 for BOOL_128,
6532 *boolcc<mode>3_internal1 for BOOL_128,
6533 *boolcc<mode>3_internal2 for BOOL_128,
6534 *eqv<mode>3_internal1 for BOOL_128,
6535 *eqv<mode>3_internal2 for BOOL_128,
6536 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6537 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6538 clobber.
6539 (*vec_reload_and_reg_<mptrsize>): Delete.
6540
6541 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6542
6543 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6544 and split, *boolccsi3_internal3 and split): Delete.
6545 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6546 *boolccdi3_internal3 and split): Delete.
6547 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6548 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6549
6550 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6551
6552 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6553 and split, *boolcsi3_internal3 and split): Delete.
6554 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6555 *boolcdi3_internal3 and split): Delete.
6556 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6557
6558 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6559
6560 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6561 <'u'>: Also support printing the low-order 16 bits.
6562 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6563 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6564 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6565 *booldi3_internal3 and split): Delete.
6566 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6567 *bool<mode>3_dot2): New.
6568 (two anonymous define_splits for non_logical_cint_operand): Merge.
6569
6570 2014-08-17 Marek Polacek <polacek@redhat.com>
6571 Manuel López-Ibáñez <manu@gcc.gnu.org>
6572
6573 PR c/62059
6574 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6575 (diagnostic_show_locus): Don't print caret diagnostic
6576 if a column is larger than the line_width.
6577
6578 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6579
6580 * common.opt: Make the ISL AST generator to be the main code generator
6581 of Graphite.
6582
6583 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6584
6585 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6586
6587 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6588
6589 PR target/61641
6590 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6591 Declare.
6592 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6593 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6594 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6595 Define.
6596 * config/pa/pa.md (begin_brtab): Delete insn.
6597 (end_brtab): Likewise.
6598
6599 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6600
6601 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6602
6603 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6604
6605 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6606 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6607 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6608 (get_dynamic_type): Remove.
6609 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6610 (clear_speculation): Bring to ipa-deivrt.h
6611 (get_class_context): Rename to ...
6612 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6613 (contains_type_p): Update.
6614 (get_dynamic_type): Rename to ...
6615 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6616 (possible_polymorphic_call_targets): UPdate.
6617 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6618 * ipa-prop.c (ipa_analyze_call_uses): Update.
6619
6620 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6621
6622 * doc/invoke.texi (SH options): Document missing processor variant
6623 options. Remove references to Hitachi. Undocument deprecated mspace
6624 option.
6625
6626 2014-08-15 Jason Merrill <jason@redhat.com>
6627
6628 * tree.c (type_hash_canon): Uncomment assert.
6629
6630 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6631
6632 * input.h (in_system_header_at): Add comment.
6633
6634 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6635
6636 PR fortran/44054
6637 * diagnostic.c (build_message_string): Make it extern.
6638 * diagnostic.h (build_message_string): Make it extern.
6639
6640 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6641
6642 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6643 load/store from/to non-floating class pseudo.
6644
6645 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6646
6647 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6648
6649 2014-08-15 Richard Biener <rguenther@suse.de>
6650
6651 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6652 (get_constraint_for_ssa_var): Remove dead code.
6653 (get_constraint_for_1): Adjust.
6654 (find_what_var_points_to): Likewise.
6655 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6656
6657 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6658
6659 PR target/61878
6660 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6661 (_mm512_mask_cmpge_epu32_mask): Ditto.
6662 (_mm512_cmpge_epu32_mask): Ditto.
6663 (_mm512_mask_cmpge_epi64_mask): Ditto.
6664 (_mm512_cmpge_epi64_mask): Ditto.
6665 (_mm512_mask_cmpge_epu64_mask): Ditto.
6666 (_mm512_cmpge_epu64_mask): Ditto.
6667 (_mm512_mask_cmple_epi32_mask): Ditto.
6668 (_mm512_cmple_epi32_mask): Ditto.
6669 (_mm512_mask_cmple_epu32_mask): Ditto.
6670 (_mm512_cmple_epu32_mask): Ditto.
6671 (_mm512_mask_cmple_epi64_mask): Ditto.
6672 (_mm512_cmple_epi64_mask): Ditto.
6673 (_mm512_mask_cmple_epu64_mask): Ditto.
6674 (_mm512_cmple_epu64_mask): Ditto.
6675 (_mm512_mask_cmplt_epi32_mask): Ditto.
6676 (_mm512_cmplt_epi32_mask): Ditto.
6677 (_mm512_mask_cmplt_epu32_mask): Ditto.
6678 (_mm512_cmplt_epu32_mask): Ditto.
6679 (_mm512_mask_cmplt_epi64_mask): Ditto.
6680 (_mm512_cmplt_epi64_mask): Ditto.
6681 (_mm512_mask_cmplt_epu64_mask): Ditto.
6682 (_mm512_cmplt_epu64_mask): Ditto.
6683 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6684 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6685 (_mm512_cmpneq_epu32_mask): Ditto.
6686 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6687 (_mm512_cmpneq_epi64_mask): Ditto.
6688 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6689 (_mm512_cmpneq_epu64_mask): Ditto.
6690 (_mm512_castpd_ps): Ditto.
6691 (_mm512_castpd_si512): Ditto.
6692 (_mm512_castps_pd): Ditto.
6693 (_mm512_castps_si512): Ditto.
6694 (_mm512_castsi512_ps): Ditto.
6695 (_mm512_castsi512_pd): Ditto.
6696 (_mm512_castpd512_pd128): Ditto.
6697 (_mm512_castps512_ps128): Ditto.
6698 (_mm512_castsi512_si128): Ditto.
6699 (_mm512_castpd512_pd256): Ditto.
6700 (_mm512_castps512_ps256): Ditto.
6701 (_mm512_castsi512_si256): Ditto.
6702 (_mm512_castpd128_pd512): Ditto.
6703 (_mm512_castps128_ps512): Ditto.
6704 (_mm512_castsi128_si512): Ditto.
6705 (_mm512_castpd256_pd512): Ditto.
6706 (_mm512_castps256_ps512): Ditto.
6707 (_mm512_castsi256_si512): Ditto.
6708 (_mm512_cmpeq_epu32_mask): Ditto.
6709 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6710 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6711 (_mm512_cmpeq_epu64_mask): Ditto.
6712 (_mm512_cmpgt_epu32_mask): Ditto.
6713 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6714 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6715 (_mm512_cmpgt_epu64_mask): Ditto.
6716 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6717 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6718 * config/i386/i386.c (enum ix86_builtins): Add
6719 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6720 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6721 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6722 (bdesc_args): Add __builtin_ia32_si512_256si,
6723 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6724 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6725 __builtin_ia32_pd512_pd.
6726 (ix86_expand_args_builtin): Handle new FTYPEs.
6727 * config/i386/sse.md (castmode): Add 512-bit modes.
6728 (AVX512MODE2P): New.
6729 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6730 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6731
6732 2014-08-15 Richard Biener <rguenther@suse.de>
6733
6734 * fold-const.c (tree_swap_operands_p): Put all constants
6735 last, also strip sign-changing NOPs when considering further
6736 canonicalization. Canonicalize also when optimizing for size.
6737
6738 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6739
6740 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6741 one_match > zero_match case to just before simple_sequence.
6742
6743 2014-08-15 Richard Biener <rguenther@suse.de>
6744
6745 * data-streamer.h (streamer_string_index, string_for_index):
6746 Remove.
6747 * data-streamer-out.c (streamer_string_index): Make static.
6748 * data-streamer-in.c (string_for_index): Likewise.
6749 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6750 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6751
6752 2014-08-15 Richard Biener <rguenther@suse.de>
6753
6754 PR tree-optimization/62031
6755 * tree-data-ref.c (dr_analyze_indices): Do not set
6756 DR_UNCONSTRAINED_BASE.
6757 (dr_may_alias_p): All indirect accesses have to go the
6758 formerly DR_UNCONSTRAINED_BASE path.
6759 * tree-data-ref.h (struct indices): Remove
6760 unconstrained_base member.
6761 (DR_UNCONSTRAINED_BASE): Remove.
6762
6763 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6764
6765 PR middle-end/62092
6766 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6767 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6768 in OMP_CLAUSE_MAP in some outer target region.
6769
6770 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6771
6772 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6773 name_expansion_cache.
6774 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6775 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6776 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6777 (difference_cannot_overflow_p): New parameter. Use affine
6778 expansion for equality check.
6779 (iv_elimination_compare_lt): Pass new argument.
6780
6781 2014-08-14 DJ Delorie <dj@redhat.com>
6782
6783 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6784 variables to the accumulator.
6785
6786 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6787 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6788 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6789 with far-far moves.
6790
6791 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6792 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6793 (umulqihi3_virt): Likewise.
6794 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6795 (umulqihi3_real): Likewise.
6796
6797 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6798
6799 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6800
6801 PR tree-optimization/62091
6802 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6803 function_entry_reached.
6804 (walk_aliased_vdefs): Clear it here.
6805 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6806
6807 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6808
6809 * ipa-utils.h (compare_virtual_tables): Declare.
6810 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6811
6812 2014-08-14 Marek Polacek <polacek@redhat.com>
6813
6814 DR 458
6815 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6816 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6817
6818 2014-08-14 Tom de Vries <tom@codesourcery.com>
6819
6820 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6821
6822 2014-08-14 Tom de Vries <tom@codesourcery.com>
6823
6824 PR rtl-optimization/62004
6825 PR rtl-optimization/62030
6826 * ifcvt.c (rtx_interchangeable_p): New function.
6827 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6828 * emit-rtl.h (mem_attrs_eq_p): Declare.
6829
6830 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6831
6832 * graphite-scop-detection.c:
6833 Add inclusion of cp-tree.h.
6834 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6835 in case they are pointers to object types
6836
6837 2014-08-14 Richard Biener <rguenther@suse.de>
6838
6839 * BASE-VER: Change to 5.0.0
6840
6841 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6842 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6843 Anna Tikhonova <anna.tikhonova@intel.com>
6844 Ilya Tocar <ilya.tocar@intel.com>
6845 Andrey Turetskiy <andrey.turetskiy@intel.com>
6846 Ilya Verbin <ilya.verbin@intel.com>
6847 Kirill Yukhin <kirill.yukhin@intel.com>
6848 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6849
6850 * config/i386/sse.md (define_mode_attr avx512): New.
6851 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6852 V4DI modes.
6853 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6854 (define_mode_attr ssse3_avx2): Ditto.
6855 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6856 (define_mode_attr avx2_avx512bw): New.
6857 (define_mode_attr ssedoublemodelower): New.
6858 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6859 V32HI, V64QI modes.
6860 (define_mode_attr ssebytemode): Allow V8DI modes.
6861 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6862 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6863 (define_mode_attr ssePSmode2): New.
6864 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6865 V16HI, V32HI modes.
6866 (define_mode_attr dbpsadbwmode): New.
6867 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6868 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6869 (vi8_sse4_1_avx2_avx512): New.
6870 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6871 mode attribute.
6872 (define_mode_attr blendbits): Move before its immediate use.
6873
6874 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6875 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6876 Anna Tikhonova <anna.tikhonova@intel.com>
6877 Ilya Tocar <ilya.tocar@intel.com>
6878 Andrey Turetskiy <andrey.turetskiy@intel.com>
6879 Ilya Verbin <ilya.verbin@intel.com>
6880 Kirill Yukhin <kirill.yukhin@intel.com>
6881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6882
6883 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6884 * config/i386/subst.md
6885 (define_mode_iterator SUBST_V): Update.
6886 (define_mode_iterator SUBST_A): Ditto.
6887 (define_subst_attr "mask_operand7"): New.
6888 (define_subst_attr "mask_operand10"): New.
6889 (define_subst_attr "mask_operand_arg34") : New.
6890 (define_subst_attr "mask_expand_op3"): New.
6891 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6892 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6893 (define_subst_attr "mask_avx512vl_condition"): New.
6894 (define_subst_attr "round_mask_operand4"): Ditto.
6895 (define_subst_attr "round_mask_scalar_op3"): Delete.
6896 (define_subst_attr "round_mask_op4"): New.
6897 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6898 V16SImode.
6899 (define_subst_attr "round_modev8sf_condition"): New.
6900 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6901 <MODE>mode.
6902 (define_subst_attr "round_saeonly_mask_operand4"): New.
6903 (define_subst_attr "round_saeonly_mask_op4"): New.
6904 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6905 V8DImode, V16SImode.
6906 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6907 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6908 (define_subst_attr "mask_expand4_args"): New.
6909 (define_subst "mask_expand4"): New.
6910
6911 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6912 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6913 Anna Tikhonova <anna.tikhonova@intel.com>
6914 Ilya Tocar <ilya.tocar@intel.com>
6915 Andrey Turetskiy <andrey.turetskiy@intel.com>
6916 Ilya Verbin <ilya.verbin@intel.com>
6917 Kirill Yukhin <kirill.yukhin@intel.com>
6918 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6919
6920 * config/i386/i386.md
6921 (define_attr "isa"): Add avx512bw,noavx512bw.
6922 (define_attr "enabled"): Ditto.
6923 (define_split): Add 32/64-bit mask logic.
6924 (define_insn "*k<logic>qi"): New.
6925 (define_insn "*k<logic>hi"): New.
6926 (define_insn "*anddi_1"): Add mask version.
6927 (define_insn "*andsi_1"): Ditto.
6928 (define_insn "*<code><mode>_1"): Ditto.
6929 (define_insn "*<code>hi_1"): Ditto.
6930 (define_insn "kxnor<mode>"): New.
6931 (define_insn "kunpcksi"): New.
6932 (define_insn "kunpckdi"): New.
6933 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6934 (define_insn "*one_cmplhi2_1"): Ditto.
6935
6936 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6938 Anna Tikhonova <anna.tikhonova@intel.com>
6939 Ilya Tocar <ilya.tocar@intel.com>
6940 Andrey Turetskiy <andrey.turetskiy@intel.com>
6941 Ilya Verbin <ilya.verbin@intel.com>
6942 Kirill Yukhin <kirill.yukhin@intel.com>
6943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6944
6945 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6946 V32HImode.
6947
6948 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6950 Anna Tikhonova <anna.tikhonova@intel.com>
6951 Ilya Tocar <ilya.tocar@intel.com>
6952 Andrey Turetskiy <andrey.turetskiy@intel.com>
6953 Ilya Verbin <ilya.verbin@intel.com>
6954 Kirill Yukhin <kirill.yukhin@intel.com>
6955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6956
6957 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6958 registers.
6959 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6960 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6961 xmm/ymm16+ when availble.
6962 * config/i386/i386.h
6963 (HARD_REGNO_NREGS): Add mask regs.
6964 (VALID_AVX512F_REG_MODE): Ditto.
6965 (VALID_AVX512F_REG_MODE) : Define.
6966 (VALID_MASK_AVX512BW_MODE): Ditto.
6967 (reg_class) (MASK_REG_P(X)): Define.
6968 * config/i386/i386.md: Do not split long moves with mask register,
6969 use kmovb if avx512bw is availible.
6970 (movdi_internal): Handle mask registers.
6971
6972 2014-08-14 Richard Biener <rguenther@suse.de>
6973
6974 PR tree-optimization/62081
6975 * tree-ssa-loop.c (pass_fix_loops): New pass.
6976 (pass_tree_loop::gate): Do not fixup loops here.
6977 * tree-pass.h (make_pass_fix_loops): Declare.
6978 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6979
6980 2014-08-14 Richard Biener <rguenther@suse.de>
6981
6982 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6983 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6984
6985 2014-08-14 Richard Biener <rguenther@suse.de>
6986
6987 PR tree-optimization/62090
6988 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6989 (fold_builtin_2): Do not fold sprintf.
6990 (fold_builtin_3): Likewise.
6991 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6992 moved from builtins.c.
6993 (gimple_fold_builtin): Fold sprintf.
6994
6995 2014-08-14 Richard Biener <rguenther@suse.de>
6996
6997 PR rtl-optimization/62079
6998 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6999 run cleanup_cfg.
7000
7001 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7002
7003 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7004 current_function_decl.
7005
7006 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7007
7008 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7009 cgraph_function_node to cgraph_node::function_symbol
7010 refactoring.
7011
7012 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7013
7014 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7015 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7016
7017 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7018
7019 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7020 warning.
7021
7022 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7023
7024 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7025 generator.
7026
7027 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7028
7029 PR target/62025
7030 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7031 any registers that are used in mem_insn.
7032
7033 2014-08-12 Steve Ellcey <sellcey@mips.com>
7034
7035 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7036
7037 2014-08-12 Steve Ellcey <sellcey@mips.com>
7038
7039 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7040 (MULTILIB_DIRNAMES): Ditto.
7041 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7042 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7043 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7044 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7045 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7046 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7047
7048 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7049
7050 PR target/61413
7051 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7052 of __ARM_SIZEOF_WCHAR_T.
7053
7054 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7055
7056 PR target/62098
7057 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7058 Remove unnecessary attributes.
7059
7060 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7061
7062 * internal-fn.c (init_internal_fns): Fix off-by-one.
7063
7064 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7065 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7066 Anna Tikhonova <anna.tikhonova@intel.com>
7067 Ilya Tocar <ilya.tocar@intel.com>
7068 Andrey Turetskiy <andrey.turetskiy@intel.com>
7069 Ilya Verbin <ilya.verbin@intel.com>
7070 Kirill Yukhin <kirill.yukhin@intel.com>
7071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7072
7073 * config/i386/i386.c (standard_sse_constant_opcode): Use
7074 vpxord/vpternlog if avx512 is availible.
7075
7076 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7077
7078 PR middle-end/62103
7079 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7080 bitfields, that is when size doesn't match the size of type or the
7081 size of the constructor.
7082
7083 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7084
7085 * config/rs6000/constraints.md (wh constraint): New constraint,
7086 for FP registers if direct move is available.
7087 (wi constraint): New constraint, for VSX/FP registers that can
7088 handle 64-bit integers.
7089 (wj constraint): New constraint for VSX/FP registers that can
7090 handle 64-bit integers for direct moves.
7091 (wk constraint): New constraint for VSX/FP registers that can
7092 handle 64-bit doubles for direct moves.
7093 (wy constraint): Make documentation match implementation.
7094
7095 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7096 scalar_in_vmx_p field to simplify tests of whether SFmode or
7097 DFmode can go in the Altivec registers.
7098 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7099 (rs6000_setup_reg_addr_masks): Likewise.
7100 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7101 field, and wh/wi/wj/wk constraints.
7102 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7103 the wh/wi/wj/wk constraints.
7104 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7105 upper registers, prefer VSX registers unless the operation is a
7106 memory operation with REG+OFFSET addressing.
7107
7108 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7109 DImode. Change SFmode to use ww constraint instead of d to allow
7110 SF registers in the upper registers.
7111 (VSr2): Likewise.
7112 (VSr3): Likewise.
7113 (VSr5): Fix thinko in comment.
7114 (VSa): New mode attribute that is an alternative to wa, that
7115 returns the VSX register class that a mode can go in, but may not
7116 be the preferred register class.
7117 (VS_64dm): New mode attribute for appropriate register classes for
7118 referencing 64-bit elements of vectors for direct moves and normal
7119 moves.
7120 (VS_64reg): Likewise.
7121 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7122 register allocator to only registers the data type can handle.
7123 (vsx_le_perm_load_<mode>): Likewise.
7124 (vsx_le_perm_store_<mode>): Likewise.
7125 (vsx_xxpermdi2_le_<mode>): Likewise.
7126 (vsx_xxpermdi4_le_<mode>): Likewise.
7127 (vsx_lxvd2x2_le_<mode>): Likewise.
7128 (vsx_lxvd2x4_le_<mode>): Likewise.
7129 (vsx_stxvd2x2_le_<mode>): Likewise.
7130 (vsx_add<mode>3): Likewise.
7131 (vsx_sub<mode>3): Likewise.
7132 (vsx_mul<mode>3): Likewise.
7133 (vsx_div<mode>3): Likewise.
7134 (vsx_tdiv<mode>3_internal): Likewise.
7135 (vsx_fre<mode>2): Likewise.
7136 (vsx_neg<mode>2): Likewise.
7137 (vsx_abs<mode>2): Likewise.
7138 (vsx_nabs<mode>2): Likewise.
7139 (vsx_smax<mode>3): Likewise.
7140 (vsx_smin<mode>3): Likewise.
7141 (vsx_sqrt<mode>2): Likewise.
7142 (vsx_rsqrte<mode>2): Likewise.
7143 (vsx_tsqrt<mode>2_internal): Likewise.
7144 (vsx_fms<mode>4): Likewise.
7145 (vsx_nfma<mode>4): Likewise.
7146 (vsx_eq<mode>): Likewise.
7147 (vsx_gt<mode>): Likewise.
7148 (vsx_ge<mode>): Likewise.
7149 (vsx_eq<mode>_p): Likewise.
7150 (vsx_gt<mode>_p): Likewise.
7151 (vsx_ge<mode>_p): Likewise.
7152 (vsx_xxsel<mode>): Likewise.
7153 (vsx_xxsel<mode>_uns): Likewise.
7154 (vsx_copysign<mode>3): Likewise.
7155 (vsx_float<VSi><mode>2): Likewise.
7156 (vsx_floatuns<VSi><mode>2): Likewise.
7157 (vsx_fix_trunc<mode><VSi>2): Likewise.
7158 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7159 (vsx_x<VSv>r<VSs>i): Likewise.
7160 (vsx_x<VSv>r<VSs>ic): Likewise.
7161 (vsx_btrunc<mode>2): Likewise.
7162 (vsx_b2trunc<mode>2): Likewise.
7163 (vsx_floor<mode>2): Likewise.
7164 (vsx_ceil<mode>2): Likewise.
7165 (vsx_<VS_spdp_insn>): Likewise.
7166 (vsx_xscvspdp): Likewise.
7167 (vsx_xvcvspuxds): Likewise.
7168 (vsx_float_fix_<mode>2): Likewise.
7169 (vsx_set_<mode>): Likewise.
7170 (vsx_extract_<mode>_internal1): Likewise.
7171 (vsx_extract_<mode>_internal2): Likewise.
7172 (vsx_extract_<mode>_load): Likewise.
7173 (vsx_extract_<mode>_store): Likewise.
7174 (vsx_splat_<mode>): Likewise.
7175 (vsx_xxspltw_<mode>): Likewise.
7176 (vsx_xxspltw_<mode>_direct): Likewise.
7177 (vsx_xxmrghw_<mode>): Likewise.
7178 (vsx_xxmrglw_<mode>): Likewise.
7179 (vsx_xxsldwi_<mode>): Likewise.
7180 (vsx_xscvdpspn): Tighten constraints to only use register classes
7181 the types use.
7182 (vsx_xscvspdpn): Likewise.
7183 (vsx_xscvdpspn_scalar): Likewise.
7184
7185 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7186 wj, and wk constraints.
7187 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7188 general purpose registers.
7189
7190 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7191 direct moves.
7192 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7193 DImode instead of wm. Use wk constraint for direct move of DFmode
7194 instead of wm.
7195 (extendsidi2_lfiwax): Likewise.
7196 (lfiwax): Likewise.
7197 (lfiwzx): Likewise.
7198 (movdi_internal64): Likewise.
7199
7200 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7201 wk constraints. Make the wy constraint documentation match them
7202 implementation.
7203
7204 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7205
7206 Replacement of isl_int by isl_val
7207 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7208 (compute_bounds_for_param): use isl_val instead of isl_int
7209 (compute_bounds_for_loop): likewise
7210 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7211 (build_linearized_memory_access): use isl_val instead of isl_int
7212 (pdr_stride_in_loop): likewise
7213 * graphite-optimize-isl.c:
7214 (getPrevectorMap): use isl_val instead of isl_int
7215 * graphite-poly.c:
7216 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7217 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7218 (extern the_isl_ctx): declare
7219 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7220 (extract_affine_gmp): likewise
7221 (wrap): likewise
7222 (build_loop_iteration_domains): likewise
7223 (add_param_constraints): likewise
7224
7225 2014-08-11 Richard Biener <rguenther@suse.de>
7226
7227 PR tree-optimization/62075
7228 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7229 handle uses in patterns.
7230
7231 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7233 Anna Tikhonova <anna.tikhonova@intel.com>
7234 Ilya Tocar <ilya.tocar@intel.com>
7235 Andrey Turetskiy <andrey.turetskiy@intel.com>
7236 Ilya Verbin <ilya.verbin@intel.com>
7237 Kirill Yukhin <kirill.yukhin@intel.com>
7238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7239
7240 * common/config/i386/i386-common.c
7241 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7242 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7243 (ix86_handle_option): Handle OPT_mavx512vl.
7244 * config/i386/cpuid.h (bit_AVX512VL): Define.
7245 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7246 set -mavx512vl accordingly.
7247 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7248 OPTION_MASK_ISA_AVX512VL.
7249 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7250 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7251 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7252 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7253 * config/i386/i386.h (TARGET_AVX512VL): Define.
7254 (TARGET_AVX512VL_P(x)): Ditto.
7255 * config/i386/i386.opt: Add mavx512vl.
7256
7257 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7258
7259 PR tree-optimization/62073
7260 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7261 a basic block.
7262
7263 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7265 Anna Tikhonova <anna.tikhonova@intel.com>
7266 Ilya Tocar <ilya.tocar@intel.com>
7267 Andrey Turetskiy <andrey.turetskiy@intel.com>
7268 Ilya Verbin <ilya.verbin@intel.com>
7269 Kirill Yukhin <kirill.yukhin@intel.com>
7270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7271
7272 * common/config/i386/i386-common.c
7273 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7274 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7275 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7276 (ix86_handle_option): Handle OPT_mavx512bw.
7277 * config/i386/cpuid.h (bit_AVX512BW): Define.
7278 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7279 set -mavx512bw accordingly.
7280 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7281 OPTION_MASK_ISA_AVX512BW.
7282 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7283 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7284 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7285 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7286 * config/i386/i386.h (TARGET_AVX512BW): Define.
7287 (TARGET_AVX512BW_P(x)): Ditto.
7288 * config/i386/i386.opt: Add mavx512bw.
7289
7290 2014-08-11 Richard Biener <rguenther@suse.de>
7291
7292 PR tree-optimization/62070
7293 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7294 Remove SSA checking.
7295
7296 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7297
7298 * asan.c (asan_check_flags): New enum.
7299 (build_check_stmt_with_calls): Removed function.
7300 (build_check_stmt): Split inlining logic to
7301 asan_expand_check_ifn.
7302 (instrument_derefs): Rename parameter.
7303 (instrument_mem_region_access): Rename parameter.
7304 (instrument_strlen_call): Likewise.
7305 (asan_expand_check_ifn): New function.
7306 (asan_instrument): Remove old code.
7307 (pass_sanopt::execute): Change handling of
7308 asan-instrumentation-with-call-threshold.
7309 (asan_clear_shadow): Fix formatting.
7310 (asan_function_start): Likewise.
7311 (asan_emit_stack_protection): Likewise.
7312 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7313 Update description.
7314 * internal-fn.c (expand_ASAN_CHECK): New function.
7315 * internal-fn.def (ASAN_CHECK): New internal function.
7316 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7317 Update description.
7318 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7319 * tree.c: Small comment fix.
7320
7321 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7322
7323 * gimple.c (gimple_call_fnspec): Support internal functions.
7324 (gimple_call_return_flags): Use const.
7325 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7326 * internal-fn.def: Add fnspec information.
7327 * internal-fn.h (internal_fn_fnspec): New function.
7328 (init_internal_fns): Declare new function.
7329 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7330 (init_internal_fns): New function.
7331 * tree-core.h: Update macro call.
7332 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7333
7334 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7335
7336 * lto-streamer.h (struct output_block::symbol): Change from
7337 struct symtab_node to plain symtab_node.
7338 (referenced_from_this_partition_p): Change first parameter
7339 from struct symtab_node to plain symtab_node.
7340
7341 2014-08-10 Marek Polacek <polacek@redhat.com>
7342
7343 PR c/51849
7344 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7345
7346 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7347
7348 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7349 DECL correctly; do not give up on types in static storage.
7350
7351 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7352
7353 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7354
7355 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7356
7357 * graphite-isl-ast-to-gimple.c:
7358 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7359
7360 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7361
7362 2014-08-08 Guozhi Wei <carrot@google.com>
7363
7364 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7365
7366 2014-08-08 Cary Coutant <ccoutant@google.com>
7367
7368 * dwarf2out.c (get_skeleton_type_unit): Remove.
7369 (output_skeleton_debug_sections): Remove skeleton type units.
7370 (output_comdat_type_unit): Likewise.
7371 (dwarf2out_finish): Likewise.
7372
7373 2014-08-07 Yi Yang <ahyangyi@google.com>
7374
7375 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7376
7377 2014-08-08 Richard Biener <rguenther@suse.de>
7378
7379 * lto-streamer.h (struct lto_input_block): Make it a class
7380 with a constructor.
7381 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7382 (struct lto_function_header, struct lto_simple_header,
7383 struct lto_simple_header_with_strings,
7384 struct lto_decl_header, struct lto_function_header): Make
7385 a simple inheritance hieararchy. Remove unused fields.
7386 (struct lto_asm_header): Remove.
7387 * lto-streamer-out.c (produce_asm): Adjust.
7388 (lto_output_toplevel_asms): Likewise.
7389 (produce_asm_for_decls): Likewise.
7390 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7391 * data-streamer-in.c (string_for_index): Likewise.
7392 * ipa-inline-analysis.c (inline_read_section): Likewise.
7393 * ipa-prop.c (ipa_prop_read_section): Likewise.
7394 (read_replacements_section): Likewise.
7395 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7396 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7397 (lto_destroy_simple_input_block): Likewise.
7398 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7399 (lto_input_toplevel_asms): Likewise.
7400
7401 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7402 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7403 Anna Tikhonova <anna.tikhonova@intel.com>
7404 Ilya Tocar <ilya.tocar@intel.com>
7405 Andrey Turetskiy <andrey.turetskiy@intel.com>
7406 Ilya Verbin <ilya.verbin@intel.com>
7407 Kirill Yukhin <kirill.yukhin@intel.com>
7408 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7409
7410 * common/config/i386/i386-common.c
7411 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7412 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7413 (ix86_handle_option): Handle OPT_mavx512dq.
7414 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7415 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7416 set -mavx512dq accordingly.
7417 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7418 OPTION_MASK_ISA_AVX512DQ.
7419 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7420 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7421 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7422 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7423 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7424 (TARGET_AVX512DQ_P(x)): Ditto.
7425 * config/i386/i386.opt: Add mavx512dq.
7426
7427 2014-08-08 Richard Biener <rguenther@suse.de>
7428
7429 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7430 target_percent, target_percent_s): Export.
7431 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7432 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7433 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7434 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7435 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7436 Move to gimple-fold.c.
7437 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7438 strcat and strcpy.
7439 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7440 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7441 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7442 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7443 (rewrite_call_expr_array): Remove.
7444 (fold_builtin_sprintf_chk): Likewise.
7445 (fold_builtin_snprintf_chk): Likewise.
7446 (fold_builtin_varargs): Remove handling of sprintf_chk,
7447 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7448 (gimple_fold_builtin_sprintf_chk): Remove.
7449 (gimple_fold_builtin_snprintf_chk): Likewise.
7450 (gimple_fold_builtin_varargs): Likewise.
7451 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7452 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7453 * gimple.c (gimple_seq_add_seq_without_update): New function.
7454 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7455 * gimple-fold.c: Include output.h.
7456 (gsi_replace_with_seq_vops): New function, split out from ...
7457 (gimplify_and_update_call_from_tree): ... here.
7458 (replace_call_with_value): New function.
7459 (replace_call_with_call_and_fold): Likewise.
7460 (var_decl_component_p): Moved from builtins.c.
7461 (gimple_fold_builtin_memory_op): Moved from builtins.c
7462 fold_builtin_memory_op and rewritten to GIMPLE.
7463 (gimple_fold_builtin_memset): Likewise.
7464 (gimple_fold_builtin_strcpy): Likewise.
7465 (gimple_fold_builtin_strncpy): Likewise.
7466 (gimple_fold_builtin_strcat): Likewise.
7467 (gimple_fold_builtin_fputs): Likewise.
7468 (gimple_fold_builtin_memory_chk): Likewise.
7469 (gimple_fold_builtin_stxcpy_chk): Likewise.
7470 (gimple_fold_builtin_stxncpy_chk): Likewise.
7471 (gimple_fold_builtin_snprintf_chk): Likewise.
7472 (gimple_fold_builtin_sprintf_chk): Likewise.
7473 (gimple_fold_builtin_strlen): New function.
7474 (gimple_fold_builtin_with_strlen): New function split out from
7475 gimple_fold_builtin.
7476 (gimple_fold_builtin): Change signature and handle
7477 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7478 here. Call gimple_fold_builtin_with_strlen.
7479 (gimple_fold_call): Adjust.
7480
7481 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7482
7483 * calls.c (precompute_arguments): Check
7484 promoted_for_signed_and_unsigned_p and set the promoted mode.
7485 (promoted_for_signed_and_unsigned_p): New function.
7486 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7487 and set the promoted mode.
7488 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7489 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7490 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7491
7492
7493 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7494
7495 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7496 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7497 (expand_call): Likewise.
7498 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7499 to get promoted mode.
7500 * combine.c (record_promoted_value): Skip > 0 comparison with
7501 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7502 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7503 of SUBREG_PROMOTED_UNSIGNED_P.
7504 (convert_modes): Likewise.
7505 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7506 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7507 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7508 SUBREG_PROMOTED_UNSIGNED_SET.
7509 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7510 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7511 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7512 SUBREG_PROMOTED_SET.
7513 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7514 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7515 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7516 of SUBREG_PROMOTED_UNSIGNED_P.
7517 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7518 (SUBREG_PROMOTED_SET): New define.
7519 (SUBREG_PROMOTED_GET): Likewise.
7520 (SUBREG_PROMOTED_SIGN): Likewise.
7521 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7522 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7523 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7524 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7525 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7526 (nonzero_bits1): Skip > 0 comparison with the results as
7527 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7528 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7529 of !SUBREG_PROMOTED_UNSIGNED_P.
7530 * simplify-rtx.c (simplify_unary_operation_1): Use new
7531 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7532 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7533 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7534 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7535
7536 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7537
7538 * ipa-devirt.c: Include gimple-pretty-print.h
7539 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7540 further tests.
7541 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7542 (get_polymorphic_call_info): Fix return value
7543 (type_change_info): New sturcture based on ipa-prop
7544 variant.
7545 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7546 based on ipa-prop variant.
7547 (extr_type_from_vtbl_ptr_store): New function
7548 based on ipa-prop variant.
7549 (record_known_type): New function.
7550 (check_stmt_for_type_change): New function.
7551 (get_dynamic_type): New function.
7552 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7553 * tree-ssa-pre.c: ipa-utils.h
7554 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7555 machinery; sanity check with ipa-prop devirtualization.
7556 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7557 polymorphic flag.
7558
7559 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7560
7561 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7562 * alias.c, cfgexpand.c, cgraphbuild.c,
7563 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7564 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7565 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7566 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7567 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7568 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7569 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7570 dse.c, except.c, gengtype.c, gimple-expr.c,
7571 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7572 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7573 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7574 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7575 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7576 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7577 pointer-set.h.
7578 * pointer-set.c: Remove file.
7579 * pointer-set.h: Remove file.
7580
7581 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7582
7583 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7584 * config/arm/types.md (f_sels, f_seld): Delete.
7585
7586 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7587
7588 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7589 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7590 (aarch64_movdi_<mode>high): Likewise.
7591 (aarch64_mov<mode>high_di): Likewise.
7592 (aarch64_movdi_<mode>low): Likewise.
7593 (aarch64_mov<mode>low_di): Likewise.
7594 (aarch64_movtilow_tilow): Likewise.
7595 Add comment explaining usage of fp,simd attributes and of
7596 TARGET_FLOAT and TARGET_SIMD.
7597
7598 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7599 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7600
7601 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7602 Use MOVN when one of the half-words is 0xffff.
7603
7604 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7605
7606 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7607
7608 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7609
7610 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7611 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7612 (rfs_str): String corresponding to RFS_* constants.
7613 (rank_for_schedule_stats_t): New typedef.
7614 (rank_for_schedule_stats): New static variable.
7615 (rfs_result): New static function.
7616 (rank_for_schedule): Track statistics for deciding heuristics.
7617 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7618 static functions.
7619 (ready_sort): Use them for debug printouts.
7620 (schedule_block): Init statistics state. Print statistics on
7621 rank_for_schedule decisions.
7622
7623 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7624
7625 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7626
7627 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7628
7629 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7630 constraint.
7631
7632 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7633
7634 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7635 function to not conflict.
7636 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7637 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7638 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7639 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7640 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7641 of pointer_map.
7642
7643 2014-08-07 Marek Polacek <polacek@redhat.com>
7644
7645 * fold-const.c (fold_binary_loc): Add folding of
7646 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7647
7648 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7649
7650 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7651 instead of type size.
7652 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7653
7654 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7655
7656 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7657 (*thumb1_movqi_insn): Likewise.
7658 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7659
7660 2014-08-07 Tom de Vries <tom@codesourcery.com>
7661
7662 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7663 (glibc_2_11_or_earlier): Remove effective-target keywords.
7664
7665 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7666
7667 * config/arm/arm.c (bdesc_2arg): Fix typo.
7668 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7669
7670 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7671
7672 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7673
7674 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7675
7676 PR debug/61923
7677 * haifa-sched.c (advance_one_cycle): Fix dump.
7678 (schedule_block): Don't advance cycle if we are already at the
7679 beginning of the cycle.
7680
7681 2014-08-06 Martin Jambor <mjambor@suse.cz>
7682
7683 PR ipa/61393
7684 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7685
7686 2014-08-06 Richard Biener <rguenther@suse.de>
7687
7688 PR lto/62034
7689 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7690 SCCs here.
7691 (lto_input_tree): Pop SCCs here.
7692
7693 2014-08-06 Richard Biener <rguenther@suse.de>
7694
7695 PR tree-optimization/61320
7696 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7697 handle misaligned loads.
7698
7699 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7700
7701 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7702 (aarch64_expand_vec_perm_const): Check for dup before zip.
7703
7704 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7705
7706 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7707 CONST_INT_P instead of GET_CODE and compare.
7708 (aarch64_select_cc_mode): Likewise.
7709 (aarch64_print_operand): Likewise.
7710 (aarch64_rtx_costs): Likewise.
7711 (aarch64_simd_valid_immediate): Likewise.
7712 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7713 (aarch64_simd_emit_pair_result_insn): Likewise.
7714
7715 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7716
7717 * gdbhooks.py (find_gcc_source_dir): New helper function.
7718 (class PassNames): New class, locating and parsing passes.def.
7719 (class BreakOnPass): New command "break-on-pass".
7720
7721 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7722
7723 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7724 getting olde.
7725
7726 2014-08-05 Richard Biener <rguenther@suse.de>
7727
7728 PR rtl-optimization/61672
7729 * emit-rtl.h (mem_attrs_eq_p): Declare.
7730 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7731 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7732 * cfgcleanup.c (merge_memattrs): Likewise.
7733 Include emit-rtl.h.
7734
7735 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7736
7737 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7738 rather than singleton vectors.
7739 (vqdmlsls_lane_s32): Likewise.
7740
7741 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7742
7743 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7744 Use VSDQ_HSI mode iterator.
7745 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7746 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7747 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7748 Use BUILTIN_VDQHS macro.
7749 (sqrdmulh_laneq): Likewise.
7750 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7751 (vqdmlals_laneq_s32): Likewise.
7752 (vqdmlslh_laneq_s16): Likewise.
7753 (vqdmlsls_laneq_s32): Likewise.
7754 (vqdmulhh_laneq_s16): Likewise.
7755 (vqdmulhs_laneq_s32): Likewise.
7756 (vqrdmulhh_laneq_s16): Likewise.
7757 (vqrdmulhs_laneq_s32): Likewise.
7758
7759 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7760
7761 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7762 (vmuld_laneq_f64): Likewise.
7763 (vmuls_laneq_f32): Likewise.
7764 (vmul_n_f64): Likewise.
7765 (vmuld_lane_f64): Reimplement in C.
7766 (vmuls_lane_f32): Likewise.
7767
7768 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7769
7770 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7771 to reservation.
7772 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7773
7774 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7775
7776 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7777 (rbitsi2): Likewise.
7778 (*arm_rev): Set predicable and predicable_short_it attributes.
7779
7780 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7781
7782 * convert.c (convert_to_integer): Guard transformation to lrint by
7783 -fno-math-errno.
7784
7785 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7786
7787 * config/aarch64/aarch64-builtins.c
7788 (aarch64_simd_builtin_type_mode): Delete.
7789 (v8qi_UP): Remap to V8QImode.
7790 (v4hi_UP): Remap to V4HImode.
7791 (v2si_UP): Remap to V2SImode.
7792 (v2sf_UP): Remap to V2SFmode.
7793 (v1df_UP): Remap to V1DFmode.
7794 (di_UP): Remap to DImode.
7795 (df_UP): Remap to DFmode.
7796 (v16qi_UP):V16QImode.
7797 (v8hi_UP): Remap to V8HImode.
7798 (v4si_UP): Remap to V4SImode.
7799 (v4sf_UP): Remap to V4SFmode.
7800 (v2di_UP): Remap to V2DImode.
7801 (v2df_UP): Remap to V2DFmode.
7802 (ti_UP): Remap to TImode.
7803 (ei_UP): Remap to EImode.
7804 (oi_UP): Remap to OImode.
7805 (ci_UP): Map to CImode.
7806 (xi_UP): Remap to XImode.
7807 (si_UP): Remap to SImode.
7808 (sf_UP): Remap to SFmode.
7809 (hi_UP): Remap to HImode.
7810 (qi_UP): Remap to QImode.
7811 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7812 (VAR1): Build builtin name.
7813 (aarch64_init_simd_builtins): Remove dead code.
7814
7815 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7816
7817 * graphite-isl-ast-to-gimple.c:
7818 (set_options): New function.
7819 (scop_to_isl_ast): Add calling of set_options.
7820
7821 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7822
7823 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7824 (analyze_iv_to_split_insn): Don't initialize them.
7825 (get_ivts_expr): Removed.
7826 (allocate_basic_variable, insert_base_initialization): Use
7827 SET_SRC instead of *get_ivts_expr.
7828 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7829
7830 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7831
7832 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7833 (translate_isl_ast_for_loop): Add checking of the
7834 flag_loop_parallelize_all.
7835 (ast_build_before_for): New function.
7836 (scop_to_isl_ast): Add checking of the
7837 flag_loop_parallelize_all.
7838 * graphite-dependences.c: Move the defenition of the
7839 scop_get_dependences from graphite-optimize-isl.c to this file.
7840 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7841 (carries_deps): Add checking of the x's value.
7842 * graphite-optimize-isl.c: Move the defenition of the
7843 scop_get_dependences to graphite-dependences.c.
7844 * graphite-poly.h: Add declarations of scop_get_dependences
7845 and carries_deps.
7846
7847 2014-08-04 Rohit <rohitarulraj@freescale.com>
7848
7849 PR target/60102
7850 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7851 names.
7852 (alt_reg_names): Likewise.
7853 (rs6000_dwarf_register_span): For SPE high registers, replace
7854 dwarf register numbers with GCC hard register numbers.
7855 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7856 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7857 register number for the corresponding GCC hard register number.
7858 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7859 newly added GCC hard register numbers for SPE high registers.
7860 (DWARF_FRAME_REGISTERS): Likewise.
7861 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7862 (DWARF_FRAME_REGNUM): Likewise.
7863 (FIXED_REGISTERS): Likewise.
7864 (CALL_USED_REGISTERS): Likewise.
7865 (CALL_REALLY_USED_REGISTERS): Likewise.
7866 (REG_ALLOC_ORDER): Likewise.
7867 (enum reg_class): Likewise.
7868 (REG_CLASS_NAMES): Likewise.
7869 (REG_CLASS_CONTENTS): Likewise.
7870 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7871
7872 2014-08-04 Richard Biener <rguenther@suse.de>
7873
7874 * gimple-fold.h (gimple_fold_builtin): Remove.
7875 * gimple-fold.c (gimple_fold_builtin): Make static.
7876 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7877 fold_stmt, not gimple_fold_builtin.
7878
7879 2014-08-04 Martin Liska <mliska@suse.cz>
7880
7881 * cgraph.h (csi_end_p): Removed.
7882 (csi_next): Likewise.
7883 (csi_node): Likewise.
7884 (csi_start): Likewise.
7885 (cgraph_node_in_set_p): Likewise.
7886 (cgraph_node_set_size): Likewise.
7887 (vsi_end_p): Likewise.
7888 (vsi_next): Likewise.
7889 (vsi_node): Likewise.
7890 (vsi_start): Likewise.
7891 (varpool_node_set_size): Likewise.
7892 (cgraph_node_set_nonempty_p): Likewise.
7893 (varpool_node_set_nonempty_p): Likewise.
7894 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7895 cgraph_node_set.
7896 * ipa-inline-transform.c: Likewise.
7897 * ipa-utils.c (cgraph_node_set_new): Removed.
7898 (cgraph_node_set_add): Likewise.
7899 (cgraph_node_set_remove): Likewise.
7900 (cgraph_node_set_find): Likewise.
7901 (dump_cgraph_node_set): Likewise.
7902 (debug_cgraph_node_set): Likewise.
7903 (free_cgraph_node_set): Likewise.
7904 (varpool_node_set_new): Likewise.
7905 (varpool_node_set_add): Likewise.
7906 (varpool_node_set_remove): Likewise.
7907 (varpool_node_set_find): Likewise.
7908 (dump_varpool_node_set): Likewise.
7909 (free_varpool_node_set): Likewise.
7910 (debug_varpool_node_set): Likewise.
7911 * tree-emutls.c (struct tls_var_data):
7912 (emutls_index): Removed.
7913 (emutls_decl): Likewise.
7914 (gen_emutls_addr): Function implementation uses newly added
7915 hash_map<varpool_node *, tls_var_data>.
7916 (clear_access_vars): Likewise.
7917 (create_emultls_var): Likewise.
7918 (ipa_lower_emutls): Likewise.
7919 (reset_access): New function.
7920
7921 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7922
7923 * config/i386/i386.c (ix86_option_override_internal): Add
7924 PTA_RDRND and PTA_MOVBE for bdver4.
7925
7926 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7927 James Greenhalgh <james.greenhalgh@arm.com>
7928
7929 * doc/md.texi (clrsb): Document.
7930 (clz): Change reference to x into operand 1.
7931 (ctz): Likewise.
7932 (popcount): Likewise.
7933
7934 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7935
7936 PR target/61713
7937 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7938 move to subtarget in serial version if result is ignored.
7939
7940 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7941 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7942
7943 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7944 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7945 (sched_analyze_insn): Update use of try_group_insn to
7946 sched_macro_fuse_insns.
7947 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7948 arguments that are not conditional jumps.
7949
7950 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7951
7952 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7953 family information. Handle BTVER2 cpu with cpuid family value.
7954
7955 2014-08-04 Tom de Vries <tom@codesourcery.com>
7956
7957 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7958 (glibc_2_11_or_earlier): Document effective-target keywords.
7959
7960 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7961
7962 * ipa-devirt.c (odr_type_warn_count): Add type.
7963 (possible_polymorphic_call_targets): Set it.
7964 (ipa_devirt): Use it.
7965
7966 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7967
7968 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7969 Document.
7970 * ipa-devirt.c: Include hash-map.h
7971 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7972 (clear_speculation): Break out of ...
7973 (get_class_context): ... here; speed up handling obviously useless
7974 speculations.
7975 (odr_type_warn_count, decl_warn_count): New structures.
7976 (final_warning_record): New structure.
7977 (final_warning_records): New static variable.
7978 (possible_polymorphic_call_targets): Cleanup handling of
7979 speculative info; do not build speculation when user do not care;
7980 record info about warnings when asked for.
7981 (add_decl_warning): New function.
7982 (type_warning_cmp): New function.
7983 (decl_warning_cmp): New function.
7984 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7985 (gate): Enable pass when warnings are requested.
7986 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7987 options.
7988
7989 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7990
7991 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7992 Fix cast.
7993 (hash_map::remove): New method.
7994 (hash_map::traverse): New method.
7995 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7996 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7997 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7998 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7999 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8000 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8001 pointer_map.
8002
8003 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8004
8005 * hash-set.h: new File.
8006 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8007 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8008 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8009 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8010 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8011 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8012 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8013 varpool.c: Use hash_set instead of pointer_set.
8014
8015 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8016
8017 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8018
8019 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8020
8021 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8022 for frame access when strict_p is false.
8023
8024 2014-08-01 Renlin Li <renlin.li@arm.com>
8025 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8026
8027 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8028 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8029 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8030 Declaration.
8031 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8032 predicate.
8033 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8034 aarch64_mem_pair_offset.
8035
8036 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8037
8038 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8039 offset.
8040 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8041 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8042
8043 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8044
8045 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8046
8047 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8048
8049 PR regression/61510
8050 * cgraphunit.c (analyze_functions): Use get_create rather than get
8051 for decls which are clones of abstract functions.
8052
8053 2014-08-01 Martin Liska <mliska@suse.cz>
8054
8055 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8056 * ipa-prop.h (count_formal_params): Global function created from static.
8057 * ipa-prop.c (count_formal_params): Likewise.
8058 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8059 profiles for semantically equivalent functions.
8060 * passes.c (do_per_function): If we load body of a function
8061 during WPA, this condition should behave same.
8062 * varpool.c (ctor_for_folding): More tolerant assert for variable
8063 aliases created during WPA.
8064
8065 2014-08-01 Martin Liska <mliska@suse.cz>
8066
8067 * doc/invoke.texi (Options That Control Optimization): Documentation
8068 for -foptimize-strlen introduced. Optimization levels default options
8069 fixed.
8070
8071 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8072
8073 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8074 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8075 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8076 type to bool.
8077 * stor-layout.h (min_align_of_type): New prototype.
8078 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8079 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8080 check.
8081 * ubsan.c: Include builtins.h.
8082 (ubsan_expand_bounds_ifn): Change return type to bool,
8083 always return true.
8084 (ubsan_expand_null_ifn): Change return type to bool, change
8085 argument to gimple_stmt_iterator *. Handle both null and alignment
8086 sanitization, take type from ckind argument's type rather than
8087 first argument.
8088 (instrument_member_call): Removed.
8089 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8090 Handle both null and alignment sanitization, don't say whole
8091 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8092 call instead of 2 argument.
8093 (instrument_null): Adjust instrument_mem_ref caller. Don't
8094 instrument calls here.
8095 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8096 like SANITIZE_NULL.
8097 * stor-layout.c (min_align_of_type): New function.
8098 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8099 Or it into SANITIZE_UNDEFINED.
8100 * doc/invoke.texi (-fsanitize=alignment): Document.
8101
8102 2014-07-31 Andi Kleen <ak@linux.intel.com>
8103
8104 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8105
8106 2014-07-31 Andi Kleen <ak@linux.intel.com>
8107
8108 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8109 inchash.
8110 (vn_reference_compute_hash): Dito.
8111 (vn_nary_op_compute_hash): Dito.
8112 (vn_phi_compute_hash): Dito.
8113 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8114
8115 2014-07-31 Andi Kleen <ak@linux.intel.com>
8116
8117 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8118 Rename to inchash:add_expr_commutative. Convert to inchash.
8119 (iterative_hash_hashable_expr): Rename to
8120 inchash:add_hashable_expr. Convert to inchash.
8121 (avail_expr_hash): Dito.
8122
8123 2014-07-31 Andi Kleen <ak@linux.intel.com>
8124
8125 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8126 Convert to inchash.
8127
8128 2014-07-31 Andi Kleen <ak@linux.intel.com>
8129
8130 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8131
8132 2014-07-31 Andi Kleen <ak@linux.intel.com>
8133
8134 * Makefile.in (OBJS): Add rtlhash.o
8135 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8136 (loc_checksum): Dito.
8137 (loc_checksum_ordered): Dito.
8138 (hash_loc_operands): Dito.
8139 (hash_locs): Dito.
8140 (hash_loc_list): Dito.
8141 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8142 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8143 * rtlhash.c: New file.
8144 * rtlhash.h: New file.
8145
8146 2014-07-31 Andi Kleen <ak@linux.intel.com>
8147
8148 * inchash.h (inchash): Change inchash class to namespace.
8149 (class hash): ... Rename from inchash.
8150 (add_object): Move from macro to class template.
8151 * lto-streamer-out.c (hash_tree): Change inchash
8152 to inchash::hash.
8153 * tree.c (build_type_attribute_qual_variant): Dito.
8154 (type_hash_list): Dito.
8155 (attribute_hash_list): Dito.
8156 (iterative_hstate_expr): Rename to inchash::add_expr
8157 (build_range_type_1): Change inchash to inchash::hash
8158 and use hash::add_expr.
8159 (build_array_type_1): Dito.
8160 (build_function_type): Dito
8161 (build_method_type_directly): Dito.
8162 (build_offset_type): Dito.
8163 (build_complex_type): Dito.
8164 (make_vector_type): Dito.
8165 * tree.h (iterative_hash_expr): Dito.
8166
8167 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8168
8169 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8170
8171 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8172
8173 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8174 correct alphabetical position.
8175 (vpaddd_f64): Rewrite using builtins.
8176 (vpaddd_s64): Move to correct alphabetical position.
8177 (vpaddd_u64): New.
8178
8179 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8180
8181 PR target/61844
8182 * config/sh/sh.c (sh_legitimate_address_p,
8183 sh_legitimize_reload_address): Handle reg+reg address modes when
8184 ALLOW_INDEXED_ADDRESS is false.
8185 * config/sh/predicates.md (general_movsrc_operand,
8186 general_movdst_operand): Likewise.
8187
8188 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8189
8190 * config/aarch64/aarch64-builtins.c
8191 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8192 BYTES_BIG_ENDIAN.
8193
8194 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8195
8196 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8197 the generated mask based on BYTES_BIG_ENDIAN.
8198 (aarch64_simd_check_vect_par_cnst_half): New.
8199 * config/aarch64/aarch64-protos.h
8200 (aarch64_simd_check_vect_par_cnst_half): New.
8201 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8202 the check out to aarch64_simd_check_vect_par_cnst_half.
8203 (vect_par_cnst_lo_half): Likewise.
8204 * config/aarch64/aarch64-simd.md
8205 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8206 (move_hi_quad_<mode>): Always generate a low mask.
8207
8208 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8209
8210 * doc/invoke.texi (AVR Options): Add documentation about
8211 __AVR_DEVICE_NAME__ built-in macro.
8212
8213 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8214
8215 PR target/61948
8216 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8217 constraints are satisfied.
8218 (<shift>di3_neon): Likewise.
8219
8220 2014-07-31 Richard Biener <rguenther@suse.de>
8221
8222 PR tree-optimization/61964
8223 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8224 by structural equality.
8225
8226 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8227
8228 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8229 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8230 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8231 New enums.
8232 * gcc.c (sanitize_spec_function): Support new option.
8233 (SANITIZER_SPEC): Remove now redundant check.
8234 * opts.c (common_handle_option): Support new option.
8235 (finish_options): Check for incompatibilities.
8236 * toplev.c (process_options): Split userspace-specific checks.
8237
8238 2014-07-31 Richard Biener <rguenther@suse.de>
8239
8240 * lto-streamer.h (struct output_block): Remove global.
8241 (struct data_in): Remove labels, num_named_labels and
8242 num_unnamed_labels.
8243 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8244 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8245
8246 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8247
8248 PR c++/60517
8249 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8250 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8251 (isolate_path): New argument to avoid inserting a trap.
8252 (find_implicit_erroneous_behaviour): Handle returning the address
8253 of a local variable.
8254 (find_explicit_erroneous_behaviour): Likewise.
8255
8256 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8257
8258 PR lto/61868
8259 * toplev.c (init_random_seed): Move piece of code never called to
8260 set_random_seed.
8261 (set_random_seed): see above.
8262
8263 2014-07-31 Tom de Vries <tom@codesourcery.com>
8264
8265 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8266
8267 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8268
8269 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8270 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8271
8272 2014-07-31 Richard Biener <rguenther@suse.de>
8273
8274 * data-streamer.h (streamer_write_data_stream): Declare here,
8275 renamed from ...
8276 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8277 * lto-cgraph.c (lto_output_node): Adjust.
8278 (lto_output_varpool_node): Likewise.
8279 * data-streamer-out.c (streamer_string_index): Likewise.
8280 (streamer_write_data_stream, lto_append_block): Move from ...
8281 * lto-section-out.c (lto_output_data_stream,
8282 lto_append_block): ... here.
8283
8284 2014-07-30 Mike Stump <mikestump@comcast.net>
8285
8286 * configure.ac: Also check for popen.
8287 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8288 * configure: Regenerate.
8289 * config.in: Regenerate.
8290
8291 2014-07-30 Martin Jambor <mjambor@suse.cz>
8292
8293 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8294 parameter to gimple.
8295
8296 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8297
8298 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8299 address as second parameter to __tpf_eh_return routine.
8300
8301 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8302
8303 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8304 Thumb2.
8305
8306 2014-07-30 Tom Tromey <tromey@redhat.com>
8307
8308 PR c/59855
8309 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8310 * doc/extend.texi (Type Attributes): Document designated_init
8311 attribute.
8312
8313 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8314
8315 * graphite-isl-ast-to-gimple.c:
8316 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8317 (gcc_expression_from_isl_expression): Pass type to
8318 gcc_expression_from_isl_ast_expr_id.
8319
8320 2014-07-30 Richard Biener <rguenther@suse.de>
8321
8322 * lto-streamer.h (lto_write_data): New function.
8323 * langhooks.c (lhd_append_data): Do not free block.
8324 * lto-section-out.c (lto_write_data): New function writing
8325 raw data to the current section.
8326 (lto_write_stream): Adjust for langhook semantic change.
8327 (lto_destroy_simple_output_block): Write header directly.
8328 * lto-opts.c (lto_write_options): Write options directly.
8329 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8330 (lto_output_toplevel_asms): Likewise.
8331 (copy_function_or_variable): Copy data directly.
8332 (write_global_references): Output index table directly.
8333 (lto_output_decl_state_refs): Likewise.
8334 (write_symbol): Write data directly.
8335 (produce_symtab): Adjust.
8336 (produce_asm_for_decls): Output header and refs directly.
8337
8338 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8339
8340 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8341 to speculative_targets
8342 (get_class_context): Fix handling of contextes without outer type;
8343 avoid matching non-polymorphic types in LTO.
8344 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8345 parameter to speculative_targetsp; handle speculation.
8346 (dump_possible_polymorphic_call_targets): Update dumping.
8347
8348 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8349
8350 * common.opt (Wodr): Enable by default.
8351
8352 2014-07-29 Olivier Hainque <hainque@adacore.com>
8353
8354 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8355
8356 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8357
8358 PR bootstrap/61914
8359 * gengtype.c (strtoken): New function.
8360 (create_user_defined_type): Replace strtok with strtoken.
8361
8362 2014-07-29 Nathan Sidwell <nathan@acm.org>
8363
8364 * gcov-io.c (gcov_var): Make hidden.
8365 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8366 (gcov_do_dump): Declare.
8367 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8368
8369 2014-07-29 Martin Jambor <mjambor@suse.cz>
8370
8371 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8372 parameter to gimple.
8373 (sra_modify_assign): Likewise.
8374
8375 2014-07-29 Richard Biener <rguenther@suse.de>
8376
8377 PR middle-end/52478
8378 * expr.c (expand_expr_real_2): Revert last change.
8379
8380 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8381
8382 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8383 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8384 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8385 call.
8386 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8387 (contains_type_p): Forward declare.
8388 (polymorphic_call_target_hasher::hash): Hash speculative info.
8389 (polymorphic_call_target_hasher::equal): Compare speculative info.
8390 (get_class_context): Handle speuclation.
8391 (contains_type_p): Update.
8392 (get_polymorphic_call_info_for_decl): Update.
8393 (walk_ssa_copies): Break out from ...
8394 (get_polymorphic_call_info): ... here; set speculative context
8395 before giving up.
8396 * ipa-prop.c (ipa_write_indirect_edge_info,
8397 ipa_read_indirect_edge_info): Stream speculative context.
8398 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8399 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8400 SPECULATIVE_MAYBE_DERIVED_TYPE).
8401 (possible_polymorphic_call_targets overriders): Update.
8402 (dump_possible_polymorphic_call_targets overriders): Update.
8403 (dump_possible_polymorphic_call_target_p overriders): Update.
8404
8405 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8406
8407 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8408 ipa-devirt path; fix thinko there.
8409
8410 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8411
8412 * config/i386/i386.c (ix86_return_in_memory): Replace one
8413 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8414
8415 2014-07-28 Marek Polacek <polacek@redhat.com>
8416
8417 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8418
8419 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8420
8421 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8422 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8423 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8424 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8425 (USE_LD_AS_NEEDED): Likewise.
8426 (ASM_APP_ON): Likewise.
8427 (ASM_APP_OFF): Likewise.
8428 (TARGET_POSIX_IO): Likewise.
8429 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8430 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8431 (USE_LD_AS_NEEDED): Likewise.
8432 (ASM_APP_ON): Likewise.
8433 (ASM_APP_OFF): Likewise.
8434 (TARGET_POSIX_IO): Likewise.
8435
8436 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8437
8438 PR middle-end/61734
8439 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8440 operators other than the equality operators.
8441
8442 2014-07-28 Richard Biener <rguenther@suse.de>
8443
8444 PR middle-end/52478
8445 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8446 sure to register SImode ones, not only >= word_mode ones.
8447 * expr.c (expand_expr_real_2): When expanding -ftrapv
8448 binops do not use OPTAB_LIB_WIDEN.
8449
8450 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8451
8452 PR middle-end/61919
8453 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8454 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8455 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8456 inserting them in the insn stream.
8457
8458 2014-07-28 Marek Polacek <polacek@redhat.com>
8459
8460 PR middle-end/61913
8461 * common.opt (Wodr): Add Var.
8462
8463 2014-07-28 Richard Biener <rguenther@suse.de>
8464
8465 PR tree-optimization/61921
8466 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8467 if there is a varpool node before dereferencing it.
8468
8469 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8470
8471 * graphite-sese-to-poly.c:
8472 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8473 id of the pbb), which contains pointer to the pbb1.
8474
8475 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8476
8477 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8478
8479 * graphite-isl-ast-to-gimple.c:
8480 (graphite_create_new_guard): New function.
8481 (translate_isl_ast_node_if): New function.
8482 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8483
8484 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8485
8486 2014-07-27 Anthony Green <green@moxielogic.com>
8487
8488 * config.gcc: Add moxie-*-moxiebox* configuration.
8489 * config/moxie/moxiebox.h: New file.
8490
8491 2014-07-26 Andrew Pinski <apinski@cavium.com>
8492
8493 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8494 from the read only register.
8495
8496 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8497
8498 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8499 as the allocation class if it isn't likely to be spilled.
8500
8501 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8502
8503 * rtl.h (tls_referenced_p): Declare.
8504 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8505 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8506 (mips_cannot_force_const_mem): Use tls_referenced_p.
8507 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8508 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8509 instead of pa_tls_referenced_p.
8510 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8511 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8512 (pa_legitimate_constant_p): Likewise.
8513 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8514 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8515 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8516 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8517 rs6000_tls_referenced_p.
8518 (rs6000_tls_symbol_ref_1): Delete.
8519
8520 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8521
8522 PR target/44551
8523 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8524 Optimize inverse of a VEC_CONCAT.
8525
8526 2014-07-25 Xinliang David Li <davidxl@google.com>
8527
8528 * params.def: New parameter.
8529 * coverage.c (get_coverage_counts): Check new flag.
8530 (coverage_compute_profile_id): Check new flag.
8531 (coverage_begin_function): Check new flag.
8532 (coverage_end_function): Check new flag.
8533 * value-prof.c (coverage_node_map_initialized_p): New function.
8534 (init_node_map): Populate map with all functions.
8535 * doc/invoke.texi: Document new parameter.
8536
8537 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8538 Richard Biener <rguenther@suse.de>
8539
8540 * lto-streamer-out.c (struct sccs): Turn to ...
8541 (class DFS): ... this one; refactor the DFS walk so it can
8542 be re-done on per-SCC basis.
8543 (DFS::DFS): New constructor.
8544 (DFS::~DFS): New destructor.
8545 (hash_tree): Add new MAP argument holding in-SCC hash values;
8546 remove POINTER_TYPE hashing hack.
8547 (scc_entry_compare): Rename to ...
8548 (DFS::scc_entry_compare): ... this one.
8549 (hash_scc): Rename to ...
8550 (DFS::hash_scc): ... this one; pass output_block instead
8551 of streamer_cache; work harder to get unique and stable SCC
8552 hashes.
8553 (DFS_write_tree): Rename to ...
8554 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8555 (lto_output_tree): Update.
8556
8557 2014-07-25 Andi Kleen <ak@linux.intel.com>
8558
8559 * lto-streamer-out.c (hash_tree): Convert to inchash.
8560
8561 2014-07-25 Andi Kleen <ak@linux.intel.com>
8562
8563 * tree.c (build_type_attribute_qual_variant): Use inchash.
8564 (type_hash_list): Dito.
8565 (attribute_hash_list): Dito
8566 (iterative_hstate_expr): Dito.
8567 (iterative_hash_expr): Dito.
8568 (build_range_type_1): Dito.
8569 (build_array_type_1): Dito.
8570 (build_function_type): Dito.
8571 (build_method_type_directly): Dito.
8572 (build_offset_type): Dito.
8573 (build_complex_type): Dito.
8574 (make_vector_type): Dito.
8575 * tree.h (iterative_hash_expr): Add compat wrapper.
8576 (iterative_hstate_expr): Add.
8577
8578 2014-07-25 Andi Kleen <ak@linux.intel.com>
8579
8580 * Makefile.in (OBJS): Add inchash.o.
8581 (PLUGIN_HEADERS): Add inchash.h.
8582 * ipa-devirt.c: Include inchash.h.
8583 * lto-streamer-out.c: Dito.
8584 * tree-ssa-dom.c: Dito.
8585 * tree-ssa-pre.c: Dito.
8586 * tree-ssa-sccvn.c: Dito.
8587 * tree-ssa-tail-merge.c: Dito.
8588 * asan.c: Dito.
8589 * tree.c (iterative_hash_hashval_t): Move to ...
8590 (iterative_hash_host_wide_int): Move to ...
8591 * inchash.c: Here. New file.
8592 * tree.h (iterative_hash_hashval_t): Move to ...
8593 (iterative_hash_host_wide_int): Move to ...
8594 * inchash.h: Here. New file.
8595
8596 2014-07-25 Richard Biener <rguenther@suse.de>
8597
8598 PR middle-end/61762
8599 PR middle-end/61894
8600 * fold-const.c (native_encode_int): Add and handle offset
8601 parameter to do partial encodings of expr.
8602 (native_encode_fixed): Likewise.
8603 (native_encode_real): Likewise.
8604 (native_encode_complex): Likewise.
8605 (native_encode_vector): Likewise.
8606 (native_encode_string): Likewise.
8607 (native_encode_expr): Likewise.
8608 * fold-const.c (native_encode_expr): Add offset parameter
8609 defaulting to -1.
8610 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8611 (fold_ctor_reference): Handle all reads from tcc_constant
8612 ctors.
8613
8614 2014-07-25 Richard Biener <rguenther@suse.de>
8615
8616 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8617 as possibly unused.
8618
8619 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8620
8621 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8622
8623 2014-07-24 Kyle McMartin <kyle@redhat.com>
8624
8625 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8626
8627 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8628
8629 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8630 Add prototype.
8631 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8632 function.
8633 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8634 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8635 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8636
8637 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8638
8639 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8640 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8641 aggregate types. Instead, *all* aggregate types, except for single-
8642 element or homogeneous float/vector aggregates, are quadword-aligned
8643 if required by their type alignment. Issue -Wpsabi note when a type
8644 is now treated differently than before.
8645
8646 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8647
8648 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8649 does not fit fully into floating-point registers, and there is still
8650 space in the register parameter area, use GPRs to pass those parts
8651 of the argument. Issue -Wpsabi note if any parameter is now treated
8652 differently than before.
8653 (rs6000_arg_partial_bytes): Update.
8654
8655 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8656
8657 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8658
8659 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8660
8661 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8662 * toplev.c (initialize_rtl): Don't use it. Move previously
8663 "language-dependent" calls to...
8664 (backend_init): ...here.
8665 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8666 Assert that RTL initialization hasn't happend yet.
8667
8668 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8669
8670 PR rtl-optimization/61629
8671 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8672 they have already been initialized.
8673
8674 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8675
8676 PR middle-end/61268
8677 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8678 DECL_INCOMING_RTL and entry_parm.
8679 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8680 * calls.c (load_register_parameters): Likewise argument values.
8681 (emit_library_call_value_1, store_one_arg): Likewise argument
8682 save areas.
8683 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8684 stack slot.
8685 * explow.c (validize_mem): Modify the argument in-place.
8686
8687 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8688
8689 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8690 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8691
8692 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8693
8694 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8695 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8696
8697 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8698
8699 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8700 (aarch64_save_callee_saves): New parameter "skip_wb".
8701 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8702
8703 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8704
8705 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8706 "wb_candidate2".
8707 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8708
8709 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8710
8711 * graphite-isl-ast-to-gimple.c:
8712 (graphite_create_new_loop): Add calling of isl_id_free to properly
8713 decrement reference counts.
8714
8715 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8716
8717 2014-07-24 Martin Liska <mliska@suse.cz>
8718 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8719 function used.
8720 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8721 (rs6000_code_end): Likewise.
8722
8723 2014-07-24 Martin Liska <mliska@suse.cz>
8724
8725 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8726 symtab_node funtion used.
8727 (rs6000_xcoff_declare_object_name): Likewise.
8728
8729 2014-07-24 Martin Liska <mliska@suse.cz>
8730
8731 * cgraphunit.c (compile): Correct function used.
8732
8733 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8734
8735 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8736 as non-indexable.
8737
8738 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8739
8740 PR lto/61802
8741 * varasm.c (bss_initializer_p): Handle offlined ctors.
8742 (align_variable, get_variable_align): Likewise.
8743 (make_decl_one_only): Likewise.
8744 (default_binds_local_p_1): Likewise.
8745 (decl_binds_to_current_def_p): Likewise.
8746 (get_variable_section): Get constructor if it is offlined.
8747 (assemble_variable_contents): Sanity check that the caller
8748 streamed in the ctor in LTO.
8749
8750 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8751
8752 * graphite-isl-ast-to-gimple.c:
8753 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8754 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8755 isl_ast_op_pdiv_r to the different case.
8756
8757 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8758
8759 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8760
8761 PR middle-end/61876
8762 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8763 when flag_errno_math is on.
8764
8765 2014-07-24 Martin Liska <mliska@suse.cz>
8766
8767 * cgraph.h (varpool_node):
8768 (availability get_availability (void)):
8769 created from cgraph_variable_initializer_availability
8770 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8771 created from: cgraph_variable_initializer_availability
8772 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8773 (void finalize_named_section_flags (void)):
8774 created from varpool_finalize_named_section_flags
8775 (bool assemble_decl (void)): created from varpool_assemble_decl
8776 (void analyze (void)): created from varpool_analyze_node
8777 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8778 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8779 (void remove_initializer (void)): created from varpool_remove_initializer
8780 (tree get_constructor (void)): created from varpool_get_constructor
8781 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8782 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8783 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8784 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8785 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8786 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8787 (static bool output_variables (void)): created from varpool_output_variables
8788 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8789 created from varpool_extra_name_alias
8790 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8791 (static void dump_varpool (FILE *f)): created from dump_varpool
8792 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8793 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8794 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8795 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8796 (void assemble_aliases (void)): created from assemble_aliases
8797
8798 2014-07-24 Martin Liska <mliska@suse.cz>
8799
8800 * cgraph.h (symtab_node):
8801 (void register_symbol (void)): created from symtab_register_node
8802 (void remove (void)): created from symtab_remove_node
8803 (void dump (FILE *f)): created from dump_symtab_node
8804 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8805 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8806 (struct ipa_ref *add_reference (symtab_node *referred_node,
8807 enum ipa_ref_use use_type)): created from add_reference
8808 (struct ipa_ref *add_reference (symtab_node *referred_node,
8809 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8810 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8811 gimple stmt)): created from maybe_add_reference
8812 (bool semantically_equivalent_p (symtab_node *target)): created from
8813 symtab_semantically_equivalent_p
8814 (void remove_from_same_comdat_group (void)): created from
8815 remove_from_same_comdat_group
8816 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8817 symtab_add_to_same_comdat_group
8818 (void dissolve_same_comdat_group_list (void)): created from
8819 symtab_dissolve_same_comdat_group_list
8820 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8821 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8822 created from symtab_alias_ultimate_target
8823 (inline symtab_node *next_defined_symbol (void)): created from
8824 symtab_next_defined_symbol
8825 (bool resolve_alias (symtab_node *target)): created from
8826 symtab_resolve_alias
8827 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8828 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8829 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8830 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8831 (void set_section (const char *section)): created from set_section_1
8832 (enum availability get_availability (void)): created from symtab_node_availability
8833 (void make_decl_local (void)): created from symtab_make_decl_local
8834 (bool real_symbol_p (void)): created from symtab_read_node
8835 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8836 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8837 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8838 symtab_in_same_comdat_p;
8839 (bool address_taken_from_non_vtable_p (void)): created from
8840 address_taken_from_non_vtable_p
8841 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8842 (static void dump_table (FILE *)): created from dump_symtab
8843 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8844 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8845 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8846 symtab_used_from_object_file_p
8847 (void dump_base (FILE *)): created from dump_symtab_base
8848 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8849 (void unregister (void)): created from symtab_unregister_node
8850 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8851 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8852 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8853 symtab_nonoverwritable_alias_1
8854 * cgraph.h (cgraph_node):
8855 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8856 created from cgraph_remove_node_and_inline_clones
8857 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8858 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8859 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8860 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8861 created from cgraph_function_node
8862 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8863 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8864 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8865 created from cgraph_create_clone
8866 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8867 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8868 created from cgraph_create_virtual_clone
8869 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8870 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8871 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8872 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8873 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8874 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8875 created from cgraph_function_version_info
8876 (struct cgraph_function_version_info *insert_new_function_version (void)):
8877 created from insert_new_cgraph_node_version
8878 (struct cgraph_function_version_info *function_version (void)): created from
8879 get_cgraph_node_version
8880 (void analyze (void)): created from analyze_function
8881 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8882 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8883 tree real_alias) cgraph_add_thunk
8884 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8885 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8886 created from cgraph_function_or_thunk_node
8887 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8888 created from expand_thunk
8889 (void reset (void)): created from cgraph_reset_node
8890 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8891 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8892 (void remove (void)): created from cgraph_remove_node
8893 (void dump (FILE *f)): created from dump_cgraph_node
8894 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8895 (bool get_body (void)): created from cgraph_get_body
8896 (void release_body (void)): created from cgraph_release_function_body
8897 (void unnest (void)): created from cgraph_unnest_node
8898 (void make_local (void)): created from cgraph_make_node_local
8899 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8900 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8901 gcov_type count, int freq)): created from cgraph_create_edge
8902 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8903 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8904 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8905 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8906 created from cgraph_create_edge_including_clones
8907 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8908 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8909 (void remove_callers (void)): created from cgraph_node_remove_callers
8910 (void remove_callees (void)): created from cgraph_node_remove_callees
8911 (enum availability get_availability (void)): created from cgraph_function_body_availability
8912 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8913 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8914 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8915 (void call_duplication_hooks (cgraph_node *node2)): created from
8916 cgraph_call_node_duplication_hooks
8917 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8918 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8919 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8920 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8921 (void call_function_insertion_hooks (void)):
8922 created from cgraph_call_function_insertion_hooks
8923 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8924 (bool local_p (void)): created from cgraph_local_node
8925 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8926 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8927 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8928 (inline bool only_called_directly_or_aliased_p (void)):
8929 created from cgraph_only_called_directly_or_aliased_p
8930 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8931 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8932 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8933 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8934 (bool can_remove_if_no_direct_calls_p (void)):
8935 created from cgraph_can_remove_if_no_direct_calls_p
8936 (inline bool has_gimple_body_p (void)):
8937 created from cgraph_function_with_gimple_body_p
8938 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8939 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8940 (static inline void debug_cgraph (void)): created from debug_cgraph
8941 (static void record_function_versions (tree decl1, tree decl2)):
8942 created from record_function_versions
8943 (static void delete_function_version (tree decl)):
8944 created from delete_function_version
8945 (static void add_new_function (tree fndecl, bool lowered)):
8946 created from cgraph_add_new_function
8947 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8948 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8949 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8950 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8951 (static cgraph_node *get_for_asmname (tree asmname)):
8952 created from cgraph_node_for_asm
8953 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8954 created from cgraph_same_body_alias
8955 (static bool used_from_object_file_p_worker (cgraph_node *node,
8956 void *): new function
8957 (static bool non_local_p (cgraph_node *node, void *)):
8958 created from cgraph_non_local_node_p_1
8959 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8960 created from verify_cgraph
8961 (static bool make_local (cgraph_node *node, void *)):
8962 created from cgraph_make_node_local
8963 (static cgraph_node *create_alias (tree alias, tree target)):
8964 created from cgraph_create_function_alias
8965 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8966 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8967 created from cgraph_create_edge_1
8968 * cgraph.h (varpool_node):
8969 (void remove (void)): created from varpool_remove_node
8970 (void dump (FILE *f)): created from dump_varpool_node
8971
8972 2014-07-24 Richard Biener <rguenther@suse.de>
8973
8974 PR ipa/61823
8975 * tree-ssa-structalias.c (create_variable_info_for_1):
8976 Use varpool_get_constructor.
8977 (create_variable_info_for): Likewise.
8978
8979 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8980
8981 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8982 subtract outgoing area size when restoring stack_pointer_rtx.
8983
8984 2014-07-24 Nick Clifton <nickc@redhat.com>
8985
8986 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8987 that operations are taking place in parallel.
8988 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8989
8990 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8991
8992 * omp-low.c (extract_omp_for_data): Add missing break statement.
8993
8994 2014-07-24 Richard Biener <rguenther@suse.de>
8995
8996 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8997 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8998 and adjust MOVE_RATIO query accordingly.
8999 (estimate_num_insns): Adjust callers.
9000 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9001 * ipa-cp.c (gather_context_independent_values,
9002 estimate_local_effects): Likewise.
9003 * ipa-split.c (consider_split): Likewise.
9004
9005 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9006
9007 * config/i386/driver-i386.c: Remove names of unused arguments and
9008 unnecessary unused attributes.
9009 * config/i386/host-mingw32.c: Likewise.
9010 * config/i386/i386.c: Likewise.
9011 * config/i386/winnt-stubs.c: Likewise.
9012 * config/i386/winnt.c: Likewise.
9013
9014 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9015
9016 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9017 (aarch64_gen_loadwb_pair): New helper function.
9018 (aarch64_expand_epilogue): Simplify code using new helper functions.
9019 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9020
9021 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9022
9023 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9024 (aarch64_gen_storewb_pair): New helper function.
9025 (aarch64_expand_prologue): Simplify code using new helper functions.
9026 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9027
9028 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9029
9030 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9031 Rename to aarch64_save_callee_saves, remove restore code.
9032 (aarch64_restore_callee_saves): New function.
9033
9034 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9035
9036 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9037 (aarch64_save_callee_saves): New function to handle reg save
9038 for both core and vectore regs.
9039
9040 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9041
9042 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9043 (aarch64_gen_store_pair): New helper function.
9044 (aarch64_save_or_restore_callee_save_registers)
9045 (aarch64_save_or_restore_fprs): Use new helper functions.
9046
9047 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9048
9049 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9050 (aarch64_save_or_restore_callee_save_registers)
9051 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9052
9053 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9054
9055 * config/aarch64/aarch64.c
9056 (aarch64_save_or_restore_callee_save_registers)
9057 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9058
9059 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9060
9061 * config/aarch64/aarch64.c
9062 (aarch64_save_or_restore_callee_save_registers)
9063 (aarch64_save_or_restore_fprs): Remove 'increment'.
9064
9065 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9066
9067 * config/aarch64/aarch64.c
9068 (aarch64_save_or_restore_callee_save_registers)
9069 (aarch64_save_or_restore_fprs): Use register offset in
9070 cfun->machine->frame.reg_offset.
9071
9072 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9073
9074 * config/aarch64/aarch64.c
9075 (aarch64_save_or_restore_callee_save_registers)
9076 (aarch64_save_or_restore_fprs): Remove base_rtx.
9077
9078 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9079
9080 * config/aarch64/aarch64.c
9081 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9082 to 'start_offset'. Remove local variable 'start_offset'.
9083
9084 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9085
9086 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9087 type to HOST_WIDE_INT.
9088
9089 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9090
9091 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9092 (aarch64_save_or_restore_fprs)
9093 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9094
9095 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9096
9097 * config/arm/t-rtems-eabi: Add
9098 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9099 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9100 mbig-endian/mthumb/march=armv7-r, and
9101 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9102 multilibs.
9103
9104 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9105 Chris Johns <chrisj@rtems.org>
9106 Joel Sherrill <joel.sherrill@oarcorp.com>
9107
9108 * config.gcc: Add nios2-*-rtems*.
9109 * config/nios2/rtems.h: New file.
9110 * gcc/config/nios2/t-rtems: New file.
9111
9112 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9113
9114 PR target/61396
9115 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9116 constant numbers, not general constants.
9117 (rs6000_expand_vector_init): Ditto.
9118
9119 2014-07-23 Nathan Sidwell <nathan@acm.org>
9120
9121 * gcov-tool.c (gcov_list): Declare here.
9122 (set_gcov_list): Remove.
9123 (gcov_output_files): Set gcov_list directly.
9124
9125 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9126
9127 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9128
9129 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9130
9131 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9132 callee-saved registers are available for padding purpose
9133 and r3 is not mandatory, then prefer use those callee-saved
9134 instead of r3.
9135
9136 2014-07-23 Richard Biener <rguenther@suse.de>
9137
9138 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9139 * combine.c: Include statistics.h and params.h.
9140 (combine_instructions): Guard three and four insn combines
9141 with max-combine-insns value. Record statistics for combines
9142 performed.
9143 * doc/invoke.texi (max-combine-insns): Document new param.
9144
9145 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9146
9147 * graphite-isl-ast-to-gimple.c:
9148 (translate_isl_ast_node_block): New function.
9149 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9150
9151 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9152 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9153
9154 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9155
9156 * graphite-isl-ast-to-gimple.c:
9157 (get_max_schedule_dimensions): New function.
9158 (extend_schedule): Likewise.
9159 (generate_isl_schedule): Add calling of extend_schedule and
9160 get_max_schedule_dimensions.
9161
9162 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9163
9164 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9165 (case UNSPEC): Handle UNSPEC_RBIT.
9166
9167 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9168
9169 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9170 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9171
9172 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9173
9174 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9175
9176 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9177
9178 * graphite-isl-ast-to-gimple.c:
9179 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9180 (ivs_params_clear):
9181 (build_iv_mapping): New function.
9182 (translate_isl_ast_node_user): Likewise.
9183 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9184
9185 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9186 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9187 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9188
9189 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9190
9191 PR target/55701
9192 * config/arm/arm.md (setmem): New pattern.
9193 * config/arm/arm-protos.h (struct tune_params): New fields.
9194 (arm_gen_setmem): New prototype.
9195 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9196 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9197 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9198 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9199 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9200 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9201 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9202 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9203 (arm_const_inline_cost): New function.
9204 (arm_block_set_max_insns): New function.
9205 (arm_block_set_non_vect_profit_p): New function.
9206 (arm_block_set_vect_profit_p): New function.
9207 (arm_block_set_unaligned_vect): New function.
9208 (arm_block_set_aligned_vect): New function.
9209 (arm_block_set_unaligned_non_vect): New function.
9210 (arm_block_set_aligned_non_vect): New function.
9211 (arm_block_set_vect, arm_gen_setmem): New functions.
9212
9213 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9214
9215 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9216
9217 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9218
9219 PR target/61855
9220 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9221 out of #ifdef __OPTIMIZE__.
9222
9223 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9224
9225 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9226 different trapping status if -fnon-call-exceptions is enabled.
9227
9228 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9229
9230 * expr.c (store_field): Handle VOIDmode for calls that return values
9231 in multiple locations.
9232
9233 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9234
9235 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9236 (altivec_vsldoi_<mode>): Likewise.
9237
9238 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9239
9240 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9241 to the number of characters in the line.
9242
9243 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9244
9245 * graphite-isl-ast-to-gimple.c: Add using of
9246 build_nonstandard_integer_type instead of int128_integer_type_node.
9247
9248 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9249
9250 * toplev.c (output_stack_usage): Adjust the location of the warning.
9251
9252 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9253
9254 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9255 (*membar_storeload): Disable for LEON3.
9256
9257 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9258
9259 PR rtl-optimization/61461
9260 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9261
9262 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9263
9264 PR target/61794
9265 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9266 Fix instruction constraint.
9267 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9268
9269 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9270
9271 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9272
9273 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9274
9275 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9276 GNU coding standards.
9277 (nds32_register_move_cost): Likewise.
9278 (nds32_memory_move_cost): Likewise.
9279 (nds32_address_cost): Likewise.
9280
9281 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9282
9283 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9284
9285 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9286
9287 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9288 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9289 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9290 (HAVE_sync_compare_and_swapqi): Define.
9291 (HAVE_sync_compare_and_swaphi): Likewise.
9292 (HAVE_sync_compare_and_swapsi): Likewise.
9293
9294 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9295
9296 * config/mips/p5600.md: Add missing cpu tests.
9297
9298 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9299
9300 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9301 (vmla_f64): Likewise.
9302 (vfms_f64): Likewise.
9303 (vmls_f64): Likewise.
9304
9305 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9306
9307 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9308 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9309
9310 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9311
9312 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9313 (vmlal_high_lane_s32): Likewise.
9314 (vmlal_high_lane_u16): Likewise.
9315 (vmlal_high_lane_u32): Likewise.
9316 (vmlsl_high_lane_s16): Likewise.
9317 (vmlsl_high_lane_s32): Likewise.
9318 (vmlsl_high_lane_u16): Likewise.
9319 (vmlsl_high_lane_u32): Likewise.
9320
9321 2014-07-17 Terry Guo <terry.guo@arm.com>
9322
9323 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9324 (alus_reg): Renamed to alus_sreg.
9325 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9326 from alu_reg to alu_sreg. Change type of dsp instructions from
9327 alu_reg to alu_dsp_reg.
9328 * config/arm/thumb1.md: Likewise.
9329 * config/arm/thumb2.md: Likewise.
9330 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9331 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9332 with alu_sreg and alus_sreg.
9333 * config/arm/arm1026ejs.md (alu_op): Likewise.
9334 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9335 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9336 * config/arm/fa526.md (526_alu_op): Likewise.
9337 * config/arm/fa606te.md (606te_alu_op): Likewise.
9338 * config/arm/fa626te.md (626te_alu_op): Likewise.
9339 * config/arm/fa726te.md (726te_alu_op): Likewise.
9340 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9341 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9342 alu_sreg, alu_dsp_reg and alus_sreg.
9343 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9344 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9345 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9346 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9347 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9348 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9349 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9350 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9351 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9352 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9353 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9354 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9355 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9356 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9357 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9358 alus_reg to alus_sreg.
9359
9360 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9361
9362 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9363 infinity format.
9364
9365 2014-07-17 Richard Biener <rguenther@suse.de>
9366
9367 PR rtl-optimization/61801
9368 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9369 don't set reg_pending_barrier if it appears in a debug-insn.
9370
9371 2014-07-16 DJ Delorie <dj@redhat.com>
9372
9373 * config/rx/rx.c (rx_option_override): Fix alignment values.
9374 (rx_align_for_label): Likewise.
9375
9376 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9377
9378 PR target/61737.
9379 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9380 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9381 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9382 functions.
9383 (cris_print_index, cris_print_operand, cris_constant_index_p)
9384 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9385 (cris_address_cost): Ditto last CONSTANT_P.
9386 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9387 callers changed. Yield cris_offsettable_symbol for non-PIC
9388 constant symbolic expressions including labels. Yield cris_unspec
9389 for all unspecs.
9390 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9391 target to pic_offset_table_rtx for calls that will likely go
9392 through PLT, const0_rtx when they can't. All callers changed.
9393 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9394 symbolic expressions to be PICified. Remove second, redundant,
9395 assert on can_create_pseudo_p returning non-zero. Use
9396 replace_equiv_address_nv, not replace_equiv_address, for final
9397 operand update.
9398 * config/cris/cris.md ("movsi"): Move variable t to pattern
9399 toplevel. Adjust assert for new cris_symbol_type member. Use
9400 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9401 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9402 for lapc stricter.
9403 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9404 ("call", "call_value"): Use second incoming operand as a marker
9405 for pic-offset-table-register being used.
9406 ("*expanded_call_non_v32", "*expanded_call_v32")
9407 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9408 second incoming operand to CALL, match cris_call_type_marker.
9409 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9410 ("*expanded_call_side"): Ditto. Fix typo in comment.
9411 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9412 CONSTANT_P.
9413 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9414 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9415 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9416 users changed. Add members cris_offsettable_symbol and cris_unspec.
9417 (cris_symbol_type): Rename from cris_pic_symbol_type.
9418 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9419 just CONSTANT_P.
9420 * config/cris/cris-protos.h (cris_symbol_type_of,
9421 cris_expand_pic_call_address): Adjust prototypes.
9422 (cris_legitimate_constant_p): New prototype.
9423
9424 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9425 an existing tmake_file. Don't add t-slibgcc and t-linux.
9426
9427 2014-07-17 Jason Merrill <jason@redhat.com>
9428
9429 PR c++/61623
9430 * symtab.c (symtab_remove_from_same_comdat_group): Also
9431 set_comdat_group to NULL_TREE.
9432 (verify_symtab): Fix diagnostic.
9433
9434 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9435
9436 PR target/61662
9437 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9438
9439 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9440
9441 Support location tracking for built-in macro tokens
9442 * input.h (is_location_from_builtin_token): New function declaration.
9443 * input.c (is_location_from_builtin_token): New function definition.
9444 * toplev.c (general_init): Tell libcpp what the pre-defined
9445 spelling location for built-in tokens is.
9446
9447 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9448
9449 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9450 on the FUNCTION_DECL.
9451
9452 2014-07-16 Richard Biener <rguenther@suse.de>
9453
9454 PR other/61782
9455 * doc/extend.texi (always_inline): Clarify.
9456
9457 2014-07-15 Eric Christopher <echristo@gmail.com>
9458
9459 * doc/invoke.texi (Link Options): Document -z option.
9460
9461 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9462
9463 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9464 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9465
9466 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9467
9468 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9469
9470 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9471
9472 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9473 varpool_assemble_decl.
9474 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9475 true.
9476
9477 2014-07-15 Michael Matz <matz@suse.de>
9478
9479 PR rtl-optimization/61772
9480 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9481
9482 2014-07-15 Richard Biener <rguenther@suse.de>
9483
9484 * opts.c (default_options_table): Disable bit-ccp at -Og.
9485
9486 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9487
9488 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9489
9490 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9491
9492 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9493 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9494 call langhook for unknown declaration.
9495 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9496 * tree.h (DECL_ARGUMENTS): Update.
9497 * print-tree.c (print_node): Update.
9498 * tree-core.h (tree_decl_non_common): Remove arguments.
9499 (tree_function_decl): Add arguments.
9500
9501 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9502
9503 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9504
9505 2014-07-14 Richard Biener <rguenther@suse.de>
9506
9507 PR tree-optimization/61779
9508 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9509 simplifying a condition.
9510
9511 2014-07-14 Richard Biener <rguenther@suse.de>
9512
9513 * builtins.c (c_strlen): Make only_value == 2 really only
9514 affect warning generation.
9515
9516 2014-07-14 Richard Biener <rguenther@suse.de>
9517
9518 PR tree-optimization/61757
9519 PR tree-optimization/61783
9520 PR tree-optimization/61787
9521 * tree-ssa-dom.c (record_equality): Revert canonicalization
9522 change and add comment.
9523 (propagate_rhs_into_lhs): Revert previous fix, removing
9524 loop depth restriction again.
9525
9526 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9527
9528 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9529 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9530 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9531 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9532 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9533 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9534 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9535
9536 2014-07-14 Richard Biener <rguenther@suse.de>
9537
9538 * cgraph.h (decl_in_symtab_p): Make inline.
9539
9540 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9541
9542 PR middle-end/61294
9543 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9544
9545 PR target/61656
9546 * config/i386/i386.c (classify_argument): Don't merge classes above
9547 number of words.
9548
9549 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9550
9551 * cgraph.h (symtab_node): Add nonzero_address.
9552 (decl_in_symtab_p): Break out from ...
9553 (symtab_get_node): ... here.
9554 * fold-const.c: Include cgraph.h
9555 (tree_single_nonzero_warnv_p): Use symtab to determine
9556 if symbol is non-zero.
9557 * symtab.c (symtab_node::nonzero_address): New method.
9558
9559 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9560
9561 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9562 forgotten in previous commit.
9563
9564 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9565
9566 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9567 on builtin types.
9568 * ipa-devirt.c: Include stor-layout.h and intl.h
9569 (odr_subtypes_equivalent_p): New function.
9570 (warn_odr): New function.
9571 (warn_type_mismatch): New function.
9572 (odr_types_equivalent_p): New function.
9573 (add_type_duplicate): Use it.
9574 * common.opt (Wodr): New flag.
9575 * doc/invoke.texi (Wodr): Document new warning.
9576
9577 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9578
9579 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9580 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9581 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9582 (varpool_get_constructor): Push CTORS_IN timevar.
9583 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9584
9585 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9586
9587 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9588 Remove VOID_FTYPE_PUSHORT.
9589 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9590 Change code to USHORT_FTYPE_VOID.
9591 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9592 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9593 (ix86_atomic_assign_expand_fenv): Update for
9594 __builtin_ia32_fnstsw changes.
9595 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9596 (fnstsw): Change operand 0 to nonimmediate operand.
9597
9598 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9599
9600 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9601 (varpool_get_constructor): New function.
9602 (varpool_ctor_useable_for_folding_p): Break out from ...
9603 (ctor_for_folding): ... here; use varpool_get_constructor.
9604 (varpool_assemble_decl): Likewise.
9605 * lto-streamer.h (struct output_block): Turn cgraph_node
9606 to symbol filed.
9607 (lto_input_variable_constructor): Declare.
9608 * ipa-visibility.c (function_and_variable_visibility): Use
9609 varpool_get_constructor.
9610 * cgraph.h (varpool_get_constructor): Declare.
9611 (varpool_ctor_useable_for_folding_p): New function.
9612 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9613 parameter; return error_mark_node for non-trivial constructors.
9614 (lto_write_tree_1, DFS_write_tree): Update use of
9615 get_symbol_initial_value.
9616 (output_function): Update initialization of symbol.
9617 (output_constructor): New function.
9618 (copy_function): Rename to ..
9619 (copy_function_or_variable): ... this one; handle vars too.
9620 (lto_output): Output variable sections.
9621 * lto-streamer-in.c (input_constructor): New function.
9622 (lto_read_body): Rename from ...
9623 (lto_read_body_or_constructor): ... this one; handle vars too.
9624 (lto_input_variable_constructor): New function.
9625 * ipa-prop.c (ipa_prop_write_jump_functions,
9626 ipa_prop_write_all_agg_replacement): Update.
9627 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9628 (output_cgraph_opt_summary): Set symbol to NULL.
9629
9630 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9631
9632 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9633 non-polymorphic types.
9634 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9635 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9636 of types is not polymorphic.
9637
9638 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9639
9640 * lra-constraints.c (remove_inheritance_pseudos): Process
9641 destination pseudo too.
9642
9643 2014-07-11 Rong Xu <xur@google.com>
9644
9645 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9646 commit r212448.
9647
9648 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9649
9650 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9651 * config/avr/avr-devices.c (AVR_MCU): Same.
9652 (avr_mcu_types): add text start value to end of device list.
9653 * config/avr/avr-mcus.def: Add text section start for all devices.
9654 (ata5782): Add new avr5 device.
9655 (ata5831): Same.
9656 * config/avr/avr-tables.opt: Regenerate.
9657 * config/avr/avr.h: Add declaration for text section start handler.
9658 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9659 SPEC functions.
9660 (LINK_SPEC): Include text section start handler to linker spec.
9661 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9662 pass -Ttext option to linker if the text section start for the device
9663 is not zero.
9664 * config/avr/t-multilib: Regenerate.
9665 * doc/avr-mmcu.texi: Regenerate.
9666
9667 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9668
9669 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9670 * config/rs6000/aix52.h (LINK_SPEC): Same.
9671 * config/rs6000/aix53.h (LINK_SPEC): Same.
9672 * config/rs6000/aix61.h (LINK_SPEC): Same.
9673 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9674
9675 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9676
9677 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9678 (graphite_verify): New function.
9679 (ivs_params_clear): New function.
9680 (gcc_expression_from_isl_ast_expr_id): New function.
9681 (gcc_expression_from_isl_expr_int): New function.
9682 (binary_op_to_tree): New function.
9683 (ternary_op_to_tree): New function.
9684 (unary_op_to_tree): New function.
9685 (nary_op_to_tree): New function.
9686 (gcc_expression_from_isl_expr_op): New function.
9687 (gcc_expression_from_isl_expression): New function.
9688 (graphite_create_new_loop): New function.
9689 (translate_isl_ast_for_loop): New function.
9690 (get_upper_bound): New function.
9691 (graphite_create_new_loop_guard): New function.
9692 (translate_isl_ast_node_for): New function.
9693 (translate_isl_ast): New function.
9694 (add_parameters_to_ivs_params): New function.
9695 (scop_to_isl_ast): New parameter ip.
9696 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9697
9698 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9699
9700 * config/xtensa/predicates.md (call expander): Update for
9701 DECL_SECTION_NAME being string.
9702
9703 2014-07-11 Richard Biener <rguenther@suse.de>
9704
9705 PR middle-end/61473
9706 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9707 can be implemented with a single load followed by a single store.
9708 (c_strlen): Only warn when only_value is not 2.
9709
9710 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9711
9712 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9713
9714 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9715
9716 PR target/61561
9717 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9718 (*movhi_bytes): Likewise.
9719 (*arm_movqi_insn): Likewise.
9720
9721 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9722
9723 PR target/56858
9724 * config/alpha/alpha.c: Include tree-pass.h, context.h
9725 and pass_manager.h.
9726 (pass_data_handle_trap_shadows): New pass.
9727 (pass_handle_trap_shadows::gate): New pass gate function.
9728 (make_pass_handle_trap_shadows): New function.
9729 (rest_of_handle_trap_shadows): Ditto.
9730
9731 (alpha_align_insns_1): Rename from alpha_align_insns.
9732 (pass_data_align_insns): New pass.
9733 (pass_align_insns::gate): New pass gate function.
9734 (make_pass_aling_insns): New function.
9735 (rest_of_align_insns): Ditto.
9736 (alpha_align_insns): Ditto.
9737
9738 (alpha_option_override): Declare handle_trap_shadows info
9739 and align_insns_info. Register handle_trap_shadows and align_insns
9740 passes here.
9741 (alpha_reorg): Do not call alpha_trap_shadows and
9742 alpha_align_insn from here.
9743
9744 (alpha_pad_function_end): Do not skip BARRIERs.
9745
9746 2014-07-10 Rong Xu <xur@google.com>
9747
9748 Add gcov-tool: an offline gcda profile processing tool support.
9749 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9750 (gcov_is_error): Ditto.
9751 (gcov_read_string): Ditto.
9752 (gcov_read_sync): Ditto.
9753 * gcov-io.h: Move counter defines to gcov-counter.def.
9754 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9755 * coverage.c: Ditto.
9756 * gcov-tool.c: Offline gcda profile processing tool.
9757 (unlink_gcda_file): Remove one gcda file.
9758 (unlink_profile_dir): Remove gcda files from the profile path.
9759 (gcov_output_files): Output gcda files to an output dir.
9760 (profile_merge): Merge two profiles in directory.
9761 (print_merge_usage_message): Print merge usage.
9762 (merge_usage): Print merge usage and exit.
9763 (do_merge): Driver for profile merge sub-command.
9764 (profile_rewrite): Rewrite profile.
9765 (print_rewrite_usage_message): Print rewrite usage.
9766 (rewrite_usage): Print rewrite usage and exit.
9767 (do_rewrite): Driver for profile rewrite sub-command.
9768 (print_usage): Print gcov-info usage and exit.
9769 (print_version): Print gcov-info version.
9770 (process_args): Process arguments.
9771 (main): Main routine for gcov-tool.
9772 * Makefile.in: Build and install gcov-tool.
9773 * gcov-counter.def: New file split from gcov-io.h.
9774 * doc/gcc.texi: Include gcov-tool.texi.
9775 * doc/gcov-tool.texi: Document for gcov-tool.
9776
9777 2014-07-10 Richard Biener <rguenther@suse.de>
9778
9779 PR tree-optimization/61757
9780 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9781 (propagate_rhs_into_lhs): Revert part of last change.
9782
9783 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9784
9785 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9786 FUNCTION_DECLs.
9787
9788 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9789
9790 PR middle-end/53590
9791 * function.c (allocate_struct_function): Revert r188667 change.
9792
9793 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9794
9795 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9796
9797 * doc/install.texi: Remove links to defunct package providers for
9798 Solaris.
9799
9800 2014-07-09 Tom de Vries <tom@codesourcery.com>
9801
9802 * final.c (get_call_fndecl): Declare.
9803 (self_recursive_call_p): New function.
9804 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9805
9806 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9807
9808 * ipa-devirt.c (record_node): Walk through aliases.
9809
9810 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9811
9812 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9813
9814 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9815
9816 Revert:
9817 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9818
9819 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9820
9821 * ipa-visibility.c (function_and_variable_visibility): Remove
9822 temporary hack disabling local aliases on AIX.
9823
9824 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9825
9826 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9827 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9828
9829 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9830
9831 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9832 * rs6000/rs6000.c: Inline output of .set instruction.
9833 (declare_alias_data): New struct.
9834 (rs6000_declare_alias): New function.
9835 (rs6000_xcoff_declare_function_name): Use it.
9836 (rs6000_xcoff_declare_object_name): New function.
9837 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9838 (ASM_OUTPUT_DEF): Turn to empty definition.
9839
9840 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9841
9842 PR bootstrap/61679
9843 * hash-table.h: use hash_table::value_type instead of
9844 Descriptor::value_type in the return types of several methods.
9845
9846 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9847
9848 * tree-pass.h (pass_data): Remove has_execute member.
9849 * passes.c (execute_one_pass): Don't check pass->has_execute.
9850 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9851 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9852 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9853 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9854 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9855 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9856 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9857 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9858 gimple-low.c, gimple-ssa-isolate-paths.c,
9859 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9860 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9861 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9862 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9863 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9864 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9865 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9866 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9867 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9868 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9869 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9870 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9871 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9872 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9873 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9874 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9875 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9876 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9877 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9878 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9879 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9880 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9881 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9882 web.c: Remove initializer for pass_data::has_execute.
9883
9884 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9885
9886 * graphite-htab.h: Use hash_map instead of hash_table.
9887 * graphite-clast-to-gimple.c: Adjust.
9888 * passes.c: Use hash_map instead of hash_table.
9889 * sese.c: Likewise.
9890 * sese.h: Remove now unused code.
9891
9892 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9893
9894 PR target/61599
9895 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9896 than zero.
9897
9898 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9899
9900 PR rtl-optimization/61673
9901 * combine.c (simplify_comparison): Test just mode's sign bit
9902 in tmode rather than the sign bit and any bits above it.
9903
9904 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9905
9906 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9907 Add __isl_give to the declaration.
9908 (generate_isl_schedule): Likewise.
9909 (scop_to_isl_ast): Likewise.
9910
9911 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9912
9913 * config/arm/arm.c (cortexa5_extra_costs): New table.
9914 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9915
9916 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9917
9918 PR tree-optimization/61725
9919 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9920 range, use range_includes_zerop_p instead of integer_zerop on
9921 vr0->min, only use log2 of max if min is not negative.
9922
9923 2014-07-08 Richard Biener <rguenther@suse.de>
9924
9925 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9926 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9927 restriction on loop depth difference.
9928 (record_equality): Likewise.
9929 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9930 (loop_depth_of_name): Remove.
9931 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9932 restriction on loop depth difference.
9933 (init_copy_prop): Likewise.
9934
9935 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9936
9937 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9938 parameter.
9939 (walk_aliased_vdefs): Likewise.
9940 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9941 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9942 (detect_type_change_from_memory_writes): Check if entry was reached.
9943
9944 2014-07-08 Richard Biener <rguenther@suse.de>
9945
9946 PR tree-optimization/61681
9947 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9948 NONLOCAL inside ESCAPED.
9949
9950 2014-07-08 Richard Biener <rguenther@suse.de>
9951
9952 PR tree-optimization/61680
9953 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9954 Handle properly all read-write dependences with group accesses.
9955
9956 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9957
9958 PR tree-optimization/61576
9959 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9960 block containing reduction statement is predecessor of phi basi block.
9961
9962 2014-07-08 Marek Polacek <polacek@redhat.com>
9963
9964 PR c/60226
9965 * fold-const.c (round_up_loc): Change the parameter type.
9966 Remove assert.
9967 * fold-const.h (round_up_loc): Adjust declaration.
9968 * stor-layout.c (finalize_record_size): Check for too large types.
9969
9970 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9971
9972 * symtab.c: Include calls.h.
9973 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9974
9975 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9976
9977 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9978 little-endian code generation.
9979 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9980 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9981 (spe_evmergehilo): Rename to...
9982 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9983 (spe_evmergelo): Rename to...
9984 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9985 (spe_evmergelohi): Rename to...
9986 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9987 (spe_evmergehi, spe_evmergehilo): New expanders.
9988 (spe_evmergelo, spe_evmergelohi): Likewise.
9989 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9990 (*frob_tf_ti): Likewise.
9991 (*frob_<mode>_di_2): Likewise.
9992 (*frob_tf_di_8_2): Likewise.
9993 (*frob_di_<mode>): Likewise.
9994 (*frob_ti_tf): Likewise.
9995 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9996 (*frob_ti_<mode>_8_2): Likewise.
9997 (*frob_ti_tf_2): Likewise.
9998 (mov_si<mode>_e500_subreg0): Rename to...
9999 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10000 endianness only.
10001 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10002 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10003 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10004 the big endianness only.
10005 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10006 (*mov_si<mode>_e500_subreg0_2): Rename to...
10007 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10008 big big endianness only.
10009 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10010 (*mov_si<mode>_e500_subreg4): Rename to...
10011 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10012 endianness only.
10013 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10014 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10015 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10016 the big endianness only.
10017 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10018 pattern.
10019 (*mov_si<mode>_e500_subreg4_2): Rename to...
10020 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10021 endianness only.
10022 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10023 (*mov_sitf_e500_subreg8): Rename to...
10024 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10025 endianness only.
10026 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10027 (*mov_sitf_e500_subreg8_2): Rename to...
10028 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10029 endianness only.
10030 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10031 (*mov_sitf_e500_subreg12): Rename to...
10032 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10033 endianness only.
10034 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10035 (*mov_sitf_e500_subreg12_2): Rename to...
10036 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10037 endianness only.
10038 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10039
10040 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10041
10042 * asan.c (instrument_strlen_call): Do not instrument first byte
10043 in strlen if already instrumented.
10044
10045 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10046
10047 * config/arm/arm.opt (mwords-little-endian): Delete.
10048 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10049 of TARGET_LITTLE_WORDS.
10050 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10051 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10052 warning.
10053 * doc/invoke.texi: Remove references to -mwords-little-endian.
10054
10055 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10056
10057 * expmed.c (struct init_expmed_rtl): Change all fields but
10058 pow2 and cint from struct rtx_def to rtx.
10059 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10060 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10061 at the end again.
10062
10063 2014-07-06 Marek Polacek <polacek@redhat.com>
10064
10065 PR c/6940
10066 * doc/invoke.texi: Document -Wsizeof-array-argument.
10067
10068 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10069
10070 * wide-int.h (wide_int_storage): Change declaration from struct
10071 to class.
10072
10073 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10074
10075 * cgraph.c (cgraph_create_indirect_edge): Update call of
10076 get_polymorphic_call_info.
10077 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10078 (possible_polymorphic_call_targets): Add parameter call.
10079 (decl_maybe_in_construction_p): New predicate.
10080 (get_polymorphic_call_info): Add parameter call;
10081 use decl_maybe_in_construction_p.
10082 * gimple-fold.c (fold_gimple_assign): Update use of
10083 possible_polymorphic_call_targets.
10084 (gimple_fold_call): Likewise.
10085 * ipa-prop.c: Inlcude calls.h
10086 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10087 (param_type_may_change_p): New predicate.
10088 (detect_type_change_from_memory_writes): Break out from ...
10089 (detect_type_change): ... this one; use param_type_may_change_p.
10090 (detect_type_change_ssa): Use param_type_may_change_p.
10091 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10092
10093 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10094
10095 PR target/49423
10096 * config/arm/arm-protos.h (arm_legitimate_address_p,
10097 arm_is_constant_pool_ref): Add prototypes.
10098 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10099 (arm_is_constant_pool_ref) New function.
10100 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10101 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10102 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10103 operand. Remove pool_range and neg_pool_range attributes.
10104 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10105 pool_range and neg_pool_range attributes.
10106 * config/arm/constraints.md (Uh): New constraint.
10107 (Uq): Don't allow constant pool references.
10108
10109 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10110
10111 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10112 (move_lo_quad_internal_be_<mode>): Likewise.
10113 (move_lo_quad_<mode>): Convert to define_expand.
10114 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10115 (aarch64_simd_move_hi_quad_be_<mode>): New.
10116 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10117 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10118 (aarch64_combinez_be<mode>): New.
10119 (aarch64_combine<mode>): Convert to define_expand.
10120 (aarch64_combine_internal<mode>): New.
10121 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10122
10123 2014-07-04 Tom de Vries <tom@codesourcery.com>
10124
10125 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10126 combination of earlyclobber and read/write modifiers.
10127
10128 2014-07-04 Tom de Vries <tom@codesourcery.com>
10129
10130 * config/aarch64/aarch64-simd.md
10131 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10132
10133 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10134
10135 PR target/61714
10136 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10137
10138 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10139
10140 PR middle-end/61654
10141 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10142
10143 PR tree-optimization/61684
10144 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10145 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10146
10147 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10148 Kito Cheng <kito@0xlab.org>
10149 Monk Chiang <sh.chiang04@gmail.com>
10150
10151 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10152 (nds32_symbol_load_store_p): Move to ...
10153 (nds32_fp_as_gp_check_available): Move to ...
10154 * config/nds32/nds32-fp-as-gp.c: ... here.
10155 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10156 extern declaration.
10157
10158 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10159 Kito Cheng <kito@0xlab.org>
10160 Monk Chiang <sh.chiang04@gmail.com>
10161
10162 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10163 (nds32_expand_store_multiple): Move to ...
10164 (nds32_expand_movmemqi): Move to ...
10165 * config/nds32/nds32-memory-manipulation.c: ... here.
10166
10167 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10168 Kito Cheng <kito@0xlab.org>
10169 Monk Chiang <sh.chiang04@gmail.com>
10170
10171 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10172 (nds32_output_casesi_pc_relative): Move to ...
10173 (nds32_output_casesi): Move to ...
10174 (nds32_mem_format): Move to ...
10175 (nds32_output_16bit_store): Move to ...
10176 (nds32_output_16bit_load): Move to ...
10177 (nds32_output_32bit_store): Move to ...
10178 (nds32_output_32bit_load): Move to ...
10179 (nds32_output_32bit_load_s): Move to ...
10180 (nds32_output_stack_push): Move to ...
10181 (nds32_output_stack_pop): Move to ...
10182 * config/nds32/nds32-md-auxiliary.c: ... here.
10183
10184 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10185 Ling-Hua Tseng <uranus@tinlans.org>
10186
10187 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10188 the purpose of this file.
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 (nds32_rtx_costs): Move implementation to ...
10195 (nds32_address_cost): Move implementation to ...
10196 * config/nds32/nds32-cost.c: ... here.
10197 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10198 (nds32_address_cost_impl): Declare.
10199
10200 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10201 Kito Cheng <kito@0xlab.org>
10202 Monk Chiang <sh.chiang04@gmail.com>
10203
10204 * config/nds32/nds32.c
10205 (nds32_consecutive_registers_load_store_p): Move to ...
10206 (nds32_valid_multiple_load_store): Move to ...
10207 (nds32_valid_stack_push_pop): Move to ...
10208 (nds32_can_use_bclr_p): Move to ...
10209 (nds32_can_use_bset_p): Move to ...
10210 (nds32_can_use_btgl_p): Move to ...
10211 (nds32_can_use_bitci_p): Move to ...
10212 * config/nds32/nds32-predicates.c: ... here.
10213
10214 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10215 Kito Cheng <kito@0xlab.org>
10216 Monk Chiang <sh.chiang04@gmail.com>
10217
10218 * config/nds32/nds32.c
10219 (nds32_expand_builtin_null_ftype_reg): Move to ...
10220 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10221 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10222 (nds32_init_builtins): Move implementation to ...
10223 (nds32_expand_builtin): Move implementation to ...
10224 * config/nds32/nds32-intrinsic.c: ... here.
10225 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10226 (nds32_expand_builtin_impl): Declare.
10227
10228 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10229 Kito Cheng <kito@0xlab.org>
10230 Monk Chiang <sh.chiang04@gmail.com>
10231
10232 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10233 (nds32_emit_section_tail_template): Move to ...
10234 (nds32_emit_isr_jmptbl_section): Move to ...
10235 (nds32_emit_isr_vector_section): Move to ...
10236 (nds32_emit_isr_reset_conten): Move to ...
10237 (nds32_check_isr_attrs_conflict): Move to ...
10238 (nds32_construct_isr_vectors_information): Move to ...
10239 (nds32_asm_file_start): Move implementation to ...
10240 (nds32_asm_file_end): Move implementation to ...
10241 * config/nds32/nds32-isr.c: ... here.
10242 * config/nds32/nds32-protos.h
10243 (nds32_check_isr_attrs_conflict): Declare.
10244 (nds32_construct_isr_vectors_information): Declare.
10245 (nds32_asm_file_start_for_isr): Declare.
10246 (nds32_asm_file_end_for_isr): Declare.
10247
10248 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10249 Kito Cheng <kito@0xlab.org>
10250 Monk Chiang <sh.chiang04@gmail.com>
10251
10252 * config.gcc (nds32*): Add new modules to extra_objs.
10253 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10254 (nds32be-*-*): Likewise.
10255 * config/nds32/nds32-cost.c: New file.
10256 * config/nds32/nds32-fp-as-gp.c: New file.
10257 * config/nds32/nds32-intrinsic.c: New file.
10258 * config/nds32/nds32-isr.c: New file.
10259 * config/nds32/nds32-md-auxiliary.c: New file.
10260 * config/nds32/nds32-memory-manipulation.c: New file.
10261 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10262 * config/nds32/nds32-predicates.c: New file.
10263 * config/nds32/t-nds32: New file.
10264
10265 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10266
10267 PR tree-optimization/61682
10268 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10269 using cases and when one of the operands is equal to 1.
10270
10271 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10272
10273 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10274 ashr<mode>3): Correct mode of operands[2].
10275 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10276 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10277 Correct mode of operands[2]. Fix split condition.
10278
10279 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10280
10281 * arm.md (arch): Add armv6_or_vfpv3.
10282 (arch_enabled): Add test for the above.
10283 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10284 on VFP9.
10285 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10286
10287 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10288
10289 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10290 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10291 HWI 1 and negate the unsigned value.
10292 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10293 use AND instead of shift.
10294 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10295
10296 2014-07-03 Marek Polacek <polacek@redhat.com>
10297
10298 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10299 (-fsanitize=float-divide-by-zero): Move to the table with
10300 -fsanitize=undefined suboptions.
10301 (-fsanitize=float-cast-overflow): Likewise.
10302
10303 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10304
10305 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10306 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10307 endianness.
10308
10309 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10310
10311 * loop-invariant.c (struct invariant): Add a new member: eqno;
10312 (find_identical_invariants): Update eqno;
10313 (create_new_invariant): Init eqno;
10314 (get_inv_cost): Compute comp_cost with eqno;
10315
10316 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10317
10318 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10319 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10320 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10321 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10322 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10323
10324 2014-07-02 Christian Bruel <christian.bruel@st.com>
10325
10326 PR target/29349
10327 PR target/53513
10328 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10329 (make_preds_opaque): Delete.
10330 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10331 (commit_mode_sets): New function.
10332 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10333 Process all modes at once.
10334 * basic-block.h (pre_edge_lcm_avs): Declare.
10335 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10336 Call clear_aux_for_edges. Fix comments.
10337 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10338 (pre_edge_rev_lcm): Idem.
10339 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10340 parameter.
10341 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10342 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10343 Idem.
10344 * config/i386/i386.c (x96_emit_mode_set): Idem.
10345 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10346 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10347 (fpscr_toggle) Disallow from delay slot.
10348 * target.def (emit_mode_set): Add prev_mode parameter.
10349 * doc/tm.texi: Regenerate.
10350
10351 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10352
10353 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10354 variable i.
10355
10356 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10357
10358 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10359 vtable_pointer_value_to_vtable): Constify.
10360 (contains_polymorphic_type_p): Declare.
10361 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10362 vtable_pointer_value_to_vtable): Constify.
10363 (contains_polymorphic_type_p): New predicate.
10364 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10365 polymorphic types.
10366 (ipa_set_ancestor_jf): Likewise.
10367 (detect_type_change): Return false in easy cases.
10368 (compute_complex_assign_jump_func): Require type to contain
10369 polymorphic type.
10370 (compute_known_type_jump_func): Likewise.
10371
10372 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10373
10374 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10375 Remove.
10376 (type_in_anonymous_namespace_p): Constify argument.
10377 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10378 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10379 (main_odr_variant): New function.
10380 (hash_type_name): Make static; update assert; do not ICE on
10381 non-records.
10382 (types_same_for_odr): Bring here from tree.c; simplify and remove
10383 old structural comparing code that doesn't work for templates.
10384 (odr_hasher::equal): Update assert.
10385 (add_type_duplicate): Return true when bases should be computed;
10386 replace incomplete loader by complete; do not output duplicated
10387 warnings; do not ICE on non-records; set odr_violated flag.
10388 (get_odr_type): Be ready to replace incomplete type by complete
10389 one; work on ODR variants instead of main variants; reorder item
10390 in array so bases have still smaller indexes.
10391 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10392 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10393
10394 2014-07-01 Cary Coutant <ccoutant@google.com>
10395
10396 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10397 lookup.
10398 (resolve_addr_in_expr): When replacing the rtx in a location list
10399 entry, get a new address table entry.
10400 (dwarf2out_finish): Call index_location_lists even if there are no
10401 addr_index_table entries yet.
10402
10403 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10404
10405 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10406 change for not being obvious.
10407
10408 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10409
10410 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10411 unused argument.
10412
10413 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10414
10415 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10416 (vcagt_f64): Likewise.
10417 (vcale_f64): Likewise.
10418 (vcaled_f64): Likewise.
10419 (vcales_f32): Likewise.
10420 (vcalt_f64): Likewise.
10421 (vcaltd_f64): Likewise.
10422 (vcalts_f32): Likewise.
10423
10424 2014-07-01 Marek Polacek <polacek@redhat.com>
10425
10426 * doc/invoke.texi: Document -Wint-conversion.
10427
10428 2014-07-01 Marek Polacek <polacek@redhat.com>
10429
10430 PR c/58286
10431 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10432
10433 2014-07-01 Martin Liska <mliska@suse.cz>
10434
10435 IPA REF alias refactoring
10436 * cgraph.h (iterate_direct_aliases): New function.
10437 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10438 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10439 FOR_EACH_ALIAS added.
10440 (cgraph_for_node_and_aliases): Likewise.
10441 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10442 * ipa-inline.c (reset_edge_caches): Likewise.
10443 (update_caller_keys): Likewise.
10444 * trans-mem.c (ipa_tm_execute): Likewise.
10445 *varpool.c (varpool_analyze_node): Likewise.
10446 (varpool_for_node_and_aliases): Likewise.
10447 * ipa-ref.h (first_alias): New function.
10448 (last_alias): Likewise.
10449 (has_aliases_p): Likewise.
10450 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10451 is sensitive to IPA_REF_ALIASes.
10452 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10453 are put at the beginning of the list.
10454 (symtab_node::iterate_direct_aliases): New function.
10455
10456 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10457
10458 Revert:
10459 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10460 type is complete.
10461 (write_ts_type_common_tree_pointers): Do not stream fields not set
10462 for incomplete types; do not stream duplicated fields for variants;
10463 sanity check that variant and type match.
10464 (write_ts_type_non_common_tree_pointers): Likewise.
10465 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10466 TYPE_SIZE whether type is complete.
10467 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10468 write_ts_type_common_tree_pointers
10469 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10470
10471 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10472
10473 * var-tracking.c (add_stores): Return instead of asserting if old
10474 and new values for conditional store are the same.
10475
10476 2014-06-30 Richard Henderson <rth@redhat.com>
10477
10478 PR rtl-opt/61608
10479 PR target/39284
10480 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10481 the cfg if there were any changes.
10482 * passes.def: Revert move of peephole2 after reorder_blocks;
10483 move duplicate_computed_gotos before peephole2.
10484
10485 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10486
10487 * except.c (emit_note_eh_region_end): New helper function.
10488 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10489 emit EH_REGION_END note.
10490 * jump.c (cleanup_barriers): Do not split a call and its
10491 corresponding CALL_ARG_LOCATION note.
10492
10493 2014-06-30 Jeff Law <law@redhat.com>
10494
10495 PR tree-optimization/61607
10496 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10497 deeper into the SSA_NAME_VALUE chain.
10498
10499 2014-06-30 Marek Polacek <polacek@redhat.com>
10500
10501 * convert.c (convert_to_integer): Don't instrument conversions if the
10502 function has no_sanitize_undefined attribute.
10503 * ubsan.c: Don't run the ubsan pass if the function has
10504 no_sanitize_undefined attribute.
10505
10506 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10507
10508 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10509 -fsanitize=undefined suboptions.
10510
10511 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10512
10513 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10514 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10515 against bigendian and adjust indices.
10516
10517 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10518
10519 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10520
10521 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10522
10523 PR target/61633
10524 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10525 Add alternative; make early clobber. Adjust both split patterns
10526 to use operand 0 as the working register.
10527
10528 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10529
10530 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10531 as ira_object_id_map might be NULL, or 1.
10532
10533 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10534
10535 * loop-invariant.c (get_inv_cost): Handle register class.
10536 (gain_for_invariant): Check the register pressure of the inv
10537 and its overlapped register class, other than all.
10538
10539 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10540
10541 * doc/invoke.texi (Optimize Options): Fix descriptions of
10542 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10543
10544 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10545
10546 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10547 documentation.
10548
10549 2014-06-29 Tobias Grosser <tobias@grosser.es>
10550
10551 PR bootstrap/61650
10552 * graphite-isl-ast-to-gimple.c: Add missing guards.
10553
10554 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10555
10556 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10557 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10558 * flag-types.h: Add new enum fgraphite_generator.
10559 * graphite-isl-ast-to-gimple.c: New.
10560 * graphite-isl-ast-to-gimple.h: New.
10561 * graphite.c (graphite_transform_loops): Add choice of Graphite
10562 code generator, which depends on flag_graphite_code_gen.
10563
10564 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10565
10566 * graphite-dependences.c (subtract_commutative_associative_deps):
10567 Add NULL checking of the following variables: must_raw_no_source,
10568 may_raw_no_source, must_war_no_source, may_war_no_source,
10569 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10570 must_war, may_war, must_waw, may_waw.
10571
10572 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10573
10574 * graphite-clast-to-gimple.c: gloog is renamed to
10575 graphite_regenerate_ast_cloog. gloog_error is renamed to
10576 graphite_regenerate_error.
10577 * graphite-clast-to-gimple.h: The definition of the struct
10578 bb_pbb_def is moved to graphite-htab.h.
10579 Add inclusion of the hash-table.h.
10580 * graphite-htab.h: The declaration of the function gloog is moved
10581 to graphite-clast-to-gimple.h and renamed to
10582 graphite_regenerate_ast_cloog.
10583 * graphite.c (graphite_transform_loops): gloog is renamed
10584 to graphite_regenerate_ast_cloog.
10585
10586 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10587
10588 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10589 type is complete.
10590 (write_ts_type_common_tree_pointers): Do not stream fields not set
10591 for incomplete types; do not stream duplicated fields for variants;
10592 sanity check that variant and type match.
10593 (write_ts_type_non_common_tree_pointers): Likewise.
10594 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10595 TYPE_SIZE whether type is complete.
10596 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10597 write_ts_type_common_tree_pointers
10598 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10599
10600 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10601
10602 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10603
10604 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10605
10606 * tree-inline.c (remap_type_1): Do not duplicate fields
10607 that are shared in between type and its main variant.
10608
10609 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10610
10611 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10612 of the type.
10613 (ipa_set_ancestor_jf) Likewise.
10614 (check_stmt_for_type_change): Check that we work on main variant.
10615 (detect_type_change): Look into main variant.
10616 (compute_known_type_jump_func): Check that main variant has BINFO.
10617
10618 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10619
10620 * ipa-devirt.c (set_type_binfo): New function.
10621 (add_type_duplicate): Use it.
10622 (get_odr_type): Sanity check that binfos points to main variants.
10623 (get_class_context): Be sure the context's outer_type is main variant.
10624 (contains_type_p): Walk main variant.
10625 (get_polymorphic_call_info_for_decl): Set outer_type to be
10626 main variant.
10627 (get_polymorphic_call_info): Likewise.
10628 (possible_polymorphic_call_targets): Sanity check that we operate
10629 on main variant.
10630
10631 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10632
10633 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10634
10635 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10636
10637 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10638 accidental change due to wide-int branch merge.
10639
10640 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10641
10642 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10643 compressed debug support.
10644 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10645 * configure: Regenerate.
10646 * config.in: Regenerate.
10647 * common.opt (compressed_debug_sections): New enum.
10648 (gz, gz=): New options.
10649 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10650 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10651 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10652 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10653 LINK_COMPRESS_DEBUG_SPEC.
10654 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10655 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10656 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10657 (Debugging Options): Document -gz[=type].
10658
10659 2014-06-27 Martin Jambor <mjambor@suse.cz>
10660
10661 PR ipa/61160
10662 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10663 args_to_skip, use those from node instead. Copy args_to_skip and
10664 combined_args_to_skip from node to the new thunk.
10665 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10666 (cgraph_create_virtual_clone): Moved computation of
10667 combined_args_to_skip...
10668 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10669
10670 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10671
10672 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10673 redundant diagnostic machinary.
10674
10675 2014-06-27 Richard Biener <rguenther@suse.de>
10676
10677 * tree-ssa-math-opts.c (bswap_replace): Fix
10678 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10679
10680 2014-06-27 Martin Liska <mliska@suse.cz>
10681
10682 * gimple.h (gimple_location_safe): New function introduced.
10683 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10684 of gimple_location_safe replaces gimple_location.
10685 (gimple_fold_call): Likewise.
10686 * ipa-devirt.c (ipa_devirt): Likewise.
10687 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10688 * ipa.c (walk_polymorphic_call_targets): Likewise.
10689 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10690
10691 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10692
10693 PR tree-optimization/57233
10694 PR tree-optimization/61299
10695 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10696 functions.
10697 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10698 would be lowered to scalar shifts, check if corresponding
10699 shifts and vector BIT_IOR_EXPR are supported and don't lower
10700 or lower just to narrower vector type in that case.
10701 * expmed.c (expand_shift_1): Fix up handling of vector
10702 shifts and rotates.
10703
10704 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10705
10706 PR target/61586
10707 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10708
10709 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10710
10711 * doc/invoke.texi (-fsemantic-interposition): Document.
10712 * common.opt (fsemantic-interposition): New flag.
10713 * varasm.c (decl_replaceable_p): Use it.
10714
10715 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10716
10717 PR target/61542
10718 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10719 extraction other than index 3.
10720
10721 2014-06-26 Teresa Johnson <tejohnson@google.com>
10722
10723 * doc/invoke.texi: Fix typo.
10724 * dumpfile.c: Add support for documented -fdump-* options
10725 optimized/missed/note/optall.
10726
10727 2014-06-26 Martin Jambor <mjambor@suse.cz>
10728
10729 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10730 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10731 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10732 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10733 * opts.c (default_options_optimization): Set
10734 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10735 * doc/invoke.texi (allow-load-data-races)
10736 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10737 (allow-store-data-races): Document the new default.
10738
10739 2014-06-26 Martin Jambor <mjambor@suse.cz>
10740
10741 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10742 renamed to ipa_impossible_devirt_target. Fix typo.
10743 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10744 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10745 ipa_impossible_devirt_target.
10746
10747 2014-06-26 Richard Biener <rguenther@suse.de>
10748
10749 PR tree-optimization/61607
10750 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10751 explaining why we restrict copies on loop depth.
10752 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10753 on loop depth.
10754 (record_equivalences_from_phis): Instead add it here.
10755
10756 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10757
10758 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10759 (LTO_WRAPPER_OBJS): New variable.
10760 (lto-wrapper$(exeext)): Use it.
10761 * collect2.c: Include "collect-utils.h".
10762 (verbose, debug): Remove variables.
10763 (at_file_supplied): No longer static.
10764 (tool_name): New variable.
10765 (do_wait, fork_execute, maybe_unlink): Don't declare.
10766 (tool_cleanup): No longer static.
10767 (notice): Remove function.
10768 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10769 fork_execute calls.
10770 (collect_wait, do_wait, collect_execute): Remove functions.
10771 (maybe_unlink): No longer static.
10772 * collect2.h (verbose, debug): Don't declare.
10773 (at_file_supplied): Declare.
10774 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10775 changed.
10776 (collect_execute): Replace with implementation from collect2, plus a
10777 new arg use_atfile. All callers changed.
10778 (collect_wait): Replace with implementation from collect2.
10779 (maybe_unlink_file): Remove function.
10780 (fork_execute): Replace with implementation from collect2, plus a
10781 new arg use_atfile. All callers changed.
10782 (do_wait): Add call to utils_cleanup to the error path.
10783 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10784 (tool_cleanup): Adjust declarations.
10785 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10786 * tlink.c: Include "collect-utils.h".
10787 (tlink_execute): New arg use_atfile. All callers changed.
10788 (tlink_init, tlink_execute): Remove declarations.
10789
10790 * collect-utils.c (save_temps): New variable.
10791 (do_wait): Use it instead of debug. Use fatal_error.
10792 * collect-utils.h (save_temps): Declare.
10793 * collect2.c (verbose): Rename from vflag. All uses changed.
10794 (tool_cleanup): New function, copied from collect_atexit.
10795 (collect_atexit, handler): Just call it.
10796 * collect2.h (verbose): Declaration renamed from vflag.
10797 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10798 debug.
10799
10800 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10801 (lto-wrapper$(exeext)): Link with collect-utils.o.
10802 * collect-utils.c: New file.
10803 * collect-utils.h: New file.
10804 * lto-wrapper.c: Include "collect-utils.h".
10805 (args_name): Delete variable.
10806 (tool_name): New variable.
10807 (tool_cleanup): New function.
10808 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10809 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10810 (fork_execute): Remove functions.
10811
10812 2014-06-26 Nick Clifton <nickc@redhat.com>
10813
10814 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10815
10816 * doc/extend.texi (Function Attributes): Fix typo in description
10817 of RX vector attribute.
10818
10819 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10820
10821 * config.gcc (supported_defaults): Error when passing either
10822 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10823
10824 2014-06-26 Richard Biener <rguenther@suse.de>
10825
10826 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10827 propagating volatile pointers.
10828
10829 2014-06-26 Richard Biener <rguenther@suse.de>
10830
10831 PR tree-optimization/61607
10832 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10833 loop if we redirected its latch edge.
10834 (thread_block_1): Do not cancel loops prematurely.
10835
10836 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10837
10838 * toplev.c (backend_init_target): Move init_emit_regs and
10839 init_regs to...
10840 (backend_init) ... here; skip ira_init_once and backend_init_target.
10841 (target_reinit) ... and here; clear
10842 this_target_rtl->lang_dependent_initialized.
10843 (lang_dependent_init_target): Clear
10844 this_target_rtl->lang_dependent_initialized;
10845 break out rtl initialization to ...
10846 (initialize_rtl): ... here; call also backend_init_target
10847 and ira_init_once.
10848 * toplev.h (initialize_rtl): New function.
10849 * function.c: Include toplev.h
10850 (init_function_start): Call initialize_rtl.
10851 * rtl.h (target_rtl): Add target_specific_initialized,
10852 lang_dependent_initialized.
10853
10854 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10855 Jakub Jelinek <jakub@redhat.com>
10856
10857 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10858
10859 2014-06-25 Tom de Vries <tom@codesourcery.com>
10860
10861 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10862
10863 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10864
10865 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10866 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10867 Issue a strict overflow warning if appropriate.
10868
10869 2014-06-25 Martin Liska <mliska@suse.cz>
10870
10871 IPA REF refactoring
10872 * Makefile.in: Removed header file (ipa-ref-inline.h).
10873 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10874 called.
10875 (cgraph_speculative_call_info): Likewise.
10876 (cgraph_for_node_thunks_and_aliases): Likewise.
10877 (cgraph_for_node_and_aliases): Likewise.
10878 (verify_cgraph_node): Likewise.
10879 * cgraph.h: Batch of IPA REF functions become member functions of
10880 symtab_node: add_reference, maybe_add_reference, clone_references,
10881 clone_referring, clone_reference, find_reference,
10882 remove_stmt_references, remove_all_references,
10883 remove_all_referring, dump_references, dump_referring,
10884 has_alias_p, iterate_reference, iterate_referring.
10885 * cgraphbuild.c (record_reference): New IPA REF function used.
10886 (record_type_list): Likewise.
10887 (record_eh_tables): Likewise.
10888 (mark_address): Likewise.
10889 (mark_load): Likewise.
10890 (mark_store): Likewise.
10891 (pass_build_cgraph_edges): Likewise.
10892 (rebuild_cgraph_edge): Likewise.
10893 (cgraph_rebuild_references): Likewise.
10894 (pass_remove_cgraph_callee_edges): Likewise.
10895 * cgraphclones.c (cgraph_clone_node): Likewise.
10896 (cgraph_create_virtual_clone): Likewise.
10897 (cgraph_materialize_clone): Likewise.
10898 (cgraph_materialize_all_clones): Likewise.
10899 * cgraphunit.c (cgraph_reset_node): Likewise.
10900 (cgraph_reset_node): Likewise.
10901 (analyze_function): Likewise.
10902 (assemble_thunks_and_aliases): Likewise.
10903 (expand_function): Likewise.
10904 * ipa-comdats.c (propagate_comdat_group): Likewise.
10905 (enqueue_references): Likewise.
10906 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10907 (create_specialized_node): Likewise.
10908 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10909 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10910 * ipa-inline.c (reset_edge_caches): Likewise.
10911 (update_caller_keys): Likewise.
10912 (execute): Likewise.
10913 * ipa-prop.c (remove_described_reference): Likewise.
10914 (propagate_controlled_uses): Likewise.
10915 (ipa_edge_duplication_hook): Likewise.
10916 (ipa_modify_call_arguments): Likewise.
10917 * ipa-pure-const.c (propagate_pure_const): Likewise.
10918 * ipa-ref-inline.h: Header file removed, functions moved
10919 to symtab_node class.
10920 * ipa-ref.c (remove_reference): New class member function.
10921 (cannot_lead_to_return): New class member function.
10922 (referring_ref_list): Likewise.
10923 (referred_ref_list): Likewise.
10924 Rest of functions moved to symtab_node class.
10925 * ipa-ref.h: New member functions remove_reference,
10926 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10927 to ipa_ref class.
10928 ipa_ref_list class has new member functions: first_reference,
10929 first_referring, clear, nreferences.
10930 * ipa-reference.c (analyze_function): New IPA REF function used.
10931 (write_node_summary_p): Likewise.
10932 (ipa_reference_write_optimization_summary): Likewise.
10933 * ipa-split.c (split_function): Likewise.
10934 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10935 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10936 (function_and_variable_visibility): Likewise.
10937 * ipa.c (has_addr_references_p): Likewise.
10938 (process_references): Argument type changed.
10939 (symtab_remove_unreachable_nodes): New IPA REF function used.
10940 (process_references): Likewise.
10941 (set_writeonly_bit): Likewise.
10942 * lto-cgraph.c: Implementation of new symtab_node member functions
10943 that uses new IPA REF functions.
10944 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10945 function used.
10946 * lto-streamer-out.c (output_symbol_p): Likewise.
10947 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10948 changed.
10949 * symtab.c: Implementation of new IPA REF API.
10950 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10951 (ipa_tm_create_version): Likewise.
10952 (ipa_tm_execute): Likewise.
10953 * tree-emutls.c (gen_emutls_addr): Likewise.
10954 * tree-inline.c (copy_bb): Likewise.
10955 (delete_unreachable_blocks_update_callgraph): Likewise.
10956 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10957 (varpool_for_node_and_aliases): Likewise.
10958
10959 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10960
10961 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10962
10963 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10964
10965 PR bootstrap/61598
10966 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10967 tree_node * instead of tree_node *.
10968 (fold): Adjust.
10969 (print_fold_checksum): Likewise.
10970 (fold_check_failed): Likewise.
10971 (debug_fold_checksum): Likewise.
10972 (fold_build1_stat_loc): Likewise.
10973 (fold_build2_stat_loc): Likewise.
10974 (fold_build3_stat_loc): Likewise.
10975 (fold_build_call_array_loc): Likewise.
10976
10977 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10978
10979 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10980 implementation with call to...
10981 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10982 function.
10983 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10984 Declare.
10985
10986 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10987
10988 PR tree-optimization/57742
10989 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10990 after replacing the statement.
10991
10992 2014-06-25 Nick Clifton <nickc@redhat.com>
10993
10994 * config/v850/v850.c (GHS_default_section_names): Change to const
10995 char * type.
10996 (GHS_current_section_names): Likewise.
10997 (v850_insert_attributes): Do not build strings, just assign the
10998 names directly. Change the type of 'chosen_section' to const
10999 char*.
11000 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11001 directly to the array entry.
11002 * config/v850/v850.h (GHS_default_section_names): Change to const
11003 char * type.
11004 (GHS_current_section_names): Likewise.
11005
11006 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11007
11008 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11009 (LANG_HOOKS_DECLS): Add it.
11010 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11011 has correct type.
11012 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11013 * langhooks.h (struct lang_hooks_for_decls): Add
11014 omp_clause_linear_ctor hook.
11015 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11016 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11017 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11018 combined simd loop use omp_clause_linear_ctor hook.
11019
11020 2014-06-24 Cong Hou <congh@google.com>
11021
11022 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11023 pattern recognition.
11024 (type_conversion_p): PROMOTION is true if it's a type promotion
11025 conversion, and false otherwise. Return true if the given expression
11026 is a type conversion one.
11027 * tree-vectorizer.h: Adjust the number of patterns.
11028 * tree.def: Add SAD_EXPR.
11029 * optabs.def: Add sad_optab.
11030 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11031 * expr.c (expand_expr_real_2): Likewise.
11032 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11033 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11034 * optabs.c (optab_for_tree_code): Likewise.
11035 * tree-cfg.c (estimate_operator_cost): Likewise.
11036 * tree-ssa-operands.c (get_expr_operands): Likewise.
11037 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11038 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11039 * doc/generic.texi: Add document for SAD_EXPR.
11040 * doc/md.texi: Add document for ssad and usad.
11041
11042 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11043
11044 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11045 qualification in cast.
11046
11047 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11048
11049 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11050 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11051 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11052 (tree_function_decl): ... here.
11053 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11054 streaming of vindex to ...
11055 (write_ts_function_decl_tree_pointers): ... here.
11056 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11057 Do not stream DECL_VINDEX.
11058 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11059
11060 2014-06-24 Catherine Moore <clm@codesourcery.com>
11061 Sandra Loosemore <sandra@codesourcery.com>
11062
11063 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11064 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11065 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11066
11067 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11068
11069 * doc/invoke.texi (Warning Options): Remove duplicated
11070 -Wmaybe-uninitialized.
11071
11072 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11073
11074 PR tree-optimization/57742
11075 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11076 (handle_builtin_malloc, handle_builtin_memset): New functions.
11077 (strlen_optimize_stmt): Call them.
11078 * passes.def: Move strlen after loop+dom but before vrp.
11079
11080 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11081
11082 PR target/61570
11083 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11084 model family 6 CPU with has_longmode never use a CPU without
11085 64-bit support.
11086
11087 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11088
11089 PR target/61570
11090 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11091 the last change.
11092
11093 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11094
11095 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11096 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11097 pointer_map.
11098 * hash-map.h: New file.
11099 * ipa-comdats.c: Use hash_map instead of pointer_map.
11100 * ipa.c: Likewise.
11101 * lto-section-out.c: Adjust.
11102 * lto-streamer.h: Replace pointer_map with hash_map.
11103 * symtab.c (verify_symtab): Likewise.
11104 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11105 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11106 * tree-streamer.h: Likewise.
11107 * tree-streamer.c: Adjust.
11108 * pointer-set.h: Remove pointer_map.
11109
11110 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11111
11112 * hash-table.h: Add a template arg to choose between storing values
11113 and storing pointers to values, and then provide partial
11114 specializations for both.
11115 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11116 should store, not the type values should point to.
11117 * tree-into-ssa.c (var_info_hasher): Likewise.
11118 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11119 * tree-complex.c: Adjust.
11120 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11121 table instead of int_tree_map *.
11122 * tree-parloops.c: Adjust.
11123 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11124 type is being stored.
11125 * tree-vectorizer.c: Adjust.
11126
11127 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11128
11129 * hash-table.h: Remove a layer of indirection from hash_table so that
11130 it contains the hash table's data instead of a pointer to the data.
11131 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11132 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11133 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11134 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11135 fold-const.c, gcse.c, ggc-common.c,
11136 gimple-ssa-strength-reduction.c, gimplify.c,
11137 graphite-clast-to-gimple.c, graphite-dependences.c,
11138 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11139 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11140 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11141 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11142 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11143 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11144 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11145 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11146 tree-ssa-live.c, tree-ssa-loop-im.c,
11147 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11148 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11149 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11150 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11151 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11152 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11153 vtable-verify.c, vtable-verify.h: Adjust.
11154
11155 2014-06-24 Richard Biener <rguenther@suse.de>
11156
11157 PR tree-optimization/61572
11158 * tree-ssa-sink.c (statement_sink_location): Do not sink
11159 loads from hard registers.
11160
11161 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11162
11163 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11164 not mentioned in clauses use private clause if the iterator is
11165 declared in #pragma omp for simd, and when adding lastprivate
11166 instead, add it to the outer #pragma omp for too. Diagnose
11167 if the variable is private in outer context. For simd collapse > 1
11168 loops, replace all iterators with temporaries.
11169 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11170 same even in collapse > 1 loops.
11171
11172 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11173 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11174 non-NULL.
11175 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11176 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11177 non-NULL.
11178 (gimplify_adjust_omp_clauses): Likewise.
11179 * omp-low.c (lower_rec_simd_input_clauses,
11180 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11181 safelen the same as safelen(1).
11182 * tree-nested.c (convert_nonlocal_omp_clauses,
11183 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11184 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11185 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11186 Fixup handling of GIMPLE_OMP_TARGET.
11187 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11188 GIMPLE_OMP_TARGET.
11189
11190 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11191
11192 PR tree-optimization/61554
11193 * tree-ssa-propagate.c: Include "bitmap.h".
11194 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11195 properly update constructor/destructor.
11196 (substitute_and_fold_dom_walker::before_dom_children):
11197 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11198 need_eh_cleaup instead.
11199 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11200 need_eh_cleanup.
11201
11202 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11203
11204 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11205 * tree-pass.h (make_pass_ipa_single_use): New pass.
11206 * cgraph.h (used_by_single_function): New flag.
11207 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11208 Stream it.
11209 * passes.def (pass_ipa_single_use): Scedule.
11210 * ipa.c (BOTTOM): New macro.
11211 (meet): New function
11212 (propagate_single_user): New function.
11213 (ipa_single_use): New function.
11214 (pass_data_ipa_single_use): New pass.
11215 (pass_ipa_single_use): New pass.
11216 (pass_ipa_single_use::gate): New gate.
11217 (make_pass_ipa_single_use): New function.
11218
11219 2014-06-23 Kai Tietz <ktietz@redhat.com>
11220
11221 PR target/39284
11222 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11223 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11224
11225 2014-06-23 Richard Biener <rguenther@suse.de>
11226
11227 * tree-ssa-loop.c (gate_loop): New function.
11228 (pass_tree_loop::gate): Call it.
11229 (pass_data_tree_no_loop, pass_tree_no_loop,
11230 make_pass_tree_no_loop): New.
11231 * tree-vectorizer.c: Include tree-scalar-evolution.c
11232 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11233 required.
11234 (pass_slp_vectorize::clone): New method.
11235 * timevar.def (TV_TREE_NOLOOP): New.
11236 * tree-pass.h (make_pass_tree_no_loop): Declare.
11237 * passes.def (pass_tree_no_loop): New pass group with
11238 SLP vectorizer.
11239
11240 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11241
11242 PR target/61570
11243 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11244 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11245
11246 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11247
11248 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11249 "yes" where needed.
11250
11251 2014-06-23 Alan Modra <amodra@gmail.com>
11252
11253 PR bootstrap/61583
11254 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11255 to zero on debug statements.
11256
11257 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11258
11259 PR target/60825
11260 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11261 Ignore third operand if present by marking qualifier_internal.
11262
11263 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11264
11265 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11266 vector extension.
11267 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11268 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11269 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11270 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11271 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11272 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11273 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11274 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11275 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11276 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11277 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11278 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11279 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11280 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11281 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11282 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11283 logic in GCC vector extensions
11284
11285 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11286 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11287 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11288 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11289 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11290 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11291 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11292 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11293 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11294 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11295
11296 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11297
11298 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11299 extensions.
11300
11301 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11302 (vget_low_s64): Use __GET_LOW macro.
11303 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11304 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11305 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11306 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11307 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11308
11309 (vcombine_s64): Use GCC vector extensions; remove cast.
11310 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11311 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11312 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11313 Fix type signature; remove cast.
11314
11315 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11316
11317 PR target/60825
11318 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11319 V1DFmode.
11320 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11321 add V1DFmode
11322 (BUILTIN_VD1): New.
11323 (BUILTIN_VD_RE): Remove.
11324 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11325 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11326 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11327 variant but not df.
11328 (vreinterpretv1df*, vreinterpret*v1df): New.
11329 (vreinterpretdf*, vreinterpret*df): Remove.
11330 * config/aarch64/aarch64-simd.md (aarch64_create,
11331 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11332 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11333 (VD1): New.
11334 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11335 (vcreate_f64): Remove cast, use v1df builtin.
11336 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11337 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11338 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11339 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11340 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11341 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11342 add range check using __builtin_aarch64_im_lane_boundsi.
11343 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11344 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11345 type signature, use gcc vector extensions.
11346 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11347 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11348 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11349 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11350 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11351 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11352 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11353 vreinterpret_u64_f64): Use v1df builtin not df.
11354
11355 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11356
11357 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11358 vector registers.
11359
11360 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11361
11362 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11363 priority directly.
11364
11365 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11366
11367 * loop-invariant.c (pre_check_invariant_p): New function.
11368 (find_invariant_insn): Call pre_check_invariant_p.
11369
11370 2014-06-22 Richard Henderson <rth@redhat.com>
11371
11372 PR target/61565
11373 * compare-elim.c (struct comparison): Add eh_note.
11374 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11375 a redundant comparison in a different EH region. Purge EH edges if
11376 necessary.
11377
11378 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11379
11380 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11381 (var_shift): Use it.
11382 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11383 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11384 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11385 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11386 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11387 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11388 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11389 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11390 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11391 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11392 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11393 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11394 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11395 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11396 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11397 *rotldi3_internal15be): Use the new attribute. Merge register and
11398 integer alternatives.
11399
11400 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11401
11402 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11403 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11404 split, *ashrdi3_internal3 and split): Delete, merge into...
11405 (ashr<mode>3): New expander.
11406 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11407 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11408
11409 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11410
11411 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11412 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11413 *rotldi3_internal3 and split): Delete, merge into...
11414 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11415 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11416 Use "rotlw" extended mnemonic.
11417
11418 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11419
11420 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11421 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11422 and split, *ashldi3_internal3 and split): Delete, merge into...
11423 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11424 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11425
11426 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11427
11428 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11429 (lshrsi3, two anonymous define_insns and define_splits,
11430 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11431 *lshrdi3_internal3 and split): Delete, merge into...
11432 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11433 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11434
11435 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11436
11437 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11438 Remove "O" alternative.
11439
11440 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11441
11442 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11443 (mips_move_from_gpr_cost): Likewise.
11444 (mips_register_move_cost): Update accordingly.
11445 (mips_secondary_reload_class): Remove name of in_p.
11446
11447 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11448
11449 PR target/61503
11450 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11451 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11452
11453 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11454
11455 * config/nios2/nios2.c: Include "builtins.h".
11456
11457 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11458
11459 * cgraph.h (tls_model_names): New variable.
11460 * print-tree.c (print_node): Simplify.
11461 * varpool.c (tls_model_names): New variable.
11462 (dump_varpool_node): Output tls model.
11463
11464 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11465
11466 * ipa-visibility.c (function_and_variable_visibility): Disable
11467 temporarily local aliases for some targets.
11468
11469 2014-06-20 Marek Polacek <polacek@redhat.com>
11470
11471 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11472 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11473 into SANITIZE_UNDEFINED.
11474 * doc/invoke.texi: Describe -fsanitize=bounds.
11475 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11476 functions created in the FEs.
11477 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11478 (expand_UBSAN_BOUNDS): New function.
11479 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11480 * internal-fn.h: Don't define internal functions here.
11481 * opts.c (common_handle_option): Add -fsanitize=bounds.
11482 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11483 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11484 * tree-core.h: Define internal functions here.
11485 (struct tree_base): Add ifn field.
11486 * tree-pretty-print.c: Include "internal-fn.h".
11487 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11488 * tree.c (get_callee_fndecl): Likewise.
11489 (build_call_expr_internal_loc): New function.
11490 * tree.def (CALL_EXPR): Update description.
11491 * tree.h (CALL_EXPR_IFN): Define.
11492 (build_call_expr_internal_loc): Declare.
11493 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11494 types.
11495 (ubsan_type_descriptor): Change bool parameter to enum
11496 ubsan_print_style. Adjust the code. Add handling of
11497 UBSAN_PRINT_ARRAY.
11498 (ubsan_expand_bounds_ifn): New function.
11499 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11500 (ubsan_build_overflow_builtin): Likewise.
11501 (instrument_bool_enum_load): Likewise.
11502 (ubsan_instrument_float_cast): Likewise.
11503 * ubsan.h (enum ubsan_print_style): New enum.
11504 (ubsan_expand_bounds_ifn): Declare.
11505 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11506
11507 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11508
11509 * config/rs6000/rs6000.md: Append `DONE' to preparation
11510 statements of `bswap' pattern splitters.
11511
11512 2014-06-20 Tom de Vries <tom@codesourcery.com>
11513
11514 * target.def (call_fusage_contains_non_callee_clobbers): Update
11515 definition.
11516 * doc/tm.texi: Regenerate.
11517
11518 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11519 Max Ostapenko <m.ostapenko@partner.samsung.com>
11520
11521 PR sanitizer/61547
11522 * asan.c (instrument_strlen_call): Fixed instrumentation of
11523 trailing byte.
11524
11525 2014-06-20 Martin Jambor <mjambor@suse.cz>
11526
11527 PR ipa/61540
11528 * ipa-prop.c (impossible_devirt_target): New function.
11529 (try_make_edge_direct_virtual_call): Use it, also instead of
11530 asserting.
11531
11532 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11533 Max Ostapenko <m.ostapenko@partner.samsung.com>
11534
11535 PR sanitizer/61530
11536 * asan.c (build_check_stmt): Add condition.
11537
11538 2014-06-20 Martin Jambor <mjambor@suse.cz>
11539
11540 PR ipa/61211
11541 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11542 expanded clones.
11543
11544 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11545
11546 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11547 Update comments.
11548 (VCONQ): Make comment more helpful.
11549 (VCON): Delete.
11550 * config/aarch64/aarch64-simd.md
11551 (aarch64_sqdmulh_lane<mode>):
11552 Use VCOND for operands 2. Update lane checking and flipping logic.
11553 (aarch64_sqrdmulh_lane<mode>): Likewise.
11554 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11555 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11556 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11557 attribute of operand 3 to VCOND.
11558 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11559 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11560 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11561 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11562 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11563 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11564 define_insn.
11565 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11566 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11567 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11568 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11569 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11570 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11571 operand to VCOND. Update lane flipping and bounds checking logic.
11572 (aarch64_sqdmlal2_lane<mode>): Likewise.
11573 (aarch64_sqdmlsl_lane<mode>): Likewise.
11574 (aarch64_sqdmull_lane<mode>): Likewise.
11575 (aarch64_sqdmull2_lane<mode>): Likewise.
11576 (aarch64_sqdmlal_laneq<mode>):
11577 Replace VCON usage with VCONQ.
11578 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11579 (aarch64_sqdmlal2_laneq<mode>): Emit
11580 aarch64_sqdmlal2_laneq<mode>_internal insn.
11581 Replace VCON with VCONQ.
11582 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11583 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11584 (aarch64_sqdmull_laneq<mode>): Emit
11585 aarch64_sqdmull_laneq<mode>_internal insn.
11586 Replace VCON with VCONQ.
11587 (aarch64_sqdmull2_laneq<mode>): Emit
11588 aarch64_sqdmull2_laneq<mode>_internal insn.
11589 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11590 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11591 of 3rd argument to int16x4_t.
11592 (vqdmlalh_lane_s16): Likewise.
11593 (vqdmlslh_lane_s16): Likewise.
11594 (vqdmull_high_lane_s16): Likewise.
11595 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11596 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11597 (vqdmlsl_lane_s16): Likewise.
11598 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11599 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11600 (vqdmlals_lane_s32): Likewise.
11601 (vqdmlsls_lane_s32): Likewise.
11602 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11603 (vqdmulls_lane_s32): Likewise.
11604 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11605 (vqdmlsl_lane_s32): Likewise.
11606 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11607 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11608 (vqrdmulhh_lane_s16): Likewise.
11609 (vqdmlsl_high_lane_s16): Likewise.
11610 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11611 (vqdmlsl_high_lane_s32): Likewise.
11612 (vqrdmulhs_lane_s32): Likewise.
11613
11614 2014-06-20 Tom de Vries <tom@codesourcery.com>
11615
11616 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11617 get_call_reg_set_usage.
11618
11619 2014-06-20 Tom de Vries <tom@codesourcery.com>
11620
11621 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11622 it contains all call_used_regs.
11623
11624 2014-06-20 Tom de Vries <tom@codesourcery.com>
11625
11626 * final.c (collect_fn_hard_reg_usage): Add and use variable
11627 function_used_regs.
11628
11629 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11630
11631 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11632 (set_init_priority, get_init_priority, set_fini_priority,
11633 get_fini_priority): New methods.
11634 * tree.c (init_priority_for_decl): Remove.
11635 (init_ttree): Do not initialize init priority.
11636 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11637 (decl_priority_info): Remove.
11638 (decl_init_priority_insert): Rewrite.
11639 (decl_fini_priority_insert): Rewrite.
11640 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11641 tree_priority_map_marked_p): Remove.
11642 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11643 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11644 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11645 not output priorities.
11646 (pack_ts_function_decl_value_fields): Likewise.
11647 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11648 not input priorities.
11649 (unpack_ts_function_decl_value_fields): Likewise.
11650 * symtab.c (symbol_priority_map): Declare.
11651 (init_priority_hash): Declare.
11652 (symtab_unregister_node): Unregister from priority hash, too.
11653 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11654 New methods.
11655 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11656 (symbol_priority_info): New function.
11657 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11658 New methods.
11659 * tree-core.h (tree_priority_map): Remove.
11660
11661 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11662
11663 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11664 0xff to uint64_t before shifting it up.
11665
11666 2014-06-20 Julian Brown <julian@codesourcery.com>
11667 Chung-Lin Tang <cltang@codesourcery.com>
11668
11669 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11670 TARGET_THUMB1_ONLY. Add comments.
11671
11672 2014-06-19 Tom de Vries <tom@codesourcery.com>
11673
11674 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11675 return type to void.
11676 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11677
11678 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11679
11680 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11681 as "move", from depends_on.
11682
11683 2014-06-19 Terry Guo <terry.guo@arm.com>
11684
11685 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11686 stage.
11687
11688 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11689
11690 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11691 Remove cr5.
11692 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11693
11694 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11695
11696 PR target/61550
11697 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11698 addresses here if reload in progress or completed.
11699
11700 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11701
11702 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11703 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11704 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11705 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11706 (mips_register_priority): New function that implements the target
11707 hook TARGET_REGISTER_PRIORITY.
11708 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11709 (mips_lra_p): Likewise for TARGET_LRA_P.
11710 (TARGET_REGISTER_PRIORITY): Define macro.
11711 (TARGET_SPILL_CLASS): Likewise.
11712 (TARGET_LRA_P): Likewise.
11713 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11714 classes.
11715 (REG_CLASS_NAMES): Likewise.
11716 (REG_CLASS_CONTENTS): Likewise.
11717 (BASE_REG_CLASS): Use M16_SP_REGS.
11718 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11719 New set attribute to enable alternatives depending on the register
11720 allocator used.
11721 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11722 (*lea64): Disable pattern for MIPS16.
11723 * config/mips/mips.opt (mlra): New option.
11724
11725 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11726
11727 * lra-constraints.c (base_to_reg): New function.
11728 (process_address): Use new function.
11729
11730 2014-06-18 Tom de Vries <tom@codesourcery.com>
11731
11732 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11733 * config/aarch64/aarch64.c
11734 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11735 (aarch64_emit_call_insn): New function.
11736 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11737 of emit_call_insn.
11738 * config/aarch64/aarch64.md (define_expand "call_internal")
11739 (define_expand "call_value_internal", define_expand "sibcall_internal")
11740 (define_expand "sibcall_value_internal"): New.
11741 (define_expand "call", define_expand "call_value")
11742 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11743 expand variant and aarch64_emit_call_insn.
11744
11745 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11746 Tom de Vries <tom@codesourcery.com>
11747
11748 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11749 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11750 Redefine to true.
11751 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11752 clobbers to CALL_INSN_FUNCTION_USAGE.
11753 (define_expand "sibcall_internal")
11754 (define_expand "sibcall_value_internal"): New.
11755 (define_expand "call", define_expand "call_value"): Add argument to
11756 arm_emit_call_insn.
11757 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11758 (define_expand "sibcall_value"): Use sibcall_value_internal and
11759 arm_emit_call_insn.
11760
11761 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11762
11763 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11764
11765 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11766
11767 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11768 __udivmoddi4.
11769
11770 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11771
11772 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11773 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11774 annotations. Fix DWARF information.
11775
11776 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11777
11778 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11779 __udivmoddi4, and fixups for negative operands.
11780
11781 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11782
11783 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11784
11785 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11786
11787 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11788 to __udivmoddi4.
11789
11790 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11791
11792 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11793 manipulation.
11794
11795 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11796
11797 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11798 describing register usage on function entry and exit.
11799
11800 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11801
11802 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11803 (__aeabi_ldivmod): Fix whitespace.
11804
11805 2014-06-18 Andreas Schwab <schwab@suse.de>
11806
11807 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11808 Remove blank line after @item.
11809
11810 2014-06-18 Richard Henderson <rth@redhat.com>
11811
11812 PR target/61545
11813 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11814
11815 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11816
11817 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11818 POST_MODIFY for neon loads and stores.
11819 (arm_print_operand): Output post-index register for neon loads and
11820 stores.
11821
11822 2014-06-18 Richard Biener <rguenther@suse.de>
11823
11824 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11825
11826 2014-06-18 Richard Biener <rguenther@suse.de>
11827
11828 * tree-pass.h (make_pass_dce_loop): Remove.
11829 * passes.def: Replace pass_dce_loop with pass_dce.
11830 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11831 changed free niter estimates and reset the scev cache.
11832 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11833 make_pass_dce_loop): Remove.
11834 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11835 (fini_copy_prop): Return whether something changed. Always
11836 let substitute_and_fold perform DCE and free niter estimates
11837 and reset the scev cache if so.
11838 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11839 (pass_data_copy_prop): Do not unconditionally schedule
11840 cleanup-cfg or update-ssa.
11841
11842 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11843
11844 PR tree-optimization/61518
11845 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11846 reduction var is used in reduction stmt or phi-function only.
11847
11848 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11849
11850 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11851
11852 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11853
11854 PR tree-optimization/61517
11855 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11856 whose rhs's first tree is the source expression instead of the
11857 expression itself.
11858 (find_bswap_or_nop): Likewise.
11859 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11860 gimple stmt whose rhs's first tree is the source. In the memory source
11861 case, move the stmt to be replaced close to one of the original load to
11862 avoid the problem of a store between the load and the stmt's original
11863 location.
11864 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11865 signature.
11866
11867 2014-06-18 Andreas Schwab <schwab@suse.de>
11868
11869 PR rtl-optimization/54555
11870 * postreload.c (move2add_use_add2_insn): Substitute
11871 STRICT_LOW_PART only if it is cheaper.
11872
11873 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11874
11875 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11876 Do not use unspec as call operand. Use memory_operand instead of
11877 memory_nox32_operand and add "m" operand constraint. Disable
11878 pattern for TARGET_X32.
11879 (*sibcall_pop_memory): Ditto.
11880 (*sibcall_value_memory): Ditto.
11881 (*sibcall_value_pop_memory): Ditto.
11882 (sibcall peepholes): Merge SImode and DImode patterns using
11883 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11884 Disable pattern for TARGET_X32. Check if eliminated register is
11885 really dead after call insn. Generate call RTX without unspec operand.
11886 (sibcall_value peepholes): Ditto.
11887 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11888 instead of memory_nox32_operand. Check if eliminated register is
11889 really dead after call insn. Generate call RTX without unspec operand.
11890 (sibcall_value_pop peepholes): Ditto.
11891 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11892
11893 2014-06-18 Terry Guo <terry.guo@arm.com>
11894
11895 PR target/61544
11896 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11897 reach the head.
11898
11899 2014-06-18 Olivier Hainque <hainque@adacore.com>
11900
11901 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11902 memorization of the end of block source location.
11903 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11904 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11905 end source location info we have on the block entry/exit code we
11906 generate.
11907
11908 2014-06-18 Richard Biener <rguenther@suse.de>
11909
11910 * common.opt (fssa-phiopt): New option.
11911 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11912 but not with -Og.
11913 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11914 * doc/invoke.texi (-fssa-phiopt): Document.
11915
11916 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11917
11918 * genattrtab.c (n_bypassed): New variable.
11919 (process_bypasses): Initialise n_bypassed.
11920 Count number of bypassed reservations.
11921 (make_automaton_attrs): Allocate space for bypassed reservations
11922 rather than number of bypasses.
11923
11924 2014-06-18 Richard Biener <rguenther@suse.de>
11925
11926 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11927 we propagated anything.
11928 (substitute_and_fold_dom_walker::before_dom_children): Something
11929 changed if we propagated into PHI arguments.
11930 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11931 we removed a stmt.
11932
11933 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11934
11935 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11936 vector case.
11937 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11938 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11939 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11940 Introduces alternative way of loads group permutaions.
11941 (vect_transform_grouped_load): Try alternative way of permutations.
11942
11943 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11944
11945 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11946 changed in ORT_TARGET region, don't jump to do_outer.
11947 (struct gimplify_adjust_omp_clauses_data): New type.
11948 (gimplify_adjust_omp_clauses_1): Adjust for data being
11949 a struct gimplify_adjust_omp_clauses_data pointer instead
11950 of tree *. Pass pre_p as a new argument to
11951 lang_hooks.decls.omp_finish_clause hook.
11952 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11953 splay_tree_foreach to pass both list_p and pre_p.
11954 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11955 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11956 gimplify_adjust_omp_clauses callers.
11957 * langhooks.c (lhd_omp_finish_clause): New function.
11958 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11959 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11960 * langhooks.h (struct lang_hooks_for_decls): Add a new
11961 gimple_seq * argument to omp_finish_clause hook.
11962 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11963 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11964 (scan_omp_parallel, lower_omp_for): When adding
11965 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11966 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11967 * tree-nested.c (convert_nonlocal_omp_clauses,
11968 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11969 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11970
11971 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11972
11973 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11974 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11975
11976 2014-06-17 Xinliang David Li <davidxl@google.com>
11977
11978 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11979 * passes.c (pass_init_dump_file): Do not set initialize
11980 flag to false unconditionally.
11981
11982 2014-06-17 Richard Biener <rguenther@suse.de>
11983
11984 * genopinit.c (main): Use vec<>::qsort method.
11985 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11986 Likewise.
11987 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11988
11989 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11990
11991 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11992 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11993 (mips_move_to_gpr_cost): Remove ST_REGS case.
11994 (mips_move_from_gpr_cost): Likewise.
11995 (mips_register_move_cost): Likewise.
11996 (mips_secondary_reload_class): Likewise.
11997
11998 2014-06-17 Richard Biener <rguenther@suse.de>
11999
12000 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12001 (pass_all_optimizations): Move 3rd copy-prop pass from after
12002 fre to before ifcombine/phiopt.
12003
12004 2014-06-17 Richard Biener <rguenther@suse.de>
12005
12006 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12007 and allow all blocks to be forwarders.
12008
12009 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12010
12011 PR target/61483
12012 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12013 variable 'size'; calculate 'size' right in the front; use
12014 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12015 pcum->aapcs_stack_words.
12016
12017 2014-06-17 Nick Clifton <nickc@redhat.com>
12018
12019 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12020 (umulhi3, mulsidi3, umulsidi3): Likewise.
12021
12022 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12023
12024 PR middle-end/61508
12025 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12026 check for section name.
12027
12028 2014-06-17 Richard Biener <rguenther@suse.de>
12029
12030 * tree-ssa-propagate.c: Include domwalk.h.
12031 (substitute_and_fold): Outline main worker into a domwalker ...
12032 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12033 Schedule stmts we can fully propagate for removal. Remove
12034 poor-mans DCE.
12035 (substitute_and_fold): Apply a dominator walk to perform
12036 substitution. Process stmts scheduled for removal here.
12037
12038 2014-06-17 Richard Biener <rguenther@suse.de>
12039
12040 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12041 of PHI node moving.
12042
12043 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12044
12045 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12046 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12047 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12048 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12049 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12050 TARGET_HARD_FLOAT.
12051 (get_fpscr) : Likewise.
12052
12053 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12054
12055 PR rtl-optimization/61325
12056 * lra-constraints.c (valid_address_p): Add forward declaration.
12057 (simplify_operand_subreg): Check address validity before and after
12058 alter_reg of memory subreg.
12059
12060 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12061
12062 * config/i386/i386.c (decide_alg): Correctly handle
12063 maximum size of stringop algorithm.
12064
12065 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12066
12067 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12068
12069 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12070
12071 PR rtl-optimization/61522
12072 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12073
12074 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12075
12076 Revert:
12077 * symtab.c (symtab_node::reset_section): New method.
12078 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12079 for localization.
12080 * cgraph.h (reset_section): Declare.
12081 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12082 do not consider comdat locals.
12083 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12084 for new symbol.
12085 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12086 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12087 reset sections of symbols dragged out of the comdats.
12088 (function_and_variable_visibility): Reset sections of
12089 localized symbols.
12090
12091 2014-06-16 Richard Biener <rguenther@suse.de>
12092
12093 PR tree-optimization/61482
12094 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12095 [-INF(OVF), +INF(OVF)] range.
12096
12097 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12098
12099 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12100 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12101 handling 32-bit multiplication.
12102
12103 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12104
12105 PR middle-end/61430
12106 * lra-lives.c (process_bb_lives): Skip creating copy during
12107 insn scan when src/dest has constrained to same regno.
12108
12109 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12110
12111 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12112 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12113
12114 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12115
12116 * asan.c (check_func): New function.
12117 (maybe_create_ssa_name): Likewise.
12118 (build_check_stmt_with_calls): Likewise.
12119 (use_calls_p): Likewise.
12120 (report_error_func): Change interface.
12121 (build_check_stmt): Allow non-integer lengths; add support
12122 for new parameter.
12123 (asan_instrument): Likewise.
12124 (instrument_mem_region_access): Moved code to build_check_stmt.
12125 (instrument_derefs): Likewise.
12126 (instrument_strlen_call): Likewise.
12127 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12128 * doc/invoke.texi: Describe new parameter.
12129 * params.def: Define new parameter.
12130 * params.h: Likewise.
12131 * sanitizer.def: Describe new builtins.
12132
12133 2014-06-16 Richard Biener <rguenther@suse.de>
12134
12135 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12136 Make all defs available at the end.
12137 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12138
12139 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12140
12141 PR plugins/45078
12142 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12143
12144 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12145
12146 PR bootstrap/61516
12147 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12148 initialization. Replace remaining use of uid.
12149
12150 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12151
12152 * c-family/c-common.c (handle_tls_model_attribute): Use
12153 set_decl_tls_model.
12154 * c-family/c-common.c (handle_tls_model_attribute): Use
12155 set_decl_tls_model.
12156 * cgraph.h (struct varpool_node): Add tls_model.
12157 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12158 * tree.h (DECL_TLS_MODEL): Update.
12159 (DECL_THREAD_LOCAL_P): Check that variable is static.
12160 (decl_tls_model): Declare.
12161 (set_decl_tls_model): Declare.
12162 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12163 set symbol prorperties.
12164 (get_emutls_init_templ_addr): Cleanup.
12165 (new_emutls_decl): Update.
12166 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12167 (lto_input_varpool_node): Likewise.
12168 * lto-streamer-out.c (hash_tree): Likewise.
12169 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12170 not stream DECL_TLS_MODEL.
12171 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12172 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12173
12174 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12175
12176 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12177
12178 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12179
12180 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12181 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12182 lists.
12183 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12184 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12185 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12186 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12187 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12188 (df_get_artificial_defs, df_get_artificial_uses)
12189 (df_single_def, df_single_use): Update accordingly.
12190 (df_refs_chain_dump): Take the first element in a linked list as
12191 parameter, rather than a pointer to an array of pointers.
12192 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12193 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12194 (df_chain_create_bb_process_use): Likewise.
12195 (df_md_bb_local_compute_process_def): Likewise.
12196 * fwprop.c (process_defs, process_uses): Likewise.
12197 (register_active_defs, update_uses): Likewise.
12198 (forward_propagate_asm): Update for new df_ref linking.
12199 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12200 (df_null_ref_rec, df_null_mw_rec): Likewise.
12201 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12202 explicitly.
12203 (df_scan_free_bb_info): Remove check for null artificial_defs.
12204 (df_install_ref_incremental): Adjust for new df_ref linking.
12205 Use a single-element insertion rather than a full sort.
12206 (df_ref_chain_delete_du_chain): Take the first element
12207 in a linked list as parameter, rather than a pointer to an array of
12208 pointers.
12209 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12210 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12211 (df_insn_info_delete): Remove check for null defs and call to
12212 df_scan_free_mws_vec.
12213 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12214 null rather than df_null_*_rec.
12215 (df_insn_rescan_debug_internal): Likewise, and update null
12216 checks in the same way. Remove check for null defs.
12217 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12218 Move a single element rather doing a full sort.
12219 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12220 linking.
12221 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12222 Initialize df_ref and df_mw_hardreg lists to null rather than
12223 df_null_*_rec.
12224 (df_ref_compare): Take df_refs as parameter, transferring the
12225 old interface to...
12226 (df_ref_ptr_compare): ...this new function.
12227 (df_sort_and_compress_refs): Update accordingly.
12228 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12229 old interface to...
12230 (df_mw_ptr_compare): ...this new function.
12231 (df_sort_and_compress_mws): Update accordingly.
12232 (df_install_refs, df_install_mws): Return a linked list rather than
12233 an array of pointers.
12234 (df_refs_add_to_chains): Assert that old lists are empty rather
12235 than freeing them.
12236 (df_insn_refs_verify): Don't handle null defs speciailly.
12237 * web.c (union_match_dups): Update for new df_ref linking.
12238
12239 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12240
12241 * df.h (df_ref_create, df_ref_remove): Delete.
12242 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12243 (df_ref_remove): Likewise.
12244
12245 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12246
12247 * df.h (df_single_def, df_single_use): New functions.
12248 * ira.c (find_moveable_pseudos): Use them.
12249
12250 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12251
12252 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12253 * df-problems.c (df_note_bb_compute): Use it.
12254 * regstat.c (regstat_bb_compute_ri): Likewise.
12255
12256 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12257
12258 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12259 * cse.c (cse_extended_basic_block): Use them.
12260 * dce.c (mark_artificial_use): Likewise.
12261 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12262 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12263 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12264 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12265 (df_simulate_initialize_backwards): Likewise.
12266 (df_simulate_finalize_backwards): Likewise.
12267 (df_simulate_initialize_forwards): Likewise.
12268 (df_md_simulate_artificial_defs_at_top): Likewise.
12269 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12270 * regrename.c (init_rename_info): Likewise.
12271 * regstat.c (regstat_bb_compute_ri): Likewise.
12272 (regstat_bb_compute_calls_crossed): Likewise.
12273
12274 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12275
12276 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12277 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12278 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12279 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12280 * combine.c (create_log_links): Likewise.
12281 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12282 (try_eliminate_compare): Likewise.
12283 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12284 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12285 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12286 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12287 (word_dce_process_block, dce_process_block): Likewise.
12288 * ddg.c (def_has_ccmode_p): Likewise.
12289 * df-core.c (df_bb_regno_first_def_find): Likewise.
12290 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12291 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12292 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12293 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12294 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12295 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12296 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12297 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12298 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12299 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12300 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12301 * fwprop.c (local_ref_killed_between_p): Likewise.
12302 (all_uses_available_at, free_load_extend): Likewise.
12303 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12304 * hw-doloop.c (scan_loop): Likewise.
12305 * ifcvt.c (dead_or_predicable): Likewise.
12306 * init-regs.c (initialize_uninitialized_regs): Likewise.
12307 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12308 (process_bb_node_lives): Likewise.
12309 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12310 (find_moveable_pseudos): Likewise.
12311 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12312 * recog.c (peep2_find_free_register): Likewise.
12313 * ree.c (get_defs): Likewise.
12314 * regstat.c (regstat_bb_compute_ri): Likewise.
12315 (regstat_bb_compute_calls_crossed): Likewise.
12316 * sched-deps.c (find_inc, find_mem): Likewise.
12317 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12318 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12319 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12320 (prepare_shrink_wrap): Likewise.
12321 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12322 * web.c (union_defs, pass_web::execute): Likewise.
12323 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12324 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12325
12326 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12327
12328 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12329 to inheritance pseudos.
12330 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12331
12332 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12333
12334 PR target/61415
12335 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12336 (BU_MISC_2): Rename to ...
12337 (BU_LDBL128_2): ... this.
12338 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12339 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12340 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12341 RS6000_BTM_LDBL128.
12342 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12343 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12344 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12345 (unpacktf_1): Likewise.
12346 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12347 (__builtin_longdouble_dw1): Likewise.
12348 * doc/sourcebuild.texi (longdouble128): Document.
12349
12350 2014-06-13 Jeff Law <law@redhat.com>
12351
12352 PR rtl-optimization/61094
12353 PR rtl-optimization/61446
12354 * ree.c (combine_reaching_defs): Get the mode for the copy from
12355 the extension insn rather than the defining insn.
12356
12357 2014-06-13 Dehao Chen <dehao@google.com>
12358
12359 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12360
12361 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12362
12363 * doc/install.texi (--enable-linker-plugin-configure-flags)
12364 (--enable-linker-plugin-flags): Document new flags.
12365
12366 2014-06-13 Martin Jambor <mjambor@suse.cz>
12367
12368 PR ipa/61186
12369 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12370 cache_token if returning early.
12371
12372 2014-06-13 Nick Clifton <nickc@redhat.com>
12373
12374 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12375 requested alignment is active.
12376 (LABEL_ALIGN): Likewise.
12377 (LOOP_ALIGN): Likewise.
12378
12379 2014-06-13 Richard Biener <rguenther@suse.de>
12380
12381 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12382 Rewrite to propagate the VN result into all uses where
12383 possible and to remove stmts becoming dead because of that.
12384 (eliminate): Generalize stmt removal handling, remove in
12385 reverse dominator order to support proper debug stmt
12386 generation. Update stmts before removing stmts.
12387 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12388
12389 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12390
12391 PR tree-optimization/61375
12392 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12393 symbolic number cannot be represented in an uint64_t.
12394 (find_bswap_or_nop_1): Likewise.
12395
12396 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12397
12398 * symtab.c (symtab_node::reset_section): New method.
12399 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12400 for localization.
12401 * cgraph.h (reset_section): Declare.
12402 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12403 do not consider comdat locals.
12404 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12405 for new symbol.
12406 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12407 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12408 reset sections of symbols dragged out of the comdats.
12409 (function_and_variable_visibility): Reset sections of
12410 localized symbols.
12411
12412 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12413
12414 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12415 to use symtab and decl_binds_to_current_def_p
12416 * tree-vectorizer.c (increase_alignment): Increase alignment
12417 of alias target, too.
12418
12419 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12420
12421 PR middle-end/61486
12422 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12423 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12424 if outer combined construct is distribute.
12425 (gimplify_omp_for): For OMP_DISTRIBUTE set
12426 gimplify_omp_ctxp->distribute.
12427 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12428 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12429 mapping into decl map.
12430
12431 2014-06-12 Jason Merrill <jason@redhat.com>
12432
12433 * common.opt (fabi-version): Change default to 0.
12434
12435 2014-06-12 Jason Merrill <jason@redhat.com>
12436
12437 * toplev.c (process_options): Reject -fabi-version=1.
12438
12439 2014-06-12 Jeff Law <law@redhat.com>
12440
12441 PR tree-optimization/61009
12442 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12443 value when we stop processing a block due to problematic PHIs.
12444
12445 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12446
12447 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12448 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12449 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12450 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12451 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12452 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12453 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12454 are not in the spec.
12455
12456 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12457
12458 PR target/59843
12459 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12460 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12461 Support V1DFmode.
12462
12463 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12464
12465 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12466
12467 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12468
12469 PR target/61443
12470 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12471 loading from address spaces.
12472
12473 2014-06-12 Martin Liska <mliska@suse.cz>
12474
12475 PR ipa/61462
12476 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12477 statement is reachable.
12478
12479 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12480
12481 * symtab.c (section_hash): New hash.
12482 (symtab_unregister_node): Clear section before freeing.
12483 (hash_section_hash_entry): New haser.
12484 (eq_sections): New function.
12485 (symtab_node::set_section_for_node): New method.
12486 (set_section_1): Update.
12487 (symtab_node::set_section): Take string instead of tree as parameter.
12488 (symtab_resolve_alias): Update.
12489 * cgraph.h (section_hash_entry_d): New structure.
12490 (section_hash_entry): New typedef.
12491 (cgraph_node): Change comdat_group_ to x_comdat_group,
12492 change section_ to x_section and turn into section_hash_entry;
12493 update accestors; put set_section_for_node offline.
12494 * tree.c (decl_section_name): Turn into string.
12495 (set_decl_section_name): Change parameter to be string.
12496 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12497 * sdbout.c (sdbout_one_type): Update.
12498 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12499 * varasm.c (IN_NAMED_SECTION, get_named_section,
12500 resolve_unique_section, hot_function_section, get_named_text_section,
12501 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12502 make_decl_rtl, default_unique_section): Update.
12503 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12504 (c6x_elf_unique_section): Update.
12505 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12506 * config/pa/pa.c (pa_function_section): Update.
12507 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12508 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12509 * config/arc/arc.c (arc_in_small_data_p): Update.
12510 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12511 * config/mcore/mcore.c (mcore_unique_section): Update.
12512 * config/mips/mips.c (mips16_build_function_stub): Update.
12513 (mips16_build_call_stub): Update.
12514 (mips_function_rodata_section): Update.
12515 (mips_in_small_data_p): Update.
12516 * config/score/score.c (score_in_small_data_p): Update.
12517 * config/rx/rx.c (rx_in_small_data): Update.
12518 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12519 (rs6000_xcoff_asm_named_section): Update.
12520 (rs6000_xcoff_unique_section): Update.
12521 * config/frv/frv.c (frv_string_begins_with): Update.
12522 (frv_in_small_data_p): Update.
12523 * config/v850/v850.c (v850_encode_data_area): Update.
12524 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12525 (bfin_handle_l1_data_attribute): Update.
12526 (bfin_handle_l2_attribute): Update.
12527 * config/mep/mep.c (mep_unique_section): Update.
12528 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12529 Update.
12530 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12531 (h8300_handle_tiny_data_attribute): Update.
12532 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12533 (m32r_in_small_data_p): Update.
12534 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12535 * config/i386/i386.c (ix86_in_large_data_p): Update.
12536 * config/i386/winnt.c (i386_pe_unique_section): Update.
12537 * config/darwin.c (darwin_function_section): Update.
12538 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12539 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12540 (new_emutls_decl): Update.
12541 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12542 input_varpool_node): Update.
12543 (ead_string_cst): Turn to ...
12544 (read_string): ... this one.
12545 * dwarf2out.c (secname_for_decl): Update.
12546 * asan.c (asan_protect_global): Update.
12547
12548 2014-06-11 DJ Delorie <dj@redhat.com>
12549
12550 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12551 cache lines.
12552 * config/rx/rx.c (rx_option_override): Likewise.
12553 (rx_align_for_label): Likewise.
12554
12555 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12556
12557 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12558
12559 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12560 prototype.
12561
12562 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12563
12564 * common.md: New file.
12565 * doc/md.texi: Update description of generic, machine-independent
12566 constraints.
12567 * config/s390/constraints.md (e): Delete.
12568 * Makefile.in (md_file): Include common.md.
12569 * config/m32c/t-m32c (md_file): Likewise.
12570 * genpreds.c (general_mem): New array.
12571 (generic_constraint_letters): Remove constraints now defined by
12572 common.md.
12573 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12574 Allow the first character to be '<' or '>' as well.
12575 * genoutput.c (general_mem): New array.
12576 (indep_constraints): Remove constraints now defined by common.md.
12577 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12578 Remove special handling of 'm'.
12579 * ira-costs.c (record_reg_classes): Remove special handling of
12580 constraints now defined by common.md.
12581 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12582 * ira-lives.c (single_reg_class): Likewise.
12583 (ira_implicitly_set_insn_hard_regs): Likewise.
12584 * lra-constraints.c (reg_class_from_constraints): Likewise.
12585 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12586 * postreload.c (reload_cse_simplify_operands): Likewise.
12587 * reload.c (push_secondary_reload, scratch_reload_class)
12588 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12589 * reload1.c (maybe_fix_stack_asms): Likewise.
12590 * targhooks.c (default_secondary_reload): Likewise.
12591 * stmt.c (parse_output_constraint): Likewise.
12592 * recog.c (preprocess_constraints): Likewise.
12593 (constrain_operands, peep2_find_free_register): Likewise.
12594 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12595 must be handled specially.
12596
12597 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12598
12599 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12600 * genpreds.c (have_const_dbl_constraints): Delete.
12601 (add_constraint): Don't set it.
12602 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12603 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12604 constraints using the lookup_constraint logic.
12605 * ira-lives.c (single_reg_class): Likewise.
12606 * ira.c (ira_setup_alts): Likewise.
12607 * lra-constraints.c (process_alt_operands): Likewise.
12608 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12609 * reload.c (find_reloads): Likewise.
12610
12611 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12612
12613 * genpreds.c (const_int_start, const_int_end): New variables.
12614 (choose_enum_order): Output CONST_INT constraints before memory
12615 constraints.
12616 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12617 Add CT_CONST_INT.
12618 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12619 * ira.c (ira_setup_alts): Likewise.
12620 * lra-constraints.c (process_alt_operands): Likewise.
12621 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12622 * reload.c (find_reloads): Likewise.
12623
12624 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12625
12626 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12627 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12628 * recog.c (preprocess_constraints): Update accordingly.
12629
12630 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12631
12632 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12633 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12634 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12635 * genpreds.c (print_type_tree): New function.
12636 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12637 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12638 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12639 Write out enum constraint_type and get_constraint_type.
12640 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12641 constraint_num rather than a constraint string.
12642 (satisfies_address_constraint_p): Likewise.
12643 (reg_class_from_constraints): Avoid old constraint macros.
12644 (process_alt_operands, process_address_1): Likewise.
12645 (curr_insn_transform): Likewise.
12646 * ira-costs.c (record_reg_classes): Likewise.
12647 (record_operand_costs): Likewise.
12648 * ira-lives.c (single_reg_class): Likewise.
12649 (ira_implicitly_set_insn_hard_regs): Likewise.
12650 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12651 * postreload.c (reload_cse_simplify_operands): Likewise.
12652 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12653 (constrain_operands, peep2_find_free_register): Likewise.
12654 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12655 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12656 * reload1.c (maybe_fix_stack_asms): Likewise.
12657 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12658 * targhooks.c (default_secondary_reload): Likewise.
12659 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12660 to EXTRA_CONSTRAINT_STR.
12661 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12662
12663 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12664
12665 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12666 (write_constraint_satisfied_p_array): ...this new function.
12667 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12668 an array.
12669 (write_insn_preds_c): Update accordingly.
12670
12671 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12672
12673 * genpreds.c (write_lookup_constraint): Rename to...
12674 (write_lookup_constraint_1): ...this.
12675 (write_lookup_constraint_array): New function.
12676 (write_tm_preds_h): Define lookup_constraint as an inline function
12677 that uses write_lookup_constraint_array where possible.
12678 (write_insn_preds_c): Update for the changes above.
12679
12680 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12681
12682 * doc/md.texi (regclass_for_constraint): Rename to...
12683 (reg_class_for_constraint): ...this.
12684 * genpreds.c (num_constraints, enum_order, register_start)
12685 (register_end, satisfied_start, memory_start, memory_end)
12686 (address_start, address_end): New variables.
12687 (add_constraint): Count the number of constraints.
12688 (choose_enum_order): New function.
12689 (write_enum_constraint_num): Iterate over enum_order.
12690 (write_regclass_for_constraint): Rename to...
12691 (write_reg_class_for_constraint_1): ...this and update output
12692 accordingly.
12693 (write_constraint_satisfied_p): Rename to...
12694 (write_constraint_satisfied_p_1): ...this and update output
12695 accordingly. Do nothing if all extra constraints are register
12696 constraints.
12697 (write_insn_extra_memory_constraint): Delete.
12698 (write_insn_extra_address_constraint): Delete.
12699 (write_range_function): New function.
12700 (write_tm_preds_h): Define constraint_satisfied_p and
12701 reg_class_for_constraint as inline functions that do a range check
12702 before calling the out-of-line function. Use write_range_function
12703 to implement insn_extra_{register,memory,address}_constraint,
12704 the first of which is new.
12705 (write_insn_preds_c): Update after above changes to write_* functions.
12706 (main): Call choose_enum_order.
12707
12708 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12709
12710 PR tree-optimization/61306
12711 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12712 expression instead of its size.
12713 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12714 false to prevent optimization when the result is unpredictable due to
12715 arithmetic right shift of signed type with highest byte is set.
12716 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12717 (init_symbolic_number): Likewise.
12718 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12719 when the result is unpredictable due to sign extension.
12720
12721 2014-06-11 Terry Guo <terry.guo@arm.com>
12722
12723 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12724 (*thumb1_addsi3): Ditto.
12725 (*thumb_subdi3): Ditto.
12726 (thumb1_subsi3_insn): Ditto.
12727 (*thumb_mulsi3): Ditto.
12728 (*thumb_mulsi3_v6): Ditto.
12729 (*thumb1_andsi3_insn): Ditto.
12730 (thumb1_bicsi3): Ditto.
12731 (*thumb1_iorsi3_insn): Ditto.
12732 (*thumb1_xorsi3_insn): Ditto.
12733 (*thumb1_ashlsi3): Ditto.
12734 (*thumb1_ashrsi3): Ditto.
12735 (*thumb1_lshrsi3): Ditto.
12736 (*thumb1_rotrsi3): Ditto.
12737 (*thumb1_negdi2): Ditto.
12738 (*thumb1_negsi2): Ditto.
12739 (*thumb1_abssi2): Ditto.
12740 (*thumb1_neg_abssi2): Ditto.
12741 (*thumb1_one_cmplsi2): Ditto.
12742 (*thumb1_zero_extendhisi2): Ditto.
12743 (*thumb1_zero_extendqisi2): Ditto.
12744 (*thumb1_zero_extendqisi2_v6): Ditto.
12745 (thumb1_extendhisi2): Ditto.
12746 (thumb1_extendqisi2): Ditto.
12747 (*thumb1_movdi_insn): Ditto.
12748 (*thumb1_movsi_insn): Ditto.
12749 (*thumb1_movhi_insn): Ditto.
12750 (thumb_movhi_clobber): Ditto.
12751 (*thumb1_movqi_insn): Ditto.
12752 (*thumb1_movhf): Ditto.
12753 (*thumb1_movsf_insn): Ditto.
12754 (*thumb_movdf_insn): Ditto.
12755 (movmem12b): Ditto.
12756 (movmem8b): Ditto.
12757 (cbranchqi4): Ditto.
12758 (cbranchsi4_insn): Ditto.
12759 (cbranchsi4_scratch): Ditto.
12760 (*negated_cbranchsi4): Ditto.
12761 (*tbit_cbranch): Ditto.
12762 (*tlobits_cbranch): Ditto.
12763 (*tstsi3_cbranch): Ditto.
12764 (*cbranchne_decr1): Ditto.
12765 (*addsi3_cbranch): Ditto.
12766 (*addsi3_cbranch_scratch): Ditto.
12767 (*thumb_cmpdi_zero): Ditto.
12768 (cstoresi_eq0_thumb1): Ditto.
12769 (cstoresi_ne0_thumb1): Ditto.
12770 (*cstoresi_eq0_thumb1_insn): Ditto.
12771 (*cstoresi_ne0_thumb1_insn): Ditto.
12772 (cstoresi_nltu_thumb1): Ditto.
12773 (cstoresi_ltu_thumb1): Ditto.
12774 (thumb1_addsi3_addgeu): Ditto.
12775 (*thumb_jump): Ditto.
12776 (*call_reg_thumb1_v5): Ditto.
12777 (*call_reg_thumb1): Ditto.
12778 (*call_value_reg_thumb1_v5): Ditto.
12779 (*call_value_reg_thumb1): Ditto.
12780 (*call_insn): Ditto.
12781 (*call_value_insn): Ditto.
12782 (thumb1_casesi_internal_pic): Ditto.
12783 (thumb1_casesi_dispatch): Ditto.
12784 (*thumb1_indirect_jump): Ditto.
12785 (prologue_thumb1_interwork): Ditto.
12786 (*epilogue_insns): Ditto.
12787 (consttable_1): Ditto.
12788 (consttable_2): Ditto.
12789 (tablejump): Ditto.
12790 (*thumb1_tablejump): Ditto.
12791 (thumb_eh_return): Ditto.
12792 (define_peephole2): Two of them are thumb1 only and got moved into
12793 new file thumb1.md.
12794 (define_split): Six of them are thumb1 only and got moved into new
12795 file thumb1.md.
12796 * config/arm/thumb1.md: New file comprised of above thumb1 only
12797 patterns.
12798
12799 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12800
12801 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12802 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12803 dependencies.
12804 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12805 (aarch64_crc_builtin_datum): New struct.
12806 (aarch64_crc_builtin_data): New.
12807 (aarch64_init_crc32_builtins): New function.
12808 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12809 (aarch64_crc32_expand_builtin): New.
12810 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12811 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12812 __ARM_FEATURE_CRC32 when appropriate.
12813 (TARGET_CRC32): Define.
12814 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12815 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12816 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12817 (aarch64_<crc_variant>): New pattern.
12818 * config/aarch64/arm_acle.h: New file.
12819 * config/aarch64/iterators.md (CRC): New int iterator.
12820 (crc_variant, crc_mode): New int attributes.
12821 * doc/aarch64-acle-intrinsics.texi: New file.
12822 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12823 Include aarch64-acle-intrinsics.texi.
12824
12825 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12826
12827 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12828 check for stores group of length 3.
12829 (vect_permute_store_chain): New permutations for stores group of
12830 length 3.
12831 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12832 of vec_perm_shuffle for the new permutations.
12833
12834 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12835
12836 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12837 table rewriting temporarily on targets not supporting ONE_ONLY.
12838
12839 2014-06-11 Richard Biener <rguenther@suse.de>
12840
12841 PR middle-end/61437
12842 Revert
12843 2014-06-04 Richard Biener <rguenther@suse.de>
12844
12845 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12846 TREE_PUBLIC and DECL_EXTERNAL decls.
12847
12848 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12849
12850 * varasm.c (set_implicit_section): New function.
12851 (resolve_unique_section): Use it to set implicit section
12852 for aliases, too.
12853 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12854 (default_function_section): Likewise.
12855 (decl_binds_to_current_def_p): Constify argument.
12856 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12857 * asan.c (asan_protect_global): Use
12858 symtab_get_node (decl)->implicit_section.
12859 * symtab.c (dump_symtab_base): Dump implicit sections.
12860 (verify_symtab_base): Verify sanity of sectoins and comdats.
12861 (symtab_resolve_alias): Alias share the section of its target.
12862 (set_section_1): New function.
12863 (symtab_node::set_section): Move here, recurse to aliases.
12864 (verify_symtab): Check for duplicated symtab lists.
12865 * tree-core.h (implicit_section_name_p): Remove.
12866 * tree-vect-data-refs.c: Include varasm.h.
12867 (vect_can_force_dr_alignment_p): Fix conditional on when
12868 decl bints to current definition; use
12869 symtab_get_node (decl)->implicit_section.
12870 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12871 * cgraph.h (struct symtab_node): Add implicit_section.
12872 (set_section): Rename to ...
12873 (set_section_for_node): ... this one.
12874 (set_section): Declare.
12875 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12876 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12877 input_overwrite_node, input_varpool_node): Stream implicit_section.
12878 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12879 removal; it will fail in LTO.
12880
12881 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12882
12883 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12884 Change second alternative type to f_mcr.
12885 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12886 and 12th alternatives' types to f_mcr and f_mrc.
12887 (*movdi_aarch64): Same for 12th and 13th alternatives.
12888 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12889 (aarch64_movtilow_tilow): Change type to fmov.
12890
12891 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12892
12893 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12894 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12895
12896 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12897
12898 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12899 New expander.
12900 (aarch64_sqrdmulh_lane<mode>): Likewise.
12901 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12902 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12903 (aarch64_sqdmulh_laneq<mode>): New expander.
12904 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12905 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12906 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12907 (aarch64_sqdmulh_lane<mode>): New expander.
12908 (aarch64_sqrdmulh_lane<mode>): Likewise.
12909 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12910 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12911 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12912 (aarch64_sqdmlal_laneq<mode>): Likewise.
12913 (aarch64_sqdmlsl_lane<mode>): Likewise.
12914 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12915 (aarch64_sqdmlal2_lane<mode>): Likewise.
12916 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12917 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12918 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12919 (aarch64_sqdmull_lane<mode>): Likewise.
12920 (aarch64_sqdmull_laneq<mode>): Likewise.
12921 (aarch64_sqdmull2_lane<mode>): Likewise.
12922 (aarch64_sqdmull2_laneq<mode>): Likewise.
12923
12924 2014-06-10 Richard Biener <rguenther@suse.de>
12925
12926 PR tree-optimization/61438
12927 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12928 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12929 insertion of IVs if running PRE.
12930 (eliminate): Adjust.
12931 (pass_pre::execute): Likewise.
12932 (pass_fre::execute): Likewise.
12933
12934 2014-06-10 Richard Biener <rguenther@suse.de>
12935
12936 PR middle-end/61456
12937 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12938 Do not use the main variant for the type comparison.
12939 (ncr_compar): Likewise.
12940 (nonoverlapping_component_refs_p): Likewise.
12941
12942 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12943
12944 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12945 REG_CFA_RESTORE mode.
12946
12947 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12948
12949 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12950 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12951 expand_vec_perm_pblendv.
12952
12953 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12954
12955 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12956 available.
12957 Simplify description of __crc32d and __crc32cd intrinsics.
12958 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12959 availability.
12960
12961 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12962
12963 PR lto/61334
12964 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12965 * config.in: Regenerate.
12966 * configure: Likewise.
12967
12968 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12969
12970 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12971 and public vars.
12972 (intersect_static_var_sets): Remove.
12973 (propagate): Do not prune local statics.
12974
12975 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12976
12977 PR fortran/60928
12978 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12979 Set lastprivate_firstprivate even if omp_private_outer_ref
12980 langhook returns true.
12981 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12982 langhook, call unshare_expr on new_var and call
12983 build_outer_var_ref to get the last argument.
12984
12985 2014-06-10 Marek Polacek <polacek@redhat.com>
12986
12987 PR c/60988
12988 * doc/extend.texi: Add cindex for transparent_union.
12989
12990 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12991
12992 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12993 init_symbolic_number ().
12994
12995 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12996
12997 PR middle-end/61141
12998 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12999 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13000 (verify_rtl_sharing): Likewise.
13001
13002 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13003
13004 PR c++/54442
13005 * tree.c (build_qualified_type): Use a canonical type for
13006 TYPE_CANONICAL.
13007
13008 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13009
13010 * config/arm/arm-modes.def: Remove XFmode.
13011
13012 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13013
13014 PR target/61062
13015 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13016 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13017 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13018 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13019 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13020 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13021 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13022 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13023 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13024
13025 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13026
13027 * tree-core.h (tree_decl_with_vis): Remove section_name.
13028
13029 2014-06-09 Kito Cheng <kito@0xlab.org>
13030
13031 * ira.c (ira): Don't call init_caller_save if LRA enabled
13032 since LRA use its own infrastructure to handle that.
13033
13034 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13035
13036 * symtab.c (dump_symtab_base): Update dumping.
13037 (symtab_make_decl_local): Clear only DECL_COMDAT.
13038 * tree-vect-data-refs.c (Check that variable is static before
13039 tampering with sections.
13040 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13041 (cgraph_create_virtual_clone): Likewise.
13042 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13043 (decl_section_name, set_decl_section_name): New accessors.
13044 (find_decls_types_r): Do not walk section name
13045 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13046 (decl_comdat_group, decl_comdat_group_id): Constify.
13047 (decl_section_name, set_decl_section_name): Update.
13048 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13049 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13050 (cgraph_make_node_local_1): Clear section and comdat group.
13051 * cgraph.h (set_comdat_group): Sanity check.
13052 (get_section, set_section): New.
13053 * ipa-comdats.c (ipa_comdats): Use get_section.
13054 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13055 * lto-streamer-out.c: Do not follow section names.
13056 * c-family/c-common.c (handle_section_attribute): Update.
13057 * lto-cgraph.c (lto_output_node): Output section.
13058 (lto_output_varpool_node): Likewise.
13059 (read_comdat_group): Rename to ...
13060 (read_identifier): ... this one.
13061 (read_string_cst): New function.
13062 (input_node, input_varpool_node): Input section names.
13063 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13064 (new_emutls_decl): Update.
13065 (secname_for_decl): Check section names only of static vars.
13066 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13067 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13068 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13069 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13070 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13071 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13072 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13073 * config/v850/v850.c (v850_insert_attributes): Likewise.
13074 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13075 Likewise.
13076 (h8300_handle_tiny_data_attribute): Likewise.
13077 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13078 (bfin_handle_l2_attribute): Likewise.
13079
13080 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13081
13082 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13083 remove static initializer.
13084
13085 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13086
13087 * varasm.c (use_blocks_for_decl_p): Check symbol table
13088 instead of alias attribute.
13089 (place_block_symbol): Recurse on aliases.
13090
13091 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13092
13093 * ipa-visibility.c: Include varasm.h
13094 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13095
13096 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13097
13098 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13099 outputting aliases.
13100
13101 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13102
13103 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13104 from test_insn into GGC space escape via SET_SRC.
13105
13106 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13107
13108 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13109 call statement, if any.
13110 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13111 statements, if any. Tidy up.
13112
13113 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13114
13115 PR target/61431
13116 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13117 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13118 handles swapping the two 64-bit double words on little endian
13119 systems. Include V1TImode and optionally TImode in VSX_LE so that
13120 these types are properly swapped. Change all of the insns and
13121 splits that do the 64-bit swaps to use VSX_LE.
13122 (vsx_le_perm_load_<mode>): Likewise.
13123 (vsx_le_perm_store_<mode>): Likewise.
13124 (splitters for little endian memory operations): Likewise.
13125 (vsx_xxpermdi2_le_<mode>): Likewise.
13126 (vsx_lxvd2x2_le_<mode>): Likewise.
13127 (vsx_stxvd2x2_le_<mode>): Likewise.
13128
13129 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13130
13131 PR target/61423
13132 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13133 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13134 and corresponding splitters. Zero extend general register
13135 or memory input operand to XMM temporary. Enable for
13136 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13137 (floatunssi<mode>2): Update expander predicate.
13138
13139 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13140
13141 PR rtl-optimization/61325
13142 * lra-constraints.c (process_address_1): Check scale equal to one
13143 to prevent transformation: base + scale * index => base + new_reg.
13144
13145 2014-06-06 Richard Biener <rguenther@suse.de>
13146
13147 PR tree-optimization/59299
13148 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13149 a def operand.
13150 (nearest_common_dominator_of_uses): Likewise.
13151 (statement_sink_location): Adjust. Support sinking loads.
13152
13153 2014-06-06 Martin Jambor <mjambor@suse.cz>
13154
13155 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13156 (build_agg_jump_func_from_list): Likewise.
13157 (determine_known_aggregate_parts): Renamed to
13158 determine_locally_known_aggregate_parts. Moved some functionality
13159 to the two functions above, removed bound checks.
13160
13161 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13162
13163 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13164 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13165 (aarch64_progress_pointer): Likewise.
13166 (aarch64_copy_one_part_and_move_pointers): Likewise.
13167 (aarch64_expand_movmen): Likewise.
13168 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13169 * config/aarch64/aarch64.md (movmem<mode>): New.
13170
13171 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13172
13173 * targhooks.c (default_add_stmt_cost): Call target specific
13174 hook instead of default one.
13175
13176 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13177
13178 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13179 endianness instead of host endianness.
13180 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13181 comments.
13182
13183 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13184
13185 PR debug/53927
13186 * function.c (instantiate_decls): Process the saved static chain.
13187 (expand_function_start): If not optimizing, save the static chain
13188 onto the stack.
13189 * tree-nested.c (convert_all_function_calls): Always create the static
13190 chain for nested functions if not optimizing.
13191
13192 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13193
13194 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13195
13196 2014-06-06 Richard Biener <rguenther@suse.de>
13197
13198 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13199 (construct_init_block): Likewise.
13200 (construct_exit_block): Likewise.
13201 (pass_expand::execute): Likewise.
13202 * graphite.c (graphite_transforms): Replace check for current_loops
13203 with a check for > 1 loops.
13204 (pass_graphite_transforms::execute): Adjust.
13205 * ipa-split.c (split_function): Remove check for current_loops.
13206 * omp-low.c (expand_parallel_call): Likewise.
13207 (expand_omp_for_init_counts): Likewise.
13208 (extract_omp_for_update_vars): Likewise.
13209 (expand_omp_for_generic): Likewise.
13210 (expand_omp_sections): Likewise.
13211 (expand_omp_target): Likewise.
13212 * tracer.c (tail_duplicate): Likewise.
13213 (pass_tracer::execute): Likewise.
13214 * trans-mem.c (expand_transaction): Likewise.
13215 * tree-complex.c (expand_complex_div_wide): Likewise.
13216 * tree-eh.c (lower_resx): Likewise.
13217 (cleanup_empty_eh_merge_phis): Likewise.
13218 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13219 current_loops with a check for > 1 loops.
13220 (pass_predcom::execute): Adjust.
13221 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13222 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13223 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13224 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13225 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13226 * tree-switch-conversion.c (process_switch): Likewise.
13227 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13228 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13229 (execute_vrp): Likewise.
13230 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13231
13232 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13233
13234 * rtl.h (insn_location): Declare.
13235 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13236 with UNKNOWN_LOCATION.
13237 * emit-rtl.c (insn_location): New function.
13238 * final.c (notice_source_line): Check that the instruction has a
13239 location before retrieving it and use insn_location.
13240 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13241 * print-rtl.c (print_rtx): Likewise.
13242
13243 2014-06-06 Richard Biener <rguenther@suse.de>
13244
13245 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13246
13247 2014-06-06 Christian Bruel <christian.bruel@st.com>
13248
13249 PR tree-optimization/43934
13250 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13251 cost.
13252
13253 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13254
13255 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13256 return NO_REGS for extra address and memory constraints. Handle
13257 operands that match (or are equivalent to something that matches)
13258 extra constant constraints. Ignore other non-register operands.
13259
13260 2014-06-06 Alan Modra <amodra@gmail.com>
13261
13262 PR target/61300
13263 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13264 * doc/tm.texi: Regenerate.
13265 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13266 Use throughout in place of REG_PARM_STACK_SPACE.
13267 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13268 "incoming" param. Pass to rs6000_function_parms_need_stack.
13269 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13270 prototype_p when incoming. Use function decl when incoming
13271 to handle K&R style functions.
13272 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13273 (INCOMING_REG_PARM_STACK_SPACE): Define.
13274
13275 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13276
13277 PR target/52472
13278 * cfgexpand.c (expand_debug_expr): Use address space of nested
13279 TREE_TYPE for ADDR_EXPR and MEM_REF.
13280
13281 2014-06-05 Jeff Law <law@redhat.com>
13282
13283 PR tree-optimization/61289
13284 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13285 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13286 looking for those which match LHS. All callers changed.
13287 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13288 parameters and code which manipulated them. All callers changed.
13289 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13290 and DST_MAP parameters. Simplify invalidation code by just calling
13291 invalidate_equivalences. All callers changed.
13292 (thread_across_edge): Simplify now that we don't need to maintain
13293 the map of equivalences to invalidate.
13294
13295 2014-06-05 Kai Tietz <ktietz@redhat.com>
13296 Richard Henderson <rth@redhat.com>
13297
13298 PR target/46219
13299 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13300 checking for !TARGET_X32.
13301 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13302 (sibcall_intern): New define_insn, plus required peepholes.
13303 (sibcall_pop_intern): Likewise.
13304 (sibcall_value_intern): Likewise.
13305 (sibcall_value_pop_intern): Likewise.
13306
13307 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13308
13309 * tree-inline.c (tree_function_versioning): Check DF info existence
13310 before accessing it.
13311
13312 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13313
13314 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13315 frame_size.
13316 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13317 aarch64_frame hard_fp_offset and frame_size.
13318 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13319 frame_size; remove original_frame_size.
13320 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13321 (aarch64_initial_elimination_offset): Remove frame_size and
13322 offset. Use aarch64_frame frame_size.
13323
13324 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13325 Jiong Wang <jiong.wang@arm.com>
13326 Renlin <renlin.li@arm.com>
13327
13328 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13329 initialization of R30 offset. Update offset. Iterate core
13330 regisers upto X30. Remove X29, X30 specific code.
13331
13332 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13333 Jiong Wang <jiong.wang@arm.com>
13334
13335 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13336 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13337 (aarch64_register_saved_on_entry): Adjust test.
13338
13339 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13340
13341 * config/aarch64/aarch64.h (machine_function): Move
13342 saved_varargs_size from here...
13343 (aarch64_frame): ... to here.
13344
13345 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13346 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13347 (aarch64_initial_elimination_offset)
13348 (aarch64_setup_incoming_varargs): Adjust location of
13349 saved_varargs_size.
13350
13351 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13352
13353 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13354 layout comment.
13355
13356 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13357 Prachi Godbole <Prachi.Godbole@imgtec.com>
13358
13359 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13360 mips32r5 entry to use PROCESSOR_P5600.
13361 * config/mips/mips-tables.opt: Regenerate.
13362 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13363 * config/mips/mips.c (mips_fmadd_bypass): New function.
13364 (mips_rtx_cost_data): Add costs for p5600.
13365 (mips_issue_rate): Add support for p5600.
13366 (mips_multipass_dfa_lookahead): Likewise.
13367 * config/mips/mips.h (TUNE_P5600): New define.
13368 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13369 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13370 * config/mips/mips.md: Include p5600.md.
13371 (processor): Add p5600.
13372 * config/mips/p5600.md: New file.
13373
13374 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13375
13376 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13377 * config/i386/predicates.md (palignr_operand): New.
13378 Indicates if permutation is suitable for palignr instruction.
13379
13380 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13381
13382 PR tree-optimization/61319
13383 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13384 stmt belongs to loop.
13385
13386 2014-06-05 Richard Biener <rguenther@suse.de>
13387
13388 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13389 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13390 (lookup_tmp_var): Adjust.
13391 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13392
13393 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13394
13395 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13396
13397 2014-06-05 Marek Polacek <polacek@redhat.com>
13398
13399 PR c/49706
13400 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13401
13402 2014-06-04 Tom de Vries <tom@codesourcery.com>
13403
13404 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13405 CONST_INT.
13406
13407 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13408
13409 PR tree-optimization/61385
13410 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13411
13412 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13413
13414 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13415 changed to use fatal_error.
13416 (main): Ensure lto_wrapper_cleanup is run atexit.
13417
13418 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13419
13420 * lra-constraints.c (valid_address_p): Move earlier in file.
13421 (address_eliminator): New structure.
13422 (satisfies_memory_constraint_p): New function.
13423 (satisfies_address_constraint_p): Likewise.
13424 (process_alt_operands, process_address, curr_insn_transform): Use them.
13425
13426 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13427
13428 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13429 const pointer.
13430 (target_lra_int, default_target_lra_int, this_target_lra_int)
13431 (op_alt_data): Delete.
13432 * lra.h (lra_init): Delete.
13433 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13434 (init_insn_code_data_once): Remove op_alt_data handling.
13435 (finish_insn_code_data_once): Likewise.
13436 (init_op_alt_data): Delete.
13437 (get_static_insn_data): Initialize operand_alternative to null.
13438 (free_insn_recog_data): Cast operand_alternative before freeing it.
13439 (setup_operand_alternative): Take the operand_alternative as
13440 parameter and assume it isn't already cached in the static
13441 insn data.
13442 (lra_set_insn_recog_data): Update accordingly.
13443 (lra_init): Delete.
13444 * ira.c (ira_init): Don't call lra_init.
13445 * target-globals.h (this_target_lra_int): Declare.
13446 (target_globals): Remove lra_int.
13447 (restore_target_globals): Update accordingly.
13448 * target-globals.c: Don't include lra-int.h.
13449 (default_target_globals, save_target_globals): Remove lra_int.
13450
13451 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13452
13453 * recog.h (operand_alternative): Convert reg_class, reject,
13454 matched and matches into bitfields.
13455 (preprocess_constraints): New overload.
13456 (preprocess_insn_constraints): New function.
13457 (preprocess_constraints): Take the insn as parameter.
13458 (recog_op_alt): Change into a pointer.
13459 (target_recog): Add x_op_alt.
13460 * recog.c (asm_op_alt): New variable.
13461 (recog_op_alt): Change into a pointer.
13462 (preprocess_constraints): New overload, replacing the old function
13463 definition with one that doesn't use global state.
13464 (preprocess_insn_constraints): New function.
13465 (preprocess_constraints): Use them. Take the insn as parameter.
13466 Use asm_op_alt for asms.
13467 (recog_init): Free existing x_op_alt entries.
13468 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13469 pointer const.
13470 (make_early_clobber_and_input_conflicts): Likewise.
13471 (process_bb_node_lives): Pass the insn to process_constraints.
13472 * reg-stack.c (check_asm_stack_operands): Likewise.
13473 (subst_asm_stack_regs): Likewise.
13474 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13475 * regrename.c (build_def_use): Likewise.
13476 * sched-deps.c (sched_analyze_insn): Likewise.
13477 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13478 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13479 (note_invalid_constants): Likewise.
13480 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13481 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13482 const.
13483
13484 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13485
13486 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13487 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13488 alternatives.
13489 (make_early_clobber_and_input_conflicts): Likewise.
13490 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13491
13492 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13493
13494 * recog.h (alternative_class): New function.
13495 (which_op_alt): Return a const recog_op_alt.
13496 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13497 (subst_asm_stack_regs): Likewise.
13498 * config/arm/arm.c (note_invalid_constants): Likewise.
13499 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13500 the operand_alternative; use alternative class instead.
13501 * sel-sched.c (get_reg_class): Likewise.
13502 * regrename.c (build_def_use): Likewise.
13503 (hide_operands, restore_operands, record_out_operands): Update type
13504 accordingly.
13505
13506 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13507
13508 * recog.h (recog_op_alt): Convert to a flat array.
13509 (which_op_alt): New function.
13510 * recog.c (recog_op_alt): Convert to a flat array.
13511 (preprocess_constraints): Update accordingly, grouping all
13512 operands of the same alternative together, rather than the
13513 other way around.
13514 * ira-lives.c (check_and_make_def_conflict): Likewise.
13515 (make_early_clobber_and_input_conflicts): Likewise.
13516 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13517 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13518 (subst_asm_stack_regs): Likewise.
13519 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13520 * regrename.c (hide_operands, record_out_operands): Likewise.
13521 (build_def_use): Likewise.
13522 * sel-sched.c (get_reg_class): Likewise.
13523 * config/arm/arm.c (note_invalid_constants): Likewise.
13524
13525 2014-06-04 Jason Merrill <jason@redhat.com>
13526
13527 PR c++/51253
13528 PR c++/61382
13529 * gimplify.c (gimplify_arg): Non-static.
13530 * gimplify.h: Declare it.
13531
13532 2014-06-04 Richard Biener <rguenther@suse.de>
13533
13534 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13535 TREE_PUBLIC and DECL_EXTERNAL decls.
13536
13537 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13538
13539 * regcprop.c (copyprop_hardreg_forward_1): Account for
13540 HARD_REGNO_CALL_PART_CLOBBERED.
13541
13542 2014-06-04 Richard Biener <rguenther@suse.de>
13543
13544 * configure.ac: Check whether the underlying type of int64_t
13545 is long or long long.
13546 * configure: Regenerate.
13547 * config.in: Likewise.
13548 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13549 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13550
13551 2014-06-04 Richard Biener <rguenther@suse.de>
13552
13553 PR tree-optimization/60098
13554 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13555 we hit a kill.
13556 (dse_optimize_stmt): Simplify, now that we found a kill
13557 earlier.
13558
13559 2014-06-04 Richard Biener <rguenther@suse.de>
13560
13561 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13562 of accesses with non-invariant address.
13563
13564 2014-06-04 Martin Liska <mliska@suse.cz>
13565
13566 * cgraph.h (cgraph_make_wrapper): New function introduced.
13567 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13568 * ipa-inline.h (inline_analyze_function): The function is global.
13569 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13570
13571 2014-06-04 Martin Liska <mliska@suse.cz>
13572
13573 * tree.h (private_lookup_attribute_starting): New function.
13574 (lookup_attribute_starting): Likewise.
13575 * tree.c (private_lookup_attribute_starting): Likewise.
13576
13577 2014-06-04 Martin Liska <mliska@suse.cz>
13578
13579 * cgraph.h (expand_thunk): New argument added.
13580 (address_taken_from_non_vtable_p): New global function.
13581 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13582 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13583 * cgraphunit.c (analyze_function): Likewise.
13584 (assemble_thunks_and_aliases): Argument added to call.
13585 (expand_thunk): New argument forces to produce GIMPLE thunk.
13586
13587 2014-06-04 Martin Liska <mliska@suse.cz>
13588
13589 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13590 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13591 * profile.c (branch_prob): Likewise.
13592
13593 2014-06-04 Martin Jambor <mjambor@suse.cz>
13594
13595 PR ipa/61340
13596 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13597 handler for switch on an ipa_ref_use enum.
13598 * ipa-reference.c (analyze_function): Likewise.
13599
13600 2014-06-04 Kai Tietz <ktietz@redhat.com>
13601
13602 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13603 from old call-instruction.
13604
13605 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13606
13607 * config/aarch64/aarch64.c (aarch64_classify_address)
13608 (aarch64_legitimize_reload_address): Support full addressing modes
13609 for vector modes.
13610 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13611 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13612
13613 2014-06-03 Andrew Pinski <apinski@cavium.com>
13614
13615 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13616 for OP0.
13617
13618 2014-06-03 Andrew Pinski <apinski@cavium.com>
13619
13620 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13621 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13622
13623 2014-06-03 Kai Tietz <ktietz@redhat.com>
13624
13625 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13626 for 64-bit ms-abi.
13627
13628 2014-06-03 Dehao Chen <dehao@google.com>
13629
13630 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13631 the same loop.
13632
13633 2014-06-03 Marek Polacek <polacek@redhat.com>
13634
13635 PR c/60439
13636 * doc/invoke.texi: Document -Wswitch-bool.
13637 * function.c (stack_protect_epilogue): Cast controlling expression of
13638 the switch to int.
13639 * gengtype.c (walk_type): Generate switch expression with its
13640 controlling expression cast to int.
13641
13642 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13643
13644 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13645 and attiny841.
13646 * config/avr/avr-tables.opt: Regenerate.
13647 * config/avr/t-multilib: Regenerate.
13648 * doc/avr-mmcu.texi: Regenerate.
13649
13650 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13651 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13652
13653 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13654 (ata6617c, ata664251): Add new avr35 devices.
13655 (ata6612c): Add new avr4 device.
13656 (ata6613c, ata6614q): Add new avr5 devices.
13657 * config/avr/avr-tables.opt: Regenerate.
13658 * config/avr/t-multilib: Regenerate.
13659 * doc/avr-mmcu.texi: Regenerate.
13660
13661 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13662
13663 * gcc/config/aarch64/aarch64-builtins.c
13664 (aarch64_types_binop_ssu_qualifiers): New static data.
13665 (TYPES_BINOP_SSU): Define.
13666 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13667 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13668 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13669 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13670 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13671 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13672 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13673 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13674 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13675 suffix to builtin function name, remove cast.
13676 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13677 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13678 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13679
13680 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13681
13682 * gcc/config/aarch64/aarch64-builtins.c
13683 (aarch64_types_binop_uus_qualifiers,
13684 aarch64_types_shift_to_unsigned_qualifiers,
13685 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13686 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13687 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13688 sqshlu_n, uqshl_n): Update qualifiers.
13689 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13690 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13691 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13692 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13693 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13694 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13695 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13696 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13697 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13698 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13699 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13700 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13701 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13702 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13703 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13704 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13705 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13706 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13707 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13708 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13709 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13710 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13711 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13712 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13713 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13714 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13715 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13716
13717 2014-06-03 Teresa Johnson <tejohnson@google.com>
13718
13719 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13720
13721 2014-06-02 Jason Merrill <jason@redhat.com>
13722
13723 PR c++/61020
13724 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13725
13726 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13727
13728 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13729 location == 0.
13730
13731 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13732
13733 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13734 New pattern.
13735 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13736 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13737 * config/aarch64/iterators.md (REVERSE): New iterator.
13738 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13739 (rev_op): New int_attribute.
13740 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13741 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13742 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13743 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13744 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13745 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13746 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13747 Replace temporary __asm__ with __builtin_shuffle.
13748
13749 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13750
13751 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13752 mips64r5.
13753 * config/mips/mips-tables.opt: Regenerate.
13754 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13755 to use mips_isa_rev rather than ISA_MIPS32R2.
13756 * config/mips/mips.h (ISA_MIPS32R3): New define.
13757 (ISA_MIPS32R5): New define.
13758 (ISA_MIPS64R3): New define.
13759 (ISA_MIPS64R5): New define.
13760 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13761 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13762 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13763 and mips64r5.
13764 (MIPS_ISA_SYNCI_SPEC): Likewise.
13765 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13766 (LINK_SPEC): Added mips32r3 and mips32r5.
13767 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13768 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13769 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13770 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13771 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13772 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13773 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13774
13775 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13776
13777 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13778 options.
13779 * config/mips/mips.opt (mxpa): New option.
13780 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13781 assembler.
13782
13783 2014-06-03 Martin Jambor <mjambor@suse.cz>
13784
13785 PR ipa/61160
13786 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13787 thunks.
13788
13789 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13790
13791 PR tree-optimization/61328
13792 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13793 initialization from find_bswap_or_nop_1.
13794 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13795 in source_expr2 before using the size value the function sets. Also
13796 make use of init_symbolic_number () in both the old place and
13797 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13798 doing recursion in the GIMPLE_BINARY_RHS case.
13799
13800 2014-06-03 Richard Biener <rguenther@suse.de>
13801
13802 PR tree-optimization/61383
13803 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13804 stmts can't trap.
13805
13806 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13807
13808 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13809 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13810 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13811 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13812 in this file.
13813 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13814 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13815 * system.h: ...here and make it unconditional.
13816 * target.def (conditional_register_usage): Mention
13817 define_register_constraint instead of old-style constraint macros.
13818 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13819 * doc/tm.texi: Regenerate.
13820 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13821 protected by !USE_MD_CONSTRAINTS.
13822 * config/frv/frv.md: Remove quote from old version of documentation.
13823 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13824 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13825 CONST_DOUBLE_OK_FOR_LETTER.
13826 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13827
13828 2014-06-02 Andrew Pinski <apinski@cavium.com>
13829
13830 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13831 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13832 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13833 file whose name depends on -mabi= and -mbig-endian.
13834 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13835 Handle LP64 better and handle ilp32 too.
13836 (MULTILIB_OPTIONS): Delete.
13837 (MULTILIB_DIRNAMES): Delete.
13838
13839 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13840
13841 * expr.h: Remove prototypes of functions defined in builtins.c.
13842 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13843 Remove prototypes of functions defined in builtins.c.
13844 * builtins.h: Update prototype list to include all exported functions.
13845 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13846 no_c99_libc_has_function): Move to targhooks.c
13847 (build_string_literal, build_call_expr_loc_array,
13848 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13849 to tree.c.
13850 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13851 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13852 no_c99_libc_has_function): Relocate from builtins.c.
13853 * tree.c: Include builtins.h.
13854 (build_call_expr_loc_array, build_call_expr_loc_vec,
13855 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13856 from builtins.c.
13857 * fold-const.h (fold_fma): Move prototype to builtins.h.
13858 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13859 * asan.c: Include builtins.h.
13860 * cfgexpand.c: Likewise.
13861 * convert.c: Likewise.
13862 * emit-rtl.c: Likewise.
13863 * except.c: Likewise.
13864 * expr.c: Likewise.
13865 * fold-const.c: Likewise.
13866 * gimple-fold.c: Likewise.
13867 * gimple-ssa-strength-reduction.c: Likewise.
13868 * gimplify.c: Likewise.
13869 * ipa-inline.c: Likewise.
13870 * ipa-prop.c: Likewise.
13871 * lto-streamer-out.c: Likewise.
13872 * stmt.c: Likewise.
13873 * tree-inline.c: Likewise.
13874 * tree-object-size.c: Likewise.
13875 * tree-sra.c: Likewise.
13876 * tree-ssa-ccp.c: Likewise.
13877 * tree-ssa-forwprop.c: Likewise.
13878 * tree-ssa-loop-ivcanon.c: Likewise.
13879 * tree-ssa-loop-ivopts.c: Likewise.
13880 * tree-ssa-math-opts.c: Likewise.
13881 * tree-ssa-reassoc.c: Likewise.
13882 * tree-ssa-threadedge.c: Likewise.
13883 * tree-streamer-in.c: Likewise.
13884 * tree-vect-data-refs.c: Likewise.
13885 * tree-vect-patterns.c: Likewise.
13886 * tree-vect-stmts.c: Likewise.
13887 * config/aarch64/aarch64.c: Likewise.
13888 * config/alpha/alpha.c: Likewise.
13889 * config/arc/arc.c: Likewise.
13890 * config/arm/arm.c: Likewise.
13891 * config/avr/avr.c: Likewise.
13892 * config/bfin/bfin.c: Likewise.
13893 * config/c6x/c6x.c: Likewise.
13894 * config/cr16/cr16.c: Likewise.
13895 * config/cris/cris.c: Likewise.
13896 * config/epiphany/epiphany.c: Likewise.
13897 * config/fr30/fr30.c: Likewise.
13898 * config/frv/frv.c: Likewise.
13899 * config/h8300/h8300.c: Likewise.
13900 * config/i386/i386.c: Likewise.
13901 * config/i386/winnt.c: Likewise.
13902 * config/ia64/ia64.c: Likewise.
13903 * config/iq2000/iq2000.c: Likewise.
13904 * config/lm32/lm32.c: Likewise.
13905 * config/m32c/m32c.c: Likewise.
13906 * config/m32r/m32r.c: Likewise.
13907 * config/m68k/m68k.c: Likewise.
13908 * config/mcore/mcore.c: Likewise.
13909 * config/mep/mep.c: Likewise.
13910 * config/microblaze/microblaze.c: Likewise.
13911 * config/mips/mips.c: Likewise.
13912 * config/mmix/mmix.c: Likewise.
13913 * config/mn10300/mn10300.c: Likewise.
13914 * config/moxie/moxie.c: Likewise.
13915 * config/msp430/msp430.c: Likewise.
13916 * config/nds32/nds32.c: Likewise.
13917 * config/pa/pa.c: Likewise.
13918 * config/pdp11/pdp11.c: Likewise.
13919 * config/picochip/picochip.c: Likewise.
13920 * config/rl78/rl78.c: Likewise.
13921 * config/rs6000/rs6000.c: Likewise.
13922 * config/rx/rx.c: Likewise.
13923 * config/s390/s390.c: Likewise.
13924 * config/score/score.c: Likewise.
13925 * config/sh/sh.c: Likewise.
13926 * config/sparc/sparc.c: Likewise.
13927 * config/spu/spu.c: Likewise.
13928 * config/stormy16/stormy16.c: Likewise.
13929 * config/tilegx/tilegx.c: Likewise.
13930 * config/tilepro/tilepro.c: Likewise.
13931 * config/v850/v850.c: Likewise.
13932 * config/vax/vax.c: Likewise.
13933 * config/xtensa/xtensa.c: Likewise.
13934
13935 2014-06-02 Jeff Law <law@redhat.com>
13936
13937 PR rtl-optimization/61094
13938 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13939 was marked as do_no_reextend. If a copy is needed to eliminate
13940 an extension, then mark it as do_not_reextend.
13941
13942 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13943
13944 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13945
13946 2014-06-02 Richard Henderson <rth@redhat.com>
13947
13948 PR target/61336
13949 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13950 addresses inside asms. Use output_operand_lossage instead of
13951 gcc_unreachable.
13952
13953 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13954
13955 PR target/61239
13956 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13957 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13958
13959 2014-06-02 Tom de Vries <tom@codesourcery.com>
13960
13961 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13962 case that x has VOIDmode.
13963
13964 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13965
13966 * varasm.c (copy_constant): Delete function.
13967 (build_constant_desc): Don't call it.
13968
13969 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13970
13971 PR target/61154
13972 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13973 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13974 with immediate_operand.
13975
13976 2014-06-02 Andreas Schwab <schwab@suse.de>
13977
13978 * config/ia64/ia64.c
13979 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13980 pending_data_specs first.
13981
13982 2014-06-02 Richard Biener <rguenther@suse.de>
13983
13984 PR tree-optimization/61378
13985 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13986 valueized_anything.
13987
13988 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13989
13990 * config/i386/constraints.md (Bw): Rename from 'w'.
13991 (Bz): Rename from 'z'.
13992 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13993
13994 2014-06-01 Kai Tietz <ktietz@redhat.com>
13995
13996 PR target/61377
13997 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13998 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13999 instead of m constraint.
14000
14001 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14002
14003 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14004 a separate alternative where the scratch operand 2 is marked as
14005 early clobber.
14006
14007 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14008
14009 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14010 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14011 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14012 and __builtins_arm_get_fpscr.
14013 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14014 __builtins_arm_get_fpscr.
14015 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14016 __builtins_arm_ldfpscr.
14017 (arm_atomic_assign_expand_fenv): New function.
14018 * config/arm/vfp.md (set_fpscr): New pattern.
14019 (get_fpscr) : Likewise.
14020 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14021 VUNSPEC_SET_FPSCR.
14022 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14023 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14024
14025 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14026
14027 * asan.c (report_error_func): Add SLOW_P argument, use
14028 BUILT_IN_ASAN_*_N if set.
14029 (build_check_stmt): Likewise.
14030 (instrument_derefs): If T has insufficient alignment,
14031 force same handling as for odd sizes.
14032
14033 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14034 BUILT_IN_ASAN_REPORT_STORE_N): New.
14035 * asan.c (struct asan_mem_ref): Change access_size type to
14036 HOST_WIDE_INT.
14037 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14038 update_mem_ref_hash_table): Likewise.
14039 (asan_mem_ref_hasher::hash): Hash in a HWI.
14040 (report_error_func): Change size_in_bytes argument to HWI.
14041 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14042 two.
14043 (build_shadow_mem_access): New function.
14044 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14045 Handle size_in_bytes not power of two or larger than 16.
14046 (instrument_derefs): Don't give up if size_in_bytes is not
14047 power of two or is larger than 16.
14048
14049 2014-05-30 Kai Tietz <ktietz@redhat.com>
14050
14051 PR target/60104
14052 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14053 for sibling-tail-calls.
14054 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14055 to its use.
14056 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14057 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14058
14059 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14060
14061 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14062 * config/avr/avr-tables.opt: Regenerate.
14063 * config/avr/t-multilib: Regenerate.
14064 * doc/avr-mmcu.texi: Regenerate.
14065
14066 2014-05-30 Ian Lance Taylor <iant@google.com>
14067
14068 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14069 target("sse").
14070
14071 2014-05-30 Tom de Vries <tom@codesourcery.com>
14072
14073 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14074 Redefine as true.
14075
14076 2014-05-30 Tom de Vries <tom@codesourcery.com>
14077
14078 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14079 * lra.c (initialize_lra_reg_info_element): Add init of
14080 actual_call_used_reg_set field.
14081 (lra): Call lra_create_live_ranges before lra_inheritance for
14082 -fuse-caller-save.
14083 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14084 -fuse-caller-save.
14085 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14086 instead of call_used_reg_set for -fuse-caller-save.
14087 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14088
14089 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14090
14091 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14092 to mov_imm.
14093 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14094
14095 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14096
14097 * ira.c (ira_get_dup_out_num): Check for output operands at
14098 the start of the loop. Handle cases where an included alternative
14099 follows an excluded one.
14100
14101 2014-05-29 Mike Stump <mikestump@comcast.net>
14102
14103 PR debug/61352
14104 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14105 post ld passes when lto is used.
14106
14107 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14108
14109 PR rtl-optimization/61325
14110 * lra-constraints.c (process_address): Rename to process_address_1.
14111 (process_address): New function.
14112
14113 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14114
14115 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14116 TYPES_BINOPV): New static data.
14117 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14118 New builtin.
14119 * config/aarch64/aarch64-simd.md (aarch64_ext,
14120 aarch64_im_lane_boundsi): New patterns.
14121 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14122 patterns for EXT.
14123 (aarch64_evpc_ext): New function.
14124
14125 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14126
14127 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14128 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14129 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14130 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14131 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14132
14133 2014-05-29 Tom de Vries <tom@codesourcery.com>
14134
14135 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14136
14137 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14138 Richard Sandiford <rdsandiford@googlemail.com>
14139
14140 * arm/iterators.md (shiftable_ops): New code iterator.
14141 (t2_binop0, arith_shift_insn): New code attributes.
14142 * arm/predicates.md (shift_nomul_operator): New predicate.
14143 * arm/arm.md (insn_enabled): Delete.
14144 (enabled): Remove insn_enabled test.
14145 (*arith_shiftsi): Delete. Replace with ...
14146 (*<arith_shift_insn>_multsi): ... new pattern.
14147 (*<arith_shift_insn>_shiftsi): ... new pattern.
14148 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14149
14150 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14151 Tom de Vries <tom@codesourcery.com>
14152
14153 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14154 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14155 clobber.
14156 (mips_split_call): Use POST_CALL_TMP_REG.
14157 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14158
14159 2014-05-29 Tom de Vries <tom@codesourcery.com>
14160
14161 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14162 with #ifdef STACK_REGS.
14163
14164 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14165
14166 * varasm.c (get_variable_section): Walk aliases.
14167 (place_block_symbol): Walk aliases.
14168
14169 2014-05-28 Tom de Vries <tom@codesourcery.com>
14170
14171 Revert:
14172 2014-05-28 Tom de Vries <tom@codesourcery.com>
14173
14174 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14175 * lra.c (initialize_lra_reg_info_element): Add init of
14176 actual_call_used_reg_set field.
14177 (lra): Call lra_create_live_ranges before lra_inheritance for
14178 -fuse-caller-save.
14179 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14180 -fuse-caller-save.
14181 * lra-constraints.c (need_for_call_save_p): Use
14182 actual_call_used_reg_set instead of call_used_reg_set for
14183 -fuse-caller-save.
14184 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14185
14186 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14187
14188 * doc/md.texi: Document that the % constraint character must
14189 be at the beginning of the string.
14190 * genoutput.c (validate_insn_alternatives): Check that '=',
14191 '+' and '%' only appear at the beginning of a constraint.
14192 * ira.c (commutative_constraint_p): Delete.
14193 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14194 at the start of the string.
14195 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14196 duplicate '='s.
14197 * config/arm/neon.md (bicdi3_neon): Likewise.
14198 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14199 (slt_si, sltu_si): Likewise.
14200 * config/vax/vax.md (sbcdi3): Likewise.
14201 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14202 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14203 (mul64): Move '%' to beginning of constraint.
14204 * config/arm/arm.md (*xordi3_insn): Likewise.
14205 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14206 (xorsi3): Likewise.
14207
14208 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14209
14210 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14211
14212 2014-05-28 Jason Merrill <jason@redhat.com>
14213
14214 PR c++/47202
14215 * cgraph.h (symtab_node::get_comdat_group_id): New.
14216 * cgraphunit.c (analyze_functions): Call it.
14217 * symtab.c (dump_symtab_node): Likewise.
14218 * tree.c (decl_comdat_group_id): New.
14219 * tree.h: Declare it.
14220 * lto-streamer-out.c (write_symbol): Use it.
14221 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14222
14223 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14224
14225 PR bootstrap/PR61146
14226 * wide-int.cc: Do not include longlong.h when compiling with clang.
14227
14228 2014-05-28 Richard Biener <rguenther@suse.de>
14229
14230 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14231 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14232 (vrp_visit_assignment_or_call): Print less vertical space.
14233 (vrp_visit_stmt): Likewise.
14234 (vrp_visit_phi_node): Likewise. For a PHI argument with
14235 VR_VARYING range consider recording it as copy.
14236
14237 2014-05-28 Richard Biener <rguenther@suse.de>
14238
14239 Revert
14240 2014-05-28 Richard Biener <rguenther@suse.de>
14241
14242 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14243
14244 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14245
14246 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14247 sufficiently aligned and an offset is used at the same time.
14248 (expand_expr_real_1): Likewise.
14249
14250 2014-05-28 Richard Biener <rguenther@suse.de>
14251
14252 PR middle-end/61045
14253 * fold-const.c (fold_comparison): When folding
14254 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14255 the sign of the remaining constant operand stays the same.
14256
14257 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14258
14259 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14260 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14261 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14262 to the assembler.
14263 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14264 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14265 (m32bit-doubles) Likewise.
14266 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14267 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14268 option for RL78.
14269
14270 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14271
14272 * configure.ac ($gcc_cv_ld_clearcap): New test.
14273 * configure: Regenerate.
14274 * config.in: Regenerate.
14275 * config/sol2.opt (mclear-hwcap): New option.
14276 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14277 * config/sol2-clearcap.map: Moved here from
14278 testsuite/gcc.target/i386/clearcap.map.
14279 * config/sol2-clearcapv2.map: Move here from
14280 gcc.target/i386/clearcapv2.map.
14281 * config/t-sol2 (install): Depend on install-clearcap-map.
14282 (install-clearcap-map): New target.
14283 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14284 -mclear-hwcap.
14285
14286 2014-05-28 Richard Biener <rguenther@suse.de>
14287
14288 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14289 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14290 ... here and remove the rest.
14291 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14292
14293 2014-05-28 Richard Biener <rguenther@suse.de>
14294
14295 PR tree-optimization/61335
14296 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14297 new range fails, drop to varying.
14298
14299 2014-05-28 Olivier Hainque <hainque@adacore.com>
14300
14301 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14302 (CPP_SPEC): Add entry for -mcpu=8548.
14303 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14304 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14305
14306 2014-05-28 Tom de Vries <tom@codesourcery.com>
14307
14308 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14309 * lra.c (initialize_lra_reg_info_element): Add init of
14310 actual_call_used_reg_set field.
14311 (lra): Call lra_create_live_ranges before lra_inheritance for
14312 -fuse-caller-save.
14313 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14314 -fuse-caller-save.
14315 * lra-constraints.c (need_for_call_save_p): Use
14316 actual_call_used_reg_set instead of call_used_reg_set for
14317 -fuse-caller-save.
14318 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14319
14320 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14321 Tom de Vries <tom@codesourcery.com>
14322
14323 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14324 to gccoptlist.
14325 (@item -fuse-caller-save): New item.
14326
14327 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14328 Tom de Vries <tom@codesourcery.com>
14329
14330 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14331 OPT_fuse_caller_save.
14332
14333 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14334 Tom de Vries <tom@codesourcery.com>
14335
14336 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14337 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14338 get_call_reg_set_usage.
14339 * resource.c (mark_set_resources, mark_target_live_regs): Use
14340 get_call_reg_set_usage.
14341 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14342 field.
14343 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14344 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14345 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14346 * ira-build.c (ira_create_allocno): Init
14347 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14348 (create_cap_allocno, propagate_allocno_info)
14349 (propagate_some_info_from_allocno)
14350 (copy_info_to_removed_store_destinations): Handle
14351 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14352 * ira-costs.c (ira_tune_allocno_costs): Use
14353 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14354
14355 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14356 Tom de Vries <tom@codesourcery.com>
14357
14358 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14359 and function_used_regs_valid fields.
14360 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14361 find_all_hard_reg_sets.
14362 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14363 (get_call_reg_set_usage): New function.
14364 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14365 * regs.h (get_call_reg_set_usage): Declare.
14366
14367 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14368
14369 PR libgcc/61152
14370 * config/dbx.h (License): Add Runtime Library Exception.
14371 * config/newlib-stdint.h (License): Same.
14372 * config/rtems.h (License): Same
14373 * config/initfini-array.h (License): Same
14374 * config/v850/v850.h (License): Same.
14375 * config/v850/v850-opts.h (License): Same
14376 * config/v850/rtems.h (License): Same.
14377
14378 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14379
14380 PR target/61044
14381 * doc/extend.texi (Local Labels): Note that label differences are
14382 not supported for AVR.
14383
14384 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14385 Olivier Hainque <hainque@adacore.com>
14386
14387 * rtl.h (set_for_reg_notes): Declare.
14388 * emit-rtl.c (set_for_reg_notes): New function.
14389 (set_unique_reg_note): Use it.
14390 * optabs.c (add_equal_note): Likewise
14391
14392 2014-05-27 Andrew Pinski <apinski@cavium.com>
14393
14394 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14395 Use <w> for the register in assembly template.
14396 (stack_protect_test): Use the mode of operands[0] for the result.
14397 (stack_protect_test_<mode>): Use <w> for the register
14398 in assembly template.
14399
14400 2014-05-27 DJ Delorie <dj@redhat.com>
14401
14402 * config/rx/rx.c (add_vector_labels): New.
14403 (rx_output_function_prologue): Call it.
14404 (rx_handle_func_attribute): Don't require empty arguments.
14405 (rx_handle_vector_attribute): New.
14406 (rx_attribute_table): Add "vector" attribute.
14407 * doc/extend.texi (interrupt, vector): Document new/changed
14408 RX-specific attributes.
14409
14410 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14411
14412 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14413
14414 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14415 predicate to detect a negative quotient.
14416
14417 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14418
14419 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14420 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14421 Add X - Y CMP 0 to X CMP Y transformation.
14422 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14423
14424 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14425
14426 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14427 before printing.
14428
14429 2014-05-27 Steve Ellcey <sellcey@mips.com>
14430
14431 * config/mips/mips.c: Add include of cgraph.h.
14432
14433 2014-05-27 Richard Biener <rguenther@suse.de>
14434
14435 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14436
14437 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14438
14439 PR libgcc/61152
14440 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14441 * config/arm/arm-cores.def (License): Same.
14442 * config/arm/arm-opts.h (License): Same.
14443 * config/arm/aout.h (License): Same.
14444 * config/arm/bpabi.h (License): Same.
14445 * config/arm/elf.h (License): Same.
14446 * config/arm/linux-elf.h (License): Same.
14447 * config/arm/linux-gas.h (License): Same.
14448 * config/arm/netbsd-elf.h (License): Same.
14449 * config/arm/uclinux-eabi.h (License): Same.
14450 * config/arm/uclinux-elf.h (License): Same.
14451 * config/arm/vxworks.h (License): Same.
14452
14453 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14454
14455 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14456 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14457 (arm_init_neon_builtins): Handle NEON_BSWAP.
14458 Define required type nodes.
14459 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14460 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14461 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14462 * config/arm/iterators.md (VDQHSD): New mode iterator.
14463
14464 2014-05-27 Richard Biener <rguenther@suse.de>
14465
14466 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14467 Try using literal operands when comparing value-ranges failed.
14468
14469 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14470
14471 * ira.c (commutative_operand): Adjust for change to recog_data.
14472 [Missing from previous commit.]
14473
14474 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14475
14476 * system.h (TEST_BIT): New macro.
14477 * recog.h (alternative_mask): New type.
14478 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14479 (recog_data_d): Replace alternative_enabled_p array with
14480 enabled_alternatives.
14481 (target_recog): New structure.
14482 (default_target_recog, this_target_recog): Declare.
14483 (get_enabled_alternatives, recog_init): Likewise.
14484 * recog.c (default_target_recog, this_target_recog): New variables.
14485 (get_enabled_alternatives): New function.
14486 (extract_insn): Use it.
14487 (recog_init): New function.
14488 (preprocess_constraints, constrain_operands): Adjust for change to
14489 recog_data.
14490 * postreload.c (reload_cse_simplify_operands): Likewise.
14491 * reload.c (find_reloads): Likewise.
14492 * ira-costs.c (record_reg_classes): Likewise.
14493 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14494 all alternatives after a disabled one would be skipped.
14495 (ira_implicitly_set_insn_hard_regs): Likewise.
14496 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14497 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14498 with enabled_alternatives.
14499 * lra.c (free_insn_recog_data): Update accordingly.
14500 (lra_update_insn_recog_data): Likewise.
14501 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14502 * lra-constraints.c (process_alt_operands): Likewise. Handle
14503 only_alternative as part of the enabled mask.
14504 * target-globals.h (this_target_recog): Declare.
14505 (target_globals): Add a recog field.
14506 (restore_target_globals): Restore this_target_recog.
14507 * target-globals.c: Include recog.h.
14508 (default_target_globals): Initialize recog field.
14509 (save_target_globals): Likewise.
14510 * reginfo.c (reinit_regs): Call recog_init.
14511 * toplev.c (backend_init_target): Likewise.
14512
14513 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14514
14515 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14516 rather than any named insn's code.
14517
14518 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14519
14520 PR libgcc/61152
14521 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14522 * config/arm/arm-cores.def (License): Same.
14523
14524 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14525
14526 * tree.h (decl_comdat_group): Declare.
14527 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14528 * tree.c (decl_comdat_group): Here.
14529
14530 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14531
14532 PR rtl-optimization/61222
14533 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14534 the shift, truncate the PLUS operand to the result mode.
14535
14536 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14537
14538 PR target/61271
14539 * config/i386/i386.c (ix86_rtx_costs)
14540 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14541 Fix condition.
14542
14543 2014-05-26 Martin Jambor <mjambor@suse.cz>
14544
14545 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14546 subreg uses.
14547
14548 2014-05-26 Richard Biener <rguenther@suse.de>
14549
14550 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14551 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14552 Provide specializations.
14553 (wi::int_traits <HOST_WIDE_INT>,
14554 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14555
14556 2014-05-26 Alan Modra <amodra@gmail.com>
14557
14558 PR target/61098
14559 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14560 params and return a bool. Remove dead code. Update comment.
14561 Assert we have a const_int source. Remove bogus code from
14562 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14563 handling of constants > 2G and reg_equal note, from..
14564 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14565 return value. Update comment. If we can, use a new pseudo
14566 for intermediate calculations.
14567 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14568 prototype.
14569 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14570 call to rs6000_emit_set_const in splitter.
14571 (movdi_internal64+2, +3): Likewise.
14572
14573 2014-05-26 Richard Biener <rguenther@suse.de>
14574
14575 * system.h: Define __STDC_FORMAT_MACROS before
14576 including inttypes.h.
14577 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14578 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14579 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14580 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14581 HOST_WIDEST_INT_C): Remove.
14582 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14583 if C99 inttypes.h is not available.
14584 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14585 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14586 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14587 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14588 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14589 (struct output_info): Likewise.
14590 (print_statistics): Adjust.
14591 (dump_bitmap_statistics): Likewise.
14592 * bt-load.c (migrate_btr_defs): Print with PRId64.
14593 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14594 (MAX_SAFE_MULTIPLIER): Adjust.
14595 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14596 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14597 dump_cgraph_node): Likewise.
14598 * final.c (dump_basic_block_info): Likewise.
14599 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14600 * gcov.c (format_gcov): Likewise.
14601 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14602 for calculation.
14603 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14604 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14605 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14606 Use PRId64 for dumping.
14607 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14608 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14609 (add_allocno_hard_regs): Adjust.
14610 * loop-doloop.c (doloop_modify): Print using PRId64.
14611 * loop-iv.c (inverse): Compute in uint64_t.
14612 (determine_max_iter, iv_number_of_iterations): Likewise.
14613 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14614 Print using PRId64.
14615 * lto-streamer-out.c (write_symbol): Use uint64_t.
14616 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14617 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14618 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14619 * modulo-sched.c (const_iteration_count): Use int64_t.
14620 (sms_schedule): Dump using PRId64.
14621 * predict.c (dump_prediction): Likewise.
14622 * pretty-print.h (pp_widest_integer): Remove.
14623 * profile.c (get_working_sets, is_edge_inconsistent,
14624 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14625 * tree-pretty-print.c (pp_double_int): Remove case handling
14626 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14627 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14628 and adjust users.
14629 (pass_optimize_bswap::execute): Remove restriction on hosts.
14630 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14631 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14632 * tree.c (widest_int_cst_value): Remove.
14633 * tree.h (widest_int_cst_value): Likewise.
14634 * value-prof.c (dump_histogram_value): Print using PRId64.
14635 * gengtype.c (main): Also inject int64_t.
14636 * ggc-page.c (struct max_alignment): Use int64_t.
14637 * alloc-pool.c (struct allocation_object_def): Likewise.
14638 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14639 for computation.
14640 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14641 * doc/tm.texi: Regenerated.
14642 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14643 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14644 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14645 mmix_output_register_setting): Use [u]int64_t in prototypes.
14646 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14647 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14648 mmix_output_octa, mmix_output_shifted_value): Adjust.
14649 (mmix_intval): Adjust. Remove unreachable case.
14650 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14651
14652 2014-05-26 Richard Biener <rguenther@suse.de>
14653
14654 * configure.ac: Drop __int64 type check. Insist that we
14655 found uint64_t and int64_t.
14656 * hwint.h (HOST_BITS_PER___INT64): Remove.
14657 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14658 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14659 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14660 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14661 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14662 for dst_q_src_df_rms_cdt.
14663 * configure: Regenerate.
14664 * config.in: Likewise.
14665
14666 2014-05-26 Michael Tautschnig <mt@debian.org>
14667
14668 PR target/61249
14669 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14670 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14671
14672 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14673
14674 PR rtl-optimization/61278
14675 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14676
14677 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14678
14679 PR rtl-optimization/61220
14680 Part of PR rtl-optimization/61225
14681 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14682 insn; skip split_edge for a block with only one successor.
14683
14684 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14685
14686 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14687 for variables.
14688
14689 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14690
14691 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14692 (update_vtable_references): New function.
14693 (function_and_variable_visibility): Rewrite also vtable initializers.
14694 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14695
14696 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14697
14698 * ggc.h (ggc_grow): New function.
14699 * ggc-none.c (ggc_grow): New function.
14700 * ggc-page.c (ggc_grow): Likewise.
14701
14702 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14703
14704 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14705 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14706 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14707 varpool_externally_visible_p, can_replace_by_local_alias,
14708 update_visibility_by_resolution_info, function_and_variable_visibility,
14709 pass_data_ipa_function_and_variable_visibility,
14710 make_pass_ipa_function_and_variable_visibility,
14711 whole_program_function_and_variable_visibility,
14712 pass_data_ipa_whole_program_visibility,
14713 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14714 * cgraph.h (cgraph_local_node_p): Declare.
14715 * ipa-visibility.c: New file.
14716 * Makefile.in (OBJS): Add ipa-visiblity.o
14717
14718 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14719
14720 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14721 that var decl is available.
14722
14723 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14724
14725 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14726 symtab_node pointer.
14727 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14728 (find_decls_types_r): Do not walk COMDAT_GROUP.
14729 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14730 * varasm.c (make_decl_one_only): Use set_comdat_group;
14731 create node if needed.
14732 * ipa-inline-transform.c (save_inline_function_body): Update
14733 way we decl->symtab mapping.
14734 * symtab.c (symtab_hash, hash_node, eq_node
14735 symtab_insert_node_to_hashtable): Remove.
14736 (symtab_register_node): Update.
14737 (symtab_unregister_node): Update.
14738 (symtab_get_node): Reimplement as inline function.
14739 (symtab_add_to_same_comdat_group): Update.
14740 (symtab_dissolve_same_comdat_group_list): Update.
14741 (dump_symtab_base): Update.
14742 (verify_symtab_base): Update.
14743 (symtab_make_decl_local): Update.
14744 (fixup_same_cpp_alias_visibility): Update.
14745 (symtab_nonoverwritable_alias): Update.
14746 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14747 * ipa.c (update_visibility_by_resolution_info): UPdate.
14748 * bb-reorder.c: Include cgraph.h
14749 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14750 with comdat groups.
14751 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14752 * cgraph.c (cgraph_get_create_node): Update.
14753 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14754 and comdat_group_.
14755 (symtab_get_node): Make inline.
14756 (symtab_insert_node_to_hashtable): Remove.
14757 (symtab_can_be_discarded): Update.
14758 (decl_comdat_group): New function.
14759 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14760 Update.
14761 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14762 comdat group name.
14763 (read_comdat_group): New function.
14764 (input_node, input_varpool_node): Use it.
14765 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14766 comdat groups.
14767 * mips.c (mips_start_unique_function): Likewise.
14768 (ix86_code_end): Likewise.
14769 (rs6000_code_end): Likweise.
14770 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14771
14772 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14773
14774 * gengtype-state.c (fatal_reading_state): Bring offline.
14775 * optabs.c (widening_optab_handler): Bring offline.
14776 * optabs.h (widening_optab_handler): Likewise.
14777 * final.c (get_attr_length_1): Likewise.
14778
14779 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14780
14781 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14782
14783 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14784
14785 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14786 (ppc440-compare): Include shift with dot.
14787 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14788 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14789 without dot.
14790 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14791 without dot.
14792 (e6500_sfx2): Include it.
14793 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14794 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14795 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14796 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14797 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14798 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14799 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14800 *lshiftrt_internal1le, *lshiftrt_internal1be,
14801 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14802 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14803 *rotldi3_internal10le, *rotldi3_internal10be,
14804 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14805 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14806 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14807 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14808 define_insns): Use type "shift" in the appropriate alternatives.
14809
14810 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14811
14812 * config/rs6000/rs6000.md (type): Add "logical". Delete
14813 "fast_compare".
14814 (dot): Adjust comment.
14815 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14816 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14817 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14818 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14819 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14820 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14821 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14822 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14823
14824 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14825 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14826 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14827 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14828 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14829 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14830 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14831 * config/rs6000/8540.md (ppc8540_su): Adjust.
14832 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14833 cell-cmp-microcoded): Adjust.
14834 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14835 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14836 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14837 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14838 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14839 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14840 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14841 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14842 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14843 Adjust.
14844 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14845 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14846 Adjust. Adjust comment.
14847 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14848 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14849
14850 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14851
14852 * config/rs6000/rs6000.md (type): Add "add".
14853 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14854 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14855 define_insns): Use it.
14856 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14857
14858 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14859 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14860 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14861 * config/rs6000/601.md (ppc601-integer): Adjust.
14862 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14863 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14864 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14865 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14866 * config/rs6000/8540.md (ppc8540_su): Adjust.
14867 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14868 cell-cmp-microcoded): Adjust.
14869 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14870 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14871 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14872 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14873 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14874 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14875 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14876 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14877 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14878 Adjust.
14879 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14880 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14881 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14882 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14883
14884 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14885
14886 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14887 "delayed_compare", "var_delayed_compare".
14888 (var_shift): New attribute.
14889 (cell_micro): Adjust.
14890 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14891 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14892 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14893 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14894 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14895 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14896 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14897 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14898 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14899 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14900 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14901 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14902 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14903 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14904 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14905 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14906 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14907 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14908 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14909 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14910 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14911 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14912 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14913 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14914 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14915
14916 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14917 * config/rs6000/440.md (ppc440-integer): Adjust.
14918 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14919 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14920 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14921 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14922 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14923 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14924 * config/rs6000/8540.md (ppc8540_su): Adjust.
14925 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14926 cell-cmp-microcoded): Adjust.
14927 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14928 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14929 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14930 e500mc64_delayed): Adjust.
14931 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14932 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14933 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14934 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14935 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14936 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14937 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14938 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14939 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14940 Adjust comment.
14941 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14942 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14943
14944 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14945
14946 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14947 (bits): New mode_attr.
14948 (idiv_ldiv): Delete mode_attr.
14949 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14950 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14951 rs6000_adjust_priority, is_nonpipeline_insn,
14952 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14953
14954 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14955 * config/rs6000/440.md (ppc440-idiv): Adjust.
14956 * config/rs6000/476.md (ppc476-idiv): Adjust.
14957 * config/rs6000/601.md (ppc601-idiv): Adjust.
14958 * config/rs6000/603.md (ppc603-idiv): Adjust.
14959 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14960 ppc620-ldiv): Adjust.
14961 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14962 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14963 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14964 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14965 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14966 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14967 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14968 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14969 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14970 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14971 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14972 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14973 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14974 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14975 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14976 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14977 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14978 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14979
14980 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14981
14982 * config/rs6000/rs6000.md (type): Delete "insert_word",
14983 "insert_dword". Add "insert".
14984 (size): Update comment.
14985 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14986 insn_must_be_first_in_group): Adjust.
14987 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14988 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14989 *insvsi_internal6, insvdi_internal): Adjust.
14990
14991 * config/rs6000/40x.md (ppc403-integer): Adjust.
14992 * config/rs6000/440.md (ppc440-integer): Adjust.
14993 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14994 * config/rs6000/601.md (ppc601-integer): Adjust.
14995 * config/rs6000/603.md (ppc603-integer): Adjust.
14996 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14997 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14998 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14999 * config/rs6000/8540.md (ppc8540_su): Adjust.
15000 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15001 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15002 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15003 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15004 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15005 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15006 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15007 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15008 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15009 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15010 * config/rs6000/power7.md (power7-integer): Adjust.
15011 * config/rs6000/power8.md (power8-1cyc): Adjust.
15012 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15013 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15014
15015 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15016
15017 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15018 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15019 (size): New attribute.
15020 (dot): New attribute.
15021 (cell_micro): Adjust.
15022 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15023 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15024 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15025 umuldi3_highpart): Adjust.
15026 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15027 rs6000_adjust_priority, is_nonpipeline_insn,
15028 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15029
15030 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15031 ppc405-imul3): Adjust.
15032 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15033 * config/rs6000/476.md (ppc476-imul): Adjust.
15034 * config/rs6000/601.md (ppc601-imul): Adjust.
15035 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15036 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15037 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15038 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15039 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15040 Adjust.
15041 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15042 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15043 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15044 cell-imul): Adjust.
15045 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15046 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15047 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15048 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15049 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15050 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15051 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15052 power4-lmul, power4-imul, power4-imul3): Adjust.
15053 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15054 power5-lmul, power5-imul, power5-imul3): Adjust.
15055 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15056 power6-lmul, power6-imul, power6-imul3): Adjust.
15057 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15058 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15059
15060 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15061 rs64a-lmul): Adjust.
15062 * config/rs6000/titan.md (titan_imul): Adjust.
15063
15064 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15065
15066 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15067 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15068 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15069 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15070 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15071 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15072 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15073 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15074 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15075 * config/rs6000/titan.md: Delete nonsensical comment.
15076 (titan_imul): Add type imul3.
15077 (titan_mulhw): Remove type imul3; add type halfmul.
15078
15079 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15080
15081 * config/rs6000/rs6000.md (type): Reorder, reformat.
15082
15083 2014-05-23 Martin Jambor <mjambor@suse.cz>
15084
15085 PR tree-optimization/53787
15086 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15087 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15088 analysis_done, update all uses.
15089 * ipa-prop.c: Include domwalk.h
15090 (param_analysis_info): Removed.
15091 (param_aa_status): New type.
15092 (ipa_bb_info): Likewise.
15093 (func_body_info): Likewise.
15094 (ipa_get_bb_info): New function.
15095 (aa_overwalked): Likewise.
15096 (find_dominating_aa_status): Likewise.
15097 (parm_bb_aa_status_for_bb): Likewise.
15098 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15099 (load_from_unmodified_param): Accept func_body_info as a parameter
15100 instead of parms_ainfo.
15101 (parm_ref_data_preserved_p): Changed to use new param AA info.
15102 (parm_ref_data_pass_through_p): Likewise.
15103 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15104 (compute_complex_assign_jump_func): Changed to use new param AA info.
15105 (compute_complex_ancestor_jump_func): Likewise.
15106 (ipa_compute_jump_functions_for_edge): Likewise.
15107 (ipa_compute_jump_functions): Removed.
15108 (ipa_compute_jump_functions_for_bb): New function.
15109 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15110 declarations down.
15111 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15112 and info, moved variable declarations down.
15113 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15114 node and info.
15115 (ipa_analyze_stmt_uses): Likewise.
15116 (ipa_analyze_params_uses): Removed.
15117 (ipa_analyze_params_uses_in_bb): New function.
15118 (ipa_analyze_controlled_uses): Likewise.
15119 (free_ipa_bb_info): Likewise.
15120 (analysis_dom_walker): New class.
15121 (ipa_analyze_node): Handle node-specific forbidden analysis,
15122 initialize and free func_body_info, use dominator walker.
15123 (ipcp_modif_dom_walker): New class.
15124 (ipcp_transform_function): Create and free func_body_info, use
15125 ipcp_modif_dom_walker, moved a lot of functionality there.
15126
15127 2014-05-23 Marek Polacek <polacek@redhat.com>
15128 Jakub Jelinek <jakub@redhat.com>
15129
15130 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15131 * gcc.c (sanitize_spec_function): Likewise.
15132 * convert.c (convert_to_integer): Include "ubsan.h". Add
15133 floating-point to integer instrumentation.
15134 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15135 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15136 SANITIZE_NONDEFAULT.
15137 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15138 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15139 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15140 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15141 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15142 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15143 float/double/long double.
15144 (ubsan_instrument_float_cast): New function.
15145 * ubsan.h (ubsan_instrument_float_cast): Declare.
15146
15147 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15148
15149 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15150 predicate.
15151 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15152 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15153 Adjust for tailcalling through registers.
15154 * config/aarch64/aarch64.h (enum reg_class): New caller save
15155 register class.
15156 (REG_CLASS_NAMES): Likewise.
15157 (REG_CLASS_CONTENTS): Likewise.
15158 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15159 Allow tailcalling without decls.
15160
15161 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15162
15163 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15164 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15165
15166 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15167 gsi, and variables v_* to v*.
15168
15169 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15170
15171 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15172
15173 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15174
15175 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15176 * omp-low.c: Update accordingly.
15177
15178 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15179 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15180 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15181 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15182 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15183 GF_OMP_TARGET_KIND_UPDATE.
15184
15185 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15186 Explicitly enumerate the expected region types.
15187
15188 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15189
15190 PR other/56955
15191 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15192 documentation; the old documentation didn't clearly state the
15193 constraints on the contents of the pointed-to storage.
15194
15195 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15196
15197 Fix bootstrap error on ia64
15198 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15199 Return default value.
15200
15201 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15202
15203 PR tree-optimization/54733
15204 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15205 (CMPNOP): Define.
15206 (find_bswap_or_nop_load): New.
15207 (find_bswap_1): Renamed to ...
15208 (find_bswap_or_nop_1): This. Also add support for memory source.
15209 (find_bswap): Renamed to ...
15210 (find_bswap_or_nop): This. Also add support for memory source and
15211 detection of bitwise operations equivalent to load in target
15212 endianness.
15213 (execute_optimize_bswap): Likewise. Also move its leading comment back
15214 in place and split statement transformation into ...
15215 (bswap_replace): This.
15216
15217 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15218
15219 PR rtl-optimization/61215
15220 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15221 simplify_gen_subreg until final substitution.
15222
15223 2014-05-23 Alan Modra <amodra@gmail.com>
15224
15225 PR target/61231
15226 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15227 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15228 Use "Y" constraint rather than "m".
15229
15230 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15231
15232 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15233 define.
15234 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15235 New function declaration.
15236 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15237 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15238 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15239 (aarch64_init_builtins) : Initialize builtins
15240 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15241 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15242 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15243 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15244 and __builtins_aarch64_set_fpsr.
15245 (aarch64_atomic_assign_expand_fenv): New function.
15246 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15247 (get_fpcr) : Likewise.
15248 (set_fpsr) : Likewise.
15249 (get_fpsr) : Likewise.
15250 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15251 and UNSPECV_SET_FPSR.
15252 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15253 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15254 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15255
15256 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15257
15258 PR rtl-optimization/60969
15259 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15260 constraints. Set up mem cost for NO_REGS case.
15261
15262 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15263
15264 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15265
15266 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15267
15268 * config/darwin.c: Include "lto-section-names.h".
15269 (LTO_SEGMENT_NAME): Don't define.
15270 * config/i386/winnt.c: Include "lto-section-names.h".
15271 * lto-streamer.c: Include "lto-section-names.h".
15272 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15273 * lto-wrapper.c: Include "lto-section-names.h".
15274 (LTO_SECTION_NAME_PREFIX): Don't define.
15275 * lto-section-names.h: New file.
15276 * cgraphunit.c: Include "lto-section-names.h".
15277
15278 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15279
15280 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15281
15282 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15283
15284 PR target/61208
15285 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15286
15287 2014-05-22 Nick Clifton <nickc@redhat.com>
15288
15289 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15290
15291 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15292
15293 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15294 -> (T)A transformation to integer types.
15295
15296 2014-05-22 Teresa Johnson <tejohnson@google.com>
15297
15298 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15299 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15300 (gcov_rewrite): Use gcov_nonruntime_assert.
15301 (gcov_open): Ditto.
15302 (gcov_write_words): Ditto.
15303 (gcov_write_length): Ditto.
15304 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15305 gcc_assert from IN_LIBGCOV code.
15306 (gcov_read_summary): Use gcov_error to flag profile corruption.
15307 (gcov_sync): Use gcov_nonruntime_assert.
15308 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15309 (gcov_histo_index): Use gcov_nonruntime_assert.
15310 (static void gcov_histogram_merge): Ditto.
15311 (compute_working_sets): Ditto.
15312 * gcov-io.h (gcov_nonruntime_assert): Define.
15313 (gcov_error): Define for !IN_LIBGCOV
15314
15315 2014-05-22 Richard Biener <rguenther@suse.de>
15316
15317 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15318 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15319 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15320 and deallocation site.
15321 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15322 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15323 passing through the incoming points-to set.
15324 (handle_lhs_call): Use flags argument instead of recomputing it.
15325 (find_func_aliases_for_call): Call handle_lhs_call with proper
15326 call return flags.
15327
15328 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15329
15330 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15331 all padding bits in REAL_VALUE_TYPE are cleared.
15332
15333 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15334
15335 Cleanup and improve multipass_dfa_lookahead_guard
15336 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15337 (core2i7_first_cycle_multipass_begin,)
15338 (core2i7_first_cycle_multipass_issue,)
15339 (core2i7_first_cycle_multipass_backtrack): Update signature.
15340 * config/ia64/ia64.c
15341 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15342 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15343 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15344 hook definition.
15345 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15346 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15347 values.
15348 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15349 return values.
15350 * doc/tm.texi: Regenerate.
15351 * doc/tm.texi.in
15352 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15353 * haifa-sched.c (ready_try): Make signed to allow negative values.
15354 (rebug_ready_list_1): Update.
15355 (choose_ready): Simplify.
15356 (sched_extend_ready_list): Update.
15357
15358 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15359
15360 Remove IA64 speculation tweaking flags
15361 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15362 speculation tuning flags.
15363 (msched-prefer-non-data-spec-insns,)
15364 (msched-prefer-non-control-spec-insns): Obsolete options.
15365 * haifa-sched.c (choose_ready): Remove handling of
15366 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15367 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15368 and PREFER_NON_DATA_SPEC.
15369 * sel-sched.c (process_spec_exprs): Remove handling of
15370 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15371
15372 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15373
15374 Improve scheduling debug output
15375 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15376 (advance_one_cycle): Update.
15377 (schedule_insn, queue_to_ready): Add debug printouts.
15378 (debug_ready_list_1): New static function.
15379 (debug_ready_list): Update.
15380 (max_issue): Add debug printouts.
15381 (dump_insn_stream): New static function.
15382 (schedule_block): Use it. Also better indent printouts.
15383
15384 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15385
15386 Fix sched_insn debug counter
15387 * haifa-sched.c (schedule_insn): Update.
15388 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15389 (save_backtrack_point, restore_backtrack_point): Update.
15390 (first_nonscheduled_insn): New static function.
15391 (queue_to_ready, choose_ready): Use it.
15392 (schedule_block): Init nonscheduled_insns_begin.
15393 (sched_emit_insn): Update.
15394
15395
15396 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15397
15398 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15399 to GENERAL_REGS.
15400 (aarch64_secondary_reload) : LikeWise.
15401 (aarch64_class_max_nregs) : Remove CORE_REGS.
15402 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15403 (REG_CLASS_NAMES) : Likewise.
15404 (REG_CLASS_CONTENTS) : LikeWise.
15405 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15406
15407 2014-05-21 Guozhi Wei <carrot@google.com>
15408
15409 PR target/61202
15410 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15411 constraint.
15412 (vqdmulhq_n_s16): Likewise.
15413
15414 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15415
15416 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15417
15418 2014-05-21 Marek Polacek <polacek@redhat.com>
15419
15420 PR sanitizer/61272
15421 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15422
15423 2014-05-21 Martin Jambor <mjambor@suse.cz>
15424
15425 * doc/invoke.texi (Optimize Options): Document parameters
15426 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15427 ipa-cp-array-index-hint-bonus.
15428
15429 2014-05-21 Mark Wielaard <mjw@redhat.com>
15430
15431 PR debug/16063
15432 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15433 version >= 3 or not strict DWARF.
15434 * langhooks.h (struct lang_hooks_for_types): Add
15435 enum_underlying_base_type.
15436 * langhooks.c (lhd_enum_underlying_base_type): New function.
15437 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15438 enum_underlying_base_type.
15439 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15440 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15441 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15442
15443 2014-05-21 Richard Biener <rguenther@suse.de>
15444
15445 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15446
15447 2014-05-21 John Marino <gnugcc@marino.st>
15448
15449 * config.gcc (*-*-dragonfly*): New target.
15450 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15451 * configure: Regenerate.
15452 * config/dragonfly-stdint.h: New.
15453 * config/dragonfly.h: New.
15454 * config/dragonfly.opt: New.
15455 * config/i386/dragonfly.h: New.
15456 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15457
15458 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15459
15460 * tree.def (VOID_CST): New.
15461 * tree-core.h (TI_VOID): New.
15462 * tree.h (void_node): New.
15463 * tree.c (tree_node_structure_for_code, tree_code_size)
15464 (iterative_hash_expr): Handle VOID_CST.
15465 (build_common_tree_nodes): Initialize void_node.
15466
15467 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15468
15469 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15470 functions.
15471 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15472
15473 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15474 more places.
15475
15476 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15477 flag_reorder_blocks_and_partition.
15478 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15479
15480 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15481
15482 PR target/54236
15483 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15484 constraints.
15485 (*addc_r_t): Add new insn_and_split.
15486
15487 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15488
15489 PR middle-end/61252
15490 * omp-low.c (handle_simd_reference): New function.
15491 (lower_rec_input_clauses): Use it. Defer adding reference
15492 initialization even for reduction without placeholder if in simd,
15493 handle it properly later on.
15494
15495 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15496
15497 PR tree-optimization/60899
15498 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15499 assume all static symbols will have definition wile parsing and
15500 check the do have definition later in compilation; check that
15501 variable referring symbol will be output before concluding that
15502 reference is safe; be conservative for referring local statics;
15503 be more precise about when comdat is output in other partition.
15504
15505 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15506
15507 PR bootstrap/60984
15508 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15509 parameter.
15510 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15511 (ipa_inline): Loop inline_to_all_callers until no more aliases
15512 are removed.
15513
15514 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15515
15516 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15517 set writeonly flag only for vars actually written to.
15518
15519 2014-05-20 Dehao Chen <dehao@google.com>
15520
15521 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15522 and callee count to get clone count.
15523 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15524 count in copy_body.
15525
15526 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15527
15528 PR rtl-optimization/61243
15529 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15530
15531 2014-05-20 Xinliang David Li <davidxl@google.com>
15532
15533 * cgraphunit.c (walk_polymorphic_call_targets): Add
15534 dbgcnt and fopt-info support.
15535 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15536 * ipa-devirt.c (ipa_devirt): Ditto.
15537 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15538 * ipa.c (walk_polymorphic_call_targets): Ditto.
15539 * gimple-fold.c (fold_gimple_assign): Ditto.
15540 (gimple_fold_call): Ditto.
15541 * dbgcnt.def: New counter.
15542
15543 2014-05-20 DJ Delorie <dj@redhat.com>
15544
15545 * config/msp430/msp430.md (split): Don't allow subregs when
15546 splitting SImode adds.
15547 (andneghi): Fix subtraction logic.
15548 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15549
15550 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15551
15552 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15553 symbols.
15554 * except.c (switch_to_exception_section, resolve_unique_section,
15555 get_named_text_section, default_function_rodata_section,
15556 align_variable, get_block_for_decl, default_section_type_flags):
15557 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15558 * symtab.c (symtab_add_to_same_comdat_group,
15559 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15560 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15561 Likewise.
15562 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15563 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15564 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15565 (c6x_function_in_section_p): Likewise.
15566 * config/darwin.c (machopic_select_section): Likewise.
15567 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15568 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15569 * config/mep/mep.c (mep_select_section): LIkewise.
15570 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15571
15572 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15573
15574 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15575 EH region of calls to pure functions that can throw an exception.
15576 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15577 (copy_reference_ops_from_call): Also copy the EH region of the call if
15578 it can throw an exception.
15579
15580 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15581
15582 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15583 nested VEC_SELECTs that are inverses of each other.
15584
15585 2014-05-20 Richard Biener <rguenther@suse.de>
15586
15587 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15588 (extract_and_process_scc_for_name): not here.
15589 (cond_dom_walker::before_dom_children): Only process
15590 stmts that end the BB in interesting ways.
15591 (run_scc_vn): Mark param uses as visited.
15592
15593 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15594
15595 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15596 arm_restrict_it.
15597
15598 2014-05-20 Nick Clifton <nickc@redhat.com>
15599
15600 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15601 (msp430_gimplify_va_arg_expr): New function.
15602 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15603
15604 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15605 operand 0 in order to prevent confusion about the number of
15606 registers involved.
15607
15608 2014-05-20 Richard Biener <rguenther@suse.de>
15609
15610 PR tree-optimization/61221
15611 * tree-ssa-pre.c (el_to_update): Remove.
15612 (eliminate_dom_walker::before_dom_children): Handle released
15613 VDEFs by value-numbering them to the associated VUSE. Update
15614 stmt immediately for substituted call address.
15615 (eliminate): Remove delayed stmt updating code.
15616 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15617 possibly late re-numbered vuses.
15618 (vn_reference_lookup_2): Adjust.
15619 (vn_reference_lookup_pieces): Likewise.
15620 (vn_reference_lookup): Likewise.
15621
15622 2014-05-20 Richard Biener <rguenther@suse.de>
15623
15624 * config.gcc: Remove need_64bit_hwint.
15625 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15626 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15627 it to be true.
15628 * config.in: Regenerate.
15629 * configure: Likewise.
15630
15631 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15632
15633 * doc/extend.texi: Create Label Attributes section,
15634 move all label attributes into it and reference it.
15635
15636 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15637
15638 * arm.c (thumb1_reorg): When scanning backwards skip anything
15639 that's not a proper insn.
15640
15641 2014-05-19 Richard Biener <rguenther@suse.de>
15642
15643 PR tree-optimization/61221
15644 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15645 Do nothing for unreachable blocks.
15646 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15647 Improve unreachability detection.
15648
15649 2014-05-19 Richard Biener <rguenther@suse.de>
15650
15651 PR tree-optimization/61209
15652 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15653
15654 2014-05-19 Nick Clifton <nickc@redhat.com>
15655
15656 * except.c (init_eh): Fix computation of builtin setjmp buffer
15657 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15658
15659 2014-05-19 Richard Biener <rguenther@suse.de>
15660
15661 PR tree-optimization/61184
15662 * tree-vrp.c (is_negative_overflow_infinity): Use
15663 TREE_OVERFLOW_P and do that check first.
15664 (is_positive_overflow_infinity): Likewise.
15665 (is_overflow_infinity): Likewise.
15666 (vrp_operand_equal_p): Properly treat operands with
15667 differing overflow as not equal.
15668
15669 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15670
15671 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15672 shift simplification where it was intended.
15673
15674 2014-05-19 Christian Bruel <christian.bruel@st.com>
15675
15676 PR target/61195
15677 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15678
15679 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15680
15681 PR target/61084
15682 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15683 than wide_int.
15684
15685 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15686
15687 * reg-notes.def (CROSSING_JUMP): Likewise.
15688 * rtl.h (rtx_def): Update comment for jump flag.
15689 (CROSSING_JUMP_P): Define.
15690 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15691 of a REG_CROSSING_JUMP note.
15692 * cfghooks.c (tidy_fallthru_edges): Likewise.
15693 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15694 * emit-rtl.c (try_split): Likewise.
15695 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15696 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15697 * jump.c (redirect_jump_2): Likewise.
15698 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15699 (relax_delay_slots): Likewise.
15700 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15701 (bbit_di): Likewise.
15702 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15703 * config/sh/sh.md (jump_compact): Likewise.
15704 * bb-reorder.c (rotate_loop): Likewise.
15705 (pass_duplicate_computed_gotos::execute): Likewise.
15706 (add_reg_crossing_jump_notes): Rename to...
15707 (update_crossing_jump_flags): ...this.
15708 (pass_partition_blocks::execute): Update accordingly.
15709
15710 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15711
15712 * tree.h: Remove extraneous template <>.
15713
15714 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15715
15716 * ipa.c (symtab_remove_unreachable_nodes): Remove
15717 symbol from comdat group if its body was eliminated.
15718 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15719 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15720 (symtab_unregister_node): ... this one.
15721 (verify_symtab_base): More strict checking of comdats.
15722 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15723
15724 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15725
15726 * tree-pass.h (make_pass_ipa_comdats): New pass.
15727 * timevar.def (TV_IPA_COMDATS): New timevar.
15728 * passes.def (pass_ipa_comdats): Add.
15729 * Makefile.in (OBJS): Add ipa-comdats.o
15730 * ipa-comdats.c: New file.
15731
15732 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15733
15734 * ipa.c (update_visibility_by_resolution_info): New function.
15735 (function_and_variable_visibility): Use it.
15736
15737 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15738
15739 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15740 New functions.
15741 (FOR_EACH_DEFINED_SYMBOL): New macro.
15742 (varpool_first_static_initializer, varpool_next_static_initializer,
15743 varpool_first_defined_variable, varpool_next_defined_variable):
15744 Fix comments.
15745 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15746
15747 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15748
15749 * ggc-page.c (ggc_handle_finalizers): Add comment.
15750
15751 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15752
15753 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15754 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15755 (ggc_internal_cleared_alloc): Likewise.
15756 * ggc-page.c (finalizer): New class.
15757 (vec_finalizer): Likewise.
15758 (globals::finalizers): New member.
15759 (globals::vec_finalizers): Likewise.
15760 (ggc_internal_alloc): Record the finalizer if any for the block being
15761 allocated.
15762 (ggc_handle_finalizers): New function.
15763 (ggc_collect): Call ggc_handle_finalizers.
15764 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15765 finalizer.
15766 (ggc_internal_cleared_alloc): Likewise.
15767 (finalize): New function.
15768 (need_finalization_p): Likewise.
15769 (ggc_alloc): Install the type's destructor as the finalizer if it
15770 might do something.
15771 (ggc_cleared_alloc): Likewise.
15772 (ggc_vec_alloc): Likewise.
15773 (ggc_cleared_vec_alloc): Likewise.
15774
15775 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15776
15777 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15778
15779 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15780
15781 * alias.c (record_alias_subset): Adjust.
15782 * bitmap.c (bitmap_element_allocate): Likewise.
15783 (bitmap_gc_alloc_stat): Likewise.
15784 * cfg.c (init_flow): Likewise.
15785 (alloc_block): Likewise.
15786 (unchecked_make_edge): Likewise.
15787 * cfgloop.c (alloc_loop): Likewise.
15788 (flow_loops_find): Likewise.
15789 (rescan_loop_exit): Likewise.
15790 * cfgrtl.c (init_rtl_bb_info): Likewise.
15791 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15792 (cgraph_allocate_node): Likewise.
15793 (cgraph_create_edge_1): Likewise.
15794 (cgraph_allocate_init_indirect_info): Likewise.
15795 * cgraphclones.c (cgraph_clone_edge): Likewise.
15796 * cgraphunit.c (add_asm_node): Likewise.
15797 (init_lowered_empty_function): Likewise.
15798 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15799 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15800 (alpha_use_linkage): Likewise.
15801 * config/arc/arc.c (arc_init_machine_status): Likewise.
15802 * config/arm/arm.c (arm_init_machine_status): Likewise.
15803 * config/avr/avr.c (avr_init_machine_status): Likewise.
15804 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15805 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15806 * config/cris/cris.c (cris_init_machine_status): Likewise.
15807 * config/darwin.c (machopic_indirection_name): Likewise.
15808 (darwin_build_constant_cfstring): Likewise.
15809 (darwin_enter_string_into_cfstring_table): Likewise.
15810 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15811 * config/frv/frv.c (frv_init_machine_status): Likewise.
15812 * config/i386/i386.c (get_dllimport_decl): Likewise.
15813 (ix86_init_machine_status): Likewise.
15814 (assign_386_stack_local): Likewise.
15815 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15816 (i386_pe_maybe_record_exported_symbol): Likewise.
15817 (i386_pe_record_stub): Likewise.
15818 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15819 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15820 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15821 (m32c_note_pragma_address): Likewise.
15822 * config/mep/mep.c (mep_init_machine_status): Likewise.
15823 (mep_note_pragma_flag): Likewise.
15824 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15825 (mips16_local_alias): Likewise.
15826 (mips_init_machine_status): Likewise.
15827 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15828 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15829 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15830 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15831 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15832 * config/pa/pa.c (pa_init_machine_status): Likewise.
15833 (pa_get_deferred_plabel): Likewise.
15834 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15835 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15836 (rs6000_init_machine_status): Likewise.
15837 (output_toc): Likewise.
15838 * config/s390/s390.c (s390_init_machine_status): Likewise.
15839 * config/score/score.c (score_output_external): Likewise.
15840 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15841 * config/spu/spu.c (spu_init_machine_status): Likewise.
15842 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15843 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15844 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15845 * coverage.c (coverage_end_function): Likewise.
15846 * dbxout.c (dbxout_init): Likewise.
15847 * doc/gty.texi: Don't mention variable_size attribute.
15848 * dwarf2cfi.c (new_cfi): Adjust.
15849 (new_cfi_row): Likewise.
15850 (copy_cfi_row): Likewise.
15851 (create_cie_data): Likewise.
15852 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15853 (new_loc_descr): Likewise.
15854 (find_AT_string_in_table): Likewise.
15855 (add_addr_table_entry): Likewise.
15856 (new_die): Likewise.
15857 (add_var_loc_to_decl): Likewise.
15858 (clone_die): Likewise.
15859 (clone_as_declaration): Likewise.
15860 (break_out_comdat_types): Likewise.
15861 (new_loc_list): Likewise.
15862 (add_loc_descr_to_each): Likewise.
15863 (add_location_or_const_value_attribute): Likewise.
15864 (add_linkage_name): Likewise.
15865 (lookup_filename): Likewise.
15866 (dwarf2out_var_location): Likewise.
15867 (new_line_info_table): Likewise.
15868 (dwarf2out_init): Likewise.
15869 (mem_loc_descriptor): Likewise.
15870 (loc_descriptor): Likewise.
15871 (add_const_value_attribute): Likewise.
15872 (tree_add_const_value_attribute): Likewise.
15873 (comp_dir_string): Likewise.
15874 (dwarf2out_vms_debug_main_pointer): Likewise.
15875 (string_cst_pool_decl): Likewise.
15876 * emit-rtl.c (set_mem_attrs): Likewise.
15877 (get_reg_attrs): Likewise.
15878 (start_sequence): Likewise.
15879 (init_emit): Likewise.
15880 (init_emit_regs): Likewise.
15881 * except.c (init_eh_for_function): Likewise.
15882 (gen_eh_region): Likewise.
15883 (gen_eh_region_catch): Likewise.
15884 (gen_eh_landing_pad): Likewise.
15885 (add_call_site): Likewise.
15886 * function.c (add_frame_space): Likewise.
15887 (insert_temp_slot_address): Likewise.
15888 (assign_stack_temp_for_type): Likewise.
15889 (get_hard_reg_initial_val): Likewise.
15890 (allocate_struct_function): Likewise.
15891 (prepare_function_start): Likewise.
15892 (types_used_by_var_decl_insert): Likewise.
15893 * gengtype.c (variable_size_p): Remove function.
15894 (enum alloc_quantity): Remove enum.
15895 (write_typed_alloc_def): Remove function.
15896 (write_typed_struct_alloc_def): Likewise.
15897 (write_typed_typedef_alloc_def): Likewise.
15898 (write_typed_alloc_defns): Likewise.
15899 (main): Adjust.
15900 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15901 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15902 * ggc.h (ggc_alloc): new function.
15903 (ggc_cleared_alloc): Likewise.
15904 (ggc_vec_alloc): Template on type of vector element, and remove
15905 element size argument.
15906 (ggc_cleared_vec_alloc): Likewise.
15907 * gimple.c (gimple_build_omp_for): Adjust.
15908 (gimple_copy): Likewise.
15909 * ipa-cp.c (get_replacement_map): Likewise.
15910 (find_aggregate_values_for_callers_subset): Likewise.
15911 (known_aggs_to_agg_replacement_list): Likewise.
15912 * ipa-devirt.c (get_odr_type): Likewise.
15913 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15914 (read_agg_replacement_chain): Likewise.
15915 * loop-iv.c (get_simple_loop_desc): Likewise.
15916 * lto-cgraph.c (input_node_opt_summary): Likewise.
15917 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15918 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15919 (input_eh_region): Likewise.
15920 (input_eh_lp): Likewise.
15921 (input_cfg): Likewise.
15922 * optabs.c (set_optab_libfunc): Likewise.
15923 (init_tree_optimization_optabs): Likewise.
15924 (set_conv_libfunc): Likewise.
15925 * passes.c (do_per_function_toporder): Likewise.
15926 * rtl.h: Don't use variable_size gty attribute.
15927 * sese.c (if_region_set_false_region): Adjust.
15928 * stringpool.c (gt_pch_save_stringpool): Likewise.
15929 * target-globals.c (save_target_globals): Likewise.
15930 * toplev.c (general_init): Likewise.
15931 * trans-mem.c (record_tm_replacement): Likewise.
15932 (split_bb_make_tm_edge): Likewise.
15933 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15934 * tree-data-ref.h (lambda_vector_new): Likewise.
15935 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15936 * tree-iterator.c (tsi_link_before): Likewise.
15937 (tsi_link_after): Likewise.
15938 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15939 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15940 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15941 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15942 * tree-ssa.c (init_tree_ssa): Adjust.
15943 * tree-ssanames.c (set_range_info): Likewise.
15944 (get_ptr_info): Likewise.
15945 (duplicate_ssa_name_ptr_info): Likewise.
15946 (duplicate_ssa_name_range_info): Likewise.
15947 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15948 (unpack_ts_fixed_cst_value_fields): Likewise.
15949 * tree.c (build_fixed): Likewise.
15950 (build_real): Likewise.
15951 (build_string): Likewise.
15952 (decl_priority_info): Likewise.
15953 (decl_debug_expr_insert): Likewise.
15954 (decl_value_expr_insert): Likewise.
15955 (decl_debug_args_insert): Likewise.
15956 (type_hash_add): Likewise.
15957 (build_omp_clause): Likewise.
15958 * ubsan.c (decl_for_type_insert): Likewise.
15959 * varasm.c (get_unnamed_section): Likewise.
15960 (get_noswitch_section): Likewise.
15961 (get_section): Likewise.
15962 (get_block_for_section): Likewise.
15963 (create_block_symbol): Likewise.
15964 (build_constant_desc): Likewise.
15965 (create_constant_pool): Likewise.
15966 (force_const_mem): Likewise.
15967 (record_tm_clone_pair): Likewise.
15968 * varpool.c (varpool_create_empty_node): Likewise.
15969
15970 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15971
15972 * dwarf2out.c (tree_add_const_value_attribute): Call
15973 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15974 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15975 instead of ggc_internal_<x>alloc_stat.
15976 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15977 (ggc_realloc): Likewise.
15978 * ggc-none.c (ggc_internal_alloc): Likewise.
15979 (ggc_internal_cleared_alloc): Likewise.
15980 * ggc-page.c: Likewise.
15981 * ggc.h (ggc_internal_alloc_stat): Likewise.
15982 (ggc_internal_alloc): Remove macro.
15983 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15984 (ggc_internal_cleared_alloc): Remove macro.
15985 (GGC_RESIZEVEC): Adjust.
15986 (ggc_resizevar): Remove macro.
15987 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15988 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15989 (ggc_internal_vec_cleared_alloc): Remove macro.
15990 (ggc_alloc_atomic_stat): Drop _stat suffix.
15991 (ggc_alloc_atomic): Remove macro.
15992 (ggc_alloc_cleared_atomic): Remove macro.
15993 (ggc_alloc_string_stat): Drop _stat suffix.
15994 (ggc_alloc_string): Remove macro.
15995 (ggc_alloc_rtx_def_stat): Adjust.
15996 (ggc_alloc_tree_node_stat): Likewise.
15997 (ggc_alloc_cleared_tree_node_stat): Likewise.
15998 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15999 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16000 * gimple.c (gimple_build_omp_for): Likewise.
16001 (gimple_copy): Likewise.
16002 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16003 * toplev.c (realloc_for_line_map): Adjust.
16004 * tree-data-ref.h (lambda_vector_new): Likewise.
16005 * tree-phinodes.c (allocate_phi_node): Likewise.
16006 * tree.c (grow_tree_vec_stat): Likewise.
16007 * vec.h (va_gc::reserve): Adjust.
16008
16009 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16010
16011 * config/microblaze/microblaze.c (break_handler): New Declaration.
16012 (microblaze_break_function_p,microblaze_is_break_handler): New.
16013 (compute_frame_size): Use microblaze_break_function_p.
16014 Add the test of break_handler.
16015 (microblaze_function_prologue) : Add the test of variable
16016 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16017 (microblaze_function_epilogue) : Add the test of break_handler.
16018 (microblaze_globalize_label) : Add the test of break_handler.
16019 Check the name by BREAK_HANDLER_NAME.
16020
16021 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16022
16023 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16024 microblaze_is_break_handler test.
16025 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16026 Use SYMBOL_REF_DECL.
16027
16028 * config/microblaze/microblaze-protos.h
16029 (microblaze_break_function_p,microblaze_is_break_handler):
16030 New Declaration.
16031
16032 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16033 new MicroBlaze break_handler functions.
16034
16035 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16036
16037 * doc/extend.texi (Size of an asm): Move node text according
16038 to its @menu entry position.
16039
16040 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16041
16042 PR tree-optimization/61140
16043 PR tree-optimization/61150
16044 PR tree-optimization/61197
16045 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16046
16047 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16048
16049 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16050
16051 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16052
16053 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16054 __SIZEOF_INT128__ is defined.
16055
16056 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16057
16058 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16059 (rs6000_delegitimize_address): Use it.
16060
16061 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16062
16063 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16064 inplace argument. Store the new address in the original MEM when true.
16065 * emit-rtl.c (change_address_1): Likewise.
16066 (adjust_address_1, adjust_automodify_address_1, offset_address):
16067 Update accordingly.
16068 * rtl.h (plus_constant): Add an inplace argument.
16069 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16070 when true. Avoid generating (plus X (const_int 0)).
16071 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16072 in-place. Pass true to plus_constant.
16073 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16074
16075 2014-05-16 Dehao Chen <dehao@google.com>
16076
16077 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16078
16079 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16080
16081 PR target/54089
16082 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16083 patterns.
16084 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16085
16086 2014-05-16 Dehao Chen <dehao@google.com>
16087
16088 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16089 optimize_function_for_size_p.
16090 * regs.h (REG_FREQ_FROM_BB): Likewise.
16091
16092 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16093
16094 PR target/51244
16095 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16096 negt_reg_operand cases.
16097 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16098 predicate.
16099 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16100
16101 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16102
16103 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16104 target variants.
16105
16106 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16107
16108 Revert:
16109 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16110
16111 * tree-cfg.c (dump_function_to_file): Dump the return type of
16112 functions, in a line to itself before the function body, mimicking
16113 the layout of a C function.
16114
16115 2014-05-16 Dehao Chen <dehao@google.com>
16116
16117 * cfghooks.c (make_forwarder_block): Use direct computation to
16118 get fall-through edge's count and frequency.
16119
16120 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16121
16122 * config/arc/arc.c (arc_init): Fix typo in error message.
16123 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16124 (split_stack_prologue_scratch_regno): Likewise.
16125 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16126 word from error message.
16127
16128 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16129
16130 * ira-costs.c: Fix typo in comment.
16131
16132 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16133
16134 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16135
16136 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16137
16138 * varpool.c (dump_varpool_node): Dump write-only flag.
16139 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16140 write-only flag.
16141 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16142 write-only variables.
16143 * ipa.c (process_references): New function.
16144 (set_readonly_bit): New function.
16145 (set_writeonly_bit): New function.
16146 (clear_addressable_bit): New function.
16147 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16148 fix handling of aliases.
16149 * cgraph.h (struct varpool_node): Add writeonly flag.
16150
16151 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16152
16153 PR rtl-optimization/60969
16154 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16155 Calculate costs for this case.
16156
16157 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16158
16159 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16160 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16161
16162 2014-05-16 Richard Biener <rguenther@suse.de>
16163
16164 PR tree-optimization/61194
16165 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16166 bool patterns ending in a COND_EXPR.
16167
16168 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16169
16170 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16171
16172 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16173
16174 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16175 where we were unable to cost an RTX.
16176
16177 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16178
16179 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16180 HIGH, LO_SUM.
16181
16182 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16183 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16184
16185 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16186
16187 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16188 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16189
16190 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16191 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16192
16193 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16194 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16195
16196 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16197 operators.
16198
16199 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16200 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16201
16202 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16203 DIV/MOD.
16204
16205 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16206 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16207
16208 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16209 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16210
16211 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16212 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16213
16214 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16215 rotates and shifts.
16216
16217 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16218 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16219
16220 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16221 ZERO_EXTEND and SIGN_EXTEND better.
16222
16223 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16224 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16225
16226 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16227 logical operations.
16228
16229 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16230 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16231
16232 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16233 costs when costing loads and stores to memory.
16234
16235 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16236 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16237
16238 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16239 for SET RTX.
16240
16241 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16242
16243 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
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_strip_shift_or_extend): Rename
16249 to...
16250 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16251 well formed.
16252 (aarch64_rtx_mult_cost): New.
16253 (aarch64_rtx_costs): Use it, refactor as appropriate.
16254
16255 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16256 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16257
16258 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16259 emit instructions, return number of instructions which would
16260 be emitted.
16261 (aarch64_add_constant): Update call to aarch64_build_constant.
16262 (aarch64_output_mi_thunk): Likewise.
16263 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16264 a CONST_DOUBLE.
16265
16266 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16267
16268 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16269 (TARGET_RTX_COSTS): Call it.
16270
16271 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16272
16273 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16274 (cortexa57_vector_cost): Likewise.
16275 (cortexa57_tunings): Use them.
16276
16277 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16278
16279 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16280 (cpu_addrcost_table): Use it.
16281 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16282 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16283 move it.
16284
16285 2014-05-16 Richard Biener <rguenther@suse.de>
16286
16287 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16288 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16289 (visit_phi): Ignore edges marked as not executable.
16290 (class cond_dom_walker): New.
16291 (cond_dom_walker::before_dom_children): Value-number
16292 control statements and mark successor edges as not
16293 executable if possible.
16294 (run_scc_vn): First walk all control statements in
16295 dominator order, marking edges as not executable.
16296 * tree-inline.c (copy_edges_for_bb): Be not confused
16297 about random edge flags.
16298
16299 2014-05-16 Richard Biener <rguenther@suse.de>
16300
16301 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16302
16303 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16304
16305 PR target/61193
16306 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16307 (__TM_simple_begin): Use it.
16308 (__TM_begin): Likewise.
16309
16310 2014-05-15 Martin Jambor <mjambor@suse.cz>
16311
16312 PR ipa/61085
16313 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16314 type_preserved flag when the indirect edge is polymorphic.
16315
16316 2014-05-15 Martin Jambor <mjambor@suse.cz>
16317
16318 PR tree-optimization/61090
16319 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16320 build_ref_for_model.
16321
16322 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16323
16324 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16325 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16326
16327 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16328
16329 PR tree-optimization/61158
16330 * fold-const.c (fold_binary_loc): If X is zero-extended and
16331 shiftc >= prec, make sure zerobits is all ones instead of
16332 invoking undefined behavior.
16333
16334 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16335
16336 * regcprop.h: New file.
16337 * regcprop.c (skip_debug_insn_p): New decl.
16338 (replace_oldest_value_reg): Check skip_debug_insn_p.
16339 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16340 * shrink-wrap.c: Include regcprop.h.
16341 (prepare_shrink_wrap): Call
16342 copyprop_hardreg_forward_bb_without_debug_insn.
16343
16344 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16345
16346 * shrink-wrap.h: Update comment.
16347 * shrink-wrap.c: Update comment.
16348 (next_block_for_reg): Rename to live_edge_for_reg.
16349 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16350 (move_insn_for_shrink_wrap): Split live_edge.
16351 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16352
16353 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16354
16355 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16356 Delete.
16357 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16358 * config/sparc/sparc.md (fptype_ut699): New attribute.
16359 (in_branch_delay): Return false if -mfix-ut699 is specified and
16360 fptype_ut699 is set to single.
16361 (truncdfsf2): Add fptype_ut699 attribute.
16362 (fix_truncdfsi2): Likewise.
16363 (floatsisf2): Change fptype attribute.
16364 (fix_truncsfsi2): Likewise.
16365 (negtf2_notv9): Delete.
16366 (negtf2_v9): Likewise.
16367 (negtf2_hq): New instruction.
16368 (negtf2): New instruction and splitter.
16369 (negdf2_notv9): Rewrite.
16370 (abstf2_notv9): Delete.
16371 (abstf2_hq_v9): Likewise.
16372 (abstf2_v9): Likewise.
16373 (abstf2_hq): New instruction.
16374 (abstf2): New instruction and splitter.
16375 (absdf2_notv9): Rewrite.
16376
16377 2014-05-14 Cary Coutant <ccoutant@google.com>
16378
16379 PR debug/61013
16380 * opts.c (common_handle_option): Don't special-case "-g".
16381 (set_debug_level): Default to at least level 2 with "-g".
16382
16383 2014-05-14 DJ Delorie <dj@redhat.com>
16384
16385 * config/msp430/msp430.c (msp430_builtin): Add
16386 MSP430_BUILTIN_DELAY_CYCLES.
16387 (msp430_init_builtins): Register void __delay_cycles(long long).
16388 (msp430_builtin_decl): Add it.
16389 (cg_magic_constant): New.
16390 (msp430_expand_delay_cycles): New.
16391 (msp430_expand_builtin): Call it.
16392 (msp430_print_operand_raw): Change integer printing from "int" to
16393 HOST_WIDE_INT.
16394 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16395 (delay_cycles_start): New.
16396 (delay_cycles_end): New.
16397 (delay_cycles_32): New.
16398 (delay_cycles_32x): New.
16399 (delay_cycles_16): New.
16400 (delay_cycles_16x): New.
16401 (delay_cycles_2): New.
16402 (delay_cycles_1): New.
16403 * doc/extend.texi: Document __delay_cycles().
16404
16405 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16406
16407 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16408 length attribute computation.
16409
16410 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16411
16412 PR debug/61188
16413 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16414
16415 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16416
16417 PR target/61084
16418 * config/sparc/sparc.md: Fix types of low and high in DI constant
16419 splitter. Use gen_int_mode in some other splitters.
16420
16421 2014-05-14 Martin Jambor <mjambor@suse.cz>
16422
16423 PR ipa/60897
16424 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16425
16426 2014-05-14 James Norris <jnorris@codesourcery.com>
16427
16428 * omp-low.c (expand_parallel_call): Remove shadow variable.
16429 (expand_omp_taskreg): Likewise.
16430
16431 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16432
16433 * common/config/i386/i386-common.c
16434 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16435 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16436 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16437 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16438 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16439 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16440 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16441 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16442 xsavecintrin.h, xsavesintrin.h.
16443 (x86_64-*-*): Ditto.
16444 * config/i386/clflushoptintrin.h: New.
16445 * config/i386/xsavecintrin.h: Ditto.
16446 * config/i386/xsavesintrin.h: Ditto.
16447 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16448 (bit_XSAVES): Ditto.
16449 (bit_XSAVES): Ditto.
16450 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16451 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16452 -mno-clflushopt.
16453 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16454 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16455 OPTION_MASK_ISA_XSAVES.
16456 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16457 -mxsavec, -mxsaves.
16458 (PTA_CLFLUSHOPT) Define.
16459 (PTA_XSAVEC): Ditto.
16460 (PTA_XSAVES): Ditto.
16461 (ix86_option_override_internal): Handle new options.
16462 (ix86_valid_target_attribute_inner_p): Ditto.
16463 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16464 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16465 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16466 (bdesc_special_args): Add __builtin_ia32_xsaves,
16467 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16468 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16469 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16470 (ix86_expand_builtin): Handle new builtins.
16471 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16472 (TARGET_CLFLUSHOPT_P): Ditto.
16473 (TARGET_XSAVEC): Ditto.
16474 (TARGET_XSAVEC_P): Ditto.
16475 (TARGET_XSAVES): Ditto.
16476 (TARGET_XSAVES_P): Ditto.
16477 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16478 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16479 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16480 (ANY_XRSTOR): New.
16481 (ANY_XRSTOR64): Ditto.
16482 (xrstor): Ditto.
16483 (xrstor): Change into <xrstor>.
16484 (xrstor_rex64): Change into <xrstor>_rex64.
16485 (xrstor64): Change into <xrstor>64
16486 (clflushopt): New.
16487 * config/i386/i386.opt (mclflushopt): New.
16488 (mxsavec): Ditto.
16489 (mxsaves): Ditto.
16490 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16491 xsavecintrin.h.
16492 * doc/invoke.texi: Document new options.
16493
16494 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16495
16496 PR rtl-optimization/60866
16497 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16498 Default it to -1. Pass it down to init_simplejump_data.
16499 (init_simplejump_data): New parameter old_seqno. Pass it down
16500 to get_seqno_for_a_jump.
16501 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16502 initializing new jump seqno as a last resort. Add comment.
16503 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16504 jump and pass it down to sel_init_new_insn.
16505 (sel_redirect_edge_and_branch_force): Likewise.
16506
16507 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16508
16509 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16510 shifted values to avoid build warning.
16511
16512 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16513
16514 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16515 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16516 (cfg_layout_merge_blocks): Likewise.
16517 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16518
16519 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16520
16521 PR rtl-optimization/60901
16522 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16523 bb predecessor belongs to the same scheduling region. Adjust comment.
16524
16525 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16526
16527 * doc/sourcebuild.texi: (dfp_hw): Document.
16528 (p8vector_hw): Likewise.
16529 (powerpc_eabi_ok): Likewise.
16530 (powerpc_elfv2): Likewise.
16531 (powerpc_htm_ok): Likewise.
16532 (ppc_recip_hw): Likewise.
16533 (vsx_hw): Likewise.
16534
16535 2014-05-13 Cary Coutant <ccoutant@google.com>
16536
16537 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16538
16539 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16540
16541 * gengtype-parse.c (require3): Eliminate in favor of...
16542 (require4): New.
16543 (require_template_declaration): Update to support optional single *
16544 on a type.
16545
16546 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16547 (create_user_defined_type): Handle a single level of explicit
16548 pointerness within template arguments.
16549 (struct write_types_data): Add field "kind".
16550 (filter_type_name): Handle "*" character.
16551 (write_user_func_for_structure_ptr): Require a write_types_data
16552 rather than just a prefix string, so that we can look up the kind
16553 of the wtd and use it as an index into wrote_user_func_for_ptr,
16554 ensuring that such functions are written at most once. Support
16555 subclasses by invoking the marking function of the ultimate base class.
16556 (write_user_func_for_structure_body): Require a write_types_data
16557 rather than just a prefix string, so that we can pass this to
16558 write_user_func_for_structure_ptr.
16559 (write_func_for_structure): Likewise.
16560 (ggc_wtd): Add initializer of new "kind" field.
16561 (pch_wtd): Likewise.
16562
16563 * gengtype.h (enum write_types_kinds): New.
16564 (struct type): Add field wrote_user_func_for_ptr to the "s"
16565 union member.
16566
16567 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16568
16569 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16570 instead of const_binop.
16571 (fold_binary_loc): Likewise.
16572
16573 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16574
16575 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16576 calculation to match get_ref_base_and_extent.
16577
16578 2014-05-13 Catherine Moore <clm@codesourcery.com>
16579 Sandra Loosemore <sandra@codesourcery.com>
16580
16581 * configure.ac: Fix assembly for explicit JALR relocation check.
16582 * configure: Regenerate.
16583
16584 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16585
16586 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16587 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16588 Remove associated type declarations and initialisations.
16589 (arm_expand_neon_builtin): Likewise.
16590 (neon_emit_pair_result_insn): Delete.
16591 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16592 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16593 (neon_vzip<mode>): Likewise.
16594 (neon_vuzp<mode>): Likewise.
16595
16596 2014-05-13 Richard Biener <rguenther@suse.de>
16597
16598 PR ipa/60973
16599 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16600 it needs revisiting whether the call still may be tail-called.
16601
16602 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16603
16604 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16605 * rtl.h (block_symbol): Reduce number of fields to 2.
16606 (rtx_def): Add u2.symbol_ref_flags.
16607 (SYMBOL_REF_FLAGS): Use it.
16608 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16609 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16610 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16611 Lower index of SYMBOL_REF_DATA.
16612 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16613 Print SYMBOL_REF_FLAGS at the same time.
16614 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16615
16616 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16617
16618 * rtl.def (VAR_LOCATION): Remove "i" field.
16619 * rtl.h (rtx_def): Add u2.var_location_status.
16620 (PAT_VAR_LOCATION_STATUS): Use it.
16621 (gen_rtx_VAR_LOCATION): Declare.
16622 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16623 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16624 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16625
16626 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16627
16628 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16629 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16630
16631 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16632
16633 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16634 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16635 * rtl.h (rtx_def): Add insn_uid to u2 field.
16636 (RTX_FLAG_CHECK8): Delete in favor of...
16637 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16638 (INSN_DELETED_P): Update accordingly.
16639 (INSN_UID): Use u2.insn_uid.
16640 (INSN_CHAIN_CODE_P): Define.
16641 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16642 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16643 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16644 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16645 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16646 indices accordingly.
16647 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16648 Update indices for insn-chain rtxes.
16649 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16650 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16651 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16652 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16653 * combine.c (try_combine): Likewise.
16654 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16655
16656 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16657
16658 * rtl.def (REG): Remove middle field.
16659 * rtl.h (rtx_def): Add orignal_regno to u2.
16660 (ORIGINAL_REGNO): Use it instead of field 1.
16661 (REG_ATTRS): Lower field index accordingly.
16662 * gengtype.c (adjust_field_rtx_def): Remove handling of
16663 ORIGINAL_REGNO. Move REG_ATTRS index down.
16664 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16665 code that prints the REGNO.
16666
16667 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16668
16669 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16670 GENERATOR_FILE.
16671
16672 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16673
16674 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16675
16676 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16677
16678 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16679 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16680
16681 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16682
16683 * config/aarch64/aarch64-protos.h
16684 (aarch64_hard_regno_caller_save_mode): New prototype.
16685 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16686 New function.
16687 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16688
16689 2014-05-13 Christian Bruel <christian.bruel@st.com>
16690
16691 * target.def (mode_switching): New hook vector.
16692 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16693 (mode_exit, modepriority_to_mode): Likewise.
16694 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16695 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16696 * target.h: Include tm.h and hard-reg-set.h.
16697 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16698 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16699 * doc/tm.texi Regenerate.
16700 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16701 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16702 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16703 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16704 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16705 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16706 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16707 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16708 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16709 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16710 (ix86_emit_mode_set): Hookify.
16711 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16712 Delete.
16713 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16714 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16715 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16716 (epiphany_mode_priority_to_mode): Remove declaration.
16717 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16718 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16719 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16720 Likewise.
16721 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16722 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16723 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16724
16725 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16726
16727 PR target/61060
16728 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16729 is const0_rtx, return immediately. Don't test count == 0 when
16730 it is always true.
16731
16732 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16733
16734 * Makefile.in: add shrink-wrap.o.
16735 * config/i386/i386.c: include "shrink-wrap.h"
16736 * function.c: Likewise.
16737 (requires_stack_frame_p, next_block_for_reg,
16738 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16739 dup_block_and_redirect): Move to shrink-wrap.c
16740 (thread_prologue_and_epilogue_insns): Extract three code segments
16741 as functions in shrink-wrap.c
16742 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16743 shrink-wrap.h
16744 * shrink-wrap.c: New file.
16745 * shrink-wrap.h: New file.
16746
16747 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16748
16749 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16750 reference to Solaris.
16751
16752 2014-05-12 Mike Stump <mikestump@comcast.net>
16753
16754 PR other/31778
16755 * genattrtab.c (filename): Add.
16756 (convert_set_attr_alternative): Improve error message.
16757 (check_defs): Restore read_md_filename for error messages.
16758 (gen_insn): Save filename.
16759
16760 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16761
16762 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16763 -fno-local-ivars and -fivar-visibility.
16764 * c-family/c.opt: Make -Wshadow also implicitly enable
16765 -Wshadow-ivar.
16766
16767 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16768
16769 * doc/tm.texi: Remove reference to deleted macro.
16770 * doc/tm.texi.in: Likewise.
16771
16772 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16773
16774 PR target/60991
16775 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16776 to restore Y.
16777
16778 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16779
16780 PR libgcc/61152
16781 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16782 * config/arm/aout.h (License): Same.
16783 * config/arm/bpabi.h (License): Same.
16784 * config/arm/elf.h (License): Same.
16785 * config/arm/linux-elf.h (License): Same.
16786 * config/arm/linux-gas.h (License): Same.
16787 * config/arm/netbsd-elf.h (License): Same.
16788 * config/arm/uclinux-eabi.h (License): Same.
16789 * config/arm/uclinux-elf.h (License): Same.
16790 * config/arm/vxworks.h (License): Same.
16791
16792 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16793
16794 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16795 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16796 number of operands to 3.
16797 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16798 * tree-nested.c (convert_nonlocal_omp_clauses,
16799 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16800 * gimplify.c (gimplify_scan_omp_clauses): Handle
16801 OMP_CLAUSE_LINEAR_STMT.
16802 * omp-low.c (lower_rec_input_clauses): Fix typo.
16803 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16804 cast between Fortran boolean_type_node and C _Bool if
16805 needed.
16806
16807 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16808
16809 PR tree-optimization/61136
16810 * wide-int.h (multiple_of_p): Define a version that doesn't return
16811 the quotient.
16812 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16813 integer_zerop/const_binop pair.
16814 (multiple_of_p): Likewise, converting both operands to widest_int
16815 precision.
16816
16817 2014-05-09 Teresa Johnson <tejohnson@google.com>
16818
16819 * cgraphunit.c (analyze_functions): Use correct dump file.
16820
16821 2014-05-09 Florian Weimer <fweimer@redhat.com>
16822
16823 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16824 expand_used_vars.
16825 (stack_protect_return_slot_p): New function.
16826 (expand_used_vars): Call stack_protect_decl_p and
16827 stack_protect_return_slot_p for -fstack-protector-strong.
16828
16829 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16830 Andrew Haley <aph@redhat.com>
16831 Richard Sandiford <rdsandiford@googlemail.com>
16832
16833 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16834 pages.
16835
16836 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16837
16838 PR middle-end/61111
16839 * fold-const.c (fold_binary_loc): Changed width of mask.
16840
16841 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16842
16843 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16844 unsigned int initializers for regno_in, regno_out.
16845
16846 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16847
16848 PR target/61055
16849 * config/avr/avr.md (cc): Add new attribute set_vzn.
16850 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16851 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16852 with INC, DEC or NEG.
16853 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16854 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16855 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16856
16857 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16858
16859 Revert:
16860 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16861
16862 * wide-int.cc (UTItype): Define.
16863 (UDWtype): Define for appropriate W_TYPE_SIZE.
16864
16865 2014-05-09 Richard Biener <rguenther@suse.de>
16866
16867 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16868 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16869 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16870 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16871 ssa_propagate): Adjust.
16872
16873 2014-05-08 Jeff Law <law@redhat.com>
16874
16875 PR tree-optimization/61009
16876 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16877 tri-state rather than a boolean. When a block is too big to
16878 thread through, inform caller via negative return value.
16879 (thread_across_edge): If a block was too big for normal threading,
16880 then it's too big for a joiner too, so remove temporary equivalences
16881 and return immediately.
16882
16883 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16884 Matthias Klose <doko@ubuntu.com>
16885
16886 PR driver/61106
16887 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16888
16889 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16890
16891 PR target/59952
16892 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16893
16894 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16895
16896 PR target/61092
16897 * config/alpha/alpha.c: Include gimple-iterator.h.
16898 (alpha_gimple_fold_builtin): New function. Move
16899 ALPHA_BUILTIN_UMULH folding from ...
16900 (alpha_fold_builtin): ... here.
16901 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16902
16903 2014-05-08 Wei Mi <wmi@google.com>
16904
16905 PR target/58066
16906 * config/i386/i386.c (ix86_compute_frame_layout): Update
16907 preferred_stack_boundary for call, expanded from tls descriptor.
16908 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16909 to depend on SP register.
16910 (*tls_local_dynamic_base_32_gnu): Ditto.
16911 (*tls_local_dynamic_32_once): Ditto.
16912 (tls_global_dynamic_64_<mode>): Set
16913 ix86_tls_descriptor_calls_expanded_in_cfun.
16914 (tls_local_dynamic_base_64_<mode>): Ditto.
16915 (tls_global_dynamic_32): Set
16916 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16917 to depend on SP register.
16918 (tls_local_dynamic_base_32): Ditto.
16919
16920 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16921
16922 * config/arm/arm_neon.h: Update comment.
16923 * config/arm/neon-docgen.ml: Delete.
16924 * config/arm/neon-gen.ml: Delete.
16925 * doc/arm-neon-intrinsics.texi: Update comment.
16926
16927 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16928
16929 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16930 and v4sf versions.
16931 (vand, vorr, veor, vorn, vbic): Remove.
16932 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16933 iterator.
16934 (neon_vsub_unspec): Likewise.
16935 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16936
16937 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16938
16939 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16940 (vadd_s16): Likewise.
16941 (vadd_s32): Likewise.
16942 (vadd_f32): Likewise.
16943 (vadd_u8): Likewise.
16944 (vadd_u16): Likewise.
16945 (vadd_u32): Likewise.
16946 (vadd_s64): Likewise.
16947 (vadd_u64): Likewise.
16948 (vaddq_s8): Likewise.
16949 (vaddq_s16): Likewise.
16950 (vaddq_s32): Likewise.
16951 (vaddq_s64): Likewise.
16952 (vaddq_f32): Likewise.
16953 (vaddq_u8): Likewise.
16954 (vaddq_u16): Likewise.
16955 (vaddq_u32): Likewise.
16956 (vaddq_u64): Likewise.
16957 (vmul_s8): Likewise.
16958 (vmul_s16): Likewise.
16959 (vmul_s32): Likewise.
16960 (vmul_f32): Likewise.
16961 (vmul_u8): Likewise.
16962 (vmul_u16): Likewise.
16963 (vmul_u32): Likewise.
16964 (vmul_p8): Likewise.
16965 (vmulq_s8): Likewise.
16966 (vmulq_s16): Likewise.
16967 (vmulq_s32): Likewise.
16968 (vmulq_f32): Likewise.
16969 (vmulq_u8): Likewise.
16970 (vmulq_u16): Likewise.
16971 (vmulq_u32): Likewise.
16972 (vsub_s8): Likewise.
16973 (vsub_s16): Likewise.
16974 (vsub_s32): Likewise.
16975 (vsub_f32): Likewise.
16976 (vsub_u8): Likewise.
16977 (vsub_u16): Likewise.
16978 (vsub_u32): Likewise.
16979 (vsub_s64): Likewise.
16980 (vsub_u64): Likewise.
16981 (vsubq_s8): Likewise.
16982 (vsubq_s16): Likewise.
16983 (vsubq_s32): Likewise.
16984 (vsubq_s64): Likewise.
16985 (vsubq_f32): Likewise.
16986 (vsubq_u8): Likewise.
16987 (vsubq_u16): Likewise.
16988 (vsubq_u32): Likewise.
16989 (vsubq_u64): Likewise.
16990 (vand_s8): Likewise.
16991 (vand_s16): Likewise.
16992 (vand_s32): Likewise.
16993 (vand_u8): Likewise.
16994 (vand_u16): Likewise.
16995 (vand_u32): Likewise.
16996 (vand_s64): Likewise.
16997 (vand_u64): Likewise.
16998 (vandq_s8): Likewise.
16999 (vandq_s16): Likewise.
17000 (vandq_s32): Likewise.
17001 (vandq_s64): Likewise.
17002 (vandq_u8): Likewise.
17003 (vandq_u16): Likewise.
17004 (vandq_u32): Likewise.
17005 (vandq_u64): Likewise.
17006 (vorr_s8): Likewise.
17007 (vorr_s16): Likewise.
17008 (vorr_s32): Likewise.
17009 (vorr_u8): Likewise.
17010 (vorr_u16): Likewise.
17011 (vorr_u32): Likewise.
17012 (vorr_s64): Likewise.
17013 (vorr_u64): Likewise.
17014 (vorrq_s8): Likewise.
17015 (vorrq_s16): Likewise.
17016 (vorrq_s32): Likewise.
17017 (vorrq_s64): Likewise.
17018 (vorrq_u8): Likewise.
17019 (vorrq_u16): Likewise.
17020 (vorrq_u32): Likewise.
17021 (vorrq_u64): Likewise.
17022 (veor_s8): Likewise.
17023 (veor_s16): Likewise.
17024 (veor_s32): Likewise.
17025 (veor_u8): Likewise.
17026 (veor_u16): Likewise.
17027 (veor_u32): Likewise.
17028 (veor_s64): Likewise.
17029 (veor_u64): Likewise.
17030 (veorq_s8): Likewise.
17031 (veorq_s16): Likewise.
17032 (veorq_s32): Likewise.
17033 (veorq_s64): Likewise.
17034 (veorq_u8): Likewise.
17035 (veorq_u16): Likewise.
17036 (veorq_u32): Likewise.
17037 (veorq_u64): Likewise.
17038 (vbic_s8): Likewise.
17039 (vbic_s16): Likewise.
17040 (vbic_s32): Likewise.
17041 (vbic_u8): Likewise.
17042 (vbic_u16): Likewise.
17043 (vbic_u32): Likewise.
17044 (vbic_s64): Likewise.
17045 (vbic_u64): Likewise.
17046 (vbicq_s8): Likewise.
17047 (vbicq_s16): Likewise.
17048 (vbicq_s32): Likewise.
17049 (vbicq_s64): Likewise.
17050 (vbicq_u8): Likewise.
17051 (vbicq_u16): Likewise.
17052 (vbicq_u32): Likewise.
17053 (vbicq_u64): Likewise.
17054 (vorn_s8): Likewise.
17055 (vorn_s16): Likewise.
17056 (vorn_s32): Likewise.
17057 (vorn_u8): Likewise.
17058 (vorn_u16): Likewise.
17059 (vorn_u32): Likewise.
17060 (vorn_s64): Likewise.
17061 (vorn_u64): Likewise.
17062 (vornq_s8): Likewise.
17063 (vornq_s16): Likewise.
17064 (vornq_s32): Likewise.
17065 (vornq_s64): Likewise.
17066 (vornq_u8): Likewise.
17067 (vornq_u16): Likewise.
17068 (vornq_u32): Likewise.
17069 (vornq_u64): Likewise.
17070
17071 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17072
17073 * wide-int.cc (UTItype): Define.
17074 (UDWtype): Define for appropriate W_TYPE_SIZE.
17075
17076 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17077
17078 PR tree-optimization/59100
17079 * tree-ssa-phiopt.c: Include tree-inline.h.
17080 (neutral_element_p, absorbing_element_p): New functions.
17081 (value_replacement): Handle conditional binary operations with a
17082 neutral or absorbing element.
17083
17084 2014-05-08 Richard Biener <rguenther@suse.de>
17085
17086 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17087 folding the expression.
17088 (valueize_expr): Remove.
17089 (visit_reference_op_load): Do not valueize the result of
17090 vn_get_expr_for.
17091 (simplify_binary_expression): Likewise.
17092 (simplify_unary_expression): Likewise.
17093
17094 2014-05-08 Richard Biener <rguenther@suse.de>
17095
17096 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17097 looking at TYPE_ARG_TYPES.
17098
17099 2014-05-08 Richard Biener <rguenther@suse.de>
17100
17101 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17102 pointer propagation special-case.
17103
17104 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17105
17106 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17107 core part of address expressions.
17108
17109 2014-05-08 Alan Modra <amodra@gmail.com>
17110
17111 PR target/60737
17112 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17113 loads and stores when -mno-strict-align at any alignment.
17114 (expand_block_clear): Similarly. Also correct calculation of
17115 instruction count.
17116
17117 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17118
17119 PR middle-end/39246
17120 * tree-complex.c (expand_complex_move): Keep line info when expanding
17121 complex move.
17122 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17123 of complex expression. Use new argument to display correct location
17124 for values coming from phi statement.
17125 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17126 (warn_uninitialized_phi): Pass location of phi argument to
17127 warn_uninit.
17128 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17129 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17130
17131 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17132
17133 * config/rs6000/predicates.md (indexed_address_mem): New.
17134 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17135 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17136 fpstore_ux, fpstore_u.
17137 (sign_extend, indexed, update): New.
17138 (cell_micro): Adjust.
17139 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17140 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17141 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17142 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17143 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17144 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17145 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17146 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17147 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17148 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17149 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17150 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17151 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17152 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17153 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17154
17155 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17156 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17157 *vsx_extract_<mode>_store): Adjust.
17158 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17159 is_cracked_insn, insn_must_be_first_in_group,
17160 insn_must_be_last_in_group): Adjust.
17161
17162 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17163 Adjust.
17164 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17165 ppc440-fpstore): Adjust.
17166 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17167 ppc476-fpstore): Adjust.
17168 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17169 ppc601-fpstore): Adjust.
17170 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17171 Adjust.
17172 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17173 Adjust.
17174 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17175 ppc7450-fpstore): Adjust.
17176 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17177 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17178 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17179 Adjust.
17180 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17181 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17182 cell-fpstore, cell-fpstore-update): Adjust.
17183 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17184 ppce300c3_store, ppce300c3_fpstore): Adjust.
17185 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17186 e500mc_fpstore): Adjust.
17187 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17188 e500mc64_store, e500mc64_fpstore): Adjust.
17189 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17190 e5500_fpstore): Adjust.
17191 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17192 e6500_fpstore): Adjust.
17193 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17194 Adjust.
17195 * config/rs6000/power4.md (power4-load, power4-load-ext,
17196 power4-load-ext-update, power4-load-ext-update-indexed,
17197 power4-load-update-indexed, power4-load-update, power4-fpload,
17198 power4-fpload-update, power4-store, power4-store-update,
17199 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17200 Adjust.
17201 * config/rs6000/power5.md (power5-load, power5-load-ext,
17202 power5-load-ext-update, power5-load-ext-update-indexed,
17203 power5-load-update-indexed, power5-load-update, power5-fpload,
17204 power5-fpload-update, power5-store, power5-store-update,
17205 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17206 Adjust.
17207 * config/rs6000/power6.md (power6-load, power6-load-ext,
17208 power6-load-update, power6-load-update-indexed,
17209 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17210 power6-fpload-update, power6-store, power6-store-update,
17211 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17212 Adjust.
17213 * config/rs6000/power7.md (power7-load, power7-load-ext,
17214 power7-load-update, power7-load-update-indexed,
17215 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17216 power7-fpload-update, power7-store, power7-store-update,
17217 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17218 Adjust.
17219 * config/rs6000/power8.md (power8-load, power8-load-update,
17220 power8-load-ext, power8-load-ext-update, power8-fpload,
17221 power8-fpload-update, power8-store, power8-store-update-indexed,
17222 power8-fpstore, power8-fpstore-update): Adjust.
17223 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17224 Adjust.
17225 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17226 titan_lsu_store, titan_lsu_fpstore): Adjust.
17227 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17228
17229 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17230
17231 PR target/60884
17232 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17233 unrolled byte insns. Emit address increments after move insns.
17234
17235 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17236
17237 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17238 const_gimple, rather than a gimple.
17239 (gimple_call_builtin_p): Likewise, for the three variants.
17240
17241 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17242 (gimple_call_builtin_p): Likewise, for the three variants.
17243
17244 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17245
17246 PR tree-optimization/61095
17247 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17248
17249 2014-05-07 Richard Biener <rguenther@suse.de>
17250
17251 PR tree-optimization/61034
17252 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17253 (maybe_skip_until): Use translate to take into account
17254 lattices when trying to do disambiguations.
17255 (get_continuation_for_phi_1): Likewise.
17256 (get_continuation_for_phi): Adjust for added translate arguments.
17257 (walk_non_aliased_vuses): Likewise.
17258 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17259 (walk_non_aliased_vuses): Likewise.
17260 (call_may_clobber_ref_p_1): Declare.
17261 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17262 calls. Stop early if we are only supposed to disambiguate.
17263 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17264
17265 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17266
17267 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17268 Emit an error when the function has arguments.
17269
17270 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17271
17272 * cfgloop.h (unswitch_loops): Remove.
17273 * doc/passes.texi: Remove references to loop-unswitch.c
17274 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17275
17276 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17277
17278 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17279 check for loads group of length 3.
17280 (vect_permute_load_chain): New permutations for loads group of
17281 length 3.
17282 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17283 of vec_perm_shuffle for the new permutations.
17284
17285 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17286
17287 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17288 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17289 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17290 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17291 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17292 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17293 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17294 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17295
17296 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17297
17298 * loop-unswitch.c: Delete.
17299
17300 2014-05-07 Richard Biener <rguenther@suse.de>
17301
17302 * config.gcc: Always set need_64bit_hwint to yes.
17303
17304 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17305
17306 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17307 of using optimize_size.
17308
17309 2014-05-06 Mike Stump <mikestump@comcast.net>
17310
17311 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17312
17313 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17314
17315 * config/i386/sse.md (*mov<mode>_internal)
17316 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17317 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17318 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17319 (*<code><mode>3, *andnot<mode>3<mask_name>)
17320 (<mask_codefor><code><mode>3<mask_name>): Only consider
17321 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17322
17323 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17324
17325 Revert:
17326 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17327
17328 * lra-constraints.c (valid_address_p): Move earlier in file.
17329 Add a constraint argument to the address_info version.
17330 (satisfies_memory_constraint_p): New function.
17331 (satisfies_address_constraint_p): Likewise.
17332 (process_alt_operands, curr_insn_transform): Use them.
17333 (process_address): Pass the constraint to valid_address_p when
17334 checking address operands.
17335
17336 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17337
17338 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17339 to their respective blocks. Fix inadvertent use of "node".
17340
17341 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17342
17343 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17344 out from...
17345 (init_emit_once): ...here.
17346 * rtl.h (init_derived_machine_modes): Declare.
17347 * toplev.c (do_compile): Call it even if no_backend.
17348
17349 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17350 Mike Stump <mikestump@comcast.net>
17351 Richard Sandiford <rdsandiford@googlemail.com>
17352 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17353
17354 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17355 (rtx_equal_for_memref_p): Update comment.
17356 (adjust_offset_for_component_ref): Use wide-int interfaces.
17357 * builtins.c (get_object_alignment_2): Likewise.
17358 (c_readstr): Likewise.
17359 (target_char_cast): Add comment.
17360 (determine_block_size): Use wide-int interfaces.
17361 (expand_builtin_signbit): Likewise.
17362 (fold_builtin_int_roundingfn): Likewise.
17363 (fold_builtin_bitop): Likewise.
17364 (fold_builtin_bswap): Likewise.
17365 (fold_builtin_logarithm): Use signop.
17366 (fold_builtin_pow): Likewise.
17367 (fold_builtin_memory_op): Use wide-int interfaces.
17368 (fold_builtin_object_size): Likewise.
17369 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17370 nb_iterations_estimate.
17371 (record_niter_bound): Use wide-int interfaces.
17372 (get_estimated_loop_iterations_int): Likewise.
17373 (get_estimated_loop_iterations): Likewise.
17374 (get_max_loop_iterations): Likewise.
17375 * cfgloop.h: Include wide-int.h.
17376 (struct nb_iter_bound): Change bound to widest_int.
17377 (struct loop): Change nb_iterations_upper_bound and
17378 nb_iterations_estimate to widest_int.
17379 (record_niter_bound): Switch to use widest_int.
17380 (get_estimated_loop_iterations): Likewise.
17381 (get_max_loop_iterations): Likewise.
17382 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17383 update for wide-int.
17384 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17385 * combine.c (try_combine): Likewise.
17386 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17387 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17388 interfaces.
17389 (aarch64_float_const_representable_p): Likewise.
17390 * config/arc/arc.c: Include wide-int.h.
17391 (arc_can_use_doloop_p): Use wide-int interfaces.
17392 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17393 (vfp3_const_double_index): Likewise.
17394 * config/avr/avr.c (avr_out_round): Likewise.
17395 (avr_fold_builtin): Likewise.
17396 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17397 (bfin_can_use_doloop_p): Likewise.
17398 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17399 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17400 * config/i386/i386.c: Include wide-int.h.
17401 (ix86_data_alignment): Use wide-int interfaces.
17402 (ix86_local_alignment): Likewise.
17403 (ix86_emit_swsqrtsf): Update real_from_integer.
17404 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17405 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17406 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17407 (zero_constant): Likewise.
17408 (input_operand): Likewise.
17409 (splat_input_operand): Likewise.
17410 (non_logical_cint_operand): Change const_double to const_wide_int.
17411 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17412 (easy_altivec_constant): Remove comment.
17413 (paired_expand_vector_init): Use CONSTANT_P.
17414 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17415 (rs6000_emit_move): Update checks.
17416 (rs6000_aggregate_candidate): Use wide-int interfaces.
17417 (rs6000_expand_ternop_builtin): Likewise.
17418 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17419 (rs6000_assemble_integer): Likewise.
17420 (rs6000_hash_constant): Likewise.
17421 (output_toc): Likewise.
17422 (rs6000_rtx_costs): Likewise.
17423 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17424 * config/rs6000/rs6000-c.c: Include wide-int.h.
17425 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17426 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17427 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17428 Handle CONST_WIDE_INT.
17429 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17430 Use tree_fits_uhwi_p.
17431 * config/sparc/sparc.c: Include wide-int.h.
17432 (sparc_fold_builtin): Use wide-int interfaces.
17433 * config/vax/vax.c: Include wide-int.h.
17434 (vax_float_literal): Use real_from_integer.
17435 * coretypes.h (struct hwivec_def): New.
17436 (hwivec): New.
17437 (const_hwivec): New.
17438 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17439 (equiv_constant): Handle CONST_WIDE_INT.
17440 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17441 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17442 * dbxout.c (stabstr_U): Use wide-int interfaces.
17443 (dbxout_type): Update to use cst_fits_shwi_p.
17444 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17445 (TARGET_SUPPORTS_WIDE_INT): Add default.
17446 * dfp.c: Include wide-int.h.
17447 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17448 decimal_real_to_integer.
17449 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17450 decimal_real_to_integer.
17451 * doc/generic.texi (Constant expressions): Update for wide_int.
17452 * doc/rtl.texi (const_double): Likewise.
17453 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17454 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17455 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17456 (REAL_VALUE_FROM_INT): Remove.
17457 (TARGET_SUPPORTS_WIDE_INT): New.
17458 * doc/tm.texi: Regenerate.
17459 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17460 * double-int.h: Include wide-int.h.
17461 (struct wi::int_traits): New.
17462 * dwarf2out.c (get_full_len): New.
17463 (dw_val_equal_p): Add case dw_val_class_wide_int.
17464 (size_of_loc_descr): Likewise.
17465 (output_loc_operands): Likewise.
17466 (insert_double): Remove.
17467 (insert_wide_int): New.
17468 (add_AT_wide): New.
17469 (print_die): Add case dw_val_class_wide_int.
17470 (attr_checksum): Likewise.
17471 (attr_checksum_ordered): Likewise.
17472 (same_dw_val_p): Likewise.
17473 (size_of_die): Likewise.
17474 (value_format): Likewise.
17475 (output_die): Likewise.
17476 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17477 Use wide-int.
17478 (clz_loc_descriptor): Use wide-int interfaces.
17479 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17480 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17481 (round_up_to_align): Use wide-int interfaces.
17482 (field_byte_offset): Likewise.
17483 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17484 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17485 CONST_DOUBLE handling. Use wide-int interfaces.
17486 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17487 (gen_enumeration_type_die): Use add_AT_wide.
17488 (hash_loc_operands): Add case dw_val_class_wide_int.
17489 (compare_loc_operands): Likewise.
17490 * dwarf2out.h: Include wide-int.h.
17491 (wide_int_ptr): New.
17492 (enum dw_val_class): Add dw_val_class_wide_int.
17493 (struct dw_val_struct): Add val_wide.
17494 * emit-rtl.c (const_wide_int_htab): New.
17495 (const_wide_int_htab_hash): New.
17496 (const_wide_int_htab_eq): New.
17497 (lookup_const_wide_int): New.
17498 (const_double_htab_hash): Use wide-int interfaces.
17499 (const_double_htab_eq): Likewise.
17500 (rtx_to_double_int): Conditionally compile for wide-int.
17501 (immed_double_int_const): Rename to immed_wide_int_const and
17502 update for wide-int.
17503 (immed_double_const): Conditionally compile for wide-int.
17504 (init_emit_once): Use wide-int interfaces.
17505 * explow.c (plus_constant): Likewise.
17506 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17507 (lshift_value): Use wide-int interfaces.
17508 (expand_mult): Likewise.
17509 (choose_multiplier): Likewise.
17510 (expand_smod_pow2): Likewise.
17511 (make_tree): Likewise.
17512 * expr.c (convert_modes): Consolidate handling of constants.
17513 Use wide-int interfaces.
17514 (emit_group_load_1): Add note.
17515 (store_expr): Update comment.
17516 (get_inner_reference): Use wide-int interfaces.
17517 (expand_constructor): Update comment.
17518 (expand_expr_real_2): Use wide-int interfaces.
17519 (expand_expr_real_1): Likewise.
17520 (reduce_to_bit_field_precision): Likewise.
17521 (const_vector_from_tree): Likewise.
17522 * final.c: Include wide-int-print.h.
17523 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17524 * fixed-value.c: Include wide-int.h.
17525 (fixed_from_string): Use wide-int interfaces.
17526 (fixed_to_decimal): Likewise.
17527 (fixed_convert_from_real): Likewise.
17528 (real_convert_from_fixed): Likewise.
17529 * fold-const.h (mem_ref_offset): Return an offset_int.
17530 (div_if_zero_remainder): Remove code parameter.
17531 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17532 Use wide-int interfaces.
17533 (may_negate_without_overflow_p): Use wide-int interfaces.
17534 (negate_expr_p): Likewise.
17535 (fold_negate_expr): Likewise.
17536 (int_const_binop_1): Likewise.
17537 (const_binop): Likewise.
17538 (fold_convert_const_int_from_int): Likewise.
17539 (fold_convert_const_int_from_real): Likewise.
17540 (fold_convert_const_int_from_fixed): Likewise.
17541 (fold_convert_const_fixed_from_int): Likewise.
17542 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17543 (sign_bit_p): Use wide-int interfaces.
17544 (make_range_step): Likewise.
17545 (build_range_check): Likewise. Pass an integer of the correct type
17546 instead of using integer_one_node.
17547 (range_predecessor): Pass an integer of the correct type instead
17548 of using integer_one_node.
17549 (range_successor): Likewise.
17550 (merge_ranges): Likewise.
17551 (unextend): Use wide-int interfaces.
17552 (extract_muldiv_1): Likewise.
17553 (fold_div_compare): Likewise.
17554 (fold_single_bit_test): Likewise.
17555 (fold_sign_changed_comparison): Likewise.
17556 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17557 (fold_plusminus_mult_expr): Use wide-int interfaces.
17558 (native_encode_int): Likewise.
17559 (native_interpret_int): Likewise.
17560 (fold_unary_loc): Likewise.
17561 (pointer_may_wrap_p): Likewise.
17562 (size_low_cst): Likewise.
17563 (mask_with_tz): Likewise.
17564 (fold_binary_loc): Likewise.
17565 (fold_ternary_loc): Likewise.
17566 (multiple_of_p): Likewise.
17567 (tree_call_nonnegative_warnv_p): Update calls to
17568 tree_int_cst_min_precision and real_from_integer.
17569 (fold_negate_const): Use wide-int interfaces.
17570 (fold_abs_const): Likewise.
17571 (fold_relational_const): Use tree_int_cst_lt.
17572 (round_up_loc): Use wide-int interfaces.
17573 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17574 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17575 * gengtype.c: Remove include of double-int.h.
17576 (do_typedef): Use wide-int interfaces.
17577 (open_base_files): Add wide-int.h.
17578 (main): Add offset_int and widest_int typedefs.
17579 * gengtype-lex.l: Handle "^".
17580 (CXX_KEYWORD): Add "static".
17581 * gengtype-parse.c (require3): New.
17582 (require_template_declaration): Handle constant template arguments
17583 and nested templates.
17584 * gengtype-state.c: Don't include "double-int.h".
17585 * genpreds.c (write_one_predicate_function): Update comment.
17586 (write_tm_constrs_h): Add check for hval and lval use in
17587 CONST_WIDE_INT.
17588 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17589 (add_to_sequence): Likewise.
17590 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17591 and const_double_operand.
17592 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17593 interfaces.
17594 * gimple-fold.c (get_base_constructor): Likewise.
17595 (fold_array_ctor_reference): Likewise.
17596 (fold_nonarray_ctor_reference): Likewise.
17597 (fold_const_aggregate_ref_1): Likewise.
17598 (gimple_val_nonnegative_real_p): Likewise.
17599 (gimple_fold_indirect_ref): Likewise.
17600 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17601 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17602 (struct slsr_cand_d): Change index to be widest_int.
17603 (struct incr_info_d): Change incr to be widest_int.
17604 (alloc_cand_and_find_basis): Use wide-int interfaces.
17605 (slsr_process_phi): Likewise.
17606 (backtrace_base_for_ref): Likewise. Return a widest_int.
17607 (restructure_reference): Take a widest_int instead of a double_int.
17608 (slsr_process_ref): Use wide-int interfaces.
17609 (create_mul_ssa_cand): Likewise.
17610 (create_mul_imm_cand): Likewise.
17611 (create_add_ssa_cand): Likewise.
17612 (create_add_imm_cand): Take a widest_int instead of a double_int.
17613 (slsr_process_add): Use wide-int interfaces.
17614 (slsr_process_cast): Likewise.
17615 (slsr_process_copy): Likewise.
17616 (dump_candidate): Likewise.
17617 (dump_incr_vec): Likewise.
17618 (replace_ref): Likewise.
17619 (cand_increment): Likewise. Return a widest_int.
17620 (cand_abs_increment): Likewise.
17621 (replace_mult_candidate): Take a widest_int instead of a double_int.
17622 (replace_unconditional_candidate): Use wide-int interfaces.
17623 (incr_vec_index): Take a widest_int instead of a double_int.
17624 (create_add_on_incoming_edge): Likewise.
17625 (create_phi_basis): Use wide-int interfaces.
17626 (replace_conditional_candidate): Likewise.
17627 (record_increment): Take a widest_int instead of a double_int.
17628 (record_phi_increments): Use wide-int interfaces.
17629 (phi_incr_cost): Take a widest_int instead of a double_int.
17630 (lowest_cost_path): Likewise.
17631 (total_savings): Likewise.
17632 (analyze_increments): Use wide-int interfaces.
17633 (ncd_with_phi): Take a widest_int instead of a double_int.
17634 (ncd_of_cand_and_phis): Likewise.
17635 (nearest_common_dominator_for_cands): Likewise.
17636 (insert_initializers): Use wide-int interfaces.
17637 (all_phi_incrs_profitable): Likewise.
17638 (replace_one_candidate): Likewise.
17639 (replace_profitable_candidates): Likewise.
17640 * godump.c: Include wide-int-print.h.
17641 (go_output_typedef): Use wide-int interfaces.
17642 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17643 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17644 (build_loop_iteration_domains): Likewise.
17645 * hooks.h: Include wide-int.h rather than double-int.h.
17646 (hook_bool_dint_dint_uint_bool_true): Delete.
17647 (hook_bool_wint_wint_uint_bool_true): Declare.
17648 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17649 (hook_bool_wint_wint_uint_bool_true): New.
17650 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17651 interfaces.
17652 (ubsan_expand_si_overflow_mul_check): Likewise.
17653 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17654 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17655 (get_ancestor_addr_info): Likewise.
17656 (ipa_modify_call_arguments): Likewise.
17657 * loop-doloop.c (doloop_modify): Likewise.
17658 (doloop_optimize): Likewise.
17659 * loop-iv.c (iv_number_of_iterations): Likewise.
17660 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17661 (unroll_loop_constant_iterations): Likewise.
17662 (decide_unroll_runtime_iterations): Likewise.
17663 (unroll_loop_runtime_iterations): Likewise.
17664 (decide_peel_simple): Likewise.
17665 (decide_unroll_stupid): Likewise.
17666 * lto-streamer-in.c (streamer_read_wi): Add.
17667 (input_cfg): Use wide-int interfaces.
17668 (lto_input_tree_1): Likewise.
17669 * lto-streamer-out.c (streamer_write_wi): Add.
17670 (hash_tree): Use wide-int interfaces.
17671 (output_cfg): Likewise.
17672 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17673 (GTFILES): Add wide-int.h and signop.h.
17674 (TAGS): Look for .cc files too.
17675 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17676 * optabs.c (expand_subword_shift): Likewise.
17677 (expand_doubleword_shift): Likewise.
17678 (expand_absneg_bit): Likewise.
17679 (expand_copysign_absneg): Likewise.
17680 (expand_copysign_bit): Likewise.
17681 * postreload.c (reload_cse_simplify_set): Likewise.
17682 * predict.c (predict_iv_comparison): Likewise.
17683 * pretty-print.h: Include wide-int-print.h.
17684 (pp_wide_int) New.
17685 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17686 * print-tree.c: Include wide-int-print.h.
17687 (print_node_brief): Use wide-int interfaces.
17688 (print_node): Likewise.
17689 * read-rtl.c (validate_const_wide_int): New.
17690 (read_rtx_code): Add CONST_WIDE_INT case.
17691 * real.c: Include wide-int.h.
17692 (real_to_integer2): Delete.
17693 (real_to_integer): New function, returning a wide_int.
17694 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17695 (ten_to_ptwo): Update call to real_from_integer.
17696 (real_digit): Likewise.
17697 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17698 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17699 (REAL_VALUE_TO_INT): Delete.
17700 (real_to_integer): Declare a wide-int form.
17701 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17702 * recog.c (const_int_operand): Improve comment.
17703 (const_scalar_int_operand): New.
17704 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17705 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17706 (split_double): Likewise.
17707 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17708 (rtx_size): Likewise.
17709 (rtx_alloc_stat_v): New.
17710 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17711 (cwi_output_hex): New.
17712 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17713 (cwi_check_failed_bounds): New.
17714 * rtl.def (CONST_WIDE_INT): New.
17715 * rtl.h: Include <utility> and wide-int.h.
17716 (struct hwivec_def): New.
17717 (CWI_GET_NUM_ELEM): New.
17718 (CWI_PUT_NUM_ELEM): New.
17719 (struct rtx_def): Add num_elem and hwiv.
17720 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17721 (CASE_CONST_UNIQUE): Likewise.
17722 (CASE_CONST_ANY): Likewise.
17723 (CONST_SCALAR_INT_P): Likewise.
17724 (CONST_WIDE_INT_P): New.
17725 (CWI_ELT): New.
17726 (HWIVEC_CHECK): New.
17727 (cwi_check_failed_bounds): New.
17728 (CWI_ELT): New.
17729 (HWIVEC_CHECK): New.
17730 (CONST_WIDE_INT_VEC) New.
17731 (CONST_WIDE_INT_NUNITS) New.
17732 (CONST_WIDE_INT_ELT) New.
17733 (rtx_mode_t): New type.
17734 (wi::int_traits <rtx_mode_t>): New.
17735 (wi::shwi): New.
17736 (wi::min_value): New.
17737 (wi::max_value): New.
17738 (rtx_alloc_v) New.
17739 (const_wide_int_alloc): New.
17740 (immed_wide_int_const): New.
17741 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17742 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17743 * signop.h: New file.
17744 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17745 (simplify_const_unary_operation): Use wide-int interfaces.
17746 (simplify_binary_operation_1): Likewise.
17747 (simplify_const_binary_operation): Likewise.
17748 (simplify_const_relational_operation): Likewise.
17749 (simplify_immed_subreg): Likewise.
17750 * stmt.c (expand_case): Likewise.
17751 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17752 signop rather than a bool.
17753 * stor-layout.c (layout_type): Use wide-int interfaces.
17754 (initialize_sizetypes): Update calls to
17755 set_min_and_max_values_for_integral_type.
17756 (set_min_and_max_values_for_integral_type): Take a signop rather
17757 than a bool. Use wide-int interfaces.
17758 (fixup_signed_type): Update accordingly. Remove
17759 HOST_BITS_PER_DOUBLE_INT limit.
17760 (fixup_unsigned_type): Likewise.
17761 * system.h (STATIC_CONSTANT_P): New.
17762 (STATIC_ASSERT): New.
17763 * target.def (can_use_doloop_p): Take widest_ints rather than
17764 double_ints.
17765 * target.h: Include wide-int.h rather than double-int.h.
17766 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17767 than double_ints.
17768 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17769 rather than INT_CST_LT_UNSIGNED.
17770 (can_use_doloop_if_innermost): Take widest_ints rather than
17771 double_ints.
17772 * tree-affine.c: Include wide-int-print.h.
17773 (double_int_ext_for_comb): Delete.
17774 (wide_int_ext_for_comb): New.
17775 (aff_combination_zero): Use wide-int interfaces.
17776 (aff_combination_const): Take a widest_int instead of a double_int.
17777 (aff_combination_elt): Use wide-int interfaces.
17778 (aff_combination_scale): Take a widest_int instead of a double_int.
17779 (aff_combination_add_elt): Likewise.
17780 (aff_combination_add_cst): Likewise.
17781 (aff_combination_add): Use wide-int interfaces.
17782 (aff_combination_convert): Likewise.
17783 (tree_to_aff_combination): Likewise.
17784 (add_elt_to_tree): Take a widest_int instead of a double_int.
17785 (aff_combination_to_tree): Use wide-int interfaces.
17786 (aff_combination_remove_elt): Likewise.
17787 (aff_combination_add_product): Take a widest_int instead of
17788 a double_int.
17789 (aff_combination_mult): Use wide-int interfaces.
17790 (aff_combination_expand): Likewise.
17791 (double_int_constant_multiple_p): Delete.
17792 (wide_int_constant_multiple_p): New.
17793 (aff_combination_constant_multiple_p): Take a widest_int pointer
17794 instead of a double_int pointer.
17795 (print_aff): Use wide-int interfaces.
17796 (get_inner_reference_aff): Take a widest_int pointer
17797 instead of a double_int pointer.
17798 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17799 * tree-affine.h: Include wide-int.h.
17800 (struct aff_comb_elt): Change type of coef to widest_int.
17801 (struct affine_tree_combination): Change type of offset to widest_int.
17802 (double_int_ext_for_comb): Delete.
17803 (wide_int_ext_for_comb): New.
17804 (aff_combination_const): Use widest_int instead of double_int.
17805 (aff_combination_scale): Likewise.
17806 (aff_combination_add_elt): Likewise.
17807 (aff_combination_constant_multiple_p): Likewise.
17808 (get_inner_reference_aff): Likewise.
17809 (aff_comb_cannot_overlap_p): Likewise.
17810 (aff_combination_zero_p): Use wide-int interfaces.
17811 * tree.c: Include tree.h.
17812 (init_ttree): Use make_int_cst.
17813 (tree_code_size): Removed code for INTEGER_CST case.
17814 (tree_size): Add INTEGER_CST case.
17815 (make_node_stat): Update comment.
17816 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17817 (build_int_cst_type): Use wide-int interfaces.
17818 (double_int_to_tree): Likewise.
17819 (double_int_fits_to_tree_p): Delete.
17820 (force_fit_type_double): Delete.
17821 (force_fit_type): New.
17822 (int_cst_hash_hash): Use wide-int interfaces.
17823 (int_cst_hash_eq): Likewise.
17824 (build_int_cst_wide): Delete.
17825 (wide_int_to_tree): New.
17826 (cache_integer_cst): Use wide-int interfaces.
17827 (build_low_bits_mask): Likewise.
17828 (cst_and_fits_in_hwi): Likewise.
17829 (real_value_from_int_cst): Likewise.
17830 (make_int_cst_stat): New.
17831 (integer_zerop): Use wide_int interfaces.
17832 (integer_onep): Likewise.
17833 (integer_all_onesp): Likewise.
17834 (integer_pow2p): Likewise.
17835 (integer_nonzerop): Likewise.
17836 (tree_log2): Likewise.
17837 (tree_floor_log2): Likewise.
17838 (tree_ctz): Likewise.
17839 (int_size_in_bytes): Likewise.
17840 (mem_ref_offset): Return an offset_int rather than a double_int.
17841 (build_type_attribute_qual_variant): Use wide_int interfaces.
17842 (type_hash_eq): Likewise
17843 (tree_int_cst_equal): Likewise.
17844 (tree_int_cst_lt): Delete.
17845 (tree_int_cst_compare): Likewise.
17846 (tree_fits_shwi_p): Use wide_int interfaces.
17847 (tree_fits_uhwi_p): Likewise.
17848 (tree_int_cst_sign_bit): Likewise.
17849 (tree_int_cst_sgn): Likewise.
17850 (tree_int_cst_min_precision): Take a signop rather than a bool.
17851 (simple_cst_equal): Use wide_int interfaces.
17852 (compare_tree_int): Likewise.
17853 (iterative_hash_expr): Likewise.
17854 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17855 INT_CST_LT.
17856 (get_type_static_bounds): Use wide_int interfaces.
17857 (tree_int_cst_elt_check_failed): New.
17858 (build_common_tree_nodes): Reordered to set prec before filling in
17859 value.
17860 (int_cst_value): Check cst_and_fits_in_hwi.
17861 (widest_int_cst_value): Use wide_int interfaces.
17862 (upper_bound_in_type): Likewise.
17863 (lower_bound_in_type): Likewise.
17864 (num_ending_zeros): Likewise.
17865 (drop_tree_overflow): Likewise.
17866 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17867 (gen_conditions_for_pow_cst_base): Likewise.
17868 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17869 (group_case_labels_stmt): Use wide-int interfaces.
17870 (verify_gimple_assign_binary): Likewise.
17871 (print_loop): Likewise.
17872 * tree-chrec.c (tree_fold_binomial): Likewise.
17873 * tree-core.h (struct tree_base): Add int_length.
17874 (struct tree_int_cst): Change rep of value.
17875 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17876 (dr_may_alias_p): Likewise.
17877 (max_stmt_executions_tree): Likewise.
17878 * tree.def (INTEGER_CST): Update comment.
17879 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17880 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17881 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17882 (dequeue_and_dump): Use wide-int interfaces.
17883 * tree.h: Include wide-int.h.
17884 (NULL_TREE): Moved to earlier loc in file.
17885 (TREE_INT_CST_ELT_CHECK): New.
17886 (tree_int_cst_elt_check_failed): New.
17887 (TYPE_SIGN): New.
17888 (TREE_INT_CST): Delete.
17889 (TREE_INT_CST_LOW): Use wide-int interfaces.
17890 (TREE_INT_CST_HIGH): Delete.
17891 (TREE_INT_CST_NUNITS): New.
17892 (TREE_INT_CST_EXT_NUNITS): Likewise.
17893 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17894 (TREE_INT_CST_ELT): Likewise.
17895 (INT_CST_LT): Delete.
17896 (tree_int_cst_elt_check): New (two forms).
17897 (type_code_size): Update comment.
17898 (make_int_cst_stat, make_int_cst): New.
17899 (tree_to_double_int): Delete.
17900 (double_int_fits_to_tree_p): Delete.
17901 (force_fit_type_double): Delete.
17902 (build_int_cstu): Replace with out-of-line function.
17903 (build_int_cst_wide): Delete.
17904 (tree_int_cst_lt): Define inline.
17905 (tree_int_cst_le): New.
17906 (tree_int_cst_compare): Define inline.
17907 (tree_int_cst_min_precision): Take a signop rather than a bool.
17908 (wi::int_traits <const_tree>): New.
17909 (wi::int_traits <tree>): New.
17910 (wi::extended_tree): New.
17911 (wi::int_traits <wi::extended_tree>): New.
17912 (wi::to_widest): New.
17913 (wi::to_offset): New.
17914 (wi::fits_to_tree_p): New.
17915 (wi::min_value): New.
17916 (wi::max_value): New.
17917 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17918 (copy_tree_body_r): Likewise.
17919 * tree-object-size.c (compute_object_offset): Likewise.
17920 (addr_object_size): Likewise.
17921 * tree-predcom.c: Include wide-int-print.h.
17922 (struct dref_d): Change type of offset to widest_int.
17923 (dump_dref): Call wide-int printer.
17924 (aff_combination_dr_offset): Use wide-int interfaces.
17925 (determine_offset): Take a widest_int pointer rather than a
17926 double_int pointer.
17927 (split_data_refs_to_components): Use wide-int interfaces.
17928 (suitable_component_p): Likewise.
17929 (order_drefs): Likewise.
17930 (add_ref_to_chain): Likewise.
17931 (valid_initializer_p): Likewise.
17932 (determine_roots_comp): Likewise.
17933 * tree-pretty-print.c: Include wide-int-print.h.
17934 (dump_generic_node): Use wide-int interfaces.
17935 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17936 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17937 (move_fixed_address_to_symbol): Likewise.
17938 (move_hint_to_base): Likewise.
17939 (move_pointer_to_base): Likewise.
17940 (move_variant_to_index): Likewise.
17941 (most_expensive_mult_to_index): Likewise.
17942 (addr_to_parts): Likewise.
17943 (copy_ref_info): Likewise.
17944 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17945 (indirect_refs_may_alias_p): Likewise.
17946 (stmt_kills_ref_p_1): Likewise.
17947 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17948 * tree-ssa-ccp.c: Update comment at top of file. Include
17949 wide-int-print.h.
17950 (struct prop_value_d): Change type of mask to widest_int.
17951 (extend_mask): New function.
17952 (dump_lattice_value): Use wide-int interfaces.
17953 (get_default_value): Likewise.
17954 (set_constant_value): Likewise.
17955 (set_value_varying): Likewise.
17956 (valid_lattice_transition): Likewise.
17957 (set_lattice_value): Likewise.
17958 (value_to_double_int): Delete.
17959 (value_to_wide_int): New.
17960 (get_value_from_alignment): Use wide-int interfaces.
17961 (get_value_for_expr): Likewise.
17962 (do_dbg_cnt): Likewise.
17963 (ccp_finalize): Likewise.
17964 (ccp_lattice_meet): Likewise.
17965 (bit_value_unop_1): Use widest_ints rather than double_ints.
17966 (bit_value_binop_1): Likewise.
17967 (bit_value_unop): Use wide-int interfaces.
17968 (bit_value_binop): Likewise.
17969 (bit_value_assume_aligned): Likewise.
17970 (evaluate_stmt): Likewise.
17971 (ccp_fold_stmt): Likewise.
17972 (visit_cond_stmt): Likewise.
17973 (ccp_visit_stmt): Likewise.
17974 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17975 (constant_pointer_difference): Likewise.
17976 (associate_pointerplus): Likewise.
17977 (combine_conversions): Likewise.
17978 * tree-ssa-loop.h: Include wide-int.h.
17979 (struct tree_niter_desc): Change type of max to widest_int.
17980 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17981 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17982 (remove_redundant_iv_tests): Likewise.
17983 (canonicalize_loop_induction_variables): Likewise.
17984 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17985 (constant_multiple_of): Take a widest_int pointer instead of
17986 a double_int pointer.
17987 (get_computation_aff): Use wide-int interfaces.
17988 (ptr_difference_cost): Likewise.
17989 (difference_cost): Likewise.
17990 (get_loop_invariant_expr_id): Likewise.
17991 (get_computation_cost_at): Likewise.
17992 (iv_elimination_compare_lt): Likewise.
17993 (may_eliminate_iv): Likewise.
17994 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17995 instead of double_int.
17996 (max_loop_iterations): Likewise.
17997 (max_stmt_executions): Likewise.
17998 (estimated_stmt_executions): Likewise.
17999 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18000 (split_to_var_and_offset): Use wide-int interfaces.
18001 (determine_value_range): Likewise.
18002 (bound_difference_of_offsetted_base): Likewise.
18003 (bounds_add): Take a widest_int instead of a double_int.
18004 (number_of_iterations_ne_max): Use wide-int interfaces.
18005 (number_of_iterations_ne): Likewise.
18006 (number_of_iterations_lt_to_ne): Likewise.
18007 (assert_loop_rolls_lt): Likewise.
18008 (number_of_iterations_lt): Likewise.
18009 (number_of_iterations_le): Likewise.
18010 (number_of_iterations_cond): Likewise.
18011 (number_of_iterations_exit): Likewise.
18012 (finite_loop_p): Likewise.
18013 (derive_constant_upper_bound_assign): Likewise.
18014 (derive_constant_upper_bound): Return a widest_int.
18015 (derive_constant_upper_bound_ops): Likewise.
18016 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18017 (record_estimate): Take a widest_int rather than a double_int.
18018 (record_nonwrapping_iv): Use wide-int interfaces.
18019 (double_int_cmp): Delete.
18020 (wide_int_cmp): New.
18021 (bound_index): Take a widest_int rather than a double_int.
18022 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18023 (maybe_lower_iteration_bound): Likewise.
18024 (estimate_numbers_of_iterations_loop): Likewise.
18025 (estimated_loop_iterations): Take a widest_int pointer than than
18026 a double_int pointer.
18027 (estimated_loop_iterations_int): Use wide-int interfaces.
18028 (max_loop_iterations): Take a widest_int pointer than than
18029 a double_int pointer.
18030 (max_loop_iterations_int): Use wide-int interfaces.
18031 (max_stmt_executions): Take a widest_int pointer than than
18032 a double_int pointer.
18033 (estimated_stmt_executions): Likewise.
18034 (n_of_executions_at_most): Use wide-int interfaces.
18035 (scev_probably_wraps_p): Likewise.
18036 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18037 to real_to_integer.
18038 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18039 interfaces.
18040 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18041 double_ints. Adjust for trailing_wide_ints <3> representation.
18042 (set_nonzero_bits): Likewise.
18043 (get_range_info): Return wide_ints rather than double_ints.
18044 Adjust for trailing_wide_ints <3> representation.
18045 (get_nonzero_bits): Likewise.
18046 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18047 representation.
18048 * tree-ssanames.h (struct range_info_def): Replace min, max and
18049 nonzero_bits with a trailing_wide_ints <3>.
18050 (set_range_info): Use wide_int_refs rather than double_ints.
18051 (set_nonzero_bits): Likewise.
18052 (get_range_info): Return wide_ints rather than double_ints.
18053 (get_nonzero_bits): Likewise.
18054 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18055 * tree-ssa-pre.c (phi_translate_1): Likewise.
18056 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18057 (acceptable_pow_call): Likewise.
18058 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18059 interfaces.
18060 (vn_reference_fold_indirect): Likewise.
18061 (vn_reference_maybe_forwprop_address): Likewise.
18062 (valueize_refs_1): Likewise.
18063 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18064 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18065 tree_int_cst_lt and tree_int_cst_le.
18066 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18067 interfaces.
18068 (streamer_alloc_tree): Likewise.
18069 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18070 (streamer_write_tree_header): Likewise.
18071 (streamer_write_integer_cst): Likewise.
18072 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18073 (build_constructors): Likewise.
18074 (array_value_type): Likewise.
18075 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18076 (vect_check_gather): Likewise.
18077 * tree-vect-generic.c (build_replicated_const): Likewise.
18078 (expand_vector_divmod): Likewise.
18079 * tree-vect-loop.c (vect_transform_loop): Likewise.
18080 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18081 (vect_do_peeling_for_alignment): Likewise.
18082 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18083 * tree-vrp.c: Include wide-int.h.
18084 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18085 (extract_range_from_assert): Use wide-int interfaces.
18086 (vrp_int_const_binop): Likewise.
18087 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18088 double_int pointers.
18089 (ranges_from_anti_range): Use wide-int interfaces.
18090 (quad_int_cmp): Delete.
18091 (quad_int_pair_sort): Likewise.
18092 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18093 (extract_range_from_unary_expr_1): Likewise.
18094 (adjust_range_with_scev): Likewise.
18095 (masked_increment): Take and return wide_ints rather than double_ints.
18096 (register_edge_assert_for_2): Use wide-int interfaces.
18097 (check_array_ref): Likewise.
18098 (search_for_addr_array): Likewise.
18099 (maybe_set_nonzero_bits): Likewise.
18100 (union_ranges): Pass an integer of the correct type instead of
18101 using integer_one_node.
18102 (intersect_ranges): Likewise.
18103 (simplify_truth_ops_using_ranges): Likewise.
18104 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18105 (range_fits_type_p): Likewise.
18106 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18107 a bool.
18108 (simplify_conversion_using_ranges): Use wide-int interfaces.
18109 (simplify_float_conversion_using_ranges): Likewise.
18110 (vrp_finalize): Likewise.
18111 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18112 (gimple_stringops_transform): Likewise.
18113 * varasm.c (decode_addr_const): Likewise.
18114 (const_hash_1): Likewise.
18115 (const_rtx_hash_1): Likewise
18116 (output_constant): Likewise.
18117 (array_size_for_constructor): Likewise.
18118 (output_constructor_regular_field): Likewise.
18119 (output_constructor_bitfield): Likewise.
18120 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18121 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18122 GENERATOR_FILEs.
18123 * gencheck.c: Define BITS_PER_UNIT.
18124 * wide-int.cc: New.
18125 * wide-int.h: New.
18126 * wide-int-print.cc: New.
18127 * wide-int-print.h: New.
18128
18129 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18130
18131 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18132
18133 2014-05-06 Richard Biener <rguenther@suse.de>
18134
18135 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18136 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18137 (TODO_verify_all): Adjust.
18138 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18139 TODO_verify_stmts and TODO_verify_rtl_sharing.
18140 * bb-reorder.c: Likewise.
18141 * cfgexpand.c: Likewise.
18142 * cprop.c: Likewise.
18143 * cse.c: Likewise.
18144 * function.c: Likewise.
18145 * fwprop.c: Likewise.
18146 * gcse.c: Likewise.
18147 * gimple-ssa-isolate-paths.c: Likewise.
18148 * gimple-ssa-strength-reduction.c: Likewise.
18149 * ipa-split.c: Likewise.
18150 * loop-init.c: Likewise.
18151 * loop-unroll.c: Likewise.
18152 * lower-subreg.c: Likewise.
18153 * modulo-sched.c: Likewise.
18154 * postreload-gcse.c: Likewise.
18155 * predict.c: Likewise.
18156 * recog.c: Likewise.
18157 * sched-rgn.c: Likewise.
18158 * store-motion.c: Likewise.
18159 * tracer.c: Likewise.
18160 * trans-mem.c: Likewise.
18161 * tree-call-cdce.c: Likewise.
18162 * tree-cfg.c: Likewise.
18163 * tree-cfgcleanup.c: Likewise.
18164 * tree-complex.c: Likewise.
18165 * tree-eh.c: Likewise.
18166 * tree-emutls.c: Likewise.
18167 * tree-if-conv.c: Likewise.
18168 * tree-into-ssa.c: Likewise.
18169 * tree-loop-distribution.c: Likewise.
18170 * tree-object-size.c: Likewise.
18171 * tree-parloops.c: Likewise.
18172 * tree-pass.h: Likewise.
18173 * tree-sra.c: Likewise.
18174 * tree-ssa-ccp.c: Likewise.
18175 * tree-ssa-copy.c: Likewise.
18176 * tree-ssa-copyrename.c: Likewise.
18177 * tree-ssa-dce.c: Likewise.
18178 * tree-ssa-dom.c: Likewise.
18179 * tree-ssa-dse.c: Likewise.
18180 * tree-ssa-forwprop.c: Likewise.
18181 * tree-ssa-ifcombine.c: Likewise.
18182 * tree-ssa-loop-ch.c: Likewise.
18183 * tree-ssa-loop-ivcanon.c: Likewise.
18184 * tree-ssa-loop.c: Likewise.
18185 * tree-ssa-math-opts.c: Likewise.
18186 * tree-ssa-phiopt.c: Likewise.
18187 * tree-ssa-phiprop.c: Likewise.
18188 * tree-ssa-pre.c: Likewise.
18189 * tree-ssa-reassoc.c: Likewise.
18190 * tree-ssa-sink.c: Likewise.
18191 * tree-ssa-strlen.c: Likewise.
18192 * tree-ssa-tail-merge.c: Likewise.
18193 * tree-ssa-uncprop.c: Likewise.
18194 * tree-switch-conversion.c: Likewise.
18195 * tree-tailcall.c: Likewise.
18196 * tree-vect-generic.c: Likewise.
18197 * tree-vectorizer.c: Likewise.
18198 * tree-vrp.c: Likewise.
18199 * tsan.c: Likewise.
18200 * var-tracking.c: Likewise.
18201 * bt-load.c: Likewise.
18202 * cfgcleanup.c: Likewise.
18203 * combine-stack-adj.c: Likewise.
18204 * combine.c: Likewise.
18205 * compare-elim.c: Likewise.
18206 * config/epiphany/resolve-sw-modes.c: Likewise.
18207 * config/i386/i386.c: Likewise.
18208 * config/mips/mips.c: Likewise.
18209 * config/s390/s390.c: Likewise.
18210 * config/sh/sh_treg_combine.cc: Likewise.
18211 * config/sparc/sparc.c: Likewise.
18212 * dce.c: Likewise.
18213 * dse.c: Likewise.
18214 * final.c: Likewise.
18215 * ifcvt.c: Likewise.
18216 * mode-switching.c: Likewise.
18217 * passes.c: Likewise.
18218 * postreload.c: Likewise.
18219 * ree.c: Likewise.
18220 * reg-stack.c: Likewise.
18221 * regcprop.c: Likewise.
18222 * regrename.c: Likewise.
18223 * web.c: Likewise.
18224
18225 2014-05-06 Richard Biener <rguenther@suse.de>
18226
18227 PR middle-end/61070
18228 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18229 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18230
18231 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18232
18233 PR ipa/60965
18234 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18235
18236 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18237 Tom de Vries <tom@codesourcery.com>
18238
18239 * target.def (call_fusage_contains_non_callee_clobbers): New
18240 DEFHOOKPOD.
18241 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18242 Hooks to @menu.
18243 (@node Miscellaneous Register Hooks): New node.
18244 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18245 * doc/tm.texi: Regenerate.
18246
18247 2014-05-05 Marek Polacek <polacek@redhat.com>
18248
18249 PR driver/61065
18250 * opts.c (common_handle_option): Call error_at instead of warning_at.
18251
18252 2014-05-05 Richard Biener <rguenther@suse.de>
18253
18254 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18255 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18256 under the TODO_verify_il umbrella.
18257
18258 2014-05-05 Richard Biener <rguenther@suse.de>
18259
18260 * passes.c (execute_function_todo): Move TODO_verify_flow under
18261 the TODO_verify_ul umbrella.
18262
18263 2014-05-05 Richard Biener <rguenther@suse.de>
18264
18265 PR middle-end/61010
18266 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18267 X & CST away from a CST that is the mask of a mode.
18268
18269 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18270
18271 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18272 int argument to enum machine_mode.
18273 (picochip_class_max_nregs): Ditto.
18274 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18275 (picochip_class_max_nregs): Ditto.
18276
18277 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18278
18279 * target.def: Add new target hook.
18280 * doc/tm.texi: Regenerate.
18281 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18282 * targhooks.c (default_keep_leaf_when_profiled): New function.
18283
18284 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18285 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18286
18287 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18288
18289 PR tree-optimization/60363
18290 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18291 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18292 (update_destination_phis): New parameter.
18293 (create_edge_and_update_destination_phis): Ditto.
18294 (ssa_fix_duplicate_block_edges): Pass new arguments.
18295 (thread_single_edge): Ditto.
18296
18297 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18298
18299 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18300 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18301 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18302 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18303 Use RS6000_BTM_HARD_FLOAT.
18304 (BU_MISC_2): Likewise.
18305 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18306 RS6000_BTM_HARD_FLOAT.
18307 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18308 is explicitly used.
18309 (rs6000_invalid_builtin): Add hard floating builtin support.
18310 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18311 hard float builtins.
18312 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18313
18314 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18315
18316 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18317 Add missing function* argument.
18318
18319 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18320
18321 * lra-constraints.c (valid_address_p): Move earlier in file.
18322 Add a constraint argument to the address_info version.
18323 (satisfies_memory_constraint_p): New function.
18324 (satisfies_address_constraint_p): Likewise.
18325 (process_alt_operands, curr_insn_transform): Use them.
18326 (process_address): Pass the constraint to valid_address_p when
18327 checking address operands.
18328
18329 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18330
18331 * config/mips/mips.c (mips_isa_rev): New variable.
18332 (mips_set_architecture): Set it.
18333 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18334 from mips_isa_rev.
18335 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18336 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18337 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18338 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18339 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18340 conditions in terms of mips_isa_rev.
18341 (mips_isa_rev): Declare.
18342
18343 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18344
18345 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18346 (prob_unlikely, prob_likely): Make variables const.
18347
18348 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18349
18350 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18351
18352 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18353
18354 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18355
18356 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18357
18358 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18359 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18360 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18361 functions.
18362 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18363 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18364 sh_pass_in_reg_p.
18365 Replace usage of ROUND_REG with sh_round_reg.
18366 Use CEIL instead of ROUND_ADVANCE.
18367
18368 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18369
18370 PR target/61026
18371 * config/sh/sh.c: Include stdlib headers before everything else.
18372
18373 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18374
18375 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18376 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18377 (gimplify_adjust_omp_clauses): Simd region is never
18378 directly nested in combined parallel. Instead, for linear
18379 with copyin/copyout, if in combined for simd loop, make decl
18380 firstprivate/lastprivate on OMP_FOR.
18381 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18382 expand_omp_for_static_chunk): When setting endvar, also set
18383 fd->loop.v to the same value.
18384
18385 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18386
18387 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18388
18389 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18390
18391 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18392 expression.
18393
18394 2014-05-02 Marek Polacek <polacek@redhat.com>
18395
18396 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18397
18398 2014-05-02 Kito Cheng <kito@0xlab.org>
18399
18400 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18401 to a C expression marco.
18402 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18403 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18404 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18405 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18406 HONOR_REG_ALLOC_ORDER.
18407 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18408
18409 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18410
18411 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18412
18413 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18414
18415 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18416
18417 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18418
18419 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18420 (convert_scalar_cond_reduction): Likewise.
18421 (predicate_scalar_phi): Add recognition and transformation
18422 of simple conditioanl reduction to be vectorizable.
18423
18424 2014-05-01 Marek Polacek <polacek@redhat.com>
18425
18426 PR c/43245
18427 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18428
18429 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18430
18431 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18432 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18433 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18434 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18435 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18436 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18437 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18438 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18439
18440 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18441
18442 * config/arc/arc.opt (mlra): Move comment above option name
18443 to avoid mis-parsing as language options.
18444
18445 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18446
18447 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18448 * config/sol2.h: ... here.
18449 * config/sol2-10.h: Remove.
18450
18451 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18452 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18453 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18454 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18455 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18456 * config/sol2.h: ... here.
18457 (SECTION_NAME_FORMAT): Don't redefine.
18458 (STARTFILE_ARCH32_SPEC): Rename to ...
18459 (STARTFILE_ARCH_SPEC): ... this.
18460 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18461 * config/sparc/sol2.h: ... here.
18462 (SECTION_NAME_FORMAT): Don't undef.
18463 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18464 (SUBTARGET_EXTRA_SPECS): Remove.
18465 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18466
18467 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18468 (MD_STARTFILE_PREFIX): Remove.
18469 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18470 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18471 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18472 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18473 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18474 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18475 * config/i386/sol2.h: ... here.
18476 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18477 * config/i386/sol2-bi.h: Remove.
18478 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18479 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18480
18481 * config/i386/t-sol2-64: Rename to ...
18482 * config/i386/t-sol2: ... this.
18483 * config/sparc/t-sol2-64: Rename to ...
18484 * config/sparc/t-sol2: ... this.
18485
18486 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18487 sol2_tm_file_head, sol2_tm_file_tail.
18488 Include ${cpu_type}/sol2.h before sol2.h.
18489 Remove sol2-10.h.
18490 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18491 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18492 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18493 Reflect i386/t-sol2-64 renaming.
18494 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18495 Reflect sparc/t-sol2-64 renaming.
18496
18497 2014-04-30 Richard Biener <rguenther@suse.de>
18498
18499 * passes.c (execute_function_todo): Move TODO_verify_stmts
18500 and TODO_verify_ssa under the TODO_verify_il umbrella.
18501 * tree-ssa.h (verify_ssa): Adjust prototype.
18502 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18503 we should verify SSA operands.
18504 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18505 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18506 whether we should verify whether not throwing stmts have EH info.
18507 * graphite-scop-detection.c (create_sese_edges): Adjust.
18508 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18509 * tree-eh.c (lower_try_finally_switch): Do not add the
18510 default case label twice.
18511
18512 2014-04-30 Marek Polacek <polacek@redhat.com>
18513
18514 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18515 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18516 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18517 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18518
18519 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18520
18521 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18522 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18523 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18524 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18525 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18526 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18527 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18528 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18529
18530 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18531
18532 * tree-cfg.c (dump_function_to_file): Dump the return type of
18533 functions, in a line to itself before the function body, mimicking
18534 the layout of a C function.
18535
18536 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18537
18538 PR tree-optimization/60971
18539 * tree-tailcall.c (process_assignment): Reject conversions which
18540 reduce precision.
18541
18542 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18543
18544 * calls.c (initialize_argument_information): Always treat
18545 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18546 (expand_call): Likewise.
18547 (emit_library_call_calue_1): Likewise.
18548 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18549 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18550 code accordingly.
18551
18552 2014-04-29 Nick Clifton <nickc@redhat.com>
18553
18554 * config/msp430/msp430.md (umulsidi): Fix typo.
18555 (mulhisi3): Enable even inside interrupt handlers.
18556 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18557 bigger return address pushed in large mode.
18558
18559 2014-04-29 Nick Clifton <nickc@redhat.com>
18560
18561 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18562 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18563 available modes.
18564 * config/m32r/m32r.c (init_reg_tables): Likewise.
18565 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18566 enum to hold the modes.
18567
18568 2014-04-29 Richard Biener <rguenther@suse.de>
18569
18570 * dominance.c (free_dominance_info): Add overload with
18571 function parameter.
18572 (dom_info_state): Likewise.
18573 (dom_info_available_p): Likewise.
18574 * basic-block.h (free_dominance_info, dom_info_state,
18575 dom_info_available_p): Declare overloads.
18576 * passes.c (execute_function_todo): Verify that verifiers
18577 don't change dominator info state. Drop dominator info
18578 for IPA pass invocations.
18579 * cgraph.c (release_function_body): Restore asserts that
18580 dominator information is released.
18581
18582 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18583
18584 * doc/invoke.texi: Fix typo.
18585 * tree-vrp.c: Fix typos.
18586 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18587
18588 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18589
18590 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18591
18592 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18593
18594 * config/aarch64/aarch64-builtins.c
18595 (aarch64_types_storestruct_lane_qualifiers): New.
18596 (TYPES_STORESTRUCT_LANE): Likewise.
18597 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18598 (st3_lane): Likewise.
18599 (st4_lane): Likewise.
18600 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18601 (vec_store_lanesci_lane<mode>): Likewise.
18602 (vec_store_lanesxi_lane<mode>): Likewise.
18603 (aarch64_st2_lane<VQ:mode>): Likewise.
18604 (aarch64_st3_lane<VQ:mode>): Likewise.
18605 (aarch64_st4_lane<VQ:mode>): Likewise.
18606 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18607 * config/aarch64/arm_neon.h
18608 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18609 use new macro arguments.
18610 (__ST3_LANE_FUNC): Likewise.
18611 (__ST4_LANE_FUNC): Likewise.
18612 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18613 (V_THREE_ELEM): Likewise.
18614 (V_FOUR_ELEM): Likewise.
18615
18616 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18617
18618 * doc/gimple.texi: Replace the description of the now-defunct
18619 union gimple_statement_d with a diagram showing the
18620 gimple_statement_base class hierarchy and its relationships to
18621 the GSS_ and GIMPLE_ enums.
18622
18623 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18624
18625 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18626 * config/aarch64/aarch64.c
18627 (aarch64_cannot_change_mode_class): Weaken conditions.
18628 (aarch64_modes_tieable_p): New.
18629 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18630
18631 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18632
18633 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18634 (loadsync_<mode>): Change mode.
18635 (load_quadpti, store_quadpti): New.
18636 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18637 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18638
18639 2014-04-28 Martin Jambor <mjambor@suse.cz>
18640
18641 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18642 same alias type as the original statement.
18643 (subreplacement_assignment_data): New type.
18644 (handle_unscalarized_data_in_subtree): New type of parameter,
18645 generate new memory accesses with same alias type as the original
18646 statement.
18647 (load_assign_lhs_subreplacements): Likewise.
18648 (sra_modify_constructor_assign): Generate new memory accesses with
18649 same alias type as the original statement.
18650
18651 2014-04-28 Richard Biener <rguenther@suse.de>
18652
18653 * tree-pass.h (TODO_verify_il): Define.
18654 (TODO_verify_all): Complete properly.
18655 * passes.c (execute_function_todo): Move existing loop-closed
18656 SSA verification under TODO_verify_il.
18657 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18658 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18659 Fix tree sharing issue.
18660
18661 2014-04-28 Richard Biener <rguenther@suse.de>
18662
18663 PR middle-end/60092
18664 * builtins.def (DEF_C11_BUILTIN): Add.
18665 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18666 * coretypes.h (enum function_class): Add function_c11_misc.
18667 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18668 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18669 (call_may_clobber_ref_p_1): Likewise.
18670 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18671 (mark_all_reaching_defs_necessary_1): Likewise.
18672 (propagate_necessity): Likewise.
18673 (eliminate_unnecessary_stmts): Likewise.
18674 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18675
18676 2014-04-28 Richard Biener <rguenther@suse.de>
18677
18678 * tree-vrp.c (vrp_var_may_overflow): Remove.
18679 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18680 with overflow immediately bump to one before that value and
18681 let iteration figure out overflow status.
18682
18683 2014-04-28 Richard Biener <rguenther@suse.de>
18684
18685 * configure.ac: Do valgrind header checks unconditionally.
18686 Add --enable-valgrind-annotations.
18687 * system.h: Guard valgrind header inclusion with
18688 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18689 * alloc-pool.c (pool_alloc, pool_free): Use
18690 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18691 to guard possibly dead code.
18692 * config.in: Regenerated.
18693 * configure: Likewise.
18694
18695 2014-04-28 Jeff Law <law@redhat.com>
18696
18697 PR tree-optimization/60902
18698 * tree-ssa-threadedge.c
18699 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18700 over real defs when invalidating outputs from statements that do not
18701 produce useful outputs for threading.
18702
18703 2014-04-28 Richard Biener <rguenther@suse.de>
18704
18705 PR tree-optimization/60979
18706 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18707 SCOPs that end in a block with a successor with abnormal
18708 predecessors.
18709
18710 2014-04-28 Richard Biener <rguenther@suse.de>
18711
18712 * tree-pass.h (execute_pass_list): Adjust prototype.
18713 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18714 (do_per_function): Change callback signature, push all actual
18715 work to the callbals.
18716 (do_per_function_toporder): Likewise.
18717 (execute_function_dump): Adjust.
18718 (execute_function_todo): Likewise.
18719 (clear_last_verified): Likewise.
18720 (verify_curr_properties): Likewise.
18721 (update_properties_after_pass): Likewise.
18722 (execute_pass_list_1): Split out from ...
18723 (execute_pass_list): ... here. Adjust.
18724 (execute_ipa_pass_list): Likewise.
18725 * cgraphunit.c (cgraph_add_new_function): Adjust.
18726 (analyze_function): Likewise.
18727 (expand_function): Likewise.
18728 * cgraph.c (release_function_body): Free dominance info
18729 here instead of asserting it was magically freed elsewhere.
18730
18731 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18732
18733 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18734 * configure: Regenerate.
18735 * config/sparc/sparc.opt (muser-mode): New option.
18736 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18737 for LEON3.
18738 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18739 * doc/invoke.texi (SPARC options): Document -muser-mode.
18740
18741 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18742
18743 * cselib.c (find_slot_memmode): Delete.
18744 (cselib_hasher): Change compare_type to a struct.
18745 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18746 constants.
18747 (preserve_constants_and_equivs): Adjust for new compare_type.
18748 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18749 (wrap_constant): Delete.
18750 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18751
18752 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18753
18754 * doc/install.texi (Building with profile feedback): Remove
18755 outdated sentence.
18756
18757 2014-04-26 Tom de Vries <tom@codesourcery.com>
18758
18759 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18760 array accesses.
18761
18762 2014-04-25 Cary Coutant <ccoutant@google.com>
18763
18764 PR debug/60929
18765 * dwarf2out.c (should_move_die_to_comdat): A type definition
18766 can contain a subprogram definition, but don't move it to a
18767 comdat unit.
18768 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18769 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18770 from original DIE.
18771 (clone_tree_hash): Rename to...
18772 (clone_tree_partial): ...this; change callers. Copy
18773 DW_TAG_subprogram DIEs as declarations.
18774 (copy_decls_walk): Don't copy children of a declaration into a
18775 type unit.
18776
18777 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18778
18779 PR target/60969
18780 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18781 alternative 12.
18782
18783 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18784
18785 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18786 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18787 reg for long_call.
18788 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18789 restriction.
18790
18791 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18792
18793 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18794
18795 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18796
18797 PR tree-optimization/60930
18798 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18799 creating a multiply candidate by folding two constant
18800 multiplicands when the result overflows.
18801
18802 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18803
18804 PR tree-optimization/60960
18805 * tree-vect-generic.c (expand_vector_operation): Only call
18806 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18807
18808 2014-04-25 Tom de Vries <tom@codesourcery.com>
18809
18810 * expr.c (clobber_reg_mode): New function.
18811 * expr.h (clobber_reg): New function.
18812
18813 2014-04-25 Tom de Vries <tom@codesourcery.com>
18814
18815 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18816 clobbers.
18817
18818 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18819 Tom de Vries <tom@codesourcery.com>
18820
18821 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18822 handle.
18823 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18824 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18825 new argument to find_all_hard_reg_sets call.
18826
18827 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18828
18829 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18830 Use HOST_WIDE_INT_C for mask literal.
18831 (aarch_rev16_shleft_mask_imm_p): Likewise.
18832
18833 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18834
18835 PR target/60941
18836 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18837
18838 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18839
18840 PR preprocessor/56540
18841 * config/i386/i386-c.c (ix86_target_macros): Define
18842 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18843
18844 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18845
18846 * configure.ac (tga_func): Remove.
18847 (LIB_TLS_SPEC): Remove.
18848 * configure: Regenerate.
18849 * config.in: Regenerate.
18850 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18851
18852 2014-04-25 Richard Biener <rguenther@suse.de>
18853
18854 PR ipa/60912
18855 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18856 call stmt use/clobber sets during stmt walk instead of
18857 walking the possibly incomplete set of caller edges.
18858
18859 2014-04-25 Richard Biener <rguenther@suse.de>
18860
18861 PR ipa/60911
18862 * passes.c (apply_ipa_transforms): Inline into only caller ...
18863 (execute_one_pass): ... here. Properly bring in function
18864 bodies for nodes we want to apply IPA transforms to.
18865
18866 2014-04-24 Cong Hou <congh@google.com>
18867
18868 PR tree-optimization/60896
18869 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18870 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18871 (vect_mark_pattern_stmts): Set the def type of all statements in
18872 PATTERN_DEF_SEQ as vect_internal_def.
18873
18874 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18875
18876 * doc/extend.texi (PowerPC Built-in Functions): Document new
18877 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18878 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18879
18880 * config/rs6000/predicates.md (const_0_to_3_operand): New
18881 predicate to match 0..3 integer constants.
18882
18883 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18884 to support adding miscellaneous builtin functions.
18885 (BU_DFP_MISC_2): Likewise.
18886 (BU_P7_MISC_1): Likewise.
18887 (BU_P7_MISC_2): Likewise.
18888 (BU_P8V_MISC_3): Likewise.
18889 (BU_MISC_1): Likewise.
18890 (BU_MISC_2): Likewise.
18891 (DIVWE): Add extended divide builtin functions.
18892 (DIVWEO): Likewise.
18893 (DIVWEU): Likewise.
18894 (DIVWEUO): Likewise.
18895 (DIVDE): Likewise.
18896 (DIVDEO): Likewise.
18897 (DIVDEU): Likewise.
18898 (DIVDEUO): Likewise.
18899 (DXEX): Add decimal floating-point builtin functions.
18900 (DXEXQ): Likewise.
18901 (DDEDPD): Likewise.
18902 (DDEDPDQ): Likewise.
18903 (DENBCD): Likewise.
18904 (DENBCDQ): Likewise.
18905 (DIEX): Likewise.
18906 (DIEXQ): Likewise.
18907 (DSCLI): Likewise.
18908 (DSCLIQ): Likewise.
18909 (DSCRI): Likewise.
18910 (DSCRIQ): Likewise.
18911 (CDTBCD): Add new BCD builtin functions.
18912 (CBCDTD): Likewise.
18913 (ADDG6S): Likewise.
18914 (BCDADD): Likewise.
18915 (BCDADD_LT): Likewise.
18916 (BCDADD_EQ): Likewise.
18917 (BCDADD_GT): Likewise.
18918 (BCDADD_OV): Likewise.
18919 (BCDSUB): Likewise.
18920 (BCDSUB_LT): Likewise.
18921 (BCDSUB_EQ): Likewise.
18922 (BCDSUB_GT): Likewise.
18923 (BCDSUB_OV): Likewise.
18924 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18925 (UNPACK_TD): Likewise.
18926 (PACK_TF): Likewise.
18927 (UNPACK_TF): Likewise.
18928 (UNPACK_TF_0): Likewise.
18929 (UNPACK_TF_1): Likewise.
18930 (PACK_V1TI): Likewise.
18931 (UNPACK_V1TI): Likewise.
18932
18933 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18934 support for decimal floating point builtin functions.
18935 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18936 functions that take constant arguments.
18937 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18938 (rs6000_init_builtins): Setup long double, _Decimal64, and
18939 _Decimal128 types for new builtin functions.
18940 (builtin_function_type): Set the unsigned flags appropriately for
18941 the new builtin functions.
18942 (rs6000_opt_masks): Add support for decimal floating point builtin
18943 functions.
18944
18945 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18946 floating point builtin functions.
18947 (RS6000_BTM_COMMON): Likewise.
18948 (RS6000_BTI_long_double): Likewise.
18949 (RS6000_BTI_dfloat64): Likewise.
18950 (RS6000_BTI_dfloat128): Likewise.
18951 (long_double_type_internal_node): Likewise.
18952 (dfloat64_type_internal_node): Likewise.
18953 (dfloat128_type_internal_node): Likewise.
18954
18955 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18956 2.07 bcd arithmetic instructions.
18957 (UNSPEC_BCDSUB): Likewise.
18958 (UNSPEC_BCD_OVERFLOW): Likewise.
18959 (UNSPEC_BCD_ADD_SUB): Likewise.
18960 (bcd_add_sub): Likewise.
18961 (BCD_TEST): Likewise.
18962 (bcd<bcd_add_sub>): Likewise.
18963 (bcd<bcd_add_sub>_test): Likewise.
18964 (bcd<bcd_add_sub>_test2): Likewise.
18965 (bcd<bcd_add_sub>_<code>): Likewise.
18966 (peephole2 for combined bcd ops): Likewise.
18967
18968 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18969 decimal floating point builtin functions.
18970 (UNSPEC_DENBCD): Likewise.
18971 (UNSPEC_DXEX): Likewise.
18972 (UNSPEC_DIEX): Likewise.
18973 (UNSPEC_DSCLI): Likewise.
18974 (UNSPEC_DSCRI): Likewise.
18975 (D64_D128): Likewise.
18976 (dfp_suffix): Likewise.
18977 (dfp_ddedpd_<mode>): Likewise.
18978 (dfp_denbcd_<mode>): Likewise.
18979 (dfp_dxex_<mode>): Likewise.
18980 (dfp_diex_<mode>): Likewise.
18981 (dfp_dscli_<mode>): Likewise.
18982 (dfp_dscri_<mode>): Likewise.
18983
18984 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18985 builtin functions.
18986 (UNSPEC_CDTBCD): Likewise.
18987 (UNSPEC_CBCDTD): Likewise.
18988 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18989 (UNSPEC_DIVEO): Likewise.
18990 (UNSPEC_DIVEU): Likewise.
18991 (UNSPEC_DIVEUO): Likewise.
18992 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18993 pack/unpack 128-bit types.
18994 (UNSPEC_PACK_128BIT): Likewise.
18995 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18996 (udiv<mode>3): Use idiv_ldiv mode attribute.
18997 (div<mode>3): Likewise.
18998 (addg6s): Add new BCD builtin functions.
18999 (cdtbcd): Likewise.
19000 (cbcdtd): Likewise.
19001 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19002 (div_extend): Likewise.
19003 (div<div_extend>_<mode>"): Likewise.
19004 (FP128_64): Add support for new builtin functions to pack/unpack
19005 128-bit types.
19006 (unpack<mode>): Likewise.
19007 (unpacktf_0): Likewise.
19008 (unpacktf_1): Likewise.
19009 (unpack<mode>_dm): Likewise.
19010 (unpack<mode>_nodm): Likewise.
19011 (pack<mode>): Likewise.
19012 (unpackv1ti): Likewise.
19013 (packv1ti): Likewise.
19014
19015 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19016
19017 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19018 is disabled.
19019
19020 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19021
19022 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19023 * gimplify.c (omp_is_private): Change last argument's type to int.
19024 Only diagnose lastprivate if the simd argument is 1, only diagnose
19025 linear if the simd argument is 2.
19026 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19027 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19028 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19029 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19030 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19031 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19032 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19033 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19034 * tree-nested.c (convert_nonlocal_omp_clauses,
19035 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19036
19037 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19038
19039 PR target/60822
19040 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19041 operand 1.
19042
19043 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19044
19045 * flag-types.h (enum ivar_visibility): Add.
19046
19047 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19048
19049 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19050 function * argument.
19051
19052 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19053
19054 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19055
19056 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19057 Tom de Vries <tom@codesourcery.com>
19058
19059 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19060 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19061 reg-note.
19062 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19063 * emit-rtl.c (try_split): Same.
19064
19065 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19066 Tom de Vries <tom@codesourcery.com>
19067
19068 * common.opt (fuse-caller-save): New option.
19069
19070 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19071
19072 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19073 elements for big-endian.
19074
19075 2014-04-24 Richard Biener <rguenther@suse.de>
19076
19077 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19078 during TER and instead use the sepops interface for expanding
19079 non-GIMPLE_SINGLE_RHS.
19080
19081 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19082
19083 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19084 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19085
19086 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19087
19088 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19089 assembler 64-bit option.
19090 * configure: Regenerate.
19091
19092 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19093
19094 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19095 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19096 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19097 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19098 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19099
19100 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19101
19102 * config/aarch64/aarch64-builtins.c
19103 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19104 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19105 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19106 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19107 builtins.
19108 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19109 (Vrevsuff): New mode attribute.
19110
19111 2014-04-24 Terry Guo <terry.guo@arm.com>
19112
19113 * config/arm/arm.h (machine_function): Define variable
19114 after_arm_reorg here.
19115 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19116 (arm_split_constant): Update the way to access variable
19117 after_arm_reorg.
19118 (arm_reorg): Ditto.
19119 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19120
19121 2014-04-23 Tom de Vries <tom@codesourcery.com>
19122
19123 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19124
19125 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19126
19127 * is-a.h: Update comments to reflect the following changes to the
19128 "pointerness" of the API, making the template parameter match the
19129 return type, allowing use of is-a.h with typedefs of pointers.
19130 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19131 that the return type matches the parameter to the is_a_helper.
19132 (as_a): Likewise.
19133 (dyn_cast): Likewise.
19134
19135 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19136 pointer from the is-a.h API.
19137
19138 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19139 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19140 is-a.h API.
19141 (is_a_helper <varpool_node>::test): Likewise, convert to...
19142 (is_a_helper <varpool_node *>::test): ...this.
19143
19144 (varpool_first_variable): Update for removal of implicit pointer
19145 from the is-a.h API.
19146 (varpool_next_variable): Likewise.
19147 (varpool_first_static_initializer): Likewise.
19148 (varpool_next_static_initializer): Likewise.
19149 (varpool_first_defined_variable): Likewise.
19150 (varpool_next_defined_variable): Likewise.
19151 (cgraph_first_defined_function): Likewise.
19152 (cgraph_next_defined_function): Likewise.
19153 (cgraph_first_function): Likewise.
19154 (cgraph_next_function): Likewise.
19155 (cgraph_first_function_with_gimple_body): Likewise.
19156 (cgraph_next_function_with_gimple_body): Likewise.
19157 (cgraph_alias_target): Likewise.
19158 (varpool_alias_target): Likewise.
19159 (cgraph_function_or_thunk_node): Likewise.
19160 (varpool_variable_node): Likewise.
19161 (symtab_real_symbol_p): Likewise.
19162 * cgraphunit.c (referred_to_p): Likewise.
19163 (analyze_functions): Likewise.
19164 (handle_alias_pairs): Likewise.
19165 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19166 * gimple-ssa.h (gimple_vuse_op): Likewise.
19167 (gimple_vdef_op): Likewise.
19168 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19169 * gimple.c (gimple_build_asm_1): Likewise.
19170 (gimple_build_try): Likewise.
19171 (gimple_build_resx): Likewise.
19172 (gimple_build_eh_dispatch): Likewise.
19173 (gimple_build_omp_for): Likewise.
19174 (gimple_omp_for_set_clauses): Likewise.
19175
19176 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19177 (is_a_helper <gimple_statement_asm *>::test): ...this.
19178 (is_a_helper <gimple_statement_bind>::test): Convert to...
19179 (is_a_helper <gimple_statement_bind *>::test): ...this.
19180 (is_a_helper <gimple_statement_call>::test): Convert to...
19181 (is_a_helper <gimple_statement_call *>::test): ...this.
19182 (is_a_helper <gimple_statement_catch>::test): Convert to...
19183 (is_a_helper <gimple_statement_catch *>::test): ...this.
19184 (is_a_helper <gimple_statement_resx>::test): Convert to...
19185 (is_a_helper <gimple_statement_resx *>::test): ...this.
19186 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19187 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19188 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19189 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19190 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19191 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19192 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19193 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19194 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19195 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19196 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19197 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19198 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19199 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19200 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19201 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19202 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19203 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19204 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19205 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19206 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19207 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19208 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19209 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19210 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19211 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19212 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19213 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19214 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19215 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19216 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19217 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19218 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19219 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19220 (is_a_helper <gimple_statement_phi>::test): Convert to...
19221 (is_a_helper <gimple_statement_phi *>::test): ...this.
19222 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19223 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19224 (is_a_helper <gimple_statement_try>::test): Convert to...
19225 (is_a_helper <gimple_statement_try *>::test): ...this.
19226 (is_a_helper <gimple_statement_wce>::test): Convert to...
19227 (is_a_helper <gimple_statement_wce *>::test): ...this.
19228 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19229 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19230 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19231 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19232 (is_a_helper <const gimple_statement_call>::test): Convert to...
19233 (is_a_helper <const gimple_statement_call *>::test): ...this.
19234 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19235 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19236 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19237 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19238 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19239 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19240 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19241 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19242 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19243 Convert to...
19244 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19245 ...this.
19246 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19247 Convert to...
19248 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19249 ...this.
19250 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19251 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19252 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19253 to...
19254 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19255 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19256 to...
19257 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19258 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19259 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19260 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19261 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19262 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19263 to...
19264 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19265 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19266 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19267 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19268 to...
19269 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19270 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19271 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19272 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19273 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19274 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19275 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19276 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19277 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19278 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19279 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19280 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19281 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19282 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19283 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19284 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19285 to...
19286 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19287 ...this.
19288 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19289 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19290
19291 (gimple_use_ops): Update for removal of implicit pointer from the
19292 is-a.h API.
19293 (gimple_set_use_ops): Likewise.
19294 (gimple_vuse): Likewise.
19295 (gimple_vdef): Likewise.
19296 (gimple_vuse_ptr): Likewise.
19297 (gimple_vdef_ptr): Likewise.
19298 (gimple_set_vuse): Likewise.
19299 (gimple_set_vdef): Likewise.
19300 (gimple_omp_return_set_lhs): Likewise.
19301 (gimple_omp_return_lhs): Likewise.
19302 (gimple_omp_return_lhs_ptr): Likewise.
19303 (gimple_call_fntype): Likewise.
19304 (gimple_call_set_fntype): Likewise.
19305 (gimple_call_set_internal_fn): Likewise.
19306 (gimple_call_use_set): Likewise.
19307 (gimple_call_clobber_set): Likewise.
19308 (gimple_bind_vars): Likewise.
19309 (gimple_bind_set_vars): Likewise.
19310 (gimple_bind_body_ptr): Likewise.
19311 (gimple_bind_set_body): Likewise.
19312 (gimple_bind_add_stmt): Likewise.
19313 (gimple_bind_block): Likewise.
19314 (gimple_bind_set_block): Likewise.
19315 (gimple_asm_ninputs): Likewise.
19316 (gimple_asm_noutputs): Likewise.
19317 (gimple_asm_nclobbers): Likewise.
19318 (gimple_asm_nlabels): Likewise.
19319 (gimple_asm_input_op): Likewise.
19320 (gimple_asm_input_op_ptr): Likewise.
19321 (gimple_asm_output_op): Likewise.
19322 (gimple_asm_output_op_ptr): Likewise.
19323 (gimple_asm_set_output_op): Likewise.
19324 (gimple_asm_clobber_op): Likewise.
19325 (gimple_asm_set_clobber_op): Likewise.
19326 (gimple_asm_label_op): Likewise.
19327 (gimple_asm_set_label_op): Likewise.
19328 (gimple_asm_string): Likewise.
19329 (gimple_catch_types): Likewise.
19330 (gimple_catch_types_ptr): Likewise.
19331 (gimple_catch_handler_ptr): Likewise.
19332 (gimple_catch_set_types): Likewise.
19333 (gimple_catch_set_handler): Likewise.
19334 (gimple_eh_filter_types): Likewise.
19335 (gimple_eh_filter_types_ptr): Likewise.
19336 (gimple_eh_filter_failure_ptr): Likewise.
19337 (gimple_eh_filter_set_types): Likewise.
19338 (gimple_eh_filter_set_failure): Likewise.
19339 (gimple_eh_must_not_throw_fndecl): Likewise.
19340 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19341 (gimple_eh_else_n_body_ptr): Likewise.
19342 (gimple_eh_else_e_body_ptr): Likewise.
19343 (gimple_eh_else_set_n_body): Likewise.
19344 (gimple_eh_else_set_e_body): Likewise.
19345 (gimple_try_eval_ptr): Likewise.
19346 (gimple_try_cleanup_ptr): Likewise.
19347 (gimple_try_set_eval): Likewise.
19348 (gimple_try_set_cleanup): Likewise.
19349 (gimple_wce_cleanup_ptr): Likewise.
19350 (gimple_wce_set_cleanup): Likewise.
19351 (gimple_phi_capacity): Likewise.
19352 (gimple_phi_num_args): Likewise.
19353 (gimple_phi_result): Likewise.
19354 (gimple_phi_result_ptr): Likewise.
19355 (gimple_phi_set_result): Likewise.
19356 (gimple_phi_arg): Likewise.
19357 (gimple_phi_set_arg): Likewise.
19358 (gimple_resx_region): Likewise.
19359 (gimple_resx_set_region): Likewise.
19360 (gimple_eh_dispatch_region): Likewise.
19361 (gimple_eh_dispatch_set_region): Likewise.
19362 (gimple_omp_critical_name): Likewise.
19363 (gimple_omp_critical_name_ptr): Likewise.
19364 (gimple_omp_critical_set_name): Likewise.
19365 (gimple_omp_for_clauses): Likewise.
19366 (gimple_omp_for_clauses_ptr): Likewise.
19367 (gimple_omp_for_set_clauses): Likewise.
19368 (gimple_omp_for_collapse): Likewise.
19369 (gimple_omp_for_index): Likewise.
19370 (gimple_omp_for_index_ptr): Likewise.
19371 (gimple_omp_for_set_index): Likewise.
19372 (gimple_omp_for_initial): Likewise.
19373 (gimple_omp_for_initial_ptr): Likewise.
19374 (gimple_omp_for_set_initial): Likewise.
19375 (gimple_omp_for_final): Likewise.
19376 (gimple_omp_for_final_ptr): Likewise.
19377 (gimple_omp_for_set_final): Likewise.
19378 (gimple_omp_for_incr): Likewise.
19379 (gimple_omp_for_incr_ptr): Likewise.
19380 (gimple_omp_for_set_incr): Likewise.
19381 (gimple_omp_for_pre_body_ptr): Likewise.
19382 (gimple_omp_for_set_pre_body): Likewise.
19383 (gimple_omp_parallel_clauses): Likewise.
19384 (gimple_omp_parallel_clauses_ptr): Likewise.
19385 (gimple_omp_parallel_set_clauses): Likewise.
19386 (gimple_omp_parallel_child_fn): Likewise.
19387 (gimple_omp_parallel_child_fn_ptr): Likewise.
19388 (gimple_omp_parallel_set_child_fn): Likewise.
19389 (gimple_omp_parallel_data_arg): Likewise.
19390 (gimple_omp_parallel_data_arg_ptr): Likewise.
19391 (gimple_omp_parallel_set_data_arg): Likewise.
19392 (gimple_omp_task_clauses): Likewise.
19393 (gimple_omp_task_clauses_ptr): Likewise.
19394 (gimple_omp_task_set_clauses): Likewise.
19395 (gimple_omp_task_child_fn): Likewise.
19396 (gimple_omp_task_child_fn_ptr): Likewise.
19397 (gimple_omp_task_set_child_fn): Likewise.
19398 (gimple_omp_task_data_arg): Likewise.
19399 (gimple_omp_task_data_arg_ptr): Likewise.
19400 (gimple_omp_task_set_data_arg): Likewise.
19401 (gimple_omp_taskreg_clauses): Likewise.
19402 (gimple_omp_taskreg_clauses_ptr): Likewise.
19403 (gimple_omp_taskreg_set_clauses): Likewise.
19404 (gimple_omp_taskreg_child_fn): Likewise.
19405 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19406 (gimple_omp_taskreg_set_child_fn): Likewise.
19407 (gimple_omp_taskreg_data_arg): Likewise.
19408 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19409 (gimple_omp_taskreg_set_data_arg): Likewise.
19410 (gimple_omp_task_copy_fn): Likewise.
19411 (gimple_omp_task_copy_fn_ptr): Likewise.
19412 (gimple_omp_task_set_copy_fn): Likewise.
19413 (gimple_omp_task_arg_size): Likewise.
19414 (gimple_omp_task_arg_size_ptr): Likewise.
19415 (gimple_omp_task_set_arg_size): Likewise.
19416 (gimple_omp_task_arg_align): Likewise.
19417 (gimple_omp_task_arg_align_ptr): Likewise.
19418 (gimple_omp_task_set_arg_align): Likewise.
19419 (gimple_omp_single_clauses): Likewise.
19420 (gimple_omp_single_clauses_ptr): Likewise.
19421 (gimple_omp_single_set_clauses): Likewise.
19422 (gimple_omp_target_clauses): Likewise.
19423 (gimple_omp_target_clauses_ptr): Likewise.
19424 (gimple_omp_target_set_clauses): Likewise.
19425 (gimple_omp_target_child_fn): Likewise.
19426 (gimple_omp_target_child_fn_ptr): Likewise.
19427 (gimple_omp_target_set_child_fn): Likewise.
19428 (gimple_omp_target_data_arg): Likewise.
19429 (gimple_omp_target_data_arg_ptr): Likewise.
19430 (gimple_omp_target_set_data_arg): Likewise.
19431 (gimple_omp_teams_clauses): Likewise.
19432 (gimple_omp_teams_clauses_ptr): Likewise.
19433 (gimple_omp_teams_set_clauses): Likewise.
19434 (gimple_omp_sections_clauses): Likewise.
19435 (gimple_omp_sections_clauses_ptr): Likewise.
19436 (gimple_omp_sections_set_clauses): Likewise.
19437 (gimple_omp_sections_control): Likewise.
19438 (gimple_omp_sections_control_ptr): Likewise.
19439 (gimple_omp_sections_set_control): Likewise.
19440 (gimple_omp_for_set_cond): Likewise.
19441 (gimple_omp_for_cond): Likewise.
19442 (gimple_omp_atomic_store_set_val): Likewise.
19443 (gimple_omp_atomic_store_val): Likewise.
19444 (gimple_omp_atomic_store_val_ptr): Likewise.
19445 (gimple_omp_atomic_load_set_lhs): Likewise.
19446 (gimple_omp_atomic_load_lhs): Likewise.
19447 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19448 (gimple_omp_atomic_load_set_rhs): Likewise.
19449 (gimple_omp_atomic_load_rhs): Likewise.
19450 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19451 (gimple_omp_continue_control_def): Likewise.
19452 (gimple_omp_continue_control_def_ptr): Likewise.
19453 (gimple_omp_continue_set_control_def): Likewise.
19454 (gimple_omp_continue_control_use): Likewise.
19455 (gimple_omp_continue_control_use_ptr): Likewise.
19456 (gimple_omp_continue_set_control_use): Likewise.
19457 (gimple_transaction_body_ptr): Likewise.
19458 (gimple_transaction_label): Likewise.
19459 (gimple_transaction_label_ptr): Likewise.
19460 (gimple_transaction_set_body): Likewise.
19461 (gimple_transaction_set_label): Likewise.
19462
19463 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19464 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19465 * ipa-ref.c (ipa_record_reference): Likewise.
19466 * ipa-reference.c (analyze_function): Likewise.
19467 (ipa_reference_write_optimization_summary): Likewise.
19468 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19469 (address_taken_from_non_vtable_p): Likewise.
19470 (comdat_can_be_unshared_p_1): Likewise.
19471 * lto-cgraph.c (lto_output_ref): Likewise.
19472 (add_references): Likewise.
19473 (compute_ltrans_boundary): Likewise.
19474 (output_symtab): Likewise.
19475 (input_ref): Likewise.
19476 (input_cgraph_1): Likewise.
19477 (output_cgraph_opt_summary): Likewise.
19478 * lto-streamer-out.c (lto_output): Likewise.
19479 (output_symbol_p): Likewise.
19480 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19481 (lsei_start_function_in_partition): Likewise.
19482 (lsei_next_variable_in_partition): Likewise.
19483 (lsei_start_variable_in_partition): Likewise.
19484 * symtab.c (insert_to_assembler_name_hash): Likewise.
19485 (unlink_from_assembler_name_hash): Likewise.
19486 (symtab_unregister_node): Likewise.
19487 (symtab_remove_node): Likewise.
19488 (dump_symtab_node): Likewise.
19489 (verify_symtab_base): Likewise.
19490 (verify_symtab_node): Likewise.
19491 (symtab_make_decl_local): Likewise.
19492 (symtab_alias_ultimate_target): Likewise.
19493 (symtab_resolve_alias): Likewise.
19494 (symtab_get_symbol_partitioning_class): Likewise.
19495 * tree-phinodes.c (allocate_phi_node): Likewise.
19496 (reserve_phi_args_for_new_edge): Likewise.
19497 (remove_phi_args): Likewise.
19498 * varpool.c (varpool_node_for_asm): Likewise.
19499 (varpool_remove_unreferenced_decls): Likewise.
19500
19501 2014-04-23 Jeff Law <law@redhat.com>
19502
19503 PR tree-optimization/60902
19504 * tree-ssa-threadedge.c
19505 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19506 invalidate outputs from statements that do not produce useful
19507 outputs for threading.
19508
19509 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19510
19511 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19512 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19513 machine descriptions for Stack Smashing Protector.
19514
19515 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19516
19517 * aarch64.md (<optab>_rol<mode>3): New pattern.
19518 (<optab>_rolsi3_uxtw): Likewise.
19519 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19520
19521 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19522
19523 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19524 (arm_cortex_a12_tune): Likewise.
19525
19526 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19527
19528 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19529
19530 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19531
19532 * config/arm/arm.md (arm_rev16si2): New pattern.
19533 (arm_rev16si2_alt): Likewise.
19534 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19535
19536 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19537
19538 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19539 (rev16<mode>2_alt): Likewise.
19540 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19541 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19542 (aarch_rev16_shleft_mask_imm_p): Likewise.
19543 (aarch_rev16_p_1): Likewise.
19544 (aarch_rev16_p): Likewise.
19545 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19546 (aarch_rev16_shright_mask_imm_p): Likewise.
19547 (aarch_rev16_shleft_mask_imm_p): Likewise.
19548
19549 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19550
19551 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19552 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19553 rev cost.
19554 (cortex_a53_extra_costs): Likewise.
19555 (cortex_a57_extra_costs): Likewise.
19556 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19557 (cortexa7_extra_costs): Likewise.
19558 (cortexa8_extra_costs): Likewise.
19559 (cortexa12_extra_costs): Likewise.
19560 (cortexa15_extra_costs): Likewise.
19561 (v7m_extra_costs): Likewise.
19562 (arm_new_rtx_costs): Handle BSWAP.
19563
19564 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19565
19566 * config/arm/arm.c (cortexa8_extra_costs): New table.
19567 (arm_cortex_a8_tune): New tuning struct.
19568 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19569
19570 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19571
19572 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19573
19574 2014-04-23 Richard Biener <rguenther@suse.de>
19575
19576 * Makefile.in (OBJS): Remove loop-unswitch.o.
19577 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19578 * passes.def (pass_rtl_unswitch): Likewise.
19579 * loop-init.c (gate_rtl_unswitch): Likewise.
19580 (rtl_unswitch): Likewise.
19581 (pass_data_rtl_unswitch): Likewise.
19582 (pass_rtl_unswitch): Likewise.
19583 (make_pass_rtl_unswitch): Likewise.
19584 * rtl.h (reversed_condition): Likewise.
19585 (compare_and_jump_seq): Likewise.
19586 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19587 and make static.
19588 * loop-unroll.c (compare_and_jump_seq): Likewise.
19589
19590 2014-04-23 Richard Biener <rguenther@suse.de>
19591
19592 PR tree-optimization/60903
19593 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19594 commented code block.
19595 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19596 loop flags to newly created BBs and edges.
19597
19598 2014-04-23 Nick Clifton <nickc@redhat.com>
19599
19600 * config/msp430/msp430.c (msp430_handle_option): Move function
19601 to msp430-common.c
19602 (msp430_option_override): Simplify mcu and mcpu option handling.
19603 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19604 support for -mhwmult command line option.
19605 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19606 -mhwmult command line option.
19607 (msp430_hwmult_enabled): Delete.
19608 (msp43o_output_labelref): Add support for -mhwmult command line option.
19609 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19610 (umulsidi3): Likewise.
19611 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19612 (mcpu, mlarge, msmall): Likewise.
19613 (mhwmult): New option.
19614 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19615 prototype.
19616 (msp430_is_f5_mcu): Remove prototype.
19617 (msp430_use_f5_series_hwmult): Add prototype.
19618 * config/msp430/msp430-opts.h: New file.
19619 * common/config/msp430: New directory.
19620 * common/config/msp430/msp430-common.c: New file.
19621 * config.gcc (msp430): Remove target_has_targetm_common.
19622 * doc/invoke.texi: Document -mhwmult command line option.
19623
19624 2014-04-23 Nick Clifton <nickc@redhat.com>
19625
19626 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19627 default-manifest.o if it can be found in the search path.
19628 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19629
19630 2014-04-23 Terry Guo <terry.guo@arm.com>
19631
19632 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19633
19634 2014-04-23 Richard Biener <rguenther@suse.de>
19635
19636 PR middle-end/60895
19637 * tree-inline.c (declare_return_variable): Use mark_addressable.
19638
19639 2014-04-23 Richard Biener <rguenther@suse.de>
19640
19641 PR middle-end/60891
19642 * loop-init.c (loop_optimizer_init): Make sure to apply
19643 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19644
19645 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19646
19647 PR sanitizer/60275
19648 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19649 New options.
19650 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19651 if flag_sanitize_undefined_trap_on_error.
19652 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19653 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19654 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19655 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19656 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19657 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19658 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19659 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19660 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19661 * ubsan.c (ubsan_instrument_unreachable): Return
19662 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19663 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19664 if flag_sanitize_undefined_trap_on_error and
19665 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19666 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19667 instrument_bool_enum_load): Emit __builtin_trap () if
19668 flag_sanitize_undefined_trap_on_error and
19669 __builtin_handle_*_abort () if !flag_sanitize_recover.
19670 * doc/invoke.texi (-fsanitize-recover,
19671 -fsanitize-undefined-trap-on-error): Document.
19672
19673 2014-04-22 Christian Bruel <christian.bruel@st.com>
19674
19675 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19676 Force immediates to SImode.
19677
19678 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19679
19680 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19681 (lroundsfsi2): New.
19682 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19683 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19684 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19685 (nios2_fpu_insn): Add entry for round.
19686 (N2FPU_NO_ERRNO_P): Define.
19687 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19688 flag_errno_math.
19689 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19690
19691 2014-04-22 Richard Henderson <rth@redhat.com>
19692
19693 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19694 (add<GPI>3_compare0): Remove leading * from name.
19695 (add<GPI>3_carryin): Likewise.
19696 (sub<GPI>3_compare0): Likewise.
19697 (sub<GPI>3_carryin): Likewise.
19698 (<su_optab>mulditi3): New expander.
19699 (multi3): New expander.
19700 (madd<GPI>): Remove leading * from name.
19701
19702 2014-04-22 Martin Jambor <mjambor@suse.cz>
19703
19704 * cgraphclones.c (cgraph_function_versioning): Copy
19705 ipa_transforms_to_apply instead of asserting it is empty.
19706
19707 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19708
19709 PR target/60868
19710 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19711 on count_exp to get mode.
19712
19713 2014-04-22 Andrew Pinski <apinski@cavium.com>
19714
19715 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19716 Handle TLS for ILP32.
19717 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19718 (tlsie_small_<mode>): this and handle PTR.
19719 (tlsie_small_sidi): New pattern.
19720 (tlsle_small): Change to an expand to handle ILP32.
19721 (tlsle_small_<mode>): New pattern.
19722 (tlsdesc_small): Rename to ...
19723 (tlsdesc_small_<mode>): this and handle PTR.
19724
19725 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19726
19727 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19728
19729 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19730
19731 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19732 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19733 (aarch64_types_signed_poly_qualifiers): Likewise.
19734 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19735 (aarch64_types_poly_signed_qualifiers): Likewise.
19736 (TYPES_REINTERP_SS): Type macro added.
19737 (TYPES_REINTERP_SU): Likewise.
19738 (TYPES_REINTERP_SP): Likewise.
19739 (TYPES_REINTERP_US): Likewise.
19740 (TYPES_REINTERP_PS): Likewise.
19741 (aarch64_fold_builtin): New expression folding added.
19742 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19743 Declarations removed.
19744 (REINTERP_SS): Declarations added.
19745 (REINTERP_US): Likewise.
19746 (REINTERP_PS): Likewise.
19747 (REINTERP_SU): Likewise.
19748 (REINTERP_SP): Likewise.
19749 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19750 (vreinterpretq_p8_f64): Likewise.
19751 (vreinterpret_p16_f64): Likewise.
19752 (vreinterpretq_p16_f64): Likewise.
19753 (vreinterpret_f32_f64): Likewise.
19754 (vreinterpretq_f32_f64): Likewise.
19755 (vreinterpret_f64_f32): Likewise.
19756 (vreinterpret_f64_p8): Likewise.
19757 (vreinterpret_f64_p16): Likewise.
19758 (vreinterpret_f64_s8): Likewise.
19759 (vreinterpret_f64_s16): Likewise.
19760 (vreinterpret_f64_s32): Likewise.
19761 (vreinterpret_f64_s64): Likewise.
19762 (vreinterpret_f64_u8): Likewise.
19763 (vreinterpret_f64_u16): Likewise.
19764 (vreinterpret_f64_u32): Likewise.
19765 (vreinterpret_f64_u64): Likewise.
19766 (vreinterpretq_f64_f32): Likewise.
19767 (vreinterpretq_f64_p8): Likewise.
19768 (vreinterpretq_f64_p16): Likewise.
19769 (vreinterpretq_f64_s8): Likewise.
19770 (vreinterpretq_f64_s16): Likewise.
19771 (vreinterpretq_f64_s32): Likewise.
19772 (vreinterpretq_f64_s64): Likewise.
19773 (vreinterpretq_f64_u8): Likewise.
19774 (vreinterpretq_f64_u16): Likewise.
19775 (vreinterpretq_f64_u32): Likewise.
19776 (vreinterpretq_f64_u64): Likewise.
19777 (vreinterpret_s64_f64): Likewise.
19778 (vreinterpretq_s64_f64): Likewise.
19779 (vreinterpret_u64_f64): Likewise.
19780 (vreinterpretq_u64_f64): Likewise.
19781 (vreinterpret_s8_f64): Likewise.
19782 (vreinterpretq_s8_f64): Likewise.
19783 (vreinterpret_s16_f64): Likewise.
19784 (vreinterpretq_s16_f64): Likewise.
19785 (vreinterpret_s32_f64): Likewise.
19786 (vreinterpretq_s32_f64): Likewise.
19787 (vreinterpret_u8_f64): Likewise.
19788 (vreinterpretq_u8_f64): Likewise.
19789 (vreinterpret_u16_f64): Likewise.
19790 (vreinterpretq_u16_f64): Likewise.
19791 (vreinterpret_u32_f64): Likewise.
19792 (vreinterpretq_u32_f64): Likewise.
19793
19794 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19795
19796 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19797 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19798 (vreinterpret_p8_s8): Likewise.
19799 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19800 (vreinterpret_p8_s16): Likewise.
19801 (vreinterpret_p8_s32): Likewise.
19802 (vreinterpret_p8_s64): Likewise.
19803 (vreinterpret_p8_f32): Likewise.
19804 (vreinterpret_p8_u8): Likewise.
19805 (vreinterpret_p8_u16): Likewise.
19806 (vreinterpret_p8_u32): Likewise.
19807 (vreinterpret_p8_u64): Likewise.
19808 (vreinterpret_p8_p16): Likewise.
19809 (vreinterpretq_p8_s8): Likewise.
19810 (vreinterpretq_p8_s16): Likewise.
19811 (vreinterpretq_p8_s32): Likewise.
19812 (vreinterpretq_p8_s64): Likewise.
19813 (vreinterpretq_p8_f32): Likewise.
19814 (vreinterpretq_p8_u8): Likewise.
19815 (vreinterpretq_p8_u16): Likewise.
19816 (vreinterpretq_p8_u32): Likewise.
19817 (vreinterpretq_p8_u64): Likewise.
19818 (vreinterpretq_p8_p16): Likewise.
19819 (vreinterpret_p16_s8): Likewise.
19820 (vreinterpret_p16_s16): Likewise.
19821 (vreinterpret_p16_s32): Likewise.
19822 (vreinterpret_p16_s64): Likewise.
19823 (vreinterpret_p16_f32): Likewise.
19824 (vreinterpret_p16_u8): Likewise.
19825 (vreinterpret_p16_u16): Likewise.
19826 (vreinterpret_p16_u32): Likewise.
19827 (vreinterpret_p16_u64): Likewise.
19828 (vreinterpret_p16_p8): Likewise.
19829 (vreinterpretq_p16_s8): Likewise.
19830 (vreinterpretq_p16_s16): Likewise.
19831 (vreinterpretq_p16_s32): Likewise.
19832 (vreinterpretq_p16_s64): Likewise.
19833 (vreinterpretq_p16_f32): Likewise.
19834 (vreinterpretq_p16_u8): Likewise.
19835 (vreinterpretq_p16_u16): Likewise.
19836 (vreinterpretq_p16_u32): Likewise.
19837 (vreinterpretq_p16_u64): Likewise.
19838 (vreinterpretq_p16_p8): Likewise.
19839 (vreinterpret_f32_s8): Likewise.
19840 (vreinterpret_f32_s16): Likewise.
19841 (vreinterpret_f32_s32): Likewise.
19842 (vreinterpret_f32_s64): Likewise.
19843 (vreinterpret_f32_u8): Likewise.
19844 (vreinterpret_f32_u16): Likewise.
19845 (vreinterpret_f32_u32): Likewise.
19846 (vreinterpret_f32_u64): Likewise.
19847 (vreinterpret_f32_p8): Likewise.
19848 (vreinterpret_f32_p16): Likewise.
19849 (vreinterpretq_f32_s8): Likewise.
19850 (vreinterpretq_f32_s16): Likewise.
19851 (vreinterpretq_f32_s32): Likewise.
19852 (vreinterpretq_f32_s64): Likewise.
19853 (vreinterpretq_f32_u8): Likewise.
19854 (vreinterpretq_f32_u16): Likewise.
19855 (vreinterpretq_f32_u32): Likewise.
19856 (vreinterpretq_f32_u64): Likewise.
19857 (vreinterpretq_f32_p8): Likewise.
19858 (vreinterpretq_f32_p16): Likewise.
19859 (vreinterpret_s64_s8): Likewise.
19860 (vreinterpret_s64_s16): Likewise.
19861 (vreinterpret_s64_s32): Likewise.
19862 (vreinterpret_s64_f32): Likewise.
19863 (vreinterpret_s64_u8): Likewise.
19864 (vreinterpret_s64_u16): Likewise.
19865 (vreinterpret_s64_u32): Likewise.
19866 (vreinterpret_s64_u64): Likewise.
19867 (vreinterpret_s64_p8): Likewise.
19868 (vreinterpret_s64_p16): Likewise.
19869 (vreinterpretq_s64_s8): Likewise.
19870 (vreinterpretq_s64_s16): Likewise.
19871 (vreinterpretq_s64_s32): Likewise.
19872 (vreinterpretq_s64_f32): Likewise.
19873 (vreinterpretq_s64_u8): Likewise.
19874 (vreinterpretq_s64_u16): Likewise.
19875 (vreinterpretq_s64_u32): Likewise.
19876 (vreinterpretq_s64_u64): Likewise.
19877 (vreinterpretq_s64_p8): Likewise.
19878 (vreinterpretq_s64_p16): Likewise.
19879 (vreinterpret_u64_s8): Likewise.
19880 (vreinterpret_u64_s16): Likewise.
19881 (vreinterpret_u64_s32): Likewise.
19882 (vreinterpret_u64_s64): Likewise.
19883 (vreinterpret_u64_f32): Likewise.
19884 (vreinterpret_u64_u8): Likewise.
19885 (vreinterpret_u64_u16): Likewise.
19886 (vreinterpret_u64_u32): Likewise.
19887 (vreinterpret_u64_p8): Likewise.
19888 (vreinterpret_u64_p16): Likewise.
19889 (vreinterpretq_u64_s8): Likewise.
19890 (vreinterpretq_u64_s16): Likewise.
19891 (vreinterpretq_u64_s32): Likewise.
19892 (vreinterpretq_u64_s64): Likewise.
19893 (vreinterpretq_u64_f32): Likewise.
19894 (vreinterpretq_u64_u8): Likewise.
19895 (vreinterpretq_u64_u16): Likewise.
19896 (vreinterpretq_u64_u32): Likewise.
19897 (vreinterpretq_u64_p8): Likewise.
19898 (vreinterpretq_u64_p16): Likewise.
19899 (vreinterpret_s8_s16): Likewise.
19900 (vreinterpret_s8_s32): Likewise.
19901 (vreinterpret_s8_s64): Likewise.
19902 (vreinterpret_s8_f32): Likewise.
19903 (vreinterpret_s8_u8): Likewise.
19904 (vreinterpret_s8_u16): Likewise.
19905 (vreinterpret_s8_u32): Likewise.
19906 (vreinterpret_s8_u64): Likewise.
19907 (vreinterpret_s8_p8): Likewise.
19908 (vreinterpret_s8_p16): Likewise.
19909 (vreinterpretq_s8_s16): Likewise.
19910 (vreinterpretq_s8_s32): Likewise.
19911 (vreinterpretq_s8_s64): Likewise.
19912 (vreinterpretq_s8_f32): Likewise.
19913 (vreinterpretq_s8_u8): Likewise.
19914 (vreinterpretq_s8_u16): Likewise.
19915 (vreinterpretq_s8_u32): Likewise.
19916 (vreinterpretq_s8_u64): Likewise.
19917 (vreinterpretq_s8_p8): Likewise.
19918 (vreinterpretq_s8_p16): Likewise.
19919 (vreinterpret_s16_s8): Likewise.
19920 (vreinterpret_s16_s32): Likewise.
19921 (vreinterpret_s16_s64): Likewise.
19922 (vreinterpret_s16_f32): Likewise.
19923 (vreinterpret_s16_u8): Likewise.
19924 (vreinterpret_s16_u16): Likewise.
19925 (vreinterpret_s16_u32): Likewise.
19926 (vreinterpret_s16_u64): Likewise.
19927 (vreinterpret_s16_p8): Likewise.
19928 (vreinterpret_s16_p16): Likewise.
19929 (vreinterpretq_s16_s8): Likewise.
19930 (vreinterpretq_s16_s32): Likewise.
19931 (vreinterpretq_s16_s64): Likewise.
19932 (vreinterpretq_s16_f32): Likewise.
19933 (vreinterpretq_s16_u8): Likewise.
19934 (vreinterpretq_s16_u16): Likewise.
19935 (vreinterpretq_s16_u32): Likewise.
19936 (vreinterpretq_s16_u64): Likewise.
19937 (vreinterpretq_s16_p8): Likewise.
19938 (vreinterpretq_s16_p16): Likewise.
19939 (vreinterpret_s32_s8): Likewise.
19940 (vreinterpret_s32_s16): Likewise.
19941 (vreinterpret_s32_s64): Likewise.
19942 (vreinterpret_s32_f32): Likewise.
19943 (vreinterpret_s32_u8): Likewise.
19944 (vreinterpret_s32_u16): Likewise.
19945 (vreinterpret_s32_u32): Likewise.
19946 (vreinterpret_s32_u64): Likewise.
19947 (vreinterpret_s32_p8): Likewise.
19948 (vreinterpret_s32_p16): Likewise.
19949 (vreinterpretq_s32_s8): Likewise.
19950 (vreinterpretq_s32_s16): Likewise.
19951 (vreinterpretq_s32_s64): Likewise.
19952 (vreinterpretq_s32_f32): Likewise.
19953 (vreinterpretq_s32_u8): Likewise.
19954 (vreinterpretq_s32_u16): Likewise.
19955 (vreinterpretq_s32_u32): Likewise.
19956 (vreinterpretq_s32_u64): Likewise.
19957 (vreinterpretq_s32_p8): Likewise.
19958 (vreinterpretq_s32_p16): Likewise.
19959 (vreinterpret_u8_s8): Likewise.
19960 (vreinterpret_u8_s16): Likewise.
19961 (vreinterpret_u8_s32): Likewise.
19962 (vreinterpret_u8_s64): Likewise.
19963 (vreinterpret_u8_f32): Likewise.
19964 (vreinterpret_u8_u16): Likewise.
19965 (vreinterpret_u8_u32): Likewise.
19966 (vreinterpret_u8_u64): Likewise.
19967 (vreinterpret_u8_p8): Likewise.
19968 (vreinterpret_u8_p16): Likewise.
19969 (vreinterpretq_u8_s8): Likewise.
19970 (vreinterpretq_u8_s16): Likewise.
19971 (vreinterpretq_u8_s32): Likewise.
19972 (vreinterpretq_u8_s64): Likewise.
19973 (vreinterpretq_u8_f32): Likewise.
19974 (vreinterpretq_u8_u16): Likewise.
19975 (vreinterpretq_u8_u32): Likewise.
19976 (vreinterpretq_u8_u64): Likewise.
19977 (vreinterpretq_u8_p8): Likewise.
19978 (vreinterpretq_u8_p16): Likewise.
19979 (vreinterpret_u16_s8): Likewise.
19980 (vreinterpret_u16_s16): Likewise.
19981 (vreinterpret_u16_s32): Likewise.
19982 (vreinterpret_u16_s64): Likewise.
19983 (vreinterpret_u16_f32): Likewise.
19984 (vreinterpret_u16_u8): Likewise.
19985 (vreinterpret_u16_u32): Likewise.
19986 (vreinterpret_u16_u64): Likewise.
19987 (vreinterpret_u16_p8): Likewise.
19988 (vreinterpret_u16_p16): Likewise.
19989 (vreinterpretq_u16_s8): Likewise.
19990 (vreinterpretq_u16_s16): Likewise.
19991 (vreinterpretq_u16_s32): Likewise.
19992 (vreinterpretq_u16_s64): Likewise.
19993 (vreinterpretq_u16_f32): Likewise.
19994 (vreinterpretq_u16_u8): Likewise.
19995 (vreinterpretq_u16_u32): Likewise.
19996 (vreinterpretq_u16_u64): Likewise.
19997 (vreinterpretq_u16_p8): Likewise.
19998 (vreinterpretq_u16_p16): Likewise.
19999 (vreinterpret_u32_s8): Likewise.
20000 (vreinterpret_u32_s16): Likewise.
20001 (vreinterpret_u32_s32): Likewise.
20002 (vreinterpret_u32_s64): Likewise.
20003 (vreinterpret_u32_f32): Likewise.
20004 (vreinterpret_u32_u8): Likewise.
20005 (vreinterpret_u32_u16): Likewise.
20006 (vreinterpret_u32_u64): Likewise.
20007 (vreinterpret_u32_p8): Likewise.
20008 (vreinterpret_u32_p16): Likewise.
20009 (vreinterpretq_u32_s8): Likewise.
20010 (vreinterpretq_u32_s16): Likewise.
20011 (vreinterpretq_u32_s32): Likewise.
20012 (vreinterpretq_u32_s64): Likewise.
20013 (vreinterpretq_u32_f32): Likewise.
20014 (vreinterpretq_u32_u8): Likewise.
20015 (vreinterpretq_u32_u16): Likewise.
20016 (vreinterpretq_u32_u64): Likewise.
20017 (vreinterpretq_u32_p8): Likewise.
20018 (vreinterpretq_u32_p16): Likewise.
20019
20020 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20021
20022 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20023 Pattern extended.
20024 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20025 (sqabs): Likewise.
20026 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20027 (vqnegd_s64): Likewise.
20028 (vqabs_s64): Likewise.
20029 (vqabsd_s64): Likewise.
20030
20031 2014-04-22 Richard Henderson <rth@redhat.com>
20032
20033 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20034 computation to the top of the loop.
20035
20036 2014-04-22 Renlin <renlin.li@arm.com>
20037 Jiong Wang <jiong.wang@arm.com>
20038
20039 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20040 * config/aarch64/aarch64.c (aarch64_layout_frame)
20041 (aarch64_initial_elimination_offset): Likewise.
20042
20043 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20044
20045 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20046 Fix indentation.
20047
20048 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20049
20050 * machmode.h (bitwise_mode_for_mode): Declare.
20051 * stor-layout.h (bitwise_type_for_mode): Likewise.
20052 * stor-layout.c (bitwise_mode_for_mode): New function.
20053 (bitwise_type_for_mode): Likewise.
20054 * builtins.c (fold_builtin_memory_op): Use it instead of
20055 int_mode_for_mode and build_nonstandard_integer_type.
20056
20057 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20058
20059 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20060 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20061 (*-*-solaris2*): Simplify.
20062 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20063 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20064 *-*-solaris2.9* handling.
20065
20066 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20067 as bug.
20068 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20069 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20070 handling, simplify.
20071 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20072 * configure: Regenerate.
20073
20074 * config/i386/sol2-9.h: Remove.
20075
20076 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20077 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20078 Remove Solaris 9 references.
20079
20080 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20081
20082 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20083 (floatuns<GPI:mode><GPF:mode>2): Remove.
20084 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20085 and floatuns conversions.
20086 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20087 and floatuns conversions.
20088 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20089 (w1,w2): New mode attributes for inequal width conversions.
20090
20091 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20092
20093 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20094 the output asm format.
20095
20096 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20097
20098 * config/aarch64/aarch64-simd.md
20099 (aarch64_cm<optab>di): Always split.
20100 (*aarch64_cm<optab>di): New.
20101 (aarch64_cmtstdi): Always split.
20102 (*aarch64_cmtstdi): New.
20103
20104 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20105
20106 PR tree-optimization/60823
20107 * omp-low.c (ipa_simd_modify_function_body): Go through
20108 all SSA_NAMEs and for those refering to vector arguments
20109 which are going to be replaced adjust SSA_NAME_VAR and,
20110 if it is a default definition, change it into a non-default
20111 definition assigned at the beginning of function from new_decl.
20112 (ipa_simd_modify_stmt_ops): Rewritten.
20113 * tree-dfa.c (set_ssa_default_def): When removing default def,
20114 check for NULL loc instead of NULL *loc.
20115
20116 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20117
20118 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20119 restrictions on core registers for DImode values in Thumb2.
20120
20121 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20122
20123 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20124 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20125
20126 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20127
20128 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20129 (*iordi_notzesidi_di): Likewise.
20130 (*iordi_notsesidi_di): Likewise.
20131
20132 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20133
20134 * config/arm/arm-protos.h (tune_params): New struct members.
20135 * config/arm/arm.c: Initialise tune_params per processor.
20136 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20137 for speed, based on new tune_params.
20138
20139 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20140
20141 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20142 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20143 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20144 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20145 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20146 (vrnda_f64): Likewise.
20147 (vrndi_f64): Likewise.
20148 (vrndm_f64): Likewise.
20149 (vrndn_f64): Likewise.
20150 (vrndp_f64): Likewise.
20151 (vrndx_f64): Likewise.
20152
20153 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20154
20155 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20156 GET_MODE_SIZE argument is enum machine_mode.
20157
20158 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20159
20160 PR target/60910
20161 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20162 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20163
20164 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20165
20166 PR middle-end/60281
20167 * asan.c (asan_emit_stack_protection): Force the base to align to
20168 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20169 appropriate bits if STRICT_ALIGNMENT.
20170 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20171 when asan is on.
20172 (expand_used_vars): Leave a space in the stack frame for alignment
20173 if STRICT_ALIGNMENT.
20174
20175 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20176
20177 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20178 than a gimple.
20179 (gimple_store_p): Likewise.
20180 (gimple_assign_load_p): Likewise.
20181 (gimple_assign_cast_p): Likewise.
20182 (gimple_clobber_p): Likewise.
20183
20184 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20185 rather than a gimple.
20186 (gimple_assign_cast_p): Likewise.
20187
20188 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20189
20190 PR target/60735
20191 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20192 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20193
20194 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20195 more debug information for E500 if -mdebug=reg.
20196
20197 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20198
20199 PR target/60909
20200 * config/i386/i386.c (ix86_expand_builtin)
20201 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20202 register for target RTX.
20203 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20204
20205 2014-04-18 Cong Hou <congh@google.com>
20206
20207 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20208 the widen-mult pattern by handling two operands with different sizes,
20209 and operands whose size is smaller than half of the result type.
20210
20211 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20212
20213 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20214 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20215 (do_estimate_edge_time): Compute it.
20216 * ipa-inline.c (want_inline_small_function_p): Bypass
20217 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20218
20219 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20220
20221 * ipa-inline.c (spec_rem): New static variable.
20222 (dump_overall_stats): New function.
20223 (dump_inline_stats): New function.
20224
20225 2014-04-18 Richard Henderson <rth@redhat.com>
20226
20227 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20228 to GET_MODE_SIZE, not a reg_class_t.
20229
20230 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20231
20232 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20233 (vsx_xxmrglw_<mode>): Likewise.
20234
20235 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20236
20237 PR target/60876
20238 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20239 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20240 (rs6000_init_hard_regno_mode_ok): Likewise.
20241
20242 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20243
20244 * ipa-inline.c (inline_small_functions): Account only non-cold
20245 functions.
20246 * doc/invoke.texi (inline-unit-growth): Update documentation.
20247
20248 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20249
20250 * config/rs6000/rs6000.md (addti3, subti3): New.
20251
20252 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20253
20254 PR target/60863
20255 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20256 comment. Check optimize_insn_for_size_p instead of
20257 optimize_insn_for_speed_p.
20258
20259 2014-04-17 Martin Jambor <mjambor@suse.cz>
20260
20261 * gimple-iterator.c (gsi_start_edge): New function.
20262 * gimple-iterator.h (gsi_start_edge): Declare.
20263 * tree-sra.c (single_non_eh_succ): New function.
20264 (disqualify_ops_if_throwing_stmt): Renamed to
20265 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20266 having one non-EH successor BB.
20267 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20268 generate loads into replacements.
20269 (sra_modify_assign): Likewise and and also use the simple path for
20270 such statements.
20271 (sra_modify_function_body): Commit statements on edges.
20272
20273 2014-04-17 Richard Biener <rguenther@suse.de>
20274
20275 PR middle-end/60849
20276 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20277 comparison results and add clarifying comment.
20278
20279 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20280
20281 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20282 (blank_mode): Initialize it.
20283 (emit_mode_size_inline, emit_mode_nunits_inline,
20284 emit_mode_inner_inline): New functions.
20285 (emit_insn_modes_h): Call them and surround their output with
20286 #if GCC_VERSION >= 4001 ... #endif.
20287 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20288 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20289 mode_* arrays if the argument is __builtin_constant_p.
20290 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20291 is enum machine_mode.
20292
20293 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20294
20295 * passes.c (opt_pass::execute): Adjust.
20296 (pass_manager::execute_pass_mode_switching): Likewise.
20297 (early_local_passes::execute): Likewise.
20298 (execute_one_pass): Pass cfun to the pass's execute method.
20299 * tree-pass.h (opt_pass::execute): Add function * argument.
20300 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20301 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20302 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20303 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20304 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20305 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20306 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20307 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20308 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20309 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20310 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20311 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20312 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20313 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20314 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20315 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20316 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20317 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20318 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20319 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20320 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20321 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20322 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20323 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20324 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20325 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20326 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20327 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20328 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20329 Adjust.
20330
20331 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20332
20333 * passes.c (opt_pass::gate): Take function * argument.
20334 (gate_all_early_local_passes): Merge into
20335 (early_local_passes::gate): this.
20336 (gate_all_early_optimizations): Merge into
20337 (all_early_optimizations::gate): this.
20338 (gate_all_optimizations): Mege into
20339 (all_optimizations::gate): this.
20340 (gate_all_optimizations_g): Merge into
20341 (all_optimizations_g::gate): this.
20342 (gate_rest_of_compilation): Mege into
20343 (rest_of_compilation::gate): this.
20344 (gate_postreload): Merge into
20345 (postreload::gate): this.
20346 (dump_one_pass): Pass cfun to the pass's gate method.
20347 (execute_ipa_summary_passes): Likewise.
20348 (execute_one_pass): Likewise.
20349 (ipa_write_summaries_2): Likewise.
20350 (ipa_write_optimization_summaries_1): Likewise.
20351 (ipa_read_summaries_1): Likewise.
20352 (ipa_read_optimization_summaries_1): Likewise.
20353 (execute_ipa_stmt_fixups): Likewise.
20354 * tree-pass.h (opt_pass::gate): Add function * argument.
20355 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20356 combine-stack-adj.c, combine.c, compare-elim.c,
20357 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20358 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20359 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20360 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20361 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20362 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20363 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20364 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20365 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20366 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20367 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20368 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20369 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20370 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20371 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20372 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20373 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20374 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20375 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20376 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20377 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20378 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20379 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20380 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20381 var-tracking.c, vtable-verify.c, web.c: Adjust.
20382
20383 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20384
20385 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20386 * configure: Regenerate.
20387
20388 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20389
20390 * passes.c (dump_one_pass): don't check pass->has_gate.
20391 (execute_ipa_summary_passes): Likewise.
20392 (execute_one_pass): Likewise.
20393 (ipa_write_summaries_2): Likewise.
20394 (ipa_write_optimization_summaries_1): Likewise.
20395 (ipa_read_optimization_summaries_1): Likewise.
20396 (execute_ipa_stmt_fixups): Likewise.
20397 * tree-pass.h (pass_data::has_gate): Remove.
20398 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20399 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20400 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20401 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20402 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20403 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20404 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20405 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20406 gimple-low.c, gimple-ssa-isolate-paths.c,
20407 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20408 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20409 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20410 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20411 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20412 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20413 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20414 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20415 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20416 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20417 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20418 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20419 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20420 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20421 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20422 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20423 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20424 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20425 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20426 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20427 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20428 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20429 Adjust.
20430
20431 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20432
20433 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20434 declaration.
20435 * passes.c (pass_manager::register_dump_files_1): Merge into
20436 (pass_manager::register_dump_files): this, and remove its handling of
20437 properties since the pass always has the properties anyway.
20438 (pass_manager::pass_manager): Adjust.
20439
20440 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20441
20442 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20443 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20444 dealing with properties.
20445 (pass_manager::register_dump_files): Adjust.
20446
20447 2014-03-20 Mark Wielaard <mjw@redhat.com>
20448
20449 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20450 then represent the bound as normal constant value.
20451
20452 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20453
20454 PR target/60847
20455 Forward port from 4.8 branch
20456 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20457
20458 * config/i386/bmiintrin.h (_blsi_u32): New.
20459 (_blsi_u64): Ditto.
20460 (_blsr_u32): Ditto.
20461 (_blsr_u64): Ditto.
20462 (_blsmsk_u32): Ditto.
20463 (_blsmsk_u64): Ditto.
20464 (_tzcnt_u32): Ditto.
20465 (_tzcnt_u64): Ditto.
20466
20467 2014-04-17 Kito Cheng <kito@0xlab.org>
20468
20469 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20470
20471 2014-04-17 Richard Biener <rguenther@suse.de>
20472
20473 PR middle-end/60849
20474 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20475 boolean results for comparisons.
20476
20477 2014-04-17 Richard Biener <rguenther@suse.de>
20478
20479 PR tree-optimization/60836
20480 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20481 initial PHI args to be gimple values.
20482
20483 2014-04-17 Richard Biener <rguenther@suse.de>
20484
20485 PR tree-optimization/60841
20486 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20487 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20488 of stmts to SLP build.
20489 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20490 (vect_analyze_slp): Likewise.
20491 (vect_analyze_slp_instance): Likewise.
20492 (vect_build_slp_tree): Limit overall SLP tree growth.
20493 * tree-vectorizer.h (vect_analyze_data_refs,
20494 vect_analyze_slp): Adjust prototypes.
20495
20496 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20497
20498 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20499 Silvermont.
20500
20501 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20502
20503 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20504 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20505 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20506 for TARGET_SLOW_PSHUFB
20507
20508 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20509
20510 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20511 * config/i386/i386.c (intel_cost): Ditto.
20512
20513 2014-04-17 Joey Ye <joey.ye@arm.com>
20514
20515 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20516
20517 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20518
20519 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20520 with -fuse-profile.
20521
20522 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20523
20524 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20525 (type_all_derivations_known_p): New predicate.
20526 (type_all_ctors_visible_p): New predicate.
20527 (type_possibly_instantiated_p): New predicate.
20528 (get_odr_type): Compute all_derivations_known.
20529 (dump_odr_type): Dump the flag.
20530 (maybe_record_type): Cleanup.
20531 (record_target_from_binfo): Add bases_to_consider array;
20532 record bases for types w/o instances and skip CXX destructor.
20533 (possible_polymorphic_call_targets_1): Add bases_to_consider
20534 and consider_construction parameters; check if type may have instance.
20535 (get_polymorphic_call_info): Set maybe_in_construction to true
20536 when we know nothing.
20537 (record_targets_from_bases): Skip CXX destructors; they are
20538 never called for types in construction.
20539 (possible_polymorphic_call_targets): Do not record target when
20540 type may not have instance.
20541
20542 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20543
20544 PR ipa/60854
20545 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20546 external aliases alive, too.
20547
20548 2014-04-16 Andrew Pinski <apinski@cavium.com>
20549
20550 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20551 definition.
20552
20553 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20554
20555 * final.c (compute_alignments): Do not apply loop alignment to a block
20556 falling through to the exit.
20557
20558 2014-04-16 Catherine Moore <clm@codesourcery.com>
20559
20560 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20561 Adjust constraints for microMIPS store patterns.
20562
20563 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20564
20565 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20566
20567 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20568
20569 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20570 (append_use): Run at -O0.
20571 (append_vdef): Likewise.
20572 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20573 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20574
20575 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20576
20577 PR tree-optimization/60844
20578 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20579 (propagate_op_to_single_use, remove_visited_stmt_chain,
20580 linearize_expr, repropagate_negates, reassociate_bb): Use it
20581 instead of gsi_remove.
20582
20583 2014-04-16 Martin Jambor <mjambor@suse.cz>
20584
20585 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20586 ipa_transforms_to_apply.
20587 (cgraph_function_versioning): Assert that old_node has empty
20588 ipa_transforms_to_apply.
20589 * trans-mem.c (ipa_tm_create_version): Likewise.
20590 * tree-inline.c (tree_function_versioning): Do not duplicate
20591 ipa_transforms_to_apply.
20592
20593 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20594
20595 PR target/60817
20596 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20597 x86_64-*-* cases.
20598 Pass necessary as flags on 64-bit Solaris/x86.
20599 Use lowercase relocs for x86_64-*-*.
20600 * configure: Regenerate.
20601
20602 2014-04-15 Jan Hubicka <jh@suse.cz>
20603
20604 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20605 (maybe_record_node, likely_target_p): Use it.
20606
20607 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20608
20609 PR target/60839
20610 Revert following patch
20611
20612 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20613
20614 PR target/60735
20615 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20616 software floating point or no floating point registers, do not
20617 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20618 in GPRs that occurs after we tested for GPRs that would never be
20619 true.
20620
20621 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20622 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20623 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20624 specifically allow DDmode, since that does not use the SPE SIMD
20625 instructions.
20626
20627 2014-03-21 Mark Wielaard <mjw@redhat.com>
20628
20629 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20630 as unsigned or int depending on type and value used.
20631
20632 2014-04-15 Richard Biener <rguenther@suse.de>
20633
20634 PR rtl-optimization/56965
20635 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20636 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20637 ... here.
20638 * alias.c (true_dependence_1): Do not call
20639 nonoverlapping_component_refs_p.
20640 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20641 nonoverlapping_component_refs_p.
20642 (indirect_refs_may_alias_p): Likewise.
20643
20644 2014-04-15 Teresa Johnson <tejohnson@google.com>
20645
20646 * cfg.c (dump_bb_info): Fix flags check.
20647 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20648
20649 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20650
20651 PR rtl-optimization/60663
20652 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20653 avoid 0 cost.
20654
20655 2014-04-15 Richard Biener <rguenther@suse.de>
20656
20657 * lto-streamer.h (LTO_major_version): Bump to 4.
20658
20659 2014-04-15 Richard Biener <rguenther@suse.de>
20660
20661 * common.opt (lto_partition_model): New enum.
20662 (flto-partition=): Merge separate options with a single with argument,
20663 add -flto-partition=one support.
20664 * flag-types.h (enum lto_partition_model): Declare.
20665 * opts.c (finish_options): Remove duplicate -flto-partition=
20666 option check.
20667 * lto-wrapper.c (run_gcc): Adjust.
20668
20669 2014-04-15 Richard Biener <rguenther@suse.de>
20670
20671 * alias.c (ncr_compar): New function.
20672 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20673
20674 2014-04-15 Richard Biener <rguenther@suse.de>
20675
20676 * alias.c (record_component_aliases): Do not walk BINFOs.
20677
20678 2014-04-15 Richard Biener <rguenther@suse.de>
20679
20680 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20681 Add struct function argument and adjust.
20682 (find_func_aliases_for_call): Likewise.
20683 (find_func_aliases): Likewise.
20684 (find_func_clobbers): Likewise.
20685 (intra_create_variable_infos): Likewise.
20686 (compute_points_to_sets): Likewise.
20687 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20688
20689 2014-04-15 Richard Biener <rguenther@suse.de>
20690
20691 * tree.c (iterative_hash_expr): Use enum tree_code_class
20692 to store TREE_CODE_CLASS.
20693 (tree_block): Likewise.
20694 (tree_set_block): Likewise.
20695 * tree.h (fold_build_pointer_plus_loc): Use
20696 convert_to_ptrofftype_loc.
20697
20698 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20699
20700 PR plugins/59335
20701 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20702 added in 4.9.
20703
20704 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20705
20706 * cfgloop.h (struct loop): Move force_vectorize down.
20707 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20708 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20709 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20710 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20711 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20712 * tree-core.h (enum annot_expr_kind): Add new kind values.
20713 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20714 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20715 kinds.
20716 * tree.def (ANNOTATE_EXPR): Tweak comment.
20717
20718 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20719
20720 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20721 cxa_pure_virtual).
20722
20723 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20724
20725 * tree.h (TYPE_IDENTIFIER): Declare.
20726 * tree.c (subrange_type_for_debug_p): Use it.
20727 * godump.c (go_format_type): Likewise.
20728 * dwarf2out.c (is_cxx_auto, modified_type_die,
20729 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20730 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20731
20732 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20733
20734 PR lto/60820
20735 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20736
20737 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20738
20739 * config/i386/i386.c (examine_argument): Return bool. Return true if
20740 parameter should be passed in memory.
20741 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20742 (construct_container): Update calls to examine_argument.
20743 (function_arg_advance_64): Ditto.
20744 (return_in_memory_32): Merge with ix86_return_in_memory.
20745 (return_in_memory_64): Ditto.
20746 (return_in_memory_ms_64): Ditto.
20747
20748 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20749
20750 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20751 * coverage.c (coverage_compute_profile_id): Handle externally visible
20752 symbols.
20753
20754 2014-04-14 Martin Jambor <mjambor@suse.cz>
20755
20756 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20757 DECL_DISREGARD_INLINE_LIMITS functions.
20758
20759 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20760
20761 PR target/60827
20762 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20763
20764 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20765
20766 PR target/60827
20767 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20768 optimize_insn_for_speed_p instead of
20769 optimize_function_for_speed_p.
20770
20771 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20772
20773 * doc/invoke.texi (free): Document AArch64.
20774
20775 2014-04-14 Richard Biener <rguenther@suse.de>
20776
20777 PR tree-optimization/60042
20778 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20779 (insert_into_preds_of_block): Do not prevent PHI insertion
20780 for REFERENCE exprs here ...
20781 (eliminate_dom_walker::before_dom_children): ... but prevent
20782 their use here under similar conditions when applied to the
20783 IL after PRE optimizations.
20784
20785 2014-04-14 Richard Biener <rguenther@suse.de>
20786
20787 * passes.def: Move early points-to after early SRA.
20788
20789 2014-04-14 Richard Biener <rguenther@suse.de>
20790
20791 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20792 check for which sign-changes we allow when forwarding
20793 a converted value into a switch.
20794
20795 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20796
20797 * stor-layout.c (place_field): Finalize non-constant offset for the
20798 field, if any.
20799
20800 2014-04-14 Richard Biener <rguenther@suse.de>
20801
20802 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20803 as argument.
20804 (expand_switch_using_bit_tests_p): Likewise.
20805 (process_switch): Compute and pass on speed_p based on the
20806 switch stmt.
20807 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20808 optimize_bb_for_speed_p.
20809
20810 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20811
20812 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20813 * function.h (struct function): Rename has_force_vect_loops into
20814 has_force_vectorize_loops.
20815 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20816 (input_struct_function_base): Likewise.
20817 * lto-streamer-out.c (output_cfg): Likewise.
20818 (output_struct_function_base): Likewise.
20819 * omp-low.c (expand_omp_simd): Likewise.
20820 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20821 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20822 (version_loop_for_if_conversion): Likewise.
20823 (tree_if_conversion): Likewise.
20824 (main_tree_if_conversion): Likewise.
20825 (gate_tree_if_conversion): Likewise.
20826 * tree-inline.c (copy_loops): Likewise.
20827 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20828 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20829 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20830 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20831 * tree-vectorizer.c (vectorize_loops): Likewise.
20832 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20833
20834 2014-04-14 Richard Biener <rguenther@suse.de>
20835
20836 PR lto/60720
20837 * lto-streamer-out.c (wrap_refs): New function.
20838 (lto_output): Wrap symbol references in global initializes in
20839 type-preserving MEM_REFs.
20840
20841 2014-04-14 Christian Bruel <christian.bruel@st.com>
20842
20843 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20844
20845 2014-04-14 Christian Bruel <christian.bruel@st.com>
20846
20847 * config/sh/sh.md (setmemqi): New expand pattern.
20848 * config/sh/sh.h (CLEAR_RATIO): Define.
20849 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20850 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20851
20852 2014-04-14 Richard Biener <rguenther@suse.de>
20853
20854 PR middle-end/55022
20855 * fold-const.c (negate_expr_p): Don't negate directional rounding
20856 division.
20857 (fold_negate_expr): Likewise.
20858
20859 2014-04-14 Richard Biener <rguenther@suse.de>
20860
20861 PR tree-optimization/59817
20862 PR tree-optimization/60453
20863 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20864 recursion to catch all CHRECs in the scalar evolution and restrict
20865 the predicate for the remains appropriately.
20866
20867 2014-04-12 Catherine Moore <clm@codesourcery.com>
20868
20869 * config/mips/constraints.md: Add new register constraint "kb".
20870 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20871 (*movhi_internal): Likewise.
20872 (*movqi_internal): Likewise.
20873 * config/mips/mips.h (M16_STORE_REGS): New register class.
20874 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20875 (REG_CLASS_CONTENTS): Likewise.
20876 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20877
20878 2014-04-11 Tobias Burnus <burnus@net-b.de>
20879
20880 PR c/60194
20881 * doc/invoke.texi (-Wformat-signedness): Document it.
20882 (Wformat=2): Mention that this enables -Wformat-signedness.
20883
20884 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20885
20886 * common/config/epiphany/epiphany-common.c
20887 (epiphany_option_optimization_table): Enable section anchors by
20888 default at -O1 or higher.
20889 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20890 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20891 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20892 carries no extra cost.
20893 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20894 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20895 * config/epiphany/predicates.md (memclob_operand): New predicate.
20896 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20897 Use memclob_operand predicate and X constraint for operand 3.
20898
20899 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20900
20901 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20902 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20903 its operands.
20904
20905 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20906
20907 PR rtl-optimization/60651
20908 * mode-switching.c (optimize_mode_switching): Make sure to emit
20909 sets of a lower numbered entity before sets of a higher numbered
20910 entity to a mode of the same or lower priority.
20911 When creating a seginfo for a basic block that starts with a code
20912 label, move the insertion point past the code label.
20913 (new_seginfo): Document and enforce requirement that
20914 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20915 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20916 * doc/tm.texi: Regenerate.
20917
20918 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20919
20920 PR target/60811
20921 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20922
20923 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20924
20925 * BASE-VER: Set to 4.10.0.
20926
20927 2014-04-11 Tobias Burnus <burnus@net-b.de>
20928
20929 PR other/59055
20930 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20931 * doc/gcc.texi (Service): Update description in the @menu
20932 * doc/invoke.texi (Option Summary): Remove misplaced and
20933 duplicated @menu.
20934
20935 2014-04-11 Steve Ellcey <sellcey@mips.com>
20936 Jakub Jelinek <jakub@redhat.com>
20937
20938 PR middle-end/60556
20939 * expr.c (convert_move): Use emit_store_flag_force instead of
20940 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20941 argument to it.
20942
20943 2014-04-11 Richard Biener <rguenther@suse.de>
20944
20945 PR middle-end/60797
20946 * varasm.c (assemble_alias): Avoid endless error reporting
20947 recursion by setting TREE_ASM_WRITTEN.
20948
20949 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20950
20951 * config/s390/s390.md: Add a splitter for NOT rtx.
20952
20953 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20954
20955 PR rtl-optimization/60663
20956 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20957
20958 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20959 Jakub Jelinek <jakub@redhat.com>
20960
20961 PR lto/60567
20962 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20963 flag from decl_node to node.
20964
20965 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20966
20967 PR debug/60655
20968 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20969 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20970 ameliorating the cases where it can be.
20971
20972 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20973
20974 Revert
20975 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20976
20977 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20978 (loadsync_<mode>): Change mode.
20979 (load_quadpti, store_quadpti): New.
20980 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20981 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20982 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20983
20984 2014-04-09 Cong Hou <congh@google.com>
20985
20986 PR testsuite/60773
20987 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20988 documentation.
20989
20990 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20991
20992 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20993 instead of vnor to exploit possible fusion opportunity in the
20994 future.
20995 (altivec_expand_vec_perm_const_le): Likewise.
20996
20997 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20998
20999 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21000 (loadsync_<mode>): Change mode.
21001 (load_quadpti, store_quadpti): New.
21002 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21003 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21004
21005 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21006
21007 PR target/60763
21008 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21009 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21010 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21011
21012 2014-04-08 Richard Biener <rguenther@suse.de>
21013
21014 PR middle-end/60706
21015 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21016 a 64bit widest int print double-int similar to on HWI64 hosts.
21017
21018 2014-04-08 Richard Biener <rguenther@suse.de>
21019
21020 PR tree-optimization/60785
21021 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21022 default defs properly.
21023
21024 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21025
21026 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21027 (Weffc++): Likewise.
21028
21029 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21030
21031 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21032 set completep to false rather than true.
21033
21034 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21035
21036 PR target/60504
21037 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21038 ARM_TARGET2_DWARF_FORMAT.
21039
21040 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21041
21042 PR target/60609
21043 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21044 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21045 ADDR_DIFF_VEC.
21046
21047 2014-04-07 Richard Biener <rguenther@suse.de>
21048
21049 PR tree-optimization/60766
21050 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21051 (may_eliminate_iv): Convert cand_value_at result to desired type.
21052
21053 2014-04-07 Jason Merrill <jason@redhat.com>
21054
21055 PR c++/60731
21056 * common.opt (-fno-gnu-unique): Add.
21057 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21058
21059 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21060
21061 * haifa-sched.c: Fix outdated function reference and minor
21062 grammar errors in introductory comment.
21063
21064 2014-04-07 Richard Biener <rguenther@suse.de>
21065
21066 PR middle-end/60750
21067 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21068 for noreturn calls.
21069 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21070
21071 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21072
21073 PR debug/55794
21074 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21075 size accounting for thunks.
21076 (pa_asm_output_mi_thunk): Use final_start_function() and
21077 final_end_function() to output function start and end directives.
21078
21079 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21080
21081 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21082 device specific ISA/ feature information. Remove short_sp and
21083 errata_skip ds. Add avr_device_specific_features enum to have device
21084 specific info.
21085 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21086 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21087 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21088 updated device specific info.
21089 * config/avr/avr-mcus.def: Merge device specific details to
21090 dev_attribute field.
21091 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21092 errata_skip.
21093 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21094 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21095 assembler if RMW isa supported by current device.
21096 * config/avr/genmultilib.awk: Update as device info structure changed.
21097 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21098
21099 2014-04-04 Cong Hou <congh@google.com>
21100
21101 PR tree-optimization/60656
21102 * tree-vect-stmts.c (supportable_widening_operation):
21103 Fix a bug that elements in a vector with vect_used_by_reduction
21104 property are incorrectly reordered when the operation on it is not
21105 consistant with the one in reduction operation.
21106
21107 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21108
21109 PR rtl-optimization/60155
21110 * gcse.c (record_set_data): New function.
21111 (single_set_gcse): New function.
21112 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21113 (hoist_code): Likewise.
21114 (get_pressure_class_and_nregs): Likewise.
21115
21116 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21117
21118 * explow.c (probe_stack_range): Emit a final optimization blockage.
21119
21120 2014-04-04 Anthony Green <green@moxielogic.com>
21121
21122 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21123 typos.
21124
21125 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21126
21127 PR ipa/59626
21128 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21129 flags are set only during streaming.
21130 * ipa.c (process_references, walk_polymorphic_call_targets,
21131 symtab_remove_unreachable_nodes): Drop bodies of always inline
21132 after early inlining.
21133 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21134
21135 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21136 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21137
21138 PR debug/60655
21139 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21140 containing a NOT.
21141
21142 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21143
21144 PR bootstrap/60743
21145 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21146 duration.
21147 (cortex_a53_fdivd): Likewise.
21148
21149 2014-04-04 Martin Jambor <mjambor@suse.cz>
21150
21151 PR ipa/60640
21152 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21153 Adjust all callers.
21154 * cgraph.c (clone_of_p): Also return true if thunks match.
21155 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21156 cgraph_function_or_thunk_node and an obsolete comment.
21157 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21158 file.
21159 (build_function_decl_skip_args): Likewise.
21160 (set_new_clone_decl_and_node_flags): New function.
21161 (duplicate_thunk_for_node): Likewise.
21162 (redirect_edge_duplicating_thunks): Likewise.
21163 (cgraph_clone_node): New parameter args_to_skip, pass it to
21164 redirect_edge_duplicating_thunks which is called instead of
21165 cgraph_redirect_edge_callee.
21166 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21167 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21168
21169 2014-04-04 Jeff Law <law@redhat.com>
21170
21171 PR target/60657
21172 * config/arm/predicates.md (const_int_I_operand): New predicate.
21173 (const_int_M_operand): Similarly.
21174 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21175 const_int_operand.
21176 (insv_t2, extv_reg, extzv_t2): Likewise.
21177 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21178 (pop_multiple_with_writeback_and_return): Likewise.
21179 (vfp_pop_multiple_with_writeback): Likewise
21180
21181 2014-04-04 Richard Biener <rguenther@suse.de>
21182
21183 PR ipa/60746
21184 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21185 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21186 non-GIMPLE_LABELs.
21187 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21188 * gimplify.c (gimple_add_tmp_var_fn): New function.
21189 * gimple-expr.h (create_tmp_reg_fn): Declare.
21190 * gimple-expr.c (create_tmp_reg_fn): New function.
21191 * gimple-low.c (record_vars_into): Don't change cfun.
21192 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21193 code generation without cfun.
21194
21195 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21196
21197 PR bootstrap/60719
21198 * Makefile.in (install-driver): Fix shell scripting.
21199
21200 2014-04-03 Cong Hou <congh@google.com>
21201
21202 PR tree-optimization/60505
21203 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21204 threshold of number of iterations below which no vectorization
21205 will be done.
21206 * tree-vect-loop.c (new_loop_vec_info):
21207 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21208 * tree-vect-loop.c (vect_analyze_loop_operations):
21209 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21210 * tree-vect-loop.c (vect_transform_loop):
21211 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21212 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21213 of iterations of the loop and see if we should build the epilogue.
21214
21215 2014-04-03 Richard Biener <rguenther@suse.de>
21216
21217 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21218 (streamer_tree_cache_create): Adjust.
21219 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21220 to allow optional nodes array.
21221 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21222 (streamer_tree_cache_append): Likewise.
21223 (streamer_tree_cache_create): Create nodes array optionally
21224 as specified by parameter.
21225 * lto-streamer-out.c (create_output_block): Avoid maintaining
21226 the node array in the writer cache.
21227 (DFS_write_tree): Remove assertion.
21228 (produce_asm_for_decls): Free the out decl state hash table early.
21229 * lto-streamer-in.c (lto_data_in_create): Adjust for
21230 streamer_tree_cache_create prototype change.
21231
21232 2014-04-03 Richard Biener <rguenther@suse.de>
21233
21234 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21235 set TREE_CHAIN to NULL_TREE.
21236
21237 2014-04-03 Richard Biener <rguenther@suse.de>
21238
21239 PR tree-optimization/60740
21240 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21241 over all GIMPLE_COND operands.
21242
21243 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21244
21245 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21246 (Weffc++): Remove Scott's numbering, merge lists and reference
21247 Wnon-virtual-dtor.
21248
21249 2014-04-03 Nick Clifton <nickc@redhat.com>
21250
21251 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21252 properly.
21253
21254 2014-04-03 Martin Jambor <mjambor@suse.cz>
21255
21256 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21257 mention gcc_unreachable before failing.
21258 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21259 removed symbols.
21260
21261 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21262
21263 PR ipa/60659
21264 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21265 inconsistent code and instead mark the context inconsistent.
21266 (possible_polymorphic_call_targets): For inconsistent contexts
21267 return empty complete list.
21268
21269 2014-04-02 Anthony Green <green@moxielogic.com>
21270
21271 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21272 (extendqisi2, extendhisi2): Define.
21273 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21274 (WCHAR_TYPE): Change to unsigned int.
21275
21276 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21277
21278 PR tree-optimization/60733
21279 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21280 insertion point for PHI candidates to be the end of the feeding
21281 block for the PHI argument.
21282
21283 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21284
21285 PR rtl-optimization/60650
21286 * lra-constraints.c (process_alt_operands): Decrease reject for
21287 earlyclobber matching.
21288
21289 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21290
21291 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21292
21293 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21294
21295 * config/spu/spu.c (pad_bb): Do not crash when the last
21296 insn is CODE_FOR_blockage.
21297
21298 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21299
21300 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21301 lies outside the target mode.
21302
21303 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21304
21305 PR target/60735
21306 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21307 software floating point or no floating point registers, do not
21308 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21309 in GPRs that occurs after we tested for GPRs that would never be
21310 true.
21311
21312 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21313 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21314 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21315 specifically allow DDmode, since that does not use the SPE SIMD
21316 instructions.
21317
21318 2014-04-02 Richard Biener <rguenther@suse.de>
21319
21320 PR middle-end/60729
21321 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21322 MODE_INTs. Properly use negv_optab.
21323 (expand_abs): Likewise.
21324
21325 2014-04-02 Richard Biener <rguenther@suse.de>
21326
21327 PR bootstrap/60719
21328 * Makefile.in (install-driver): Guard extra installs with special
21329 names properly.
21330
21331 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21332
21333 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21334 Document vec_vgbbd.
21335
21336 2014-04-01 Richard Henderson <rth@redhat.com>
21337
21338 PR target/60704
21339 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21340 alternative enabled before register allocation.
21341
21342 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21343
21344 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21345 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21346 typo.
21347 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21348 (nios2_got_address): Update nios2_large_got_address call site.
21349 (nios2_delegitimize_address): New function.
21350 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21351 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21352 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21353
21354 2014-04-01 Martin Husemann <martin@duskware.de>
21355
21356 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21357 for -mabi=32.
21358
21359 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21360
21361 PR rtl-optimization/60604
21362 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21363 check from register_operand.
21364 (register_operand): Redefine in terms of general_operand.
21365 (nonmemory_operand): Use register_operand for the non-constant cases.
21366
21367 2014-04-01 Richard Biener <rguenther@suse.de>
21368
21369 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21370
21371 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21372
21373 * doc/invoke.texi (mapp-regs): Clarify.
21374
21375 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21376
21377 * config/i386/avx512fintrin.h (__v32hi): Define type.
21378 (__v64qi): Likewise.
21379 (_mm512_set1_epi8): Define.
21380 (_mm512_set1_epi16): Define.
21381 (_mm512_set4_epi32): Define.
21382 (_mm512_set4_epi64): Define.
21383 (_mm512_set4_pd): Define.
21384 (_mm512_set4_ps): Define.
21385 (_mm512_setr4_epi64): Define.
21386 (_mm512_setr4_epi32): Define.
21387 (_mm512_setr4_pd): Define.
21388 (_mm512_setr4_ps): Define.
21389 (_mm512_setzero_epi32): Define.
21390
21391 2014-03-31 Martin Jambor <mjambor@suse.cz>
21392
21393 PR middle-end/60647
21394 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21395 callsite_arguments_match_p. Updated all callers. Also check types of
21396 corresponding formal parameters and actual arguments.
21397 (not_all_callers_have_enough_arguments_p) Renamed to
21398 some_callers_have_mismatched_arguments_p.
21399
21400 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21401
21402 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21403
21404 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21405
21406 PR target/60034
21407 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21408 section anchor.
21409
21410 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21411
21412 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21413 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21414 Split out
21415 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21416 Use FMAMODE_NOVF512 mode iterator.
21417 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21418 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21419 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21420 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21421 Split out
21422 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21423 Use VF_128_256 mode iterator.
21424 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21425 Ditto.
21426
21427 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21428
21429 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21430 static chain if needed.
21431
21432 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21433
21434 PR target/60697
21435 * lra-constraints.c (index_part_to_reg): New.
21436 (process_address): Use it.
21437
21438 2014-03-27 Jeff Law <law@redhat.com>
21439 Jakub Jelinek <jakub@redhat.com>
21440
21441 PR target/60648
21442 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21443 gen_rtx_{PLUS,MULT} to build up the address expression.
21444
21445 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21446 creating non-canonical RTL.
21447
21448 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21449
21450 PR ipa/60243
21451 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21452 functions; reorganize to make cheap checks first.
21453 (inline_small_functions): Do not estimate growth when dumping;
21454 it is expensive.
21455 * ipa-inline.h (inline_summary): Add min_size.
21456 (growth_likely_positive): New function.
21457 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21458 (set_cond_stmt_execution_predicate): Cleanup.
21459 (estimate_edge_size_and_time): Compute min_size.
21460 (estimate_calls_size_and_time): Likewise.
21461 (estimate_node_size_and_time): Likewise.
21462 (inline_update_overall_summary): Update min_size.
21463 (do_estimate_edge_time): Likewise.
21464 (do_estimate_edge_size): Update.
21465 (do_estimate_edge_hints): Update.
21466 (growth_likely_positive): New function.
21467
21468 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21469
21470 PR target/60693
21471 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21472 also if addr has VOIDmode.
21473
21474 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21475
21476 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21477 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21478 Declare extern.
21479 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21480 instructions as well as AdvancedSIMD loads.
21481
21482 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21483
21484 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21485 Use crypto_aese type.
21486 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21487 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21488 crypto_aese, crypto_aesmc. Move to types.md.
21489 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21490 crypto_aesmc.
21491 * config/arm/iterators.md (crypto_type): Likewise.
21492
21493 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21494
21495 * cgraph.c: Include expr.h and tree-dfa.h.
21496 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21497 remove LHS.
21498
21499 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21500
21501 PR target/60675
21502 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21503 regs from checking multi-reg pseudos.
21504
21505 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21506
21507 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21508
21509 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21510
21511 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21512 if it would clobber the stack pointer, even temporarily.
21513
21514 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21515
21516 * mode-switching.c: Make small adjustments to the top comment.
21517
21518 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21519
21520 * config/rs6000/constraints.md (wD constraint): New constraint to
21521 match the constant integer to get the top DImode/DFmode out of a
21522 vector in a VSX register.
21523
21524 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21525 match the constant integer to get the top DImode/DFmode out of a
21526 vector in a VSX register.
21527
21528 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21529 for ISA 2.07.
21530
21531 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21532 vbpermq builtins.
21533
21534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21535 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21536
21537 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21538 Optimize vec_extract of 64-bit values, where the value being
21539 extracted is in the top word, where we can use scalar
21540 instructions. Add direct move and store support. Combine the big
21541 endian/little endian vector select load support into a single insn.
21542 (vsx_extract_<mode>_internal1): Likewise.
21543 (vsx_extract_<mode>_internal2): Likewise.
21544 (vsx_extract_<mode>_load): Likewise.
21545 (vsx_extract_<mode>_store): Likewise.
21546 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21547 combined into vsx_extract_<mode>_load.
21548 (vsx_extract_<mode>_one_le): Likewise.
21549
21550 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21551 define the top 64-bit vector element.
21552
21553 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21554 constraint.
21555
21556 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21557 Document vec_vbpermq builtin.
21558
21559 PR target/60672
21560 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21561 enable use of xxsldwi and xxpermdi builtin functions.
21562 (vec_xxpermdi): Likewise.
21563
21564 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21565 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21566
21567 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21568
21569 PR rtl-optimization/60650
21570 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21571 first_p. Use it.
21572 (find_spills_for): New.
21573 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21574 Spill all pseudos on the second iteration.
21575
21576 2014-03-27 Marek Polacek <polacek@redhat.com>
21577
21578 PR c/50347
21579 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21580 types.
21581
21582 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21583
21584 * config/s390/s390.c (s390_can_use_return_insn): Check for
21585 call-saved FPRs on 31 bit.
21586
21587 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21588
21589 PR middle-end/60682
21590 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21591 if they need regimplification, just drop them instead of
21592 calling gimple_regimplify_operands on them.
21593
21594 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21595
21596 PR target/60580
21597 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21598 (aarch64_frame_pointer_required): Adjust logic.
21599 (aarch64_can_eliminate): Adjust logic.
21600 (aarch64_override_options_after_change): Adjust logic.
21601
21602 2014-03-27 Dehao Chen <dehao@google.com>
21603
21604 * ipa-inline.c (early_inliner): Update node's inline info.
21605
21606 2014-03-26 Dehao Chen <dehao@google.com>
21607
21608 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21609 compiler inserted conditional jumps for NAN float check.
21610
21611 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21612
21613 * ubsan.h (ubsan_create_data): Change second argument's type
21614 to const location_t *.
21615 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21616 _("<unknown>").
21617 (ubsan_create_data): Change second argument to const location_t *PLOC.
21618 Create Loc field whenever PLOC is non-NULL.
21619 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21620 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21621 callers.
21622
21623 PR other/59545
21624 * real.c (real_to_integer2): Change type of low to UHWI.
21625
21626 2014-03-26 Tobias Burnus <burnus@net-b.de>
21627
21628 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21629 (CILK_SELF_SPECS): New define.
21630 (driver_self_specs): Use it.
21631
21632 2014-03-26 Richard Biener <rguenther@suse.de>
21633
21634 * tree-pretty-print.c (percent_K_format): Implement special
21635 case for LTO and its stripped down BLOCK tree.
21636
21637 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21638
21639 PR sanitizer/60636
21640 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21641
21642 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21643 one range is range_int_cst_p, but not both, at least optimize
21644 addition/subtraction of 0 and multiplication by 0 or 1.
21645 * gimple-fold.c (gimple_fold_call): Fold
21646 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21647 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21648 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21649
21650 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21651
21652 PR rtl-optimization/60452
21653 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21654 <case REG>: Return 1 for invalid offsets from the frame pointer.
21655
21656 2014-03-26 Marek Polacek <polacek@redhat.com>
21657
21658 PR c/37428
21659 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21660 a structure/union.
21661
21662 2014-03-26 Marek Polacek <polacek@redhat.com>
21663
21664 PR c/39525
21665 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21666 field members.
21667
21668 2014-03-26 Marek Polacek <polacek@redhat.com>
21669
21670 PR other/59545
21671 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21672 multiplication in unsigned type.
21673
21674 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21675
21676 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21677
21678 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21679
21680 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21681
21682 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21683
21684 PR ipa/60315
21685 * cif-code.def (UNREACHABLE) New code.
21686 * ipa-inline.c (inline_small_functions): Skip edges to
21687 __builtlin_unreachable.
21688 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21689 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21690 predicate to __bulitin_unreachable.
21691 (set_cond_stmt_execution_predicate): Fix issue when
21692 invert_tree_comparison returns ERROR_MARK.
21693 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21694 propagate to inline clones.
21695 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21696 to unreachable.
21697 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21698 * cgraphclones.c (cgraph_clone_node): If call destination is already
21699 ureachable, do not redirect it back.
21700 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21701 unreachable.
21702
21703 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21704
21705 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21706 Do not modify inline clones.
21707
21708 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21709
21710 * config/i386/i386.md (general_sext_operand): New mode attr.
21711 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21712 don't generate (sign_extend (const_int)).
21713 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21714 operands[2]. Use We constraint instead of <i> and
21715 <general_sext_operand> predicate instead of <general_operand>.
21716 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21717 * config/i386/constraints.md (We): New constraint.
21718 * config/i386/predicates.md (x86_64_sext_operand,
21719 sext_operand): New predicates.
21720
21721 2014-03-25 Martin Jambor <mjambor@suse.cz>
21722
21723 PR ipa/60600
21724 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21725 inconsistent devirtualizations to __builtin_unreachable.
21726
21727 2014-03-25 Marek Polacek <polacek@redhat.com>
21728
21729 PR c/35449
21730 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21731
21732 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21733
21734 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21735 order of elements for big-endian.
21736
21737 2014-03-25 Richard Biener <rguenther@suse.de>
21738
21739 PR middle-end/60635
21740 * gimplify-me.c (gimple_regimplify_operands): Update the
21741 re-gimplifed stmt.
21742
21743 2014-03-25 Martin Jambor <mjambor@suse.cz>
21744
21745 PR ipa/59176
21746 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21747 (lto_output_varpool_node): Likewise.
21748 (input_overwrite_node): Likewise.
21749 (input_varpool_node): Likewise.
21750
21751 2014-03-25 Richard Biener <rguenther@suse.de>
21752
21753 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21754 (run_gcc): Likewise.
21755
21756 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21757
21758 * combine.c (simplify_compare_const): Add MODE argument.
21759 Handle mode_width 0 as very large mode_width.
21760 (try_combine, simplify_comparison): Adjust callers.
21761
21762 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21763 type to avoid signed integer overflow.
21764 * explow.c (plus_constant): Likewise.
21765
21766 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21767
21768 * doc/generic.texi: Correct typos.
21769
21770 2014-03-24 Tobias Burnus <burnus@net-b.de>
21771
21772 * doc/invoke.texi (-flto): Expand section about
21773 using static libraries with LTO.
21774
21775 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21776
21777 PR rtl-optimization/60501
21778 * optabs.def (addptr3_optab): New optab.
21779 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21780 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21781 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21782
21783 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21784
21785 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21786
21787 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21788
21789 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21790 _mm512_set1_pd.
21791
21792 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21793 (_mm256_undefined_ps): Define.
21794 (_mm256_undefined_pd): Define.
21795 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21796 (_mm_undefined_pd): Define.
21797 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21798 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21799 (_mm512_undefined_ps): Define.
21800 (_mm512_undefined_pd): Define.
21801 Use _mm*_undefined_*.
21802 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21803
21804 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21805
21806 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21807 (lshr_simd): DI mode added.
21808 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21809 (aarch64_ushr_simddi): Likewise.
21810 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21811 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21812 (vshrd_n_u64): Likewise.
21813
21814 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21815
21816 * Makefile.in (s-macro_list): Depend on cc1.
21817
21818 2014-03-23 Teresa Johnson <tejohnson@google.com>
21819
21820 * ipa-utils.c (ipa_print_order): Use specified dump file.
21821
21822 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21823
21824 PR rtl-optimization/60601
21825 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21826
21827 * gcc.c (eval_spec_function): Initialize save_growing_value.
21828
21829 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21830
21831 PR sanitizer/60613
21832 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21833 code == MINUS_EXPR, never swap op0 with op1.
21834
21835 * toplev.c (init_local_tick): Avoid signed integer multiplication
21836 overflow.
21837 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21838 shift by first operand's bitsize.
21839
21840 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21841
21842 PR target/60610
21843 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21844 redefine to 1 or 0.
21845 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21846 TARGET_ISA_64BIT_P(x).
21847
21848 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21849
21850 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21851 pattern for vector nor instead of subtract from splat(-1).
21852 (altivec_expand_vec_perm_const_le): Likewise.
21853
21854 2014-03-21 Richard Henderson <rth@twiddle.net>
21855
21856 PR target/60598
21857 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21858 related insns after epilogue_completed.
21859
21860 2014-03-21 Martin Jambor <mjambor@suse.cz>
21861
21862 PR ipa/59176
21863 * cgraph.h (symtab_node): New flag body_removed.
21864 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21865 when removing bodies.
21866 * symtab.c (dump_symtab_base): Dump body_removed flag.
21867 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21868 had their bodies removed.
21869
21870 2014-03-21 Martin Jambor <mjambor@suse.cz>
21871
21872 PR ipa/60419
21873 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21874 in the border.
21875
21876 2014-03-21 Richard Biener <rguenther@suse.de>
21877
21878 PR tree-optimization/60577
21879 * tree-core.h (struct tree_base): Document nothrow_flag use
21880 in DECL_NONALIASED.
21881 * tree.h (DECL_NONALIASED): New.
21882 (may_be_aliased): Adjust.
21883 * coverage.c (build_var): Set DECL_NONALIASED.
21884
21885 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21886
21887 * expr.c (expand_expr_real_1): Remove outdated comment.
21888
21889 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21890
21891 PR middle-end/60597
21892 * ira.c (adjust_cleared_regs): Call copy_rtx on
21893 *reg_equiv[REGNO (loc)].src_p before passing it to
21894 simplify_replace_fn_rtx.
21895
21896 PR target/60568
21897 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21898 into CONST, put pic register as first operand of PLUS. Use
21899 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21900
21901 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21902
21903 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21904
21905 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21906
21907 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21908 around for store forwarding issue in the FPU on the UT699.
21909 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21910 loads and operations if -mfix-ut699 is specified.
21911 (divtf3_hq): Tweak attribute.
21912 (sqrttf2_hq): Likewise.
21913
21914 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21915
21916 * calls.c (store_one_arg): Remove incorrect const qualification on the
21917 type of the temporary.
21918 * cfgexpand.c (expand_return): Likewise.
21919 * expr.c (expand_constructor): Likewise.
21920 (expand_expr_real_1): Likewise.
21921
21922 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21923
21924 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21925 of parts.
21926
21927 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21928
21929 PR target/60039
21930 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21931
21932 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21933
21934 * config/arm/aarch-common-protos.h
21935 (alu_cost_table): Fix spelling of "extend".
21936 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21937
21938 2014-03-19 Richard Biener <rguenther@suse.de>
21939
21940 PR middle-end/60553
21941 * tree-core.h (tree_type_common): Re-order pointer members
21942 to reduce recursion depth during GC walks.
21943
21944 2014-03-19 Marek Polacek <polacek@redhat.com>
21945
21946 PR sanitizer/60569
21947 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21948 before accessing it.
21949
21950 2014-03-19 Richard Biener <rguenther@suse.de>
21951
21952 PR lto/59543
21953 * lto-streamer-in.c (input_function): In WPA stage do not drop
21954 debug stmts.
21955
21956 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21957
21958 PR tree-optimization/60559
21959 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21960 with build_zero_cst assignment.
21961
21962 2014-03-18 Kai Tietz <ktietz@redhat.com>
21963
21964 PR rtl-optimization/56356
21965 * sdbout.c (sdbout_parms): Verify that parms'
21966 incoming argument is valid.
21967 (sdbout_reg_parms): Likewise.
21968
21969 2014-03-18 Richard Henderson <rth@redhat.com>
21970
21971 PR target/60562
21972 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21973 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21974 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21975
21976 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21977
21978 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21979 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21980 Italicize plugin event names in description. Explain that
21981 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21982 Remind that no GCC functions should be called after PLUGIN_FINISH.
21983 Explain what pragmas with expansion are.
21984
21985 2014-03-18 Martin Liska <mliska@suse.cz>
21986
21987 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21988 gimple call statement is update.
21989 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21990 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21991
21992 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21993
21994 PR sanitizer/60557
21995 * ubsan.c (ubsan_instrument_unreachable): Call
21996 initialize_sanitizer_builtins.
21997 (ubsan_pass): Likewise.
21998
21999 PR sanitizer/60535
22000 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22001 varpool_finalize_decl instead of rest_of_decl_compilation.
22002
22003 2014-03-18 Richard Biener <rguenther@suse.de>
22004
22005 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22006 by using bitmap_and_compl instead of bitmap_and_compl_into.
22007 (df_rd_transfer_function): Likewise.
22008
22009 2014-03-18 Richard Biener <rguenther@suse.de>
22010
22011 * doc/lto.texi (fresolution): Fix typo.
22012
22013 2014-03-18 Richard Biener <rguenther@suse.de>
22014
22015 * doc/invoke.texi (flto): Update for changes in 4.9.
22016
22017 2014-03-18 Richard Biener <rguenther@suse.de>
22018
22019 * doc/loop.texi: Remove section on the removed lambda framework.
22020 Update loop docs with recent changes in preserving loop structure.
22021
22022 2014-03-18 Richard Biener <rguenther@suse.de>
22023
22024 * doc/lto.texi (-fresolution): Document.
22025
22026 2014-03-18 Richard Biener <rguenther@suse.de>
22027
22028 * doc/contrib.texi: Adjust my name.
22029
22030 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22031
22032 PR ipa/58721
22033 * internal-fn.c: Include diagnostic-core.h.
22034 (expand_BUILTIN_EXPECT): New function.
22035 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22036 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22037 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22038 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22039 IFN_BUILTIN_EXPECT.
22040 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22041 Revert 3 argument __builtin_expect code.
22042 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22043 * gimple-fold.c (gimple_fold_call): Likewise.
22044 * tree.h (fold_builtin_expect): New prototype.
22045 * builtins.c (build_builtin_expect_predicate): Add predictor
22046 argument, if non-NULL, create 3 argument __builtin_expect.
22047 (fold_builtin_expect): No longer static. Add ARG2 argument,
22048 pass it through to build_builtin_expect_predicate.
22049 (fold_builtin_2): Adjust caller.
22050 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22051 * internal-fn.def (BUILTIN_EXPECT): New.
22052
22053 2014-03-18 Tobias Burnus <burnus@net-b.de>
22054
22055 PR ipa/58721
22056 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22057 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22058 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22059
22060 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22061
22062 PR ipa/58721
22063 * predict.c (combine_predictions_for_bb): Fix up formatting.
22064 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22065 fill what it points to if non-NULL.
22066 (tree_predict_by_opcode): Adjust caller, use the predictor.
22067 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22068
22069 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22070
22071 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22072 proper constant for the store mode.
22073
22074 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22075
22076 * symtab.c (change_decl_assembler_name): Fix transparent alias
22077 chain construction.
22078
22079 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22080
22081 * config/aarch64/aarch64.c: Correct the comments about the
22082 aarch64 stack layout.
22083
22084 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22085
22086 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22087 check for GF_OMP_FOR_KIND_FOR.
22088
22089 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22090
22091 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22092 ymm and zmm register names.
22093
22094 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22095
22096 PR target/60516
22097 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22098 note creation for the 2010-08-31 changes.
22099
22100 2014-03-17 Marek Polacek <polacek@redhat.com>
22101
22102 PR middle-end/60534
22103 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22104 as -fno-tree-loop-vectorize.
22105 (expand_omp_simd): Likewise.
22106
22107 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22108
22109 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22110 (eligible_for_call_delay): New prototype.
22111 * config/sparc/sparc.c (tls_call_delay): Rename into...
22112 (eligible_for_call_delay): ...this. Return false if the instruction
22113 cannot be put in the delay slot of a branch.
22114 (eligible_for_restore_insn): Simplify.
22115 (eligible_for_return_delay): Return false if the instruction cannot be
22116 put in the delay slot of a branch and simplify.
22117 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22118 put in the delay slot of a branch.
22119 * config/sparc/sparc.md (fix_ut699): New attribute.
22120 (tls_call_delay): Delete.
22121 (in_call_delay): Reimplement.
22122 (eligible_for_sibcall_delay): Rename into...
22123 (in_sibcall_delay): ...this.
22124 (eligible_for_return_delay): Rename into...
22125 (in_return_delay): ...this.
22126 (in_branch_delay): Reimplement.
22127 (in_uncond_branch_delay): Delete.
22128 (in_annul_branch_delay): Delete.
22129
22130 2014-03-14 Richard Henderson <rth@redhat.com>
22131
22132 PR target/60525
22133 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22134 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22135 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22136 (floathi splitters): Remove.
22137 (float<SWI48x>xf2): New pattern.
22138 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22139 code that tried to handle DImode for 32-bit, but which was excluded
22140 by the pattern's condition. Drop allocation of stack temporary.
22141 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22142 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22143 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22144 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22145 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22146 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22147 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22148 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22149 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22150 (*float<SWI48x><X87MODEF>2_i387): Remove.
22151 (all float _with_temp splitters): Remove.
22152 (*float<SWI48x><MODEF>2_i387): New pattern.
22153 (*float<SWI48><MODEF>2_sse): New pattern.
22154 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22155 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22156
22157 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22158 Marek Polacek <polacek@redhat.com>
22159
22160 PR middle-end/60484
22161 * common.opt (dump_base_name_prefixed): New Variable.
22162 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22163 if x_dump_base_name_prefixed is already set, set it at the end.
22164
22165 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22166
22167 PR rtl-optimization/60508
22168 * lra-constraints.c (get_reload_reg): Add new parameter
22169 in_subreg_p.
22170 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22171 Pass the new parameter values.
22172
22173 2014-03-14 Richard Biener <rguenther@suse.de>
22174
22175 * common.opt: Revert unintented changes from r205065.
22176 * opts.c: Likewise.
22177
22178 2014-03-14 Richard Biener <rguenther@suse.de>
22179
22180 PR middle-end/60518
22181 * cfghooks.c (split_block): Properly adjust all loops the
22182 block was a latch of.
22183
22184 2014-03-14 Martin Jambor <mjambor@suse.cz>
22185
22186 PR lto/60461
22187 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22188 and simplify it.
22189
22190 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22191
22192 PR target/59396
22193 * config/avr/avr.c (avr_set_current_function): Pass function name
22194 through default_strip_name_encoding before sanity checking instead
22195 of skipping the first char of the assembler name.
22196
22197 2014-03-13 Richard Henderson <rth@redhat.com>
22198
22199 PR debug/60438
22200 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22201 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22202 * config/i386/i386-protos.h: Likewise.
22203 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22204 in the expander instead of a splitter.
22205 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22206 any possibility of requiring a memory.
22207 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22208 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22209 (fp branch splitters): Update for ix86_split_fp_branch.
22210 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22211 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22212 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22213 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22214 (*fop_<MODEF>_3_i387): Likewise.
22215 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22216 (splitters for the fop_* register patterns): Remove.
22217 (fscalexf4_i387): Rename from *fscalexf4_i387.
22218 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22219
22220 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22221
22222 PR tree-optimization/59779
22223 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22224 type for bitsize and maxsize instead of HOST_WIDE_INT.
22225
22226 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22227
22228 PR rtl-optimization/57320
22229 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22230 the CFG after thread_prologue_and_epilogue_insns.
22231
22232 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22233
22234 PR rtl-optimization/57189
22235 * lra-constraints.c (process_alt_operands): Disfavor spilling
22236 vector pseudos.
22237
22238 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22239
22240 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22241
22242 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22243
22244 PR tree-optimization/59025
22245 PR middle-end/60418
22246 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22247 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22248
22249 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22250
22251 PR target/60486
22252 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22253 calls of avr_out_plus_1.
22254
22255 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22256
22257 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22258 BB's single pred and update the father loop's latch info later.
22259
22260 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22261
22262 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22263 (VEC_M): Likewise.
22264 (VEC_N): Likewise.
22265 (VEC_R): Likewise.
22266 (VEC_base): Likewise.
22267 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22268 registers, we need to swap double words in little endian mode.
22269
22270 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22271 to be a container mode for 128-bit integer operations added in ISA
22272 2.07. Unlike TImode and PTImode, the preferred register set is
22273 the Altivec/VMX registers for the 128-bit operations.
22274
22275 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22276 declarations.
22277 (rs6000_split_128bit_ok_p): Likewise.
22278
22279 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22280 macros for creating ISA 2.07 normal and overloaded builtin
22281 functions with 3 arguments.
22282 (BU_P8V_OVERLOAD_3): Likewise.
22283 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22284 for use as overloaded functions.
22285 (VPERM_1TI_UNS): Likewise.
22286 (VSEL_1TI): Likewise.
22287 (VSEL_1TI_UNS): Likewise.
22288 (ST_INTERNAL_1ti): Likewise.
22289 (LD_INTERNAL_1ti): Likewise.
22290 (XXSEL_1TI): Likewise.
22291 (XXSEL_1TI_UNS): Likewise.
22292 (VPERM_1TI): Likewise.
22293 (VPERM_1TI_UNS): Likewise.
22294 (XXPERMDI_1TI): Likewise.
22295 (SET_1TI): Likewise.
22296 (LXVD2X_V1TI): Likewise.
22297 (STXVD2X_V1TI): Likewise.
22298 (VEC_INIT_V1TI): Likewise.
22299 (VEC_SET_V1TI): Likewise.
22300 (VEC_EXT_V1TI): Likewise.
22301 (EQV_V1TI): Likewise.
22302 (NAND_V1TI): Likewise.
22303 (ORC_V1TI): Likewise.
22304 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22305 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22306 overloaded builtin.
22307 (VADDUQM): Likewise.
22308 (VSUBCUQ): Likewise.
22309 (VADDEUQM): Likewise.
22310 (VADDECUQ): Likewise.
22311 (VSUBEUQM): Likewise.
22312 (VSUBECUQ): Likewise.
22313
22314 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22315 __int128_t and __uint128_t types.
22316 (__uint128_type): Likewise.
22317 (altivec_categorize_keyword): Add support for vector __int128_t,
22318 vector __uint128_t, vector __int128, and vector unsigned __int128
22319 as a container type for TImode operations that need to be done in
22320 VSX/Altivec registers.
22321 (rs6000_macro_to_expand): Likewise.
22322 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22323 to support 128-bit integer instructions vaddcuq, vadduqm,
22324 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22325 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22326
22327 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22328 for V1TImode, and set up preferences to use VSX/Altivec registers.
22329 Setup VSX reload handlers.
22330 (rs6000_debug_reg_global): Likewise.
22331 (rs6000_init_hard_regno_mode_ok): Likewise.
22332 (rs6000_preferred_simd_mode): Likewise.
22333 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22334 (easy_altivec_constant): Likewise.
22335 (output_vec_const_move): Likewise.
22336 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22337 simple move.
22338 (rs6000_expand_vector_extract): Likewise.
22339 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22340 addressing.
22341 (rs6000_const_vec): Add support for V1TImode.
22342 (rs6000_emit_le_vsx_load): Swap double words when loading or
22343 storing TImode/V1TImode.
22344 (rs6000_emit_le_vsx_store): Likewise.
22345 (rs6000_emit_le_vsx_move): Likewise.
22346 (rs6000_emit_move): Add support for V1TImode.
22347 (altivec_expand_ld_builtin): Likewise.
22348 (altivec_expand_st_builtin): Likewise.
22349 (altivec_expand_vec_init_builtin): Likewise.
22350 (altivec_expand_builtin): Likewise.
22351 (rs6000_init_builtins): Add support for V1TImode type. Add
22352 support for ISA 2.07 128-bit integer builtins. Define type names
22353 for the VSX/Altivec vector types.
22354 (altivec_init_builtins): Add support for overloaded vector
22355 functions with V1TImode type.
22356 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22357 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22358 external function.
22359 (rs6000_split_128bit_ok_p): Likewise.
22360 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22361 __int128_t and vector __uint128_t.
22362
22363 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22364 and mode attributes.
22365 (VSX_M): Likewise.
22366 (VSX_M2): Likewise.
22367 (VSm): Likewise.
22368 (VSs): Likewise.
22369 (VSr): Likewise.
22370 (VSv): Likewise.
22371 (VS_scalar): Likewise.
22372 (VS_double): Likewise.
22373 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22374
22375 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22376 we support the ISA 2.07 128-bit integer arithmetic instructions.
22377 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22378 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22379 and TImode types for use with the builtin functions.
22380 (V1TI_type_node): Likewise.
22381 (unsigned_V1TI_type_node): Likewise.
22382 (intTI_type_internal_node): Likewise.
22383 (uintTI_type_internal_node): Likewise.
22384
22385 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22386 128-bit builtin functions.
22387 (UNSPEC_VADDEUQM): Likewise.
22388 (UNSPEC_VADDECUQ): Likewise.
22389 (UNSPEC_VSUBCUQ): Likewise.
22390 (UNSPEC_VSUBEUQM): Likewise.
22391 (UNSPEC_VSUBECUQ): Likewise.
22392 (VM): Add V1TImode to vector mode iterators.
22393 (VM2): Likewise.
22394 (VI_unit): Likewise.
22395 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22396 (altivec_vaddcuq): Likewise.
22397 (altivec_vsubuqm): Likewise.
22398 (altivec_vsubcuq): Likewise.
22399 (altivec_vaddeuqm): Likewise.
22400 (altivec_vaddecuq): Likewise.
22401 (altivec_vsubeuqm): Likewise.
22402 (altivec_vsubecuq): Likewise.
22403
22404 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22405 mode iterators.
22406 (BOOL_128): Likewise.
22407 (BOOL_REGS_OUTPUT): Likewise.
22408 (BOOL_REGS_OP1): Likewise.
22409 (BOOL_REGS_OP2): Likewise.
22410 (BOOL_REGS_UNARY): Likewise.
22411 (BOOL_REGS_AND_CR0): Likewise.
22412
22413 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22414 128-bit integer builtin support.
22415 (vec_vadduqm): Likewise.
22416 (vec_vaddecuq): Likewise.
22417 (vec_vaddeuqm): Likewise.
22418 (vec_vsubecuq): Likewise.
22419 (vec_vsubeuqm): Likewise.
22420 (vec_vsubcuq): Likewise.
22421 (vec_vsubuqm): Likewise.
22422
22423 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22424 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22425 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22426 128-bit integer add/subtract to ISA 2.07.
22427
22428 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22429
22430 * config/arc/arc.c (arc_predicate_delay_insns):
22431 Fix third argument passed to conditionalize_nonjump.
22432
22433 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22434
22435 * config/aarch64/aarch64-builtins.c
22436 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22437 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22438 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22439 instead of __builtin_lfloor.
22440 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22441
22442 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22443
22444 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22445 (tree_ssa_ifcombine_bb_1): New function.
22446 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22447 is an empty forwarder block to then_bb or vice versa and then_bb
22448 and else_bb are effectively swapped.
22449
22450 2014-03-12 Christian Bruel <christian.bruel@st.com>
22451
22452 PR target/60264
22453 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22454 REG_CFA_DEF_CFA note.
22455 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22456 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22457
22458 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22459
22460 PR tree-optimization/60454
22461 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22462
22463 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22464
22465 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22466 Do not define target_cpu_default2 to generic.
22467 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22468 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22469 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22470
22471 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22472 Marc Glisse <marc.glisse@inria.fr>
22473
22474 PR tree-optimization/60502
22475 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22476 instead of build_low_bits_mask.
22477
22478 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22479
22480 PR middle-end/60482
22481 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22482 if there are multiple uses, but op doesn't live on E edge.
22483 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22484 clobber stmts before __builtin_unreachable.
22485
22486 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22487
22488 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22489 hard_frame_pointer_rtx.
22490 * cse.c (cse_insn): Remove volatile check.
22491 * cselib.c (cselib_process_insn): Likewise.
22492 * dse.c (scan_insn): Likewise.
22493
22494 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22495
22496 * config/arc/arc.c (conditionalize_nonjump): New function,
22497 broken out of ...
22498 (arc_ifcvt): ... this.
22499 (arc_predicate_delay_insns): Use it.
22500
22501 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22502
22503 * config/arc/predicates.md (extend_operand): During/after reload,
22504 allow const_int_operand.
22505 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22506 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22507 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22508 to "i".
22509 (umulsi3_highpart_i): Likewise.
22510
22511 2014-03-11 Richard Biener <rguenther@suse.de>
22512
22513 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22514 Add asserts to guard possible wrong-code bugs.
22515
22516 2014-03-11 Richard Biener <rguenther@suse.de>
22517
22518 PR tree-optimization/60429
22519 PR tree-optimization/60485
22520 * tree-ssa-structalias.c (set_union_with_increment): Properly
22521 take into account all fields that overlap the shifted vars.
22522 (do_sd_constraint): Likewise.
22523 (do_ds_constraint): Likewise.
22524 (get_constraint_for_ptr_offset): Likewise.
22525
22526 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22527
22528 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22529 (nios2_compute_frame_layout):
22530 Add calculation of cfun->machine->fp_save_offset.
22531 (nios2_expand_prologue): Correct setting of frame pointer register
22532 in prologue.
22533 (nios2_expand_epilogue): Update recovery of stack pointer from
22534 frame pointer accordingly.
22535 (nios2_initial_elimination_offset): Update calculation of offset
22536 for eliminating to HARD_FRAME_POINTER_REGNUM.
22537
22538 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22539
22540 PR ipa/60457
22541 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22542 cgraph_get_create_node on VAR_DECLs.
22543
22544 2014-03-10 Richard Biener <rguenther@suse.de>
22545
22546 PR middle-end/60474
22547 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22548
22549 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22550
22551 * config/vms/vms.opt (vms_float_format): New variable.
22552
22553 2014-03-08 Tobias Burnus <burnus@net-b.de>
22554
22555 * doc/invoke.texi (-fcilkplus): Update implementation status.
22556
22557 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22558 Richard Biener <rguenther@suse.de>
22559
22560 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22561 consistently accross all TUs.
22562 (run_gcc): Enable -fshort-double automatically at link at link-time
22563 and disallow override.
22564
22565 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22566
22567 PR target/58271
22568 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22569 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22570 if they can't be used.
22571
22572 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22573
22574 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22575 for Solaris 11/x86 ld.
22576 * configure: Regenerate.
22577
22578 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22579
22580 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22581 (LIB_TLS_SPEC): Save as ld_tls_libs.
22582 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22583 (HAVE_AS_IX86_TLSLDM): New test.
22584 * configure, config.in: Regenerate.
22585 * config/i386/i386.c (legitimize_tls_address): Fall back to
22586 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22587 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22588 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22589 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22590
22591 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22592
22593 * common.opt (fira-loop-pressure): Mark as optimization.
22594
22595 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22596
22597 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22598 an OpenMP mappable type.
22599
22600 2014-03-06 Matthias Klose <doko@ubuntu.com>
22601
22602 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22603 MULTILIB_OSDIRNAMES is not defined.
22604
22605 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22606 Meador Inge <meadori@codesourcery.com>
22607
22608 PR target/58595
22609 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22610 (arm_legitimize_address): Call legitimize_tls_address for any
22611 arm_tls_referenced_p expression, handle constant addend. Call it
22612 before testing for !TARGET_ARM.
22613 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22614
22615 2014-03-06 Richard Biener <rguenther@suse.de>
22616
22617 PR middle-end/60445
22618 PR lto/60424
22619 PR lto/60427
22620 Revert
22621 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22622
22623 * tree-streamer.c (record_common_node): Assert we don't record
22624 nodes with type double.
22625 (preload_common_node): Skip type double, complex double and double
22626 pointer since it is now frontend dependent due to fshort-double option.
22627
22628 2014-03-06 Richard Biener <rguenther@suse.de>
22629
22630 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22631 or -fno-lto is specified and the linker has full plugin support.
22632 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22633 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22634 * lto-wrapper.c (merge_and_complain): Merge compile-time
22635 optimization levels.
22636 (run_gcc): And pass it through to the link options.
22637
22638 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22639
22640 PR debug/60381
22641 Revert:
22642 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22643 PR debug/59992
22644 * cselib.c (remove_useless_values): Skip to avoid quadratic
22645 behavior if the condition moved from...
22646 (cselib_process_insn): ... here holds.
22647
22648 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22649
22650 PR plugins/59335
22651 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22652 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22653
22654 PR plugins/59335
22655 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22656 (TM_H): Add x86-tune.def.
22657
22658 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22659
22660 * config/aarch64/aarch64.c (generic_tunings):
22661 Use cortexa57_extra_costs.
22662
22663 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22664
22665 PR lto/60404
22666 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22667 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22668 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22669 cost for in_lto_p.
22670
22671 2014-03-04 Heiher <r@hev.cc>
22672
22673 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22674 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22675
22676 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22677
22678 * config/i386/predicates.md (const2356_operand): Change to ...
22679 (const2367_operand): ... this.
22680 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22681 const2367_operand.
22682 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22683 (*avx512pf_scatterpf<mode>sf): Ditto.
22684 (avx512pf_scatterpf<mode>df): Ditto.
22685 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22686 (*avx512pf_scatterpf<mode>df): Ditto.
22687 * config/i386/i386.c (ix86_expand_builtin): Update
22688 incorrect hint operand error message.
22689
22690 2014-03-04 Richard Biener <rguenther@suse.de>
22691
22692 * lto-section-in.c (lto_get_section_data): Fix const cast.
22693
22694 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22695
22696 * tree-streamer.c (record_common_node): Assert we don't record
22697 nodes with type double.
22698 (preload_common_node): Skip type double, complex double and double
22699 pointer since it is now frontend dependent due to fshort-double option.
22700
22701 2014-03-04 Richard Biener <rguenther@suse.de>
22702
22703 PR lto/60405
22704 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22705 (lto_input_toplevel_asms): Likewise.
22706 * lto-section-in.c (lto_get_section_data): Instead do it here
22707 for every section.
22708
22709 2014-03-04 Richard Biener <rguenther@suse.de>
22710
22711 PR tree-optimization/60382
22712 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22713 dead PHIs a reduction.
22714
22715 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22716
22717 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22718 hint value.
22719 (_mm_prefetch): Move out of GCC target("sse") pragma.
22720 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22721 GCC target("prfchw") pragma.
22722 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22723 for locality <= 2.
22724 * config/i386/i386.c (ix86_option_override_internal): Enable
22725 -mprfchw with -mprefetchwt1.
22726
22727 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22728
22729 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22730 Mark as varying.
22731
22732 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22733
22734 * opts.h (CL_PCH_IGNORE): Define.
22735 * targhooks.c (option_affects_pch_p):
22736 Return false for options that have CL_PCH_IGNORE set.
22737 * opt-functions.awk: Process PchIgnore.
22738 * doc/options.texi: Document PchIgnore.
22739
22740 * config/arc/arc.opt (misize): Add PchIgnore property.
22741
22742 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22743
22744 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22745 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22746 constraint on constants to permit them being loaded into
22747 GENERAL_REGS or BASE_REGS.
22748
22749 2014-03-03 Nick Clifton <nickc@redhat.com>
22750
22751 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22752 anti-cacnonical alternatives.
22753 (negandhi3_real): New pattern.
22754 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22755
22756 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22757
22758 * config/avr/avr-mcus.def: Remove atxmega16x1.
22759 * config/avr/avr-tables.opt: Regenerate.
22760 * config/avr/t-multilib: Regenerate.
22761 * doc/avr-mmcu.texi: Regenerate.
22762
22763 2014-03-03 Tobias Grosser <tobias@grosser.es>
22764 Mircea Namolaru <mircea.namolaru@inria.fr>
22765
22766 PR tree-optimization/58028
22767 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22768 scalar dimensions.
22769
22770 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22771
22772 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22773 not handled by recognizers.
22774
22775 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22776
22777 PR middle-end/60175
22778 * function.c (expand_function_end): Don't emit
22779 clobber_return_register sequence if clobber_after is a BARRIER.
22780 * cfgexpand.c (construct_exit_block): Append instructions before
22781 return_label to prev_bb.
22782
22783 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22784
22785 * config/rs6000/constraints.md: Document reserved use of "wc".
22786
22787 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22788
22789 PR ipa/60150
22790 * ipa.c (function_and_variable_visibility): When dissolving comdat
22791 group, also set all symbols to local.
22792
22793 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22794
22795 PR ipa/60306
22796
22797 Revert:
22798 2013-12-14 Jan Hubicka <jh@suse.cz>
22799 PR middle-end/58477
22800 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22801
22802 2014-03-02 Jon Beniston <jon@beniston.com>
22803
22804 PR bootstrap/48230
22805 PR bootstrap/50927
22806 PR bootstrap/52466
22807 PR target/46898
22808 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22809 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22810 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22811 (simple_return, *simple_return): New patterns
22812 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22813 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22814
22815 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22816
22817 * dwarf2out.c (gen_subprogram_die): Tidy.
22818
22819 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22820
22821 PR target/60071
22822 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22823 (*mov_t_msb_neg_negc): ... this new insn.
22824
22825 2014-02-28 Jason Merrill <jason@redhat.com>
22826
22827 PR c++/58678
22828 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22829 function.
22830
22831 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22832
22833 PR c++/60314
22834 * dwarf2out.c (decltype_auto_die): New static.
22835 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22836 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22837 (is_cxx_auto): Likewise.
22838
22839 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22840
22841 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22842 we are not using general regs only.
22843
22844 2014-02-28 Richard Biener <rguenther@suse.de>
22845
22846 PR target/60280
22847 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22848 previous fix and only allow to remove trivial pre-headers
22849 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22850 (remove_forwarder_block): Properly update the latch of a loop.
22851
22852 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22853
22854 PR debug/59992
22855 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22856 (cselib_preserved_hash_table): New.
22857 (preserve_constants_and_equivs): Move preserved vals to it.
22858 (cselib_find_slot): Look it up first.
22859 (cselib_init): Initialize it.
22860 (cselib_finish): Release it.
22861 (dump_cselib_table): Dump it.
22862
22863 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22864
22865 PR debug/59992
22866 * cselib.c (remove_useless_values): Skip to avoid quadratic
22867 behavior if the condition moved from...
22868 (cselib_process_insn): ... here holds.
22869
22870 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22871
22872 PR debug/57232
22873 * var-tracking.c (vt_initialize): Apply the same condition to
22874 preserve the CFA base value.
22875
22876 2014-02-28 Joey Ye <joey.ye@arm.com>
22877
22878 PR target/PR60169
22879 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22880 if reload in progress or completed.
22881
22882 2014-02-28 Tobias Burnus <burnus@net-b.de>
22883
22884 PR middle-end/60147
22885 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22886 NAMELIST_DECL.
22887
22888 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22889
22890 * doc/tm.texi.in (Condition Code Status): Update documention for
22891 relative locations of cc0-setter and cc0-user.
22892
22893 2014-02-27 Jeff Law <law@redhat.com>
22894
22895 PR rtl-optimization/52714
22896 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22897 into two independent simple sets, if I3 is a jump, ensure the
22898 pattern we place into I3 is a (set (pc) ...).
22899
22900 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22901 Jeff Law <law@redhat.com>
22902
22903 PR rtl-optimization/49847
22904 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22905 are in different blocks.
22906 * doc/tm.texi (Condition Code Status): Update documention for
22907 relative locations of cc0-setter and cc0-user.
22908
22909 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22910
22911 PR target/59222
22912 * lra.c (lra_emit_add): Check SUBREG too.
22913
22914 2014-02-27 Andreas Schwab <schwab@suse.de>
22915
22916 * config/m68k/m68k.c (m68k_option_override): Disable
22917 -flive-range-shrinkage for classic m68k.
22918 (m68k_override_options_after_change): Likewise.
22919
22920 2014-02-27 Marek Polacek <polacek@redhat.com>
22921
22922 PR middle-end/59223
22923 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22924 -Wmaybe-uninitialized.
22925
22926 2014-02-27 Alan Modra <amodra@gmail.com>
22927
22928 PR target/57936
22929 * reload1.c (emit_input_reload_insns): When reload_override_in,
22930 set old to rl->in_reg when rl->in_reg is a subreg.
22931
22932 2014-02-26 Richard Biener <rguenther@suse.de>
22933
22934 PR bootstrap/60343
22935 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22936
22937 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22938
22939 * common/config/i386/predicates.md (const1256_operand): Remove.
22940 (const2356_operand): New.
22941 (const_1_to_2_operand): Remove.
22942 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22943 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22944 (*avx512pf_gatherpf<mode>sf): Ditto.
22945 (avx512pf_gatherpf<mode>df): Ditto.
22946 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22947 (*avx512pf_gatherpf<mode>df): Ditto.
22948 (avx512pf_scatterpf<mode>sf): Ditto.
22949 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22950 (*avx512pf_scatterpf<mode>sf): Ditto.
22951 (avx512pf_scatterpf<mode>df): Ditto.
22952 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22953 (*avx512pf_scatterpf<mode>df): Ditto.
22954 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22955
22956 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22957
22958 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22959 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22960 (_mm512_mask_testn_epi64_mask): Move to ...
22961 * config/i386/avx512cdintrin.h: Here.
22962 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22963 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22964 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22965 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22966 TARGET_AVX512F from TARGET_AVX512CD.
22967
22968 2014-02-26 Richard Biener <rguenther@suse.de>
22969
22970 PR ipa/60327
22971 * ipa.c (walk_polymorphic_call_targets): Properly guard
22972 call to inline_update_overall_summary.
22973
22974 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22975
22976 PR target/60280
22977 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22978 and latches only if requested. Fix latch if it is removed.
22979 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22980 LOOPS_HAVE_PREHEADERS.
22981
22982 2014-02-25 Andrew Pinski <apinski@cavium.com>
22983
22984 * builtins.c (expand_builtin_thread_pointer): Create a new target
22985 when the target is NULL.
22986
22987 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22988
22989 PR rtl-optimization/60317
22990 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22991 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22992 * lra-assigns.c: Include params.h.
22993 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22994 other reload pseudos considerations.
22995
22996 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22997
22998 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22999 to use canonical form for nor<mode>3.
23000
23001 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23002
23003 PR target/55426
23004 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23005 conversions.
23006
23007 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23008
23009 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23010 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23011 (ix86_handle_option): Handle OPT_mprefetchwt1.
23012 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23013 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23014 PREFETCHWT1 CPUID.
23015 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23016 OPTION_MASK_ISA_PREFETCHWT1.
23017 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23018 (PTA_PREFETCHWT1): New.
23019 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23020 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23021 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23022 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23023 (*prefetch_avx512pf_<mode>_: Change into ...
23024 (*prefetch_prefetchwt1_<mode>: This.
23025 * config/i386/i386.opt (mprefetchwt1): New.
23026 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23027 (_mm_prefetch): Handle intent to write.
23028 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23029
23030 2014-02-25 Richard Biener <rguenther@suse.de>
23031
23032 PR middle-end/60291
23033 * emit-rtl.c (mem_attrs_htab): Remove.
23034 (mem_attrs_htab_hash): Likewise.
23035 (mem_attrs_htab_eq): Likewise.
23036 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23037 (init_emit_once): Do not allocate mem_attrs_htab.
23038
23039 2014-02-25 Richard Biener <rguenther@suse.de>
23040
23041 PR lto/60319
23042 * lto-opts.c (lto_write_options): Output non-explicit conservative
23043 -fwrapv, -fno-trapv and -fno-strict-overflow.
23044 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23045 (run_gcc): And pass them through.
23046
23047 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23048
23049 * sel-sched.c (calculate_new_fences): New parameter ptime.
23050 Calculate it as a maximum over all fence cycles.
23051 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23052 Print the final schedule timing when sched_verbose.
23053
23054 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23055
23056 PR rtl-optimization/60292
23057 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23058 bit fot the fence instruction.
23059
23060 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23061
23062 * calls.h: Fix typo in comment.
23063
23064 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23065
23066 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23067 adjusting offsetable addresses.
23068
23069 2014-02-24 Guozhi Wei <carrot@google.com>
23070
23071 * sparseset.h (sparseset_pop): Fix the wrong index.
23072
23073 2014-02-24 Walter Lee <walt@tilera.com>
23074
23075 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23076 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23077 triplet.
23078 * common/config/tilegx/tilegx-common.c
23079 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23080 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23081 (LINK_SPEC): Ditto.
23082 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23083 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23084 (tilegx_gimplify_va_arg_expr): Handle big endian.
23085 (tilegx_expand_unaligned_load): Ditto.
23086 (tilegx_expand_unaligned_store): Ditto.
23087 (TARGET_RETURN_IN_MSB): New.
23088 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23089 (TARGET_ENDIAN_DEFAULT): New.
23090 (TARGET_BIG_ENDIAN): Handle big endian.
23091 (BYTES_BIG_ENDIAN): Ditto.
23092 (WORDS_BIG_ENDIAN): Ditto.
23093 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23094 (ENDIAN_SPEC): New.
23095 (EXTRA_SPECS): New.
23096 * config/tilegx/tilegx.md (extv): Handle big endian.
23097 (extzv): Ditto.
23098 (insn_st<n>): Ditto.
23099 (insn_st<n>_add<bitsuffix>): Ditto.
23100 (insn_stnt<n>): Ditto.
23101 (insn_stnt<n>_add<bitsuffix>):Ditto.
23102 (vec_interleave_highv8qi): Handle big endian.
23103 (vec_interleave_highv8qi_be): New.
23104 (vec_interleave_highv8qi_le): New.
23105 (insn_v1int_h): Handle big endian.
23106 (vec_interleave_lowv8qi): Handle big endian.
23107 (vec_interleave_lowv8qi_be): New.
23108 (vec_interleave_lowv8qi_le): New.
23109 (insn_v1int_l): Handle big endian.
23110 (vec_interleave_highv4hi): Handle big endian.
23111 (vec_interleave_highv4hi_be): New.
23112 (vec_interleave_highv4hi_le): New.
23113 (insn_v2int_h): Handle big endian.
23114 (vec_interleave_lowv4hi): Handle big endian.
23115 (vec_interleave_lowv4hi_be): New.
23116 (vec_interleave_lowv4hi_le): New.
23117 (insn_v2int_l): Handle big endian.
23118 (vec_interleave_highv2si): Handle big endian.
23119 (vec_interleave_highv2si_be): New.
23120 (vec_interleave_highv2si_le): New.
23121 (insn_v4int_h): Handle big endian.
23122 (vec_interleave_lowv2si): Handle big endian.
23123 (vec_interleave_lowv2si_be): New.
23124 (vec_interleave_lowv2si_le): New.
23125 (insn_v4int_l): Handle big endian.
23126 * config/tilegx/tilegx.opt (mbig-endian): New option.
23127 (mlittle-endian): New option.
23128 * doc/install.texi: Document tilegxbe-linux.
23129 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23130
23131 2014-02-24 Martin Jambor <mjambor@suse.cz>
23132
23133 PR ipa/60266
23134 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23135 there are no parameter descriptors.
23136
23137 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23138
23139 PR rtl-optimization/60268
23140 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23141 initialization to ...
23142 (sched_rgn_init): ... here.
23143 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23144
23145 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23146
23147 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23148 names.
23149
23150 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23151
23152 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23153 definition.
23154
23155 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23156
23157 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23158 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23159
23160 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23161
23162 * config/microblaze/predicates.md: Add cmp_op predicate.
23163 * config/microblaze/microblaze.md: Add branch_compare instruction
23164 which uses cmp_op predicate and emits cmp insn before branch.
23165 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23166 to microblaze_expand_conditional_branch and consolidate logic.
23167 (microblaze_expand_conditional_branch): emit branch_compare
23168 insn instead of handling cmp op separate from branch insn.
23169
23170 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23171
23172 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23173 to permit subregs.
23174
23175 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23176
23177 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23178 define_insn with define_expand and new define_insn
23179 *altivec_lve<VI_char>x_internal.
23180 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23181 and new define_insn *altivec_stve<VI_char>x_internal.
23182 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23183 prototype.
23184 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23185 lve*x built-ins.
23186 (altivec_expand_stvex_be): New function.
23187
23188 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23189
23190 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23191 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23192 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23193 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23194
23195 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23196
23197 PR target/60298
23198 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23199 instead of emit_move_insn.
23200
23201 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23202
23203 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23204 vspltw with vsldoi.
23205 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23206 gen_altivec_vsumsws.
23207
23208 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23209
23210 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23211 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23212 (altivec_lvxl_<mode>): New define_expand incorporating
23213 -maltivec=be semantics where needed.
23214 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23215 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23216 semantics where needed.
23217 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23218 (altivec_stvx_<mode>): New define_expand incorporating
23219 -maltivec=be semantics where needed.
23220 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23221 VM2 iterator instead of V4SI.
23222 (altivec_stvxl_<mode>): New define_expand incorporating
23223 -maltivec=be semantics where needed.
23224 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23225 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23226 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23227 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23228 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23229 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23230 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23231 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23232 ALTIVEC_BUILTIN_STVXL.
23233 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23234 (altivec_expand_stvx_be): Likewise.
23235 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23236 (altivec_expand_lvx_be): Likewise.
23237 (altivec_expand_stvx_be): Likewise.
23238 (altivec_expand_builtin): Add cases for
23239 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23240 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23241 (altivec_init_builtins): Add definitions for
23242 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23243 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23244
23245 2014-02-21 Catherine Moore <clm@codesourcery.com>
23246
23247 * doc/invoke.texi (mvirt, mno-virt): Document.
23248 * config/mips/mips.opt (mvirt): New option.
23249 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23250
23251 2014-02-21 Richard Biener <rguenther@suse.de>
23252
23253 PR tree-optimization/60276
23254 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23255 (STMT_VINFO_MIN_NEG_DIST): New macro.
23256 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23257 STMT_VINFO_MIN_NEG_DIST.
23258 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23259 made for negative dependence distances still hold.
23260
23261 2014-02-21 Richard Biener <rguenther@suse.de>
23262
23263 PR middle-end/60291
23264 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23265 DECL_INITIAL for globals not in the current function context.
23266
23267 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23268
23269 PR tree-optimization/56490
23270 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23271 * tree-ssa-uninit.c: Include params.h.
23272 (compute_control_dep_chain): Add num_calls argument, return false
23273 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23274 num_calls to recursive call.
23275 (find_predicates): Change dep_chain into normal array,
23276 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23277 variable and adjust compute_control_dep_chain caller.
23278 (find_def_preds): Likewise.
23279
23280 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23281
23282 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23283 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23284
23285 2014-02-21 Nick Clifton <nickc@redhat.com>
23286
23287 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23288 (pushhi1): Likewise.
23289 (popqi1): Add mode to pre_dec.
23290 (pophi1): Likewise.
23291
23292 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23293
23294 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23295 mode for mask of V8SFmode permutation.
23296
23297 2014-02-20 Richard Henderson <rth@redhat.com>
23298
23299 PR c++/60272
23300 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23301 a new pseudo for OLDVAL.
23302
23303 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23304
23305 PR target/57896
23306 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23307 gen_reg_rtx if d->testing_p.
23308 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23309 if d->testing_p and we will certainly return true.
23310 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23311 if d->testing_p.
23312
23313 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23314
23315 * emit-rtl.c (gen_reg_rtx): Assert that
23316 crtl->emit.regno_pointer_align_length is non-zero.
23317
23318 2014-02-20 Richard Henderson <rth@redhat.com>
23319
23320 PR c++/60272
23321 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23322 on failure the store back into EXPECT.
23323
23324 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23325 Sandra Loosemore <sandra@codesourcery.com>
23326
23327 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23328 * config/nios2/nios2.c (nios2_function_profiler): Add
23329 -fPIC (flag_pic == 2) support.
23330 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23331 (nios2_large_offset_p): New function.
23332 (nios2_unspec_reloc_p): Move up position, update to use
23333 nios2_large_offset_p.
23334 (nios2_unspec_address): Remove function.
23335 (nios2_unspec_offset): New function.
23336 (nios2_large_got_address): New function.
23337 (nios2_got_address): Add large offset support.
23338 (nios2_legitimize_tls_address): Update usage of removed and new
23339 functions.
23340 (nios2_symbol_binds_local_p): New function.
23341 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23342 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23343 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23344 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23345 processing for (const (unspec ...)).
23346 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23347
23348 2014-02-20 Richard Biener <rguenther@suse.de>
23349
23350 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23351 doing the substitution.
23352 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23353
23354 2014-02-20 Martin Jambor <mjambor@suse.cz>
23355
23356 PR ipa/55260
23357 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23358 info when checking whether lattices are bottom.
23359
23360 2014-02-20 Richard Biener <rguenther@suse.de>
23361
23362 PR middle-end/60221
23363 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23364 regions at -O0.
23365
23366 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23367
23368 PR ipa/58555
23369 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23370 parameter specifying the scaling.
23371 (inline_call): Update.
23372 (want_inline_recursively): Guard division by zero.
23373 (recursive_inlining): Update.
23374 * ipa-inline.h (clone_inlined_nodes): Update.
23375
23376 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23377
23378 PR target/60204
23379 * config/i386/i386.c (classify_argument): Pass structures of size
23380 64 bytes or less in register.
23381
23382 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23383 Kirill Yukhin <kirill.yukhin@intel.com>
23384
23385 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23386 (_mm_rcp28_round_ss): Ditto.
23387 (_mm_rsqrt28_round_sd): Ditto.
23388 (_mm_rsqrt28_round_ss): Ditto.
23389 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23390 (_mm_rcp14_round_ss): Ditto.
23391 (_mm_rsqrt14_round_sd): Ditto.
23392 (_mm_rsqrt14_round_ss): Ditto.
23393 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23394 the first input operand, get rid of match_dup.
23395 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23396 attribute to sse.
23397 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23398 Ditto.
23399 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23400 operand as the first input operand, set type attribute.
23401 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23402 Set type attribute.
23403 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23404 operand as the first input operand, set type attribute.
23405
23406 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23407
23408 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23409 bit of zero.
23410
23411 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23412
23413 PR target/60207
23414 * config/i386/i386.c (construct_container): Remove TFmode check
23415 for X86_64_INTEGER_CLASS.
23416
23417 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23418
23419 PR target/59794
23420 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23421 only when -Wpsabi is enabled.
23422
23423 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23424
23425 PR target/59799
23426 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23427 passing arrays in registers are the same as for structs, so remove the
23428 special case for them.
23429
23430 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23431
23432 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23433 destination type, extract only the valid bits if the source type is not
23434 integral and has a different mode.
23435
23436 2014-02-19 Richard Biener <rguenther@suse.de>
23437
23438 PR ipa/60243
23439 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23440 for all calls.
23441
23442 2014-02-19 Richard Biener <rguenther@suse.de>
23443
23444 PR ipa/60243
23445 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23446 (ipa_modify_call_arguments): Emit an argument load explicitely and
23447 preserve virtual SSA form there and for the replacement call.
23448 Do not update SSA form nor free dominance info.
23449
23450 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23451
23452 * ipa.c (function_and_variable_visibility): Also clear WEAK
23453 flag when disolving COMDAT_GROUP.
23454
23455 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23456
23457 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23458 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23459 not devirtualizing.
23460 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23461 do more sanity checks.
23462 (detect_type_change): Return true when giving up early.
23463 (compute_complex_assign_jump_func): Fix type parameter of
23464 ipa_set_ancestor_jf.
23465 (compute_complex_ancestor_jump_func): Likewise.
23466 (update_jump_functions_after_inlining): Fix updating of
23467 ancestor function.
23468 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23469
23470 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23471
23472 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23473 inline clones when edge disappears.
23474
23475 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23476
23477 PR target/60203
23478 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23479 Split 64-bit moves into 2 patterns. Do not allow the use of
23480 direct move for TDmode in little endian, since the decimal value
23481 has little endian bytes within a word, but the 64-bit pieces are
23482 ordered in a big endian fashion, and normal subreg's of TDmode are
23483 not allowed.
23484 (mov<mode>_64bit_dm): Likewise.
23485 (movtd_64bit_nodm): Likewise.
23486
23487 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23488
23489 PR tree-optimization/60174
23490 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23491 statement of an SSA_NAME that occurs in an abnormal PHI node.
23492
23493 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23494
23495 PR sanitizer/60142
23496 * final.c (SEEN_BB): Remove.
23497 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23498 (final_scan_insn): Don't force_source_line on second
23499 NOTE_INSN_BASIC_BLOCK.
23500
23501 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23502
23503 PR target/60205
23504 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23505 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23506 (type_natural_mode): Warn ABI change when %zmm register is not
23507 available for AVX512F vector value passing.
23508
23509 2014-02-18 Kai Tietz <ktietz@redhat.com>
23510
23511 PR target/60193
23512 * config/i386/i386.c (ix86_expand_prologue): Use value in
23513 rax register as displacement when restoring %r10 or %rax.
23514 Fix wrong offset when restoring both registers.
23515
23516 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23517
23518 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23519 assertion with conditional return.
23520
23521 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23522 Uros Bizjak <ubizjak@gmail.com>
23523
23524 PR driver/60233
23525 * config/i386/driver-i386.c (host_detect_local_cpu): If
23526 YMM state is not saved by the OS, also clear has_f16c. Move
23527 CPUID 0x80000001 handling before YMM state saving checking.
23528
23529 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23530
23531 PR rtl-optimization/58960
23532 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23533 factored out from ...
23534 (sched_init): ... here.
23535 (free_global_sched_pressure_data): New, factored out from ...
23536 (sched_finish): ... here.
23537 * sched-int.h (free_global_sched_pressure_data): Declare.
23538 * sched-rgn.c (nr_regions_initial): New static global.
23539 (haifa_find_rgns): Initialize it.
23540 (schedule_region): Disable sched-pressure for the newly
23541 generated regions.
23542
23543 2014-02-17 Richard Biener <rguenther@suse.de>
23544
23545 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23546 release SSA defs of pattern stmts.
23547
23548 2014-02-17 Richard Biener <rguenther@suse.de>
23549
23550 * tree-inline.c (expand_call_inline): Release the virtual
23551 operand defined by the call we are about to inline.
23552
23553 2014-02-17 Richard Biener <rguenther@suse.de>
23554
23555 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23556
23557 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23558 Ilya Tocar <ilya.tocar@intel.com>
23559
23560 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23561 arguments order in builtin.
23562 (_mm512_permutexvar_epi64): Ditto.
23563 (_mm512_mask_permutexvar_epi64): Ditto
23564 (_mm512_maskz_permutexvar_epi32): Ditto
23565 (_mm512_permutexvar_epi32): Ditto
23566 (_mm512_mask_permutexvar_epi32): Ditto
23567
23568 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23569
23570 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23571 (p8_vmrgow): Likewise.
23572
23573 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23574
23575 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23576 endian targets.
23577
23578 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23579
23580 PR target/60203
23581 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23582 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23583 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23584 using direct move instructions on ISA 2.07. Also adjust
23585 instruction length for 64-bit.
23586 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23587 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23588
23589 2014-02-15 Alan Modra <amodra@gmail.com>
23590
23591 PR target/58675
23592 PR target/57935
23593 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23594 find_replacement on parts of insn rtl that might be reloaded.
23595
23596 2014-02-15 Richard Biener <rguenther@suse.de>
23597
23598 PR tree-optimization/60183
23599 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23600 (tree_ssa_phiprop): Calculate and free post-dominators.
23601
23602 2014-02-14 Jeff Law <law@redhat.com>
23603
23604 PR rtl-optimization/60131
23605 * ree.c (get_extended_src_reg): New function.
23606 (combine_reaching_defs): Use it rather than assuming location of REG.
23607 (find_and_remove_re): Verify first operand of extension is
23608 a REG before adding the insns to the copy list.
23609
23610 2014-02-14 Roland McGrath <mcgrathr@google.com>
23611
23612 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23613 * configure: Regenerated.
23614 * config.in: Regenerated.
23615 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23616 instead of ASM_SHORT.
23617
23618 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23619 Richard Earnshaw <rearnsha@arm.com>
23620
23621 PR rtl-optimization/59535
23622 * lra-constraints.c (process_alt_operands): Encourage alternative
23623 when unassigned pseudo class is superset of the alternative class.
23624 (inherit_reload_reg): Don't inherit when optimizing for code size.
23625 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23626 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23627 modes not less than 4 for Thumb1.
23628
23629 2014-02-14 Kyle McMartin <kyle@redhat.com>
23630
23631 PR pch/60010
23632 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23633
23634 2014-02-14 Richard Biener <rguenther@suse.de>
23635
23636 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23637 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23638 Do not strip INDIRECT_REFs.
23639
23640 2014-02-14 Richard Biener <rguenther@suse.de>
23641
23642 PR lto/60179
23643 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23644 DECL_FUNCTION_SPECIFIC_TARGET.
23645 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23646 * tree-streamer-out.c (pack_ts_target_option): Remove.
23647 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23648 (write_ts_function_decl_tree_pointers): Do not stream
23649 DECL_FUNCTION_SPECIFIC_TARGET.
23650 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23651 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23652 (lto_input_ts_function_decl_tree_pointers): Do not stream
23653 DECL_FUNCTION_SPECIFIC_TARGET.
23654
23655 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23656
23657 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23658 (get_initial_def_for_induction, vectorizable_induction): Ignore
23659 debug stmts when looking for exit_phi.
23660 (vectorizable_live_operation): Fix up condition.
23661
23662 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23663
23664 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23665 nreverse() because it changes the content of original tree list.
23666
23667 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23668
23669 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23670 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23671
23672 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23673
23674 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23675 GNU coding standards.
23676
23677 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23678
23679 PR debug/60152
23680 * dwarf2out.c (gen_subprogram_die): Don't call
23681 add_calling_convention_attribute if subr_die is old_die.
23682
23683 2014-02-13 Sharad Singhai <singhai@google.com>
23684
23685 * doc/optinfo.texi: Fix order of nodes.
23686
23687 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23688
23689 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23690 operands[2], not operands[3].
23691
23692 2014-02-13 Richard Biener <rguenther@suse.de>
23693
23694 PR bootstrap/59878
23695 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23696 mention the possibility of an in-tree build.
23697 (CLooG): Update recommended version to 0.18.1, mention the
23698 possibility of an in-tree build and clarify that the ISL
23699 bundled with CLooG does not work.
23700
23701 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23702
23703 PR target/43546
23704 * expr.c (compress_float_constant): If x is a hard register,
23705 extend into a pseudo and then move to x.
23706
23707 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23708
23709 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23710 caused by bad second argument to warning_at() with -mhotpatch and
23711 nested functions (e.g. with gfortran).
23712
23713 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23714
23715 * opts.c (option_name): Remove "enabled by default" rider.
23716
23717 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23718
23719 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23720
23721 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23722 Uros Bizjak <ubizjak@gmail.com>
23723
23724 PR target/60151
23725 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23726 * configure: Regenerated.
23727
23728 2014-02-12 Richard Biener <rguenther@suse.de>
23729
23730 * vec.c (vec_prefix::calculate_allocation): Move as
23731 inline variant to vec.h.
23732 (vec_prefix::calculate_allocation_1): New out-of-line version.
23733 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23734 (vec_prefix::m_has_auto_buf): Rename to ...
23735 (vec_prefix::m_using_auto_storage): ... this.
23736 (vec_prefix::calculate_allocation): Inline the easy cases
23737 and dispatch to calculate_allocation_1 which doesn't need the
23738 prefix address.
23739 (va_heap::reserve): Use gcc_checking_assert.
23740 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23741 m_using_auto_storage.
23742 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23743 member and adjust.
23744 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23745 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23746 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23747
23748 2014-02-12 Richard Biener <rguenther@suse.de>
23749
23750 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23751 when we found a dependence.
23752
23753 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23754
23755 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23756 common code...
23757 (maybe_fold_stmt): ... into this new function.
23758 * omp-low.c (lower_omp): Update comment.
23759
23760 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23761 last use.
23762
23763 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23764 dereference.
23765
23766 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23767
23768 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23769 identifiers in comments.
23770 (cortexa53_extra_costs): Likewise.
23771 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23772 (cortexa7_extra_costs): Likewise.
23773 (cortexa12_extra_costs): Likewise.
23774 (cortexa15_extra_costs): Likewise.
23775 (v7m_extra_costs): Likewise.
23776
23777 2014-02-12 Richard Biener <rguenther@suse.de>
23778
23779 PR middle-end/60092
23780 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23781 of posix_memalign being successful.
23782 (lower_stmt): Restrict lowering of posix_memalign to when
23783 -ftree-bit-ccp is enabled.
23784
23785 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23786
23787 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23788 arg_loc.
23789 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23790
23791 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23792
23793 PR rtl-optimization/60116
23794 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23795 other_insn once the combination has been validated.
23796
23797 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23798
23799 PR lto/59468
23800 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23801 and wrapper.
23802 * ipa-devirt.c: Include demangle.h
23803 (odr_violation_reported): New static variable.
23804 (add_type_duplicate): Update odr_violations.
23805 (maybe_record_node): Add completep parameter; update it.
23806 (record_target_from_binfo): Add COMPLETEP parameter;
23807 update it as needed.
23808 (possible_polymorphic_call_targets_1): Likewise.
23809 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23810 rename FINAL to COMPLETE.
23811 (record_targets_from_bases): Sanity check we found the binfo;
23812 fix COMPLETEP updating.
23813 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23814 parameter, fix computing of COMPLETEP.
23815 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23816 at LTO time do demangling.
23817 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23818 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23819 parameter.
23820 (gimple_get_virt_method_for_binfo): Likewise.
23821 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23822 gimple_get_virt_method_for_vtable): Update prototypes.
23823
23824 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23825
23826 PR target/49008
23827 * genautomata.c (add_presence_absence): Fix typo with
23828 {final_}presence_list.
23829
23830 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23831
23832 PR target/60137
23833 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23834 for VSX/Altivec vectors that land in GPR registers.
23835
23836 2014-02-11 Richard Henderson <rth@redhat.com>
23837 Jakub Jelinek <jakub@redhat.com>
23838
23839 PR debug/59776
23840 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23841 around drhs if type conversion to lacc->type is not useless.
23842
23843 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23844
23845 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23846 tuning struct.
23847 (cortex-a57.cortex-a53): Likewise.
23848 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23849
23850 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23851
23852 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23853 arm_restrict_it.
23854
23855 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23856
23857 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23858 add_options_for_arm_vfp3.
23859
23860 2014-02-11 Jeff Law <law@redhat.com>
23861
23862 PR middle-end/54041
23863 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23864 object with an undesirable mode.
23865
23866 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23867
23868 PR libgomp/60107
23869 * config/i386/sol2-9.h: New file.
23870 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23871 *-*-solaris2.9*): Use it.
23872
23873 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23874
23875 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23876 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23877
23878 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23879
23880 * config/microblaze/microblaze.c: Extend mcpu version format
23881
23882 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23883
23884 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23885
23886 2014-02-10 Richard Henderson <rth@redhat.com>
23887
23888 PR target/59927
23889 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23890 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23891 ms-abi vs -mno-accumulate-outgoing-args.
23892 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23893 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23894 respect to ms-abi.
23895
23896 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23897
23898 PR middle-end/60080
23899 * cfgexpand.c (expand_asm_operands): Attach source location to
23900 ASM_INPUT rtx objects.
23901 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23902
23903 2014-02-10 Nick Clifton <nickc@redhat.com>
23904
23905 * config/mn10300/mn10300.c (popcount): New function.
23906 (mn10300_expand_prologue): Include saved registers in stack usage
23907 count.
23908
23909 2014-02-10 Jeff Law <law@redhat.com>
23910
23911 PR middle-end/52306
23912 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23913 when changing the SET_DEST of a prior insn to avoid an input reload.
23914
23915 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23916
23917 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23918 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23919 -mcall-openbsd, or -mcall-linux.
23920 (CC1_ENDIAN_BIG_SPEC): Remove.
23921 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23922 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23923 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23924 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23925 and %cc1_endian_default.
23926 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23927
23928 2014-02-10 Richard Biener <rguenther@suse.de>
23929
23930 PR tree-optimization/60115
23931 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23932 MEM_REF handling. Properly verify that the accesses are not
23933 out of the objects bound.
23934
23935 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23936
23937 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23938 coretex to cortex.
23939
23940 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23941
23942 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23943 proper constants and fix formatting.
23944 (possible_polymorphic_call_targets): Fix formatting.
23945
23946 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23947 Ilya Tocar <ilya.tocar@intel.com>
23948
23949 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23950 (_mm512_loadu_epi32): Renamed into...
23951 (_mm512_loadu_si512): This.
23952 (_mm512_storeu_epi32): Renamed into...
23953 (_mm512_storeu_si512): This.
23954 (_mm512_maskz_ceil_ps): Removed.
23955 (_mm512_maskz_ceil_pd): Ditto.
23956 (_mm512_maskz_floor_ps): Ditto.
23957 (_mm512_maskz_floor_pd): Ditto.
23958 (_mm512_floor_round_ps): Ditto.
23959 (_mm512_floor_round_pd): Ditto.
23960 (_mm512_ceil_round_ps): Ditto.
23961 (_mm512_ceil_round_pd): Ditto.
23962 (_mm512_mask_floor_round_ps): Ditto.
23963 (_mm512_mask_floor_round_pd): Ditto.
23964 (_mm512_mask_ceil_round_ps): Ditto.
23965 (_mm512_mask_ceil_round_pd): Ditto.
23966 (_mm512_maskz_floor_round_ps): Ditto.
23967 (_mm512_maskz_floor_round_pd): Ditto.
23968 (_mm512_maskz_ceil_round_ps): Ditto.
23969 (_mm512_maskz_ceil_round_pd): Ditto.
23970 (_mm512_expand_pd): Ditto.
23971 (_mm512_expand_ps): Ditto.
23972 * config/i386/i386.c (ix86_builtins): Remove
23973 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23974 (bdesc_args): Ditto.
23975 * config/i386/predicates.md (const1256_operand): New.
23976 (const_1_to_2_operand): Ditto.
23977 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23978 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23979 (*avx512pf_gatherpf<mode>sf): Ditto.
23980 (avx512pf_gatherpf<mode>df): Ditto.
23981 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23982 (*avx512pf_gatherpf<mode>df): Ditto.
23983 (avx512pf_scatterpf<mode>sf): Ditto.
23984 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23985 (*avx512pf_scatterpf<mode>sf): Ditto.
23986 (avx512pf_scatterpf<mode>df): Ditto.
23987 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23988 (*avx512pf_scatterpf<mode>df): Ditto.
23989 (avx512f_expand<mode>): Removed.
23990 (<shift_insn><mode>3<mask_name>): Change predicate type.
23991
23992 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23993
23994 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23995 not at the end of datarefs vector use ordered_remove to avoid
23996 reordering datarefs vector.
23997
23998 PR c/59984
23999 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24000 mark local addressable non-static vars as GOVD_PRIVATE
24001 instead of GOVD_LOCAL.
24002 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24003 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24004 than copying them.
24005
24006 PR middle-end/60092
24007 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24008 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24009 assume_aligned or alloc_align attributes.
24010 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24011 arguments. Handle also assume_aligned and alloc_align attributes.
24012 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24013 calls to functions with assume_aligned or alloc_align attributes.
24014 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24015
24016 2014-02-08 Terry Guo <terry.guo@arm.com>
24017
24018 * doc/invoke.texi: Document ARM -march=armv7e-m.
24019
24020 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24021
24022 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24023 flag on __cilkrts_rethrow builtin.
24024
24025 PR ipa/60026
24026 * ipa-cp.c (determine_versionability): Fail at -O0
24027 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24028 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24029
24030 Revert:
24031 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24032
24033 PR ipa/60026
24034 * tree-inline.c (copy_forbidden): Fail for
24035 __attribute__((optimize (0))) functions.
24036
24037 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24038
24039 * varpool.c: Include pointer-set.h.
24040 (varpool_remove_unreferenced_decls): Variables in other partitions
24041 will not be output; be however careful to not lose information
24042 about partitioning.
24043
24044 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24045
24046 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24047 lookup in the vtable constructor.
24048
24049 2014-02-07 Jeff Law <law@redhat.com>
24050
24051 PR target/40977
24052 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24053 define_insn_and_split.
24054
24055 * ipa-inline.c (inline_small_functions): Fix typos.
24056
24057 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24058
24059 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24060 (s390_can_use_return_insn): Declare.
24061 * config/s390/s390.h (EPILOGUE_USES): Define.
24062 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24063 instructions.
24064 (s390_chunkify_start): Handle return JUMP_LABELs.
24065 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24066 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24067 (s390_can_use_return_insn): New functions.
24068 (s390_fix_long_loop_prediction): Handle conditional returns.
24069 (TARGET_SET_UP_BY_PROLOGUE): Define.
24070 * config/s390/s390.md (ANY_RETURN): New code iterator.
24071 (*creturn, *csimple_return, return, simple_return): New patterns.
24072
24073 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24074
24075 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24076 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24077 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24078 REG_CFA_RESTORE list when deciding not to restore a register.
24079
24080 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24081
24082 * config/s390/s390.c: Include tree-pass.h and context.h.
24083 (s390_early_mach): New function, split out from...
24084 (s390_emit_prologue): ...here.
24085 (pass_data_s390_early_mach): New pass structure.
24086 (pass_s390_early_mach): New class.
24087 (s390_option_override): Create and register early_mach pass.
24088 Move to end of file.
24089
24090 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24091
24092 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24093 to match for the exit block.
24094
24095 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24096
24097 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24098 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24099 Reject misaligned operands.
24100
24101 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24102
24103 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24104
24105 2014-02-07 Richard Biener <rguenther@suse.de>
24106
24107 PR middle-end/60092
24108 * gimple-low.c (lower_builtin_posix_memalign): New function.
24109 (lower_stmt): Call it to lower posix_memalign in a way
24110 to make alignment info accessible.
24111
24112 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24113
24114 PR c++/60082
24115 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24116 __builtin_setjmp_receiver.
24117
24118 2014-02-07 Richard Biener <rguenther@suse.de>
24119
24120 PR middle-end/60092
24121 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24122 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24123 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24124 Handle BUILT_IN_POSIX_MEMALIGN.
24125 (find_func_clobbers): Likewise.
24126 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24127 (call_may_clobber_ref_p_1): Likewise.
24128
24129 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24130
24131 PR ipa/59918
24132 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24133 sanity check.
24134
24135 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24136
24137 PR ipa/59469
24138 * lto-cgraph.c (lto_output_node): Use
24139 symtab_get_symbol_partitioning_class.
24140 (lto_output_varpool_node): likewise.
24141 (symtab_get_symbol_partitioning_class): Move here from
24142 lto/lto-partition.c
24143 * cgraph.h (symbol_partitioning_class): Likewise.
24144 (symtab_get_symbol_partitioning_class): Declare.
24145
24146 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24147
24148 * ggc.h (ggc_internal_cleared_alloc): New macro.
24149 * vec.h (vec_safe_copy): Handle memory stats.
24150 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24151 * target-globals.c (save_target_globals): Likewise.
24152
24153 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24154
24155 PR target/60077
24156 * expr.c (emit_move_resolve_push): Export; be bit more selective
24157 on when to clear alias set.
24158 * expr.h (emit_move_resolve_push): Declare.
24159 * function.h (struct function): Add tail_call_marked.
24160 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24161 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24162 * config/i386/i386.md (TImode move expander): De not call
24163 ix86_expand_push.
24164 (FP push expanders): Preserve memory attributes.
24165 * config/i386/sse.md (push<mode>1): Remove.
24166 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24167 (ix86_expand_push): Remove.
24168 * config/i386/mmx.md (push<mode>1): Remove.
24169
24170 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24171
24172 PR rtl-optimization/60030
24173 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24174 lopart with paradoxical subreg before shifting it up by hprec.
24175
24176 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24177
24178 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24179 Remove extra newline at end of file.
24180 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24181 (arm_issue_rate): Handle cortexa57.
24182 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24183 (cortex-a57.cortex-a53): Likewise.
24184
24185 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24186
24187 PR target/59575
24188 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24189 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24190 bitmask.
24191 (arm_expand_prologue): Adjust all callers.
24192 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24193 info, registers also at the lowest numbered registers side. Use
24194 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24195 XEXP.
24196
24197 PR debug/59992
24198 * var-tracking.c (adjust_mems): Before adding a SET to
24199 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24200
24201 2014-02-06 Alan Modra <amodra@gmail.com>
24202
24203 PR target/60032
24204 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24205 change SDmode to DDmode when lra_in_progress.
24206
24207 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24208
24209 PR middle-end/59150
24210 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24211 free_data_ref on the dr first, and before goto again also set dr
24212 to the next dr. For simd_lane_access, free old datarefs[i] before
24213 overwriting it. For get_vectype_for_scalar_type failure, don't
24214 free_data_ref if simd_lane_access.
24215
24216 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24217
24218 PR target/60062
24219 * tree.h (opts_for_fn): New inline function.
24220 (opt_for_fn): Define.
24221 * config/i386/i386.c (ix86_function_regparm): Use
24222 opt_for_fn (decl, optimize) instead of optimize.
24223
24224 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24225
24226 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24227 for SYMBOL_REF in large memory model.
24228
24229 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24230
24231 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24232 and crypto support.
24233 (cortex-a57): Likewise.
24234 (cortex-a57.cortex-a53): Likewise.
24235
24236 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24237 Kugan Vivekanandarajah <kuganv@linaro.org>
24238
24239 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24240 unaligned_access.
24241 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24242
24243 2014-02-06 Richard Biener <rguenther@suse.de>
24244
24245 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24246 set_loop_copy and initialize_original_copy_tables.
24247
24248 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24249
24250 * config/aarch64/aarch64-simd.md
24251 (aarch64_ashr_simddi): Change QI to SI.
24252
24253 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24254 Jakub Jelinek <jakub@redhat.com>
24255
24256 PR middle-end/60013
24257 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24258 of the dataflow.
24259
24260 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24261
24262 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24263 CODE_FOR_altivec_vpku[hw]um to
24264 CODE_FOR_altivec_vpku[hw]um_direct.
24265 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24266 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24267 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24268 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24269
24270 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24271
24272 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24273 generation for -maltivec=be.
24274 (altivec_vsumsws): Simplify redundant test.
24275
24276 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24277
24278 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24279 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24280 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24281 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24282 gen_altivec_vpkuwum.
24283 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24284 BYTES_BIG_ENDIAN.
24285 (altivec_vpks<VI_char>ss): Likewise.
24286 (altivec_vpks<VI_char>us): Likewise.
24287 (altivec_vpku<VI_char>us): Likewise.
24288 (altivec_vpku<VI_char>um): Likewise.
24289 (altivec_vpku<VI_char>um_direct): New (copy of
24290 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24291 internal use).
24292 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24293 target is little endian and -maltivec=be is not specified.
24294 (*altivec_vupkhs<VU_char>_direct): New (copy of
24295 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24296 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24297 target is little endian and -maltivec=be is not specified.
24298 (*altivec_vupkls<VU_char>_direct): New (copy of
24299 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24300 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24301 little endian and -maltivec=be is not specified.
24302 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24303 little endian and -maltivec=be is not specified.
24304
24305 2014-02-05 Richard Henderson <rth@redhat.com>
24306
24307 PR debug/52727
24308 * combine-stack-adj.c: Revert r206943.
24309 * sched-int.h (struct deps_desc): Add last_args_size.
24310 * sched-deps.c (init_deps): Initialize it.
24311 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24312 contain REG_ARGS_SIZE notes.
24313
24314 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24315
24316 * lto-cgraph.c (asm_nodes_output): Make global.
24317 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24318 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24319 (driver_handle_option): Handle OPT_fwpa.
24320
24321 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24322
24323 PR ipa/59947
24324 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24325 a comment typo and formatting issue. If odr_hash hasn't been
24326 created, return vNULL and set *completep to false.
24327
24328 PR middle-end/57499
24329 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24330 bb with no successors.
24331
24332 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24333
24334 PR target/59718
24335 * doc/invoke.texi (-march): Clarify documentation for ARM.
24336 (-mtune): Likewise.
24337 (-mcpu): Likewise.
24338
24339 2014-02-05 Richard Biener <rguenther@suse.de>
24340
24341 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24342 when not vectorizing because of too many alias checks.
24343 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24344 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24345
24346 2014-02-05 Nick Clifton <nickc@redhat.com>
24347
24348 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24349 accept extended registers in any mode when compiling for the MN10300.
24350
24351 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24352
24353 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24354 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24355 sanitization attributes.
24356 (can_inline_edge_p): Likewise.
24357 (sanitize_attrs_match_for_inline_p): New function.
24358
24359 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24360
24361 * ipa-prop.c (detect_type_change): Shor circuit testing of
24362 type changes on THIS pointer.
24363
24364 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24365
24366 PR target/59777
24367 * config/pa/pa.c (legitimize_tls_address): Return original address
24368 if not passed a SYMBOL_REF rtx.
24369 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24370 addresses.
24371 (pa_emit_move_sequence): Simplify TLS source operands.
24372 (pa_legitimate_constant_p): Reject all TLS constants.
24373 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24374 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24375
24376 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24377
24378 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24379 groups when we know they are controlled by LTO.
24380 * varasm.c (default_binds_local_p_1): If object is in other partition,
24381 it will be resolved locally.
24382
24383 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24384
24385 * config/host-linux.c (linux_gt_pch_use_address): Don't
24386 use SSIZE_MAX because it is not always defined.
24387
24388 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24389
24390 PR bootstrap/59913
24391 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24392 threshold for pseudo splitting.
24393 (update_ebb_live_info): Process call argument hard registers and
24394 hard registers from insn definition too.
24395 (max_small_class_regs_num): New constant.
24396 (inherit_in_ebb): Update live hard regs through EBBs. Update
24397 reloads_num only for small register classes. Don't split for
24398 outputs of jumps.
24399
24400 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24401
24402 PR ipa/60058
24403 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24404 is non-null.
24405
24406 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24407
24408 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24409 visibility is safe.
24410
24411 2014-02-04 Marek Polacek <polacek@redhat.com>
24412
24413 * gdbinit.in (pel): Define.
24414
24415 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24416
24417 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24418 behavior.
24419
24420 2014-02-04 Richard Biener <rguenther@suse.de>
24421
24422 PR lto/59723
24423 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24424 in function context local.
24425 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24426 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24427 similar to LTO_imported_decl_ref.
24428
24429 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24430
24431 PR tree-optimization/60002
24432 * cgraphclones.c (build_function_decl_skip_args): Clear
24433 DECL_LANG_SPECIFIC.
24434
24435 PR tree-optimization/60023
24436 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24437 false to gsi_replace.
24438 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24439 has been in some EH region and vec_stmt could throw, add
24440 vec_stmt into the same EH region.
24441 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24442 has no lhs, ignore it.
24443 * internal-fn.c (expand_MASK_LOAD): Likewise.
24444
24445 PR ipa/60026
24446 * tree-inline.c (copy_forbidden): Fail for
24447 __attribute__((optimize (0))) functions.
24448
24449 PR other/58712
24450 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24451 is set, copy one less argument.
24452 (expand_simd_clones): Don't subtract clone_info->inbranch
24453 from simd_clone_struct_alloc argument.
24454
24455 PR rtl-optimization/57915
24456 * recog.c (simplify_while_replacing): If all unary/binary/relational
24457 operation arguments are constant, attempt to simplify those.
24458
24459 PR middle-end/59261
24460 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24461 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24462
24463 2014-02-04 Richard Biener <rguenther@suse.de>
24464
24465 PR tree-optimization/60012
24466 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24467 TBAA disambiguation to all DDRs.
24468
24469 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24470
24471 PR target/59788
24472 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24473 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24474
24475 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24476
24477 PR ipa/59882
24478 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24479
24480 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24481
24482 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24483 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24484
24485 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24486
24487 PR ipa/59831
24488 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24489 to figure out targets of polymorphic calls with known decl.
24490 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24491 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24492 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24493 (get_polymorphic_call_info): ... here.
24494 (get_polymorphic_call_info_from_invariant): New function.
24495
24496 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24497
24498 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24499 lookup via vtable pointer; check for type consistency
24500 and turn inconsitent facts into UNREACHABLE.
24501 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24502 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24503 type inconsistent querries; return UNREACHABLE instead.
24504
24505 2014-02-03 Richard Henderson <rth@twiddle.net>
24506
24507 PR tree-opt/59924
24508 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24509 already processed this node.
24510 (normalize_one_pred_1): Pass along mark_set.
24511 (normalize_one_pred): Create and destroy a pointer_set_t.
24512 (normalize_one_pred_chain): Likewise.
24513
24514 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24515
24516 PR gcov-profile/58602
24517 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24518
24519 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24520
24521 PR ipa/59831
24522 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24523 -fno-devirtualize; try to devirtualize by the knowledge of
24524 virtual table pointer given by aggregate propagation.
24525 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24526 (ipa_print_node_jump_functions): Dump also offset that
24527 is relevant for polymorphic calls.
24528 (determine_known_aggregate_parts): Add arg_type parameter; use it
24529 instead of determining the type from pointer type.
24530 (ipa_compute_jump_functions_for_edge): Update call of
24531 determine_known_aggregate_parts.
24532 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24533 (gimple_get_virt_method_for_binfo): ... here; simplify using
24534 vtable_pointer_value_to_vtable.
24535 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24536 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24537 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24538 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24539 POINTER_PLUS_EXPR.
24540 (vtable_pointer_value_to_binfo): ... here.
24541 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24542
24543 2014-02-03 Teresa Johnson <tejohnson@google.com>
24544
24545 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24546 redef of outer loop index variable.
24547
24548 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24549
24550 PR c++/53017
24551 PR c++/59211
24552 * doc/extend.texi (Function Attributes): Typo.
24553
24554 2014-02-03 Cong Hou <congh@google.com>
24555
24556 PR tree-optimization/60000
24557 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24558 if the vectorized statement is a store. A store statement can only
24559 appear at the end of pattern statements.
24560
24561 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24562
24563 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24564 (ix86_option_override_internal): Default long double to 64-bit for
24565 32-bit Bionic and to 128-bit for 64-bit Bionic.
24566
24567 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24568 TARGET_LONG_DOUBLE_128 is true.
24569 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24570
24571 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24572 (mlong-double-64): Negate -mlong-double-128.
24573 (mlong-double-128): New option.
24574
24575 * config/i386/i386-c.c (ix86_target_macros): Define
24576 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24577
24578 * doc/invoke.texi: Document -mlong-double-128.
24579
24580 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24581
24582 PR rtl-optimization/60024
24583 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24584
24585 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24586
24587 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24588
24589 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24590
24591 PR rtl-optimization/57662
24592 * sel-sched.c (code_motion_path_driver): Do not mark already not
24593 existing blocks in the visiting bitmap.
24594
24595 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24596
24597 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24598 on the insn being emitted.
24599
24600 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24601 Will Deacon <will.deacon@arm.com>
24602
24603 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24604
24605 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24606
24607 * config/arm/arm-tables.opt: Regenerate.
24608
24609 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24610
24611 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24612 for vector types other than V16QImode.
24613 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24614 define_expand, and call altivec_expand_vec_perm_le when producing
24615 code with little endian element order.
24616 (*altivec_vperm_<mode>_internal): New insn having previous
24617 behavior of altivec_vperm_<mode>.
24618 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24619 altivec_expand_vec_perm_le when producing code with little endian
24620 element order.
24621 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24622 behavior of altivec_vperm_<mode>_uns.
24623
24624 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24625
24626 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24627 (altivec_vsumsws): Add handling for -maltivec=be with a little
24628 endian target.
24629 (altivec_vsumsws_direct): New.
24630 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24631 gen_altivec_vsumsws.
24632
24633 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24634
24635 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24636 vtable_pointer_value_to_binfo): New functions.
24637 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24638 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24639
24640 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24641
24642 * config/nios2/nios2.md (load_got_register): Initialize GOT
24643 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24644 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24645
24646 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24647
24648 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24649 preserverd by passthrough, do not propagate the type.
24650
24651 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24652
24653 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24654 (mips_atomic_assign_expand_fenv): New function.
24655 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24656
24657 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24658
24659 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24660 (__builtin_mips_set_fcsr): Likewise.
24661 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24662 MIPS_USI_FTYPE_VOID.
24663 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24664 (mips16_expand_set_fcsr): Likewise.
24665 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24666 (mips16_set_fcsr_stub): Likewise.
24667 (mips16_get_fcsr_one_only_stub): New class.
24668 (mips16_set_fcsr_one_only_stub): Likewise.
24669 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24670 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24671 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24672 (hard_float): New availability predicate.
24673 (mips_builtins): Add get_fcsr and set_fcsr.
24674 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24675 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24676 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24677 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24678 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24679 patterns.
24680
24681 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24682
24683 * config/mips/mips.c (mips_one_only_stub): New class.
24684 (mips_need_mips16_rdhwr_p): Replace with...
24685 (mips16_rdhwr_stub): ...this new variable.
24686 (mips16_stub_call_address): New function.
24687 (mips16_rdhwr_one_only_stub): New class.
24688 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24689 (mips_output_mips16_rdhwr): Delete.
24690 (mips_finish_stub): New function.
24691 (mips_code_end): Use it to handle rdhwr stubs.
24692
24693 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24694
24695 PR target/60017
24696 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24697 when calculating size of integer atomic types.
24698
24699 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24700
24701 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24702
24703 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24704
24705 PR tree-optimization/60003
24706 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24707 * profile.c (branch_prob): Use gimple_call_builtin_p
24708 to check for BUILT_IN_SETJMP_RECEIVER.
24709 * tree-inline.c (copy_bb): Call notice_special_calls.
24710
24711 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24712
24713 PR bootstrap/59985
24714 * lra-constraints.c (process_alt_operands): Update reload_sum only
24715 on the first pass.
24716
24717 2014-01-31 Richard Henderson <rth@redhat.com>
24718
24719 PR middle-end/60004
24720 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24721 until after else_eh is processed.
24722
24723 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24724
24725 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24726 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24727 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24728 in smmintrin.h, remove them.
24729 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24730 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24731 * config/i386/i386.md (ROUND_SAE): Fix value.
24732 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24733 (const48_operand): New.
24734 * config/i386/subst.md (round), (round_expand): Use
24735 const_4_or_8_to_11_operand.
24736 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24737
24738 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24739
24740 * config/i386/constraints.md (Yk): Swap meaning with k.
24741 * config/i386/i386.md (movhi_internal): Change Yk to k.
24742 (movqi_internal): Ditto.
24743 (*k<logic><mode>): Ditto.
24744 (*andhi_1): Ditto.
24745 (*andqi_1): Ditto.
24746 (kandn<mode>): Ditto.
24747 (*<code>hi_1): Ditto.
24748 (*<code>qi_1): Ditto.
24749 (kxnor<mode>): Ditto.
24750 (kortestzhi): Ditto.
24751 (kortestchi): Ditto.
24752 (kunpckhi): Ditto.
24753 (*one_cmplhi2_1): Ditto.
24754 (*one_cmplqi2_1): Ditto.
24755 * config/i386/sse.md (): Change k to Yk.
24756 (avx512f_load<mode>_mask): Ditto.
24757 (avx512f_blendm<mode>): Ditto.
24758 (avx512f_store<mode>_mask): Ditto.
24759 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24760 (avx512f_storedqu<mode>_mask): Ditto.
24761 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24762 Ditto.
24763 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24764 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24765 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24766 (avx512f_maskcmp<mode>3): Ditto.
24767 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24768 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24769 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24770 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24771 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24772 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24773 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24774 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24775 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24776 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24777 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24778 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24779 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24780 (vec_extract_lo_<mode>_maskm): Ditto.
24781 (vec_extract_hi_<mode>_maskm): Ditto.
24782 (avx512f_vternlog<mode>_mask): Ditto.
24783 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24784 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24785 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24786 (avx512f_<code>v8div16qi2_mask): Ditto.
24787 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24788 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24789 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24790 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24791 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24792 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24793 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24794 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24795 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24796 (avx512cd_maskb_vec_dupv8di): Ditto.
24797 (avx512cd_maskw_vec_dupv16si): Ditto.
24798 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24799 (avx512f_vpermi2var<mode>3_mask): Ditto.
24800 (avx512f_vpermi2var<mode>3_mask): Ditto.
24801 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24802 (*avx512f_gathersi<mode>): Ditto.
24803 (*avx512f_gathersi<mode>_2): Ditto.
24804 (*avx512f_gatherdi<mode>): Ditto.
24805 (*avx512f_gatherdi<mode>_2): Ditto.
24806 (*avx512f_scattersi<mode>): Ditto.
24807 (*avx512f_scatterdi<mode>): Ditto.
24808 (avx512f_compress<mode>_mask): Ditto.
24809 (avx512f_compressstore<mode>_mask): Ditto.
24810 (avx512f_expand<mode>_mask): Ditto.
24811 * config/i386/subst.md (mask): Change k to Yk.
24812 (mask_scalar_merge): Ditto.
24813 (sd): Ditto.
24814
24815 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24816
24817 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24818
24819 2014-01-31 Richard Biener <rguenther@suse.de>
24820
24821 PR middle-end/59990
24822 * builtins.c (fold_builtin_memory_op): Make sure to not
24823 use a floating-point mode or a boolean or enumeral type for
24824 the copy operation.
24825
24826 2014-01-30 DJ Delorie <dj@redhat.com>
24827
24828 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24829 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24830 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24831 whenever main() has an epilogue.
24832
24833 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24834
24835 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24836 unused variable "field".
24837 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24838 (vsx_mergeh_<mode>): Likewise.
24839 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24840 (altivec_vmrghh): Likewise.
24841 (altivec_vmrghw): Likewise.
24842 (altivec_vmrglb): Likewise.
24843 (altivec_vmrglh): Likewise.
24844 (altivec_vmrglw): Likewise.
24845 (altivec_vspltb): Add missing uses.
24846 (altivec_vsplth): Likewise.
24847 (altivec_vspltw): Likewise.
24848 (altivec_vspltsf): Likewise.
24849
24850 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24851
24852 PR target/59923
24853 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24854 frame related instructions.
24855
24856 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24857
24858 PR rtl-optimization/59959
24859 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24860 any reload of register whose subreg is invalid.
24861
24862 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24863
24864 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24865 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24866 Add missing return type - void.
24867
24868 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24869
24870 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24871 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24872 remove element index adjustment for endian (now handled in vsx.md
24873 and altivec.md).
24874 (altivec_expand_vec_perm_const): Use
24875 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24876 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24877 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24878 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24879 define_expand and a new define_insn *altivec_vspltb_internal;
24880 adjust for -maltivec=be on a little endian target.
24881 (altivec_vspltb_direct): New.
24882 (altivec_vsplth): Divide into a define_expand and a new
24883 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24884 little endian target.
24885 (altivec_vsplth_direct): New.
24886 (altivec_vspltw): Divide into a define_expand and a new
24887 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24888 little endian target.
24889 (altivec_vspltw_direct): New.
24890 (altivec_vspltsf): Divide into a define_expand and a new
24891 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24892 a little endian target.
24893
24894 2014-01-30 Richard Biener <rguenther@suse.de>
24895
24896 PR tree-optimization/59993
24897 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24898 can propagate form the earlier stmt and avoid the transform
24899 when the intermediate result is needed.
24900
24901 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24902
24903 * README.Portability: Fix typo.
24904
24905 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24906
24907 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24908 comparison_operator with ordered_comparison_operator.
24909
24910 2014-01-30 Nick Clifton <nickc@redhat.com>
24911
24912 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24913 Rename to mn10300_store_multiple_regs.
24914 * config/mn10300/mn10300.c: Likewise.
24915 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24916 store_multiple_regs.
24917 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24918 Call mn10300_store_multiple_regs.
24919
24920 2014-01-30 Nick Clifton <nickc@redhat.com>
24921 DJ Delorie <dj@redhat.com>
24922
24923 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24924 %fp 2 to keep registers after it properly word-aligned.
24925 (rl78_alloc_physical_registers_umul): Handle the case where both
24926 input operands are the same.
24927
24928 2014-01-30 Richard Biener <rguenther@suse.de>
24929
24930 PR tree-optimization/59903
24931 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24932 check properly.
24933
24934 2014-01-30 Jason Merrill <jason@redhat.com>
24935
24936 PR c++/59633
24937 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24938
24939 PR c++/59645
24940 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24941
24942 2014-01-30 Richard Biener <rguenther@suse.de>
24943
24944 PR tree-optimization/59951
24945 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24946
24947 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24948
24949 PR target/59784
24950 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24951 SFmode to DFmode case.
24952
24953 2014-01-29 DJ Delorie <dj@redhat.com>
24954
24955 * config/msp430/msp430.opt (-minrt): New.
24956 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24957 if -minrt given.
24958 (ENDFILE_SPEC): Likewise.
24959
24960 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24961
24962 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24963 (estimate_function_body_sizes): Use it.
24964
24965 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24966
24967 PR c++/58561
24968 * dwarf2out.c (is_cxx_auto): New.
24969 (is_base_type): Use it.
24970 (gen_type_die_with_usage): Likewise.
24971
24972 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24973
24974 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24975 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24976 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24977 -maltivec=be with LE targets.
24978 (vsx_mergeh_<mode>): Likewise.
24979 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24980 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24981 (altivec_vmrghb): Replace with define_expand and new
24982 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24983 (altivec_vmrghb_direct): New define_insn.
24984 (altivec_vmrghh): Replace with define_expand and new
24985 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24986 (altivec_vmrghh_direct): New define_insn.
24987 (altivec_vmrghw): Replace with define_expand and new
24988 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24989 (altivec_vmrghw_direct): New define_insn.
24990 (*altivec_vmrghsf): Adjust for endianness.
24991 (altivec_vmrglb): Replace with define_expand and new
24992 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24993 (altivec_vmrglb_direct): New define_insn.
24994 (altivec_vmrglh): Replace with define_expand and new
24995 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24996 (altivec_vmrglh_direct): New define_insn.
24997 (altivec_vmrglw): Replace with define_expand and new
24998 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24999 (altivec_vmrglw_direct): New define_insn.
25000 (*altivec_vmrglsf): Adjust for endianness.
25001 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25002 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25003 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25004 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25005 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25006 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25007 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25008 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25009
25010 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25011
25012 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25013 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25014 whitespace.
25015
25016 2014-01-29 Richard Biener <rguenther@suse.de>
25017
25018 PR tree-optimization/58742
25019 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25020 associate_pointerplus_align.
25021 (associate_pointerplus_diff): New function.
25022 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25023 and associate_pointerplus_diff.
25024
25025 2014-01-29 Richard Biener <rguenther@suse.de>
25026
25027 * lto-streamer.h (LTO_major_version): Bump to 3.
25028 (LTO_minor_version): Reset to 0.
25029
25030 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25031
25032 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25033 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25034 (arm_file_start): Generate correct asm header for armv7ve.
25035 * config/arm/bpabi.h: Add multilib support for armv7ve.
25036 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25037 and cortex-a15 to armv7ve.
25038 * config/arm/t-aprofile: Add multilib support for armv7ve.
25039 * doc/invoke.texi: Document -march=armv7ve.
25040
25041 2014-01-29 Richard Biener <rguenther@suse.de>
25042
25043 PR tree-optimization/58742
25044 * tree-ssa-forwprop.c (associate_plusminus): Return true
25045 if we changed sth, defer EH cleanup to ...
25046 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25047 (simplify_mult): New function.
25048
25049 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25050
25051 PR middle-end/59917
25052 PR tree-optimization/59920
25053 * tree.c (build_common_builtin_nodes): Remove
25054 __builtin_setjmp_dispatcher initialization.
25055 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25056 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25057 instead of gsi_after_labels + manually skipping debug stmts.
25058 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25059 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25060 * tree-inline.c (copy_edges_for_bb): Remove
25061 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25062 argument. Ignore computed_goto_p stmts. Don't call
25063 make_abnormal_goto_edges. If a call might need abnormal edges
25064 for non-local gotos, see if it already has an edge to
25065 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25066 with true argument, don't do anything then, otherwise add
25067 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25068 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25069 caller.
25070 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25071 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25072 (lower_stmt): Don't set data->calls_builtin_setjmp.
25073 (lower_builtin_setjmp): Adjust comment.
25074 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25075 * tree-cfg.c (found_computed_goto): Remove.
25076 (factor_computed_gotos): Remove.
25077 (make_goto_expr_edges): Return bool, true for computed gotos.
25078 Don't call make_abnormal_goto_edges.
25079 (build_gimple_cfg): Don't set found_computed_goto, don't call
25080 factor_computed_gotos.
25081 (computed_goto_p): No longer static.
25082 (make_blocks): Don't set found_computed_goto.
25083 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25084 (make_edges): If make_goto_expr_edges returns true, push bb
25085 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25086 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25087 vector. Record mapping between bbs and OpenMP regions if there
25088 are any, adjust make_gimple_omp_edges caller. Call
25089 handle_abnormal_edges.
25090 (make_abnormal_goto_edges): Remove.
25091 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25092 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25093 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25094 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25095 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25096 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25097 filling *region also set *region_idx to (*region)->entry->index.
25098
25099 PR other/58712
25100 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25101 For REGs set ORIGINAL_REGNO.
25102
25103 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25104
25105 * doc/md.texi: Mention that a target shouldn't implement
25106 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25107 than hi/lo pair.
25108
25109 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25110
25111 PR tree-optimization/59594
25112 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25113 a copy of the datarefs vector rather than the vector itself.
25114
25115 2014-01-28 Jason Merrill <jason@redhat.com>
25116
25117 PR c++/53756
25118 * dwarf2out.c (auto_die): New static.
25119 (gen_type_die_with_usage): Handle C++1y 'auto'.
25120 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25121 on definition.
25122
25123 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25124
25125 PR target/59672
25126 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25127 (SPEC_X32): Likewise.
25128 (SPEC_64): Likewise.
25129 * config/i386/i386.c (ix86_option_override_internal): Turn off
25130 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25131 for TARGET_16BIT.
25132 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25133 * config/i386/i386.h (TARGET_16BIT): New macro.
25134 (TARGET_16BIT_P): Likewise.
25135 * config/i386/i386.opt: Add m16.
25136 * doc/invoke.texi: Document -m16.
25137
25138 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25139
25140 PR preprocessor/59935
25141 * input.c (location_get_source_line): Bail out on when line number
25142 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25143
25144 2014-01-28 Richard Biener <rguenther@suse.de>
25145
25146 PR tree-optimization/58742
25147 * tree-ssa-forwprop.c (associate_plusminus): Handle
25148 pointer subtraction of the form (T)(P + A) - (T)P.
25149
25150 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25151
25152 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25153 at const_int_cost.
25154
25155 2014-01-28 Richard Biener <rguenther@suse.de>
25156
25157 Revert
25158 2014-01-28 Richard Biener <rguenther@suse.de>
25159
25160 PR rtl-optimization/45364
25161 PR rtl-optimization/59890
25162 * var-tracking.c (local_get_addr_clear_given_value): Handle
25163 already cleared slot.
25164 (val_reset): Handle not allocated local_get_addr_cache.
25165 (vt_find_locations): Use post-order on the inverted CFG.
25166
25167 2014-01-28 Richard Biener <rguenther@suse.de>
25168
25169 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25170
25171 2014-01-28 Richard Biener <rguenther@suse.de>
25172
25173 PR rtl-optimization/45364
25174 PR rtl-optimization/59890
25175 * var-tracking.c (local_get_addr_clear_given_value): Handle
25176 already cleared slot.
25177 (val_reset): Handle not allocated local_get_addr_cache.
25178 (vt_find_locations): Use post-order on the inverted CFG.
25179
25180 2014-01-28 Alan Modra <amodra@gmail.com>
25181
25182 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25183 * configure.ac <recursive call for build != host>: Define
25184 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25185 and LD_FOR_BUILD too.
25186 * configure: Regenerate.
25187
25188 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25189
25190 * config/i386/i386.c (get_builtin_code_for_version): Separate
25191 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25192 Broadwell from Haswell.
25193
25194 2014-01-27 Steve Ellcey <sellcey@mips.com>
25195
25196 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25197 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25198 * config/mips/mips.c (mips_option_override): Change setting
25199 of TARGET_DSP.
25200 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25201 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25202 Change from Mask to Var.
25203
25204 2014-01-27 Jeff Law <law@redhat.com>
25205
25206 * ipa-inline.c (inline_small_functions): Fix typo.
25207
25208 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25209
25210 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25211 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25212 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25213 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25214 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25215 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25216 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25217 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25218 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25219 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25220 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25221 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25222 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25223 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25224 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25225 (_mm512_storeu_epi64): Ditto.
25226 (_mm512_cmpge_epi32_mask): Ditto.
25227 (_mm512_cmpge_epu32_mask): Ditto.
25228 (_mm512_cmpge_epi64_mask): Ditto.
25229 (_mm512_cmpge_epu64_mask): Ditto.
25230 (_mm512_cmple_epi32_mask): Ditto.
25231 (_mm512_cmple_epu32_mask): Ditto.
25232 (_mm512_cmple_epi64_mask): Ditto.
25233 (_mm512_cmple_epu64_mask): Ditto.
25234 (_mm512_cmplt_epi32_mask): Ditto.
25235 (_mm512_cmplt_epu32_mask): Ditto.
25236 (_mm512_cmplt_epi64_mask): Ditto.
25237 (_mm512_cmplt_epu64_mask): Ditto.
25238 (_mm512_cmpneq_epi32_mask): Ditto.
25239 (_mm512_cmpneq_epu32_mask): Ditto.
25240 (_mm512_cmpneq_epi64_mask): Ditto.
25241 (_mm512_cmpneq_epu64_mask): Ditto.
25242 (_mm512_expand_pd): Ditto.
25243 (_mm512_expand_ps): Ditto.
25244 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25245 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25246 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25247 * config/i386/i386.c (ix86_builtins): Add
25248 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25249 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25250 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25251 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25252 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25253 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25254 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25255 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25256 IX86_BUILTIN_PMOVUSQW512_MEM.
25257 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25258 __builtin_ia32_pmovsqd512mem_mask,
25259 __builtin_ia32_pmovqd512mem_mask,
25260 __builtin_ia32_pmovusqw512mem_mask,
25261 __builtin_ia32_pmovsqw512mem_mask,
25262 __builtin_ia32_pmovqw512mem_mask,
25263 __builtin_ia32_pmovusdw512mem_mask,
25264 __builtin_ia32_pmovsdw512mem_mask,
25265 __builtin_ia32_pmovdw512mem_mask,
25266 __builtin_ia32_pmovqb512mem_mask,
25267 __builtin_ia32_pmovusqb512mem_mask,
25268 __builtin_ia32_pmovsqb512mem_mask,
25269 __builtin_ia32_pmovusdb512mem_mask,
25270 __builtin_ia32_pmovsdb512mem_mask,
25271 __builtin_ia32_pmovdb512mem_mask.
25272 (bdesc_args): Add __builtin_ia32_expanddf512,
25273 __builtin_ia32_expandsf512.
25274 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25275 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25276 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25277 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25278 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25279 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25280 (avx512f_<code>v8div16qi2_mask_store): This.
25281 (avx512f_expand<mode>): New.
25282
25283 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25284
25285 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25286 New.
25287 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25288 (_mm512_prefetch_i32scatter_pd): Ditto.
25289 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25290 (_mm512_prefetch_i64scatter_pd): Ditto.
25291 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25292 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25293 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25294 (_mm512_prefetch_i32scatter_ps): Ditto.
25295 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25296 (_mm512_prefetch_i64scatter_ps): Ditto.
25297 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25298 * config/i386/i386-builtin-types.def: Define
25299 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25300 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25301 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25302 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25303 IX86_BUILTIN_SCATTERPFQPD.
25304 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25305 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25306 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25307 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25308 __builtin_ia32_scatterpfqps.
25309 (ix86_expand_builtin): Expand new built-ins.
25310 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25311 fix memory access data type.
25312 (*avx512pf_gatherpf<mode>_mask): Ditto.
25313 (*avx512pf_gatherpf<mode>): Ditto.
25314 (avx512pf_scatterpf<mode>): Ditto.
25315 (*avx512pf_scatterpf<mode>_mask): Ditto.
25316 (*avx512pf_scatterpf<mode>): Ditto.
25317 (GATHER_SCATTER_SF_MEM_MODE): New.
25318 (avx512pf_gatherpf<mode>df): Ditto.
25319 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25320 (*avx512pf_scatterpf<mode>df): Ditto.
25321
25322 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25323
25324 PR bootstrap/59934
25325 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25326 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25327 reached.
25328
25329 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25330
25331 * common/config/arm/arm-common.c
25332 (arm_rewrite_mcpu): Handle multiple names.
25333 * config/arm/arm.h
25334 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25335
25336 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25337
25338 * gimple-builder.h (create_gimple_tmp): Delete.
25339
25340 2014-01-27 Christian Bruel <christian.bruel@st.com>
25341
25342 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25343 words comparisons.
25344
25345 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25346
25347 * config/pa/pa.md (call): Generate indirect long calls to non-local
25348 functions when outputing 32-bit code.
25349 (call_value): Likewise except for special call to buggy powf function.
25350
25351 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25352 portable runtime and PIC indirect calls.
25353 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25354 and PIC call sequences. Use ldo instead of blr to set return register
25355 in PIC call sequence.
25356
25357 2014-01-25 Walter Lee <walt@tilera.com>
25358
25359 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25360 avoid clobbering a live register.
25361
25362 2014-01-25 Walter Lee <walt@tilera.com>
25363
25364 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25365 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25366 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25367 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25368
25369 2014-01-25 Walter Lee <walt@tilera.com>
25370
25371 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25372 arguments on even registers.
25373 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25374 STACK_BOUNDARY.
25375 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25376 (BIGGEST_ALIGNMENT): Ditto.
25377 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25378
25379 2014-01-25 Walter Lee <walt@tilera.com>
25380
25381 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25382 insns before bundling.
25383 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25384
25385 2014-01-25 Walter Lee <walt@tilera.com>
25386
25387 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25388 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25389 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25390
25391 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25392
25393 * config/mips/constraints.md (kl): Delete.
25394 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25395 define expands, using...
25396 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25397 instructions for MIPS16.
25398 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25399 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25400
25401 2014-01-25 Walter Lee <walt@tilera.com>
25402
25403 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25404 (clzdi2): Ditto.
25405 (ffsdi2): Ditto.
25406
25407 2014-01-25 Walter Lee <walt@tilera.com>
25408
25409 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25410 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25411
25412 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25413
25414 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25415 Handle XOR.
25416
25417 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25418
25419 * print-rtl.c (in_call_function_usage): New var.
25420 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25421 EXPR_LIST mode as mode and not as reg note name.
25422
25423 PR middle-end/59561
25424 * cfgloopmanip.c (copy_loop_info): If
25425 loop->warned_aggressive_loop_optimizations, make sure
25426 the flag is set in target loop too.
25427
25428 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25429
25430 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25431 flag_cilkplus.
25432 * builtins.def: Likewise.
25433 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25434 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25435 * ira.c (ira_setup_eliminable_regset): Likewise.
25436 * omp-low.c (gate_expand_omp): Likewise.
25437 (execute_lower_omp): Likewise.
25438 (diagnose_sb_0): Likewise.
25439 (gate_diagnose_omp_blocks): Likewise.
25440 (simd_clone_clauses_extract): Likewise.
25441 (gate): Likewise.
25442
25443 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25444
25445 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25446 correction for little endian...
25447 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25448 here.
25449
25450 2014-01-24 Jeff Law <law@redhat.com>
25451
25452 PR tree-optimization/59919
25453 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25454 for non-returning calls.
25455
25456 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25457
25458 * common/config/aarch64/aarch64-common.c
25459 (aarch64_rewrite_mcpu): Handle multiple names.
25460 * config/aarch64/aarch64.h
25461 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25462
25463 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25464
25465 * input.c (add_file_to_cache_tab): Handle the case where fopen
25466 returns NULL.
25467
25468 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25469
25470 PR target/59929
25471 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25472 from push operand if code of push isn't PRE_DEC.
25473
25474 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25475
25476 PR target/59909
25477 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25478 -mquad-memory-atomic. Update -mquad-memory documentation to say
25479 it is only used for non-atomic loads/stores.
25480
25481 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25482 -mquad-memory or -mquad-memory-atomic switches.
25483
25484 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25485 -mquad-memory-atomic to ISA 2.07 support.
25486
25487 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25488 to separate support of normal quad word memory operations (ldq, stq)
25489 from the atomic quad word memory operations.
25490
25491 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25492 support to separate non-atomic quad word operations from atomic
25493 quad word operations. Disable non-atomic quad word operations in
25494 little endian mode so that we don't have to swap words after the
25495 load and before the store.
25496 (quad_load_store_p): Add comment about atomic quad word support.
25497 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25498 options printed with -mdebug=reg.
25499
25500 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25501 -mquad-memory-atomic as the test for whether we have quad word
25502 atomic instructions.
25503 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25504 or -mp8-vector are used, allow byte/half-word atomic operations.
25505
25506 * config/rs6000/sync.md (load_lockedti): Insure that the address
25507 is a proper indexed or indirect address for the lqarx instruction.
25508 On little endian systems, swap the hi/lo registers after the lqarx
25509 instruction.
25510 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25511 insure the address is valid for the lqarx instruction.
25512 (store_conditionalti): Insure that the address is a proper indexed
25513 or indirect address for the stqcrx. instruction. On little endian
25514 systems, swap the hi/lo registers before doing the stqcrx.
25515 instruction.
25516 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25517 insure the address is valid for the stqcrx. instruction.
25518
25519 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25520 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25521 type of quad memory support is available.
25522
25523 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25524
25525 PR regression/59915
25526 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25527 there is a danger of looping.
25528
25529 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25530
25531 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25532 force flag_ira_loop_pressure if set via command line.
25533
25534 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25535
25536 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25537 (ashr_simd): New builtin handling DI mode.
25538 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25539 (aarch64_sshr_simddi): New match pattern.
25540 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25541 (vshrd_n_s64): Likewise.
25542 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25543
25544 2014-01-23 Nick Clifton <nickc@redhat.com>
25545
25546 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25547 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25548 favour of mcu specific scripts.
25549 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25550 430x multilibs.
25551
25552 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25553 Alex Velenko <Alex.Velenko@arm.com>
25554
25555 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25556 (vaddv_s16): Likewise.
25557 (vaddv_s32): Likewise.
25558 (vaddv_u8): Likewise.
25559 (vaddv_u16): Likewise.
25560 (vaddv_u32): Likewise.
25561 (vaddvq_s8): Likewise.
25562 (vaddvq_s16): Likewise.
25563 (vaddvq_s32): Likewise.
25564 (vaddvq_s64): Likewise.
25565 (vaddvq_u8): Likewise.
25566 (vaddvq_u16): Likewise.
25567 (vaddvq_u32): Likewise.
25568 (vaddvq_u64): Likewise.
25569 (vaddv_f32): Likewise.
25570 (vaddvq_f32): Likewise.
25571 (vaddvq_f64): Likewise.
25572 (vmaxv_f32): Likewise.
25573 (vmaxv_s8): Likewise.
25574 (vmaxv_s16): Likewise.
25575 (vmaxv_s32): Likewise.
25576 (vmaxv_u8): Likewise.
25577 (vmaxv_u16): Likewise.
25578 (vmaxv_u32): Likewise.
25579 (vmaxvq_f32): Likewise.
25580 (vmaxvq_f64): Likewise.
25581 (vmaxvq_s8): Likewise.
25582 (vmaxvq_s16): Likewise.
25583 (vmaxvq_s32): Likewise.
25584 (vmaxvq_u8): Likewise.
25585 (vmaxvq_u16): Likewise.
25586 (vmaxvq_u32): Likewise.
25587 (vmaxnmv_f32): Likewise.
25588 (vmaxnmvq_f32): Likewise.
25589 (vmaxnmvq_f64): Likewise.
25590 (vminv_f32): Likewise.
25591 (vminv_s8): Likewise.
25592 (vminv_s16): Likewise.
25593 (vminv_s32): Likewise.
25594 (vminv_u8): Likewise.
25595 (vminv_u16): Likewise.
25596 (vminv_u32): Likewise.
25597 (vminvq_f32): Likewise.
25598 (vminvq_f64): Likewise.
25599 (vminvq_s8): Likewise.
25600 (vminvq_s16): Likewise.
25601 (vminvq_s32): Likewise.
25602 (vminvq_u8): Likewise.
25603 (vminvq_u16): Likewise.
25604 (vminvq_u32): Likewise.
25605 (vminnmv_f32): Likewise.
25606 (vminnmvq_f32): Likewise.
25607 (vminnmvq_f64): Likewise.
25608
25609 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25610
25611 * config/aarch64/aarch64-simd.md
25612 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25613 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25614 (*aarch64_mul3_elt<mode>): Likewise.
25615 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25616 (*aarch64_mul3_elt_to_64v2df): Likewise.
25617 (*aarch64_mla_elt<mode>): Likewise.
25618 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25619 (*aarch64_mls_elt<mode>): Likewise.
25620 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25621 (*aarch64_fma4_elt<mode>): Likewise.
25622 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25623 (*aarch64_fma4_elt_to_64v2df): Likewise.
25624 (*aarch64_fnma4_elt<mode>): Likewise.
25625 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25626 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25627 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25628 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25629 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25630 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25631 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25632 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25633 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25634
25635 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25636
25637 * config/aarch64/aarch64-simd.md
25638 (aarch64_be_checked_get_lane<mode>): New define_expand.
25639 * config/aarch64/aarch64-simd-builtins.def
25640 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25641 New builtin definition.
25642 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25643 Use new safe be builtin.
25644
25645 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25646
25647 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25648 New define_insn.
25649 (aarch64_be_st1<mode>): Likewise.
25650 (aarch_ld1<VALL:mode>): Define_expand modified.
25651 (aarch_st1<VALL:mode>): Likewise.
25652 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25653 (UNSPEC_ST1): Likewise.
25654
25655 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25656
25657 * config/microblaze/microblaze.md: Add trap insn and attribute
25658
25659 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25660
25661 PR preprocessor/58580
25662 * input.h (location_get_source_line): Take an additional line_size
25663 parameter.
25664 (void diagnostics_file_cache_fini): Declare new function.
25665 * input.c (struct fcache): New type.
25666 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25667 New static constants.
25668 (diagnostic_file_cache_init, total_lines_num)
25669 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25670 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25671 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25672 (get_next_line, read_next_line, goto_next_line, read_line_num):
25673 New static function definitions.
25674 (diagnostic_file_cache_fini): New function.
25675 (location_get_source_line): Take an additional output line_len
25676 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25677 read_line_num.
25678 * diagnostic.c (diagnostic_finish): Call
25679 diagnostic_file_cache_fini.
25680 (adjust_line): Take an additional input parameter for the length
25681 of the line, rather than calculating it with strlen.
25682 (diagnostic_show_locus): Adjust the use of
25683 location_get_source_line and adjust_line with respect to their new
25684 signature. While displaying a line now, do not stop at the first
25685 null byte. Rather, display the zero byte as a space and keep
25686 going until we reach the size of the line.
25687 * Makefile.in: Add vec.o to OBJS-libcommon
25688
25689 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25690 Ilya Tocar <ilya.tocar@intel.com>
25691
25692 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25693 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25694 (__builtin_ia32_kmov16): Ditto.
25695 * config/i386/i386.md (UNSPEC_KMOV): New.
25696 (kmovw): Ditto.
25697
25698 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25699
25700 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25701 (_mm512_storeu_si512): Ditto.
25702
25703 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25704
25705 PR target/52125
25706 * rtl.h (get_referenced_operands): Declare.
25707 * recog.c (get_referenced_operands): New function.
25708 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25709 operands have been referenced when recording LO_SUM references.
25710
25711 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25712
25713 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25714
25715 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25716
25717 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25718 Enable for generic and recent AMD targets.
25719
25720 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25721
25722 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25723 ARG_SIZE note when adjustment was eliminated.
25724
25725 2014-01-22 Jeff Law <law@redhat.com>
25726
25727 PR tree-optimization/59597
25728 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25729 in file. Accept new argument REGISTERING and use it to modify
25730 dump output appropriately.
25731 (register_jump_thread): Corresponding changes.
25732 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25733 thread paths involving joiner blocks. Add code to dump cancelled
25734 jump threading paths.
25735
25736 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25737
25738 PR rtl-optimization/59477
25739 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25740 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25741
25742 2014-01-22 Tom Tromey <tromey@redhat.com>
25743
25744 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25745 PARAMS.
25746 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25747
25748 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25749
25750 PR rtl-optimization/59896
25751 * lra-constraints.c (process_alt_operands): Check unused note for
25752 matched operands of insn with no output reloads.
25753
25754 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25755
25756 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25757 (mips_move_from_gpr_cost): Likewise.
25758
25759 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25760
25761 PR rtl-optimization/59858
25762 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25763 ira_class_hard_regs_num.
25764 (process_alt_operands): Increase reject for dying matched operand.
25765
25766 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25767
25768 PR target/59003
25769 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25770 smaller than size, perform several stores or loads and stores
25771 at dst + count - size to store or copy all of size bytes, rather
25772 than just last modesize bytes.
25773
25774 2014-01-20 DJ Delorie <dj@redhat.com>
25775
25776 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25777 that CLOBBERs are REGs before propogating their values.
25778
25779 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25780
25781 PR middle-end/59789
25782 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25783 (cgraph_inline_failed_type): New function.
25784 * cgraph.h (DEFCIFCODE): Add type.
25785 (cgraph_inline_failed_type_t): New enum.
25786 (cgraph_inline_failed_type): New prototype.
25787 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25788 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25789 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25790 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25791 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25792 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25793 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25794 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25795 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25796 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25797 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25798 OPTIMIZATION_MISMATCH.
25799 * tree-inline.c (expand_call_inline): Emit errors during
25800 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25801
25802 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25803
25804 PR target/59685
25805 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25806 mode attribute in insn output.
25807
25808 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25809
25810 * output.h (output_constant): Delete.
25811 * varasm.c (output_constant): Make private.
25812
25813 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25814
25815 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25816
25817 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25818
25819 PR middle-end/59860
25820 * tree.h (fold_builtin_strcat): New prototype.
25821 * builtins.c (fold_builtin_strcat): No longer static. Add len
25822 argument, if non-NULL, don't call c_strlen. Optimize
25823 directly into __builtin_memcpy instead of __builtin_strcpy.
25824 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25825 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25826
25827 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25828
25829 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25830 for SImode_address_operand operands, having only a REG argument.
25831
25832 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25833
25834 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25835 loader name using mbig-endian.
25836 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25837
25838 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25839
25840 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25841 (-mtune): Likewise.
25842 (-mcpu): Likewise.
25843
25844 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25845
25846 * config/aarch64/aarch64-protos.h
25847 (aarch64_cannot_change_mode_class_ptr): Declare.
25848 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25849 aarch64_cannot_change_mode_class_ptr): New.
25850 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25851 backend hook aarch64_cannot_change_mode_class.
25852
25853 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25854
25855 * common/config/aarch64/aarch64-common.c
25856 (aarch64_handle_option): Don't handle any option order logic here.
25857 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25858 selected_cpu, warn on architecture version mismatch.
25859 (aarch64_override_options): Fix parsing order for option strings.
25860
25861 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25862 Iain Sandoe <iain@codesourcery.com>
25863
25864 PR bootstrap/59496
25865 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25866 warning. Amend comment to reflect current functionality.
25867
25868 2014-01-20 Richard Biener <rguenther@suse.de>
25869
25870 PR middle-end/59860
25871 * builtins.c (fold_builtin_strcat): Remove case better handled
25872 by tree-ssa-strlen.c.
25873
25874 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25875
25876 * config/aarch64/aarch64.opt
25877 (mcpu, march, mtune): Make case-insensitive.
25878
25879 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25880
25881 PR target/59880
25882 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25883 if operands[1] is a REG or ZERO_EXTEND of a REG.
25884
25885 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25886
25887 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25888
25889 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25890
25891 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25892 long non-pic millicode calls.
25893
25894 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25895
25896 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25897
25898 2014-01-19 Kito Cheng <kito@0xlab.org>
25899
25900 * builtins.c (expand_movstr): Check movstr expand done or fail.
25901
25902 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25903 H.J. Lu <hongjiu.lu@intel.com>
25904
25905 PR target/59379
25906 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25907 to DImode for zero-extended addresses.
25908
25909 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25910
25911 PR rtl-optimization/57763
25912 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25913 on the new indirect jump_insn and increment LABEL_NUSES (label).
25914
25915 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 PR bootstrap/59580
25918 PR bootstrap/59583
25919 * config.gcc (x86_archs): New variable.
25920 (x86_64_archs): Likewise.
25921 (x86_cpus): Likewise.
25922 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25923 --with-arch/--with-cpu= options.
25924 Support --with-arch=/--with-cpu={nehalem,westmere,
25925 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25926
25927 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25928
25929 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25930 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25931
25932 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25933
25934 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25935
25936 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25937
25938 PR target/58944
25939 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25940 clear cpp_get_options (parse_in)->warn_unused_macros for
25941 ix86_target_macros_internal with cpp_define.
25942
25943 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25944
25945 * jump.c (delete_related_insns): Keep (use (insn))s.
25946 * reorg.c (redundant_insn): Check for barriers too.
25947
25948 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25949
25950 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25951
25952 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25953
25954 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25955 call to $$dyncall when TARGET_LONG_CALLS is true.
25956
25957 2014-01-17 Jeff Law <law@redhat.com>
25958
25959 * ree.c (combine_set_extension): Temporarily disable test for
25960 changing number of hard registers.
25961
25962 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25963
25964 PR middle-end/58125
25965 * ipa-inline-analysis.c (inline_free_summary):
25966 Do not free summary of aliases.
25967
25968 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25969
25970 PR middle-end/59706
25971 * gimplify.c (gimplify_expr): Use create_tmp_var
25972 instead of create_tmp_var_raw. If cond doesn't have
25973 integral type, don't add the IFN_ANNOTATE builtin at all.
25974
25975 2014-01-17 Martin Jambor <mjambor@suse.cz>
25976
25977 PR ipa/59736
25978 * ipa-cp.c (prev_edge_clone): New variable.
25979 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25980 Also resize prev_edge_clone vector.
25981 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25982 (ipcp_edge_removal_hook): New function.
25983 (ipcp_driver): Register ipcp_edge_removal_hook.
25984
25985 2014-01-17 Andrew Pinski <apinski@cavium.com>
25986 Steve Ellcey <sellcey@mips.com>
25987
25988 PR target/59462
25989 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25990 of operator mode.
25991
25992 2014-01-17 Jeff Law <law@redhat.com>
25993
25994 PR middle-end/57904
25995 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25996 so that pass_ccp runs first.
25997
25998 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25999
26000 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26001 (ix86_adjust_cost): Use !TARGET_XXX.
26002 (do_reorder_for_imul): Likewise.
26003 (swap_top_of_ready_list): Likewise.
26004 (ix86_sched_reorder): Likewise.
26005
26006 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26007
26008 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26009 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26010 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26011 (intel_memset): New. Duplicate slm_memset.
26012 (intel_cost): New. Duplicate slm_cost.
26013 (m_INTEL): New macro.
26014 (processor_target_table): Add "intel".
26015 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26016 with PROCESSOR_INTEL for "intel".
26017 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26018 PROCESSOR_SILVERMONT.
26019 (ix86_issue_rate): Likewise.
26020 (ix86_adjust_cost): Likewise.
26021 (ia32_multipass_dfa_lookahead): Likewise.
26022 (swap_top_of_ready_list): Likewise.
26023 (ix86_sched_reorder): Likewise.
26024 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26025 instead of TARGET_OPT_AGU.
26026 * config/i386/i386.h (TARGET_INTEL): New.
26027 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26028 (processor_type): Add PROCESSOR_INTEL.
26029 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26030 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26031
26032 2014-01-17 Marek Polacek <polacek@redhat.com>
26033
26034 PR c/58346
26035 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26036 size is zero.
26037
26038 2014-01-17 Richard Biener <rguenther@suse.de>
26039
26040 PR tree-optimization/46590
26041 * opts.c (default_options_table): Add entries for
26042 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26043 all enabled at -O1 but not for -Og.
26044 * common.opt (fbranch-count-reg): Remove Init(1).
26045 (fmove-loop-invariants): Likewise.
26046 (ftree-pta): Likewise.
26047
26048 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26049
26050 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26051 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26052 decls to at least the GCC 4.8 used alignments.
26053
26054 PR fortran/59440
26055 * tree-nested.c (convert_nonlocal_reference_stmt,
26056 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26057 of GIMPLE_BIND stmts, adjust associated decls.
26058
26059 2014-01-17 Richard Biener <rguenther@suse.de>
26060
26061 PR tree-optimization/46590
26062 * vec.h (vec<>::bseach): New member function implementing
26063 binary search according to C89 bsearch.
26064 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26065 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26066 bitmap pointer again. Make accesses_in_loop a flat array.
26067 (mem_ref_obstack): New global.
26068 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26069 (mark_ref_stored): Likewise.
26070 (ref_indep_loop_p_2): Likewise.
26071 (set_ref_stored_in_loop): New helper function.
26072 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26073 (memref_free): Adjust.
26074 (record_mem_ref_loc): Simplify.
26075 (gather_mem_refs_stmt): Adjust.
26076 (sort_locs_in_loop_postorder_cmp): New function.
26077 (analyze_memory_references): Sort accesses_in_loop after
26078 loop postorder number.
26079 (find_ref_loc_in_loop_cmp): New function.
26080 (for_all_locs_in_loop): Find relevant cluster of locs in
26081 accesses_in_loop and iterate without recursion.
26082 (execute_sm): Avoid uninit warning.
26083 (struct ref_always_accessed): Simplify.
26084 (ref_always_accessed::operator ()): Likewise.
26085 (ref_always_accessed_p): Likewise.
26086 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26087 loop postorder numbers here.
26088 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26089 numbers.
26090
26091 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26092
26093 PR c++/57945
26094 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26095 on decls for which assemble_alias has been called.
26096
26097 2014-01-17 Nick Clifton <nickc@redhat.com>
26098
26099 * config/msp430/msp430.opt: (mcpu): New option.
26100 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26101 (msp430_option_override): Parse target_cpu. If the MCU name
26102 matches a generic string, clear target_mcu.
26103 (msp430_attr): Allow numeric interrupt values up to 63.
26104 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26105 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26106 option.
26107 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26108 Add mcpu matches.
26109 * config/msp430/msp430.md (popm): Use %J rather than %I.
26110 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26111 (addhi_cy_i): Use immediate_operand for operand 2.
26112 * doc/invoke.texi: Document -mcpu option.
26113
26114 2014-01-17 Richard Biener <rguenther@suse.de>
26115
26116 PR rtl-optimization/38518
26117 * df.h (df_analyze_loop): Declare.
26118 * df-core.c: Include cfgloop.h.
26119 (df_analyze_1): Split out main part of df_analyze.
26120 (df_analyze): Adjust.
26121 (loop_inverted_post_order_compute): New function.
26122 (loop_post_order_compute): Likewise.
26123 (df_analyze_loop): New function avoiding whole-function
26124 postorder computes.
26125 * loop-invariant.c (find_defs): Use df_analyze_loop.
26126 (find_invariants): Adjust.
26127 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26128
26129 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26130
26131 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26132 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26133
26134 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26135
26136 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26137 traversal when removing references.
26138
26139 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26140
26141 PR ipa/59775
26142 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26143
26144 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26145
26146 PR middle-end/56791
26147 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26148 pushing a reload for an autoinc when we had previously reloaded an
26149 inner part of the address.
26150
26151 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26152
26153 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26154 field.
26155 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26156 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26157 when not giving up or versioning for alias only because of
26158 loop->safelen.
26159 (vect_analyze_data_ref_dependences): Set to true.
26160 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26161 is a GIMPLE_PHI.
26162 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26163 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26164 to the condition.
26165
26166 PR middle-end/58344
26167 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26168
26169 PR target/59839
26170 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26171 operand 0 predicate for gathers, use a new pseudo as subtarget.
26172
26173 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26174
26175 PR middle-end/59609
26176 * lra-constraints.c (process_alt_operands): Add printing debug info.
26177 Check absence of input/output reloads for matched operands too.
26178
26179 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26180
26181 PR rtl-optimization/59835
26182 * ira.c (ira_init_register_move_cost): Increase cost for
26183 impossible modes.
26184
26185 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26186
26187 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26188
26189 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26190
26191 PR target/59780
26192 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26193 non-register objects. Use gen_(high/low)part more consistently.
26194 Fix assertions.
26195
26196 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26197
26198 PR target/59844
26199 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26200 endian support, remove tests for WORDS_BIG_ENDIAN.
26201 (p8_mfvsrd_3_<mode>): Likewise.
26202 (reload_gpr_from_vsx<mode>): Likewise.
26203 (reload_gpr_from_vsxsf): Likewise.
26204 (p8_mfvsrd_4_disf): Likewise.
26205
26206 2014-01-16 Richard Biener <rguenther@suse.de>
26207
26208 PR rtl-optimization/46590
26209 * lcm.c (compute_antinout_edge): Use postorder iteration.
26210 (compute_laterin): Use inverted postorder iteration.
26211
26212 2014-01-16 Nick Clifton <nickc@redhat.com>
26213
26214 PR middle-end/28865
26215 * varasm.c (output_constant): Return the number of bytes actually
26216 emitted.
26217 (output_constructor_array_range): Update the field size with the
26218 number of bytes emitted by output_constant.
26219 (output_constructor_regular_field): Likewise. Also do not
26220 complain if the total number of bytes emitted is now greater
26221 than the expected fieldpos.
26222 * output.h (output_constant): Update prototype and descriptive comment.
26223
26224 2014-01-16 Marek Polacek <polacek@redhat.com>
26225
26226 PR middle-end/59827
26227 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26228 it is error_mark_node.
26229
26230 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26231
26232 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26233 VALID_AVX256_REG_OR_OI_MODE.
26234
26235 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26236
26237 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26238 current procedure should be profiled.
26239
26240 2014-01-15 Andrew Pinski <apinski@cavium.com>
26241
26242 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26243 of moving from/to the STACK_REG register class.
26244
26245 2014-01-15 Richard Henderson <rth@redhat.com>
26246
26247 PR debug/54694
26248 * reginfo.c (global_regs_decl): Globalize.
26249 * rtl.h (global_regs_decl): Declare.
26250 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26251 reserved via global_regs.
26252
26253 2014-01-15 Teresa Johnson <tejohnson@google.com>
26254
26255 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26256
26257 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26258
26259 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26260 and vmulosh rather than call gen_vec_widen_smult_*.
26261 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26262 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26263 (vec_widen_smult_even_v16qi): Likewise.
26264 (vec_widen_umult_even_v8hi): Likewise.
26265 (vec_widen_smult_even_v8hi): Likewise.
26266 (vec_widen_umult_odd_v16qi): Likewise.
26267 (vec_widen_smult_odd_v16qi): Likewise.
26268 (vec_widen_umult_odd_v8hi): Likewise.
26269 (vec_widen_smult_odd_v8hi): Likewise.
26270 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26271 vmuloub rather than call gen_vec_widen_umult_*.
26272 (vec_widen_umult_lo_v16qi): Likewise.
26273 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26274 vmulosb rather than call gen_vec_widen_smult_*.
26275 (vec_widen_smult_lo_v16qi): Likewise.
26276 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26277 rather than call gen_vec_widen_umult_*.
26278 (vec_widen_umult_lo_v8hi): Likewise.
26279 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26280 rather than call gen_vec_widen_smult_*.
26281 (vec_widen_smult_lo_v8hi): Likewise.
26282
26283 2014-01-15 Jeff Law <law@redhat.com>
26284
26285 PR tree-optimization/59747
26286 * ree.c (find_and_remove_re): Properly handle case where a second
26287 eliminated extension requires widening a copy created for elimination
26288 of a prior extension.
26289 (combine_set_extension): Ensure that the number of hard regs needed
26290 for a destination register does not change when we widen it.
26291
26292 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26293
26294 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26295 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26296 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26297 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26298 (avr-*-rtems*): Likewise.
26299 (bfin*-rtems*): Likewise.
26300 (moxie-*-rtems*): Likewise.
26301 (h8300-*-rtems*): Likewise.
26302 (i[34567]86-*-rtems*): Likewise.
26303 (lm32-*-rtems*): Likewise.
26304 (m32r-*-rtems*): Likewise.
26305 (m68k-*-rtems*): Likewise.
26306 (microblaze*-*-rtems*): Likewise.
26307 (mips*-*-rtems*): Likewise.
26308 (powerpc-*-rtems*): Likewise.
26309 (sh-*-rtems*): Likewise.
26310 (sparc-*-rtems*): Likewise.
26311 (sparc64-*-rtems*): Likewise.
26312 (v850-*-rtems*): Likewise.
26313 (m32c-*-rtems*): Likewise.
26314
26315 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26316
26317 PR rtl-optimization/59511
26318 * ira.c (ira_init_register_move_cost): Use memory costs for some
26319 cases of register move cost calculations.
26320 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26321 instead of BB frequency.
26322 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26323 * lra-assigns.c (find_hard_regno_for): Ditto.
26324
26325 2014-01-15 Richard Biener <rguenther@suse.de>
26326
26327 PR tree-optimization/59822
26328 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26329 (vectorizable_load): Use it to hoist defs of uses of invariant
26330 loads out of the loop.
26331
26332 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26333 Kugan Vivekanandarajah <kuganv@linaro.org>
26334
26335 PR target/59695
26336 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26337 truncation.
26338
26339 2014-01-15 Richard Biener <rguenther@suse.de>
26340
26341 PR rtl-optimization/59802
26342 * lcm.c (compute_available): Use inverted postorder to seed
26343 the initial worklist.
26344
26345 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26346
26347 PR target/59803
26348 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26349 ADDR_REGS for invalid symrefs in non-PIC code.
26350
26351 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26352
26353 PR other/58712
26354 * builtins.c (determine_block_size): Initialize *probable_max_size
26355 even if len_rtx is CONST_INT.
26356
26357 2014-01-14 Andrew Pinski <apinski@cavium.com>
26358
26359 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26360 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26361 (cortexa53_tunings): Likewise.
26362 (aarch64_sched_issue_rate): New function.
26363 (TARGET_SCHED_ISSUE_RATE): Define.
26364
26365 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26366
26367 * ira-costs.c (find_costs_and_classes): Add missed
26368 ira_init_register_move_cost_if_necessary.
26369
26370 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26371
26372 PR target/59787
26373 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26374
26375 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26376
26377 PR target/59794
26378 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26379 to indicate if type is used for function return value. Warn ABI
26380 change if the vector mode isn't available for function return value.
26381 (ix86_function_arg_advance): Pass false to type_natural_mode.
26382 (ix86_function_arg): Likewise.
26383 (ix86_gimplify_va_arg): Likewise.
26384 (function_arg_32): Don't warn ABI change.
26385 (ix86_function_value): Pass true to type_natural_mode.
26386 (ix86_return_in_memory): Likewise.
26387 (ix86_struct_value_rtx): Removed.
26388 (TARGET_STRUCT_VALUE_RTX): Likewise.
26389
26390 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26391
26392 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26393 converting a conditional jump into a conditional return.
26394
26395 2014-01-14 Richard Biener <rguenther@suse.de>
26396
26397 PR tree-optimization/58921
26398 PR tree-optimization/59006
26399 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26400 hoisting invariant stmts.
26401 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26402 invariant loads on the preheader edge if possible.
26403
26404 2014-01-14 Joey Ye <joey.ye@arm.com>
26405
26406 * doc/plugin.texi (Building GCC plugins): Update to C++.
26407
26408 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26409
26410 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26411 (_mm_rcp28_round_ss): Ditto.
26412 (_mm_rsqrt28_round_sd): Ditto.
26413 (_mm_rsqrt28_round_ss): Ditto.
26414 (_mm_rcp28_sd): Ditto.
26415 (_mm_rcp28_ss): Ditto.
26416 (_mm_rsqrt28_sd): Ditto.
26417 (_mm_rsqrt28_ss): Ditto.
26418 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26419 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26420 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26421 (IX86_BUILTIN_RCP28SD): Ditto.
26422 (IX86_BUILTIN_RCP28SS): Ditto.
26423 (IX86_BUILTIN_RSQRT28SD): Ditto.
26424 (IX86_BUILTIN_RSQRT28SS): Ditto.
26425 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26426 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26427 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26428 (ix86_expand_special_args_builtin): Expand new FTYPE.
26429 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26430 (srcp14<mode>): Make insn unary.
26431 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26432 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26433 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26434 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26435 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26436 Fix rounding: make it SAE only.
26437 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26438 Ditto.
26439 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26440 Ditto.
26441 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26442 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26443 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26444 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26445 (round_saeonly_mask_scalar_operand4): Ditto.
26446 (round_saeonly_mask_scalar_op3): Ditto.
26447 (round_saeonly_mask_scalar_op4): Ditto.
26448
26449 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26450
26451 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26452 Implement -maltivec=be for vec_insert and vec_extract.
26453
26454 2014-01-10 DJ Delorie <dj@redhat.com>
26455
26456 * config/msp430/msp430.md (call_internal): Don't allow memory
26457 references with SP as the base register.
26458 (call_value_internal): Likewise.
26459 * config/msp430/constraints.md (Yc): New. For memory references
26460 that don't use SP as a base register.
26461
26462 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26463 "an integer without a # prefix"
26464 * config/msp430/msp430.md (epilogue_helper): Use it.
26465
26466 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26467
26468 PR target/59617
26469 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26470 AVX512F gather builtins.
26471 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26472 on gather decls with INTEGER_TYPE masktype.
26473 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26474 directly into the builtin rather than hoisting it before loop.
26475
26476 PR tree-optimization/59387
26477 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26478 (scev_const_prop): If folded_casts and type has undefined overflow,
26479 use force_gimple_operand instead of force_gimple_operand_gsi and
26480 for each added stmt if it is assign with
26481 arith_code_with_undefined_signed_overflow, call
26482 rewrite_to_defined_overflow.
26483 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26484 gimple-fold.h instead.
26485 (arith_code_with_undefined_signed_overflow,
26486 rewrite_to_defined_overflow): Moved to ...
26487 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26488 rewrite_to_defined_overflow): ... here. No longer static.
26489 Include gimplify-me.h.
26490 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26491 rewrite_to_defined_overflow): New prototypes.
26492
26493 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26494
26495 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26496
26497 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26498
26499 * builtins.c (get_object_alignment_2): Minor tweak.
26500 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26501
26502 2014-01-13 Christian Bruel <christian.bruel@st.com>
26503
26504 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26505 optimized non constant lengths.
26506
26507 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26508
26509 PR libgomp/59194
26510 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26511 load as __atomic_load_N if possible.
26512
26513 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26514
26515 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26516 target parameter.
26517 (rs6000_expand_builtin): Adjust call.
26518
26519 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26520
26521 PR target/58115
26522 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26523 * config/rs6000/rs6000.c: Include target-globals.h.
26524 (rs6000_set_current_function): Instead of doing target_reinit
26525 unconditionally, use save_target_globals_default_opts and
26526 restore_target_globals.
26527
26528 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26529 FPSCR.
26530 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26531 (rs6000_expand_builtin): Handle mffs and mtfsf.
26532 (rs6000_init_builtins): Define mffs and mtfsf.
26533 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26534 (rs6000_mffs): New pattern.
26535 (rs6000_mtfsf): New pattern.
26536
26537 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26538
26539 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26540 Start narrowing with START. Apply candidate-use pair
26541 and check overall cost in narrowing.
26542 (iv_ca_prune): Pass new argument.
26543
26544 2014-01-10 Jeff Law <law@redhat.com>
26545
26546 PR middle-end/59743
26547 * ree.c (combine_reaching_defs): Ensure the defining statement
26548 occurs before the extension when optimizing extensions with
26549 different source and destination hard registers.
26550
26551 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26552
26553 PR ipa/58585
26554 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26555 vtables into the type inheritance graph.
26556
26557 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26558
26559 PR rtl-optimization/59754
26560 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26561 modes in the REGNO != REGNO case.
26562
26563 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26564
26565 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26566
26567 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26568
26569 PR tree-optimization/59745
26570 * tree-predcom.c (tree_predictive_commoning_loop): Call
26571 free_affine_expand_cache if giving up because components is NULL.
26572
26573 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26574 GC in payload of target_globals struct instead of allocating them on
26575 the heap and the larger structs separately using GC.
26576 * target-globals.h (struct target_globals): Make regs, hard_regs,
26577 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26578 of GTY((skip)) and change type to void *.
26579 (reset_target_globals): Cast loads from those fields to corresponding
26580 types.
26581
26582 2014-01-10 Steve Ellcey <sellcey@mips.com>
26583
26584 PR plugins/59335
26585 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26586 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26587 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26588
26589 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26590
26591 PR target/59744
26592 * aarch64-modes.def (CC_Zmode): New flags mode.
26593 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26594 represents an equality.
26595 (aarch64_get_condition_code): Handle CC_Zmode.
26596 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26597
26598 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26599
26600 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26601 extraction in good case.
26602
26603 2014-01-10 Richard Biener <rguenther@suse.de>
26604
26605 PR tree-optimization/59374
26606 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26607 checking after SLP discovery. Mark stmts not participating
26608 in any SLP instance properly.
26609
26610 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26611
26612 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26613 when handling a SET rtx.
26614
26615 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26616
26617 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26618 (cortex-a57): Likewise.
26619 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26620
26621 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26622
26623 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26624 non-iwmmxt builtins.
26625
26626 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26627
26628 PR ipa/58252
26629 PR ipa/59226
26630 * ipa-devirt.c record_target_from_binfo): Take as argument
26631 stack of binfos and lookup matching one for virtual inheritance.
26632 (possible_polymorphic_call_targets_1): Update.
26633
26634 2014-01-10 Huacai Chen <chenhc@lemote.com>
26635
26636 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26637 kernel strings for Loongson-2E/2F/3A.
26638
26639 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26640
26641 PR middle-end/59670
26642 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26643 is_gimple_call before calling gimple_call_internal_p.
26644
26645 2014-01-09 Steve Ellcey <sellcey@mips.com>
26646
26647 * Makefile.in (TREE_FLOW_H): Remove.
26648 (TREE_SSA_H): Add file names from tree-flow.h.
26649 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26650 * tree.h: Remove tree-flow.h reference.
26651 * hash-table.h: Remove tree-flow.h reference.
26652 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26653 reference with tree-ssa-loop.h.
26654
26655 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26656
26657 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26658 default element-order behavior for -maltivec.
26659 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26660 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26661 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26662 when targeting big endian, at least for now.
26663 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26664
26665 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26666
26667 PR middle-end/47735
26668 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26669 var satisfies use_register_for_decl, just take into account type
26670 alignment, rather than decl alignment.
26671
26672 PR tree-optimization/59622
26673 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26674 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26675 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26676 Don't devirtualize for inplace at all. For targets.length () == 1,
26677 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26678
26679 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26680
26681 * config/i386/i386.md (cpu): Remove the unused btver1.
26682
26683 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26684
26685 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26686
26687 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26688
26689 PR target/58115
26690 * tree-core.h (struct target_globals): New forward declaration.
26691 (struct tree_target_option): Add globals field.
26692 * tree.h (TREE_TARGET_GLOBALS): Define.
26693 (prepare_target_option_nodes_for_pch): New prototype.
26694 * target-globals.h (struct target_globals): Define even if
26695 !SWITCHABLE_TARGET.
26696 * tree.c (prepare_target_option_node_for_pch,
26697 prepare_target_option_nodes_for_pch): New functions.
26698 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26699 * config/i386/i386.c: Include target-globals.h.
26700 (ix86_set_current_function): Instead of doing target_reinit
26701 unconditionally, use save_target_globals_default_opts and
26702 restore_target_globals.
26703
26704 2014-01-09 Richard Biener <rguenther@suse.de>
26705
26706 PR tree-optimization/59715
26707 * tree-cfg.h (split_critical_edges): Declare.
26708 * tree-cfg.c (split_critical_edges): Export.
26709 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26710
26711 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26712
26713 * cfgexpand.c (expand_stack_vars): Optionally disable
26714 asan stack protection.
26715 (expand_used_vars): Likewise.
26716 (partition_stack_vars): Likewise.
26717 * asan.c (asan_emit_stack_protection): Optionally disable
26718 after return stack usage.
26719 (instrument_derefs): Optionally disable memory access instrumentation.
26720 (instrument_builtin_call): Likewise.
26721 (instrument_strlen_call): Likewise.
26722 (asan_protect_global): Optionally disable global variables protection.
26723 * doc/invoke.texi: Added doc for new options.
26724 * params.def: Added new options.
26725 * params.h: Likewise.
26726
26727 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26728
26729 PR rtl-optimization/59724
26730 * ifcvt.c (cond_exec_process_if_block): Don't call
26731 flow_find_head_matching_sequence with 0 longest_match.
26732 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26733 non-active insns if !stop_after.
26734 (try_head_merge_bb): Revert 2014-01-07 changes.
26735
26736 2014-01-08 Jeff Law <law@redhat.com>
26737
26738 * ree.c (get_sub_rtx): New function, extracted from...
26739 (merge_def_and_ext): Here.
26740 (combine_reaching_defs): Use get_sub_rtx.
26741
26742 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26743
26744 * cgraph.h (varpool_variable_node): Do not choke on null node.
26745
26746 2014-01-08 Catherine Moore <clm@codesourcery.com>
26747
26748 * config/mips/mips.md (simple_return): Attempt to use JRC
26749 for microMIPS.
26750 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26751
26752 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26753
26754 PR rtl-optimization/59137
26755 * reorg.c (steal_delay_list_from_target): Call update_block for
26756 elided insns.
26757 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26758
26759 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26760
26761 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26762 two duplicate entries.
26763
26764 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26765
26766 Revert:
26767 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26768
26769 * config/mips/mips.c (mips_truncated_op_cost): New function.
26770 (mips_rtx_costs): Adjust test for BADDU.
26771 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26772
26773 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26774
26775 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26776 (*baddu_si): ...this new pattern.
26777
26778 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26779
26780 PR ipa/59722
26781 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26782
26783 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26784
26785 PR middle-end/57748
26786 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26787 inner_reference_p.
26788 (expand_expr, expand_normal): Adjust.
26789 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26790 inner_reference_p. Use inner_reference_p to expand inner references.
26791 (store_expr): Adjust.
26792 * cfgexpand.c (expand_call_stmt): Adjust.
26793
26794 2014-01-08 Rong Xu <xur@google.com>
26795
26796 * gcov-io.c (gcov_var): Move from gcov-io.h.
26797 (gcov_position): Ditto.
26798 (gcov_is_error): Ditto.
26799 (gcov_rewrite): Ditto.
26800 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26801 only part to libgcc/libgcov.h.
26802
26803 2014-01-08 Marek Polacek <polacek@redhat.com>
26804
26805 PR middle-end/59669
26806 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26807
26808 2014-01-08 Marek Polacek <polacek@redhat.com>
26809
26810 PR sanitizer/59667
26811 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26812
26813 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26814
26815 PR rtl-optimization/59649
26816 * stor-layout.c (get_mode_bounds): For BImode return
26817 0 and STORE_FLAG_VALUE.
26818
26819 2014-01-08 Richard Biener <rguenther@suse.de>
26820
26821 PR middle-end/59630
26822 * gimple.h (is_gimple_builtin_call): Remove.
26823 (gimple_builtin_call_types_compatible_p): New.
26824 (gimple_call_builtin_p): New overload.
26825 * gimple.c (is_gimple_builtin_call): Remove.
26826 (validate_call): Rename to ...
26827 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26828 check return types.
26829 (validate_type): New static function.
26830 (gimple_call_builtin_p): New overload and adjust.
26831 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26832 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26833 (gimple_fold_stmt_to_constant_1): Likewise.
26834 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26835
26836 2014-01-08 Richard Biener <rguenther@suse.de>
26837
26838 PR middle-end/59471
26839 * gimplify.c (gimplify_expr): Gimplify register-register type
26840 VIEW_CONVERT_EXPRs to separate stmts.
26841
26842 2014-01-07 Jeff Law <law@redhat.com>
26843
26844 PR middle-end/53623
26845 * ree.c (combine_set_extension): Handle case where source
26846 and destination registers in an extension insn are different.
26847 (combine_reaching_defs): Allow source and destination registers
26848 in extension to be different under limited circumstances.
26849 (add_removable_extension): Remove restriction that the
26850 source and destination registers in the extension are the same.
26851 (find_and_remove_re): Emit a copy from the extension's
26852 destination to its source after the defining insn if
26853 the source and destination registers are different.
26854
26855 PR middle-end/59285
26856 * ifcvt.c (merge_if_block): If we are merging a block with more than
26857 one successor with a block with no successors, remove any BARRIER
26858 after the second block.
26859
26860 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26861
26862 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26863
26864 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26865
26866 PR target/59652
26867 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26868 for 14-bit register offsets when INT14_OK_STRICT is false.
26869
26870 2014-01-07 Roland Stigge <stigge@antcom.de>
26871 Michael Meissner <meissner@linux.vnet.ibm.com>
26872
26873 PR 57386/target
26874 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26875 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26876
26877 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26878
26879 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26880 -mcpu.
26881
26882 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26883
26884 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26885 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26886 rtx is const0_rtx or not.
26887
26888 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26889
26890 PR target/58115
26891 * target-globals.c (save_target_globals): Remove this_fn_optab
26892 handling.
26893 * toplev.c: Include optabs.h.
26894 (target_reinit): Temporarily restore the global options if another
26895 set of options are in force.
26896
26897 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26898
26899 PR rtl-optimization/58668
26900 * cfgcleanup.c (flow_find_cross_jump): Don't count
26901 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26902 to determine what is counted.
26903 (flow_find_head_matching_sequence): Use active_insn_p to determine
26904 what is counted.
26905 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26906 counting change.
26907 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26908 determine what is counted.
26909
26910 PR tree-optimization/59643
26911 * tree-predcom.c (split_data_refs_to_components): If one dr is
26912 read and one write, determine_offset fails and the write isn't
26913 in the bad component, just put the read into the bad component.
26914
26915 2014-01-07 Mike Stump <mikestump@comcast.net>
26916 Jakub Jelinek <jakub@redhat.com>
26917
26918 PR pch/59436
26919 * tree-core.h (struct tree_optimization_option): Change optabs
26920 type from unsigned char * to void *.
26921 * optabs.c (init_tree_optimization_optabs): Adjust
26922 TREE_OPTIMIZATION_OPTABS initialization.
26923
26924 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26925
26926 PR target/59644
26927 * config/i386/i386.h (struct machine_function): Add
26928 no_drap_save_restore field.
26929 * config/i386/i386.c (ix86_save_reg): Use
26930 !cfun->machine->no_drap_save_restore instead of
26931 crtl->stack_realign_needed.
26932 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26933 this function clears frame_pointer_needed. Set
26934 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26935 and DRAP reg is needed.
26936
26937 2014-01-06 Marek Polacek <polacek@redhat.com>
26938
26939 PR c/57773
26940 * doc/implement-c.texi: Mention that other integer types are
26941 permitted as bit-field types in strictly conforming mode.
26942
26943 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26944
26945 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26946 is newly allocated.
26947
26948 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26949
26950 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26951
26952 2014-01-06 Martin Jambor <mjambor@suse.cz>
26953
26954 PR ipa/59008
26955 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26956 to int.
26957 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26958
26959 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26960
26961 PR debug/59350
26962 PR debug/59510
26963 * var-tracking.c (add_stores): Preserve the value of the source even if
26964 we don't record the store.
26965
26966 2014-01-06 Terry Guo <terry.guo@arm.com>
26967
26968 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26969
26970 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26971
26972 PR bootstrap/59541
26973 * config/darwin.c (darwin_function_section): Adjust return values to
26974 correspond to optimisation changes made in r206070.
26975
26976 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26977
26978 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26979 from prefetch_block tune setting.
26980 (nocona_cost): Correct size of prefetch block to 64.
26981
26982 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26983
26984 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26985 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26986 used to save the static chain register in the computation of the offset
26987 from which the FP registers need to be restored.
26988
26989 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26990
26991 PR tree-optimization/59519
26992 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26993 ICE if get_current_def (current_new_name) is already non-NULL, as long
26994 as it is a phi result of some other phi in *new_exit_bb that has
26995 the same argument.
26996
26997 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26998 or vmovdqu* for misaligned_operand.
26999 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27000 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27001 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27002 aligned_mem for AVX512F masked aligned load and store builtins and for
27003 non-temporal moves.
27004
27005 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27006
27007 PR tree-optimization/59651
27008 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27009 Address range for negative step should be added by TYPE_SIZE_UNIT.
27010
27011 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27012
27013 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27014 overlapping registers also for registers other than the stack pointer.
27015
27016 2014-01-03 Marek Polacek <polacek@redhat.com>
27017
27018 PR other/59661
27019 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27020 __builtin_FILE.
27021
27022 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27023
27024 PR target/59625
27025 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27026 asm goto as jump.
27027
27028 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27029 (push splitter): Use <P:MODE_SIZE> instead of
27030 GET_MODE_SIZE (<P:MODE>mode).
27031 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27032 (mov -1, reg peephole2): Likewise.
27033 * config/i386/sse.md (*mov<mode>_internal,
27034 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27035 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27036 *<code><mode>3, *andnot<mode>3<mask_name>,
27037 <mask_codefor><code><mode>3<mask_name>): Likewise.
27038 * config/i386/subst.md (mask_mode512bit_condition,
27039 sd_mask_mode512bit_condition): Likewise.
27040
27041 2014-01-02 Xinliang David Li <davidxl@google.com>
27042
27043 PR tree-optimization/59303
27044 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27045 (dump_predicates): Better output format.
27046 (pred_equal_p): New function.
27047 (is_neq_relop_p): Ditto.
27048 (is_neq_zero_form_p): Ditto.
27049 (pred_expr_equal_p): Ditto.
27050 (pred_neg_p): Ditto.
27051 (simplify_pred): Ditto.
27052 (simplify_preds_2): Ditto.
27053 (simplify_preds_3): Ditto.
27054 (simplify_preds_4): Ditto.
27055 (simplify_preds): Ditto.
27056 (push_pred): Ditto.
27057 (push_to_worklist): Ditto.
27058 (get_pred_info_from_cmp): Ditto.
27059 (is_degenerated_phi): Ditto.
27060 (normalize_one_pred_1): Ditto.
27061 (normalize_one_pred): Ditto.
27062 (normalize_one_pred_chain): Ditto.
27063 (normalize_preds): Ditto.
27064 (normalize_cond_1): Remove function.
27065 (normalize_cond): Ditto.
27066 (is_gcond_subset_of): Ditto.
27067 (is_subset_of_any): Ditto.
27068 (is_or_set_subset_of): Ditto.
27069 (is_and_set_subset_of): Ditto.
27070 (is_norm_cond_subset_of): Ditto.
27071 (pred_chain_length_cmp): Ditto.
27072 (convert_control_dep_chain_into_preds): Type change.
27073 (find_predicates): Ditto.
27074 (find_def_preds): Ditto.
27075 (destroy_predicates_vecs): Ditto.
27076 (find_matching_predicates_in_rest_chains): Ditto.
27077 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27078 (is_pred_expr_subset): Ditto.
27079 (is_pred_chain_subset_of): Ditto.
27080 (is_included_in): Ditto.
27081 (is_superset_of): Ditto.
27082
27083 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27084
27085 Update copyright years.
27086
27087 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27088
27089 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27090 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27091 config/arc/arc.md, config/arc/arc.opt,
27092 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27093 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27094 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27095 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27096 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27097 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27098 vtable-verify.c, vtable-verify.h: Use the standard form for the
27099 copyright notice.
27100
27101 2014-01-02 Tobias Burnus <burnus@net-b.de>
27102
27103 * gcc.c (process_command): Update copyright notice dates.
27104 * gcov-dump.c: Ditto.
27105 * gcov.c: Ditto.
27106 * doc/cpp.texi: Bump @copying's copyright year.
27107 * doc/cppinternals.texi: Ditto.
27108 * doc/gcc.texi: Ditto.
27109 * doc/gccint.texi: Ditto.
27110 * doc/gcov.texi: Ditto.
27111 * doc/install.texi: Ditto.
27112 * doc/invoke.texi: Ditto.
27113
27114 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27115
27116 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27117
27118 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27119
27120 * config/i386/sse.md (*mov<mode>_internal): Guard
27121 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27122
27123 PR rtl-optimization/59647
27124 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27125 new_rtx into UNSIGNED_FLOAT rtxes.
27126 \f
27127 Copyright (C) 2014 Free Software Foundation, Inc.
27128
27129 Copying and distribution of this file, with or without modification,
27130 are permitted in any medium without royalty provided the copyright
27131 notice and this notice are preserved.