reg-stack.c: Include rtl-iter.h.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * reg-stack.c: Include rtl-iter.h.
4 (subst_stack_regs_in_debug_insn): Delete.
5 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6 instead of for_each_rtx.
7
8 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9
10 * lower-subreg.c (find_decomposable_subregs): Turn from being
11 a for_each_rtx callback to being a function that examines each
12 subrtx itself. Remove handling of null rtxes.
13 (decompose_multiword_subregs): Update accordingly.
14
15 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16
17 * lower-subreg.c (adjust_decomposed_uses): Delete.
18 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
19 Remove handling of null rtxes.
20
21 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22
23 * lower-subreg.c: Include rtl-iter.h.
24 (resolve_subreg_use): Turn from being a for_each_rtx callback
25 to being a function that examines each subrtx itself. Remove
26 handling of null rtxes.
27 (resolve_reg_notes, resolve_simple_move): Update accordingly.
28 (decompose_multiword_subregs): Likewise.
29
30 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
31
32 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
33 to being a function that examines each subrtx itself.
34 (simplify_using_condition, simplify_using_initial_values): Update
35 accordingly.
36
37 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
38
39 * loop-iv.c: Include rtl-iter.h.
40 (find_single_def_src): New function.
41 (replace_single_def_regs): Turn from being a for_each_rtx callback
42 to being a function that examines each subrtx itself.
43 (replace_in_expr, simplify_using_initial_values): Update accordingly.
44
45 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
46
47 * jump.c (eh_returnjump_p_1): Delete.
48 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
49 Remove handling of null rtxes.
50
51 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
52
53 * jump.c: Include rtl-iter.h.
54 (returnjump_p_1): Delete.
55 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
56 Remove handling of null rtxes.
57
58 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
59
60 * ira.c: Include rtl-iter.h.
61 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
62 to being a function that examines each subrtx itself. Remove
63 handling of null rtxes.
64 (update_equiv_regs): Update call accordingly.
65
66 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
67
68 * fwprop.c: Include rtl-iter.h.
69 (varying_mem_p): Turn from being a for_each_rtx callback to being
70 a function that examines each subrtx itself.
71 (propagate_rtx): Update accordingly.
72
73 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
74
75 * function.c: Include rtl-iter.h
76 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
77 callback to being a function that examines each subrtx itself.
78 Return the changed flag.
79 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
80 (instantiate_virtual_regs): Update calls accordingly.
81
82 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
83
84 * final.c: Include rtl-iter.h.
85 (mark_symbol_ref_as_used): Delete.
86 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
87 for_each_rtx.
88
89 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
90
91 * emit-rtl.c: Include rtl-iter.h.
92 (find_auto_inc): Turn from being a for_each_rtx callback to being
93 a function that examines each subrtx itself. Assume the first operand
94 to an RTX_AUTOINC is the automodified register.
95 (try_split): Update call accordingly.
96
97 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
98
99 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
100 Return a bool, inverting the result so that 0/false means "not ok".
101 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
102 subrtxes of a CONST.
103 (mem_loc_descriptor, add_const_value_attribute)
104 (resolve_addr_in_expr): Update calls accordingly.
105
106 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
107
108 * dwarf2out.c: Include rtl-iter.h.
109 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
110 Remove unused data parameter. Return a bool, inverting the result
111 so that 0/false means "not ok".
112 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
113 instead of for_each_rtx.
114
115 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
116
117 * dse.c: Include rtl-iter.h.
118 (check_mem_read_rtx): Change void * parameter to real type.
119 Remove return value.
120 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
121 for_each_rtx. Don't handle null rtxes.
122
123 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
124
125 * df-problems.c: Include rtl-iter.h.
126 (find_memory): Turn from being a for_each_rtx callback to being
127 a function that examines each subrtx itself. Continue to look for
128 volatile references even after a nonvolatile one has been found.
129 (can_move_insns_across): Update calls accordingly.
130
131 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
132
133 * ddg.c (walk_mems_2, walk_mems_1): Delete.
134 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
135 to iterate over subrtxes. Return a bool rather than an int.
136
137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
138
139 * ddg.c: Include rtl-iter.h.
140 (mark_mem_use_1): Rename to...
141 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
142 instead of for_each_rtx.
143 (mem_read_insn_p): Update accordingly.
144
145 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
146
147 * cse.c (change_cc_mode_args): Delete.
148 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
149 a function that examines each subrtx itself. Take the fields of
150 change_cc_mode_args as argument and return void.
151 (cse_change_cc_mode_insn): Update calls accordingly.
152
153 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
154
155 * cse.c (is_dead_reg): Change argument to const_rtx.
156 (dead_debug_insn_data): Delete.
157 (is_dead_debug_insn): Expand commentary. Turn from being a
158 for_each_rtx callback to being a function that examines
159 each subrtx itself. Take the fields of dead_debug_insn_data
160 as argument.
161 (delete_trivially_dead_insns): Update call accordingly.
162
163 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
164
165 * cse.c (check_for_label_ref): Move earlier in file. Turn from
166 being a for_each_rtx callback to being a function that examines
167 each subrtx itself.
168 (cse_extended_basic_block): Update call accordingly.
169
170 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
171
172 * cse.c (check_dependence_data): Delete.
173 (check_dependence): Change from being a for_each_rtx callback to being
174 a function that examines all subrtxes itself. Don't handle null rtxes.
175 (invalidate): Update call accordingly.
176
177 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
178
179 * cse.c: Include rtl-iter.h.
180 (approx_reg_cost_1): Delete.
181 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
182 Don't handle null rtxes.
183
184 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
185
186 * cfgcleanup.c: Include rtl-iter.h.
187 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
188 to being a function that examines each subrtx itself.
189 (thread_jump): Update accordingly.
190
191 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
192
193 * combine-stack-adj.c: Include rtl-iter.h.
194 (record_stack_refs_data): Delete.
195 (record_stack_refs): Turn from being a for_each_rtx callback
196 to being a function that examines each subrtx itself.
197 Take a pointer to the reflist. Invert sense of return value
198 so that true means success and false means failure. Don't
199 handle null rtxes.
200 (combine_stack_adjustments_for_block): Update accordingly.
201
202 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
203
204 * combine.c (record_truncated_value): Turn from being a for_each_rtx
205 callback to a function that takes an rtx and returns a bool
206 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
207 for_each_rtx.
208
209 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
210
211 * combine.c: Include rtl-iter.h.
212 (unmentioned_reg_p_1): Delete.
213 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
214 Don't handle null rtxes.
215
216 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
217
218 * calls.c: Include rtl-iter.h.
219 (internal_arg_pointer_based_exp_1): Delete.
220 (internal_arg_pointer_based_exp): Take a const_rtx.
221 Use FOR_EACH_SUBRTX to iterate over subrtxes.
222
223 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
224
225 * caller-save.c: Include rtl-iter.h.
226 (add_used_regs_1): Delete.
227 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
228 to iterate over subrtxes. Assert that any remaining pseudos
229 have been spilled.
230
231 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
232
233 * bt-load.c: Include rtl-iter.h.
234 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
235 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
236 to iterate over subrtxes.
237 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
238 find_btr_use rather than btr_referenced_p.
239
240 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
241
242 * alias.c: Include rtl-iter.h.
243 (refs_newer_value_cb): Delete.
244 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
245
246 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
247
248 * rtl-iter.h: New file.
249 * rtlanal.c: Include it.
250 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
251 (generic_subrtx_iterator <T>::add_single_to_queue)
252 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
253 (generic_subrtx_iterator <T>::free_array): New functions.
254 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
255 (generic_subrtx_iterator <const_rtx_accessor>)
256 (generic_subrtx_iterator <rtx_var_accessor>
257 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
258 (setup_reg_subrtx_bounds): New function.
259 (init_rtlanal): Call it.
260
261 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
262
263 PR target/62261
264 * config/sh/sh.md (ashlsi3): Handle negative shift count for
265 TARGET_SHMEDIA.
266 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
267
268 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
269
270 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
271
272 2014-08-27 David Malcolm <dmalcolm@redhat.com>
273
274 * rtl.h (JUMP_LABEL_AS_INSN): New.
275
276 2014-08-27 David Malcolm <dmalcolm@redhat.com>
277
278 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
279 rtx_expr_list **.
280 (alloc_EXPR_LIST): Strengthen return type from rtx to
281 rtx_expr_list *.
282 (remove_free_EXPR_LIST_node): Likewise for param.
283 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
284 from rtx to rtx_expr_list *.
285 * sched-int.h (struct deps_desc): Strengthen fields
286 "pending_read_mems" and "pending_write_mems" from rtx to
287 rtx_expr_list *.
288
289 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
290 rtx to rtx_expr_list *.
291 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
292 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
293 rtx_expr_list **.
294 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
295 from rtx to rtx_expr_list *.
296 * loop-iv.c (simplify_using_initial_values): Strengthen local
297 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
298 "pnote_next" from rtx * to rtx_expr_list **.
299 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
300 param "exprp" from rtx * to rtx_expr_list **.
301 (add_insn_mem_dependence): Strengthen local "mem_list" from
302 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
303 to rtx_expr_list *.
304 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
305 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
306 param "old_mems_p" from rtx * to rtx_expr_list **.
307 * var-tracking.c (struct adjust_mem_data): Strengthen field
308 "side_effects" from rtx to rtx_expr_list *.
309 (adjust_insn): Replace NULL_RTX with NULL when assigning to
310 rtx_expr_list *.
311 (prepare_call_arguments): Likewise.
312
313 2014-08-27 David Malcolm <dmalcolm@redhat.com>
314
315 * function.h (struct rtl_data): Strengthen field
316 "x_stack_slot_list" from rtx to rtx_expr_list *.
317
318 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
319 when assigning to stack_slot_list.
320
321 2014-08-27 David Malcolm <dmalcolm@redhat.com>
322
323 * function.h (struct rtl_data): Strengthen field
324 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
325 * rtl.h (remove_node_from_expr_list): Strengthen second param from
326 rtx * to rtx_expr_list **.
327
328 * cfgbuild.c (make_edges): In loop over
329 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
330 rtx_expr_list *, and use methods of the latter class to clarify
331 the code.
332 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
333 rtx_expr_list *, and use methods of the latter class to clarify
334 the code.
335 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
336 * reload1.c (set_initial_label_offsets): Likewise for local "x".
337 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
338 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
339 to rtx_expr_list *. Use methods of the latter class to clarify
340 the code.
341
342 2014-08-27 David Malcolm <dmalcolm@redhat.com>
343
344 * function.h (struct expr_status): Strengthen field
345 "x_forced_labels" from rtx to rtx_expr_list *.
346
347 * cfgbuild.c (make_edges): Split local "x" into two locals,
348 strengthening one from rtx to rtx_expr_list *, and using methods
349 of said class.
350 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
351 loop over forced_labels, introduce strengthen it from rtx to
352 rtx_expr_list *, using methods to clarify the code.
353 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
354 to rtx_expr_list *, using methods of said class to clarify the
355 code.
356 * reload1.c (set_initial_label_offsets): Split local "x" into two
357 per-loop variables, strengthening the first from rtx to
358 rtx_expr_list * and using methods.
359
360 2014-08-27 David Malcolm <dmalcolm@redhat.com>
361
362 * coretypes.h (class rtx_expr_list): Add forward declaration.
363 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
364 * gengenrtl.c (special_rtx): Add EXPR_LIST.
365 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
366 invariant: GET_CODE (X) == EXPR_LIST.
367 (is_a_helper <rtx_expr_list *>::test): New.
368 (rtx_expr_list::next): New.
369 (rtx_expr_list::element): New.
370 (gen_rtx_EXPR_LIST): New.
371
372 2014-08-27 David Malcolm <dmalcolm@redhat.com>
373
374 * varasm.c (mark_constants): Convert a GET_CODE check into a
375 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
376 Use methods of rtx_sequence to clarify the code.
377
378 2014-08-27 David Malcolm <dmalcolm@redhat.com>
379
380 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
381 local "seq" via a checked cast, and use methods of rtx_sequence
382 to simplify the code.
383
384 2014-08-27 David Malcolm <dmalcolm@redhat.com>
385
386 * resource.c (mark_referenced_resources): Strengthen local
387 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
388 using methods of rtx_sequence to clarify the code.
389 (find_dead_or_set_registers): Within the switch statement, convert
390 a GET_CODE check to a dyn_cast, introducing local "seq". Within
391 the JUMP_P handling, introduce another local "seq", adding a
392 checked cast to rtx_sequence *. In both cases, use methods of
393 rtx_sequence to clarify the code.
394 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
395 via a checked cast, and use methods of rtx_sequence to simplify
396 the code.
397
398 2014-08-27 David Malcolm <dmalcolm@redhat.com>
399
400 * reorg.c (redundant_insn): In two places in the function, replace
401 a check of GET_CODE with a dyn_cast, introducing local "seq", and
402 usings methods of rtx_sequence to clarify the code.
403
404 2014-08-27 David Malcolm <dmalcolm@redhat.com>
405
406 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
407 local "seq" with a checked cast, and use methods of rtx_sequence
408 to clarify the code.
409
410 2014-08-27 David Malcolm <dmalcolm@redhat.com>
411
412 * function.c (contains): Introduce local "seq" for PATTERN (insn),
413 with a checked cast, in the region for where we know it's a
414 SEQUENCE. Use methods of rtx_sequence.
415
416 2014-08-27 David Malcolm <dmalcolm@redhat.com>
417
418 * final.c (get_attr_length_1): Replace GET_CODE check with a
419 dyn_cast, introducing local "seq" and the use of methods of
420 rtx_sequence.
421 (shorten_branches): Likewise, introducing local "body_seq".
422 Strengthen local "inner_insn" from rtx to rtx_insn *.
423 (reemit_insn_block_notes): Replace GET_CODE check with a
424 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
425 Use methods of rtx_sequence.
426 (final_scan_insn): Likewise, introducing local "seq" for when
427 "body" is known to be a SEQUENCE, using its methods.
428
429 2014-08-27 David Malcolm <dmalcolm@redhat.com>
430
431 * except.c (can_throw_external): Strengthen local "seq" from rtx
432 to rtx_sequence *. Use methods of rtx_sequence.
433 (insn_nothrow_p): Likewise.
434
435 2014-08-27 David Malcolm <dmalcolm@redhat.com>
436
437 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
438 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
439 Use methods of rtx_sequence.
440 (scan_trace): Likewise for local "pat".
441
442 2014-08-27 David Malcolm <dmalcolm@redhat.com>
443
444 * coretypes.h (class rtx_sequence): Add forward declaration.
445 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
446 invariant: GET_CODE (X) == SEQUENCE.
447 (is_a_helper <rtx_sequence *>::test): New.
448 (is_a_helper <const rtx_sequence *>::test): New.
449 (rtx_sequence::len): New.
450 (rtx_sequence::element): New.
451 (rtx_sequence::insn): New.
452
453 2014-08-27 David Malcolm <dmalcolm@redhat.com>
454
455 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
456 rtx_insn_list **.
457 (alloc_INSN_LIST): Strengthen return type from rtx to
458 rtx_insn_list *.
459 (copy_INSN_LIST): Likewise for return type and param.
460 (concat_INSN_LIST): Likewise for both params and return type.
461 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
462 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
463 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
464 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
465
466 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
467 "implicit_sets", "control_uses", "clobbers" from rtx to
468 rtx_insn_list *.
469 (struct deps_desc): Likewise for fields "pending_read_insns",
470 "pending_write_insns", "pending_jump_insns",
471 "last_pending_memory_flush", "last_function_call",
472 "last_function_call_may_noreturn", "sched_before_next_call",
473 "sched_before_next_jump".
474 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
475 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
476
477 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
478 from rtx to rtx_insn_list *.
479 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
480 rtx_insn_list *.
481
482 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
483 to rtx_insn_list **.
484 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
485 rtx_insn_list *.
486 (queue_insn): Likewise for local "link".
487 (struct haifa_saved_data): Strengthen field "insn_queue" from
488 rtx * to rtx_insn_list **.
489 (save_backtrack_point): Update allocation of save->insn_queue to
490 reflect the strengthening of elements from rtx to rtx_insn_list *.
491 (queue_to_ready): Strengthen local "link" from rtx to
492 rtx_insn_list *; use methods "next" and "insn" when traversing the
493 list.
494 (early_queue_to_ready): Likewise for locals "link", "next_link",
495 "prev_link".
496 (schedule_block): Update allocation of insn_queue to reflect the
497 strengthening of elements from rtx to rtx_insn_list *. Strengthen
498 local "link" from rtx to rtx_insn_list *, and use methods when
499 working it.
500 (add_to_speculative_block): Strengthen locals "twins" and
501 "next_node" from rtx to rtx_insn_list *, and use methods when
502 working with them. Strengthen local "twin" from rtx to
503 rtx_insn *, eliminating a checked cast.
504 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
505 from rtx to rtx_insn_list *, and use methods when working with
506 them.
507
508 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
509 from rtx to rtx_insn_list *, adding a checked cast.
510 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
511 rtx_insn_list **.
512 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
513 "newlink" from rtx to rtx_insn_list *. Strengthen local
514 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
515 from rtx to rtx_insn *.
516 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
517 from rtx to rtx_insn_list *. Use methods of the latter class.
518 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
519 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
520 (remove_free_INSN_LIST_node): Strengthen return type and local
521 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
522 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
523 rtx_insn_list *, using "insn" method.
524
525 * sched-deps.c (add_dependence_list): Strengthen param "list"
526 from rtx to rtx_insn_list *, and use methods when working with it.
527 (add_dependence_list_and_free): Strengthen param "listp" from
528 rtx * to rtx_insn_list **.
529 (remove_from_dependence_list): Strenghten param "listp" from rtx *
530 to rtx_insn_list **, and use methods when working with *listp.
531 (remove_from_both_dependence_lists): Strengthen param "listp" from
532 rtx * to rtx_insn_list **
533 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
534 to rtx_insn_list **. Eliminate local "link", in favor of two new
535 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
536 respectively.
537 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
538 by introducing local "cond_deps".
539 (remove_from_deps): Strengthen param "insn" from rtx to
540 rtx_insn *.
541
542 * sched-rgn.c (concat_insn_mem_list): Strengthen param
543 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
544 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
545 Use methods of rtx_insn_list.
546
547 * store-motion.c (struct st_expr): Strengthen fields
548 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
549 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
550 rtx_insn_list *.
551 (find_moveable_store): Split out "tmp" into multiple more-tightly
552 scoped locals. Use methods of rtx_insn_list *.
553 (compute_store_table): Strengthen local "tmp" from rtx to
554 rtx_insn *. Use methods of rtx_insn_list *.
555
556 2014-08-27 David Malcolm <dmalcolm@redhat.com>
557
558 * coretypes.h (class rtx_insn_list): Add forward declaration.
559 * rtl.h (class rtx_insn_list): New subclass of rtx_def
560 (is_a_helper <rtx_insn_list *>::test): New.
561 (rtx_insn_list::next): New.
562 (rtx_insn_list::insn): New.
563 (gen_rtx_INSN_LIST): Add prototype.
564 * emit-rtl.c (gen_rtx_INSN_LIST): New.
565 * gengenrtl.c (special_rtx): Add INSN_LIST.
566
567 2014-08-27 David Malcolm <dmalcolm@redhat.com>
568
569 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
570 "prev" from rtx to rtx_insn *.
571
572 2014-08-27 David Malcolm <dmalcolm@redhat.com>
573
574 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
575 functions. Require merely an rtx for now, not an rtx_insn *.
576 (BLOCK_FOR_INSN): Likewise.
577 (INSN_LOCATION): Likewise.
578 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
579
580 2014-08-27 David Malcolm <dmalcolm@redhat.com>
581
582 * rtl.h (PATTERN): Convert this macro into a pair of inline
583 functions, for now, requiring const_rtx and rtx.
584
585 2014-08-27 David Malcolm <dmalcolm@redhat.com>
586
587 * target.def (unwind_emit): Strengthen param "insn" from rtx to
588 rtx_insn *.
589 (final_postscan_insn): Likewise.
590 (adjust_cost): Likewise.
591 (adjust_priority): Likewise.
592 (variable_issue): Likewise.
593 (macro_fusion_pair_p): Likewise.
594 (dfa_post_cycle_insn): Likewise.
595 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
596 (first_cycle_multipass_issue): Likewise.
597 (dfa_new_cycle): Likewise.
598 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
599 (speculate_insn): Likewise for param "insn".
600 (gen_spec_check): Likewise for params "insn" and "label".
601 (get_insn_spec_ds): Likewise for param "insn".
602 (get_insn_checked_ds): Likewise.
603 (dispatch_do): Likewise.
604 (dispatch): Likewise.
605 (cannot_copy_insn_p): Likewise.
606 (invalid_within_doloop): Likewise.
607 (legitimate_combined_insn): Likewise.
608 (needed): Likewise.
609 (after): Likewise.
610
611 * doc/tm.texi: Automatically updated to reflect changes to
612 target.def.
613
614 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
615 working with insn.
616 (schedule_block): Likewise.
617 (sched_init): Likewise.
618 (sched_speculate_insn): Strengthen param "insn" from rtx to
619 rtx_insn *.
620 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
621 working with insn.
622 * hooks.c (hook_bool_rtx_true): Rename to...
623 hook_bool_rtx_insn_true): ...this, and strengthen first param from
624 rtx to rtx_insn *.
625 (hook_constcharptr_const_rtx_null): Rename to...
626 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
627 first param from const_rtx to const rtx_insn *.
628 (hook_bool_rtx_int_false): Rename to...
629 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
630 param from rtx to rtx_insn *.
631 (hook_void_rtx_int): Rename to...
632 (hook_void_rtx_insn_int): ...this, and strengthen first param from
633 rtx to rtx_insn *.
634
635 * hooks.h (hook_bool_rtx_true): Rename to...
636 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
637 rtx to rtx_insn *.
638 (hook_bool_rtx_int_false): Rename to...
639 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
640 param from rtx to rtx_insn *.
641 (hook_void_rtx_int): Rename to...
642 (hook_void_rtx_insn_int): ...this, and strengthen first param from
643 rtx to rtx_insn *.
644 (hook_constcharptr_const_rtx_null): Rename to...
645 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
646 first param from const_rtx to const rtx_insn *.
647
648 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
649 and local "prev" from rtx to rtx_insn *.
650
651 * sched-int.h (sched_speculate_insn): Strengthen first param from
652 rtx to rtx_insn *.
653
654 * sel-sched.c (create_speculation_check): Likewise for local "label".
655 * targhooks.c (default_invalid_within_doloop): Strengthen param
656 "insn" from const_rtx to const rtx_insn *.
657 * targhooks.h (default_invalid_within_doloop): Strengthen param
658 from const_rtx to const rtx_insn *.
659
660 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
661 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
662
663 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
664 "insn".
665 (arc_invalid_within_doloop): Likewise, with const.
666
667 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
668 (arm_cannot_copy_insn_p): Likewise for param "insn".
669 (arm_unwind_emit): Likewise.
670
671 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
672 "dep_insn".
673
674 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
675 (c6x_variable_issue): Likewise. Removed now-redundant checked
676 cast.
677 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
678
679 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
680 Likewise for param "insn".
681 (epiphany_mode_after): Likewise.
682 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
683 params "insn", "dep_insn".
684 (epiphany_mode_needed): Likewise for param "insn".
685 (epiphany_mode_after): Likewise.
686
687 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
688 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
689 (ix86_avx_u128_mode_needed): Likewise.
690 (ix86_i387_mode_needed): Likewise.
691 (ix86_mode_needed): Likewise.
692 (ix86_avx_u128_mode_after): Likewise.
693 (ix86_mode_after): Likewise.
694 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
695 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
696 (ix86_adjust_priority): Likewise for param "insn".
697 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
698 (do_dispatch): Likewise.
699 (has_dispatch): Likewise.
700 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
701
702 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
703 reflect renaming of default hook implementation from
704 hook_constcharptr_const_rtx_null to
705 hook_constcharptr_const_rtx_insn_null.
706 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
707 rtx to rtx_insn *.
708 (ia64_variable_issue): Likewise for param "insn".
709 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
710 (ia64_dfa_new_cycle): Likewise.
711 (ia64_get_insn_spec_ds): Likewise.
712 (ia64_get_insn_checked_ds): Likewise.
713 (ia64_speculate_insn): Likewise.
714 (ia64_gen_spec_check): Likewise for params "insn", "label".
715 (ia64_asm_unwind_emit): Likewise for param "insn".
716
717 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
718
719 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
720 "insn", "def_insn".
721 (m68k_sched_variable_issue): Likewise for param "insn".
722
723 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
724 "def_insn".
725
726 * config/microblaze/microblaze.c (microblaze_adjust_cost):
727 Likewise for params "insn", "dep".
728
729 * config/mips/mips.c (mips_adjust_cost): Likewise.
730 (mips_variable_issue): Likewise for param "insn".
731 (mips_final_postscan_insn): Likewise.
732
733 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
734 for params "insn", "dep".
735
736 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
737 "dep_insn".
738 (pa_adjust_priority): Likewise for param "insn".
739
740 * config/picochip/picochip.c (picochip_sched_adjust_cost):
741 Likewise for params "insn", "dep_insn".
742
743 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
744 param "insn".
745 (rs6000_variable_issue): Likewise.
746 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
747 (rs6000_debug_adjust_cost): Likewise.
748 (rs6000_adjust_priority): Likewise for param "insn".
749 (rs6000_use_sched_lookahead_guard): Likewise.
750 (get_next_active_insn): Likewise for return type and both params.
751 (redefine_groups): Likewise for params "prev_head_insn", "tail"
752 and locals "insn", "next_insn".
753 (pad_groups): Likewise.
754
755 * config/s390/s390.c (s390_adjust_priority): Likewise for param
756 "insn".
757 (s390_cannot_copy_insn_p): Likewise.
758 (s390_sched_variable_issue): Likewise for third param, eliminating
759 checked cast.
760 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
761 default hook implementation from hook_constcharptr_const_rtx_null
762 to hook_constcharptr_const_rtx_insn_null.
763
764 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
765 from rtx to rtx_insn *.
766 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
767 (sh_variable_issue): Likewise for param "insn".
768 (sh_dfa_new_cycle): Likewise.
769 (sh_mode_needed): Likewise.
770 (sh_mode_after): Likewise.
771
772 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
773 params "insn", "dep_insn".
774 (hypersparc_adjust_cost): Likewise.
775 (sparc_adjust_cost): Likewise.
776
777 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
778 param, eliminated checked cast.
779 (spu_sched_adjust_cost): Likewise for first and third params.
780
781 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
782 params "insn" and "dep_insn" from rtx to rtx_insn *.
783
784 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
785
786 2014-08-27 David Malcolm <dmalcolm@redhat.com>
787
788 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
789 (set_is_load_p): ...this, updating to work on a SET pattern rather
790 than an insn.
791 (is_store_insn): Rename to...
792 (set_is_store_p): ...this, updating to work on a SET pattern
793 rather than an insn.
794 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
795 top of function to where it is needed. Rewrite the bogus
796 condition that checks for "insn" and "dep" being PARALLEL to
797 instead use single_set, introducing locals "insn_set" and
798 "dep_set". Given that we only ever returned "cost" for a non-pair
799 of SETs, bail out early if we don't have a pair of SET.
800 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
801 use the new locals "insn_set" and "dep_set", and update calls to
802 is_load_insn and is_store_insn to be calls to set_is_load_p and
803 set_is_store_p.
804
805 2014-08-27 Guozhi Wei <carrot@google.com>
806
807 PR target/62262
808 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
809 amount before using it.
810
811 2014-08-27 Richard Biener <rguenther@suse.de>
812
813 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
814 get_maxval_strlen inside a more useful API.
815 (gimple_fold_builtin_with_strlen): Remove and fold into ...
816 (gimple_fold_builtin): ... caller.
817 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
818 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
819 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
820 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
821 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
822 gimple_fold_builtin_sprintf): Adjust to compute maxval
823 themselves.
824
825 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
826
827 PR other/62248
828 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
829
830 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
832 Anna Tikhonova <anna.tikhonova@intel.com>
833 Ilya Tocar <ilya.tocar@intel.com>
834 Andrey Turetskiy <andrey.turetskiy@intel.com>
835 Ilya Verbin <ilya.verbin@intel.com>
836 Kirill Yukhin <kirill.yukhin@intel.com>
837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
838
839 * config/i386/sse.md
840 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
841 Use `concat_tg_mode' attribute to determine asm register size.
842
843 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
845 Anna Tikhonova <anna.tikhonova@intel.com>
846 Ilya Tocar <ilya.tocar@intel.com>
847 Andrey Turetskiy <andrey.turetskiy@intel.com>
848 Ilya Verbin <ilya.verbin@intel.com>
849 Kirill Yukhin <kirill.yukhin@intel.com>
850 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
851
852 * config/i386/sse.md
853 (define_mode_iterator VI48_AVX512VL): New.
854 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
855 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
856 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
857 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
858 with VI1): Change mode iterator.
859 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
860 with VI_ULOADSTORE_BW_AVX512VL): New.
861 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
862 with VI_ULOADSTORE_F_AVX512VL): Ditto.
863 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
864 with VI1): Change mode iterator.
865 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
866 with VI_ULOADSTORE_BW_AVX512VL): New.
867 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
868 with VI_ULOADSTORE_F_AVX512VL): Ditto.
869 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
870 with VI1): Change mode iterator.
871 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
872 with VI_ULOADSTORE_BW_AVX512VL): New.
873 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
874 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
875 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
876 (define_insn "<avx512>_storedqu<mode>_mask" with
877 VI48_AVX512VL): New.
878 (define_insn "<avx512>_storedqu<mode>_mask" with
879 VI12_AVX512VL): Ditto.
880
881 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
882 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
883 Anna Tikhonova <anna.tikhonova@intel.com>
884 Ilya Tocar <ilya.tocar@intel.com>
885 Andrey Turetskiy <andrey.turetskiy@intel.com>
886 Ilya Verbin <ilya.verbin@intel.com>
887 Kirill Yukhin <kirill.yukhin@intel.com>
888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
889
890 * config/i386/sse.md
891 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
892 (define_mode_iterator VI48_AVX512BW): New.
893 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
894 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
895 with VI48_AVX2_48_AVX512F): New.
896 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
897 with VI2_AVX512VL): Ditto.
898
899 2014-08-27 Richard Biener <rguenther@suse.de>
900
901 PR middle-end/62239
902 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
903 (fold_builtin_3): Do not fold strcat_chk here.
904 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
905 from builtins.c.
906 (gimple_fold_builtin): Fold strcat_chk here.
907
908 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
909
910 * dwarf2out.h (dwarf2out_decl): Remove prototype.
911 * dwarf2out.c (dwarf2out_decl): Make static.
912
913 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
914
915 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
916
917 2014-08-26 David Malcolm <dmalcolm@redhat.com>
918
919 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
920 from rtx to rtx_insn *.
921 (cselib_lookup_from_insn): Likewise for final param.
922 (cselib_subst_to_values_from_insn): Likewise.
923 (cselib_add_permanent_equiv): Likewise.
924
925 * cselib.c (cselib_current_insn): Likewise for this variable.
926 (cselib_subst_to_values_from_insn): Likewise for param "insn".
927 (cselib_lookup_from_insn): Likewise.
928 (cselib_add_permanent_equiv): Likewise for param "insn" and local
929 "save_cselib_current_insn".
930 (cselib_process_insn): Replace use of NULL_RTX with NULL.
931
932 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
933 from rtx to rtx_insn *.
934
935 2014-08-26 David Malcolm <dmalcolm@redhat.com>
936
937 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
938 rtx_insn *.
939
940 2014-08-26 David Malcolm <dmalcolm@redhat.com>
941
942 * df.h (df_dump_insn_problem_function): Strengthen first param of
943 this callback from const_rtx to const rtx_insn *.
944 (struct df_insn_info): Strengthen field "insn" from rtx to
945 rtx_insn *.
946 (DF_REF_INSN): Eliminate this function, reinstating the older
947 macro definition.
948 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
949 (df_reg_defined): Likewise.
950 (df_find_use): Likewise.
951 (df_reg_used): Likewise.
952 (df_dump_insn_top): Strengthen param 1 from const_rtx to
953 const rtx_insn *.
954 (df_dump_insn_bottom): Likewise.
955 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
956 (df_insn_debug_regno): Likewise.
957 (debug_df_insn): Likewise.
958 (df_rd_simulate_one_insn): Likewise for param 2.
959 (df_word_lr_simulate_defs): Likewise for param 1.
960 (df_word_lr_simulate_uses): Likewise.
961 (df_md_simulate_one_insn): Likewise for param 2.
962 (df_simulate_find_noclobber_defs): Likewise for param 1.
963 (df_simulate_find_defs): Likewise.
964 (df_simulate_defs): Likewise.
965 (df_simulate_uses): Likewise.
966 (df_simulate_one_insn_backwards): Likewise for param 2.
967 (df_simulate_one_insn_forwards): Likewise.
968 (df_uses_create): Likewise for param 2.
969 (df_insn_create_insn_record): Likewise for param 1.
970 (df_insn_delete): Likewise.
971 (df_insn_rescan): Likewise.
972 (df_insn_rescan_debug_internal): Likewise.
973 (df_insn_change_bb): Likewise.
974 (df_notes_rescan): Likewise.
975 * rtl.h (remove_death): Likewise for param 2.
976 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
977 const rtx_insn *.
978 * sched-int.h (reemit_notes): Strengthen param from rtx to
979 rtx_insn *.
980 * valtrack.h (propagate_for_debug): Likewise for param 1.
981
982 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
983 local "tmp_rtx" from const_rtx to const rtx_insn *.
984 * combine.c (remove_death): Strengthen param "insn" from rtx to
985 rtx_insn *.
986 (move_deaths): Likewise for local "where_dead".
987 * cse.c (delete_trivially_dead_insns): Introduce local
988 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
989 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
990 rtx_insn *.
991 (df_reg_defined): Likewise.
992 (df_find_use): Likewise.
993 (df_reg_used): Likewise.
994 (df_dump_insn_problem_data): Strengthen param "insn" from
995 const_rtx to const rtx_insn *.
996 (df_dump_insn_top): Likewise.
997 (df_dump_insn_bottom): Likewise.
998 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
999 (df_insn_debug_regno): Likewise.
1000 (debug_df_insn): Likewise.
1001 (DF_REF_INSN): Delete.
1002 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1003 from rtx to rtx_insn *.
1004 (df_chain_insn_top_dump): Strengthen param "insn" from
1005 const_rtx to const rtx_insn *.
1006 (df_chain_insn_bottom_dump): Likewise.
1007 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1008 rtx_insn *.
1009 (df_word_lr_simulate_uses): Likewise.
1010 (df_print_note): Likewise.
1011 (df_remove_dead_and_unused_notes): Likewise.
1012 (df_set_unused_notes_for_mw): Likewise.
1013 (df_set_dead_notes_for_mw): Likewise.
1014 (df_create_unused_note): Likewise.
1015 (df_simulate_find_defs): Likewise.
1016 (df_simulate_find_uses): Likewise.
1017 (df_simulate_find_noclobber_defs): Likewise.
1018 (df_simulate_defs): Likewise.
1019 (df_simulate_uses): Likewise.
1020 (df_simulate_one_insn_backwards): Likewise.
1021 (df_simulate_one_insn_forwards): Likewise.
1022 (df_md_simulate_one_insn): Likewise.
1023 * df-scan.c (df_uses_create): Likewise.
1024 (df_insn_create_insn_record): Likewise.
1025 (df_insn_delete): Likewise.
1026 (df_insn_rescan): Likewise.
1027 (df_insn_rescan_debug_internal): Likewise.
1028 (df_insn_change_bb): Likewise.
1029 (df_notes_rescan): Likewise.
1030 (df_refs_add_to_chains): Likewise.
1031 (df_insn_refs_verify): Likewise.
1032 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1033 when invoking df_insn_delete.
1034 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1035 (set_unique_reg_note): Add checked cast.
1036 * final.c (cleanup_subreg_operands): Likewise.
1037 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1038 "insn" from rtx to rtx_insn *.
1039 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1040 "last" from rtx to rtx_insn *.
1041 * ira-emit.c (change_regs_in_insn): New function.
1042 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1043 Invoke change_regs_in_insn rather than change_regs.
1044 * ira.c (update_equiv_regs): Strengthen locals "insn",
1045 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1046 for_each_rtx_in_insn rather than for_each_rtx.
1047 * recog.c (confirm_change_group): Add checked casts.
1048 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1049 Add checked cast.
1050 (peep2_fill_buffer): Add checked cast.
1051 * rtlanal.c (remove_note): Likewise.
1052 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1053 locals "next" "end" from rtx to rtx_insn *.
1054
1055 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1056
1057 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1058 to rtx_insn *.
1059 (struct reg_use_data): Likewise for field "insn".
1060 (insn_cost): Likewise for param.
1061 (real_insn_for_shadow): Likewise for return type and param.
1062 (increase_insn_priority): Likewise for param 1.
1063 (debug_dependencies): Likewise for both params.
1064
1065 * haifa-sched.c (insn_delay): Likewise for param "insn".
1066 (real_insn_for_shadow): Likewise for return type and param "insn".
1067 (update_insn_after_change): Likewise for param "insn".
1068 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1069 "other".
1070 (insn_cost): Likewise for param "insn".
1071 (increase_insn_priority): Likewise.
1072 (calculate_reg_deaths): Likewise.
1073 (setup_insn_reg_pressure_info): Likewise.
1074 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1075 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1076 (model_recompute): Likewise.
1077 (must_restore_pattern_p): Likewise for param "next".
1078 (model_excess_cost): Likewise for param "insn".
1079 (queue_remove): Likewise.
1080 (adjust_priority): Likewise for param "prev".
1081 (update_register_pressure): Likewise for param "insn".
1082 (setup_insn_max_reg_pressure): Likewise for local "insn".
1083 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1084 (model_add_to_schedule): Likewise.
1085 (model_reset_queue_indices): Likewise for local "insn".
1086 (unschedule_insns_until): Strengthen local "recompute_vec" from
1087 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1088 "con" from rtx to rtx_insn *.
1089 (restore_last_backtrack_point): Likewise for both locals "x". Add
1090 checked casts.
1091 (estimate_insn_tick): Likewise for param "insn".
1092 (commit_schedule): Likewise for params "prev_head", "tail" and
1093 local "x".
1094 (verify_shadows): Likewise for locals "i1", "i2".
1095 (dump_insn_stream): Likewise for params "head", "tail" and locals
1096 "next_tail", "insn".
1097 (schedule_block): Likewise for locals "insn", "x". Add a checked
1098 cast.
1099 (fix_inter_tick): Likewise for params "head", "tail".
1100 (create_check_block_twin): Likewise for local "jump".
1101 (haifa_change_pattern): Likewise for param "insn".
1102 (haifa_speculate_insn): Likewise.
1103 (dump_new_block_header): Likewise for params "head", "tail".
1104 (fix_jump_move): Likewise for param "jump".
1105 (move_block_after_check): Likewise.
1106 (sched_init_insn_luid): Likewise for param "insn".
1107 (sched_init_luids): Likewise for local "insn".
1108 (insn_luid): Likewise for param "insn".
1109 (init_h_i_d): Likewise.
1110 (haifa_init_h_i_d): Likewise for local "insn".
1111 (haifa_init_insn): Likewise for param "insn".
1112 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1113 "other".
1114 (create_insn_reg_use): Likewise for param "insn".
1115 (setup_insn_reg_uses): Likewise. Add a checked cast.
1116 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1117 "tail" from rtx to rtx_insn *.
1118 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1119 "insn", "next_tail".
1120
1121 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1122
1123 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1124 from rtx to rtx_insn *.
1125 (model_add_to_schedule): Likewise for locals "start", "end",
1126 "iter".
1127
1128 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1129
1130 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1131 rtx_insn *.
1132 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1133 "to" and locals "insn", "next", "copy". Remove now-redundant
1134 checked cast.
1135
1136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1137
1138 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1139 rtx_insn * and param 4 from rtx * to rtx_insn **.
1140 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1141 param 2 from rtx * to rtx_insn **.
1142
1143 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1144 rtx_insn * and final param from rtx * to rtx_insn **.
1145
1146 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1147 from rtx to rtx_insn *.
1148 (try_head_merge_bb): Likewise for both locals named "move_upto".
1149 * df-problems.c (can_move_insns_across): Likewise for params
1150 "from", "to", "across_from", "across_to" and locals "insn",
1151 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1152 rtx_insn **.
1153 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1154 from rtx to rtx_insn *.
1155 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1156 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1157 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1158 rtx_insn *.
1159 (noce_try_abs): Likewise.
1160 (noce_get_condition): Likewise for param "jump". Strengthen param
1161 "earliest" from rtx * to rtx_insn **.
1162 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1163 rtx_insn *.
1164 (find_cond_trap): Likewise.
1165 (dead_or_predicable): Likewise for local "earliest".
1166 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1167 checked cast.
1168 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1169 and local "prev". Strengthen param "earliest" from rtx * to
1170 rtx_insn **.
1171 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1172 Strengthen param "earliest" from rtx * to rtx_insn **.
1173
1174 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1175
1176 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1177 "to" and local "insn" from rtx to rtx_insn *.
1178
1179 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1180
1181 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1182 from rtx to rtx_insn *.
1183 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1184 (code_motion_path_driver): Likewise for local "last_insn".
1185 (simplify_changed_insns): Likewise for local "insn".
1186
1187 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1188
1189 * rtl.h (push_to_sequence): Strengthen param from rtx to
1190 rtx_insn *.
1191 (push_to_sequence2): Likewise for both params.
1192 (delete_insns_since): Likewise for param.
1193 (reorder_insns_nobb): Likewise for all three params.
1194 (set_new_first_and_last_insn): Likewise for both params.
1195
1196 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1197 rtx_insn *. Remove now-redundant cast.
1198 (set_last_insn): Likewise.
1199
1200 * builtins.c (expand_builtin_return): Strengthen local
1201 "call_fusage" from rtx to rtx_insn *.
1202 * cfgrtl.c (create_basic_block_structure): Likewise for local
1203 "after".
1204 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1205 "first", "last" and local "insn".
1206 (delete_insns_since): Likewise for param "from".
1207 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1208 and local "x".
1209 (push_to_sequence): Likewise for param "first" and local "last".
1210 (push_to_sequence2): Likewise for params "first" and "last".
1211 * lra.c (emit_add3_insn): Likewise for local "last".
1212 (lra_emit_add): Likewise.
1213 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1214 "last_insn".
1215 (process_address_1): Likewise for locals "insn", last".
1216 * modulo-sched.c (ps_first_note): Likewise for return type.
1217 * optabs.c (expand_binop_directly): Likewise for param "last".
1218
1219 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1220
1221 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1222 to rtx_insn*.
1223 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1224
1225 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1226
1227 * function.h (struct sequence_stack): Strengthen fields "first"
1228 and "last" from rtx to rtx_insn *.
1229 (struct emit_status): Likewise for fields "x_first_insn" and
1230 "x_last_insn".
1231
1232 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1233 (set_first_insn): Add checked cast.
1234 (get_last_insn): Remove now-redundant checked cast.
1235 (set_last_insn): Add checked cast.
1236
1237 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1238 "saved_first" and "saved_last" from rtx to rtx_insn *.
1239
1240 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1241
1242 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1243 (unlink_insn_chain): Strengthen both params from rtx to
1244 rtx_insn *.
1245
1246 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1247 variable.
1248 (unlink_insn_chain): Likewise for params "first" and "last".
1249 Remove now-redundant checked cast.
1250 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1251 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1252 rtx_insn *.
1253 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1254 params.
1255 (add_insn): Likewise for param "insn" and local "prev".
1256 (add_insn_after_nobb): Likewise for both params and local "next".
1257 (add_insn_before_nobb): Likewise for both params and local "prev".
1258 (add_insn_after): Rename param "after" to "uncast_after",
1259 introducing local "after" with another checked cast.
1260 (add_insn_before): Rename params "insn" and "before", giving them
1261 "uncast_" prefixes, adding the old names back using checked casts.
1262 (emit_note_after): Likewise for param "after".
1263 (emit_note_before): Likewise for param "before".
1264 (emit_label): Add a checked cast.
1265
1266 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1267
1268 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1269 "insn" from rtx to rtx_insn *.
1270
1271 * cselib.c (cselib_record_sets_hook): Likewise.
1272
1273 * var-tracking.c (add_with_sets): Likewise, renaming back from
1274 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1275 to rtx_insn *.
1276
1277 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1278
1279 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1280 and "header_" from rtx to rtx_insn *.
1281 (struct basic_block_d): Likewise for field "head_" within "x"
1282 field of union basic_block_il_dependent.
1283 (BB_HEAD): Drop function...
1284 (SET_BB_HEAD): ...and this function in favor of...
1285 (BB_HEAD): ...reinstate macro.
1286 (BB_END): Drop function...
1287 (SET_BB_END): ...and this function in favor of...
1288 (BB_END): ...reinstate macro.
1289 (BB_HEADER): Drop function...
1290 (SET_BB_HEADER): ...and this function in favor of...
1291 (BB_HEADER): ...reinstate macro.
1292
1293 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1294 (fix_crossing_unconditional_branches): Likewise.
1295 * caller-save.c (save_call_clobbered_regs): Likewise.
1296 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1297 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1298 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1299 (merge_blocks_move_successor_nojumps): Likewise.
1300 (outgoing_edges_match): Update use of for_each_rtx to
1301 for_each_rtx_in_insn.
1302 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1303 (expand_gimple_cond): Likewise.
1304 (expand_gimple_tailcall): Likewise.
1305 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1306 SET_BB_END.
1307 (construct_exit_block): Drop use of SET_BB_END.
1308 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1309 rtx_insn *.
1310 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1311 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1312 SET_BB_HEAD and SET_BB_END.
1313 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1314 SET_BB_END.
1315 (rtl_delete_block): Drop use of SET_BB_HEAD.
1316 (rtl_split_block): Drop use of SET_BB_END.
1317 (emit_nop_for_unique_locus_between): Likewise.
1318 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1319 (block_label): Drop use of SET_BB_HEAD.
1320 (fixup_abnormal_edges): Drop use of SET_BB_END.
1321 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1322 (relink_block_chain): Likewise.
1323 (fixup_reorder_chain): Drop use of SET_BB_END.
1324 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1325 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1326 rtx_insn **. Drop use of SET_BB_HEADER.
1327 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1328 SET_BB_HEAD.
1329 (BB_HEAD): Delete this function.
1330 (SET_BB_HEAD): Likewise.
1331 (BB_END): Likewise.
1332 (SET_BB_END): Likewise.
1333 (BB_HEADER): Likewise.
1334 (SET_BB_HEADER): Likewise.
1335 * emit-rtl.c (add_insn_after): Rename param "insn" to
1336 "uncast_insn", adding a new local "insn" and a checked cast to
1337 rtx_insn *. Drop use of SET_BB_END.
1338 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1339 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1340 (reorder_insns): Drop use of SET_BB_END.
1341 (emit_insn_after_1): Strengthen param "first" and locals "last",
1342 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1343 (emit_pattern_after_noloc): Add checked cast.
1344 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1345 (restore_other_notes): Likewise.
1346 (move_insn): Likewise.
1347 (sched_extend_bb): Likewise.
1348 (fix_jump_move): Likewise.
1349 * ifcvt.c (noce_process_if_block): Likewise.
1350 (dead_or_predicable): Likewise.
1351 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1352 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1353 * sel-sched-ir.c (sel_move_insn): Likewise.
1354 * sel-sched.c (move_nop_to_previous_block): Likewise.
1355
1356 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1357 SET_BB_END.
1358 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1359
1360 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1361
1362 * basic-block.h (create_basic_block_structure): Strengthen params
1363 1 "head" and 2 "end" from rtx to rtx_insn *.
1364 * cfgrtl.c (create_basic_block_structure): Likewise.
1365 (rtl_create_basic_block): Update casts from void * to rtx to
1366 rtx_insn *, so that we can pass them as rtx_insn * to
1367 create_basic_block_structure.
1368 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1369
1370 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1371
1372 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1373 rtx_insn **.
1374 (check_for_inc_dec): Strengthen param "insn" from rtx to
1375 rtx_insn *.
1376
1377 * cselib.h (cselib_process_insn): Likewise.
1378
1379 * cselib.c (cselib_record_sets): Likewise.
1380 (cselib_process_insn): Likewise.
1381
1382 * dse.c (struct insn_info): Likewise for field "insn".
1383 (check_for_inc_dec_1): Likewise for local "insn".
1384 (check_for_inc_dec): Likewise for param "insn".
1385 (scan_insn): Likewise.
1386 (dse_step1): Likewise for local "insn".
1387
1388 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1389 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1390
1391 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1392
1393 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1394 from rtx to rtx_insn *.
1395 (DEP_PRO): Delete this function and...
1396 (SET_DEP_PRO): ...this function in favor of...
1397 (DEP_PRO): ...reinstate this macro.
1398 (DEP_CON): Delete this function and...
1399 (SET_DEP_CON): ...this function in favor of...
1400 (DEP_CON): ...reinstate this old macro.
1401 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1402 (init_dep): Likewise.
1403 (set_priorities): Likewise for both params.
1404 (sd_copy_back_deps): Likewise for params 1 and 2.
1405
1406 * haifa-sched.c (priority): Likewise for param "insn" and local
1407 "next".
1408 (set_priorities): Likewise for params "head" and "tail" and local
1409 "insn".
1410 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1411 local "consumer".
1412 (add_to_speculative_block): Add a checked cast.
1413 (create_check_block_twin): Drop use of SET_DEP_CON.
1414 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1415 rtx to rtx_insn *.
1416
1417 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1418 Drop use of SET_DEP_PRO
1419 (init_dep): Strengthen params "pro" and "con" from rtx to
1420 rtx_insn *.
1421 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1422 use of SET_DEP_CON.
1423 (DEP_PRO): Delete.
1424 (DEP_CON): Delete.
1425 (SET_DEP_PRO): Delete.
1426 (SET_DEP_CON): Delete.
1427
1428 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1429
1430 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1431 from rtx to rtx_insn *.
1432 (VINSN_INSN_RTX): Eliminate rvalue function and...
1433 (SET_VINSN_INSN): ...lvalue function in favor of...
1434 (VINSN_INSN_RTX): reinstate this old macro.
1435
1436 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1437 in favor of VINSN_INSN_RTX.
1438 (VINSN_INSN_RTX): Delete this function.
1439 (SET_VINSN_INSN_RTX): Likewise.
1440
1441 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1442
1443 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1444 (BND_TO): Delete this function and...
1445 (SET_BND_TO): ...this functions in favor of...
1446 (BND_TO): ...reinstating this macro.
1447 (struct _fence): Strengthen field "executing_insns" from
1448 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1449 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1450 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1451 and param "insn" from rtx to insn_t.
1452 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1453 rtx_insn *.
1454
1455 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1456 vec<rtx_insn *> .
1457 (rtx_vec_t): Likewise.
1458 (struct sched_deps_info_def): Strengthen param of "start_insn"
1459 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1460 "note_mem_dep" callback and first param of "note_dep" callback.
1461
1462 * haifa-sched.c (add_to_speculative_block): Strengthen param
1463 "insn" from rtx to rtx_insn *.
1464 (clear_priorities): Likewise.
1465 (calc_priorities): Likewise for local "insn".
1466
1467 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1468 Remove redundant checked cast.
1469 (haifa_note_mem_dep): Likewise for param "pending_insn".
1470 (haifa_note_dep): Likewise for param "elem".
1471 (note_mem_dep): Likewise for param "e".
1472 (sched_analyze_1): Add checked casts.
1473 (sched_analyze_2): Likewise.
1474
1475 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1476 from rtx to rtx_insn *.
1477 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1478 from vec<rtx> * to vec<rtx_insn *> *.
1479
1480 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1481 scaffolding.
1482 (flist_add): Strengthen param "executing_insns" from
1483 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1484 (advance_deps_context): Remove now-redundant checked cast.
1485 (init_fences): Replace uses of NULL_RTX with NULL.
1486 (merge_fences): Strengthen params "last_scheduled_insn" and
1487 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1488 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1489 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1490 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1491 an instruction, rather than doing double-duty as a pattern.
1492 (return_nop_to_pool): Update for change of insn_t.
1493 (deps_init_id): Remove now-redundant checked cast.
1494 (struct sched_scan_info_def): Strengthen param of "init_insn"
1495 callback from rtx to insn_t.
1496 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1497 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1498 NULL.
1499 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1500 "end" from rtx to rtx_insn *.
1501 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1502 (rtx insn_rtx, bool force_unique_p)
1503 (BND_TO): Delete function.
1504 (SET_BND_TO): Delete function.
1505
1506 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1507 rtx to rtx_insn *.
1508 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1509 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1510 rtx to rtx_insn *.
1511 (undo_transformations): Likewise for param "insn".
1512 (update_liveness_on_insn): Likewise.
1513 (compute_live_below_insn): Likewise for param "insn" and local
1514 "succ".
1515 (update_data_sets): Likewise for param "insn".
1516 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1517 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1518 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1519 rtx_insn *.
1520 (move_cond_jump): Likewise for param "insn".
1521 (move_cond_jump): Drop use of SET_BND_TO.
1522 (compute_av_set_on_boundaries): Likewise.
1523 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1524 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1525 from rtx to rtx_insn *.
1526 (maybe_emit_renaming_copy): Likewise for param "insn".
1527 (maybe_emit_speculative_check): Likewise.
1528 (handle_emitting_transformations): Likewise.
1529 (remove_insn_from_stream): Likewise.
1530 (code_motion_process_successors): Strengthen local "succ" from rtx
1531 to insn_t.
1532
1533 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1534
1535 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1536 ilist_t, not _xlist_t;
1537 (ILIST_INSN): Define in terms of new union field "insn".
1538 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1539 _XLIST_NEXT.
1540 (struct _list_node): Add new field "insn" to the union, of type
1541 insn_t.
1542 (ilist_add): Replace macro with an inline function, requiring an
1543 insn_t.
1544 (ilist_remove): Define this macro directly in terms of
1545 _list_remove, rather than indirectly via _xlist_remove.
1546 (ilist_clear): Likewise, in terms of _list_clear rather than
1547 _xlist_clear.
1548 (ilist_is_in_p): Replace macro with an inline function, requiring
1549 an insn_t.
1550 (_list_iter_cond_insn): New function.
1551 (ilist_iter_remove): Define this macro directly in terms of
1552 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1553 (ilist_iterator): Define directly in terms of _list_iterator
1554 rather than indirectly through _xlist_iterator.
1555 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1556 than in terms of _FOR_EACH_X.
1557 (FOR_EACH_INSN_1): Likewise.
1558
1559 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1560
1561 PR target/60606
1562 PR target/61330
1563 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1564 DECL_HARD_REGISTER and return for invalid register specifications.
1565 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1566 DECL_HARD_REGISTER, call expand_one_error_var.
1567 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1568 CC_REGNUM with non-MODE_CC modes.
1569 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1570
1571 2014-08-26 Marek Polacek <polacek@redhat.com>
1572
1573 PR c/61271
1574 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1575
1576 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1577
1578 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1579 qi cost; add di cost.
1580 (cortexa57_addrcost_table): Likewise.
1581
1582 2014-08-26 Marek Polacek <polacek@redhat.com>
1583
1584 PR c/61271
1585 * expr.c (is_aligning_offset): Remove logical not.
1586
1587 2014-08-26 Marek Polacek <polacek@redhat.com>
1588
1589 PR c/61271
1590 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1591 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1592
1593 2014-08-26 Richard Biener <rguenther@suse.de>
1594
1595 PR tree-optimization/62175
1596 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1597 expand possibly trapping operations.
1598
1599 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1600
1601 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1602 "insn" from rtx to rtx_insn *.
1603 (permute_load): Likewise for param "insn".
1604 (permute_store): Likewise.
1605 (handle_special_swappables): Likewise for local "insn".
1606 (replace_swap_with_copy): Likewise for locals "insn" and
1607 "new_insn".
1608 (rs6000_analyze_swaps): Likewise for local "insn".
1609
1610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1611
1612 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1613 to rtx_insn *.
1614
1615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1616
1617 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1618 "note_list" from rtx to rtx_insn *.
1619 (BB_NOTE_LIST): Replace this function and...
1620 (SET_BB_NOTE_LIST): ...this function with...
1621 (BB_NOTE_LIST): ...the former macro implementation.
1622
1623 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1624 local "from_start" from rtx to rtx_insn *. Strengthen param
1625 "to_endp" from rtx * to rtx_insn **.
1626
1627 * haifa-sched.c (concat_note_lists): Likewise.
1628 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1629 BB_NOTE_LIST.
1630 (sel_restore_notes): Likewise.
1631 (move_bb_info): Likewise.
1632 (BB_NOTE_LIST): Delete this function.
1633 (SET_BB_NOTE_LIST): Delete this function.
1634 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1635 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1636
1637 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1638
1639 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1640 from rtx * to rtx_insn **.
1641 (reorder2): Likewise.
1642 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1643 from rtx to rtx_insn *.
1644
1645 * doc/tm.texi: Update mechanically for above change to target.def.
1646
1647 * sched-int.h (note_list): Strengthen this variable from rtx to
1648 rtx_insn *.
1649 (remove_notes): Likewise for both params.
1650 (restore_other_notes): Likewise for return type and first param.
1651 (struct ready_list): Strengthen field "vec" from rtx * to
1652 rtx_insn **.
1653 (struct dep_replacement): Strenghten field "insn" from rtx to
1654 rtx_insn *.
1655 (struct deps_desc): Likewise for fields "last_debug_insn",
1656 "last_args_size".
1657 (struct haifa_sched_info): Likewise for callback field
1658 "can_schedule_ready_p"'s param, for first param of "new_ready"
1659 callback field, for both params of "rank" callback field, for
1660 first field of "print_insn" callback field (with a const), for
1661 both params of "contributes_to_priority" callback, for param
1662 of "insn_finishes_block_p" callback, for fields "prev_head",
1663 "next_tail", "head", "tail", for first param of "add_remove_insn"
1664 callback, for first param of "begin_schedule_ready" callback, for
1665 both params of "begin_move_insn" callback, and for second param
1666 of "advance_target_bb" callback.
1667 (add_dependence): Likewise for params 1 and 2.
1668 (sched_analyze): Likewise for params 2 and 3.
1669 (deps_analyze_insn): Likewise for param 2.
1670 (ready_element): Likewise for return type.
1671 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1672 (try_ready): Strenghten param from rtx to rtx_insn *.
1673 (sched_emit_insn): Likewise for return type.
1674 (record_delay_slot_pair): Likewise for params 1 and 2.
1675 (add_delay_dependencies): Likewise for param.
1676 (contributes_to_priority): Likewise for both params.
1677 (find_modifiable_mems): Likewise.
1678
1679 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1680 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1681 "first_older_only_insn" from rtx to rtx_insn *.
1682 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1683 rtx_insn **.
1684
1685 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1686 "last_scheduled_iter0" from rtx to rtx_insn *.
1687 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1688 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1689 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1690 "insn" from rtx to rtx_insn *.
1691 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1692 rtx_insn **.
1693 (c6x_sched_reorder2): Strengthen param "ready" and locals
1694 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1695 "insn" from rtx to rtx_insn *.
1696 (c6x_variable_issue): Add a checked cast when assigning from insn
1697 to ss.last_scheduled_iter0.
1698 (split_delayed_branch): Strengthen param "insn" and local "i1"
1699 from rtx to rtx_insn *.
1700 (split_delayed_nonbranch): Likewise.
1701 (undo_split_delayed_nonbranch): Likewise for local "insn".
1702 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1703 "entry_after", "end_packet", "head_insn", "tail_insn",
1704 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1705 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1706 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1707 but add a checked cast on loop->start_label. Consolidate calls to
1708 avoid assigning result of gen_spkernel to "insn", now an
1709 rtx_insn *.
1710
1711 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1712 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1713 rtx to rtx_insn *.
1714 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1715 rtx_insn **. Strengthen locals "top", "next" from rtx to
1716 rtx_insn *.
1717 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1718 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1719 (add_parameter_dependencies): Strengthen params "call", "head" and
1720 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1721 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1722 (add_dependee_for_func_arg): Likewise for param "arg" and local
1723 "insn".
1724 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1725 "tail" and locals "insn", "first_arg".
1726
1727 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1728 for params "head", "tail" and locals "insn", "next", "next_tail".
1729 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1730 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1731 "insn", "lowest", "highest" from rtx to rtx_insn *.
1732 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1733 rtx_insn **.
1734 (ia64_sched_reorder2): Likewise.
1735
1736 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1737 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1738 from rtx * to rtx_insn **.
1739 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1740 rtx_insn **.
1741 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1742 rtx_insn *.
1743 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1744 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1745 to rtx_insn *.
1746
1747 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1748 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1749 to rtx_insn *.
1750 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1751 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1752 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1753 rtx_insn **.
1754 (vr4130_reorder): Likewise.
1755 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1756 rtx to rtx_insn *.
1757 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1758 rtx_insn **.
1759 (mips_sched_reorder): Likewise.
1760 (mips_sched_reorder2): Likewise.
1761
1762 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1763
1764 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1765 Strengthen local "tmp" from rtx to rtx_insn *.
1766 (rs6000_sched_reorder2): Likewise.
1767
1768 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1769 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1770 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1771 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1772
1773 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1774 "tmp2" from rtx to rtx_insn *.
1775 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1776 Strengthen local "insn" from rtx to rtx_insn *.
1777 (ready_reorder): Strengthen param "ready" from rtx * to
1778 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1779 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1780 (sh_reorder2): Likewise.
1781
1782 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1783 local "insn" from rtx to rtx_insn *.
1784
1785 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1786 rtx_insn *.
1787 (scheduled_insns): Strengthen this variable from vec<rtx> to
1788 vec<rtx_insn *>.
1789 (set_modulo_params): Likewise for locals "i1", "i2".
1790 (record_delay_slot_pair): Likewise for params "i1", "i2".
1791 (add_delay_dependencies): Likewise for param "insn".
1792 (cond_clobbered_p): Likewise.
1793 (recompute_todo_spec): Likewise for local "prev".
1794 (last_scheduled_insn): Likewise for this variable.
1795 (nonscheduled_insns_begin): Likewise.
1796 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1797 rtx_insn **.
1798 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1799 rtx_insn *.
1800 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1801 Strengthen local "insn" from rtx to rtx_insn *.
1802 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1803 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1804 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1805 (ready_remove_first): Likewise for return type and local "t".
1806 (ready_element): Likewise for return type.
1807 (ready_remove): Likewise for return type and local "t".
1808 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1809 (check_clobbered_conditions): Strengthen local "x" from rtx to
1810 rtx_insn *, adding a checked cast.
1811 (schedule_insn): Likewise for param "insn".
1812 (remove_notes): Likewise for params "head", "tail" and locals
1813 "next_tail", "insn", "next".
1814 (struct haifa_saved_data): Likewise for fields
1815 "last_scheduled_insn", "nonscheduled_insns_begin".
1816 (save_backtrack_point): Update for change to field "vec" of
1817 struct ready_list.
1818 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1819 rtx_insn **.
1820 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1821 from rtx to rtx_insn *
1822 (resolve_dependencies): Strengthen param "insn" from rtx to
1823 rtx_insn *
1824 (restore_other_notes): Likewise for return type, for param "head"
1825 and local "note_head".
1826 (undo_all_replacements): Likewise for local "insn".
1827 (first_nonscheduled_insn): Likewise for return type and local "insn".
1828 (queue_to_ready): Likewise for local "insn", adding checked casts.
1829 (early_queue_to_ready): Likewise for local "insn".
1830 (debug_ready_list_1): Strengthen local "p" from rtx * to
1831 rtx_insn **.
1832 (move_insn): Strengthen param "insn" and local "note" from rtx to
1833 rtx_insn *
1834 (insn_finishes_cycle_p): Likewise for param "insn".
1835 (max_issue): Likewise for local "insn".
1836 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1837 to rtx_insn **.
1838 (commit_schedule): Strengthen param "prev_head" and local "insn"
1839 from rtx to rtx_insn *
1840 (prune_ready_list): Likewise for local "insn".
1841 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1842 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1843 (set_priorities): Likewise for local "prev_head".
1844 (try_ready): Likewise for param "next".
1845 (fix_tick_ready): Likewise.
1846 (change_queue_index): Likewise.
1847 (sched_extend_ready_list): Update for change to field "vec" of
1848 struct ready_list.
1849 (generate_recovery_code): Strengthen param "insn" from rtx to
1850 rtx_insn *.
1851 (begin_speculative_block): Likewise.
1852 (create_check_block_twin): Likewise for param "insn" and locals
1853 "label", "check", "twin". Introduce local "check_pat" to avoid
1854 "check" being used as a plain rtx before being used as an insn.
1855 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1856 extracting elements from ready_list.
1857 (sched_remove_insn): Strengthen param "insn" from rtx to
1858 rtx_insn *.
1859 (sched_emit_insn): Likewise for return type.
1860 (ready_remove_first_dispatch): Likewise for return type and local
1861 "insn".
1862
1863 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1864
1865 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1866 const rtx_insn *.
1867
1868 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1869 from rtx to rtx_insn *.
1870 (add_dependence_list): Likewise for param "insn". Add a checked
1871 cast.
1872 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1873 to rtx_insn *. Strengthen param "list_p" from rtx * to
1874 rtx_insn **.
1875 (chain_to_prev_insn): Strengthen param "insn" and locals
1876 "prec_nonnote", "i" from rtx to rtx_insn *.
1877 (flush_pending_lists): Likewise for param "insn".
1878 (cur_insn): Likewise for this variable.
1879 (haifa_start_insn): Add a checked cast.
1880 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1881 (sched_analyze_reg): Likewise for param "insn".
1882 (sched_analyze_1): Likewise.
1883 (sched_analyze_2): Likewise. Add checked casts.
1884 (sched_analyze_insn): Likewise. Also for local "prev".
1885 (deps_analyze_insn): Likewise for param "insn".
1886 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1887 (add_dependence_1): Likewise for params "insn", "elem".
1888 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1889 (parse_add_or_inc): Likewise for param "insn".
1890 (find_inc): Likewise for local "inc_cand".
1891 (find_modifiable_mems): Likewise for params "head", "tail" and
1892 locals "insn", "next_tail".
1893
1894 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1895 (begin_schedule_ready): Likewise for param "insn".
1896 (begin_move_insn): Likewise for params "insn" and "last".
1897 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1898 const rtx_insn *.
1899 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1900 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1901 (ebb_add_remove_insn): Likewise for param "insn".
1902 (advance_target_bb): Likewise.
1903
1904 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1905 "insn".
1906 (check_live): Likewise for param "insn".
1907 (init_ready_list): Likewise for local "insn".
1908 (can_schedule_ready_p): Likewise for param "insn".
1909 (begin_schedule_ready): Likewise.
1910 (new_ready): Likewise for param "next".
1911 (rgn_print_insn): Likewise for param "insn".
1912 (rgn_rank): Likewise for params "insn1", "insn2".
1913 (contributes_to_priority): Likewise for params "next", "insn".
1914 (rgn_insn_finishes_block_p): Likewise for param "insn".
1915 (add_branch_dependences): Likewise for params "head", "tail" and
1916 locals "insn", "last".
1917 (rgn_add_remove_insn): Likewise for param "insn".
1918 (advance_target_bb): Likewise.
1919
1920 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1921 const_rtx to const rtx_insn *.
1922
1923 * sel-sched-dump.h (sel_print_insn): Likewise.
1924
1925 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1926 (deps_init_id): Likewise.
1927
1928 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1929 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1930 rtx_insn **.
1931
1932 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1933
1934 * output.h (final_start_function): Strengthen param 1 from rtx to
1935 rtx_insn *.
1936
1937 * final.c (final_start_function): Likewise, renaming back from
1938 "uncast_first" to "first", and dropping the checked cast from rtx
1939 to rtx_insn *.
1940
1941 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1942
1943 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1944 * final.c (final): Likewise. Rename param back from
1945 "uncast_first" to "first" and eliminate the checked cast from rtx
1946 to rtx_insn *.
1947
1948 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1949
1950 * output.h (shorten_branches): Strengthen param from rtx to
1951 rtx_insn *.
1952
1953 * final.c (shorten_branches): Likewise, renaming param back from
1954 "uncast_first" to "first", and dropping the checked cast from rtx
1955 to rtx_insn *.
1956
1957 * genattr.c (gen_attr): Likewise when writing out the prototype of
1958 shorten_branches.
1959
1960 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1961
1962 * sched-int.h (struct haifa_sched_info): Strengthen fields
1963 "prev_head" and "next_tail" from rtx to rtx_insn *.
1964
1965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1966
1967 * rtl.h (rtx_jump_table_data::get_labels): New method.
1968 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1969 with use of the new rtx_jump_table_data::get_labels method.
1970 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1971 to rtx_jump_table_data *. Simplify by using get_labels method.
1972 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1973 a dyn_cast, introducing local "table", using it to replace
1974 label-lookup logic with a get_labels method call.
1975 (patch_jump_insn): Simplify using get_labels method.
1976 * dwarf2cfi.c (create_trace_edges): Likewise.
1977 * rtlanal.c (label_is_jump_target_p): Likewise.
1978
1979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1980
1981 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1982 to rtx_insn *.
1983
1984 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1985 (unshare_all_rtl_again): Likewise, also for local "p".
1986
1987 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1988
1989 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1990 to rtx_insn *.
1991 * cfgrtl.c (delete_insn_and_edges): Likewise.
1992
1993 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1994
1995 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1996 from rtx to rtx_insn *.
1997
1998 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1999
2000 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2001
2002 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2003 locals "returnjump", "epilogue_end", "insn", "next".
2004
2005 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2006 "returnjump" from rtx * to rtx_insn **.
2007 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2008
2009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2010
2011 * basic-block.h (struct edge_def). Strengthen "r" within
2012 union edge_def_insns from rtx to rtx_insn *.
2013
2014 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2015 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2016 rtx_insn *.
2017 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2018 from rtx to rtx_insn *.
2019 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2020 rtx_insn *.
2021 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2022 (reg_used_on_edge): Likewise.
2023 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2024 (gt_pch_nx): New overload for rtx_insn *&.
2025 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2026 from rtx to rtx_insn *.
2027
2028 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2029
2030 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2031 from rtx to rtx_insn *.
2032 (BB_FOOTER): Replace function with access macro.
2033 (SET_BB_FOOTER): Delete.
2034
2035 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2036 with BB_FOOTER.
2037 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2038 (emit_barrier_after_bb): Likewise.
2039 (record_effective_endpoints): Likewise.
2040 (relink_block_chain): Likewise.
2041 (fixup_fallthru_exit_predecessor): Likewise.
2042 (cfg_layout_duplicate_bb): Likewise.
2043 (cfg_layout_split_block): Likewise.
2044 (cfg_layout_delete_block): Likewise.
2045 (cfg_layout_merge_blocks): Likewise.
2046 (BB_FOOTER): Delete function.
2047 (SET_BB_FOOTER): Delete function.
2048 * combine.c (update_cfg_for_uncondjump): Replace uses of
2049 SET_BB_FOOTER with BB_FOOTER.
2050
2051 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2052
2053 * except.h (struct eh_landing_pad_d): Strengthen field
2054 "landing_pad" from rtx to rtx_code_label *.
2055
2056 * except.c (sjlj_emit_dispatch_table): Likewise for param
2057 "dispatch_label"
2058 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2059
2060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2061
2062 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2063 first param from rtx to rtx_insn *.
2064 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2065 field "set_frame_ptr_insn".
2066 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2067 "csend" from rtx to rtx_code_label *.
2068 (xtensa_expand_atomic): Likewise for local "csloop".
2069 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2070 rtx_insn *.
2071 (xtensa_call_tls_desc): Likewise for return type and locals
2072 "call_insn", "insns".
2073 (xtensa_legitimize_tls_address): Likewise for local "insns".
2074 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2075
2076 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2077
2078 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2079 first param from rtx to rtx_insn *.
2080 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2081 "insn".
2082
2083 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2084
2085 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2086 Strengthen param 1 from rtx to rtx_insn *.
2087 (tilepro_output_cbranch): Likewise.
2088 (tilepro_adjust_insn_length): Likewise.
2089 (tilepro_final_prescan_insn): Likewise for sole param.
2090
2091 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2092 Likewise for local "last".
2093 (cbranch_predicted_p): Likewise for param "insn".
2094 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2095 (tilepro_output_cbranch_with_opcode): Likewise.
2096 (tilepro_output_cbranch): Likewise.
2097 (frame_emit_load): Likewise for return type and locals "seq",
2098 "insn".
2099 (emit_sp_adjust): Likewise for return type and local "insn".
2100 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2101 "insn".
2102 (tilepro_adjust_insn_length): Likewise for param "insn".
2103 (next_insn_to_bundle): Likewise for return type and params
2104 "r", "end".
2105 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2106 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2107 local "new_insns".
2108 (match_addli_pcrel): Likewise for param "insn".
2109 (replace_addli_pcrel): Likewise.
2110 (match_auli_pcrel): Likewise.
2111 (replace_auli_pcrel): Likewise.
2112 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2113 "next_insn".
2114 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2115 "queue", "next_queue", "prev".
2116 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2117 (tilepro_final_prescan_insn): Likewise for param "insn".
2118
2119 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2120
2121 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2122 Strengthen param 1 from rtx to rtx_insn *.
2123 (tilegx_output_cbranch): Likewise.
2124 (tilegx_adjust_insn_length): Likewise.
2125 (tilegx_final_prescan_insn): Likewise for sole param.
2126
2127 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2128 or local "last".
2129 (cbranch_predicted_p): Likewise for param "insn".
2130 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2131 (tilegx_output_cbranch_with_opcode): Likewise.
2132 (tilegx_output_cbranch): Likewise.
2133 (frame_emit_load): Likewise for return type.
2134 (set_frame_related_p): Likewise for locals "seq", "insn".
2135 (emit_sp_adjust): Likewise for return type, and for local "insn".
2136 Introduce local "pat" for use in place of "insn" where the latter
2137 isn't an instruction.
2138 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2139 from rtx to rtx_insn *.
2140 (tilegx_adjust_insn_length): Likewise for param "insn".
2141 (next_insn_to_bundle): Likewise for return type and params "r" and
2142 "end".
2143 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2144 "end".
2145 (replace_insns): Likewise for params "old_insn", "new_insns".
2146 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2147 "new_insns".
2148 (replace_mov_pcrel_step2): Likewise.
2149 (replace_mov_pcrel_step3): Likewise.
2150 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2151 "next_insn".
2152 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2153 "queue", "next_queue", "prev".
2154 (tilegx_output_mi_thunk): Likewise for local "insn".
2155 (tilegx_final_prescan_insn): Likewise for param "insn".
2156
2157 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2158
2159 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2160 rtx to rtx_insn *.
2161 (frame_emit_load): Likewise.
2162 (frame_emit_add_imm): Likewise, also for local "insn".
2163 (spu_expand_prologue): Likewise for local "insn".
2164 (struct spu_bb_info): Likewise for field "prop_jump".
2165 (emit_nop_for_insn): Likewise for param "insn" and local
2166 "new_insn".
2167 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2168 "hbr_insn".
2169 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2170 locals "hint", "insn".
2171 (get_branch_target): Likewise for param "branch".
2172 (insn_clobbers_hbr): Likewise for param "insn".
2173 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2174 locals "insn", "before_4", "before_16".
2175 (insert_hbrp): Likewise for local "insn".
2176 (spu_machine_dependent_reorg): Likewise for locals "branch",
2177 "insn", "next", "bbend".
2178 (uses_ls_unit): Likewise for param "insn".
2179 (get_pipe): Likewise.
2180 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2181 introducing a checked cast.
2182 (spu_sched_adjust_cost): Likewise for params "insn" and
2183 "dep_insn".
2184 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2185 (spu_sms_res_mii): Likewise.
2186
2187 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2188
2189 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2190 from rtx to rtx_insn *.
2191 (output_cbranch): Likewise for param 6.
2192 (output_return): Likewise for param 1.
2193 (output_sibcall): Likewise.
2194 (output_v8plus_shift): Likewise.
2195 (output_v8plus_mult): Likewise.
2196 (output_v9branch): Likewise for param 7.
2197 (output_cbcond): Likewise for param 3.
2198
2199 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2200 for local "insn".
2201 (sparc_legitimize_pic_address): Likewise.
2202 (sparc_emit_call_insn): Likewise.
2203 (emit_save_or_restore_regs): Likewise.
2204 (emit_window_save): Likewise for return type and local "insn".
2205 (sparc_expand_prologue): Likewise for local "insn".
2206 (sparc_flat_expand_prologue): Likewise.
2207 (output_return): Likewise for param "insn".
2208 (output_sibcall): Likewise for param "insn" and local "delay".
2209 (output_ubranch): Likewise for param "insn".
2210 (output_cbranch): Likewise.
2211 (output_cbcond): Likewise.
2212 (output_v9branch): Likewise.
2213 (output_v8plus_shift): Likewise.
2214 (sparc_output_mi_thunk): Likewise for local "insn".
2215 (get_some_local_dynamic_name): Likewise.
2216 (output_v8plus_mult): Likewise for param "insn".
2217
2218 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2219
2220 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2221 from rtx to rtx_insn *.
2222 (output_branchy_insn): Likewise for param 3.
2223 (output_far_jump): Likewise for param 1.
2224 (final_prescan_insn): Likewise.
2225 (sh_insn_length_adjustment): Likewise for sole param.
2226
2227 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2228 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2229 rtx_code_label *.
2230 (sh_emit_compare_and_set): Likewise for local "lab".
2231 (output_far_jump): Strengthen param "insn" and local "prev" from
2232 rtx to rtx_insn *.
2233 (output_branchy_insn): Likewise for param "insn" and local
2234 "next_insn".
2235 (output_ieee_ccmpeq): Likewise for param "insn".
2236 (struct label_ref_list_d): Strengthen field "label" from rtx to
2237 rtx_code_label *.
2238 (pool_node): Likewise.
2239 (pool_window_label): Likewise for this global.
2240 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2241 (dump_table): Strengthen params "start", "barrier" and local
2242 "scan" from rtx to rtx_insn *.
2243 (broken_move): Likewise for param "insn".
2244 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2245 Strengthen param "first_mova" from rtx * to rtx_insn **.
2246 (mova_p): Likewise for param "insn".
2247 (fixup_mova): Likewise for param "mova".
2248 (find_barrier): Likewise for return type, params "mova" and
2249 "from", and locals "barrier_before_mova", "found_barrier",
2250 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2251 "label" from rtx to rtx_code_label *.
2252 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2253 rtx to rtx_insn *.
2254 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2255 (split_branches): Likewise for param "first" and local "insn".
2256 (final_prescan_insn): Likewise for param "insn".
2257 (sequence_insn_p): Likewise for locals "prev", "next".
2258 (sh_insn_length_adjustment): Likewise for param "insn".
2259 (sh_can_redirect_branch): Likewise for local "insn".
2260 (find_r0_life_regions): Likewise for locals "end", "insn".
2261 (sh_output_mi_thunk): Likewise for local "insns".
2262
2263 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2264
2265 * config/score/score.c (score_output_mi_thunk): Strengthen local
2266 "insn" from rtx to rtx_insn *.
2267 (score_prologue): Likewise.
2268
2269 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2270
2271 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2272 1 from rtx to rtx_insn *.
2273 (s390_emit_jump): Likewise for return type.
2274 (s390_emit_call): Likewise.
2275 (s390_load_got): Likewise.
2276
2277 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2278 variable.
2279 (s390_match_ccmode): Likewise for param "insn".
2280 (s390_emit_jump): Likewise for return type.
2281 (s390_split_branches): Likewise for local "label".
2282 (struct constant): Strengthen field "label" from rtx to
2283 rtx_code_label *.
2284 (struct constant_pool): Likewise for field "label". Strengthen
2285 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2286 rtx_insn *.
2287 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2288 insns.
2289 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2290 (s390_end_pool): Likewise.
2291 (s390_dump_pool): Likewise for local "insn".
2292 (s390_mainpool_start): Likewise.
2293 (s390_chunkify_start): Likewise.
2294 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2295 with insns. Strengthen locals "label", "jump", "barrier", "next",
2296 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2297 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2298 rtx_insn *.
2299 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2300 "jump", "label", "next_insn".
2301 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2302 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2303 "tbegin_insn".
2304 (s390_load_got): Likewise for return type and local "insns".
2305 (s390_save_gprs_to_fprs): Likewise for local "insn".
2306 (s390_restore_gprs_from_fprs): Likewise.
2307 (pass_s390_early_mach::execute): Likewise.
2308 (s390_emit_prologue): Likewise for local "insns".
2309 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2310 rtx_code_label *.
2311 (s390_emit_call): Strengthen return type and local "insn" from
2312 rtx to rtx_insn *.
2313 (s390_emit_tpf_eh_return): Likewise for local "insn".
2314 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2315 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2316 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2317 local "cur_insn".
2318 (s390_non_addr_reg_read_p): Likewise for param "insn".
2319 (find_cond_jump): Likewise for return type and param "insn".
2320 (s390_swap_cmp): Likewise for param "insn".
2321 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2322 "prev_insn", "next_insn".
2323 (s390_reorg): Likewise for locals "insn", "target".
2324 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2325 (s390_sched_variable_issue): For now, rename param "insn" to
2326 "uncast_insn", introducing a checked cast.
2327 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2328 insn.
2329 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2330 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2331
2332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2333
2334 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2335 param from rtx to rtx_insn *.
2336 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2337
2338 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2339
2340 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2341 4 from rtx to rtx_insn *.
2342 (rs6000_final_prescan_insn): Likewise for first param.
2343 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2344 local "insn".
2345 (rs6000_get_some_local_dynamic_name): Likewise.
2346 (output_cbranch): Likewise for param "insn".
2347 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2348 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2349 (rs6000_emit_allocate_stack): Likewise for local "insn".
2350 (load_cr_save): Likewise.
2351 (restore_saved_cr): Likewise.
2352 (restore_saved_lr): Likewise.
2353 (emit_cfa_restores): Likewise.
2354 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2355 "deleted_debug_label".
2356 (rs6000_output_mi_thunk): Likewise for local "insn".
2357 (rs6000_final_prescan_insn): Likewise for param "insn".
2358
2359 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2360
2361 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2362 Strengthen param "insn" from rtx to rtx_insn *.
2363 * config/picochip/picochip.c (picochip_current_prescan_insn):
2364 Likewise for this variable.
2365 (picochip_final_prescan_insn): Likewise for param "insn".
2366
2367 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2368
2369 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2370 from rtx to rtx_insn *.
2371 (pa_output_indirect_call): Likewise.
2372 (pa_adjust_insn_length): Likewise.
2373 (pa_attr_length_millicode_call): Likewise.
2374 (pa_attr_length_call): Likewise.
2375 (pa_attr_length_indirect_call): Likewise.
2376
2377 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2378 "insn".
2379 (pa_attr_length_millicode_call): Likewise.
2380 (pa_attr_length_call): Likewise.
2381 (pa_output_call): Likewise.
2382 (pa_attr_length_indirect_call): Likewise.
2383 (pa_output_indirect_call): Likewise.
2384
2385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2386
2387 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2388 Strengthen first param from rtx to rtx_insn *.
2389 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2390 param "insn".
2391
2392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2393
2394 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2395 type from rtx to rtx_insn *.
2396 (mips_expand_call): Likewise.
2397 (mips_adjust_insn_length): Likewise for first param.
2398 (mips_output_conditional_branch): Likewise.
2399 (mips_output_order_conditional_branch): Likewise.
2400 (mips_final_prescan_insn): Likewise.
2401
2402 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2403 rtx_insn * for the SEQUENCE case.
2404 (SEQ_END): Likewise.
2405 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2406 (mips_emit_call_insn): Likewise, also for local "insn".
2407 (mips16_gp_pseudo_reg): Likewise for local "scan".
2408 (mips16_build_call_stub): Likewise for return type and for local
2409 "insn". Introduce a new local "pattern" so that "insn" can indeed
2410 be an insn.
2411 (mips_expand_call): Strengthen return type and local "insn" from
2412 rtx to rtx_insn *.
2413 (mips_block_move_loop): Strengthen local "label" from rtx to
2414 rtx_code_label *.
2415 (mips_expand_synci_loop): Likewise for locals "label",
2416 "end_label".
2417 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2418 rtx_insn *.
2419 (mips16e_collect_argument_saves): Likewise for locals "insn",
2420 "next".
2421 (mips_find_gp_ref): Likewise for param of callback for "pred"
2422 param, and for local "insn".
2423 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2424 (mips_insn_has_flexible_gp_ref_p): Likewise.
2425 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2426 local "insn".
2427 (mips_epilogue_set_cfa): Likewise for local "insn".
2428 (mips_expand_epilogue): Likewise.
2429 (mips_adjust_insn_length): Likewise for param "insn".
2430 (mips_output_conditional_branch): Likewise.
2431 (mips_output_order_conditional_branch): Likewise.
2432 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2433 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2434 "falu2_turn_enabled_insn".
2435 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2436 "done_label" from rtx to rtx_code_label *.
2437 (struct mips16_constant): Likewise for field "label".
2438 (mips16_add_constant): Likewise for return type.
2439 (mips16_emit_constants_1): Strengthen return type and param "insn"
2440 from rtx to rtx_insn *.
2441 (mips16_emit_constants): Likewise for param "insn".
2442 (mips16_insn_length): Likewise.
2443 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2444 to rtx_code_label *.
2445 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2446 from rtx to rtx_insn *.
2447 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2448 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2449 (r10k_simplify_address): Strengthen param "insn" and local
2450 "def_insn" from rtx to rtx_insn *.
2451 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2452 rtx_insn *.
2453 (r10k_needs_protection_p_1): Update target type of cast of data
2454 from to rtx to rtx_insn *.
2455 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2456 rtx * to rtx_insn **.
2457 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2458 rtx_insn *.
2459 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2460 (mips_call_expr_from_insn): Likewise for param "insn".
2461 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2462 (mips_find_pic_call_symbol): Likewise for param "insn".
2463 (mips_annotate_pic_calls): Likewise for local "insn".
2464 (mips_sim_insn): Likewise for this variable.
2465 (struct mips_sim): Likewise for field "insn" within elements of
2466 last_set array.
2467 (mips_sim_wait_reg): Likewise for param "insn".
2468 (mips_sim_wait_regs): Likewise.
2469 (mips_sim_wait_units): Likewise.
2470 (mips_sim_wait_insn): Likewise.
2471 (mips_sim_issue_insn): Likewise.
2472 (mips_sim_finish_insn): Likewise.
2473 (mips_seq_time): Likewise for param "seq" and local "insn".
2474 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2475 locals "first", "second".
2476 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2477 "last", "last2", "next".
2478 (mips_avoid_hazard): Likewise for params "after", "insn".
2479 (mips_reorg_process_insns): Likewise for locals "insn",
2480 "last_insn", "subinsn", "next_insn".
2481 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2482 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2483 "jump_sequence".
2484 (mips_output_mi_thunk): Likewise for local "insn".
2485 (mips_final_prescan_insn): Likewise for param "insn".
2486
2487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2488
2489 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2490 Strengthen return type and local "insns" from rtx to rtx_insn *.
2491 (microblaze_legitimize_tls_address): Likewise for local "insns".
2492 (microblaze_block_move_loop): Strengthen local "label" from rtx
2493 to rtx_code_label *.
2494 (microblaze_expand_prologue): Strengthen two locals named "insn"
2495 from rtx to rtx_insn *.
2496 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2497 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2498 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2499 to rtx_code_label *.
2500
2501 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2502
2503 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2504 param from rtx to rtx_insn *.
2505 (mep_reuse_lo): Likewise for third param.
2506 (mep_use_post_modify_p): Likewise for first param.
2507 (mep_core_address_length): Likewise.
2508 (mep_cop_address_length): Likewise.
2509 (mep_final_prescan_insn): Likewise.
2510 (mep_store_data_bypass_p): Likewise for both params.
2511 (mep_mul_hilo_bypass_p): Likewise.
2512 (mep_ipipe_ldc_p): Likewise for param.
2513
2514 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2515 (mep_rewrite_mult): Likewise.
2516 (mep_rewrite_mulsi3): Likewise.
2517 (mep_rewrite_maddsi3): Likewise.
2518 (mep_reuse_lo_p_1): Likewise.
2519 (mep_reuse_lo_p): Likewise.
2520 (mep_frame_expr): Likewise.
2521 (mep_make_parallel): Likewise for both params.
2522 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2523 local "insn".
2524 (mep_use_post_modify_p): Likewise for param "insn".
2525 (mep_core_address_length): Likewise.
2526 (mep_cop_address_length): Likewise.
2527 (mep_reg_set_in_function): Likewise for local "insn".
2528 (mep_asm_without_operands_p): Likewise.
2529 (F): Likewise for return type and param "x".
2530 (add_constant): Likewise for local "insn".
2531 (maybe_dead_move): Likewise for return type and local "insn".
2532 (mep_expand_prologue): Likewise for local "insn".
2533 (mep_final_prescan_insn): Likewise for param "insn".
2534 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2535 "next", "follow", "x".
2536 (mep_insert_repeat_label_last): Likewise for return type, param
2537 "last_insn", and locals "next", "prev". Strengthen param "label"
2538 from rtx to rtx_code_label *.
2539 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2540 rtx_insn *.
2541 (struct mep_doloop_end): Likewise for fields "insn" and
2542 "fallthrough".
2543 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2544 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2545 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2546 rtx_insn *.
2547 (mep_invert_branch): Likewise for params "insn" and "after".
2548 (mep_reorg_erepeat): Likewise for param "insns" and locals
2549 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2550 "l" from rtx to rtx_code_label *.
2551 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2552 from rtx to rtx_insn *.
2553 (mep_reorg_addcombine): Likewise for param "insns" and locals
2554 "i", "n".
2555 (add_sp_insn_p): Likewise for param "insn".
2556 (mep_reorg_noframe): Likewise for param "insns" and locals
2557 "start_frame_insn", "end_frame_insn", "next".
2558 (mep_reorg): Likewise for local "insns".
2559 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2560 cast.
2561 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2562 (mep_mul_hilo_bypass_p): Likewise.
2563 (mep_ipipe_ldc_p): Likewise for param "insn".
2564 (mep_make_bundle): Likewise for return type, param "cop" and local
2565 "insn", splitting out the latter into a new local "seq" for when it
2566 is a SEQUENCE rather than an insn.
2567 (core_insn_p): Likewise for param "insn".
2568 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2569 "last", "first", "note", "prev", "core_insn".
2570
2571 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2572
2573 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2574 rtx to rtx_insn *.
2575 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2576 (m68k_final_prescan_insn): Likewise for first param.
2577
2578 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2579 (m68k_set_frame_related): Likewise for param "insn".
2580 (output_btst): Likewise for param "insn".
2581 (m68k_final_prescan_insn): Likewise.
2582 (m68k_move_to_reg): Likewise for local "insn".
2583 (m68k_call_tls_get_addr): Likewise for local "insns".
2584 (m68k_call_m68k_read_tp): Likewise.
2585 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2586 (m68k_output_mi_thunk): Likewise for local "insn".
2587
2588 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2589
2590 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2591 first param from rtx to rtx_insn *.
2592 (iq2000_adjust_insn_length): Likewise.
2593 (iq2000_output_conditional_branch): Likewise.
2594 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2595 "insn" and local "nop_insn".
2596 (iq2000_annotate_frame_insn): Likewise for param "insn".
2597 (iq2000_expand_prologue): Likewise for both locals "insn".
2598 (iq2000_adjust_insn_length): Likewise for param "insn".
2599 (iq2000_output_conditional_branch): Likewise.
2600
2601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2602
2603 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2604 "insns" from rtx to rtx_insn *.
2605 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2606 (struct spill_fill_data): Likewise for field "init_after" and for
2607 elements of array field "prev_insn".
2608 (spill_restore_mem): Likewise for locals "insn", "first".
2609 (do_spill): Likewise for local "insn".
2610 (do_restore): Likewise.
2611 (ia64_expand_prologue): Likewise.
2612 (ia64_expand_epilogue): Likewise.
2613 (emit_insn_group_barriers): Likewise for locals "insn",
2614 "last_label".
2615 (emit_all_insn_group_barriers): Likewise for locals "insn",
2616 "last".
2617 (dfa_stop_insn): Likewise for this global.
2618 (dfa_pre_cycle_insn): Likewise.
2619 (ia64_nop): Likewise.
2620 (final_emit_insn_group_barriers): Likewise for locals "insn",
2621 "last".
2622 (emit_predicate_relation_info): Likewise for locals "head", "n",
2623 "insn", "b", "a".
2624 (ia64_reorg): Likewise for local "insn".
2625 (ia64_output_mi_thunk): Likewise.
2626 (expand_vec_perm_interleave_2): Likewise for local "seq".
2627
2628 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2629
2630 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2631 param 1 "insn" from rtx to rtx_insn *.
2632 (ix86_use_lea_for_mov): Likewise.
2633 (ix86_avoid_lea_for_addr): Likewise.
2634 (ix86_split_lea_for_addr): Likewise.
2635 (ix86_lea_for_add_ok): Likewise.
2636 (ix86_output_call_insn): Likewise.
2637
2638 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2639 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2640 (ix86_output_function_epilogue): Likewise for locals "insn",
2641 "deleted_debug_label".
2642 (legitimize_tls_address): Likewise for local "insn".
2643 (get_some_local_dynamic_name): Likewise.
2644 (increase_distance): Likewise for params "prev", "next".
2645 (distance_non_agu_define_in_bb): Likewise for params "insn",
2646 "start" and locals "prev", "next".
2647 (distance_non_agu_define): Likewise for param "insn".
2648 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2649 locals "next", "prev".
2650 (distance_agu_use): Likewise for param "insn".
2651 (ix86_lea_outperforms): Likewise.
2652 (ix86_ok_to_clobber_flags): Likewise.
2653 (ix86_avoid_lea_for_add): Likewise.
2654 (ix86_use_lea_for_mov): Likewise.
2655 (ix86_avoid_lea_for_addr): Likewise.
2656 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2657 (ix86_split_lea_for_addr): Likewise for param "insn".
2658 (ix86_lea_for_add_ok): Likewise for param "insn".
2659 (ix86_expand_carry_flag_compare): Likewise for local
2660 "compare_seq".
2661 (ix86_expand_int_movcc): Likewise.
2662 (ix86_output_call_insn): Likewise for param "insn".
2663 (ix86_output_call_insn): Likewise for local "i".
2664 (x86_output_mi_thunk): Introduce local "insn", using it in place
2665 of "tmp" when dealing with insns.
2666 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2667 "start".
2668 (ix86_pad_returns): Likewise for locals "ret", "prev".
2669 (ix86_count_insn_bb): Likewise for local "insn".
2670 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2671 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2672 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2673 (expand_vec_perm_interleave2): Likewise for local "seq".
2674 (expand_vec_perm_vperm2f128_vblend): Likewise.
2675 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2676 call to for_each_rtx with for_each_rtx_in_insn.
2677
2678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2679
2680 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2681 "label" from rtx to rtx_code_label *.
2682 (ix86_expand_prologue): Likewise.
2683 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2684 "varargs_label".
2685 (ix86_split_idivmod): Likewise for locals "end_label" and
2686 "qimode_label".
2687 (ix86_expand_branch): Likewise for local "label2".
2688 (ix86_expand_aligntest): Likewise for return type and local "label".
2689 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2690 "top_label".
2691 (expand_movmem_epilogue): Likewise for the various locals named
2692 "label".
2693 (expand_setmem_epilogue): Likewise.
2694 (expand_small_movmem_or_setmem): Likewise for local "label".
2695 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2696 Strengthen param "done_label" from rtx * to rtx_code_label **.
2697 Strengthen locals "loop_label" and "label" from rtx to
2698 rtx_code_label *.
2699 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2700 Likewise for locals "loop_label", "label".
2701 (ix86_expand_set_or_movmem): Likewise for locals "label",
2702 "jump_around_label", "hot_label".
2703 (ix86_expand_strlensi_unroll_1): Likewise for locals
2704 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2705 "end_2_label".
2706 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2707 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2708 "label2", "jump_label".
2709 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2710 local "label".
2711 (ix86_expand_lfloorceil): Likewise for local "label".
2712 (ix86_expand_rint): Likewise.
2713 (ix86_expand_floorceildf_32): Likewise.
2714 (ix86_expand_floorceil): Likewise.
2715 (ix86_expand_rounddf_32): Likewise.
2716 (ix86_expand_trunc): Likewise.
2717 (ix86_expand_truncdf_32): Likewise.
2718 (ix86_expand_round): Likewise.
2719
2720 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2721
2722 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2723 first param from rtx to rtx_insn *.
2724 (h8300_insn_length_from_table): Likewise.
2725 * config/h8300/h8300.c (F): Likewise for return type and param
2726 "x".
2727 (Fpa): Add a checked cast to rtx_insn *.
2728 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2729 rtx_insn *.
2730 (final_prescan_insn): Likewise for param "insn".
2731 (h8300_binary_length): Likewise.
2732 (h8300_insn_length_from_table): Likewise.
2733
2734 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2735
2736 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2737 Strengthen first param "insn" from rtx to rtx_insn *.
2738
2739 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2740 Likewise.
2741 (frame_insn): Likewise for return type. Introduce local "insn"
2742 for use in place of local "x" for use as an rtx_insn *.
2743 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2744 (epiphany_expand_prologue): Likewise for local "insn".
2745 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2746 * config/epiphany/resolve-sw-modes.c
2747 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2748 "seq".
2749
2750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2751
2752 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2753 param from rtx to rtx_insn *.
2754 (c6x_final_prescan_insn): Likewise for first param.
2755
2756 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2757 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2758 (c6x_expand_compare): Strengthen local "insns" from rtx to
2759 rtx_insn *.
2760 (c6x_get_unit_specifier): Likewise for param "insn".
2761 (c6x_print_unit_specifier_field): Likewise.
2762 (c6x_final_prescan_insn): Likewise.
2763 (emit_add_sp_const): Likewise for local "insn".
2764 (c6x_expand_prologue): Likewise.
2765
2766 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2767
2768 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2769 param 1 from rtx to rtx_insn *.
2770 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2771 the various locals named "insn".
2772 (expand_epilogue_reg_restore): Likewise.
2773 (frame_related_constant_load): Likewise.
2774 (add_to_reg): Likewise.
2775 (emit_link_insn): Likewise.
2776 (do_link): Likewise.
2777 (expand_interrupt_handler_prologue): Likewise.
2778 (branch_dest): Likewise for param "branch".
2779 (asm_conditional_branch): Likewise for param "insn".
2780 (gen_one_bundle): Likewise for elements of param "slot" and local
2781 "t".
2782 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2783 elements of local "slot".
2784 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2785 "queue", "next_queue", "prev".
2786 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2787 (add_sched_insns_for_speculation): Likewise for local "insn".
2788
2789 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2790
2791 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2792 from rtx to rtx_insn *.
2793 (output_movhi): Likewise.
2794 (output_movsisf): Likewise.
2795 (avr_out_tstsi): Likewise.
2796 (avr_out_tsthi): Likewise.
2797 (avr_out_tstpsi): Likewise.
2798 (avr_out_compare): Likewise.
2799 (avr_out_compare64): Likewise.
2800 (avr_out_movpsi): Likewise.
2801 (ashlqi3_out): Likewise.
2802 (ashlhi3_out): Likewise.
2803 (ashlsi3_out): Likewise.
2804 (ashrqi3_out): Likewise.
2805 (ashrhi3_out): Likewise.
2806 (ashrsi3_out): Likewise.
2807 (lshrqi3_out): Likewise.
2808 (lshrhi3_out): Likewise.
2809 (lshrsi3_out): Likewise.
2810 (avr_out_ashlpsi3): Likewise.
2811 (avr_out_ashrpsi3): Likewise.
2812 (avr_out_lshrpsi3): Likewise.
2813 (avr_out_fract): Likewise.
2814 (avr_out_sbxx_branch): Likewise.
2815 (avr_out_round): Likewise.
2816 (avr_out_xload): Likewise.
2817 (avr_out_movmem): Likewise.
2818 (adjust_insn_length): Likewise.
2819 (avr_out_lpm): Likewise.
2820 (reg_unused_after): Likewise.
2821 (_reg_unused_after): Likewise.
2822 (avr_jump_mode): Likewise for second param.
2823 (jump_over_one_insn): Likewise for first param.
2824 (avr_final_prescan_insn): Likewise.
2825 (out_shift_with_cnt): Likewise for second param.
2826
2827 * config/avr/avr.c (get_sequence_length): Likewise for param
2828 "insns" and local "insn".
2829 (emit_push_byte): Likewise for local "insn".
2830 (emit_push_sfr): Likewise.
2831 (avr_prologue_setup_frame): Likewise for locals "insn",
2832 "fp_plus_insns", "sp_plus_insns".
2833 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2834 "sp_plus_insns".
2835 (avr_jump_mode): Likewise for param "insn".
2836 (avr_final_prescan_insn): Likewise.
2837 (avr_find_unused_d_reg): Likewise.
2838 (avr_out_lpm_no_lpmx): Likewise.
2839 (avr_out_lpm): Likewise.
2840 (avr_out_xload): Likewise.
2841 (output_movqi): Likewise.
2842 (output_movhi): Likewise.
2843 (out_movqi_r_mr): Likewise.
2844 (out_movhi_r_mr): Likewise.
2845 (out_movsi_r_mr): Likewise.
2846 (out_movsi_mr_r): Likewise.
2847 (output_movsisf): Likewise.
2848 (avr_out_load_psi): Likewise.
2849 (avr_out_store_psi): Likewise.
2850 (avr_out_movpsi): Likewise.
2851 (out_movqi_mr_r): Likewise.
2852 (avr_out_movhi_mr_r_xmega): Likewise.
2853 (out_movhi_mr_r): Likewise.
2854 (compare_condition): Likewise for param "insn" and local "next".
2855 (compare_sign_p): Likewise for param "insn".
2856 (compare_diff_p): Likewise.
2857 (compare_eq_p): Likewise.
2858 (avr_out_compare): Likewise.
2859 (avr_out_compare64): Likewise.
2860 (avr_out_tsthi): Likewise.
2861 (avr_out_tstpsi): Likewise.
2862 (avr_out_tstsi): Likewise.
2863 (out_shift_with_cnt): Likewise.
2864 (ashlqi3_out): Likewise.
2865 (ashlhi3_out): Likewise.
2866 (avr_out_ashlpsi3): Likewise.
2867 (ashlsi3_out): Likewise.
2868 (ashrqi3_out): Likewise.
2869 (ashrhi3_out): Likewise.
2870 (avr_out_ashrpsi3): Likewise.
2871 (ashrsi3_out): Likewise.
2872 (lshrqi3_out): Likewise.
2873 (lshrhi3_out): Likewise.
2874 (avr_out_lshrpsi3): Likewise.
2875 (lshrsi3_out): Likewise.
2876 (avr_out_fract): Likewise.
2877 (avr_out_round): Likewise.
2878 (avr_adjust_insn_length): Likewise.
2879 (reg_unused_after): Likewise.
2880 (_reg_unused_after): Likewise.
2881 (avr_compare_pattern): Likewise.
2882 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2883 and locals "branch1", "branch2", "insn2", "jump".
2884 (avr_reorg): Likewise for local "insn".
2885 (avr_2word_insn_p): Likewise for param "insn".
2886 (jump_over_one_insn_p): Likewise.
2887 (avr_out_sbxx_branch): Likewise.
2888 (avr_out_movmem): Likewise.
2889
2890 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2891
2892 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2893 param from rtx to rtx_insn *.
2894 (thumb1_final_prescan_insn): Likewise.
2895 (thumb2_final_prescan_insn): Likewise.
2896
2897 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2898 rtx to rtx_insn *.
2899 (struct minipool_node): Likewise for field "insn".
2900 (dump_minipool): Likewise for param "scan".
2901 (create_fix_barrier): Likewise for local "from". Strengthen local
2902 "label" from rtx to rtx_code_label *.
2903 (push_minipool_barrier): Strengthen param "insn" from rtx to
2904 rtx_insn *.
2905 (push_minipool_fix): Likewise.
2906 (note_invalid_constants): Likewise.
2907 (thumb2_reorg): Likewise for local "insn".
2908 (arm_reorg): Likewise.
2909 (thumb2_final_prescan_insn): Likewise for param
2910 "insn" and local "first_insn".
2911 (arm_final_prescan_insn): Likewise for param "insn" and locals
2912 "start_insn", "this_insn".
2913 (arm_debugger_arg_offset): Likewise for param "insn".
2914 (thumb1_emit_multi_reg_push): Likewise for return type and local
2915 "insn".
2916 (thumb1_final_prescan_insn): Likewise for param "insn".
2917 (thumb_far_jump_used_p): Likewise for local "insn".
2918 (thumb1_expand_prologue): Likewise.
2919 (arm_expand_epilogue_apcs_frame): Likewise.
2920 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2921 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2922 from rtx to rtx_code_label *.
2923 (arm_split_atomic_op): Likewise for local "label".
2924 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2925
2926 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2927
2928 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2929 first param from rtx to rtx_insn *.
2930 (arc_verify_short): Likewise.
2931 (arc_short_long): Likewise.
2932 (arc_need_delay): Likewise.
2933
2934 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2935 "target_insn".
2936 (arc_ccfsm_advance): Likewise for param "insn" and locals
2937 "start_insn", "this_insn".
2938 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2939 (arc_ccfsm_post_advance): Likewise for param "insn".
2940 (arc_next_active_insn): Likewise for return type and param "insn".
2941 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2942 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2943 (output_short_suffix): Likewise for local "insn".
2944 (arc_final_prescan_insn): Likewise for param "insn". Remove
2945 now-redundant checked cast.
2946 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2947 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2948 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2949 for use where lc_set became an insn.
2950 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2951 rtx to rtx_insn *.
2952 (arc_get_insn_variants): Likewise for local "prev".
2953 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2954 "next".
2955 (arc_predicate_delay_insns): Likewise for local "insn".
2956 (arc_pad_return): Likewise for local "prev". For now, add a
2957 checked cast when extracting the insn from "final_sequence".
2958 (arc_short_long): Likewise for param "insn".
2959 (arc_need_delay): Likewise for param "insn" and local "next".
2960 (arc_label_align): Likewise for locals "prev", "next".
2961
2962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2963
2964 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2965 "insn" from rtx to rtx_insn *.
2966 (alpha_gp_save_rtx): Likewise for local "seq".
2967 (alpha_instantiate_decls): Likewise for local "top".
2968 (get_some_local_dynamic_name): Likewise for local "insn".
2969 (alpha_does_function_need_gp): Likewise.
2970 (set_frame_related_p): Likewise for return type and for locals
2971 "seq" and "insn".
2972 (emit_frame_store_1): Likewise for local "insn".
2973 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2974 (alpha_end_function): Likewise for local "insn".
2975 (alpha_output_mi_thunk_osf): Likewise.
2976 (alphaev4_insn_pipe): Likewise for param "insn".
2977 (alphaev5_insn_pipe): Likewise.
2978 (alphaev4_next_group): Likewise for return type and param 1
2979 "insn".
2980 (alphaev5_next_group): Likewise.
2981 (alpha_align_insns_1): Likewise for return type and param 1 of
2982 callback param "next_group", and for locals "i", "next", "prev",
2983 "where", "where2", "insn".
2984
2985 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2986
2987 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2988 rather than modifying the stmt.
2989
2990 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2991
2992 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2993 cgraph_state conversion.
2994
2995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2996
2997 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2998 Strengthen local "insns" from rtx to rtx_insn *.
2999 (aarch64_set_frame_expr): Likewise for local "insn".
3000 (aarch64_save_or_restore_fprs): Likewise.
3001 (aarch64_save_or_restore_callee_save_registers): Likewise.
3002 (aarch64_expand_prologue): Likewise.
3003 (aarch64_expand_epilogue): Likewise.
3004 (aarch64_output_mi_thunk): Likewise.
3005 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3006 "label2" from rtx to rtx_code_label *.
3007 (aarch64_split_atomic_op): Likewise for local "label".
3008
3009 2014-08-25 Martin Liska <mliska@suse.cz>
3010
3011 * cgraph.h (symtab_node):
3012 (bool needed_p (void)): created from decide_is_symbol_needed
3013 (bool referred_to_p (void)): created from referred_to_p
3014 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3015 * cgraph.h (cgraph_node):
3016 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3017 (void expand (void)): created from expand_function
3018 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3019 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3020 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3021 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3022 * cgraph.h (varpool_node):
3023 (static void add (tree decl): created from varpool_add_new_variable
3024 * cgraph.h (cgraph_edge):
3025 void remove (void);
3026 (void remove_caller (void)): created from cgraph_edge_remove_caller
3027 (void remove_callee (void)): created from cgraph_edge_remove_callee
3028 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3029 created from cgraph_set_call_stmt
3030 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3031 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3032 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3033 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3034 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3035 created from cgraph_speculative_call_info
3036 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3037 int freq_scale, bool update_original)): created from cgraph_clone_edge
3038 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3039 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3040 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3041 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3042 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3043 (static void rebuild_references (void)): created from cgraph_rebuild_references
3044 * cgraph.h (symbol_table):
3045 (create_reference): renamed from add_reference
3046 (maybe_create_reference): renamed from maybe_add_reference
3047 (void register_symbol (symtab_node *node)): new function
3048 (void clear_asm_symbols (void)): new function
3049 (void unregister (symtab_node *node)): new function
3050 (void release_symbol (cgraph_node *node, int uid)): new function
3051 (cgraph_node * allocate_cgraph_symbol (void)): new function
3052 (void initialize (void)): created from cgraph_init
3053 (symtab_node *first_symbol (void)):new function
3054 (asm_node *first_asm_symbol (void)):new function
3055 (symtab_node *first_defined_symbol (void)):new function
3056 (varpool_node *first_variable (void)):new function
3057 (varpool_node *next_variable (varpool_node *node)):new function
3058 (varpool_node *first_static_initializer (void)):new function
3059 (varpool_node *next_static_initializer (varpool_node *node)):new function
3060 (varpool_node *first_defined_variable (void)):new function
3061 (varpool_node *next_defined_variable (varpool_node *node)):new function
3062 (cgraph_node *first_defined_function (void)):new function
3063 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3064 (cgraph_node *first_function (void)):new function
3065 (cgraph_node *next_function (cgraph_node *node)):new function
3066 (cgraph_node *first_function_with_gimple_body (void)):new function
3067 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3068 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3069 created from symtab_remove_unreachable_nodes
3070 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3071 (void process_new_functions (void)): created from cgraph_process_new_functions
3072 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3073 (bool output_variables (void)): created from varpool_node::output_variables
3074 (void output_asm_statements (void)): created from output_asm_statements
3075 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3076 (void compile (void)): created from compile
3077 (void output_weakrefs (void)): created from output_weakrefs
3078 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3079 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3080 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3081 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3082 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3083 created from cgraph_next_function_with_gimple_body
3084 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3085 created from cgraph_remove_edge_removal_hook
3086 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3087 created from cgraph_add_node_removal_hook
3088 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3089 created from cgraph_remove_node_removal_hook
3090 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3091 created from varpool_add_node_removal_hook
3092 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3093 created from varpool_remove_node_removal_hook
3094 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3095 created from cgraph_add_function_insertion_hook
3096 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3097 created from cgraph_remove_function_insertion_hook
3098 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3099 created from varpool_add_variable_insertion_hook
3100 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3101 created from varpool_remove_variable_insertion_hook
3102 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3103 created from cgraph_add_edge_duplication_hook
3104 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3105 created from cgraph_remove_edge_duplication_hook
3106 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3107 created from cgraph_add_node_duplication_hook
3108 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3109 created from cgraph_remove_node_duplication_hook
3110 (void call_edge_removal_hooks (cgraph_edge *e)):
3111 created from cgraph_call_edge_removal_hooks
3112 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3113 created from call_function_insertion_hooks
3114 (void call_cgraph_removal_hooks (cgraph_node *node)):
3115 created from cgraph_call_node_removal_hooks
3116 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3117 created from cgraph_node::call_duplication_hooks
3118 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3119 created from cgraph_call_edge_duplication_hooks
3120 (void call_varpool_removal_hooks (varpool_node *node)):
3121 created from varpool_call_node_removal_hooks
3122 (void call_varpool_insertion_hooks (varpool_node *node)):
3123 created from varpool_call_variable_insertion_hooks
3124 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3125 created from insert_to_assembler_name_hash
3126 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3127 created from unlink_from_assembler_name_hash
3128 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3129 created from symtab_prevail_in_asm_name_hash
3130 (void symtab_initialize_asm_name_hash (void)):
3131 created from symtab_initialize_asm_name_hash
3132 (void change_decl_assembler_name (tree decl, tree name)):
3133 created from change_decl_assembler_name
3134 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3135 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3136 created from decl_assembler_name_hash
3137 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3138 created from decl_assembler_name_equal
3139 (static hashval_t hash_node_by_assembler_name (const void *p)):
3140 created from hash_node_by_assembler_name
3141 (static int eq_assembler_name (const void *p1, const void *p2)):
3142 created from eq_assembler_name
3143
3144 2014-08-25 Marek Polacek <polacek@redhat.com>
3145
3146 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3147
3148 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3149
3150 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3151 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3152 SWI1248_AVX512BW mode iterator.
3153
3154 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3155
3156 PR target/62111
3157 * config/sh/predicates.md (general_extend_operand): Disable
3158 TRUNCATE before reload completes.
3159
3160 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3161
3162 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3163
3164 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3165
3166 PR target/61996
3167 * config/sh/sh.opt (musermode): Allow negative form.
3168 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3169 targets that don't support it.
3170 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3171 Document -mno-usermode option.
3172
3173 2014-08-24 Kito Cheng <kito@0xlab.org>
3174
3175 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3176 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3177 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3178 * doc/tm.texi: Regenerate.
3179
3180 2014-08-24 Kito Cheng <kito@0xlab.org>
3181
3182 * ira.c: Fix typo in comment.
3183
3184 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3185
3186 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3187 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3188
3189 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3190
3191 PR target/62038
3192 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3193 last_address when the current function is a thunk.
3194 (pa_asm_output_mi_thunk): When we don't have named sections or they
3195 are not being used, check that thunk can reach the stub table with a
3196 short branch.
3197
3198 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3199
3200 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3201 rtx_insn *.
3202 (pass_web::execute): Likewise for local "insn".
3203
3204 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3205
3206 * var-tracking.c (struct micro_operation_def): Strengthen field
3207 "insn" from rtx to rtx_insn *.
3208 (struct emit_note_data_def): Likewise.
3209 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3210 (vt_stack_adjustments): Likewise for local "insn".
3211 (adjust_insn): Likewise for param "insn".
3212 (val_store): Likewise.
3213 (val_resolve): Likewise.
3214 (struct count_use_info): Likewise for field "insn".
3215 (log_op_type): Likewise for param "insn".
3216 (reverse_op): Likewise.
3217 (prepare_call_arguments): Likewise.
3218 (add_with_sets): The initial param takes an insn, but we can't
3219 yet strengthen it from rtx to rtx_insn * since it's used as a
3220 cselib_record_sets_hook callback. For now rename initial param
3221 from "insn" to "uncast_insn", and introduce a local "insn" of
3222 the stronger rtx_insn * type, with a checked cast.
3223 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3224 rtx_insn *.
3225 (emit_note_insn_var_location): Likewise.
3226 (emit_notes_for_changes): Likewise.
3227 (emit_notes_for_differences): Likewise.
3228 (next_non_note_insn_var_location): Likewise for return type and
3229 for param "insn".
3230 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3231 (vt_initialize): Likewise for local "insn".
3232 (delete_debug_insns): Likewise for locals "insn" and "next".
3233
3234 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3235
3236 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3237 rtx_insn *.
3238 (mark_constant_pool): Likewise for local "insn".
3239
3240 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3241
3242 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3243 rtx to rtx_insn *.
3244 (dead_debug_promote_uses): Likewise.
3245 (dead_debug_insert_temp): Likewise.
3246
3247 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3248
3249 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3250 from const_rtx to const rtx_insn *.
3251 (store_killed_after): Likewise. Strengthen locals "last", "act"
3252 from rtx to rtx_insn *.
3253 (store_killed_before): Strengthen param "insn" from const_rtx to
3254 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3255 (find_moveable_store): Strengthen param "insn" from rtx to
3256 rtx_insn *.
3257 (compute_store_table): Likewise for local "insn".
3258 (insert_insn_start_basic_block): Likewise for param "insn" and
3259 locals "prev", "before", "insn".
3260 (insert_store): For now, add a checked cast to rtx_insn * on the
3261 result of gen_move_insn.
3262 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3263 to rtx_insn *.
3264 (replace_store_insn): Likewise. For now, add a checked cast to
3265 rtx_insn * on the result of gen_move_insn.
3266
3267 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3268
3269 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3270 rtx_insn *.
3271 (expand_sjlj_dispatch_table): Likewise.
3272
3273 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3274
3275 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3276 "insn" from rtx to rtx_insn *.
3277
3278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3279
3280 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3281 "insn" from rtx to rtx_insn *.
3282 (dup_block_and_redirect): Likewise for param 3 "before".
3283
3284 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3285 from rtx to rtx_insn *.
3286 (move_insn_for_shrink_wrap): Likewise.
3287 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3288 (dup_block_and_redirect): Likewise for param "before" and local
3289 "insn".
3290 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3291 "end".
3292 (convert_to_simple_return): Likewise for local "start".
3293
3294 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3295 Strengthen local "insn" from rtx to rtx_insn *, for use when
3296 invoking requires_stack_frame_p.
3297
3298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3299
3300 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3301 rtx_insn *.
3302 (speculate_expr): Likewise for locals "orig_insn_rtx",
3303 "spec_insn_rtx".
3304 (eq_transformed_insns): Likewise for locals "i1", "i2".
3305 (check_for_new_jump): Likewise for return type and local "end".
3306 (find_new_jump): Likewise for return type and local "jump".
3307 (sel_split_edge): Likewise for local "jump".
3308 (sel_create_recovery_block): Likewise.
3309 (sel_redirect_edge_and_branch_force): Likewise.
3310 (sel_redirect_edge_and_branch): Likewise.
3311
3312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3313
3314 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3315 "new_insn" from rtx to rtx_insn *.
3316 (create_insn_rtx_with_rhs): Likewise for return type and for local
3317 "insn_rtx".
3318 (create_insn_rtx_with_lhs): Likewise.
3319 (create_speculation_check): Likewise for local "insn_rtx".
3320 (implicit_clobber_conflict_p): Likewise for local "insn".
3321 (get_expr_cost): Likewise.
3322 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3323 (move_cond_jump): Likewise for locals "next", "prev", "link",
3324 "head", "from", "to".
3325
3326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3327
3328 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3329 "next" from rtx to rtx_insn *.
3330 (find_conditional_protection): Likewise for local "next".
3331 (is_conditionally_protected): Likewise for local "insn1".
3332 (is_pfree): Likewise for locals "insn1", "insn2".
3333
3334 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3335
3336 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3337 from rtx to rtx_insn *.
3338
3339 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3340 locals "insn1", "insn2" from rtx to rtx_insn *.
3341 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3342 locals "insn", "prev", "last_jump", "next_tail".
3343 (schedule_ebb): Likewise for params "head", "tail".
3344 (schedule_ebbs): Likewise for locals "tail", "head".
3345
3346 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3347 to rtx_insn on "last_insn" in one of the invocations of
3348 schedule_ebb.
3349
3350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3351
3352 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3353 "elem", "insn" from rtx to rtx_insn *.
3354 (change_spec_dep_to_hard): Likewise.
3355 (get_back_and_forw_lists): Likewise for local "con".
3356 (sd_add_dep): Likewise for locals "elem", "insn".
3357 (sd_resolve_dep): Likewise for locals "pro", "con".
3358 (sd_unresolve_dep): Likewise.
3359 (sd_delete_dep): Likewise.
3360 (chain_to_prev_insn): Likewise for local "pro".
3361 (find_inc): Likewise for locals "pro", "con".
3362
3363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3364
3365 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3366 to rtx_insn *.
3367 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3368 const rtx_insn *.
3369 (modified_between_p): Strengthen local "insn" from rtx to
3370 rtx_insn *.
3371 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3372 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3373 const rtx_insn *.
3374
3375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3376
3377 * resource.c (next_insn_no_annul): Strengthen local "next" from
3378 rtx to rtx_insn *.
3379 (mark_referenced_resources): Likewise for local "insn".
3380
3381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3382
3383 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3384 to rtx_insn *.
3385 (find_reloads): Likewise for param 1.
3386 (subst_reloads): Likewise for sole param.
3387 (find_equiv_reg): Likwise for param 2.
3388 (regno_clobbered_p): Likwise for param 2.
3389 (reload): Likewise for param 1.
3390
3391 * caller-save.c (save_call_clobbered_regs): Strengthen local
3392 "insn" from rtx to rtx_insn *.
3393 (insert_one_insn): Likewise for local "insn".
3394
3395 * reload.c (this_insn): Likewise for this global.
3396 (find_reloads): Likewise for param "insn".
3397 (find_reloads_toplev): Likewise.
3398 (find_reloads_address): Likewise.
3399 (subst_reg_equivs): Likewise.
3400 (update_auto_inc_notes): Likewise.
3401 (find_reloads_address_1): Likewise.
3402 (find_reloads_subreg_address): Likewise.
3403 (subst_reloads): Likewise.
3404 (find_equiv_reg): Likewise, also for local "p".
3405 (regno_clobbered_p): Likewise for param "insn".
3406
3407 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3408 array.
3409 (spill_reg_store): Likewise for the elements of this array.
3410 (remove_init_insns): Likewise for local "equiv_insn".
3411 (will_delete_init_insn_p): Likewise for param "insn".
3412 (reload): Likewise for param ""first" and local "insn".
3413 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3414 rtx_insn *.
3415 (calculate_elim_costs_all_insns): Likewise.
3416 (delete_caller_save_insns): Likewise.
3417 (spill_failure): Likewise for param "insn".
3418 (delete_dead_insn): Likewise.
3419 (set_label_offsets): Likewise.
3420 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3421 "prev_insn".
3422 (elimination_costs_in_insn): Likewise for param "insn".
3423 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3424 when referring to an insn.
3425 (set_initial_label_offsets): Likewise.
3426 (set_offsets_for_label): Strengthen param "insn" from rtx to
3427 rtx_insn *.
3428 (init_eliminable_invariants): Likewise for param "first" and local
3429 "insn".
3430 (fixup_eh_region_note): Likewise for param "insn".
3431 (reload_as_needed): Likewise for locals "prev", "insn",
3432 "old_next", "old_prev", "next".
3433 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3434 "last".
3435 (reload_inheritance_insn): Strengthen elements of this array from
3436 rtx to rtx_insn *.
3437 (failed_reload): Likewise for param "insn".
3438 (choose_reload_regs): Likewise for local "insn". Replace use of
3439 NULL_RTX with NULL when referring to an insn.
3440 (input_reload_insns): Strengthen elements of this array from rtx
3441 to rtx_insn *.
3442 (other_input_address_reload_insns): Likewise for this global.
3443 (other_input_reload_insns): Likewise for this global.
3444 (input_address_reload_insns): Likwise for the elements of this
3445 array.
3446 (inpaddr_address_reload_insns): Likwise for the elements of this
3447 array.
3448 (output_reload_insns): Likewise for the elements of this array.
3449 (output_address_reload_insns): Likewise for the elements of this
3450 array.
3451 (outaddr_address_reload_insns): Likewise for the elements of this
3452 array.
3453 (operand_reload_insns): Likewise for this global.
3454 (other_operand_reload_insns): Likewise for this global.
3455 (other_output_reload_insns): Likewise for the elements of this
3456 array.
3457 (new_spill_reg_store): Likewise for the elements of this
3458 array.
3459 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3460 Strengthen local "where" from rtx * to rtx_insn **.
3461 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3462 from rtx to rtx_insn *.
3463 (do_input_reload): Likewise for local "insn".
3464 (do_output_reload): Likewise for local "insn".
3465 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3466 (emit_insn_if_valid_for_reload): Likewise for return type and local
3467 "last". Add checked cast to rtx_insn when returning "insn" since
3468 this has been through emit_insn.
3469 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3470 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3471 returning "insn" since it's been through
3472 emit_insn_if_valid_for_reload at this point.
3473 (delete_output_reload): Strengthen param "insn" and locals
3474 "output_reload_insn", "i2" from rtx to rtx_insn *.
3475 (delete_address_reloads): Likewise for params "dead_insn",
3476 "current_insn" and locals "prev", "next".
3477 (delete_address_reloads_1): Likewise for params "dead_insn",
3478 "current_insn" and locals "prev", "i2".
3479 (inc_for_reload): Likewise for locals "last", "add_insn".
3480 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3481 rtx_insn *.
3482
3483 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3484 param of this duplicate of the prototype from reload.h
3485
3486 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3487
3488 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3489 rtx to rtx_insn *.
3490 (regstat_bb_compute_calls_crossed): Likewise.
3491
3492 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3493
3494 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3495 to rtx_insn *.
3496 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3497 with an insn.
3498 (regrename_analyze): Strengthen local "insn" from rtx to
3499 rtx_insn *.
3500 (scan_rtx_reg): Likewise for param "insn".
3501 (scan_rtx_address): Likewise.
3502 (scan_rtx): Likewise.
3503 (restore_operands): Likewise.
3504 (record_out_operands): Likewise.
3505 (build_def_use): Likewise for local "insn". Replace use of
3506 NULL_RTX with NULL when dealing with an insn.
3507
3508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3509
3510 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3511 * reginfo.c (reg_scan): Likewise, also for local "insn".
3512 (reg_scan_mark_refs): Likewise for param "insn".
3513 (init_subregs_of_mode): Likewise for local "insn".
3514
3515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3516
3517 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3518 "insn" from rtx to rtx_insn *.
3519 (replace_oldest_value_reg): Likewise for param "insn".
3520 (replace_oldest_value_addr): Likewise.
3521 (replace_oldest_value_mem): Likewise.
3522 (apply_debug_insn_changes): Likewise for local "last_insn".
3523 (copyprop_hardreg_forward_1): Likewise for local "insn".
3524
3525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3526
3527 * reg-stack.c (next_flags_user): Strengthen return type and param
3528 "insn" from rtx to rtx_insn *.
3529 (straighten_stack): Likewise for param "insn".
3530 (check_asm_stack_operands): Likewise.
3531 (remove_regno_note): Likewise.
3532 (emit_pop_insn): Likewise for return type, param "insn", local
3533 "pop_insn".
3534 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3535 "limit" from rtx to rtx_insn *.
3536 (swap_to_top): Likewise for param "insn".
3537 (move_for_stack_reg): Likewise.
3538 (move_nan_for_stack_reg): Likewise.
3539 (swap_rtx_condition): Likewise.
3540 (compare_for_stack_reg): Likewise.
3541 (subst_all_stack_regs_in_debug_insn): Likewise.
3542 (subst_stack_regs_pat): Likewise, and local "insn2".
3543 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3544 rtx_insn *.
3545 (subst_stack_regs): Likewise.
3546 (change_stack): Likewise.
3547 (convert_regs_1): Likewise for locals "insn", "next".
3548
3549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3550
3551 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3552 rtx_insn *.
3553 (combine_set_extension): Likewise for param "curr_insn".
3554 (transform_ifelse): Likewise for param "def_insn".
3555 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3556 from vec<rtx> * to vec<rtx_insn *> *.
3557 (is_cond_copy_insn): Likewise for param "insn".
3558 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3559 to vec<rtx_insn *>.
3560 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3561 local "def_insn" from rtx to rtx_insn *.
3562 (get_sub_rtx): Likewise for param "def_insn".
3563 (merge_def_and_ext): Likewise.
3564 (combine_reaching_defs): Likewise.
3565 (add_removable_extension): Likewise for param "insn".
3566 (find_removable_extensions): Likewise for local "insn".
3567 (find_and_remove_re): Likewise for locals "curr_insn" and
3568 "def_insn". Strengthen locals "reinsn_del_list" and
3569 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3570
3571 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3572
3573 * recog.c (split_insn): Strengthen param "insn" and locals
3574 "first", "last" from rtx to rtx_insn *.
3575 (split_all_insns): Likewise for locals "insn", "next".
3576 (split_all_insns_noflow): Likewise.
3577
3578 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3579
3580 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3581 const rtx_insn *.
3582 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3583 (debug_rtx_find): Likewise for param 1 "x".
3584
3585 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3586 const_rtx to const rtx_insn *. Likewise for local "insn".
3587 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3588 (debug_rtx_find): Likewise for param 1 "x".
3589 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3590 from const_rtx to const rtx_insn * within the appropriate cases of
3591 the switch statement.
3592
3593 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3594 Strengthen local "insns" from rtx to rtx_insn * since this is
3595 passed to a call to debug_rtx_list.
3596
3597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3598
3599 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3600 to rtx_insn *.
3601
3602 * function.c (stack_protect_epilogue): Add checked cast to
3603 rtx_insn for now when invoking predict_insn_def.
3604
3605 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3606 rtx_insn *.
3607 (predict_insn_def): Likewise.
3608 (rtl_predict_edge): Likewise for local "last_insn".
3609 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3610 const rtx_insn *.
3611 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3612 to rtx_insn *.
3613 (bb_estimate_probability_locally): Likewise for local "last_insn".
3614 (expensive_function_p): Likewise for local "insn".
3615
3616 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3617 local "jmp", since this is used when invoking predict_insn_def.
3618
3619 2014-08-22 Marek Polacek <polacek@redhat.com>
3620
3621 PR c++/62199
3622 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3623
3624 2014-08-22 Marek Polacek <polacek@redhat.com>
3625
3626 PR c/61271
3627 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3628 a comparison in parens.
3629 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3630 in parens.
3631
3632 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3633
3634 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3635 rtx_insn *.
3636
3637 * cprop.c (fis_get_condition): Likewise.
3638
3639 * postreload.c (reload_cse_regs): Likewise for param "first".
3640 (reload_cse_simplify): Likewise for param "insn".
3641 (reload_cse_regs_1): Likewise for local "insn".
3642 (reload_cse_simplify_set): Likewise for param "insn".
3643 (reload_cse_simplify_operands): Likewise.
3644 (struct reg_use): Likewise for field "insn".
3645 (reload_combine_purge_insn_uses): Likewise for param "insn".
3646 (fixup_debug_insns): Likewise for params "from", "to" and local
3647 "insn".
3648 (try_replace_in_use): Likewise for local "use_insn".
3649 (reload_combine_recognize_const_pattern): Likewise for param
3650 "insn" and locals "add_moved_after_insn", "use_insn".
3651 (reload_combine_recognize_pattern): Likewise for param "insn" and
3652 local "prev".
3653 (reload_combine): Likewise for locals "insn", "prev".
3654 (reload_combine_note_use): Likewise for param "insn".
3655 (move2add_use_add2_insn): Likewise.
3656 (move2add_use_add3_insn): Likewise.
3657 (reload_cse_move2add): Likewise, also for local "next".
3658 (move2add_note_store): Likewise for local "insn".
3659
3660 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3661
3662 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3663 rtx to rtx_insn *.
3664 (struct unoccr): Likewise.
3665 (struct modifies_mem): Likewise.
3666 (alloc_mem): Likewise for local "insn".
3667 (insert_expr_in_table): Likewise for param "insn".
3668 (dump_expr_hash_table_entry): Likewise for local "insn".
3669 (oprs_unchanged_p): Likewise for param "insn".
3670 (load_killed_in_block_p): Likewise for local "setter".
3671 (record_last_reg_set_info): Likewise for param "insn".
3672 (record_last_reg_set_info_regno): Likewise.
3673 (record_last_mem_set_info): Likewise.
3674 (record_last_set_info): Likewise for local "last_set_insn".
3675 (record_opr_changes): Likewise for param "insn".
3676 (hash_scan_set): Likewise.
3677 (compute_hash_table): Likewise for local "insn".
3678 (get_avail_load_store_reg): Likewise for param "insn".
3679 (eliminate_partially_redundant_load): Likewise, also for locals
3680 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3681 RTX for insns.
3682 (eliminate_partially_redundant_loads): Likewise for local "insn".
3683
3684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3685
3686 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3687 rtx to rtx_insn *.
3688 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3689 (expand_twoval_unop): Likewise for locals entry_last", "last".
3690 (expand_twoval_binop): Likewise.
3691 (expand_twoval_binop_libfunc): Likewise for local "insns".
3692 (widen_leading): Likewise for local "last".
3693 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3694 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3695 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3696 (expand_parity): Likewise for locals "last" and "seq".
3697 (expand_ffs): Likewise for local "seq". Strengthen local
3698 "nonzero_label" from rtx to rtx_code_label *.
3699 (expand_absneg_bit): Strengthen local "insns" from rtx to
3700 rtx_insn *.
3701 (expand_unop_direct): Likewise for local "last".
3702 (expand_unop): Likewise for locals "last", "insns".
3703 (expand_abs_nojump): Likewise for local "last".
3704 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3705 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3706 rtx_insn *.
3707 (expand_copysign_absneg): Strengthen local "label" from rtx to
3708 rtx_code_label *.
3709 (expand_copysign_bit): Strengthen local "insns" from rtx to
3710 rtx_insn *.
3711 (struct no_conflict_data): Likewise for fields "first", "insn".
3712 (emit_libcall_block_1): Likewise for param "insns" and locals
3713 "next", "last", "insn".
3714 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3715 on "insns" when invoking emit_libcall_block_1. Ultimately we
3716 want to strengthen insns itself.
3717 (prepare_cmp_insn): Strengthen local "last" from rtx to
3718 rtx_insn *.
3719 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3720 (prepare_float_lib_cmp): Likewise for local "insns".
3721 (emit_conditional_move): Likewise for local "last".
3722 (emit_conditional_add): Likewise.
3723 (have_sub2_insn): Likewise for local "seq".
3724 (expand_float): Likewise for local "insns". Strengthen locals
3725 "label", "neglabel" from rtx to rtx_code_label *.
3726 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3727 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3728 (expand_fixed_convert): Likewise for local "insns" (to
3729 rtx_insn *).
3730 (expand_sfix_optab): Likewise for local "last".
3731 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3732 to rtx_code_label *.
3733 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3734 from rtx to rtx_insn *.
3735 (expand_atomic_fetch_op): Likewise for local "insn".
3736 (maybe_legitimize_operand_same_code): Likewise for local "last".
3737 (maybe_legitimize_operands): Likewise.
3738
3739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3740
3741 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3742 "insn" from rtx to rtx_insn *.
3743 (ps_rtl_insn): Likewise for return type.
3744 (doloop_register_get): Likewise for params "head", "tail" and
3745 locals "insn", "first_insn_not_to_check".
3746 (schedule_reg_move): Likewise for local "this_insn".
3747 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3748 of gen_move_insn for now.
3749 (reset_sched_times): Strengthen local "insn" from rtx to
3750 rtx_insn *.
3751 (permute_partial_schedule): Likewise.
3752 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3753 (dump_insn_location): Likewise for param "insn".
3754 (loop_canon_p): Likewise for local "insn".
3755 (sms_schedule): Likewise.
3756 (print_partial_schedule): Likewise.
3757 (ps_has_conflicts): Likewise.
3758
3759 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3760
3761 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3762 "tailp" from rtx * to rtx_insn **.
3763
3764 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3765 from rtx to rtx_insn *.
3766 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3767 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3768 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3769 rtx to rtx_insn *.
3770 * modulo-sched.c (const_iteration_count): Strengthen return type
3771 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3772 use of NULL_RTX with NULL when working with insns.
3773 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3774 to rtx_insn *.
3775 (sms_schedule): Likewise.
3776 * sched-rgn.c (init_ready_list): Likewise, also for locals
3777 "src_head" and "src_next_tail".
3778 (compute_block_dependences): Likewise.
3779 (free_block_dependencies): Likewise.
3780 (debug_rgn_dependencies): Likewise.
3781 (free_rgn_deps): Likewise.
3782 (compute_priorities): Likewise.
3783 (schedule_region): Likewise.
3784 * sel-sched.c (find_ebb_boundaries): Likewise.
3785
3786 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3787 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3788
3789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3790
3791 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3792 from rtx to rtx_insn *.
3793 (new_seginfo): Likewise for param "insn".
3794 (create_pre_exit): Likewise for locals "last_insn",
3795 "before_return_copy", "return_copy".
3796 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3797 "mode_set".
3798
3799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3800
3801 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3802 from rtx to rtx_insn *.
3803 (lra_push_insn): Likewise for 1st param.
3804 (lra_push_insn_and_update_insn_regno_info): Likewise.
3805 (lra_pop_insn): Likewise for return type.
3806 (lra_invalidate_insn_data): Likewise for 1st param.
3807 (lra_set_insn_deleted): Likewise.
3808 (lra_delete_dead_insn): Likewise.
3809 (lra_process_new_insns): Likewise for first 3 params.
3810 (lra_set_insn_recog_data): Likewise for 1st param.
3811 (lra_update_insn_recog_data): Likewise.
3812 (lra_set_used_insn_alternative): Likewise.
3813 (lra_invalidate_insn_regno_info): Likewise.
3814 (lra_update_insn_regno_info): Likewise.
3815 (lra_former_scratch_operand_p): Likewise.
3816 (lra_eliminate_regs_1): Likewise.
3817 (lra_get_insn_recog_data): Likewise.
3818
3819 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3820 rtx to rtx_insn *.
3821
3822 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3823 "mv1" and "mv2".
3824 (substitute_within_insn): New.
3825 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3826 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3827 Replace call to "substitute" with call to substitute_within_insn.
3828
3829 * lra-constraints.c (curr_insn): Strengthen from rtx to
3830 rtx_insn *.
3831 (get_equiv_with_elimination): Likewise for param "insn".
3832 (match_reload): Strengthen params "before" and "after" from rtx *
3833 to rtx_insn **.
3834 (emit_spill_move): Likewise for return type. Add a checked cast
3835 to rtx_insn * on result of gen_move_insn for now.
3836 (check_and_process_move): Likewise for local "before". Replace
3837 NULL_RTX with NULL when referring to insns.
3838 (process_addr_reg): Strengthen params "before" and "after" from
3839 rtx * to rtx_insn **.
3840 (insert_move_for_subreg): Likewise.
3841 (simplify_operand_subreg): Strengthen locals "before" and "after"
3842 from rtx to rtx_insn *.
3843 (process_address_1): Strengthen params "before" and "after" from
3844 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3845 rtx to rtx_insn *.
3846 (process_address): Strengthen params "before" and "after" from
3847 rtx * to rtx_insn **.
3848 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3849 (curr_insn_transform): Strengthen locals "before" and "after"
3850 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3851 to insns.
3852 (loc_equivalence_callback): Update cast of "data", changing
3853 resulting type from rtx to rtx_insn *.
3854 (substitute_pseudo_within_insn): New.
3855 (inherit_reload_reg): Strengthen param "insn" from rtx to
3856 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3857 NULL when referring to insns. Add a checked cast to rtx_insn *
3858 when using usage_insn to invoke lra_update_insn_regno_info.
3859 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3860 likewise for locals "restore", "save". Add checked casts to
3861 rtx_insn * when using usage_insn to invoke
3862 lra_update_insn_regno_info and lra_process_new_insns. Replace
3863 NULL_RTX with NULL when referring to insns.
3864 (split_if_necessary): Strengthen param "insn" from rtx to
3865 rtx_insn *.
3866 (update_ebb_live_info): Likewise for params "head", "tail" and local
3867 "prev_insn".
3868 (get_last_insertion_point): Likewise for return type and local "insn".
3869 (get_live_on_other_edges): Likewise for local "last".
3870 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3871 "prev_insn", "next_insn", "restore".
3872 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3873 (undo_optional_reloads): Likewise for local "insn".
3874
3875 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3876 "insn".
3877 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3878 insns.
3879 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3880 rtx_insn *.
3881 (spill_pseudos): Likewise for local "insn".
3882 (init_elimination): Likewise.
3883 (process_insn_for_elimination): Likewise for param "insn".
3884
3885 * lra-lives.c (curr_insn): Likewise.;
3886
3887 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3888 (remove_pseudos): Likewise for param "insn".
3889 (spill_pseudos): Likewise for local "insn".
3890 (lra_final_code_change): Likewise for locals "insn", "curr".
3891
3892 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3893 (lra_set_insn_deleted): Likewise.
3894 (lra_delete_dead_insn): Likewise, and for local "prev".
3895 (new_insn_reg): Likewise for param "insn".
3896 (lra_set_insn_recog_data): Likewise.
3897 (lra_update_insn_recog_data): Likewise.
3898 (lra_set_used_insn_alternative): Likewise.
3899 (get_insn_freq): Likewise.
3900 (invalidate_insn_data_regno_info): Likewise.
3901 (lra_invalidate_insn_regno_info): Likewise.
3902 (lra_update_insn_regno_info): Likewise.
3903 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3904 vec<rtx_insn *>.
3905 (lra_push_insn_1): Strengthen param "insn" from rtx to
3906 rtx_insn *.
3907 (lra_push_insn): Likewise.
3908 (lra_push_insn_and_update_insn_regno_info): Likewise.
3909 (lra_pop_insn): Likewise for return type and local "insn".
3910 (push_insns): Likewise for params "from", "to", and local "insn".
3911 (setup_sp_offset): Likewise for params "from", "last" and locals
3912 "before", "insn".
3913 (lra_process_new_insns): Likewise for params "insn", "before",
3914 "after" and local "last".
3915 (struct sloc): Likewise for field "insn".
3916 (lra_former_scratch_operand_p): Likewise for param "insn".
3917 (remove_scratches): Likewise for locals "insn", "last".
3918 (check_rtl): Likewise for local "insn".
3919 (add_auto_inc_notes): Likewise for param "insn".
3920 (update_inc_notes): Likewise for local "insn".
3921 (lra): Replace NULL_RTX with NULL when referring to insn.
3922
3923 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3924
3925 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3926 to rtx_insn *.
3927 (resolve_reg_notes): Likewise.
3928 (resolve_simple_move): Likewise for return type, param "insn", and
3929 locals "insns", "minsn".
3930 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3931 (resolve_use): Likewise.
3932 (resolve_debug): Likewise.
3933 (find_decomposable_shift_zext): Likewise.
3934 (resolve_shift_zext): Likewise for return type, param "insn", and
3935 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3936 (decompose_multiword_subregs): Likewise for local "insn",
3937 "orig_insn", "decomposed_shift", "end".
3938
3939 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3940
3941 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3942 param "insns" from rtx to rtx_insn *.
3943
3944 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3945 rtx to rtx_insn *.
3946 (struct iv_to_split): Likewise.
3947 (loop_exit_at_end_p): Likewise for local "insn".
3948 (split_edge_and_insert): Likewise for param "insns".
3949 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3950 and locals "seq", "jump".
3951 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3952 "branch_code"; update invocations of compare_and_jump_seq to
3953 eliminate NULL_RTX in favor of NULL.
3954 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3955 rtx to rtx_insn *.
3956 (reset_debug_uses_in_loop): Likewise.
3957 (analyze_insn_to_expand_var): Likewise for param "insn".
3958 (analyze_iv_to_split_insn): Likewise.
3959 (analyze_insns_in_loop): Likewise for local "insn".
3960 (insert_base_initialization): Likewise for param
3961 "insn" and local "seq".
3962 (split_iv): Likewise for param "insn" and local "seq".
3963 (expand_var_during_unrolling): Likewise for param "insn".
3964 (insert_var_expansion_initialization): Likewise for local "seq".
3965 (combine_var_copies_in_loop_exit): Likewise.
3966 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3967 "insn".
3968 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3969 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3970 "next".
3971
3972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3973
3974 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3975 rtx_insn *.
3976 (iv_analyze_result): Likewise.
3977 (iv_analyze_expr): Likewise.
3978 (biv_p): Likewise.
3979
3980 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3981 local "def_insn" from rtx to rtx_insn *.
3982 (get_biv_step_1): Likewise for local "insn".
3983 (iv_analyze_expr): Likewise for param "insn".
3984 (iv_analyze_def): Likewise for local "insn".
3985 (iv_analyze_op): Likewise for param "insn".
3986 (iv_analyze): Likewise.
3987 (iv_analyze_result): Likewise.
3988 (biv_p): Likewise.
3989 (suitable_set_for_replacement): Likewise.
3990 (simplify_using_initial_values): Likewise for local "insn".
3991 (iv_number_of_iterations): Likewise for param "insn".
3992 (check_simple_exit): Add checked cast to rtx_insn when invoking
3993 iv_number_of_iterations for now (until get_condition is
3994 strengthened).
3995
3996 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3997 "insn" from rtx to rtx_insn *.
3998 (analyze_insns_in_loop): Likewise for local "insn".
3999
4000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4001
4002 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4003 to rtx_insn *.
4004 (struct invariant): Likewise.
4005 (hash_invariant_expr_1): Likewise for param "insn".
4006 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4007 (find_exits): Likewise for local "insn".
4008 (create_new_invariant): Likewise for param "insn".
4009 (check_dependencies): Likewise.
4010 (find_invariant_insn): Likewise.
4011 (record_uses): Likewise.
4012 (find_invariants_insn): Likewise.
4013 (find_invariants_bb): Likewise for local "insn".
4014 (get_pressure_class_and_nregs): Likewise for param "insn".
4015 (calculate_loop_reg_pressure): Likewise for local "insn".
4016
4017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4018
4019 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4020 to rtx_insn *.
4021 (add_test): Likewise for locals "seq", "jump".
4022 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4023
4024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4025
4026 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4027 rtx_insn *.
4028 (rebuild_jump_labels_chain): Likewise for param "chain".
4029
4030 * cfgexpand.c (pass_expand::execute): Add checked cast to
4031 rtx_insn * when calling rebuild_jump_labels_chain in region where
4032 we know e->insns.r is non-NULL.
4033
4034 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4035 rtx_insn *.
4036 (rebuild_jump_labels): Likewise.
4037 (rebuild_jump_labels_chain): Likewise for param "chain".
4038 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4039 (init_label_info): Likewise for param "f".
4040 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4041 "prev_nonjump_insn".
4042 (mark_all_labels): Likewise for param "f" and locals "insn",
4043 "prev_nonjump_insn".
4044
4045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4046
4047 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4048 from rtx to rtx_insn *insn.
4049 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4050 (ira_add_allocno_copy): Likewise.
4051 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4052 rtx to rtx_insn *.
4053 (ira_create_copy): Likewise.
4054 (ira_add_allocno_copy): Likewise.
4055 (create_bb_allocnos): Likewise for local "insn".
4056 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4057 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4058 process_regs_for_copy for rtx_insn * param.
4059 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4060 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4061 process_regs_for_copy for rtx_insn * param.
4062 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4063 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4064 (record_operand_costs): Likewise.
4065 (scan_one_insn): Likewise for return type, and for param "insn".
4066 (process_bb_for_costs): Likewise for local "insn".
4067 (process_bb_node_for_hard_reg_moves): Likewise.
4068 * ira-emit.c (struct move): Likewise for field "insn".
4069 (create_move): Eliminate use of NULL_RTX when dealing with an
4070 rtx_insn *.
4071 (emit_move_list): Strengthen return type and locals "result",
4072 "insn" from rtx to rtx_insn *insn.
4073 (emit_moves): Likewise for locals "insns", "tmp".
4074 (ira_emit): Likewise for local "insn".
4075 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4076 "insn".
4077 (find_call_crossed_cheap_reg): Likewise.
4078 (process_bb_node_lives): Likewise for local "insn".
4079 * ira.c (decrease_live_ranges_number): Likewise.
4080 (compute_regs_asm_clobbered): Likewise.
4081 (build_insn_chain): Likewise.
4082 (find_moveable_pseudos): Likewise, also locals "def_insn",
4083 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4084 to rtx_insn **. Add a checked cast when assigning from
4085 "closest_use" into closest_uses array in a region where we know
4086 it's a non-NULL insn.
4087 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4088 to rtx_insn *.
4089 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4090 "last_interesting_insn", "uin".
4091 (move_unallocated_pseudos): Likewise for locals "def_insn",
4092 "move_insn", "newinsn".
4093
4094 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4095
4096 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4097 Strengthen locals "done_label", "do_error" from rtx to
4098 rtx_code_label *.
4099 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4100 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4101 rtx_code_label *.
4102 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4103 "done_label", "do_error" to rtx_code_label * and local "last" to
4104 rtx_insn *.
4105 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4106 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4107 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4108 "after_lopart_neg", "do_overflow", "hipart_different" to
4109 rtx_code_label * and local "last" to rtx_insn *.
4110
4111 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4112
4113 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4114 "insn" and "move_insn" from rtx to rtx_insn *.
4115
4116 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4117
4118 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4119 rtx_insn *.
4120 (cheap_bb_rtx_cost_p): Likewise.
4121 (first_active_insn): Likewise for return type and local "insn".
4122 (last_active_insn): Likewise for return type and locals "insn",
4123 "head".
4124 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4125 "insn_b".
4126 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4127 "seq".
4128 (noce_try_move): Likewise for local "seq".
4129 (noce_try_store_flag): Likewise.
4130 (noce_try_store_flag_constants): Likewise.
4131 (noce_try_addcc): Likewise.
4132 (noce_try_store_flag_mask): Likewise.
4133 (noce_try_cmove): Likewise.
4134 (noce_try_minmax): Likewise.
4135 (noce_try_abs): Likewise.
4136 (noce_try_sign_mask): Likewise.
4137 (noce_try_bitop): Likewise.
4138 (noce_can_store_speculate_p): Likewise for local "insn".
4139 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4140 seq".
4141 (check_cond_move_block): Likewise for local "insn".
4142 (cond_move_convert_if_block): Likewise.
4143 (cond_move_process_if_block): Likewise for locals "seq",
4144 "loc_insn".
4145 (noce_find_if_block): Likewise for local "jump".
4146 (merge_if_block): Likewise for local "last".
4147 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4148 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4149 (block_has_only_trap): Likewise for return type and local "trap".
4150 (find_if_case_1): Likewise for local "jump".
4151 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4152 "insn".
4153
4154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4155
4156 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4157 "last_insn", "loop_end" from rtx to rtx_insn *.
4158
4159 * hw-doloop.c (scan_loop): Likewise for local "insn".
4160 (discover_loop): Likewise for param "tail_insn".
4161 (discover_loops): Likewise for local "tail".
4162
4163 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4164 cast to rtx_insn * when assigning from an rtx local to a
4165 hwloop_info's "last_insn" field.
4166
4167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4168
4169 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4170 (add_delay_dependencies): Strengthen local "pro" from rtx to
4171 rtx_insn *.
4172 (recompute_todo_spec): Likewise.
4173 (dep_cost_1): Likewise for locals "insn", "used".
4174 (schedule_insn): Likewise for local "dbg".
4175 (schedule_insn): Likewise for locals "pro", "next".
4176 (unschedule_insns_until): Likewise for local "con".
4177 (restore_pattern): Likewise for local "next".
4178 (estimate_insn_tick): Likewise for local "pro".
4179 (resolve_dependencies): Likewise for local "next".
4180 (fix_inter_tick): Likewise.
4181 (fix_tick_ready): Likewise for local "pro".
4182 (add_to_speculative_block): Likewise for locals "check", "twin",
4183 "pro".
4184 (sched_extend_bb): Likewise for locals "end", "insn".
4185 (init_before_recovery): Likewise for local "x".
4186 (sched_create_recovery_block): Likewise for local "barrier".
4187 (create_check_block_twin): Likewise for local "pro".
4188 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4189 "consumer".
4190 (unlink_bb_notes): Update for change to type of bb_header.
4191 Strengthen locals "prev", "label", "note", "next" from rtx to
4192 rtx_insn *.
4193 (clear_priorities): Likewise for local "pro".
4194
4195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4196
4197 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4198 rtx_insn *.
4199 (test_insn): Likewise for this global.
4200 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4201 const rtx_insn *.
4202 (oprs_anticipatable_p): Likewise.
4203 (oprs_available_p): Likewise.
4204 (insert_expr_in_table): Strengthen param "insn" from rtx to
4205 rtx_insn *.
4206 (hash_scan_set): Likewise.
4207 (hash_scan_clobber): Likewise.
4208 (hash_scan_call): Likewise.
4209 (hash_scan_insn): Likewise.
4210 (compute_hash_table_work): Likewise for local "insn".
4211 (process_insert_insn): Likewise for return type and local "pat".
4212 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4213 "pat", "pat_end", "maybe_cc0_setter".
4214 (pre_edge_insert): Likewise for local "insn".
4215 (pre_insert_copy_insn): Likewise for param "insn".
4216 (pre_insert_copies): Likewise for local "insn".
4217 (struct set_data): Likewise for field "insn".
4218 (single_set_gcse): Likewise for param "insn".
4219 (gcse_emit_move_after): Likewise.
4220 (pre_delete): Likewise for local "insn".
4221 (update_bb_reg_pressure): Likewise for param "from" and local
4222 "insn".
4223 (should_hoist_expr_to_dom): Likewise for param "from".
4224 (hoist_code): Likewise for local "insn".
4225 (get_pressure_class_and_nregs): Likewise for param "insn".
4226 (calculate_bb_reg_pressure): Likewise for local "insn".
4227 (compute_ld_motion_mems): Likewise.
4228
4229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4230
4231 * genpeep.c (main): Rename param back from "uncast_ins1" to
4232 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4233 checked cast.
4234
4235 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4236
4237 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4238
4239 PR target/62195
4240 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4241 documentation to state it is only for VSX operations.
4242
4243 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4244 constraint only active if VSX.
4245
4246 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4247 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4248 (lfiwzx): Likewise.
4249
4250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4251
4252 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4253 Strengthen local "insn" from rtx to rtx_insn *.
4254 (use_killed_between): Likewise for param "target_insn".
4255 (all_uses_available_at): Likewise for param "target_insn" and
4256 local "next".
4257 (update_df_init): Likewise for params "def_insn", "insn".
4258 (update_df): Likewise for param "insn".
4259 (try_fwprop_subst): Likewise for param "def_insn" and local
4260 "insn".
4261 (free_load_extend): Likewise for param "insn".
4262 (forward_propagate_subreg): Likewise for param "def_insn" and
4263 local "use_insn".
4264 (forward_propagate_asm): Likewise for param "def_insn" and local
4265 "use_insn".
4266 (forward_propagate_and_simplify): Likewise for param "def_insn"
4267 and local "use_insn".
4268 (forward_propagate_into): Likewise for locals "def_insn" and
4269 "use_insn".
4270
4271 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4272
4273 * function.c (emit_initial_value_sets): Strengthen local "seq"
4274 from rtx to rtx_insn *.
4275 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4276 local "seq".
4277 (instantiate_virtual_regs): Likewise for local "insn".
4278 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4279 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4280 (expand_function_end): Likewise for locals "insn" and "seq".
4281 (epilogue_done): Likewise for local "insn".
4282 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4283 "last", "trial".
4284 (reposition_prologue_and_epilogue_notes): Likewise for locals
4285 "insn", "last", "note", "first".
4286 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4287 (pass_match_asm_constraints::execute): Likewise for local "insn".
4288
4289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4290
4291 * output.h (final_scan_insn): Strengthen return type from rtx to
4292 rtx_insn *.
4293 (final_forward_branch_p): Likewise for param.
4294 (current_output_insn): Likewise for this global.
4295
4296 * final.c (rtx debug_insn): Likewise for this variable.
4297 (current_output_insn): Likewise.
4298 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4299 adding "insn" back in as an rtx_insn * with a checked cast, so
4300 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4301 first param.
4302 (compute_alignments): Strengthen local "label" from rtx to
4303 rtx_insn *.
4304 (shorten_branches): Rename param from "first" to "uncast_first",
4305 introducing a new local rtx_insn * "first" using a checked cast to
4306 effectively strengthen "first" from rtx to rtx_insn * without
4307 affecting the type signature. Strengthen locals "insn", "seq",
4308 "next", "label" from rtx to rtx_insn *.
4309 (change_scope): Strengthen param "orig_insn" and local "insn" from
4310 rtx to rtx_insn *.
4311 (final_start_function): Rename param from "first" to "uncast_first",
4312 introducing a new local rtx_insn * "first" using a checked cast to
4313 effectively strengthen "first" from rtx to rtx_insn * without
4314 affecting the type signature. Strengthen local "insn" from rtx to
4315 rtx_insn *.
4316 (dump_basic_block_info): Strengthen param "insn" from rtx to
4317 rtx_insn *.
4318 (final): Rename param from "first" to "uncast_first",
4319 introducing a new local rtx_insn * "first" using a checked cast to
4320 effectively strengthen "first" from rtx to rtx_insn * without
4321 affecting the type signature. Strengthen locals "insn", "next"
4322 from rtx to rtx_insn *.
4323 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4324 rtx_insn *.
4325 (call_from_call_insn): Strengthen param "insn" from rtx to
4326 rtx_call_insn *.
4327 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4328 introducing a new local rtx_insn * "insn" using a checked cast to
4329 effectively strengthen "insn" from rtx to rtx_insn * without
4330 affecting the type signature. Strengthen return type and locals
4331 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4332 now-redundant checked cast to rtx_insn * from both invocations of
4333 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4334 introducing a local "call_insn" for use when invoking
4335 call_from_call_insn.
4336 (notice_source_line): Strengthen param "insn" from rtx to
4337 rtx_insn *.
4338 (leaf_function_p): Likewise for local "insn".
4339 (final_forward_branch_p): Likewise.
4340 (leaf_renumber_regs): Likewise for param "first".
4341 (rest_of_clean_state): Likewise for locals "insn" and "next".
4342 (self_recursive_call_p): Likewise for param "insn".
4343 (collect_fn_hard_reg_usage): Likewise for local "insn".
4344 (get_call_fndecl): Likewise for param "insn".
4345 (get_call_cgraph_rtl_info): Likewise.
4346 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4347 introducing a new local rtx_insn * "insn" using a checked cast to
4348 effectively strengthen "insn" from rtx to rtx_insn * without
4349 affecting the type signature.
4350
4351 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4352 cast when assigning from param "insn" to current_output_insn.
4353 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4354 so that we can assign it back to current_output_insn.
4355
4356 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4357
4358 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4359 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4360 atmxt540s and atmxt540sreva devices.
4361 * config/avr/avr-tables.opt: Regenerate.
4362 * config/avr/t-multilib: Regenerate.
4363 * doc/avr-mmcu.texi: Regenerate.
4364
4365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4366
4367 * expr.c (convert_move): Strengthen local "insns" from rtx to
4368 rtx_insn *.
4369 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4370 "top_label" from rtx to rtx_code_label *.
4371 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4372 rtx_insn *.
4373 (emit_single_push_insn): Likewise for locals "prev", "last".
4374 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4375 to rtx_code_label *.
4376 (store_constructor): Likewise for locals "loop_start", "loop_end".
4377 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4378 rtx_insn *.
4379 (expand_expr_real_2): Likewise.
4380 (expand_expr_real_1): Strengthen local "label" from rtx to
4381 rtx_code_label *.
4382
4383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4384
4385 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4386 from rtx to rtx_insn *.
4387 (store_bit_field_1): Likewise.
4388 (extract_bit_field_1): Likewise.
4389 (expand_mult_const): Likewise for local "insns".
4390 (expmed_mult_highpart): Strengthen local "label" from rtx to
4391 rtx_code_label *.
4392 (expand_smod_pow2): Likewise.
4393 (expand_sdiv_pow2): Likewise.
4394 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4395 rtx_insn *. Strengthen locals "label", "label1", "label2",
4396 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4397 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4398 (emit_store_flag): Likewise.
4399 (emit_store_flag_force): Strengthen local "label" from rtx to
4400 rtx_code_label *.
4401 (do_cmp_and_jump): Likewise for param "label".
4402
4403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4404
4405 * explow.c (force_reg): Strengthen local "insn" from rtx to
4406 rtx_insn *.
4407 (adjust_stack_1): Likewise.
4408 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4409 "final_label", "available_label", "space_available" from rtx to
4410 rtx_code_label *.
4411 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4412 (anti_adjust_stack_and_probe): Likewise.
4413
4414 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4415
4416 * except.h (sjlj_emit_function_exit_after): Strengthen param
4417 "after" from rtx to rtx_insn *. This is only called with
4418 result of get_last_insn (in function.c) so type-change should be
4419 self-contained.
4420
4421 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4422 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4423 to rtx_insn *. These fields are only used from except.c so this
4424 type-change should be self-contained to this patch.
4425
4426 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4427 local "last" from rtx to rtx_insn *.
4428 (dw2_build_landing_pads): Likewise for local "seq".
4429 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4430 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4431 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4432 rtx to rtx_insn *.
4433 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4434 to rtx_insn *.
4435 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4436 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4437 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4438 referring to an insn. Strengthen local "dispatch_label" from
4439 rtx to rtx_code_label *.
4440 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4441 rtx_insn *.
4442 (expand_eh_return): Strengthen local "around_label" from
4443 rtx to rtx_code_label *.
4444 (convert_to_eh_region_ranges): Strengthen locals "iter",
4445 "last_action_insn", "first_no_action_insn",
4446 "first_no_action_insn_before_switch",
4447 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4448
4449 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4450
4451 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4452 from rtx to rtx_insn *.
4453 (cached_next_real_insn): Likewise.
4454 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4455 working with insns.
4456 (dwarf2out_var_location): Strengthen locals "next_real",
4457 "next_note", "expected_next_loc_note", "last_start", "insn" from
4458 rtx to rtx_insn *.
4459
4460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4461
4462 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4463 from rtx to rtx_insn *.
4464 (create_pseudo_cfg): Likewise for local "insn".
4465
4466 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4467
4468 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4469 from rtx to rtx_insn *.
4470 (df_bb_regno_last_def_find): Likewise.
4471
4472 * df-problems.c (df_rd_bb_local_compute): Likewise.
4473 (df_lr_bb_local_compute): Likewise.
4474 (df_live_bb_local_compute): Likewise.
4475 (df_chain_remove_problem): Likewise.
4476 (df_chain_create_bb): Likewise.
4477 (df_word_lr_bb_local_compute): Likewise.
4478 (df_remove_dead_eq_notes): Likewise for param "insn".
4479 (df_note_bb_compute): Likewise for local "insn".
4480 (simulate_backwards_to_point): Likewise.
4481 (df_md_bb_local_compute): Likewise.
4482
4483 * df-scan.c (df_scan_free_bb_info): Likewise.
4484 (df_scan_start_dump): Likewise.
4485 (df_scan_start_block): Likewise.
4486 (df_install_ref_incremental): Likewise for local "insn".
4487 (df_insn_rescan_all): Likewise.
4488 (df_reorganize_refs_by_reg_by_insn): Likewise.
4489 (df_reorganize_refs_by_insn_bb): Likewise.
4490 (df_recompute_luids): Likewise.
4491 (df_bb_refs_record): Likewise.
4492 (df_update_entry_exit_and_calls): Likewise.
4493 (df_bb_verify): Likewise.
4494
4495 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4496
4497 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4498 "first_note" from rtx to rtx_insn *.
4499 (get_node_of_insn): Likewise for param 2 "insn".
4500 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4501
4502 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4503 rtx_insn *.
4504 (mem_write_insn_p): Likewise.
4505 (mem_access_insn_p): Likewise.
4506 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4507 (def_has_ccmode_p): Likewise for param "insn".
4508 (add_cross_iteration_register_deps): Likewise for locals
4509 "def_insn" and "use_insn".
4510 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4511 (build_intra_loop_deps): Likewise for local "src_insn".
4512 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4513 to rtx_insn *.
4514 (get_node_of_insn): Likewise for param "insn".
4515
4516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4517
4518 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4519 (deletable_insn_p): Strengthen param "insn" from rtx to
4520 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4521 find_call_stack_args, since this is guarded by CALL_P (insn).
4522 (marked_insn_p): Strengthen param "insn" from rtx to
4523 rtx_insn *.
4524 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4525 invoking find_call_stack_args, since this is guarded by
4526 CALL_P (insn).
4527 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4528 rtx_insn *; we know this is an insn since this was called by
4529 mark_nonreg_stores.
4530 (mark_nonreg_stores_2): Likewise.
4531 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4532 rtx_insn *.
4533 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4534 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4535 to rtx_insn *.
4536 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4537 from rtx to rtx_insn *.
4538 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4539 "next", "ref_insn".
4540 (delete_unmarked_insns): Likewise for locals "insn", "next".
4541 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4542 (mark_reg_dependencies): Likewise for param "insn".
4543 (rest_of_handle_ud_dce): Likewise for local "insn".
4544 (word_dce_process_block): Likewise.
4545 (dce_process_block): Likewise.
4546
4547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4548
4549 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4550 from rtx to rtx_insn *.
4551 (struct change_cc_mode_args): Likewise for field "insn".
4552 (this_insn): Strengthen from rtx to rtx_insn *.
4553 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4554 with insn.
4555 (validate_canon_reg): Strengthen param "insn" from rtx to
4556 rtx_insn *.
4557 (canon_reg): Likewise.
4558 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4559 dealing with insn.
4560 (record_jump_equiv): Strengthen param "insn" from rtx to
4561 rtx_insn *.
4562 (try_back_substitute_reg): Likewise, also for locals "prev",
4563 "bb_head".
4564 (find_sets_in_insn): Likewise for param "insn".
4565 (canonicalize_insn): Likewise.
4566 (cse_insn): Likewise. Add a checked cast.
4567 (invalidate_from_clobbers): Likewise for param "insn".
4568 (invalidate_from_sets_and_clobbers): Likewise.
4569 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4570 dealing with insn.
4571 (cse_prescan_path): Strengthen local "insn" from rtx to
4572 rtx_insn *.
4573 (cse_extended_basic_block): Likewise for locals "insn" and
4574 "prev_insn".
4575 (cse_main): Likewise for param "f".
4576 (check_for_label_ref): Likewise for local "insn".
4577 (set_live_p): Likewise for second param ("insn").
4578 (insn_live_p): Likewise for first param ("insn") and for local
4579 "next".
4580 (cse_change_cc_mode_insn): Likewise for first param "insn".
4581 (cse_change_cc_mode_insns): Likewise for first and second params
4582 "start" and "end".
4583 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4584 and "end".
4585 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4586 "cc_src_insn".
4587
4588 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4589 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4590 Anna Tikhonova <anna.tikhonova@intel.com>
4591 Ilya Tocar <ilya.tocar@intel.com>
4592 Andrey Turetskiy <andrey.turetskiy@intel.com>
4593 Ilya Verbin <ilya.verbin@intel.com>
4594 Kirill Yukhin <kirill.yukhin@intel.com>
4595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4596
4597 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4598 New.
4599 * config/i386/sse.md
4600 (define_mode_iterator VI248_AVX2): Delete.
4601 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4602 (define_mode_iterator VI48_AVX2): Ditto.
4603 (define_insn <shift_insn><mode>3): Delete.
4604 (define_insn "<shift_insn><mode>3<mask_name>" with
4605 VI2_AVX2_AVX512BW): New.
4606 (define_insn "<shift_insn><mode>3<mask_name>" with
4607 VI48_AVX2): Ditto.
4608
4609 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4610 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4611 Anna Tikhonova <anna.tikhonova@intel.com>
4612 Ilya Tocar <ilya.tocar@intel.com>
4613 Andrey Turetskiy <andrey.turetskiy@intel.com>
4614 Ilya Verbin <ilya.verbin@intel.com>
4615 Kirill Yukhin <kirill.yukhin@intel.com>
4616 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4617
4618 * config/i386/sse.md
4619 (define_mode_iterator VI4F_BRCST32x2): New.
4620 (define_mode_attr 64x2_mode): Ditto.
4621 (define_mode_attr 32x2mode): Ditto.
4622 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4623 with VI4F_BRCST32x2): Ditto.
4624 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4625 with V16FI mode iterator): Ditto.
4626 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4627 with V16FI): Ditto.
4628 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4629 with VI8F_BRCST64x2): Ditto.
4630
4631 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4633 Anna Tikhonova <anna.tikhonova@intel.com>
4634 Ilya Tocar <ilya.tocar@intel.com>
4635 Andrey Turetskiy <andrey.turetskiy@intel.com>
4636 Ilya Verbin <ilya.verbin@intel.com>
4637 Kirill Yukhin <kirill.yukhin@intel.com>
4638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4639
4640 * config/i386/sse.md
4641 (define_mode_iterator VI8_AVX512VL): New.
4642 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4643
4644 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4645
4646 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4647 (define_mode_iterator V48_AVX512VL): New.
4648 (define_mode_iterator V12_AVX512VL): Ditto.
4649 (define_insn <avx512>_load<mode>_mask): Split into two similar
4650 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4651 Refactor output template.
4652 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4653
4654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4655
4656 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4657 rtx_insn *.
4658 (reg_available_p): Likewise for param "insn".
4659 (insert_set_in_table): Likewise.
4660 (hash_scan_set): Likewise.
4661 (hash_scan_insn): Likewise.
4662 (make_set_regs_unavailable): Likewise.
4663 (compute_hash_table_work): Likewise for local "insn".
4664 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4665 const rtx_insn *.
4666 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4667 (try_replace_reg): Likewise.
4668 (find_avail_set): Likewise.
4669 (cprop_jump): Likewise for params "setcc", "jump".
4670 (constprop_register): Likewise for param "insn".
4671 (cprop_insn): Likewise.
4672 (do_local_cprop): Likewise.
4673 (local_cprop_pass): Likewise for local "insn".
4674 (bypass_block): Likewise for params "setcc" and "jump".
4675 (bypass_conditional_jumps): Likewise for locals "setcc" and
4676 "insn".
4677 (one_cprop_pass): Likewise for local "insn".
4678
4679 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4680
4681 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4682 from rtx to rtx_insn *.
4683 (struct comparison): Likewise, also for field "prev_clobber".
4684 (conforming_compare): Likewise for param "insn".
4685 (arithmetic_flags_clobber_p): Likewise.
4686 (find_flags_uses_in_insn): Likewise.
4687 (find_comparison_dom_walker::before_dom_children): Likewise for
4688 locals "insn", "next", "last_clobber".
4689 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4690
4691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4692
4693 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4694 "insn" from rtx to rtx_insn *.
4695 (single_set_for_csa): Likewise for param "insn".
4696 (record_one_stack_ref): Likewise.
4697 (try_apply_stack_adjustment): Likewise.
4698 (struct record_stack_refs_data): Likewise for field "insn".
4699 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4700 (prev_active_insn_bb): Likewise for return type and param "insn".
4701 (next_active_insn_bb): Likewise.
4702 (force_move_args_size_note): Likewise for params "prev" and "last"
4703 and locals "test", "next_candidate", "prev_candidate".
4704 (combine_stack_adjustments_for_block): Strengthen locals
4705 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4706 rtx_insn *.
4707
4708 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4709
4710 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4711 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4712 (subst_insn): Likewise for this variable.
4713 (added_links_insn): Likewise.
4714 (struct insn_link): Likewise for field "insn".
4715 (alloc_insn_link): Likewise for param "insn".
4716 (struct undobuf): Likewise for field "other_insn".
4717 (find_single_use): Likewise for param "insn" and local "next".
4718 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4719 (delete_noop_moves): Likewise for locals "insn", "next".
4720 (create_log_links): Likewise for locals "insn", "use_insn".
4721 Strengthen local "next_use" from rtx * to rtx_insn **.
4722 (insn_a_feeds_b): Likewise for params "a", "b".
4723 (combine_instructions): Likewise for param "f" and locals "insn",
4724 "next", "prev", "first", "last_combined_insn", "link", "link1",
4725 "temp". Replace use of NULL_RTX with NULL when referring to
4726 insns.
4727 (setup_incoming_promotions): Likewise for param "first"
4728 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4729 (can_combine_p): Likewise for params "insn", "i3", "pred",
4730 "pred2", "succ", "succ2" and for local "p".
4731 (combinable_i3pat): Likewise for param "i3".
4732 (cant_combine_insn_p): Likewise for param "insn".
4733 (likely_spilled_retval_p): Likewise.
4734 (adjust_for_new_dest): Likewise.
4735 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4736 (try_combine): Likewise for return type and for params "i3", "i2",
4737 "i1", "i0", "last_combined_insn", and for locals "insn",
4738 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4739 "i0_insn". Eliminate local "tem" in favor of new locals
4740 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4741 checked cast for now to rtx_insn * on the return type of
4742 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4743 insns.
4744 (find_split_point): Strengthen param "insn" from rtx to
4745 rtx_insn *.
4746 (simplify_set): Likewise for local "other_insn".
4747 (recog_for_combine): Likewise for param "insn".
4748 (record_value_for_reg): Likewise.
4749 (record_dead_and_set_regs_1): Likewise for local
4750 "record_dead_insn".
4751 (record_dead_and_set_regs): Likewise for param "insn".
4752 (record_promoted_value): Likewise.
4753 (check_promoted_subreg): Likewise.
4754 (get_last_value_validate): Likewise.
4755 (reg_dead_at_p): Likewise.
4756 (move_deaths): Likewise for param "to_insn".
4757 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4758 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4759 in favor of new locals "tem_note" and "tem_insn", the latter being
4760 an rtx_insn *.
4761 (distribute_links): Strengthen locals "place", "insn" from rtx to
4762 rtx_insn *.
4763
4764 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4765
4766 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4767 than a const_rtx.
4768 (can_delete_label_p): Require a const rtx_code_label * rather than
4769 a const_rtx.
4770 (delete_insn): Add checked cast to rtx_code_label * when we know
4771 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4772 rtx to rtx_insn *.
4773 (delete_insn_chain): Strengthen locals "prev" and "current" from
4774 rtx to rtx_insn *. Add a checked cast when assigning from
4775 "finish" (strengthening the params will come later). Add a
4776 checked cast to rtx_note * in region where we know
4777 NOTE_P (current).
4778 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4779 rtx_insn *.
4780 (compute_bb_for_insn): Likewise.
4781 (free_bb_for_insn): Likewise for local "insn".
4782 (compute_bb_for_insn): Likewise.
4783 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4784 local "insn" from rtx to rtx_insn *
4785 (flow_active_insn_p): Require a const rtx_insn * rather than a
4786 const_rtx.
4787 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4788 rtx_insn *.
4789 (can_fallthru): Likewise for locals "insn" and "insn2".
4790 (bb_note): Likewise for local "note".
4791 (first_insn_after_basic_block_note): Likewise for local "note" and
4792 for return type.
4793 (rtl_split_block): Likewise for locals "insn" and "next".
4794 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4795 "end".
4796 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4797 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4798 "prev", "tmp".
4799 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4800 them), "kill_from", "barrier", "new_insn".
4801 (patch_jump_insn): Likewise for params "insn", "old_label".
4802 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4803 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4804 "old_label", "new_label".
4805 (rtl_tidy_fallthru_edge): Likewise for local "q".
4806 (rtl_split_edge): Likewise for locals "before", "last".
4807 (commit_one_edge_insertion): Likewise for locals "before",
4808 "after", "insns", "tmp", "last", adding a checked cast where
4809 currently necessary.
4810 (commit_edge_insertions): Likewise.
4811 (rtl_dump_bb): Likewise for locals "insn", "last".
4812 (print_rtl_with_bb): Likewise for local "x".
4813 (rtl_verify_bb_insns): Likewise for local "x".
4814 (rtl_verify_bb_pointers): Likewise for local "insn".
4815 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4816 "head", "end".
4817 (rtl_verify_fallthru): Likewise for local "insn".
4818 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4819 (purge_dead_edges): Likewise for local "insn".
4820 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4821 (skip_insns_after_block): Likewise for return type and for locals
4822 "insn", "last_insn", "next_head", "prev".
4823 (record_effective_endpoints): Likewise for locals "next_insn",
4824 "insn", "end".
4825 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4826 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4827 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4828 (duplicate_insn_chain): For now, add checked cast from rtx to
4829 rtx_insn * when returning insn.
4830 (cfg_layout_duplicate_bb): Likewise for local "insn".
4831 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4832 "prev", "remaints".
4833 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4834 (rtl_block_empty_p): Likewise.
4835 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4836 "split_point", "last".
4837 (rtl_block_ends_with_call_p): Likewise for local "insn".
4838 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4839 const rtx_insn *.
4840 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4841 "split_at_insn" from rtx to rtx_insn *.
4842 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4843 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4844 to const rtx_insn *.
4845 (rtl_account_profile_record): Likewise.
4846
4847 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4848
4849 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4850 rtx to rtx_insn *.
4851 (average_num_loop_insns): Likewise.
4852 (init_set_costs): Likewise for local "seq".
4853 (seq_cost): Likewise for param "seq", from const_rtx to const
4854 rtx_insn *.
4855
4856 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4857
4858 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4859 rtx to rtx_insn *.
4860
4861 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4862
4863 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4864 "f1" and "f2" from rtx * to rtx_insn **.
4865 (flow_find_head_matching_sequence): Likewise.
4866
4867 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4868 "cbranch_insn" from rtx to rtx_insn *.
4869 (thread_jump): Likewise for local "insn".
4870 (try_forward_edges): Likewise for local "last".
4871 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4872 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4873 "real_b_end".
4874 (can_replace_by): Likewise for params "i1", "i2".
4875 (old_insns_match_p): Likewise.
4876 (merge_notes): Likewise.
4877 (walk_to_nondebug_insn): Likewise for param "i1".
4878 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4879 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4880 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4881 (flow_find_head_matching_sequence): Strengthen params "f1" and
4882 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4883 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4884 rtx_insn *.
4885 (outgoing_edges_match): Likewise for locals "last1", "last2".
4886 (try_crossjump_to_edge): Likewise for local "insn".
4887 Replace call to for_each_rtx with for_each_rtx_in_insn.
4888
4889 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4890 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4891 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4892 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4893 (try_optimize_cfg): Strengthen local "last" from rtx to
4894 rtx_insn *.
4895 (delete_dead_jumptables): Likewise for locals "insn", "next",
4896 "label".
4897
4898 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4899 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4900 "rtx else_first_tail", to reflect the basic-block.h changes above.
4901
4902 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4903
4904 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4905 rtx_insn *.
4906 (purge_dead_tablejump_edges): Likewise.
4907 (find_bb_boundaries): Likewise for locals "insn", "end",
4908 "flow_transfer_insn".
4909
4910 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4911
4912 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4913 "ins" and "prev" from rtx to rtx_insn *.
4914
4915 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4916
4917 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4918 rtx_insn *.
4919 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4920 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4921 "scan_start".
4922 (load_register_parameters): Likewise for local "before_arg".
4923 (check_sibcall_argument_overlap): Likewise for param "insn".
4924 (expand_call): Likewise for locals "normal_call_insns",
4925 "tail_call_insns", "insns", "before_call", "after_args",
4926 "before_arg", "last", "prev". Strengthen one of the "last" from
4927 rtx to rtx_call_insn *.
4928 (fixup_tail_calls): Strengthen local "insn" from rtx to
4929 rtx_insn *.
4930 (emit_library_call_value_1): Likewise for locals "before_call" and
4931 "last".
4932
4933 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4934
4935 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4936 and "last" from rtx to rtx_insn *.
4937 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4938 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4939 rtx_call_insn *.
4940 (expand_errno_check): Strengthen local "lab" from rtx to
4941 rtx_code_label *.
4942 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4943 rtx_insn *.
4944 (expand_builtin_mathfn_2): Likewise.
4945 (expand_builtin_mathfn_ternary): Likewise.
4946 (expand_builtin_mathfn_3): Likewise.
4947 (expand_builtin_interclass_mathfn): Likewise for local "last".
4948 (expand_builtin_int_roundingfn): Likewise for local "insns".
4949 (expand_builtin_int_roundingfn_2): Likewise.
4950 (expand_builtin_strlen): Likewise for local "before_strlen".
4951 (expand_builtin_strncmp): Likewise for local "seq".
4952 (expand_builtin_signbit): Likewise for local "last".
4953 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4954 from rtx to rtx_code_label *.
4955 (expand_stack_restore): Strengthen local "prev" from rtx to
4956 rtx_insn *.
4957
4958 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4959
4960 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4961 to rtx_insn *.
4962 (struct btr_def_s): Likewise.
4963 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4964 const rtx_insn *.
4965 (add_btr_def): Likewise.
4966 (new_btr_user): Likewise.
4967 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4968 rtx to rtx_insn *.
4969 (link_btr_uses): Likewise.
4970 (move_btr_def): Likewise for locals "insp", "old_insn",
4971 "new_insn". Add checked cast to rtx_insn * for now on result of
4972 gen_move_insn.
4973 (can_move_up): Strengthen param "insn" from const_rtx to
4974 const rtx_insn *.
4975
4976 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4977
4978 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4979 rtx_insn *.
4980 (get_uncond_jump_length): Likewise for locals "label", "jump".
4981 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4982 "jump", "insn".
4983 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4984 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4985 (find_jump_block): Likewise for local "insn".
4986 (fix_crossing_conditional_branches): Likewise for locals
4987 "old_jump", "new_jump".
4988 (fix_crossing_unconditional_branches): Likewise for locals
4989 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4990 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4991
4992 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4993
4994 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4995 rtx to rtx_insn *.
4996 (struct mem_insn): Likewise for field "insn".
4997 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4998 (reg_next_inc_use): Likewise.
4999 (reg_next_def): Likewise.
5000 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5001 from rtx to rtx_insn *.
5002 (move_insn_before): Likewise for param "next_insn" and local "insns".
5003 (attempt_change): Likewise for local "mov_insn".
5004 (try_merge): Likewise for param "last_insn".
5005 (get_next_ref): Likewise for return type and local "insn".
5006 Strengthen param "next_array" from rtx * to rtx_insn **.
5007 (parse_add_or_inc): Strengthen param "insn" from rtx to
5008 rtx_insn *.
5009 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5010 the latter).
5011 (merge_in_block): Likewise for locals "insn", "curr",
5012 "other_insn".
5013 (pass_inc_dec::execute): Update allocations of the arrays to
5014 reflect the stronger types.
5015
5016 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5017
5018 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5019 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5020 from rtx to rtx_code_label *.
5021
5022 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5023
5024 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5025 to rtx_insn *.
5026
5027 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5028
5029 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5030 generated a warning and prevented bootstrapping the compiler.
5031
5032 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5033
5034 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5035 rtx_insn *.
5036
5037 * jump.c (delete_related_insns): Likewise, also for locals "next"
5038 and "prev".
5039
5040 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5041
5042 * genautomata.c (output_internal_insn_latency_func): When writing
5043 the function "internal_insn_latency" to insn-automata.c,
5044 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5045 allowing the optional guard function of (define_bypass) clauses to
5046 expect a pair of rtx_insn *, rather than a pair of rtx.
5047 (output_insn_latency_func): When writing the function
5048 "insn_latency", add an "uncast_" prefix to params "insn" and
5049 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5050 using checked casts from the params, thus enabling the above
5051 change to the generated "internal_insn_latency" function.
5052
5053 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5054
5055 PR tree-optimization/62091
5056 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5057 handle correctly arrays.
5058 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5059 inheritance binfos.
5060 (record_known_type): Walk into inner type.
5061 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5062 condition on no type changes.
5063
5064 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5065
5066 * genattrtab.c (write_attr_get): Within the generated get_attr_
5067 functions, rename param "insn" to "uncast_insn" and reintroduce
5068 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5069 is an rtx_insn * within insn-attrtab.c
5070
5071 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5072
5073 * output.h (peephole): Strengthen return type from rtx to
5074 rtx_insn *.
5075 * rtl.h (delete_for_peephole): Likewise for both params.
5076 * genpeep.c (main): In generated "peephole" function, strengthen
5077 return type and local "insn" from rtx to rtx_insn *. For now,
5078 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5079 rtx_insn *, with a checked cast.
5080 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5081 locals "insn", "next", "prev" from rtx to rtx_insn *.
5082
5083 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5084
5085 PR tree-optimization/62112
5086 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5087 * gimple-iterator.h (gsi_replace): Return bool.
5088 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5089 moved from ref_may_alias_global_p.
5090 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5091 New overloads.
5092 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5093 (stmt_kills_ref_p_1): Rename...
5094 (stmt_kills_ref_p): ... to this.
5095 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5096 stmt_kills_ref_p): Declare.
5097 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5098 Move the self-assignment case...
5099 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5100
5101 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5102
5103 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5104
5105 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5106 "after". For now, don't strengthen param "trial", which requires
5107 adding checked casts when returning it.
5108
5109 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5110
5111 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5112 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5113 "var_location" hook from rtx to rtx_insn *.
5114 (debug_nothing_rtx): Delete in favor of...
5115 (debug_nothing_rtx_code_label): New prototype.
5116 (debug_nothing_rtx_rtx): Delete unused prototype.
5117 (debug_nothing_rtx_insn): New prototype.
5118
5119 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5120 invoking debug_hooks->var_location (in two places, one in a NOTE
5121 case of a switch statement, the other guarded by a CALL_P
5122 conditional. Add checked cast to rtx_code_label * when invoking
5123 debug_hooks->label (within CODE_LABEL case of switch statement).
5124
5125 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5126 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5127 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5128 (xcoff_debug_hooks): Likewise.
5129 * debug.c (do_nothing_debug_hooks): Likewise.
5130 (debug_nothing_rtx): Delete in favor of...
5131 (debug_nothing_rtx_insn): New function.
5132 (debug_nothing_rtx_rtx): Delete unused function.
5133 (debug_nothing_rtx_code_label): New function.
5134 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5135 debug_nothing_rtx to debug_nothing_rtx_code_label.
5136 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5137 to rtx_insn *.
5138 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5139 debug_nothing_rtx to debug_nothing_rtx_insn.
5140 (sdbout_label): Strengthen param "insn" from rtx to
5141 rtx_code_label *.
5142 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5143 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5144 "var_location" hook from debug_nothing_rtx to
5145 debug_nothing_rtx_insn.
5146
5147 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5148
5149 * recog.h (insn_output_fn): Update this function typedef to match
5150 the changes below to the generated output functions, strengthening
5151 the 2nd param from rtx to rtx_insn *.
5152
5153 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5154 insn when invoking an output function, to match the new signature
5155 of insn_output_fn with a stronger second param.
5156
5157 * genconditions.c (write_header): In the generated code for
5158 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5159 to match the other changes in this patch.
5160
5161 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5162 the generated "gen_" functions from rtx to rtx_insn * within their
5163 implementations.
5164
5165 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5166 the subfunctions within the generated "recog_", "split", "peephole2"
5167 function trees from rtx to rtx_insn *. For now, the top-level
5168 generated functions ("recog", "split", "peephole2") continue to
5169 take a plain rtx for "insn", to avoid introducing dependencies on
5170 other patches. Rename this 2nd param from "insn" to
5171 "uncast_insn", and reintroduce "insn" as a local variable of type
5172 rtx_insn *, initialized at the top of the generated function with
5173 a checked cast on "uncast_insn".
5174 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5175 the generated "gen_" functions from rtx to rtx_insn * within their
5176 prototypes.
5177
5178 * genoutput.c (process_template): Strengthen the 2nd param within
5179 the generated "output_" functions "insn" from rtx to rtx_insn *.
5180
5181 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5182
5183 * tree-profile.c (tree_profiling): Skip external functions
5184 when doing coverage instrumentation.
5185 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5186
5187 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5188
5189 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5190 (vec_mergee): Likewise.
5191 (vec_mergeo): Likewise.
5192 (vec_cntlz): Likewise.
5193 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5194 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5195 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5196 VMRGEW, and VMRGOW.
5197 * doc/extend.texi: Document various forms of vec_cpsgn,
5198 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5199 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5200 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5201 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5202 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5203
5204 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5205
5206 * config/rs6000/rs6000.c (context.h): New include.
5207 (tree-pass.h): Likewise.
5208 (make_pass_analyze_swaps): New decl.
5209 (rs6000_option_override): Register pass_analyze_swaps.
5210 (swap_web_entry): New subsclass of web_entry_base (df.h).
5211 (special_handling_values): New enum.
5212 (union_defs): New function.
5213 (union_uses): Likewise.
5214 (insn_is_load_p): Likewise.
5215 (insn_is_store_p): Likewise.
5216 (insn_is_swap_p): Likewise.
5217 (rtx_is_swappable_p): Likewise.
5218 (insn_is_swappable_p): Likewise.
5219 (chain_purpose): New enum.
5220 (chain_contains_only_swaps): New function.
5221 (mark_swaps_for_removal): Likewise.
5222 (swap_const_vector_halves): Likewise.
5223 (adjust_subreg_index): Likewise.
5224 (permute_load): Likewise.
5225 (permute_store): Likewise.
5226 (handle_special_swappables): Likewise.
5227 (replace_swap_with_copy): Likewise.
5228 (dump_swap_insn_table): Likewise.
5229 (rs6000_analyze_swaps): Likewise.
5230 (pass_data_analyze_swaps): New pass_data.
5231 (pass_analyze_swaps): New rtl_opt_pass.
5232 (make_pass_analyze_swaps): New function.
5233 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5234
5235 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5236
5237 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5238 type from rtx to rtx_insn *.
5239 (create_copy_of_insn_rtx): Likewise.
5240 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5241 (create_copy_of_insn_rtx): Likewise, also for local "res".
5242
5243 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5244
5245 * rtl.h (find_first_parameter_load): Strengthen return type from
5246 rtx to rtx_insn *.
5247 * rtlanal.c (find_first_parameter_load): Strengthen return type
5248 from rtx to rtx_insn *. Add checked cast for now, to postpone
5249 strengthening the params.
5250
5251 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5252
5253 PR fortran/44054
5254 * diagnostic.c: Set default caret.
5255 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5256 line is needed.
5257 * diagnostic.h (struct diagnostic_context):
5258
5259 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5260
5261 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5262 (sel_bb_head): Strengthen return type insn_t (currently just an
5263 rtx) to rtx_insn *.
5264 (sel_bb_end): Likewise.
5265
5266 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5267 (sel_bb_head): Strengthen return type and local "head" from
5268 insn_t (currently just an rtx) to rtx_insn *.
5269 (sel_bb_end): Likewise for return type.
5270 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5271 working with insn.
5272
5273 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5274
5275 * basic-block.h (get_last_bb_insn): Strengthen return type from
5276 rtx to rtx_insn *.
5277 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5278 end".
5279
5280 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5281
5282 PR fortran/44054
5283 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5284 to here ...
5285 (diagnostic_report_diagnostic): ... from here.
5286 * toplev.c (general_init): Move code to c-family.
5287
5288 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5289
5290 * df.h (web_entry_base): Replace existing struct web_entry with a
5291 new class web_entry_base with only the predecessor member.
5292 (unionfind_root): Remove declaration and move to class member.
5293 (unionfind_union): Remove declaration and move to friend
5294 function.
5295 (union_defs): Remove declaration.
5296 * web.c (web_entry_base::unionfind_root): Modify to be member
5297 function and adjust accessors.
5298 (unionfind_union): Modify to be friend function and adjust
5299 accessors.
5300 (web_entry): New subclass of web_entry_base containing the reg
5301 member.
5302 (union_match_dups): Modify for struct -> class changes.
5303 (union_defs): Likewise.
5304 (entry_register): Likewise.
5305 (pass_web::execute): Likewise.
5306
5307 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5308
5309 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5310 builtin define __VEC_ELEMENT_REG_ORDER__.
5311
5312 2014-08-20 Martin Jambor <mjambor@suse.cz>
5313 Wei Mi <wmi@google.com>
5314
5315 PR ipa/60449
5316 PR middle-end/61776
5317 * tree-ssa-operands.c (update_stmt_operands): Remove
5318 MODIFIED_NORETURN_CALLS.
5319 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5320 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5321 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5322 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5323 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5324 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5325 (gimple_call_set_ctrl_altering): New func.
5326 (gimple_call_ctrl_altering_p): Ditto.
5327 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5328 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5329 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5330 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5331 remove MODIFIED_NORETURN_CALLS.
5332
5333 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5334
5335 * coverage.c (coverage_compute_profile_id): Return non-0;
5336 also handle symbols with unique name.
5337 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5338
5339 2014-08-20 Steve Ellcey <sellcey@mips.com>
5340
5341 PR middle-end/49191
5342 * doc/sourcebuild.texi (non_strict_align): New.
5343
5344 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5345
5346 * cgraphunit.c (ipa_passes, compile): Reshedule
5347 symtab_remove_unreachable_nodes passes; update comments.
5348 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5349 TODO_remove_functions before the pass; the functions ought to be
5350 already removed.
5351 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5352 TODO_remove_functions.
5353 * passes.c (pass_data_early_local_passes): Do not schedule function
5354 removal.
5355 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5356
5357 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5358
5359 PR c/59304
5360 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5361 before setting the option.
5362 * diagnostic.c (diagnostic_classify_diagnostic): Record
5363 command-line status.
5364
5365 2014-08-20 Richard Biener <rguenther@suse.de>
5366
5367 PR lto/62190
5368 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5369 to build uint{16,32,64}_type_node.
5370
5371 2014-08-20 Terry Guo <terry.guo@arm.com>
5372
5373 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5374 with immediate_operand.
5375
5376 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5377
5378 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5379 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5380 NULL.
5381
5382 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5383
5384 PR preprocessor/51303
5385 * incpath.c (remove_duplicates): Use cpp_warning.
5386
5387 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5388
5389 PR c/60975
5390 PR c/53063
5391 * doc/options.texi (CPP): Document it.
5392 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5393 * optc-gen.awk: Handle CPP.
5394 * opth-gen.awk: Likewise.
5395
5396 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5397
5398 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5399 rtx_insn *.
5400 (duplicate_insn_chain): Likewise.
5401 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5402 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5403 checked cast for now (until we can strengthen the params in the
5404 same way).
5405 (duplicate_insn_chain): Likewise.
5406
5407 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5408
5409 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5410 rtx_insn *.
5411 (prev_cc0_setter): Likewise.
5412
5413 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5414 rtx_insn *, adding checked casts for now as necessary.
5415 (prev_cc0_setter): Likewise.
5416
5417 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5418
5419 * expr.h (emit_move_insn): Strengthen return type from rtx to
5420 rtx_insn *.
5421 (emit_move_insn_1): Likewise.
5422 (emit_move_complex_push): Likewise.
5423 (emit_move_complex_parts): Likewise.
5424
5425 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5426 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5427 with insns.
5428 (emit_move_complex_push): Strengthen return type from rtx to
5429 rtx_insn *.
5430 (emit_move_complex): Likewise, also for local "ret".
5431 (emit_move_ccmode): Likewise.
5432 (emit_move_multi_word): Likewise for return type and locals
5433 "last_insn", "seq".
5434 (emit_move_insn_1): Likewise for return type and locals "result",
5435 "ret".
5436 (emit_move_insn): Likewise for return type and local "last_insn".
5437 (compress_float_constant): Likewise.
5438
5439 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5440
5441 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5442 from rtx to rtx_insn *.
5443
5444 * rtl.h (emit_insn_before): Likewise.
5445 (emit_insn_before_noloc): Likewise.
5446 (emit_insn_before_setloc): Likewise.
5447 (emit_jump_insn_before): Likewise.
5448 (emit_jump_insn_before_noloc): Likewise.
5449 (emit_jump_insn_before_setloc): Likewise.
5450 (emit_call_insn_before): Likewise.
5451 (emit_call_insn_before_noloc): Likewise.
5452 (emit_call_insn_before_setloc): Likewise.
5453 (emit_debug_insn_before): Likewise.
5454 (emit_debug_insn_before_noloc): Likewise.
5455 (emit_debug_insn_before_setloc): Likewise.
5456 (emit_label_before): Likewise.
5457 (emit_insn_after): Likewise.
5458 (emit_insn_after_noloc): Likewise.
5459 (emit_insn_after_setloc): Likewise.
5460 (emit_jump_insn_after): Likewise.
5461 (emit_jump_insn_after_noloc): Likewise.
5462 (emit_jump_insn_after_setloc): Likewise.
5463 (emit_call_insn_after): Likewise.
5464 (emit_call_insn_after_noloc): Likewise.
5465 (emit_call_insn_after_setloc): Likewise.
5466 (emit_debug_insn_after): Likewise.
5467 (emit_debug_insn_after_noloc): Likewise.
5468 (emit_debug_insn_after_setloc): Likewise.
5469 (emit_label_after): Likewise.
5470 (emit_insn): Likewise.
5471 (emit_debug_insn): Likewise.
5472 (emit_jump_insn): Likewise.
5473 (emit_call_insn): Likewise.
5474 (emit_label): Likewise.
5475 (gen_clobber): Likewise.
5476 (emit_clobber): Likewise.
5477 (gen_use): Likewise.
5478 (emit_use): Likewise.
5479 (emit): Likewise.
5480
5481 (emit_barrier_before): Strengthen return type from rtx to
5482 rtx_barrier *.
5483 (emit_barrier_after): Likewise.
5484 (emit_barrier): Likewise.
5485
5486 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5487 from rtx to rtx_insn *. Add checked casts for now when converting
5488 "last" from rtx to rtx_insn *.
5489 (emit_insn_before_noloc): Likewise for return type.
5490 (emit_jump_insn_before_noloc): Likewise.
5491 (emit_call_insn_before_noloc): Likewise.
5492 (emit_debug_insn_before_noloc): Likewise.
5493 (emit_barrier_before): Strengthen return type and local "insn"
5494 from rtx to rtx_barrier *.
5495 (emit_label_before): Strengthen return type from rtx to
5496 rtx_insn *. Add checked cast for now when returning param
5497 (emit_pattern_after_noloc): Strengthen return type from rtx to
5498 rtx_insn *. Add checked casts for now when converting "last" from
5499 rtx to rtx_insn *.
5500 (emit_insn_after_noloc): Strengthen return type from rtx to
5501 rtx_insn *.
5502 (emit_jump_insn_after_noloc): Likewise.
5503 (emit_call_insn_after_noloc): Likewise.
5504 (emit_debug_insn_after_noloc): Likewise.
5505 (emit_barrier_after): Strengthen return type from rtx to
5506 rtx_barrier *.
5507 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5508 Add checked cast for now when converting "label" from rtx to
5509 rtx_insn *.
5510 (emit_pattern_after_setloc): Strengthen return type from rtx to
5511 rtx_insn *. Add checked casts for now when converting "last" from
5512 rtx to rtx_insn *.
5513 (emit_pattern_after): Strengthen return type from rtx to
5514 rtx_insn *.
5515 (emit_insn_after_setloc): Likewise.
5516 (emit_insn_after): Likewise.
5517 (emit_jump_insn_after_setloc): Likewise.
5518 (emit_jump_insn_after): Likewise.
5519 (emit_call_insn_after_setloc): Likewise.
5520 (emit_call_insn_after): Likewise.
5521 (emit_debug_insn_after_setloc): Likewise.
5522 (emit_debug_insn_after): Likewise.
5523 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5524 when converting "last" from rtx to rtx_insn *.
5525 (emit_pattern_before): Strengthen return type from rtx to
5526 rtx_insn *.
5527 (emit_insn_before_setloc): Likewise.
5528 (emit_insn_before): Likewise.
5529 (emit_jump_insn_before_setloc): Likewise.
5530 (emit_jump_insn_before): Likewise.
5531 (emit_call_insn_before_setloc): Likewise.
5532 (emit_call_insn_before): Likewise.
5533 (emit_debug_insn_before_setloc): Likewise.
5534 (emit_debug_insn_before): Likewise.
5535 (emit_insn): Strengthen return type and locals "last", "insn",
5536 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5537 within cases where we know we have an insn.
5538 (emit_debug_insn): Likewise.
5539 (emit_jump_insn): Likewise.
5540 (emit_call_insn): Strengthen return type and local "insn" from rtx
5541 to rtx_insn *.
5542 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5543 a checked cast to rtx_insn * for now on "label".
5544 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5545 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5546 (emit_use): Likewise.
5547 (gen_use): Likewise, also for local "seq".
5548 (emit): Likewise for return type and local "insn".
5549 (rtx_insn): Likewise for return type and local "new_rtx".
5550
5551 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5552 from rtx to rtx_barrier *.
5553
5554 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5555 changed return type from rtx to rtx_insn *, we must update
5556 "emit_fn" type, and this in turn means updating...
5557 (frame_insn): ...this. Strengthen return type from rtx to
5558 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5559
5560 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5561
5562 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5563 rtx to rtx_jump_table_data *. Also for local.
5564 * rtl.h (emit_jump_table_data): Likewise.
5565
5566 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5567
5568 * basic-block.h (create_basic_block_structure): Strengthen third
5569 param "bb_note" from rtx to rtx_note *.
5570 * rtl.h (emit_note_before): Strengthen return type from rtx to
5571 rtx_note *.
5572 (emit_note_after): Likewise.
5573 (emit_note): Likewise.
5574 (emit_note_copy): Likewise. Also, strengthen param similarly.
5575 * function.h (struct rtl_data): Strengthen field
5576 "x_stack_check_probe_note" from rtx to rtx_note *.
5577
5578 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5579 from rtx to rtx_note *.
5580 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5581 "bb_note" from rtx to rtx_note *.
5582 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5583 when calling emit_note_copy.
5584 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5585 rtx_note *.
5586 (emit_note_after): Likewise.
5587 (emit_note_before): Likewise.
5588 (emit_note_copy): Likewise. Also, strengthen param similarly.
5589 (emit_note): Likewise.
5590 * except.c (emit_note_eh_region_end): Likewise for return type.
5591 Strengthen local "next" from rtx to rtx_insn *.
5592 (convert_to_eh_region_ranges): Strengthen local "note"
5593 from rtx to rtx_note *.
5594 * final.c (change_scope): Likewise.
5595 (reemit_insn_block_notes): Likewise, for both locals named "note".
5596 Also, strengthen local "insn" from rtx to rtx_insn *.
5597 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5598 rtx to rtx_note *.
5599 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5600 strengthen local "seq" from rtx to rtx_insn *.
5601 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5602 to rtx_note *.
5603 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5604 vec<rtx_note *>.
5605 (get_bb_note_from_pool): Strengthen return type from rtx to
5606 rtx_note *.
5607 (sel_create_basic_block): Strengthen local "new_bb_note" from
5608 insn_t to rtx_note *.
5609 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5610 "note" from rtx to rtx_note *.
5611 (emit_notes_in_bb): Likewise.
5612
5613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5614
5615 * function.h (struct rtl_data): Strengthen field
5616 "x_parm_birth_insn" from rtx to rtx_insn *.
5617 * function.c (struct assign_parm_data_all): Strengthen fields
5618 "first_conversion_insn" and "last_conversion_insn" from rtx to
5619 rtx_insn *.
5620
5621 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5622
5623 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5624 to rtx_insn *; also for local "var_end_seq".
5625 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5626 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5627 "insn".
5628 (expand_gimple_cond): Likewise for locals "last2" and "last".
5629 (mark_transaction_restart_calls): Likewise for local "insn".
5630 (expand_gimple_stmt): Likewise for return type and locals "last"
5631 and "insn".
5632 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5633 (avoid_complex_debug_insns): Likewise for param "insn".
5634 (expand_debug_locations): Likewise for locals "insn", "last",
5635 "prev_insn" and "insn2".
5636 (expand_gimple_basic_block): Likewise for local "last".
5637 (construct_exit_block): Likewise for locals "head", "end",
5638 "orig_end".
5639 (pass_expand::execute): Likewise for locals "var_seq",
5640 "var_ret_seq", "next".
5641
5642 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5643
5644 * asan.h (asan_emit_stack_protection): Strengthen return type from
5645 rtx to rtx_insn *.
5646 * asan.c (asan_emit_stack_protection): Likewise. Add local
5647 "insns" to hold the return value.
5648
5649 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5650
5651 * basic-block.h (bb_note): Strengthen return type from rtx to
5652 rtx_note *.
5653 * sched-int.h (bb_note): Likewise.
5654 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5655
5656 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5657
5658 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5659 rtx_insn *.
5660
5661 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5662 "insn" from rtx to rtx_insn *.
5663 (make_debug_insn_raw): Strengthen return type from rtx to
5664 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5665 (make_jump_insn_raw): Strengthen return type from rtx to
5666 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5667 (make_call_insn_raw): Strengthen return type from rtx to
5668 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5669 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5670 callback from rtx to rtx_insn *; likewise for local "insn" and
5671 "next", adding a checked cast to rtx_insn in the relevant cases of
5672 the switch statement.
5673 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5674 callback from rtx to rtx_insn *.
5675 (emit_pattern_after_setloc): Likewise.
5676 (emit_pattern_after): Likewise.
5677 (emit_pattern_before_setloc): Likewise.
5678 (emit_pattern_before): Likewise.
5679
5680 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5681
5682 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5683 rtx_call_insn *.
5684 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5685 accepting an rtx_insn *.
5686 (last_call_insn): Strengthen return type from rtx to
5687 rtx_call_insn *.
5688
5689 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5690
5691 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5692 "insns" from rtx to rtx_insn *.
5693 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5694 locals "insn" and "prev".
5695
5696 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5697
5698 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5699 rtx_jump_table_data **.
5700
5701 * cfgbuild.c (make_edges): Introduce local "table", using it in
5702 place of "tmp" for jump table data.
5703 (find_bb_boundaries): Strengthen local "table" from rtx to
5704 rtx_jump_table_data *.
5705 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5706 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5707 (try_crossjump_to_edge): Likewise.
5708 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5709 "table".
5710 (patch_jump_insn): Introduce local "table", using it in place of
5711 "tmp" for jump table data.
5712 (force_nonfallthru_and_redirect): Introduce local "table", so that
5713 call to tablejump_p can receive an rtx_jump_table_data **. Update
5714 logic around the call to overwrite "note" appropriately if
5715 tablejump_p returns non-zero.
5716 (get_last_bb_insn): Introduce local "table", using it in place of
5717 "tmp" for jump table data.
5718 * dwarf2cfi.c (create_trace_edges): Likewise.
5719
5720 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5721 from rtx to rtx_jump_table_data *.
5722 (create_fix_barrier): Strengthen local "tmp" from rtx to
5723 rtx_jump_table_data *.
5724 (arm_reorg): Likewise for local "table".
5725
5726 * config/s390/s390.c (s390_chunkify_start): Likewise.
5727
5728 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5729
5730 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5731 rtx to rtx_jump_table_data *.
5732
5733 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5734 rtx_jump_table_data **. Add a checked cast when writing through
5735 the pointer: we know there that local "table" is non-NULL and that
5736 JUMP_TABLE_DATA_P (table) holds.
5737 (label_is_jump_target_p): Introduce local "table", using it in
5738 place of "tmp" for jump table data.
5739
5740 2014-08-19 Marek Polacek <polacek@redhat.com>
5741
5742 PR c++/62153
5743 * doc/invoke.texi: Document -Wbool-compare.
5744
5745 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5746
5747 * rtl.h (entry_of_function): Strengthen return type from rtx to
5748 rtx_insn *.
5749 * cfgrtl.c (entry_of_function): Likewise.
5750
5751 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5752
5753 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5754 rtx_insn *, adding a checked cast for now.
5755 (get_last_insn): Likewise.
5756
5757 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5758
5759 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5760 rtx_code_label *.
5761
5762 * emit-rtl.c (gen_label_rtx): Likewise.
5763
5764 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5765
5766 * rtl.h (previous_insn): Strengthen return type from rtx to
5767 rtx_insn *.
5768 (next_insn): Likewise.
5769 (prev_nonnote_insn): Likewise.
5770 (prev_nonnote_insn_bb): Likewise.
5771 (next_nonnote_insn): Likewise.
5772 (next_nonnote_insn_bb): Likewise.
5773 (prev_nondebug_insn): Likewise.
5774 (next_nondebug_insn): Likewise.
5775 (prev_nonnote_nondebug_insn): Likewise.
5776 (next_nonnote_nondebug_insn): Likewise.
5777 (prev_real_insn): Likewise.
5778 (next_real_insn): Likewise.
5779 (prev_active_insn): Likewise.
5780 (next_active_insn): Likewise.
5781
5782 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5783 rtx_insn *, adding a checked cast.
5784 (previous_insn): Likewise.
5785 (next_nonnote_insn): Likewise.
5786 (next_nonnote_insn_bb): Likewise.
5787 (prev_nonnote_insn): Likewise.
5788 (prev_nonnote_insn_bb): Likewise.
5789 (next_nondebug_insn): Likewise.
5790 (prev_nondebug_insn): Likewise.
5791 (next_nonnote_nondebug_insn): Likewise.
5792 (prev_nonnote_nondebug_insn): Likewise.
5793 (next_real_insn): Likewise.
5794 (prev_real_insn): Likewise.
5795 (next_active_insn): Likewise.
5796 (prev_active_insn): Likewise.
5797
5798 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5799 param "stepfunc" so that it returns an rtx_insn * rather than an
5800 rtx, to track the change to prev_nonnote_insn_bb, which is the
5801 only function this is called with.
5802 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5803
5804 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5805
5806 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5807 assert.
5808
5809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5810
5811 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5812 (class rtx_nonjump_insn): Likewise.
5813 (class rtx_jump_insn): Likewise.
5814 (class rtx_call_insn): Likewise.
5815 (class rtx_jump_table_data): Likewise.
5816 (class rtx_barrier): Likewise.
5817 (class rtx_code_label): Likewise.
5818 (class rtx_note): Likewise.
5819
5820 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5821 adding the invariant DEBUG_INSN_P (X).
5822 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5823 the invariant NONJUMP_INSN_P (X).
5824 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5825 the invariant JUMP_P (X).
5826 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5827 the invariant CALL_P (X).
5828 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5829 invariant JUMP_TABLE_DATA_P (X).
5830 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5831 invariant BARRIER_P (X).
5832 (class rtx_code_label): New, a subclass of rtx_insn, adding
5833 the invariant LABEL_P (X).
5834 (class rtx_note): New, a subclass of rtx_insn, adding
5835 the invariant NOTE_P(X).
5836 (is_a_helper <rtx_debug_insn *>::test): New.
5837 (is_a_helper <rtx_nonjump_insn *>::test): New.
5838 (is_a_helper <rtx_jump_insn *>::test): New.
5839 (is_a_helper <rtx_call_insn *>::test): New.
5840 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5841 overloaded for both rtx and rtx_insn *.
5842 (is_a_helper <rtx_barrier *>::test): New.
5843 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5844 for both rtx and rtx_insn *.
5845 (is_a_helper <rtx_note *>::test): New.
5846
5847 2014-08-19 Marek Polacek <polacek@redhat.com>
5848
5849 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5850 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5851 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5852 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5853
5854 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5855
5856 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5857 rtx_insn *. To help with transition, for now, convert from an
5858 access macro into a pair of functions: BND_TO, returning an
5859 rtx_insn *, and...
5860 (SET_BND_TO): New function, for use where BND_TO is used as an
5861 lvalue.
5862
5863 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5864 SET_BND_TO.
5865 (BND_TO): New function, adding a checked cast.
5866 (SET_BND_TO): New function.
5867
5868 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5869 SET_BND_TO.
5870 (compute_av_set_on_boundaries): Likewise.
5871
5872 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5873
5874 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5875 destination if it is used in source.
5876 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5877 (*popcount<mode>2_falsedep_1): Likewise.
5878
5879 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5880
5881 PR other/62168
5882 * configure.ac: Set install_gold_as_default to no first.
5883 * configure: Regenerated.
5884
5885 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5886
5887 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5888 "note_list" field will eventually be an rtx_insn *. To help with
5889 transition, for now, convert from an access macro into a pair of
5890 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5891 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5892 used as an lvalue.
5893
5894 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5895 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5896
5897 * sel-sched-ir.c (init_bb): Likewise.
5898 (sel_restore_notes): Likewise.
5899 (move_bb_info): Likewise.
5900 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5901 (SET_BB_NOTE_LIST): New function.
5902
5903 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5904
5905 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5906 field will eventually be an rtx_insn *. To help with transition,
5907 for now, convert from an access macro into a pair of functions:
5908 VINSN_INSN_RTX, returning an rtx_insn *, and...
5909 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5910 is used as an lvalue.
5911
5912 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5913 SET_VINSN_INSN_RTX where it's used as an lvalue.
5914 (VINSN_INSN_RTX): New function.
5915 (SET_VINSN_INSN_RTX): New function.
5916
5917 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5918
5919 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5920 eventually be rtx_insn *, but to help with transition, for now,
5921 convert from an access macro into a pair of functions: DEP_PRO
5922 returning an rtx_insn * and...
5923 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5924 lvalue, returning an rtx&.
5925 (DEP_CON): Analogous changes to DEP_PRO above.
5926 (SET_DEP_CON): Likewise.
5927
5928 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5929 an lvalue to SET_DEP_CON.
5930 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5931 (sd_copy_back_deps): Likewise for DEP_CON.
5932 (DEP_PRO): New function, adding a checked cast for now.
5933 (DEP_CON): Likewise.
5934 (SET_DEP_PRO): New function.
5935 (SET_DEP_CON): Likewise.
5936
5937 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5938
5939 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5940 (extra_options): Add i386/cygwin.opt.
5941 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5942 (CPP_SPEC): Accept -pthread.
5943 (LINK_SPEC): Ditto.
5944 (GOMP_SELF_SPECS): Update comment.
5945 * config/i386/cygwin.opt: New file for -pthread flag.
5946
5947 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5948
5949 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5950 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5951 that we can return an rtx_insn *.
5952
5953 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5954
5955 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5956 when building executables, not DLLs. Add --large-address-aware
5957 under the same conditions.
5958 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5959 when building executables, not DLLs. Add --large-address-aware
5960 under the same conditions when using -m32.
5961
5962 * config/i386/cygwin-stdint.h: Throughout, make type
5963 definitions dependent on target architecture, not host.
5964
5965 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5966
5967 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5968 the return type from rtx to rtx_insn *, which will enable various
5969 conversions in followup patches. For now this is is done by a
5970 checked cast.
5971 (NEXT_INSN): Likewise.
5972 (SET_PREV_INSN): Convert to an inline function. This is intended
5973 for use as an lvalue, and so returns an rtx& to allow in-place
5974 modification.
5975 (SET_NEXT_INSN): Likewise.
5976
5977 2014-07-08 Mark Wielaard <mjw@redhat.com>
5978
5979 PR debug/59051
5980 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5981
5982 2014-08-19 Marek Polacek <polacek@redhat.com>
5983
5984 PR c/61271
5985 * cgraphunit.c (handle_alias_pairs): Fix condition.
5986
5987 2014-08-19 Richard Biener <rguenther@suse.de>
5988
5989 * gimple-fold.c (fold_gimple_assign): Properly build a
5990 null-pointer constant when devirtualizing addresses.
5991
5992 2014-07-07 Mark Wielaard <mjw@redhat.com>
5993
5994 * dwarf2out.c (decl_quals): New function.
5995 (modified_type_die): Take one cv_quals argument instead of two,
5996 one for const and one for volatile.
5997 (add_type_attribute): Likewise.
5998 (generic_parameter_die): Call add_type_attribute with one modifier
5999 argument.
6000 (base_type_for_mode): Likewise.
6001 (add_bounds_info): Likewise.
6002 (add_subscript_info): Likewise.
6003 (gen_array_type_die): Likewise.
6004 (gen_descr_array_type_die): Likewise.
6005 (gen_entry_point_die): Likewise.
6006 (gen_enumeration_type_die): Likewise.
6007 (gen_formal_parameter_die): Likewise.
6008 (gen_subprogram_die): Likewise.
6009 (gen_variable_die): Likewise.
6010 (gen_const_die): Likewise.
6011 (gen_field_die): Likewise.
6012 (gen_pointer_type_die): Likewise.
6013 (gen_reference_type_die): Likewise.
6014 (gen_ptr_to_mbr_type_die): Likewise.
6015 (gen_inheritance_die): Likewise.
6016 (gen_subroutine_type_die): Likewise.
6017 (gen_typedef_die): Likewise.
6018 (force_type_die): Likewise.
6019
6020 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6021
6022 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6023 if unset.
6024 * configure: Regenerate.
6025
6026 2014-08-19 Richard Biener <rguenther@suse.de>
6027
6028 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6029 DECL_EXTERNALs in BLOCKs as non-references.
6030 * tree-streamer-out.c (streamer_write_chain): Likewise.
6031
6032 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6033 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6034 Anna Tikhonova <anna.tikhonova@intel.com>
6035 Ilya Tocar <ilya.tocar@intel.com>
6036 Andrey Turetskiy <andrey.turetskiy@intel.com>
6037 Ilya Verbin <ilya.verbin@intel.com>
6038 Kirill Yukhin <kirill.yukhin@intel.com>
6039 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6040
6041 * config/i386/sse.md
6042 (define_mode_iterator VI48_AVX512F): Delete.
6043 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6044 (define_mode_iterator VI2_AVX512VL): Ditto.
6045 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6046 Delete.
6047 (define_insn
6048 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6049 New.
6050 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6051 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6052 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6053 with VI48_AVX512F_AVX512VL): New.
6054 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6055 with VI2_AVX512VL): Ditto.
6056
6057 2014-08-19 Marek Polacek <polacek@redhat.com>
6058
6059 * doc/invoke.texi: Document -Wc99-c11-compat.
6060
6061 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6062
6063 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6064 for rvalues, and...
6065 (SET_PREV_INSN): New macro, for use as an lvalue.
6066 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6067
6068 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6069 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6070 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6071 (fixup_abnormal_edges): Likewise.
6072 (unlink_insn_chain): Likewise.
6073 (fixup_reorder_chain): Likewise.
6074 (cfg_layout_delete_block): Likewise.
6075 (cfg_layout_merge_blocks): Likewise.
6076 * combine.c (update_cfg_for_uncondjump): Likewise.
6077 * emit-rtl.c (link_insn_into_chain): Likewise.
6078 (remove_insn): Likewise.
6079 (delete_insns_since): Likewise.
6080 (reorder_insns_nobb): Likewise.
6081 (emit_insn_after_1): Likewise.
6082 * final.c (rest_of_clean_state): Likewise.
6083 (final_scan_insn): Likewise.
6084 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6085 * haifa-sched.c (concat_note_lists): Likewise.
6086 (remove_notes): Likewise.
6087 (restore_other_notes): Likewise.
6088 (move_insn): Likewise.
6089 (unlink_bb_notes): Likewise.
6090 (restore_bb_notes): Likewise.
6091 * jump.c (delete_for_peephole): Likewise.
6092 * optabs.c (emit_libcall_block_1): Likewise.
6093 * reorg.c (emit_delay_sequence): Likewise.
6094 (fill_simple_delay_slots): Likewise.
6095 * sel-sched-ir.c (sel_move_insn): Likewise.
6096 (sel_remove_insn): Likewise.
6097 (get_bb_note_from_pool): Likewise.
6098 * sel-sched.c (move_nop_to_previous_block): Likewise.
6099
6100 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6101 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6102 (c6x_gen_bundles): Likewise.
6103 (hwloop_optimize): Likewise.
6104 * config/frv/frv.c (frv_function_prologue): Likewise.
6105 (frv_register_nop): Likewise.
6106 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6107 (ia64_reorg): Likewise.
6108 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6109 (mep_make_bundle): Likewise.
6110 (mep_bundle_insns): Likewise.
6111 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6112 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6113 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6114
6115 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6116
6117 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6118 return type from rtx to rtx_insn *.
6119 (BB_END): Likewise.
6120 (BB_HEADER): Likewise.
6121 (BB_FOOTER): Likewise.
6122 (SET_BB_HEAD): Convert to a function.
6123 (SET_BB_END): Likewise.
6124 (SET_BB_HEADER): Likewise.
6125 (SET_BB_FOOTER): Likewise.
6126
6127 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6128 Strengthen the return type from rtx to rtx_insn *. For now, this
6129 is done by adding a checked cast, but this will eventually
6130 become a field lookup.
6131 (BB_END): Likewise.
6132 (BB_HEADER): Likewise.
6133 (BB_FOOTER): Likewise.
6134 (SET_BB_HEAD): New function, from macro of same name. This is
6135 intended for use as an lvalue, and so returns an rtx& to allow
6136 in-place modification.
6137 (SET_BB_END): Likewise.
6138 (SET_BB_HEADER): Likewise.
6139 (SET_BB_FOOTER): Likewise.
6140
6141 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6142
6143 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6144 for rvalues, and...
6145 (SET_BB_HEAD): New macro, for use as a lvalue.
6146 (BB_END, SET_BB_END): Likewise.
6147 (BB_HEADER, SET_BB_HEADER): Likewise.
6148 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6149
6150 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6151 of BB_* macros into SET_BB_* macros.
6152 (fix_crossing_unconditional_branches): Likewise.
6153 * caller-save.c (save_call_clobbered_regs): Likewise.
6154 (insert_one_insn): Likewise.
6155 * cfgbuild.c (find_bb_boundaries): Likewise.
6156 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6157 (outgoing_edges_match): Likewise.
6158 (try_optimize_cfg): Likewise.
6159 * cfgexpand.c (expand_gimple_cond): Likewise.
6160 (expand_gimple_tailcall): Likewise.
6161 (expand_gimple_basic_block): Likewise.
6162 (construct_exit_block): Likewise.
6163 * cfgrtl.c (delete_insn): Likewise.
6164 (create_basic_block_structure): Likewise.
6165 (rtl_delete_block): Likewise.
6166 (rtl_split_block): Likewise.
6167 (emit_nop_for_unique_locus_between): Likewise.
6168 (rtl_merge_blocks): Likewise.
6169 (block_label): Likewise.
6170 (try_redirect_by_replacing_jump): Likewise.
6171 (emit_barrier_after_bb): Likewise.
6172 (fixup_abnormal_edges): Likewise.
6173 (record_effective_endpoints): Likewise.
6174 (relink_block_chain): Likewise.
6175 (fixup_reorder_chain): Likewise.
6176 (fixup_fallthru_exit_predecessor): Likewise.
6177 (cfg_layout_duplicate_bb): Likewise.
6178 (cfg_layout_split_block): Likewise.
6179 (cfg_layout_delete_block): Likewise.
6180 (cfg_layout_merge_blocks): Likewise.
6181 * combine.c (update_cfg_for_uncondjump): Likewise.
6182 * emit-rtl.c (add_insn_after): Likewise.
6183 (remove_insn): Likewise.
6184 (reorder_insns): Likewise.
6185 (emit_insn_after_1): Likewise.
6186 * haifa-sched.c (get_ebb_head_tail): Likewise.
6187 (restore_other_notes): Likewise.
6188 (move_insn): Likewise.
6189 (sched_extend_bb): Likewise.
6190 (fix_jump_move): Likewise.
6191 * ifcvt.c (noce_process_if_block): Likewise.
6192 (dead_or_predicable): Likewise.
6193 * ira.c (update_equiv_regs): Likewise.
6194 * reg-stack.c (change_stack): Likewise.
6195 * sel-sched-ir.c (sel_move_insn): Likewise.
6196 * sel-sched.c (move_nop_to_previous_block): Likewise.
6197
6198 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6199 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6200
6201 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6202
6203 * rtl.h (for_each_rtx_in_insn): New function.
6204 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6205
6206 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6207
6208 * coretypes.h (class rtx_insn): Add forward declaration.
6209
6210 * rtl.h: Include is-a.h.
6211 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6212 workaround to ensure gengtype knows inheritance is occurring,
6213 whilst continuing to use the pre-existing special-casing for
6214 rtx_def.
6215 (class rtx_insn): New subclass of rtx_def, adding the
6216 invariant that we're dealing with something we can sanely use
6217 INSN_UID, NEXT_INSN, PREV_INSN on.
6218 (is_a_helper <rtx_insn *>::test): New.
6219 (is_a_helper <const rtx_insn *>::test): New.
6220
6221 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6222
6223 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6224
6225 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6226
6227 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6228 comdats as extern.
6229
6230 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6231
6232 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6233 to BUILT_IN_UNREACHABLE.
6234
6235 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6236
6237 PR target/62011
6238 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6239 New tune flag.
6240 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6241 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6242 (ffs<mode>2): Do not expand with tzcnt for
6243 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6244 (ffssi2_no_cmove): Ditto.
6245 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6246 (ctz<mode>2): New expander.
6247 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6248 (*ctz<mode>2_falsedep): New insn.
6249 (*ctz<mode>2): Rename from ctz<mode>2.
6250 (clz<mode>2_lzcnt): New expander.
6251 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6252 (*clz<mode>2_lzcnt_falsedep): New insn.
6253 (*clz<mode>2): Rename from ctz<mode>2.
6254 (popcount<mode>2): New expander.
6255 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6256 (*popcount<mode>2_falsedep): New insn.
6257 (*popcount<mode>2): Rename from ctz<mode>2.
6258 (*popcount<mode>2_cmp): Remove.
6259 (*popcountsi2_cmp_zext): Ditto.
6260
6261 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6262
6263 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6264 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6265 * config/microblaze/microblaze.h
6266 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6267
6268 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6269
6270 PR other/62168
6271 * configure.ac: Set install_gold_as_default to no for
6272 --enable-gold=no.
6273 * configure: Regenerated.
6274
6275 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6276
6277 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6278 * config.in: Add undef of HAVE_isl.
6279 * configure: Regenerate.
6280 * configure.ac: Add definition of HAVE_isl.
6281 * graphite-blocking.c: Add checking of HAVE_isl.
6282 * graphite-dependences.c: Likewise.
6283 * graphite-interchange.c: Likewise.
6284 * graphite-isl-ast-to-gimple.c: Likewise.
6285 * graphite-optimize-isl.c: Likewise.
6286 * graphite-poly.c: Likewise.
6287 * graphite-scop-detection.c: Likewise.
6288 * graphite-sese-to-poly.c: Likewise.
6289 * graphite.c: Likewise.
6290 * toplev.c: Replace the checking of HAVE_cloog with the checking
6291 of HAVE_isl.
6292
6293 2014-08-18 Richard Biener <rguenther@suse.de>
6294
6295 PR tree-optimization/62090
6296 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6297 (fold_builtin_3): Do not fold snprintf.
6298 (fold_builtin_4): Likewise.
6299 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6300 moved from builtins.c.
6301 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6302 (gimple_fold_builtin): Do not fold sprintf here.
6303
6304 2014-08-18 Richard Biener <rguenther@suse.de>
6305
6306 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6307 code to ...
6308 (maybe_canonicalize_mem_ref_addr): ... this function.
6309 (fold_stmt_1): Apply it here before all simplification.
6310
6311 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6312
6313 PR ipa/61800
6314 * cgraph.h (cgraph_node::create_indirect_edge): Add
6315 compute_indirect_info param.
6316 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6317 indirect_info only when it is required.
6318 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6319 indirect_info fore cloned indirect edge.
6320
6321 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6322 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6323 Anna Tikhonova <anna.tikhonova@intel.com>
6324 Ilya Tocar <ilya.tocar@intel.com>
6325 Andrey Turetskiy <andrey.turetskiy@intel.com>
6326 Ilya Verbin <ilya.verbin@intel.com>
6327 Kirill Yukhin <kirill.yukhin@intel.com>
6328 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6329
6330 * config/i386/sse.md
6331 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6332 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6333
6334 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6335 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6336 Anna Tikhonova <anna.tikhonova@intel.com>
6337 Ilya Tocar <ilya.tocar@intel.com>
6338 Andrey Turetskiy <andrey.turetskiy@intel.com>
6339 Ilya Verbin <ilya.verbin@intel.com>
6340 Kirill Yukhin <kirill.yukhin@intel.com>
6341 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6342
6343 * config/i386/sse.md
6344 (define_mode_iterator VF1_AVX512VL): New.
6345 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6346 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6347 New.
6348
6349 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6350 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6351 Anna Tikhonova <anna.tikhonova@intel.com>
6352 Ilya Tocar <ilya.tocar@intel.com>
6353 Andrey Turetskiy <andrey.turetskiy@intel.com>
6354 Ilya Verbin <ilya.verbin@intel.com>
6355 Kirill Yukhin <kirill.yukhin@intel.com>
6356 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6357
6358 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6359 * config/i386/i386.md
6360 (define_code_iterator any_float): New.
6361 (define_code_attr floatsuffix): New.
6362 * config/i386/sse.md
6363 (define_mode_iterator VF1_128_256VL): New.
6364 (define_mode_iterator VF2_512_256VL): New.
6365 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6366 TARGET check.
6367 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6368 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6369 New.
6370 (define_mode_attr qq2pssuff): New.
6371 (define_mode_attr sselongvecmode): New.
6372 (define_mode_attr sselongvecmodelower): New.
6373 (define_mode_attr sseintvecmode3): New.
6374 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6375 New.
6376 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6377 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6378 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6379 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6380
6381 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6383 Anna Tikhonova <anna.tikhonova@intel.com>
6384 Ilya Tocar <ilya.tocar@intel.com>
6385 Andrey Turetskiy <andrey.turetskiy@intel.com>
6386 Ilya Verbin <ilya.verbin@intel.com>
6387 Kirill Yukhin <kirill.yukhin@intel.com>
6388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6389
6390 * config/i386/sse.md
6391 (define_mode_iterator VF2_AVX512VL): New.
6392 (define_mode_attr sseintvecmode2): New.
6393 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6394 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6395 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6396 (define_insn
6397 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6398 Ditto.
6399 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6400 Ditto.
6401 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6402 Ditto.
6403
6404 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6406 Anna Tikhonova <anna.tikhonova@intel.com>
6407 Ilya Tocar <ilya.tocar@intel.com>
6408 Andrey Turetskiy <andrey.turetskiy@intel.com>
6409 Ilya Verbin <ilya.verbin@intel.com>
6410 Kirill Yukhin <kirill.yukhin@intel.com>
6411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6412
6413 * config/i386/i386.md
6414 (define_insn "*movoi_internal_avx"): Add evex version.
6415 (define_insn "*movti_internal"): Ditto.
6416
6417 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6419 Anna Tikhonova <anna.tikhonova@intel.com>
6420 Ilya Tocar <ilya.tocar@intel.com>
6421 Andrey Turetskiy <andrey.turetskiy@intel.com>
6422 Ilya Verbin <ilya.verbin@intel.com>
6423 Kirill Yukhin <kirill.yukhin@intel.com>
6424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6425
6426 * config/i386/i386.md
6427 (define_attr "isa"): Add avx512dq, noavx512dq.
6428 (define_attr "enabled"): Ditto.
6429 * config/i386/sse.md
6430 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6431
6432 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6434 Anna Tikhonova <anna.tikhonova@intel.com>
6435 Ilya Tocar <ilya.tocar@intel.com>
6436 Andrey Turetskiy <andrey.turetskiy@intel.com>
6437 Ilya Verbin <ilya.verbin@intel.com>
6438 Kirill Yukhin <kirill.yukhin@intel.com>
6439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6440
6441 * config/i386/i386.c
6442 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6443 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6444 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6445 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6446 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6447 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6448 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6449 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6450 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6451 * config/i386/sse.md
6452 (define_mode_iterator VMOVE): Allow V4TI mode.
6453 (define_mode_iterator V_AVX512VL): New.
6454 (define_mode_iterator V): New handling for AVX512VL.
6455 (define_insn "avx512f_load<mode>_mask"): Delete.
6456 (define_insn "<avx512>_load<mode>_mask"): New.
6457 (define_insn "avx512f_store<mode>_mask"): Delete.
6458 (define_insn "<avx512>_store<mode>_mask"): New.
6459
6460
6461 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6462
6463 PR sanitizer/62089
6464 * asan.c (instrument_derefs): Fix bitfield check.
6465
6466 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6467
6468 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6469 * config/rs6000/htm.md (ttest): Remove clobber.
6470 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6471 (and_operand): Reformat.
6472 (and_2rld_operand): New predicate.
6473 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6474 parameter.
6475 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6476 parameter. Handle AND directly.
6477 (rs6000_split_logical_di): Remove last parameter.
6478 (rs6000_split_logical): Remove last parameter. Remove obsolete
6479 comment.
6480 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6481 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6482 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6483 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6484 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6485 and 5 anonymous splitters): Delete.
6486 (and<mode>3): New expander.
6487 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6488 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6489 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6490 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6491 (floatdisf2_internal1): Remove clobbers.
6492 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6493 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6494 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6495 (and<mode>3 for BOOL_128): Remove clobber.
6496 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6497 rs6000_split_logical.
6498 (*bool<mode>3_internal for BOOL_128): Adjust call of
6499 rs6000_split_logical.
6500 (*boolc<mode>3_internal1 for BOOL_128,
6501 *boolc<mode>3_internal2 for BOOL_128,
6502 *boolcc<mode>3_internal1 for BOOL_128,
6503 *boolcc<mode>3_internal2 for BOOL_128,
6504 *eqv<mode>3_internal1 for BOOL_128,
6505 *eqv<mode>3_internal2 for BOOL_128,
6506 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6507 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6508 clobber.
6509 (*vec_reload_and_reg_<mptrsize>): Delete.
6510
6511 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6512
6513 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6514 and split, *boolccsi3_internal3 and split): Delete.
6515 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6516 *boolccdi3_internal3 and split): Delete.
6517 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6518 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6519
6520 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6521
6522 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6523 and split, *boolcsi3_internal3 and split): Delete.
6524 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6525 *boolcdi3_internal3 and split): Delete.
6526 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6527
6528 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6529
6530 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6531 <'u'>: Also support printing the low-order 16 bits.
6532 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6533 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6534 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6535 *booldi3_internal3 and split): Delete.
6536 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6537 *bool<mode>3_dot2): New.
6538 (two anonymous define_splits for non_logical_cint_operand): Merge.
6539
6540 2014-08-17 Marek Polacek <polacek@redhat.com>
6541 Manuel López-Ibáñez <manu@gcc.gnu.org>
6542
6543 PR c/62059
6544 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6545 (diagnostic_show_locus): Don't print caret diagnostic
6546 if a column is larger than the line_width.
6547
6548 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6549
6550 * common.opt: Make the ISL AST generator to be the main code generator
6551 of Graphite.
6552
6553 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6554
6555 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6556
6557 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6558
6559 PR target/61641
6560 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6561 Declare.
6562 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6563 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6564 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6565 Define.
6566 * config/pa/pa.md (begin_brtab): Delete insn.
6567 (end_brtab): Likewise.
6568
6569 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6570
6571 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6572
6573 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6574
6575 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6576 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6577 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6578 (get_dynamic_type): Remove.
6579 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6580 (clear_speculation): Bring to ipa-deivrt.h
6581 (get_class_context): Rename to ...
6582 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6583 (contains_type_p): Update.
6584 (get_dynamic_type): Rename to ...
6585 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6586 (possible_polymorphic_call_targets): UPdate.
6587 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6588 * ipa-prop.c (ipa_analyze_call_uses): Update.
6589
6590 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6591
6592 * doc/invoke.texi (SH options): Document missing processor variant
6593 options. Remove references to Hitachi. Undocument deprecated mspace
6594 option.
6595
6596 2014-08-15 Jason Merrill <jason@redhat.com>
6597
6598 * tree.c (type_hash_canon): Uncomment assert.
6599
6600 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6601
6602 * input.h (in_system_header_at): Add comment.
6603
6604 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6605
6606 PR fortran/44054
6607 * diagnostic.c (build_message_string): Make it extern.
6608 * diagnostic.h (build_message_string): Make it extern.
6609
6610 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6611
6612 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6613 load/store from/to non-floating class pseudo.
6614
6615 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6616
6617 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6618
6619 2014-08-15 Richard Biener <rguenther@suse.de>
6620
6621 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6622 (get_constraint_for_ssa_var): Remove dead code.
6623 (get_constraint_for_1): Adjust.
6624 (find_what_var_points_to): Likewise.
6625 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6626
6627 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6628
6629 PR target/61878
6630 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6631 (_mm512_mask_cmpge_epu32_mask): Ditto.
6632 (_mm512_cmpge_epu32_mask): Ditto.
6633 (_mm512_mask_cmpge_epi64_mask): Ditto.
6634 (_mm512_cmpge_epi64_mask): Ditto.
6635 (_mm512_mask_cmpge_epu64_mask): Ditto.
6636 (_mm512_cmpge_epu64_mask): Ditto.
6637 (_mm512_mask_cmple_epi32_mask): Ditto.
6638 (_mm512_cmple_epi32_mask): Ditto.
6639 (_mm512_mask_cmple_epu32_mask): Ditto.
6640 (_mm512_cmple_epu32_mask): Ditto.
6641 (_mm512_mask_cmple_epi64_mask): Ditto.
6642 (_mm512_cmple_epi64_mask): Ditto.
6643 (_mm512_mask_cmple_epu64_mask): Ditto.
6644 (_mm512_cmple_epu64_mask): Ditto.
6645 (_mm512_mask_cmplt_epi32_mask): Ditto.
6646 (_mm512_cmplt_epi32_mask): Ditto.
6647 (_mm512_mask_cmplt_epu32_mask): Ditto.
6648 (_mm512_cmplt_epu32_mask): Ditto.
6649 (_mm512_mask_cmplt_epi64_mask): Ditto.
6650 (_mm512_cmplt_epi64_mask): Ditto.
6651 (_mm512_mask_cmplt_epu64_mask): Ditto.
6652 (_mm512_cmplt_epu64_mask): Ditto.
6653 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6654 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6655 (_mm512_cmpneq_epu32_mask): Ditto.
6656 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6657 (_mm512_cmpneq_epi64_mask): Ditto.
6658 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6659 (_mm512_cmpneq_epu64_mask): Ditto.
6660 (_mm512_castpd_ps): Ditto.
6661 (_mm512_castpd_si512): Ditto.
6662 (_mm512_castps_pd): Ditto.
6663 (_mm512_castps_si512): Ditto.
6664 (_mm512_castsi512_ps): Ditto.
6665 (_mm512_castsi512_pd): Ditto.
6666 (_mm512_castpd512_pd128): Ditto.
6667 (_mm512_castps512_ps128): Ditto.
6668 (_mm512_castsi512_si128): Ditto.
6669 (_mm512_castpd512_pd256): Ditto.
6670 (_mm512_castps512_ps256): Ditto.
6671 (_mm512_castsi512_si256): Ditto.
6672 (_mm512_castpd128_pd512): Ditto.
6673 (_mm512_castps128_ps512): Ditto.
6674 (_mm512_castsi128_si512): Ditto.
6675 (_mm512_castpd256_pd512): Ditto.
6676 (_mm512_castps256_ps512): Ditto.
6677 (_mm512_castsi256_si512): Ditto.
6678 (_mm512_cmpeq_epu32_mask): Ditto.
6679 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6680 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6681 (_mm512_cmpeq_epu64_mask): Ditto.
6682 (_mm512_cmpgt_epu32_mask): Ditto.
6683 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6684 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6685 (_mm512_cmpgt_epu64_mask): Ditto.
6686 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6687 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6688 * config/i386/i386.c (enum ix86_builtins): Add
6689 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6690 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6691 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6692 (bdesc_args): Add __builtin_ia32_si512_256si,
6693 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6694 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6695 __builtin_ia32_pd512_pd.
6696 (ix86_expand_args_builtin): Handle new FTYPEs.
6697 * config/i386/sse.md (castmode): Add 512-bit modes.
6698 (AVX512MODE2P): New.
6699 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6700 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6701
6702 2014-08-15 Richard Biener <rguenther@suse.de>
6703
6704 * fold-const.c (tree_swap_operands_p): Put all constants
6705 last, also strip sign-changing NOPs when considering further
6706 canonicalization. Canonicalize also when optimizing for size.
6707
6708 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6709
6710 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6711 one_match > zero_match case to just before simple_sequence.
6712
6713 2014-08-15 Richard Biener <rguenther@suse.de>
6714
6715 * data-streamer.h (streamer_string_index, string_for_index):
6716 Remove.
6717 * data-streamer-out.c (streamer_string_index): Make static.
6718 * data-streamer-in.c (string_for_index): Likewise.
6719 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6720 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6721
6722 2014-08-15 Richard Biener <rguenther@suse.de>
6723
6724 PR tree-optimization/62031
6725 * tree-data-ref.c (dr_analyze_indices): Do not set
6726 DR_UNCONSTRAINED_BASE.
6727 (dr_may_alias_p): All indirect accesses have to go the
6728 formerly DR_UNCONSTRAINED_BASE path.
6729 * tree-data-ref.h (struct indices): Remove
6730 unconstrained_base member.
6731 (DR_UNCONSTRAINED_BASE): Remove.
6732
6733 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6734
6735 PR middle-end/62092
6736 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6737 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6738 in OMP_CLAUSE_MAP in some outer target region.
6739
6740 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6741
6742 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6743 name_expansion_cache.
6744 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6745 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6746 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6747 (difference_cannot_overflow_p): New parameter. Use affine
6748 expansion for equality check.
6749 (iv_elimination_compare_lt): Pass new argument.
6750
6751 2014-08-14 DJ Delorie <dj@redhat.com>
6752
6753 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6754 variables to the accumulator.
6755
6756 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6757 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6758 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6759 with far-far moves.
6760
6761 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6762 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6763 (umulqihi3_virt): Likewise.
6764 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6765 (umulqihi3_real): Likewise.
6766
6767 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6768
6769 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6770
6771 PR tree-optimization/62091
6772 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6773 function_entry_reached.
6774 (walk_aliased_vdefs): Clear it here.
6775 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6776
6777 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6778
6779 * ipa-utils.h (compare_virtual_tables): Declare.
6780 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6781
6782 2014-08-14 Marek Polacek <polacek@redhat.com>
6783
6784 DR 458
6785 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6786 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6787
6788 2014-08-14 Tom de Vries <tom@codesourcery.com>
6789
6790 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6791
6792 2014-08-14 Tom de Vries <tom@codesourcery.com>
6793
6794 PR rtl-optimization/62004
6795 PR rtl-optimization/62030
6796 * ifcvt.c (rtx_interchangeable_p): New function.
6797 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6798 * emit-rtl.h (mem_attrs_eq_p): Declare.
6799
6800 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6801
6802 * graphite-scop-detection.c:
6803 Add inclusion of cp-tree.h.
6804 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6805 in case they are pointers to object types
6806
6807 2014-08-14 Richard Biener <rguenther@suse.de>
6808
6809 * BASE-VER: Change to 5.0.0
6810
6811 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6812 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6813 Anna Tikhonova <anna.tikhonova@intel.com>
6814 Ilya Tocar <ilya.tocar@intel.com>
6815 Andrey Turetskiy <andrey.turetskiy@intel.com>
6816 Ilya Verbin <ilya.verbin@intel.com>
6817 Kirill Yukhin <kirill.yukhin@intel.com>
6818 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6819
6820 * config/i386/sse.md (define_mode_attr avx512): New.
6821 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6822 V4DI modes.
6823 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6824 (define_mode_attr ssse3_avx2): Ditto.
6825 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6826 (define_mode_attr avx2_avx512bw): New.
6827 (define_mode_attr ssedoublemodelower): New.
6828 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6829 V32HI, V64QI modes.
6830 (define_mode_attr ssebytemode): Allow V8DI modes.
6831 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6832 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6833 (define_mode_attr ssePSmode2): New.
6834 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6835 V16HI, V32HI modes.
6836 (define_mode_attr dbpsadbwmode): New.
6837 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6838 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6839 (vi8_sse4_1_avx2_avx512): New.
6840 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6841 mode attribute.
6842 (define_mode_attr blendbits): Move before its immediate use.
6843
6844 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6846 Anna Tikhonova <anna.tikhonova@intel.com>
6847 Ilya Tocar <ilya.tocar@intel.com>
6848 Andrey Turetskiy <andrey.turetskiy@intel.com>
6849 Ilya Verbin <ilya.verbin@intel.com>
6850 Kirill Yukhin <kirill.yukhin@intel.com>
6851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6852
6853 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6854 * config/i386/subst.md
6855 (define_mode_iterator SUBST_V): Update.
6856 (define_mode_iterator SUBST_A): Ditto.
6857 (define_subst_attr "mask_operand7"): New.
6858 (define_subst_attr "mask_operand10"): New.
6859 (define_subst_attr "mask_operand_arg34") : New.
6860 (define_subst_attr "mask_expand_op3"): New.
6861 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6862 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6863 (define_subst_attr "mask_avx512vl_condition"): New.
6864 (define_subst_attr "round_mask_operand4"): Ditto.
6865 (define_subst_attr "round_mask_scalar_op3"): Delete.
6866 (define_subst_attr "round_mask_op4"): New.
6867 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6868 V16SImode.
6869 (define_subst_attr "round_modev8sf_condition"): New.
6870 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6871 <MODE>mode.
6872 (define_subst_attr "round_saeonly_mask_operand4"): New.
6873 (define_subst_attr "round_saeonly_mask_op4"): New.
6874 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6875 V8DImode, V16SImode.
6876 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6877 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6878 (define_subst_attr "mask_expand4_args"): New.
6879 (define_subst "mask_expand4"): New.
6880
6881 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6882 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6883 Anna Tikhonova <anna.tikhonova@intel.com>
6884 Ilya Tocar <ilya.tocar@intel.com>
6885 Andrey Turetskiy <andrey.turetskiy@intel.com>
6886 Ilya Verbin <ilya.verbin@intel.com>
6887 Kirill Yukhin <kirill.yukhin@intel.com>
6888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6889
6890 * config/i386/i386.md
6891 (define_attr "isa"): Add avx512bw,noavx512bw.
6892 (define_attr "enabled"): Ditto.
6893 (define_split): Add 32/64-bit mask logic.
6894 (define_insn "*k<logic>qi"): New.
6895 (define_insn "*k<logic>hi"): New.
6896 (define_insn "*anddi_1"): Add mask version.
6897 (define_insn "*andsi_1"): Ditto.
6898 (define_insn "*<code><mode>_1"): Ditto.
6899 (define_insn "*<code>hi_1"): Ditto.
6900 (define_insn "kxnor<mode>"): New.
6901 (define_insn "kunpcksi"): New.
6902 (define_insn "kunpckdi"): New.
6903 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6904 (define_insn "*one_cmplhi2_1"): Ditto.
6905
6906 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6908 Anna Tikhonova <anna.tikhonova@intel.com>
6909 Ilya Tocar <ilya.tocar@intel.com>
6910 Andrey Turetskiy <andrey.turetskiy@intel.com>
6911 Ilya Verbin <ilya.verbin@intel.com>
6912 Kirill Yukhin <kirill.yukhin@intel.com>
6913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6914
6915 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6916 V32HImode.
6917
6918 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6920 Anna Tikhonova <anna.tikhonova@intel.com>
6921 Ilya Tocar <ilya.tocar@intel.com>
6922 Andrey Turetskiy <andrey.turetskiy@intel.com>
6923 Ilya Verbin <ilya.verbin@intel.com>
6924 Kirill Yukhin <kirill.yukhin@intel.com>
6925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6926
6927 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6928 registers.
6929 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6930 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6931 xmm/ymm16+ when availble.
6932 * config/i386/i386.h
6933 (HARD_REGNO_NREGS): Add mask regs.
6934 (VALID_AVX512F_REG_MODE): Ditto.
6935 (VALID_AVX512F_REG_MODE) : Define.
6936 (VALID_MASK_AVX512BW_MODE): Ditto.
6937 (reg_class) (MASK_REG_P(X)): Define.
6938 * config/i386/i386.md: Do not split long moves with mask register,
6939 use kmovb if avx512bw is availible.
6940 (movdi_internal): Handle mask registers.
6941
6942 2014-08-14 Richard Biener <rguenther@suse.de>
6943
6944 PR tree-optimization/62081
6945 * tree-ssa-loop.c (pass_fix_loops): New pass.
6946 (pass_tree_loop::gate): Do not fixup loops here.
6947 * tree-pass.h (make_pass_fix_loops): Declare.
6948 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6949
6950 2014-08-14 Richard Biener <rguenther@suse.de>
6951
6952 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6953 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6954
6955 2014-08-14 Richard Biener <rguenther@suse.de>
6956
6957 PR tree-optimization/62090
6958 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6959 (fold_builtin_2): Do not fold sprintf.
6960 (fold_builtin_3): Likewise.
6961 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6962 moved from builtins.c.
6963 (gimple_fold_builtin): Fold sprintf.
6964
6965 2014-08-14 Richard Biener <rguenther@suse.de>
6966
6967 PR rtl-optimization/62079
6968 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6969 run cleanup_cfg.
6970
6971 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6972
6973 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6974 current_function_decl.
6975
6976 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6977
6978 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6979 cgraph_function_node to cgraph_node::function_symbol
6980 refactoring.
6981
6982 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6983
6984 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6985 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6986
6987 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6988
6989 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6990 warning.
6991
6992 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6993
6994 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6995 generator.
6996
6997 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6998
6999 PR target/62025
7000 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7001 any registers that are used in mem_insn.
7002
7003 2014-08-12 Steve Ellcey <sellcey@mips.com>
7004
7005 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7006
7007 2014-08-12 Steve Ellcey <sellcey@mips.com>
7008
7009 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7010 (MULTILIB_DIRNAMES): Ditto.
7011 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7012 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7013 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7014 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7015 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7016 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7017
7018 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7019
7020 PR target/61413
7021 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7022 of __ARM_SIZEOF_WCHAR_T.
7023
7024 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7025
7026 PR target/62098
7027 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7028 Remove unnecessary attributes.
7029
7030 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7031
7032 * internal-fn.c (init_internal_fns): Fix off-by-one.
7033
7034 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7035 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7036 Anna Tikhonova <anna.tikhonova@intel.com>
7037 Ilya Tocar <ilya.tocar@intel.com>
7038 Andrey Turetskiy <andrey.turetskiy@intel.com>
7039 Ilya Verbin <ilya.verbin@intel.com>
7040 Kirill Yukhin <kirill.yukhin@intel.com>
7041 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7042
7043 * config/i386/i386.c (standard_sse_constant_opcode): Use
7044 vpxord/vpternlog if avx512 is availible.
7045
7046 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7047
7048 PR middle-end/62103
7049 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7050 bitfields, that is when size doesn't match the size of type or the
7051 size of the constructor.
7052
7053 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7054
7055 * config/rs6000/constraints.md (wh constraint): New constraint,
7056 for FP registers if direct move is available.
7057 (wi constraint): New constraint, for VSX/FP registers that can
7058 handle 64-bit integers.
7059 (wj constraint): New constraint for VSX/FP registers that can
7060 handle 64-bit integers for direct moves.
7061 (wk constraint): New constraint for VSX/FP registers that can
7062 handle 64-bit doubles for direct moves.
7063 (wy constraint): Make documentation match implementation.
7064
7065 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7066 scalar_in_vmx_p field to simplify tests of whether SFmode or
7067 DFmode can go in the Altivec registers.
7068 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7069 (rs6000_setup_reg_addr_masks): Likewise.
7070 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7071 field, and wh/wi/wj/wk constraints.
7072 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7073 the wh/wi/wj/wk constraints.
7074 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7075 upper registers, prefer VSX registers unless the operation is a
7076 memory operation with REG+OFFSET addressing.
7077
7078 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7079 DImode. Change SFmode to use ww constraint instead of d to allow
7080 SF registers in the upper registers.
7081 (VSr2): Likewise.
7082 (VSr3): Likewise.
7083 (VSr5): Fix thinko in comment.
7084 (VSa): New mode attribute that is an alternative to wa, that
7085 returns the VSX register class that a mode can go in, but may not
7086 be the preferred register class.
7087 (VS_64dm): New mode attribute for appropriate register classes for
7088 referencing 64-bit elements of vectors for direct moves and normal
7089 moves.
7090 (VS_64reg): Likewise.
7091 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7092 register allocator to only registers the data type can handle.
7093 (vsx_le_perm_load_<mode>): Likewise.
7094 (vsx_le_perm_store_<mode>): Likewise.
7095 (vsx_xxpermdi2_le_<mode>): Likewise.
7096 (vsx_xxpermdi4_le_<mode>): Likewise.
7097 (vsx_lxvd2x2_le_<mode>): Likewise.
7098 (vsx_lxvd2x4_le_<mode>): Likewise.
7099 (vsx_stxvd2x2_le_<mode>): Likewise.
7100 (vsx_add<mode>3): Likewise.
7101 (vsx_sub<mode>3): Likewise.
7102 (vsx_mul<mode>3): Likewise.
7103 (vsx_div<mode>3): Likewise.
7104 (vsx_tdiv<mode>3_internal): Likewise.
7105 (vsx_fre<mode>2): Likewise.
7106 (vsx_neg<mode>2): Likewise.
7107 (vsx_abs<mode>2): Likewise.
7108 (vsx_nabs<mode>2): Likewise.
7109 (vsx_smax<mode>3): Likewise.
7110 (vsx_smin<mode>3): Likewise.
7111 (vsx_sqrt<mode>2): Likewise.
7112 (vsx_rsqrte<mode>2): Likewise.
7113 (vsx_tsqrt<mode>2_internal): Likewise.
7114 (vsx_fms<mode>4): Likewise.
7115 (vsx_nfma<mode>4): Likewise.
7116 (vsx_eq<mode>): Likewise.
7117 (vsx_gt<mode>): Likewise.
7118 (vsx_ge<mode>): Likewise.
7119 (vsx_eq<mode>_p): Likewise.
7120 (vsx_gt<mode>_p): Likewise.
7121 (vsx_ge<mode>_p): Likewise.
7122 (vsx_xxsel<mode>): Likewise.
7123 (vsx_xxsel<mode>_uns): Likewise.
7124 (vsx_copysign<mode>3): Likewise.
7125 (vsx_float<VSi><mode>2): Likewise.
7126 (vsx_floatuns<VSi><mode>2): Likewise.
7127 (vsx_fix_trunc<mode><VSi>2): Likewise.
7128 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7129 (vsx_x<VSv>r<VSs>i): Likewise.
7130 (vsx_x<VSv>r<VSs>ic): Likewise.
7131 (vsx_btrunc<mode>2): Likewise.
7132 (vsx_b2trunc<mode>2): Likewise.
7133 (vsx_floor<mode>2): Likewise.
7134 (vsx_ceil<mode>2): Likewise.
7135 (vsx_<VS_spdp_insn>): Likewise.
7136 (vsx_xscvspdp): Likewise.
7137 (vsx_xvcvspuxds): Likewise.
7138 (vsx_float_fix_<mode>2): Likewise.
7139 (vsx_set_<mode>): Likewise.
7140 (vsx_extract_<mode>_internal1): Likewise.
7141 (vsx_extract_<mode>_internal2): Likewise.
7142 (vsx_extract_<mode>_load): Likewise.
7143 (vsx_extract_<mode>_store): Likewise.
7144 (vsx_splat_<mode>): Likewise.
7145 (vsx_xxspltw_<mode>): Likewise.
7146 (vsx_xxspltw_<mode>_direct): Likewise.
7147 (vsx_xxmrghw_<mode>): Likewise.
7148 (vsx_xxmrglw_<mode>): Likewise.
7149 (vsx_xxsldwi_<mode>): Likewise.
7150 (vsx_xscvdpspn): Tighten constraints to only use register classes
7151 the types use.
7152 (vsx_xscvspdpn): Likewise.
7153 (vsx_xscvdpspn_scalar): Likewise.
7154
7155 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7156 wj, and wk constraints.
7157 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7158 general purpose registers.
7159
7160 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7161 direct moves.
7162 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7163 DImode instead of wm. Use wk constraint for direct move of DFmode
7164 instead of wm.
7165 (extendsidi2_lfiwax): Likewise.
7166 (lfiwax): Likewise.
7167 (lfiwzx): Likewise.
7168 (movdi_internal64): Likewise.
7169
7170 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7171 wk constraints. Make the wy constraint documentation match them
7172 implementation.
7173
7174 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7175
7176 Replacement of isl_int by isl_val
7177 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7178 (compute_bounds_for_param): use isl_val instead of isl_int
7179 (compute_bounds_for_loop): likewise
7180 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7181 (build_linearized_memory_access): use isl_val instead of isl_int
7182 (pdr_stride_in_loop): likewise
7183 * graphite-optimize-isl.c:
7184 (getPrevectorMap): use isl_val instead of isl_int
7185 * graphite-poly.c:
7186 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7187 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7188 (extern the_isl_ctx): declare
7189 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7190 (extract_affine_gmp): likewise
7191 (wrap): likewise
7192 (build_loop_iteration_domains): likewise
7193 (add_param_constraints): likewise
7194
7195 2014-08-11 Richard Biener <rguenther@suse.de>
7196
7197 PR tree-optimization/62075
7198 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7199 handle uses in patterns.
7200
7201 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7202 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7203 Anna Tikhonova <anna.tikhonova@intel.com>
7204 Ilya Tocar <ilya.tocar@intel.com>
7205 Andrey Turetskiy <andrey.turetskiy@intel.com>
7206 Ilya Verbin <ilya.verbin@intel.com>
7207 Kirill Yukhin <kirill.yukhin@intel.com>
7208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7209
7210 * common/config/i386/i386-common.c
7211 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7212 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7213 (ix86_handle_option): Handle OPT_mavx512vl.
7214 * config/i386/cpuid.h (bit_AVX512VL): Define.
7215 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7216 set -mavx512vl accordingly.
7217 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7218 OPTION_MASK_ISA_AVX512VL.
7219 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7220 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7221 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7222 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7223 * config/i386/i386.h (TARGET_AVX512VL): Define.
7224 (TARGET_AVX512VL_P(x)): Ditto.
7225 * config/i386/i386.opt: Add mavx512vl.
7226
7227 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7228
7229 PR tree-optimization/62073
7230 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7231 a basic block.
7232
7233 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7234 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7235 Anna Tikhonova <anna.tikhonova@intel.com>
7236 Ilya Tocar <ilya.tocar@intel.com>
7237 Andrey Turetskiy <andrey.turetskiy@intel.com>
7238 Ilya Verbin <ilya.verbin@intel.com>
7239 Kirill Yukhin <kirill.yukhin@intel.com>
7240 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7241
7242 * common/config/i386/i386-common.c
7243 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7244 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7245 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7246 (ix86_handle_option): Handle OPT_mavx512bw.
7247 * config/i386/cpuid.h (bit_AVX512BW): Define.
7248 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7249 set -mavx512bw accordingly.
7250 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7251 OPTION_MASK_ISA_AVX512BW.
7252 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7253 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7254 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7255 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7256 * config/i386/i386.h (TARGET_AVX512BW): Define.
7257 (TARGET_AVX512BW_P(x)): Ditto.
7258 * config/i386/i386.opt: Add mavx512bw.
7259
7260 2014-08-11 Richard Biener <rguenther@suse.de>
7261
7262 PR tree-optimization/62070
7263 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7264 Remove SSA checking.
7265
7266 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7267
7268 * asan.c (asan_check_flags): New enum.
7269 (build_check_stmt_with_calls): Removed function.
7270 (build_check_stmt): Split inlining logic to
7271 asan_expand_check_ifn.
7272 (instrument_derefs): Rename parameter.
7273 (instrument_mem_region_access): Rename parameter.
7274 (instrument_strlen_call): Likewise.
7275 (asan_expand_check_ifn): New function.
7276 (asan_instrument): Remove old code.
7277 (pass_sanopt::execute): Change handling of
7278 asan-instrumentation-with-call-threshold.
7279 (asan_clear_shadow): Fix formatting.
7280 (asan_function_start): Likewise.
7281 (asan_emit_stack_protection): Likewise.
7282 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7283 Update description.
7284 * internal-fn.c (expand_ASAN_CHECK): New function.
7285 * internal-fn.def (ASAN_CHECK): New internal function.
7286 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7287 Update description.
7288 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7289 * tree.c: Small comment fix.
7290
7291 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7292
7293 * gimple.c (gimple_call_fnspec): Support internal functions.
7294 (gimple_call_return_flags): Use const.
7295 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7296 * internal-fn.def: Add fnspec information.
7297 * internal-fn.h (internal_fn_fnspec): New function.
7298 (init_internal_fns): Declare new function.
7299 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7300 (init_internal_fns): New function.
7301 * tree-core.h: Update macro call.
7302 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7303
7304 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7305
7306 * lto-streamer.h (struct output_block::symbol): Change from
7307 struct symtab_node to plain symtab_node.
7308 (referenced_from_this_partition_p): Change first parameter
7309 from struct symtab_node to plain symtab_node.
7310
7311 2014-08-10 Marek Polacek <polacek@redhat.com>
7312
7313 PR c/51849
7314 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7315
7316 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7317
7318 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7319 DECL correctly; do not give up on types in static storage.
7320
7321 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7322
7323 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7324
7325 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7326
7327 * graphite-isl-ast-to-gimple.c:
7328 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7329
7330 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7331
7332 2014-08-08 Guozhi Wei <carrot@google.com>
7333
7334 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7335
7336 2014-08-08 Cary Coutant <ccoutant@google.com>
7337
7338 * dwarf2out.c (get_skeleton_type_unit): Remove.
7339 (output_skeleton_debug_sections): Remove skeleton type units.
7340 (output_comdat_type_unit): Likewise.
7341 (dwarf2out_finish): Likewise.
7342
7343 2014-08-07 Yi Yang <ahyangyi@google.com>
7344
7345 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7346
7347 2014-08-08 Richard Biener <rguenther@suse.de>
7348
7349 * lto-streamer.h (struct lto_input_block): Make it a class
7350 with a constructor.
7351 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7352 (struct lto_function_header, struct lto_simple_header,
7353 struct lto_simple_header_with_strings,
7354 struct lto_decl_header, struct lto_function_header): Make
7355 a simple inheritance hieararchy. Remove unused fields.
7356 (struct lto_asm_header): Remove.
7357 * lto-streamer-out.c (produce_asm): Adjust.
7358 (lto_output_toplevel_asms): Likewise.
7359 (produce_asm_for_decls): Likewise.
7360 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7361 * data-streamer-in.c (string_for_index): Likewise.
7362 * ipa-inline-analysis.c (inline_read_section): Likewise.
7363 * ipa-prop.c (ipa_prop_read_section): Likewise.
7364 (read_replacements_section): Likewise.
7365 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7366 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7367 (lto_destroy_simple_input_block): Likewise.
7368 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7369 (lto_input_toplevel_asms): Likewise.
7370
7371 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7372 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7373 Anna Tikhonova <anna.tikhonova@intel.com>
7374 Ilya Tocar <ilya.tocar@intel.com>
7375 Andrey Turetskiy <andrey.turetskiy@intel.com>
7376 Ilya Verbin <ilya.verbin@intel.com>
7377 Kirill Yukhin <kirill.yukhin@intel.com>
7378 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7379
7380 * common/config/i386/i386-common.c
7381 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7382 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7383 (ix86_handle_option): Handle OPT_mavx512dq.
7384 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7385 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7386 set -mavx512dq accordingly.
7387 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7388 OPTION_MASK_ISA_AVX512DQ.
7389 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7390 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7391 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7392 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7393 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7394 (TARGET_AVX512DQ_P(x)): Ditto.
7395 * config/i386/i386.opt: Add mavx512dq.
7396
7397 2014-08-08 Richard Biener <rguenther@suse.de>
7398
7399 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7400 target_percent, target_percent_s): Export.
7401 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7402 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7403 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7404 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7405 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7406 Move to gimple-fold.c.
7407 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7408 strcat and strcpy.
7409 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7410 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7411 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7412 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7413 (rewrite_call_expr_array): Remove.
7414 (fold_builtin_sprintf_chk): Likewise.
7415 (fold_builtin_snprintf_chk): Likewise.
7416 (fold_builtin_varargs): Remove handling of sprintf_chk,
7417 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7418 (gimple_fold_builtin_sprintf_chk): Remove.
7419 (gimple_fold_builtin_snprintf_chk): Likewise.
7420 (gimple_fold_builtin_varargs): Likewise.
7421 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7422 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7423 * gimple.c (gimple_seq_add_seq_without_update): New function.
7424 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7425 * gimple-fold.c: Include output.h.
7426 (gsi_replace_with_seq_vops): New function, split out from ...
7427 (gimplify_and_update_call_from_tree): ... here.
7428 (replace_call_with_value): New function.
7429 (replace_call_with_call_and_fold): Likewise.
7430 (var_decl_component_p): Moved from builtins.c.
7431 (gimple_fold_builtin_memory_op): Moved from builtins.c
7432 fold_builtin_memory_op and rewritten to GIMPLE.
7433 (gimple_fold_builtin_memset): Likewise.
7434 (gimple_fold_builtin_strcpy): Likewise.
7435 (gimple_fold_builtin_strncpy): Likewise.
7436 (gimple_fold_builtin_strcat): Likewise.
7437 (gimple_fold_builtin_fputs): Likewise.
7438 (gimple_fold_builtin_memory_chk): Likewise.
7439 (gimple_fold_builtin_stxcpy_chk): Likewise.
7440 (gimple_fold_builtin_stxncpy_chk): Likewise.
7441 (gimple_fold_builtin_snprintf_chk): Likewise.
7442 (gimple_fold_builtin_sprintf_chk): Likewise.
7443 (gimple_fold_builtin_strlen): New function.
7444 (gimple_fold_builtin_with_strlen): New function split out from
7445 gimple_fold_builtin.
7446 (gimple_fold_builtin): Change signature and handle
7447 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7448 here. Call gimple_fold_builtin_with_strlen.
7449 (gimple_fold_call): Adjust.
7450
7451 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7452
7453 * calls.c (precompute_arguments): Check
7454 promoted_for_signed_and_unsigned_p and set the promoted mode.
7455 (promoted_for_signed_and_unsigned_p): New function.
7456 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7457 and set the promoted mode.
7458 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7459 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7460 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7461
7462
7463 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7464
7465 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7466 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7467 (expand_call): Likewise.
7468 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7469 to get promoted mode.
7470 * combine.c (record_promoted_value): Skip > 0 comparison with
7471 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7472 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7473 of SUBREG_PROMOTED_UNSIGNED_P.
7474 (convert_modes): Likewise.
7475 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7476 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7477 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7478 SUBREG_PROMOTED_UNSIGNED_SET.
7479 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7480 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7481 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7482 SUBREG_PROMOTED_SET.
7483 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7484 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7485 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7486 of SUBREG_PROMOTED_UNSIGNED_P.
7487 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7488 (SUBREG_PROMOTED_SET): New define.
7489 (SUBREG_PROMOTED_GET): Likewise.
7490 (SUBREG_PROMOTED_SIGN): Likewise.
7491 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7492 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7493 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7494 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7495 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7496 (nonzero_bits1): Skip > 0 comparison with the results as
7497 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7498 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7499 of !SUBREG_PROMOTED_UNSIGNED_P.
7500 * simplify-rtx.c (simplify_unary_operation_1): Use new
7501 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7502 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7503 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7504 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7505
7506 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7507
7508 * ipa-devirt.c: Include gimple-pretty-print.h
7509 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7510 further tests.
7511 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7512 (get_polymorphic_call_info): Fix return value
7513 (type_change_info): New sturcture based on ipa-prop
7514 variant.
7515 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7516 based on ipa-prop variant.
7517 (extr_type_from_vtbl_ptr_store): New function
7518 based on ipa-prop variant.
7519 (record_known_type): New function.
7520 (check_stmt_for_type_change): New function.
7521 (get_dynamic_type): New function.
7522 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7523 * tree-ssa-pre.c: ipa-utils.h
7524 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7525 machinery; sanity check with ipa-prop devirtualization.
7526 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7527 polymorphic flag.
7528
7529 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7530
7531 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7532 * alias.c, cfgexpand.c, cgraphbuild.c,
7533 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7534 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7535 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7536 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7537 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7538 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7539 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7540 dse.c, except.c, gengtype.c, gimple-expr.c,
7541 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7542 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7543 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7544 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7545 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7546 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7547 pointer-set.h.
7548 * pointer-set.c: Remove file.
7549 * pointer-set.h: Remove file.
7550
7551 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7552
7553 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7554 * config/arm/types.md (f_sels, f_seld): Delete.
7555
7556 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7557
7558 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7559 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7560 (aarch64_movdi_<mode>high): Likewise.
7561 (aarch64_mov<mode>high_di): Likewise.
7562 (aarch64_movdi_<mode>low): Likewise.
7563 (aarch64_mov<mode>low_di): Likewise.
7564 (aarch64_movtilow_tilow): Likewise.
7565 Add comment explaining usage of fp,simd attributes and of
7566 TARGET_FLOAT and TARGET_SIMD.
7567
7568 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7569 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7570
7571 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7572 Use MOVN when one of the half-words is 0xffff.
7573
7574 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7575
7576 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7577
7578 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7579
7580 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7581 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7582 (rfs_str): String corresponding to RFS_* constants.
7583 (rank_for_schedule_stats_t): New typedef.
7584 (rank_for_schedule_stats): New static variable.
7585 (rfs_result): New static function.
7586 (rank_for_schedule): Track statistics for deciding heuristics.
7587 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7588 static functions.
7589 (ready_sort): Use them for debug printouts.
7590 (schedule_block): Init statistics state. Print statistics on
7591 rank_for_schedule decisions.
7592
7593 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7594
7595 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7596
7597 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7598
7599 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7600 constraint.
7601
7602 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7603
7604 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7605 function to not conflict.
7606 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7607 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7608 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7609 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7610 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7611 of pointer_map.
7612
7613 2014-08-07 Marek Polacek <polacek@redhat.com>
7614
7615 * fold-const.c (fold_binary_loc): Add folding of
7616 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7617
7618 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7619
7620 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7621 instead of type size.
7622 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7623
7624 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7625
7626 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7627 (*thumb1_movqi_insn): Likewise.
7628 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7629
7630 2014-08-07 Tom de Vries <tom@codesourcery.com>
7631
7632 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7633 (glibc_2_11_or_earlier): Remove effective-target keywords.
7634
7635 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7636
7637 * config/arm/arm.c (bdesc_2arg): Fix typo.
7638 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7639
7640 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7641
7642 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7643
7644 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7645
7646 PR debug/61923
7647 * haifa-sched.c (advance_one_cycle): Fix dump.
7648 (schedule_block): Don't advance cycle if we are already at the
7649 beginning of the cycle.
7650
7651 2014-08-06 Martin Jambor <mjambor@suse.cz>
7652
7653 PR ipa/61393
7654 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7655
7656 2014-08-06 Richard Biener <rguenther@suse.de>
7657
7658 PR lto/62034
7659 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7660 SCCs here.
7661 (lto_input_tree): Pop SCCs here.
7662
7663 2014-08-06 Richard Biener <rguenther@suse.de>
7664
7665 PR tree-optimization/61320
7666 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7667 handle misaligned loads.
7668
7669 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7670
7671 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7672 (aarch64_expand_vec_perm_const): Check for dup before zip.
7673
7674 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7675
7676 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7677 CONST_INT_P instead of GET_CODE and compare.
7678 (aarch64_select_cc_mode): Likewise.
7679 (aarch64_print_operand): Likewise.
7680 (aarch64_rtx_costs): Likewise.
7681 (aarch64_simd_valid_immediate): Likewise.
7682 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7683 (aarch64_simd_emit_pair_result_insn): Likewise.
7684
7685 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7686
7687 * gdbhooks.py (find_gcc_source_dir): New helper function.
7688 (class PassNames): New class, locating and parsing passes.def.
7689 (class BreakOnPass): New command "break-on-pass".
7690
7691 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7692
7693 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7694 getting olde.
7695
7696 2014-08-05 Richard Biener <rguenther@suse.de>
7697
7698 PR rtl-optimization/61672
7699 * emit-rtl.h (mem_attrs_eq_p): Declare.
7700 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7701 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7702 * cfgcleanup.c (merge_memattrs): Likewise.
7703 Include emit-rtl.h.
7704
7705 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7706
7707 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7708 rather than singleton vectors.
7709 (vqdmlsls_lane_s32): Likewise.
7710
7711 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7712
7713 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7714 Use VSDQ_HSI mode iterator.
7715 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7716 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7717 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7718 Use BUILTIN_VDQHS macro.
7719 (sqrdmulh_laneq): Likewise.
7720 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7721 (vqdmlals_laneq_s32): Likewise.
7722 (vqdmlslh_laneq_s16): Likewise.
7723 (vqdmlsls_laneq_s32): Likewise.
7724 (vqdmulhh_laneq_s16): Likewise.
7725 (vqdmulhs_laneq_s32): Likewise.
7726 (vqrdmulhh_laneq_s16): Likewise.
7727 (vqrdmulhs_laneq_s32): Likewise.
7728
7729 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7730
7731 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7732 (vmuld_laneq_f64): Likewise.
7733 (vmuls_laneq_f32): Likewise.
7734 (vmul_n_f64): Likewise.
7735 (vmuld_lane_f64): Reimplement in C.
7736 (vmuls_lane_f32): Likewise.
7737
7738 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7739
7740 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7741 to reservation.
7742 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7743
7744 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7745
7746 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7747 (rbitsi2): Likewise.
7748 (*arm_rev): Set predicable and predicable_short_it attributes.
7749
7750 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7751
7752 * convert.c (convert_to_integer): Guard transformation to lrint by
7753 -fno-math-errno.
7754
7755 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7756
7757 * config/aarch64/aarch64-builtins.c
7758 (aarch64_simd_builtin_type_mode): Delete.
7759 (v8qi_UP): Remap to V8QImode.
7760 (v4hi_UP): Remap to V4HImode.
7761 (v2si_UP): Remap to V2SImode.
7762 (v2sf_UP): Remap to V2SFmode.
7763 (v1df_UP): Remap to V1DFmode.
7764 (di_UP): Remap to DImode.
7765 (df_UP): Remap to DFmode.
7766 (v16qi_UP):V16QImode.
7767 (v8hi_UP): Remap to V8HImode.
7768 (v4si_UP): Remap to V4SImode.
7769 (v4sf_UP): Remap to V4SFmode.
7770 (v2di_UP): Remap to V2DImode.
7771 (v2df_UP): Remap to V2DFmode.
7772 (ti_UP): Remap to TImode.
7773 (ei_UP): Remap to EImode.
7774 (oi_UP): Remap to OImode.
7775 (ci_UP): Map to CImode.
7776 (xi_UP): Remap to XImode.
7777 (si_UP): Remap to SImode.
7778 (sf_UP): Remap to SFmode.
7779 (hi_UP): Remap to HImode.
7780 (qi_UP): Remap to QImode.
7781 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7782 (VAR1): Build builtin name.
7783 (aarch64_init_simd_builtins): Remove dead code.
7784
7785 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7786
7787 * graphite-isl-ast-to-gimple.c:
7788 (set_options): New function.
7789 (scop_to_isl_ast): Add calling of set_options.
7790
7791 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7792
7793 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7794 (analyze_iv_to_split_insn): Don't initialize them.
7795 (get_ivts_expr): Removed.
7796 (allocate_basic_variable, insert_base_initialization): Use
7797 SET_SRC instead of *get_ivts_expr.
7798 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7799
7800 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7801
7802 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7803 (translate_isl_ast_for_loop): Add checking of the
7804 flag_loop_parallelize_all.
7805 (ast_build_before_for): New function.
7806 (scop_to_isl_ast): Add checking of the
7807 flag_loop_parallelize_all.
7808 * graphite-dependences.c: Move the defenition of the
7809 scop_get_dependences from graphite-optimize-isl.c to this file.
7810 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7811 (carries_deps): Add checking of the x's value.
7812 * graphite-optimize-isl.c: Move the defenition of the
7813 scop_get_dependences to graphite-dependences.c.
7814 * graphite-poly.h: Add declarations of scop_get_dependences
7815 and carries_deps.
7816
7817 2014-08-04 Rohit <rohitarulraj@freescale.com>
7818
7819 PR target/60102
7820 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7821 names.
7822 (alt_reg_names): Likewise.
7823 (rs6000_dwarf_register_span): For SPE high registers, replace
7824 dwarf register numbers with GCC hard register numbers.
7825 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7826 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7827 register number for the corresponding GCC hard register number.
7828 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7829 newly added GCC hard register numbers for SPE high registers.
7830 (DWARF_FRAME_REGISTERS): Likewise.
7831 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7832 (DWARF_FRAME_REGNUM): Likewise.
7833 (FIXED_REGISTERS): Likewise.
7834 (CALL_USED_REGISTERS): Likewise.
7835 (CALL_REALLY_USED_REGISTERS): Likewise.
7836 (REG_ALLOC_ORDER): Likewise.
7837 (enum reg_class): Likewise.
7838 (REG_CLASS_NAMES): Likewise.
7839 (REG_CLASS_CONTENTS): Likewise.
7840 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7841
7842 2014-08-04 Richard Biener <rguenther@suse.de>
7843
7844 * gimple-fold.h (gimple_fold_builtin): Remove.
7845 * gimple-fold.c (gimple_fold_builtin): Make static.
7846 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7847 fold_stmt, not gimple_fold_builtin.
7848
7849 2014-08-04 Martin Liska <mliska@suse.cz>
7850
7851 * cgraph.h (csi_end_p): Removed.
7852 (csi_next): Likewise.
7853 (csi_node): Likewise.
7854 (csi_start): Likewise.
7855 (cgraph_node_in_set_p): Likewise.
7856 (cgraph_node_set_size): Likewise.
7857 (vsi_end_p): Likewise.
7858 (vsi_next): Likewise.
7859 (vsi_node): Likewise.
7860 (vsi_start): Likewise.
7861 (varpool_node_set_size): Likewise.
7862 (cgraph_node_set_nonempty_p): Likewise.
7863 (varpool_node_set_nonempty_p): Likewise.
7864 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7865 cgraph_node_set.
7866 * ipa-inline-transform.c: Likewise.
7867 * ipa-utils.c (cgraph_node_set_new): Removed.
7868 (cgraph_node_set_add): Likewise.
7869 (cgraph_node_set_remove): Likewise.
7870 (cgraph_node_set_find): Likewise.
7871 (dump_cgraph_node_set): Likewise.
7872 (debug_cgraph_node_set): Likewise.
7873 (free_cgraph_node_set): Likewise.
7874 (varpool_node_set_new): Likewise.
7875 (varpool_node_set_add): Likewise.
7876 (varpool_node_set_remove): Likewise.
7877 (varpool_node_set_find): Likewise.
7878 (dump_varpool_node_set): Likewise.
7879 (free_varpool_node_set): Likewise.
7880 (debug_varpool_node_set): Likewise.
7881 * tree-emutls.c (struct tls_var_data):
7882 (emutls_index): Removed.
7883 (emutls_decl): Likewise.
7884 (gen_emutls_addr): Function implementation uses newly added
7885 hash_map<varpool_node *, tls_var_data>.
7886 (clear_access_vars): Likewise.
7887 (create_emultls_var): Likewise.
7888 (ipa_lower_emutls): Likewise.
7889 (reset_access): New function.
7890
7891 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7892
7893 * config/i386/i386.c (ix86_option_override_internal): Add
7894 PTA_RDRND and PTA_MOVBE for bdver4.
7895
7896 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7897 James Greenhalgh <james.greenhalgh@arm.com>
7898
7899 * doc/md.texi (clrsb): Document.
7900 (clz): Change reference to x into operand 1.
7901 (ctz): Likewise.
7902 (popcount): Likewise.
7903
7904 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7905
7906 PR target/61713
7907 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7908 move to subtarget in serial version if result is ignored.
7909
7910 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7911 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7912
7913 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7914 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7915 (sched_analyze_insn): Update use of try_group_insn to
7916 sched_macro_fuse_insns.
7917 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7918 arguments that are not conditional jumps.
7919
7920 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7921
7922 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7923 family information. Handle BTVER2 cpu with cpuid family value.
7924
7925 2014-08-04 Tom de Vries <tom@codesourcery.com>
7926
7927 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7928 (glibc_2_11_or_earlier): Document effective-target keywords.
7929
7930 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7931
7932 * ipa-devirt.c (odr_type_warn_count): Add type.
7933 (possible_polymorphic_call_targets): Set it.
7934 (ipa_devirt): Use it.
7935
7936 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7937
7938 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7939 Document.
7940 * ipa-devirt.c: Include hash-map.h
7941 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7942 (clear_speculation): Break out of ...
7943 (get_class_context): ... here; speed up handling obviously useless
7944 speculations.
7945 (odr_type_warn_count, decl_warn_count): New structures.
7946 (final_warning_record): New structure.
7947 (final_warning_records): New static variable.
7948 (possible_polymorphic_call_targets): Cleanup handling of
7949 speculative info; do not build speculation when user do not care;
7950 record info about warnings when asked for.
7951 (add_decl_warning): New function.
7952 (type_warning_cmp): New function.
7953 (decl_warning_cmp): New function.
7954 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7955 (gate): Enable pass when warnings are requested.
7956 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7957 options.
7958
7959 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7960
7961 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7962 Fix cast.
7963 (hash_map::remove): New method.
7964 (hash_map::traverse): New method.
7965 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7966 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7967 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7968 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7969 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7970 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7971 pointer_map.
7972
7973 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7974
7975 * hash-set.h: new File.
7976 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7977 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7978 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7979 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7980 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7981 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7982 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7983 varpool.c: Use hash_set instead of pointer_set.
7984
7985 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7986
7987 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7988
7989 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7990
7991 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7992 for frame access when strict_p is false.
7993
7994 2014-08-01 Renlin Li <renlin.li@arm.com>
7995 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7996
7997 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7998 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7999 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8000 Declaration.
8001 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8002 predicate.
8003 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8004 aarch64_mem_pair_offset.
8005
8006 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8007
8008 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8009 offset.
8010 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8011 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8012
8013 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8014
8015 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8016
8017 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8018
8019 PR regression/61510
8020 * cgraphunit.c (analyze_functions): Use get_create rather than get
8021 for decls which are clones of abstract functions.
8022
8023 2014-08-01 Martin Liska <mliska@suse.cz>
8024
8025 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8026 * ipa-prop.h (count_formal_params): Global function created from static.
8027 * ipa-prop.c (count_formal_params): Likewise.
8028 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8029 profiles for semantically equivalent functions.
8030 * passes.c (do_per_function): If we load body of a function
8031 during WPA, this condition should behave same.
8032 * varpool.c (ctor_for_folding): More tolerant assert for variable
8033 aliases created during WPA.
8034
8035 2014-08-01 Martin Liska <mliska@suse.cz>
8036
8037 * doc/invoke.texi (Options That Control Optimization): Documentation
8038 for -foptimize-strlen introduced. Optimization levels default options
8039 fixed.
8040
8041 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8042
8043 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8044 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8045 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8046 type to bool.
8047 * stor-layout.h (min_align_of_type): New prototype.
8048 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8049 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8050 check.
8051 * ubsan.c: Include builtins.h.
8052 (ubsan_expand_bounds_ifn): Change return type to bool,
8053 always return true.
8054 (ubsan_expand_null_ifn): Change return type to bool, change
8055 argument to gimple_stmt_iterator *. Handle both null and alignment
8056 sanitization, take type from ckind argument's type rather than
8057 first argument.
8058 (instrument_member_call): Removed.
8059 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8060 Handle both null and alignment sanitization, don't say whole
8061 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8062 call instead of 2 argument.
8063 (instrument_null): Adjust instrument_mem_ref caller. Don't
8064 instrument calls here.
8065 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8066 like SANITIZE_NULL.
8067 * stor-layout.c (min_align_of_type): New function.
8068 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8069 Or it into SANITIZE_UNDEFINED.
8070 * doc/invoke.texi (-fsanitize=alignment): Document.
8071
8072 2014-07-31 Andi Kleen <ak@linux.intel.com>
8073
8074 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8075
8076 2014-07-31 Andi Kleen <ak@linux.intel.com>
8077
8078 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8079 inchash.
8080 (vn_reference_compute_hash): Dito.
8081 (vn_nary_op_compute_hash): Dito.
8082 (vn_phi_compute_hash): Dito.
8083 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8084
8085 2014-07-31 Andi Kleen <ak@linux.intel.com>
8086
8087 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8088 Rename to inchash:add_expr_commutative. Convert to inchash.
8089 (iterative_hash_hashable_expr): Rename to
8090 inchash:add_hashable_expr. Convert to inchash.
8091 (avail_expr_hash): Dito.
8092
8093 2014-07-31 Andi Kleen <ak@linux.intel.com>
8094
8095 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8096 Convert to inchash.
8097
8098 2014-07-31 Andi Kleen <ak@linux.intel.com>
8099
8100 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8101
8102 2014-07-31 Andi Kleen <ak@linux.intel.com>
8103
8104 * Makefile.in (OBJS): Add rtlhash.o
8105 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8106 (loc_checksum): Dito.
8107 (loc_checksum_ordered): Dito.
8108 (hash_loc_operands): Dito.
8109 (hash_locs): Dito.
8110 (hash_loc_list): Dito.
8111 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8112 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8113 * rtlhash.c: New file.
8114 * rtlhash.h: New file.
8115
8116 2014-07-31 Andi Kleen <ak@linux.intel.com>
8117
8118 * inchash.h (inchash): Change inchash class to namespace.
8119 (class hash): ... Rename from inchash.
8120 (add_object): Move from macro to class template.
8121 * lto-streamer-out.c (hash_tree): Change inchash
8122 to inchash::hash.
8123 * tree.c (build_type_attribute_qual_variant): Dito.
8124 (type_hash_list): Dito.
8125 (attribute_hash_list): Dito.
8126 (iterative_hstate_expr): Rename to inchash::add_expr
8127 (build_range_type_1): Change inchash to inchash::hash
8128 and use hash::add_expr.
8129 (build_array_type_1): Dito.
8130 (build_function_type): Dito
8131 (build_method_type_directly): Dito.
8132 (build_offset_type): Dito.
8133 (build_complex_type): Dito.
8134 (make_vector_type): Dito.
8135 * tree.h (iterative_hash_expr): Dito.
8136
8137 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8138
8139 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8140
8141 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8142
8143 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8144 correct alphabetical position.
8145 (vpaddd_f64): Rewrite using builtins.
8146 (vpaddd_s64): Move to correct alphabetical position.
8147 (vpaddd_u64): New.
8148
8149 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8150
8151 PR target/61844
8152 * config/sh/sh.c (sh_legitimate_address_p,
8153 sh_legitimize_reload_address): Handle reg+reg address modes when
8154 ALLOW_INDEXED_ADDRESS is false.
8155 * config/sh/predicates.md (general_movsrc_operand,
8156 general_movdst_operand): Likewise.
8157
8158 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8159
8160 * config/aarch64/aarch64-builtins.c
8161 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8162 BYTES_BIG_ENDIAN.
8163
8164 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8165
8166 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8167 the generated mask based on BYTES_BIG_ENDIAN.
8168 (aarch64_simd_check_vect_par_cnst_half): New.
8169 * config/aarch64/aarch64-protos.h
8170 (aarch64_simd_check_vect_par_cnst_half): New.
8171 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8172 the check out to aarch64_simd_check_vect_par_cnst_half.
8173 (vect_par_cnst_lo_half): Likewise.
8174 * config/aarch64/aarch64-simd.md
8175 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8176 (move_hi_quad_<mode>): Always generate a low mask.
8177
8178 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8179
8180 * doc/invoke.texi (AVR Options): Add documentation about
8181 __AVR_DEVICE_NAME__ built-in macro.
8182
8183 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8184
8185 PR target/61948
8186 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8187 constraints are satisfied.
8188 (<shift>di3_neon): Likewise.
8189
8190 2014-07-31 Richard Biener <rguenther@suse.de>
8191
8192 PR tree-optimization/61964
8193 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8194 by structural equality.
8195
8196 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8197
8198 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8199 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8200 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8201 New enums.
8202 * gcc.c (sanitize_spec_function): Support new option.
8203 (SANITIZER_SPEC): Remove now redundant check.
8204 * opts.c (common_handle_option): Support new option.
8205 (finish_options): Check for incompatibilities.
8206 * toplev.c (process_options): Split userspace-specific checks.
8207
8208 2014-07-31 Richard Biener <rguenther@suse.de>
8209
8210 * lto-streamer.h (struct output_block): Remove global.
8211 (struct data_in): Remove labels, num_named_labels and
8212 num_unnamed_labels.
8213 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8214 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8215
8216 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8217
8218 PR c++/60517
8219 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8220 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8221 (isolate_path): New argument to avoid inserting a trap.
8222 (find_implicit_erroneous_behaviour): Handle returning the address
8223 of a local variable.
8224 (find_explicit_erroneous_behaviour): Likewise.
8225
8226 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8227
8228 PR lto/61868
8229 * toplev.c (init_random_seed): Move piece of code never called to
8230 set_random_seed.
8231 (set_random_seed): see above.
8232
8233 2014-07-31 Tom de Vries <tom@codesourcery.com>
8234
8235 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8236
8237 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8238
8239 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8240 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8241
8242 2014-07-31 Richard Biener <rguenther@suse.de>
8243
8244 * data-streamer.h (streamer_write_data_stream): Declare here,
8245 renamed from ...
8246 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8247 * lto-cgraph.c (lto_output_node): Adjust.
8248 (lto_output_varpool_node): Likewise.
8249 * data-streamer-out.c (streamer_string_index): Likewise.
8250 (streamer_write_data_stream, lto_append_block): Move from ...
8251 * lto-section-out.c (lto_output_data_stream,
8252 lto_append_block): ... here.
8253
8254 2014-07-30 Mike Stump <mikestump@comcast.net>
8255
8256 * configure.ac: Also check for popen.
8257 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8258 * configure: Regenerate.
8259 * config.in: Regenerate.
8260
8261 2014-07-30 Martin Jambor <mjambor@suse.cz>
8262
8263 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8264 parameter to gimple.
8265
8266 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8267
8268 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8269 address as second parameter to __tpf_eh_return routine.
8270
8271 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8272
8273 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8274 Thumb2.
8275
8276 2014-07-30 Tom Tromey <tromey@redhat.com>
8277
8278 PR c/59855
8279 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8280 * doc/extend.texi (Type Attributes): Document designated_init
8281 attribute.
8282
8283 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8284
8285 * graphite-isl-ast-to-gimple.c:
8286 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8287 (gcc_expression_from_isl_expression): Pass type to
8288 gcc_expression_from_isl_ast_expr_id.
8289
8290 2014-07-30 Richard Biener <rguenther@suse.de>
8291
8292 * lto-streamer.h (lto_write_data): New function.
8293 * langhooks.c (lhd_append_data): Do not free block.
8294 * lto-section-out.c (lto_write_data): New function writing
8295 raw data to the current section.
8296 (lto_write_stream): Adjust for langhook semantic change.
8297 (lto_destroy_simple_output_block): Write header directly.
8298 * lto-opts.c (lto_write_options): Write options directly.
8299 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8300 (lto_output_toplevel_asms): Likewise.
8301 (copy_function_or_variable): Copy data directly.
8302 (write_global_references): Output index table directly.
8303 (lto_output_decl_state_refs): Likewise.
8304 (write_symbol): Write data directly.
8305 (produce_symtab): Adjust.
8306 (produce_asm_for_decls): Output header and refs directly.
8307
8308 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8309
8310 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8311 to speculative_targets
8312 (get_class_context): Fix handling of contextes without outer type;
8313 avoid matching non-polymorphic types in LTO.
8314 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8315 parameter to speculative_targetsp; handle speculation.
8316 (dump_possible_polymorphic_call_targets): Update dumping.
8317
8318 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8319
8320 * common.opt (Wodr): Enable by default.
8321
8322 2014-07-29 Olivier Hainque <hainque@adacore.com>
8323
8324 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8325
8326 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8327
8328 PR bootstrap/61914
8329 * gengtype.c (strtoken): New function.
8330 (create_user_defined_type): Replace strtok with strtoken.
8331
8332 2014-07-29 Nathan Sidwell <nathan@acm.org>
8333
8334 * gcov-io.c (gcov_var): Make hidden.
8335 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8336 (gcov_do_dump): Declare.
8337 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8338
8339 2014-07-29 Martin Jambor <mjambor@suse.cz>
8340
8341 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8342 parameter to gimple.
8343 (sra_modify_assign): Likewise.
8344
8345 2014-07-29 Richard Biener <rguenther@suse.de>
8346
8347 PR middle-end/52478
8348 * expr.c (expand_expr_real_2): Revert last change.
8349
8350 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8351
8352 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8353 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8354 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8355 call.
8356 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8357 (contains_type_p): Forward declare.
8358 (polymorphic_call_target_hasher::hash): Hash speculative info.
8359 (polymorphic_call_target_hasher::equal): Compare speculative info.
8360 (get_class_context): Handle speuclation.
8361 (contains_type_p): Update.
8362 (get_polymorphic_call_info_for_decl): Update.
8363 (walk_ssa_copies): Break out from ...
8364 (get_polymorphic_call_info): ... here; set speculative context
8365 before giving up.
8366 * ipa-prop.c (ipa_write_indirect_edge_info,
8367 ipa_read_indirect_edge_info): Stream speculative context.
8368 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8369 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8370 SPECULATIVE_MAYBE_DERIVED_TYPE).
8371 (possible_polymorphic_call_targets overriders): Update.
8372 (dump_possible_polymorphic_call_targets overriders): Update.
8373 (dump_possible_polymorphic_call_target_p overriders): Update.
8374
8375 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8376
8377 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8378 ipa-devirt path; fix thinko there.
8379
8380 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8381
8382 * config/i386/i386.c (ix86_return_in_memory): Replace one
8383 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8384
8385 2014-07-28 Marek Polacek <polacek@redhat.com>
8386
8387 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8388
8389 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8390
8391 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8392 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8393 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8394 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8395 (USE_LD_AS_NEEDED): Likewise.
8396 (ASM_APP_ON): Likewise.
8397 (ASM_APP_OFF): Likewise.
8398 (TARGET_POSIX_IO): Likewise.
8399 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8400 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8401 (USE_LD_AS_NEEDED): Likewise.
8402 (ASM_APP_ON): Likewise.
8403 (ASM_APP_OFF): Likewise.
8404 (TARGET_POSIX_IO): Likewise.
8405
8406 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8407
8408 PR middle-end/61734
8409 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8410 operators other than the equality operators.
8411
8412 2014-07-28 Richard Biener <rguenther@suse.de>
8413
8414 PR middle-end/52478
8415 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8416 sure to register SImode ones, not only >= word_mode ones.
8417 * expr.c (expand_expr_real_2): When expanding -ftrapv
8418 binops do not use OPTAB_LIB_WIDEN.
8419
8420 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8421
8422 PR middle-end/61919
8423 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8424 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8425 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8426 inserting them in the insn stream.
8427
8428 2014-07-28 Marek Polacek <polacek@redhat.com>
8429
8430 PR middle-end/61913
8431 * common.opt (Wodr): Add Var.
8432
8433 2014-07-28 Richard Biener <rguenther@suse.de>
8434
8435 PR tree-optimization/61921
8436 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8437 if there is a varpool node before dereferencing it.
8438
8439 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8440
8441 * graphite-sese-to-poly.c:
8442 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8443 id of the pbb), which contains pointer to the pbb1.
8444
8445 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8446
8447 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8448
8449 * graphite-isl-ast-to-gimple.c:
8450 (graphite_create_new_guard): New function.
8451 (translate_isl_ast_node_if): New function.
8452 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8453
8454 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8455
8456 2014-07-27 Anthony Green <green@moxielogic.com>
8457
8458 * config.gcc: Add moxie-*-moxiebox* configuration.
8459 * config/moxie/moxiebox.h: New file.
8460
8461 2014-07-26 Andrew Pinski <apinski@cavium.com>
8462
8463 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8464 from the read only register.
8465
8466 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8467
8468 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8469 as the allocation class if it isn't likely to be spilled.
8470
8471 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8472
8473 * rtl.h (tls_referenced_p): Declare.
8474 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8475 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8476 (mips_cannot_force_const_mem): Use tls_referenced_p.
8477 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8478 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8479 instead of pa_tls_referenced_p.
8480 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8481 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8482 (pa_legitimate_constant_p): Likewise.
8483 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8484 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8485 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8486 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8487 rs6000_tls_referenced_p.
8488 (rs6000_tls_symbol_ref_1): Delete.
8489
8490 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8491
8492 PR target/44551
8493 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8494 Optimize inverse of a VEC_CONCAT.
8495
8496 2014-07-25 Xinliang David Li <davidxl@google.com>
8497
8498 * params.def: New parameter.
8499 * coverage.c (get_coverage_counts): Check new flag.
8500 (coverage_compute_profile_id): Check new flag.
8501 (coverage_begin_function): Check new flag.
8502 (coverage_end_function): Check new flag.
8503 * value-prof.c (coverage_node_map_initialized_p): New function.
8504 (init_node_map): Populate map with all functions.
8505 * doc/invoke.texi: Document new parameter.
8506
8507 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8508 Richard Biener <rguenther@suse.de>
8509
8510 * lto-streamer-out.c (struct sccs): Turn to ...
8511 (class DFS): ... this one; refactor the DFS walk so it can
8512 be re-done on per-SCC basis.
8513 (DFS::DFS): New constructor.
8514 (DFS::~DFS): New destructor.
8515 (hash_tree): Add new MAP argument holding in-SCC hash values;
8516 remove POINTER_TYPE hashing hack.
8517 (scc_entry_compare): Rename to ...
8518 (DFS::scc_entry_compare): ... this one.
8519 (hash_scc): Rename to ...
8520 (DFS::hash_scc): ... this one; pass output_block instead
8521 of streamer_cache; work harder to get unique and stable SCC
8522 hashes.
8523 (DFS_write_tree): Rename to ...
8524 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8525 (lto_output_tree): Update.
8526
8527 2014-07-25 Andi Kleen <ak@linux.intel.com>
8528
8529 * lto-streamer-out.c (hash_tree): Convert to inchash.
8530
8531 2014-07-25 Andi Kleen <ak@linux.intel.com>
8532
8533 * tree.c (build_type_attribute_qual_variant): Use inchash.
8534 (type_hash_list): Dito.
8535 (attribute_hash_list): Dito
8536 (iterative_hstate_expr): Dito.
8537 (iterative_hash_expr): Dito.
8538 (build_range_type_1): Dito.
8539 (build_array_type_1): Dito.
8540 (build_function_type): Dito.
8541 (build_method_type_directly): Dito.
8542 (build_offset_type): Dito.
8543 (build_complex_type): Dito.
8544 (make_vector_type): Dito.
8545 * tree.h (iterative_hash_expr): Add compat wrapper.
8546 (iterative_hstate_expr): Add.
8547
8548 2014-07-25 Andi Kleen <ak@linux.intel.com>
8549
8550 * Makefile.in (OBJS): Add inchash.o.
8551 (PLUGIN_HEADERS): Add inchash.h.
8552 * ipa-devirt.c: Include inchash.h.
8553 * lto-streamer-out.c: Dito.
8554 * tree-ssa-dom.c: Dito.
8555 * tree-ssa-pre.c: Dito.
8556 * tree-ssa-sccvn.c: Dito.
8557 * tree-ssa-tail-merge.c: Dito.
8558 * asan.c: Dito.
8559 * tree.c (iterative_hash_hashval_t): Move to ...
8560 (iterative_hash_host_wide_int): Move to ...
8561 * inchash.c: Here. New file.
8562 * tree.h (iterative_hash_hashval_t): Move to ...
8563 (iterative_hash_host_wide_int): Move to ...
8564 * inchash.h: Here. New file.
8565
8566 2014-07-25 Richard Biener <rguenther@suse.de>
8567
8568 PR middle-end/61762
8569 PR middle-end/61894
8570 * fold-const.c (native_encode_int): Add and handle offset
8571 parameter to do partial encodings of expr.
8572 (native_encode_fixed): Likewise.
8573 (native_encode_real): Likewise.
8574 (native_encode_complex): Likewise.
8575 (native_encode_vector): Likewise.
8576 (native_encode_string): Likewise.
8577 (native_encode_expr): Likewise.
8578 * fold-const.c (native_encode_expr): Add offset parameter
8579 defaulting to -1.
8580 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8581 (fold_ctor_reference): Handle all reads from tcc_constant
8582 ctors.
8583
8584 2014-07-25 Richard Biener <rguenther@suse.de>
8585
8586 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8587 as possibly unused.
8588
8589 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8590
8591 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8592
8593 2014-07-24 Kyle McMartin <kyle@redhat.com>
8594
8595 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8596
8597 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8598
8599 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8600 Add prototype.
8601 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8602 function.
8603 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8604 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8605 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8606
8607 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8608
8609 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8610 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8611 aggregate types. Instead, *all* aggregate types, except for single-
8612 element or homogeneous float/vector aggregates, are quadword-aligned
8613 if required by their type alignment. Issue -Wpsabi note when a type
8614 is now treated differently than before.
8615
8616 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8617
8618 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8619 does not fit fully into floating-point registers, and there is still
8620 space in the register parameter area, use GPRs to pass those parts
8621 of the argument. Issue -Wpsabi note if any parameter is now treated
8622 differently than before.
8623 (rs6000_arg_partial_bytes): Update.
8624
8625 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8626
8627 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8628
8629 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8630
8631 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8632 * toplev.c (initialize_rtl): Don't use it. Move previously
8633 "language-dependent" calls to...
8634 (backend_init): ...here.
8635 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8636 Assert that RTL initialization hasn't happend yet.
8637
8638 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8639
8640 PR rtl-optimization/61629
8641 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8642 they have already been initialized.
8643
8644 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8645
8646 PR middle-end/61268
8647 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8648 DECL_INCOMING_RTL and entry_parm.
8649 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8650 * calls.c (load_register_parameters): Likewise argument values.
8651 (emit_library_call_value_1, store_one_arg): Likewise argument
8652 save areas.
8653 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8654 stack slot.
8655 * explow.c (validize_mem): Modify the argument in-place.
8656
8657 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8658
8659 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8660 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8661
8662 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8663
8664 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8665 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8666
8667 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8668
8669 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8670 (aarch64_save_callee_saves): New parameter "skip_wb".
8671 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8672
8673 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8674
8675 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8676 "wb_candidate2".
8677 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8678
8679 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8680
8681 * graphite-isl-ast-to-gimple.c:
8682 (graphite_create_new_loop): Add calling of isl_id_free to properly
8683 decrement reference counts.
8684
8685 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8686
8687 2014-07-24 Martin Liska <mliska@suse.cz>
8688 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8689 function used.
8690 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8691 (rs6000_code_end): Likewise.
8692
8693 2014-07-24 Martin Liska <mliska@suse.cz>
8694
8695 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8696 symtab_node funtion used.
8697 (rs6000_xcoff_declare_object_name): Likewise.
8698
8699 2014-07-24 Martin Liska <mliska@suse.cz>
8700
8701 * cgraphunit.c (compile): Correct function used.
8702
8703 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8704
8705 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8706 as non-indexable.
8707
8708 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8709
8710 PR lto/61802
8711 * varasm.c (bss_initializer_p): Handle offlined ctors.
8712 (align_variable, get_variable_align): Likewise.
8713 (make_decl_one_only): Likewise.
8714 (default_binds_local_p_1): Likewise.
8715 (decl_binds_to_current_def_p): Likewise.
8716 (get_variable_section): Get constructor if it is offlined.
8717 (assemble_variable_contents): Sanity check that the caller
8718 streamed in the ctor in LTO.
8719
8720 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8721
8722 * graphite-isl-ast-to-gimple.c:
8723 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8724 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8725 isl_ast_op_pdiv_r to the different case.
8726
8727 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8728
8729 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8730
8731 PR middle-end/61876
8732 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8733 when flag_errno_math is on.
8734
8735 2014-07-24 Martin Liska <mliska@suse.cz>
8736
8737 * cgraph.h (varpool_node):
8738 (availability get_availability (void)):
8739 created from cgraph_variable_initializer_availability
8740 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8741 created from: cgraph_variable_initializer_availability
8742 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8743 (void finalize_named_section_flags (void)):
8744 created from varpool_finalize_named_section_flags
8745 (bool assemble_decl (void)): created from varpool_assemble_decl
8746 (void analyze (void)): created from varpool_analyze_node
8747 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8748 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8749 (void remove_initializer (void)): created from varpool_remove_initializer
8750 (tree get_constructor (void)): created from varpool_get_constructor
8751 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8752 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8753 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8754 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8755 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8756 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8757 (static bool output_variables (void)): created from varpool_output_variables
8758 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8759 created from varpool_extra_name_alias
8760 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8761 (static void dump_varpool (FILE *f)): created from dump_varpool
8762 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8763 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8764 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8765 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8766 (void assemble_aliases (void)): created from assemble_aliases
8767
8768 2014-07-24 Martin Liska <mliska@suse.cz>
8769
8770 * cgraph.h (symtab_node):
8771 (void register_symbol (void)): created from symtab_register_node
8772 (void remove (void)): created from symtab_remove_node
8773 (void dump (FILE *f)): created from dump_symtab_node
8774 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8775 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8776 (struct ipa_ref *add_reference (symtab_node *referred_node,
8777 enum ipa_ref_use use_type)): created from add_reference
8778 (struct ipa_ref *add_reference (symtab_node *referred_node,
8779 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8780 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8781 gimple stmt)): created from maybe_add_reference
8782 (bool semantically_equivalent_p (symtab_node *target)): created from
8783 symtab_semantically_equivalent_p
8784 (void remove_from_same_comdat_group (void)): created from
8785 remove_from_same_comdat_group
8786 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8787 symtab_add_to_same_comdat_group
8788 (void dissolve_same_comdat_group_list (void)): created from
8789 symtab_dissolve_same_comdat_group_list
8790 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8791 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8792 created from symtab_alias_ultimate_target
8793 (inline symtab_node *next_defined_symbol (void)): created from
8794 symtab_next_defined_symbol
8795 (bool resolve_alias (symtab_node *target)): created from
8796 symtab_resolve_alias
8797 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8798 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8799 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8800 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8801 (void set_section (const char *section)): created from set_section_1
8802 (enum availability get_availability (void)): created from symtab_node_availability
8803 (void make_decl_local (void)): created from symtab_make_decl_local
8804 (bool real_symbol_p (void)): created from symtab_read_node
8805 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8806 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8807 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8808 symtab_in_same_comdat_p;
8809 (bool address_taken_from_non_vtable_p (void)): created from
8810 address_taken_from_non_vtable_p
8811 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8812 (static void dump_table (FILE *)): created from dump_symtab
8813 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8814 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8815 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8816 symtab_used_from_object_file_p
8817 (void dump_base (FILE *)): created from dump_symtab_base
8818 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8819 (void unregister (void)): created from symtab_unregister_node
8820 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8821 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8822 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8823 symtab_nonoverwritable_alias_1
8824 * cgraph.h (cgraph_node):
8825 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8826 created from cgraph_remove_node_and_inline_clones
8827 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8828 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8829 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8830 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8831 created from cgraph_function_node
8832 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8833 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8834 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8835 created from cgraph_create_clone
8836 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8837 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8838 created from cgraph_create_virtual_clone
8839 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8840 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8841 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8842 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8843 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8844 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8845 created from cgraph_function_version_info
8846 (struct cgraph_function_version_info *insert_new_function_version (void)):
8847 created from insert_new_cgraph_node_version
8848 (struct cgraph_function_version_info *function_version (void)): created from
8849 get_cgraph_node_version
8850 (void analyze (void)): created from analyze_function
8851 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8852 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8853 tree real_alias) cgraph_add_thunk
8854 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8855 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8856 created from cgraph_function_or_thunk_node
8857 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8858 created from expand_thunk
8859 (void reset (void)): created from cgraph_reset_node
8860 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8861 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8862 (void remove (void)): created from cgraph_remove_node
8863 (void dump (FILE *f)): created from dump_cgraph_node
8864 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8865 (bool get_body (void)): created from cgraph_get_body
8866 (void release_body (void)): created from cgraph_release_function_body
8867 (void unnest (void)): created from cgraph_unnest_node
8868 (void make_local (void)): created from cgraph_make_node_local
8869 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8870 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8871 gcov_type count, int freq)): created from cgraph_create_edge
8872 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8873 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8874 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8875 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8876 created from cgraph_create_edge_including_clones
8877 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8878 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8879 (void remove_callers (void)): created from cgraph_node_remove_callers
8880 (void remove_callees (void)): created from cgraph_node_remove_callees
8881 (enum availability get_availability (void)): created from cgraph_function_body_availability
8882 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8883 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8884 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8885 (void call_duplication_hooks (cgraph_node *node2)): created from
8886 cgraph_call_node_duplication_hooks
8887 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8888 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8889 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8890 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8891 (void call_function_insertion_hooks (void)):
8892 created from cgraph_call_function_insertion_hooks
8893 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8894 (bool local_p (void)): created from cgraph_local_node
8895 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8896 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8897 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8898 (inline bool only_called_directly_or_aliased_p (void)):
8899 created from cgraph_only_called_directly_or_aliased_p
8900 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8901 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8902 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8903 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8904 (bool can_remove_if_no_direct_calls_p (void)):
8905 created from cgraph_can_remove_if_no_direct_calls_p
8906 (inline bool has_gimple_body_p (void)):
8907 created from cgraph_function_with_gimple_body_p
8908 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8909 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8910 (static inline void debug_cgraph (void)): created from debug_cgraph
8911 (static void record_function_versions (tree decl1, tree decl2)):
8912 created from record_function_versions
8913 (static void delete_function_version (tree decl)):
8914 created from delete_function_version
8915 (static void add_new_function (tree fndecl, bool lowered)):
8916 created from cgraph_add_new_function
8917 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8918 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8919 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8920 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8921 (static cgraph_node *get_for_asmname (tree asmname)):
8922 created from cgraph_node_for_asm
8923 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8924 created from cgraph_same_body_alias
8925 (static bool used_from_object_file_p_worker (cgraph_node *node,
8926 void *): new function
8927 (static bool non_local_p (cgraph_node *node, void *)):
8928 created from cgraph_non_local_node_p_1
8929 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8930 created from verify_cgraph
8931 (static bool make_local (cgraph_node *node, void *)):
8932 created from cgraph_make_node_local
8933 (static cgraph_node *create_alias (tree alias, tree target)):
8934 created from cgraph_create_function_alias
8935 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8936 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8937 created from cgraph_create_edge_1
8938 * cgraph.h (varpool_node):
8939 (void remove (void)): created from varpool_remove_node
8940 (void dump (FILE *f)): created from dump_varpool_node
8941
8942 2014-07-24 Richard Biener <rguenther@suse.de>
8943
8944 PR ipa/61823
8945 * tree-ssa-structalias.c (create_variable_info_for_1):
8946 Use varpool_get_constructor.
8947 (create_variable_info_for): Likewise.
8948
8949 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8950
8951 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8952 subtract outgoing area size when restoring stack_pointer_rtx.
8953
8954 2014-07-24 Nick Clifton <nickc@redhat.com>
8955
8956 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8957 that operations are taking place in parallel.
8958 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8959
8960 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8961
8962 * omp-low.c (extract_omp_for_data): Add missing break statement.
8963
8964 2014-07-24 Richard Biener <rguenther@suse.de>
8965
8966 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8967 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8968 and adjust MOVE_RATIO query accordingly.
8969 (estimate_num_insns): Adjust callers.
8970 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8971 * ipa-cp.c (gather_context_independent_values,
8972 estimate_local_effects): Likewise.
8973 * ipa-split.c (consider_split): Likewise.
8974
8975 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8976
8977 * config/i386/driver-i386.c: Remove names of unused arguments and
8978 unnecessary unused attributes.
8979 * config/i386/host-mingw32.c: Likewise.
8980 * config/i386/i386.c: Likewise.
8981 * config/i386/winnt-stubs.c: Likewise.
8982 * config/i386/winnt.c: Likewise.
8983
8984 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8985
8986 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8987 (aarch64_gen_loadwb_pair): New helper function.
8988 (aarch64_expand_epilogue): Simplify code using new helper functions.
8989 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8990
8991 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8992
8993 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8994 (aarch64_gen_storewb_pair): New helper function.
8995 (aarch64_expand_prologue): Simplify code using new helper functions.
8996 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8997
8998 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8999
9000 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9001 Rename to aarch64_save_callee_saves, remove restore code.
9002 (aarch64_restore_callee_saves): New function.
9003
9004 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9005
9006 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9007 (aarch64_save_callee_saves): New function to handle reg save
9008 for both core and vectore regs.
9009
9010 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9011
9012 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9013 (aarch64_gen_store_pair): New helper function.
9014 (aarch64_save_or_restore_callee_save_registers)
9015 (aarch64_save_or_restore_fprs): Use new helper functions.
9016
9017 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9018
9019 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9020 (aarch64_save_or_restore_callee_save_registers)
9021 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9022
9023 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9024
9025 * config/aarch64/aarch64.c
9026 (aarch64_save_or_restore_callee_save_registers)
9027 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9028
9029 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9030
9031 * config/aarch64/aarch64.c
9032 (aarch64_save_or_restore_callee_save_registers)
9033 (aarch64_save_or_restore_fprs): Remove 'increment'.
9034
9035 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9036
9037 * config/aarch64/aarch64.c
9038 (aarch64_save_or_restore_callee_save_registers)
9039 (aarch64_save_or_restore_fprs): Use register offset in
9040 cfun->machine->frame.reg_offset.
9041
9042 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9043
9044 * config/aarch64/aarch64.c
9045 (aarch64_save_or_restore_callee_save_registers)
9046 (aarch64_save_or_restore_fprs): Remove base_rtx.
9047
9048 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9049
9050 * config/aarch64/aarch64.c
9051 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9052 to 'start_offset'. Remove local variable 'start_offset'.
9053
9054 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9055
9056 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9057 type to HOST_WIDE_INT.
9058
9059 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9060
9061 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9062 (aarch64_save_or_restore_fprs)
9063 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9064
9065 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9066
9067 * config/arm/t-rtems-eabi: Add
9068 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9069 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9070 mbig-endian/mthumb/march=armv7-r, and
9071 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9072 multilibs.
9073
9074 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9075 Chris Johns <chrisj@rtems.org>
9076 Joel Sherrill <joel.sherrill@oarcorp.com>
9077
9078 * config.gcc: Add nios2-*-rtems*.
9079 * config/nios2/rtems.h: New file.
9080 * gcc/config/nios2/t-rtems: New file.
9081
9082 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9083
9084 PR target/61396
9085 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9086 constant numbers, not general constants.
9087 (rs6000_expand_vector_init): Ditto.
9088
9089 2014-07-23 Nathan Sidwell <nathan@acm.org>
9090
9091 * gcov-tool.c (gcov_list): Declare here.
9092 (set_gcov_list): Remove.
9093 (gcov_output_files): Set gcov_list directly.
9094
9095 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9096
9097 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9098
9099 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9100
9101 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9102 callee-saved registers are available for padding purpose
9103 and r3 is not mandatory, then prefer use those callee-saved
9104 instead of r3.
9105
9106 2014-07-23 Richard Biener <rguenther@suse.de>
9107
9108 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9109 * combine.c: Include statistics.h and params.h.
9110 (combine_instructions): Guard three and four insn combines
9111 with max-combine-insns value. Record statistics for combines
9112 performed.
9113 * doc/invoke.texi (max-combine-insns): Document new param.
9114
9115 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9116
9117 * graphite-isl-ast-to-gimple.c:
9118 (translate_isl_ast_node_block): New function.
9119 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9120
9121 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9122 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9123
9124 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9125
9126 * graphite-isl-ast-to-gimple.c:
9127 (get_max_schedule_dimensions): New function.
9128 (extend_schedule): Likewise.
9129 (generate_isl_schedule): Add calling of extend_schedule and
9130 get_max_schedule_dimensions.
9131
9132 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9133
9134 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9135 (case UNSPEC): Handle UNSPEC_RBIT.
9136
9137 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9138
9139 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9140 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9141
9142 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9143
9144 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9145
9146 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9147
9148 * graphite-isl-ast-to-gimple.c:
9149 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9150 (ivs_params_clear):
9151 (build_iv_mapping): New function.
9152 (translate_isl_ast_node_user): Likewise.
9153 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9154
9155 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9156 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9157 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9158
9159 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9160
9161 PR target/55701
9162 * config/arm/arm.md (setmem): New pattern.
9163 * config/arm/arm-protos.h (struct tune_params): New fields.
9164 (arm_gen_setmem): New prototype.
9165 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9166 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9167 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9168 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9169 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9170 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9171 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9172 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9173 (arm_const_inline_cost): New function.
9174 (arm_block_set_max_insns): New function.
9175 (arm_block_set_non_vect_profit_p): New function.
9176 (arm_block_set_vect_profit_p): New function.
9177 (arm_block_set_unaligned_vect): New function.
9178 (arm_block_set_aligned_vect): New function.
9179 (arm_block_set_unaligned_non_vect): New function.
9180 (arm_block_set_aligned_non_vect): New function.
9181 (arm_block_set_vect, arm_gen_setmem): New functions.
9182
9183 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9184
9185 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9186
9187 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9188
9189 PR target/61855
9190 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9191 out of #ifdef __OPTIMIZE__.
9192
9193 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9194
9195 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9196 different trapping status if -fnon-call-exceptions is enabled.
9197
9198 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9199
9200 * expr.c (store_field): Handle VOIDmode for calls that return values
9201 in multiple locations.
9202
9203 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9204
9205 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9206 (altivec_vsldoi_<mode>): Likewise.
9207
9208 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9209
9210 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9211 to the number of characters in the line.
9212
9213 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9214
9215 * graphite-isl-ast-to-gimple.c: Add using of
9216 build_nonstandard_integer_type instead of int128_integer_type_node.
9217
9218 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9219
9220 * toplev.c (output_stack_usage): Adjust the location of the warning.
9221
9222 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9223
9224 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9225 (*membar_storeload): Disable for LEON3.
9226
9227 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9228
9229 PR rtl-optimization/61461
9230 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9231
9232 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9233
9234 PR target/61794
9235 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9236 Fix instruction constraint.
9237 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9238
9239 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9240
9241 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9242
9243 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9244
9245 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9246 GNU coding standards.
9247 (nds32_register_move_cost): Likewise.
9248 (nds32_memory_move_cost): Likewise.
9249 (nds32_address_cost): Likewise.
9250
9251 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9252
9253 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9254
9255 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9256
9257 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9258 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9259 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9260 (HAVE_sync_compare_and_swapqi): Define.
9261 (HAVE_sync_compare_and_swaphi): Likewise.
9262 (HAVE_sync_compare_and_swapsi): Likewise.
9263
9264 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9265
9266 * config/mips/p5600.md: Add missing cpu tests.
9267
9268 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9269
9270 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9271 (vmla_f64): Likewise.
9272 (vfms_f64): Likewise.
9273 (vmls_f64): Likewise.
9274
9275 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9276
9277 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9278 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9279
9280 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9281
9282 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9283 (vmlal_high_lane_s32): Likewise.
9284 (vmlal_high_lane_u16): Likewise.
9285 (vmlal_high_lane_u32): Likewise.
9286 (vmlsl_high_lane_s16): Likewise.
9287 (vmlsl_high_lane_s32): Likewise.
9288 (vmlsl_high_lane_u16): Likewise.
9289 (vmlsl_high_lane_u32): Likewise.
9290
9291 2014-07-17 Terry Guo <terry.guo@arm.com>
9292
9293 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9294 (alus_reg): Renamed to alus_sreg.
9295 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9296 from alu_reg to alu_sreg. Change type of dsp instructions from
9297 alu_reg to alu_dsp_reg.
9298 * config/arm/thumb1.md: Likewise.
9299 * config/arm/thumb2.md: Likewise.
9300 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9301 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9302 with alu_sreg and alus_sreg.
9303 * config/arm/arm1026ejs.md (alu_op): Likewise.
9304 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9305 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9306 * config/arm/fa526.md (526_alu_op): Likewise.
9307 * config/arm/fa606te.md (606te_alu_op): Likewise.
9308 * config/arm/fa626te.md (626te_alu_op): Likewise.
9309 * config/arm/fa726te.md (726te_alu_op): Likewise.
9310 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9311 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9312 alu_sreg, alu_dsp_reg and alus_sreg.
9313 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9314 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9315 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9316 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9317 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9318 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9319 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9320 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9321 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9322 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9323 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9324 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9325 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9326 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9327 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9328 alus_reg to alus_sreg.
9329
9330 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9331
9332 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9333 infinity format.
9334
9335 2014-07-17 Richard Biener <rguenther@suse.de>
9336
9337 PR rtl-optimization/61801
9338 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9339 don't set reg_pending_barrier if it appears in a debug-insn.
9340
9341 2014-07-16 DJ Delorie <dj@redhat.com>
9342
9343 * config/rx/rx.c (rx_option_override): Fix alignment values.
9344 (rx_align_for_label): Likewise.
9345
9346 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9347
9348 PR target/61737.
9349 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9350 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9351 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9352 functions.
9353 (cris_print_index, cris_print_operand, cris_constant_index_p)
9354 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9355 (cris_address_cost): Ditto last CONSTANT_P.
9356 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9357 callers changed. Yield cris_offsettable_symbol for non-PIC
9358 constant symbolic expressions including labels. Yield cris_unspec
9359 for all unspecs.
9360 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9361 target to pic_offset_table_rtx for calls that will likely go
9362 through PLT, const0_rtx when they can't. All callers changed.
9363 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9364 symbolic expressions to be PICified. Remove second, redundant,
9365 assert on can_create_pseudo_p returning non-zero. Use
9366 replace_equiv_address_nv, not replace_equiv_address, for final
9367 operand update.
9368 * config/cris/cris.md ("movsi"): Move variable t to pattern
9369 toplevel. Adjust assert for new cris_symbol_type member. Use
9370 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9371 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9372 for lapc stricter.
9373 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9374 ("call", "call_value"): Use second incoming operand as a marker
9375 for pic-offset-table-register being used.
9376 ("*expanded_call_non_v32", "*expanded_call_v32")
9377 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9378 second incoming operand to CALL, match cris_call_type_marker.
9379 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9380 ("*expanded_call_side"): Ditto. Fix typo in comment.
9381 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9382 CONSTANT_P.
9383 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9384 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9385 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9386 users changed. Add members cris_offsettable_symbol and cris_unspec.
9387 (cris_symbol_type): Rename from cris_pic_symbol_type.
9388 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9389 just CONSTANT_P.
9390 * config/cris/cris-protos.h (cris_symbol_type_of,
9391 cris_expand_pic_call_address): Adjust prototypes.
9392 (cris_legitimate_constant_p): New prototype.
9393
9394 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9395 an existing tmake_file. Don't add t-slibgcc and t-linux.
9396
9397 2014-07-17 Jason Merrill <jason@redhat.com>
9398
9399 PR c++/61623
9400 * symtab.c (symtab_remove_from_same_comdat_group): Also
9401 set_comdat_group to NULL_TREE.
9402 (verify_symtab): Fix diagnostic.
9403
9404 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9405
9406 PR target/61662
9407 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9408
9409 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9410
9411 Support location tracking for built-in macro tokens
9412 * input.h (is_location_from_builtin_token): New function declaration.
9413 * input.c (is_location_from_builtin_token): New function definition.
9414 * toplev.c (general_init): Tell libcpp what the pre-defined
9415 spelling location for built-in tokens is.
9416
9417 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9418
9419 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9420 on the FUNCTION_DECL.
9421
9422 2014-07-16 Richard Biener <rguenther@suse.de>
9423
9424 PR other/61782
9425 * doc/extend.texi (always_inline): Clarify.
9426
9427 2014-07-15 Eric Christopher <echristo@gmail.com>
9428
9429 * doc/invoke.texi (Link Options): Document -z option.
9430
9431 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9432
9433 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9434 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9435
9436 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9437
9438 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9439
9440 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9441
9442 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9443 varpool_assemble_decl.
9444 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9445 true.
9446
9447 2014-07-15 Michael Matz <matz@suse.de>
9448
9449 PR rtl-optimization/61772
9450 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9451
9452 2014-07-15 Richard Biener <rguenther@suse.de>
9453
9454 * opts.c (default_options_table): Disable bit-ccp at -Og.
9455
9456 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9457
9458 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9459
9460 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9461
9462 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9463 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9464 call langhook for unknown declaration.
9465 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9466 * tree.h (DECL_ARGUMENTS): Update.
9467 * print-tree.c (print_node): Update.
9468 * tree-core.h (tree_decl_non_common): Remove arguments.
9469 (tree_function_decl): Add arguments.
9470
9471 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9472
9473 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9474
9475 2014-07-14 Richard Biener <rguenther@suse.de>
9476
9477 PR tree-optimization/61779
9478 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9479 simplifying a condition.
9480
9481 2014-07-14 Richard Biener <rguenther@suse.de>
9482
9483 * builtins.c (c_strlen): Make only_value == 2 really only
9484 affect warning generation.
9485
9486 2014-07-14 Richard Biener <rguenther@suse.de>
9487
9488 PR tree-optimization/61757
9489 PR tree-optimization/61783
9490 PR tree-optimization/61787
9491 * tree-ssa-dom.c (record_equality): Revert canonicalization
9492 change and add comment.
9493 (propagate_rhs_into_lhs): Revert previous fix, removing
9494 loop depth restriction again.
9495
9496 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9497
9498 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9499 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9500 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9501 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9502 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9503 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9504 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9505
9506 2014-07-14 Richard Biener <rguenther@suse.de>
9507
9508 * cgraph.h (decl_in_symtab_p): Make inline.
9509
9510 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9511
9512 PR middle-end/61294
9513 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9514
9515 PR target/61656
9516 * config/i386/i386.c (classify_argument): Don't merge classes above
9517 number of words.
9518
9519 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9520
9521 * cgraph.h (symtab_node): Add nonzero_address.
9522 (decl_in_symtab_p): Break out from ...
9523 (symtab_get_node): ... here.
9524 * fold-const.c: Include cgraph.h
9525 (tree_single_nonzero_warnv_p): Use symtab to determine
9526 if symbol is non-zero.
9527 * symtab.c (symtab_node::nonzero_address): New method.
9528
9529 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9530
9531 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9532 forgotten in previous commit.
9533
9534 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9535
9536 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9537 on builtin types.
9538 * ipa-devirt.c: Include stor-layout.h and intl.h
9539 (odr_subtypes_equivalent_p): New function.
9540 (warn_odr): New function.
9541 (warn_type_mismatch): New function.
9542 (odr_types_equivalent_p): New function.
9543 (add_type_duplicate): Use it.
9544 * common.opt (Wodr): New flag.
9545 * doc/invoke.texi (Wodr): Document new warning.
9546
9547 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9548
9549 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9550 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9551 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9552 (varpool_get_constructor): Push CTORS_IN timevar.
9553 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9554
9555 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9556
9557 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9558 Remove VOID_FTYPE_PUSHORT.
9559 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9560 Change code to USHORT_FTYPE_VOID.
9561 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9562 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9563 (ix86_atomic_assign_expand_fenv): Update for
9564 __builtin_ia32_fnstsw changes.
9565 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9566 (fnstsw): Change operand 0 to nonimmediate operand.
9567
9568 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9569
9570 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9571 (varpool_get_constructor): New function.
9572 (varpool_ctor_useable_for_folding_p): Break out from ...
9573 (ctor_for_folding): ... here; use varpool_get_constructor.
9574 (varpool_assemble_decl): Likewise.
9575 * lto-streamer.h (struct output_block): Turn cgraph_node
9576 to symbol filed.
9577 (lto_input_variable_constructor): Declare.
9578 * ipa-visibility.c (function_and_variable_visibility): Use
9579 varpool_get_constructor.
9580 * cgraph.h (varpool_get_constructor): Declare.
9581 (varpool_ctor_useable_for_folding_p): New function.
9582 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9583 parameter; return error_mark_node for non-trivial constructors.
9584 (lto_write_tree_1, DFS_write_tree): Update use of
9585 get_symbol_initial_value.
9586 (output_function): Update initialization of symbol.
9587 (output_constructor): New function.
9588 (copy_function): Rename to ..
9589 (copy_function_or_variable): ... this one; handle vars too.
9590 (lto_output): Output variable sections.
9591 * lto-streamer-in.c (input_constructor): New function.
9592 (lto_read_body): Rename from ...
9593 (lto_read_body_or_constructor): ... this one; handle vars too.
9594 (lto_input_variable_constructor): New function.
9595 * ipa-prop.c (ipa_prop_write_jump_functions,
9596 ipa_prop_write_all_agg_replacement): Update.
9597 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9598 (output_cgraph_opt_summary): Set symbol to NULL.
9599
9600 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9601
9602 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9603 non-polymorphic types.
9604 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9605 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9606 of types is not polymorphic.
9607
9608 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9609
9610 * lra-constraints.c (remove_inheritance_pseudos): Process
9611 destination pseudo too.
9612
9613 2014-07-11 Rong Xu <xur@google.com>
9614
9615 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9616 commit r212448.
9617
9618 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9619
9620 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9621 * config/avr/avr-devices.c (AVR_MCU): Same.
9622 (avr_mcu_types): add text start value to end of device list.
9623 * config/avr/avr-mcus.def: Add text section start for all devices.
9624 (ata5782): Add new avr5 device.
9625 (ata5831): Same.
9626 * config/avr/avr-tables.opt: Regenerate.
9627 * config/avr/avr.h: Add declaration for text section start handler.
9628 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9629 SPEC functions.
9630 (LINK_SPEC): Include text section start handler to linker spec.
9631 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9632 pass -Ttext option to linker if the text section start for the device
9633 is not zero.
9634 * config/avr/t-multilib: Regenerate.
9635 * doc/avr-mmcu.texi: Regenerate.
9636
9637 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9638
9639 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9640 * config/rs6000/aix52.h (LINK_SPEC): Same.
9641 * config/rs6000/aix53.h (LINK_SPEC): Same.
9642 * config/rs6000/aix61.h (LINK_SPEC): Same.
9643 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9644
9645 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9646
9647 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9648 (graphite_verify): New function.
9649 (ivs_params_clear): New function.
9650 (gcc_expression_from_isl_ast_expr_id): New function.
9651 (gcc_expression_from_isl_expr_int): New function.
9652 (binary_op_to_tree): New function.
9653 (ternary_op_to_tree): New function.
9654 (unary_op_to_tree): New function.
9655 (nary_op_to_tree): New function.
9656 (gcc_expression_from_isl_expr_op): New function.
9657 (gcc_expression_from_isl_expression): New function.
9658 (graphite_create_new_loop): New function.
9659 (translate_isl_ast_for_loop): New function.
9660 (get_upper_bound): New function.
9661 (graphite_create_new_loop_guard): New function.
9662 (translate_isl_ast_node_for): New function.
9663 (translate_isl_ast): New function.
9664 (add_parameters_to_ivs_params): New function.
9665 (scop_to_isl_ast): New parameter ip.
9666 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9667
9668 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9669
9670 * config/xtensa/predicates.md (call expander): Update for
9671 DECL_SECTION_NAME being string.
9672
9673 2014-07-11 Richard Biener <rguenther@suse.de>
9674
9675 PR middle-end/61473
9676 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9677 can be implemented with a single load followed by a single store.
9678 (c_strlen): Only warn when only_value is not 2.
9679
9680 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9681
9682 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9683
9684 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9685
9686 PR target/61561
9687 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9688 (*movhi_bytes): Likewise.
9689 (*arm_movqi_insn): Likewise.
9690
9691 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9692
9693 PR target/56858
9694 * config/alpha/alpha.c: Include tree-pass.h, context.h
9695 and pass_manager.h.
9696 (pass_data_handle_trap_shadows): New pass.
9697 (pass_handle_trap_shadows::gate): New pass gate function.
9698 (make_pass_handle_trap_shadows): New function.
9699 (rest_of_handle_trap_shadows): Ditto.
9700
9701 (alpha_align_insns_1): Rename from alpha_align_insns.
9702 (pass_data_align_insns): New pass.
9703 (pass_align_insns::gate): New pass gate function.
9704 (make_pass_aling_insns): New function.
9705 (rest_of_align_insns): Ditto.
9706 (alpha_align_insns): Ditto.
9707
9708 (alpha_option_override): Declare handle_trap_shadows info
9709 and align_insns_info. Register handle_trap_shadows and align_insns
9710 passes here.
9711 (alpha_reorg): Do not call alpha_trap_shadows and
9712 alpha_align_insn from here.
9713
9714 (alpha_pad_function_end): Do not skip BARRIERs.
9715
9716 2014-07-10 Rong Xu <xur@google.com>
9717
9718 Add gcov-tool: an offline gcda profile processing tool support.
9719 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9720 (gcov_is_error): Ditto.
9721 (gcov_read_string): Ditto.
9722 (gcov_read_sync): Ditto.
9723 * gcov-io.h: Move counter defines to gcov-counter.def.
9724 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9725 * coverage.c: Ditto.
9726 * gcov-tool.c: Offline gcda profile processing tool.
9727 (unlink_gcda_file): Remove one gcda file.
9728 (unlink_profile_dir): Remove gcda files from the profile path.
9729 (gcov_output_files): Output gcda files to an output dir.
9730 (profile_merge): Merge two profiles in directory.
9731 (print_merge_usage_message): Print merge usage.
9732 (merge_usage): Print merge usage and exit.
9733 (do_merge): Driver for profile merge sub-command.
9734 (profile_rewrite): Rewrite profile.
9735 (print_rewrite_usage_message): Print rewrite usage.
9736 (rewrite_usage): Print rewrite usage and exit.
9737 (do_rewrite): Driver for profile rewrite sub-command.
9738 (print_usage): Print gcov-info usage and exit.
9739 (print_version): Print gcov-info version.
9740 (process_args): Process arguments.
9741 (main): Main routine for gcov-tool.
9742 * Makefile.in: Build and install gcov-tool.
9743 * gcov-counter.def: New file split from gcov-io.h.
9744 * doc/gcc.texi: Include gcov-tool.texi.
9745 * doc/gcov-tool.texi: Document for gcov-tool.
9746
9747 2014-07-10 Richard Biener <rguenther@suse.de>
9748
9749 PR tree-optimization/61757
9750 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9751 (propagate_rhs_into_lhs): Revert part of last change.
9752
9753 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9754
9755 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9756 FUNCTION_DECLs.
9757
9758 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9759
9760 PR middle-end/53590
9761 * function.c (allocate_struct_function): Revert r188667 change.
9762
9763 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9764
9765 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9766
9767 * doc/install.texi: Remove links to defunct package providers for
9768 Solaris.
9769
9770 2014-07-09 Tom de Vries <tom@codesourcery.com>
9771
9772 * final.c (get_call_fndecl): Declare.
9773 (self_recursive_call_p): New function.
9774 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9775
9776 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9777
9778 * ipa-devirt.c (record_node): Walk through aliases.
9779
9780 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9781
9782 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9783
9784 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9785
9786 Revert:
9787 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9788
9789 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9790
9791 * ipa-visibility.c (function_and_variable_visibility): Remove
9792 temporary hack disabling local aliases on AIX.
9793
9794 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9795
9796 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9797 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9798
9799 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9800
9801 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9802 * rs6000/rs6000.c: Inline output of .set instruction.
9803 (declare_alias_data): New struct.
9804 (rs6000_declare_alias): New function.
9805 (rs6000_xcoff_declare_function_name): Use it.
9806 (rs6000_xcoff_declare_object_name): New function.
9807 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9808 (ASM_OUTPUT_DEF): Turn to empty definition.
9809
9810 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9811
9812 PR bootstrap/61679
9813 * hash-table.h: use hash_table::value_type instead of
9814 Descriptor::value_type in the return types of several methods.
9815
9816 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9817
9818 * tree-pass.h (pass_data): Remove has_execute member.
9819 * passes.c (execute_one_pass): Don't check pass->has_execute.
9820 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9821 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9822 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9823 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9824 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9825 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9826 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9827 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9828 gimple-low.c, gimple-ssa-isolate-paths.c,
9829 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9830 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9831 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9832 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9833 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9834 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9835 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9836 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9837 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9838 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9839 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9840 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9841 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9842 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9843 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9844 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9845 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9846 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9847 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9848 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9849 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9850 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9851 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9852 web.c: Remove initializer for pass_data::has_execute.
9853
9854 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9855
9856 * graphite-htab.h: Use hash_map instead of hash_table.
9857 * graphite-clast-to-gimple.c: Adjust.
9858 * passes.c: Use hash_map instead of hash_table.
9859 * sese.c: Likewise.
9860 * sese.h: Remove now unused code.
9861
9862 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9863
9864 PR target/61599
9865 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9866 than zero.
9867
9868 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9869
9870 PR rtl-optimization/61673
9871 * combine.c (simplify_comparison): Test just mode's sign bit
9872 in tmode rather than the sign bit and any bits above it.
9873
9874 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9875
9876 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9877 Add __isl_give to the declaration.
9878 (generate_isl_schedule): Likewise.
9879 (scop_to_isl_ast): Likewise.
9880
9881 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9882
9883 * config/arm/arm.c (cortexa5_extra_costs): New table.
9884 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9885
9886 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9887
9888 PR tree-optimization/61725
9889 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9890 range, use range_includes_zerop_p instead of integer_zerop on
9891 vr0->min, only use log2 of max if min is not negative.
9892
9893 2014-07-08 Richard Biener <rguenther@suse.de>
9894
9895 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9896 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9897 restriction on loop depth difference.
9898 (record_equality): Likewise.
9899 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9900 (loop_depth_of_name): Remove.
9901 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9902 restriction on loop depth difference.
9903 (init_copy_prop): Likewise.
9904
9905 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9906
9907 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9908 parameter.
9909 (walk_aliased_vdefs): Likewise.
9910 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9911 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9912 (detect_type_change_from_memory_writes): Check if entry was reached.
9913
9914 2014-07-08 Richard Biener <rguenther@suse.de>
9915
9916 PR tree-optimization/61681
9917 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9918 NONLOCAL inside ESCAPED.
9919
9920 2014-07-08 Richard Biener <rguenther@suse.de>
9921
9922 PR tree-optimization/61680
9923 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9924 Handle properly all read-write dependences with group accesses.
9925
9926 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9927
9928 PR tree-optimization/61576
9929 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9930 block containing reduction statement is predecessor of phi basi block.
9931
9932 2014-07-08 Marek Polacek <polacek@redhat.com>
9933
9934 PR c/60226
9935 * fold-const.c (round_up_loc): Change the parameter type.
9936 Remove assert.
9937 * fold-const.h (round_up_loc): Adjust declaration.
9938 * stor-layout.c (finalize_record_size): Check for too large types.
9939
9940 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9941
9942 * symtab.c: Include calls.h.
9943 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9944
9945 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9946
9947 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9948 little-endian code generation.
9949 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9950 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9951 (spe_evmergehilo): Rename to...
9952 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9953 (spe_evmergelo): Rename to...
9954 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9955 (spe_evmergelohi): Rename to...
9956 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9957 (spe_evmergehi, spe_evmergehilo): New expanders.
9958 (spe_evmergelo, spe_evmergelohi): Likewise.
9959 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9960 (*frob_tf_ti): Likewise.
9961 (*frob_<mode>_di_2): Likewise.
9962 (*frob_tf_di_8_2): Likewise.
9963 (*frob_di_<mode>): Likewise.
9964 (*frob_ti_tf): Likewise.
9965 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9966 (*frob_ti_<mode>_8_2): Likewise.
9967 (*frob_ti_tf_2): Likewise.
9968 (mov_si<mode>_e500_subreg0): Rename to...
9969 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9970 endianness only.
9971 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9972 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9973 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9974 the big endianness only.
9975 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9976 (*mov_si<mode>_e500_subreg0_2): Rename to...
9977 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9978 big big endianness only.
9979 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9980 (*mov_si<mode>_e500_subreg4): Rename to...
9981 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9982 endianness only.
9983 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9984 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9985 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9986 the big endianness only.
9987 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9988 pattern.
9989 (*mov_si<mode>_e500_subreg4_2): Rename to...
9990 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9991 endianness only.
9992 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9993 (*mov_sitf_e500_subreg8): Rename to...
9994 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9995 endianness only.
9996 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9997 (*mov_sitf_e500_subreg8_2): Rename to...
9998 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9999 endianness only.
10000 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10001 (*mov_sitf_e500_subreg12): Rename to...
10002 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10003 endianness only.
10004 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10005 (*mov_sitf_e500_subreg12_2): Rename to...
10006 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10007 endianness only.
10008 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10009
10010 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10011
10012 * asan.c (instrument_strlen_call): Do not instrument first byte
10013 in strlen if already instrumented.
10014
10015 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10016
10017 * config/arm/arm.opt (mwords-little-endian): Delete.
10018 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10019 of TARGET_LITTLE_WORDS.
10020 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10021 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10022 warning.
10023 * doc/invoke.texi: Remove references to -mwords-little-endian.
10024
10025 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10026
10027 * expmed.c (struct init_expmed_rtl): Change all fields but
10028 pow2 and cint from struct rtx_def to rtx.
10029 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10030 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10031 at the end again.
10032
10033 2014-07-06 Marek Polacek <polacek@redhat.com>
10034
10035 PR c/6940
10036 * doc/invoke.texi: Document -Wsizeof-array-argument.
10037
10038 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10039
10040 * wide-int.h (wide_int_storage): Change declaration from struct
10041 to class.
10042
10043 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10044
10045 * cgraph.c (cgraph_create_indirect_edge): Update call of
10046 get_polymorphic_call_info.
10047 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10048 (possible_polymorphic_call_targets): Add parameter call.
10049 (decl_maybe_in_construction_p): New predicate.
10050 (get_polymorphic_call_info): Add parameter call;
10051 use decl_maybe_in_construction_p.
10052 * gimple-fold.c (fold_gimple_assign): Update use of
10053 possible_polymorphic_call_targets.
10054 (gimple_fold_call): Likewise.
10055 * ipa-prop.c: Inlcude calls.h
10056 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10057 (param_type_may_change_p): New predicate.
10058 (detect_type_change_from_memory_writes): Break out from ...
10059 (detect_type_change): ... this one; use param_type_may_change_p.
10060 (detect_type_change_ssa): Use param_type_may_change_p.
10061 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10062
10063 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10064
10065 PR target/49423
10066 * config/arm/arm-protos.h (arm_legitimate_address_p,
10067 arm_is_constant_pool_ref): Add prototypes.
10068 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10069 (arm_is_constant_pool_ref) New function.
10070 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10071 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10072 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10073 operand. Remove pool_range and neg_pool_range attributes.
10074 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10075 pool_range and neg_pool_range attributes.
10076 * config/arm/constraints.md (Uh): New constraint.
10077 (Uq): Don't allow constant pool references.
10078
10079 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10080
10081 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10082 (move_lo_quad_internal_be_<mode>): Likewise.
10083 (move_lo_quad_<mode>): Convert to define_expand.
10084 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10085 (aarch64_simd_move_hi_quad_be_<mode>): New.
10086 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10087 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10088 (aarch64_combinez_be<mode>): New.
10089 (aarch64_combine<mode>): Convert to define_expand.
10090 (aarch64_combine_internal<mode>): New.
10091 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10092
10093 2014-07-04 Tom de Vries <tom@codesourcery.com>
10094
10095 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10096 combination of earlyclobber and read/write modifiers.
10097
10098 2014-07-04 Tom de Vries <tom@codesourcery.com>
10099
10100 * config/aarch64/aarch64-simd.md
10101 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10102
10103 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10104
10105 PR target/61714
10106 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10107
10108 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10109
10110 PR middle-end/61654
10111 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10112
10113 PR tree-optimization/61684
10114 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10115 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10116
10117 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10118 Kito Cheng <kito@0xlab.org>
10119 Monk Chiang <sh.chiang04@gmail.com>
10120
10121 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10122 (nds32_symbol_load_store_p): Move to ...
10123 (nds32_fp_as_gp_check_available): Move to ...
10124 * config/nds32/nds32-fp-as-gp.c: ... here.
10125 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10126 extern declaration.
10127
10128 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10129 Kito Cheng <kito@0xlab.org>
10130 Monk Chiang <sh.chiang04@gmail.com>
10131
10132 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10133 (nds32_expand_store_multiple): Move to ...
10134 (nds32_expand_movmemqi): Move to ...
10135 * config/nds32/nds32-memory-manipulation.c: ... here.
10136
10137 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10138 Kito Cheng <kito@0xlab.org>
10139 Monk Chiang <sh.chiang04@gmail.com>
10140
10141 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10142 (nds32_output_casesi_pc_relative): Move to ...
10143 (nds32_output_casesi): Move to ...
10144 (nds32_mem_format): Move to ...
10145 (nds32_output_16bit_store): Move to ...
10146 (nds32_output_16bit_load): Move to ...
10147 (nds32_output_32bit_store): Move to ...
10148 (nds32_output_32bit_load): Move to ...
10149 (nds32_output_32bit_load_s): Move to ...
10150 (nds32_output_stack_push): Move to ...
10151 (nds32_output_stack_pop): Move to ...
10152 * config/nds32/nds32-md-auxiliary.c: ... here.
10153
10154 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10155 Ling-Hua Tseng <uranus@tinlans.org>
10156
10157 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10158 the purpose of this file.
10159
10160 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10161 Kito Cheng <kito@0xlab.org>
10162 Monk Chiang <sh.chiang04@gmail.com>
10163
10164 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10165 (nds32_address_cost): Move implementation to ...
10166 * config/nds32/nds32-cost.c: ... here.
10167 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10168 (nds32_address_cost_impl): Declare.
10169
10170 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10171 Kito Cheng <kito@0xlab.org>
10172 Monk Chiang <sh.chiang04@gmail.com>
10173
10174 * config/nds32/nds32.c
10175 (nds32_consecutive_registers_load_store_p): Move to ...
10176 (nds32_valid_multiple_load_store): Move to ...
10177 (nds32_valid_stack_push_pop): Move to ...
10178 (nds32_can_use_bclr_p): Move to ...
10179 (nds32_can_use_bset_p): Move to ...
10180 (nds32_can_use_btgl_p): Move to ...
10181 (nds32_can_use_bitci_p): Move to ...
10182 * config/nds32/nds32-predicates.c: ... here.
10183
10184 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10185 Kito Cheng <kito@0xlab.org>
10186 Monk Chiang <sh.chiang04@gmail.com>
10187
10188 * config/nds32/nds32.c
10189 (nds32_expand_builtin_null_ftype_reg): Move to ...
10190 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10191 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10192 (nds32_init_builtins): Move implementation to ...
10193 (nds32_expand_builtin): Move implementation to ...
10194 * config/nds32/nds32-intrinsic.c: ... here.
10195 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10196 (nds32_expand_builtin_impl): Declare.
10197
10198 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10199 Kito Cheng <kito@0xlab.org>
10200 Monk Chiang <sh.chiang04@gmail.com>
10201
10202 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10203 (nds32_emit_section_tail_template): Move to ...
10204 (nds32_emit_isr_jmptbl_section): Move to ...
10205 (nds32_emit_isr_vector_section): Move to ...
10206 (nds32_emit_isr_reset_conten): Move to ...
10207 (nds32_check_isr_attrs_conflict): Move to ...
10208 (nds32_construct_isr_vectors_information): Move to ...
10209 (nds32_asm_file_start): Move implementation to ...
10210 (nds32_asm_file_end): Move implementation to ...
10211 * config/nds32/nds32-isr.c: ... here.
10212 * config/nds32/nds32-protos.h
10213 (nds32_check_isr_attrs_conflict): Declare.
10214 (nds32_construct_isr_vectors_information): Declare.
10215 (nds32_asm_file_start_for_isr): Declare.
10216 (nds32_asm_file_end_for_isr): Declare.
10217
10218 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10219 Kito Cheng <kito@0xlab.org>
10220 Monk Chiang <sh.chiang04@gmail.com>
10221
10222 * config.gcc (nds32*): Add new modules to extra_objs.
10223 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10224 (nds32be-*-*): Likewise.
10225 * config/nds32/nds32-cost.c: New file.
10226 * config/nds32/nds32-fp-as-gp.c: New file.
10227 * config/nds32/nds32-intrinsic.c: New file.
10228 * config/nds32/nds32-isr.c: New file.
10229 * config/nds32/nds32-md-auxiliary.c: New file.
10230 * config/nds32/nds32-memory-manipulation.c: New file.
10231 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10232 * config/nds32/nds32-predicates.c: New file.
10233 * config/nds32/t-nds32: New file.
10234
10235 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10236
10237 PR tree-optimization/61682
10238 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10239 using cases and when one of the operands is equal to 1.
10240
10241 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10242
10243 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10244 ashr<mode>3): Correct mode of operands[2].
10245 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10246 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10247 Correct mode of operands[2]. Fix split condition.
10248
10249 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10250
10251 * arm.md (arch): Add armv6_or_vfpv3.
10252 (arch_enabled): Add test for the above.
10253 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10254 on VFP9.
10255 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10256
10257 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10258
10259 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10260 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10261 HWI 1 and negate the unsigned value.
10262 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10263 use AND instead of shift.
10264 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10265
10266 2014-07-03 Marek Polacek <polacek@redhat.com>
10267
10268 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10269 (-fsanitize=float-divide-by-zero): Move to the table with
10270 -fsanitize=undefined suboptions.
10271 (-fsanitize=float-cast-overflow): Likewise.
10272
10273 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10274
10275 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10276 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10277 endianness.
10278
10279 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10280
10281 * loop-invariant.c (struct invariant): Add a new member: eqno;
10282 (find_identical_invariants): Update eqno;
10283 (create_new_invariant): Init eqno;
10284 (get_inv_cost): Compute comp_cost with eqno;
10285
10286 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10287
10288 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10289 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10290 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10291 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10292 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10293
10294 2014-07-02 Christian Bruel <christian.bruel@st.com>
10295
10296 PR target/29349
10297 PR target/53513
10298 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10299 (make_preds_opaque): Delete.
10300 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10301 (commit_mode_sets): New function.
10302 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10303 Process all modes at once.
10304 * basic-block.h (pre_edge_lcm_avs): Declare.
10305 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10306 Call clear_aux_for_edges. Fix comments.
10307 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10308 (pre_edge_rev_lcm): Idem.
10309 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10310 parameter.
10311 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10312 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10313 Idem.
10314 * config/i386/i386.c (x96_emit_mode_set): Idem.
10315 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10316 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10317 (fpscr_toggle) Disallow from delay slot.
10318 * target.def (emit_mode_set): Add prev_mode parameter.
10319 * doc/tm.texi: Regenerate.
10320
10321 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10322
10323 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10324 variable i.
10325
10326 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10327
10328 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10329 vtable_pointer_value_to_vtable): Constify.
10330 (contains_polymorphic_type_p): Declare.
10331 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10332 vtable_pointer_value_to_vtable): Constify.
10333 (contains_polymorphic_type_p): New predicate.
10334 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10335 polymorphic types.
10336 (ipa_set_ancestor_jf): Likewise.
10337 (detect_type_change): Return false in easy cases.
10338 (compute_complex_assign_jump_func): Require type to contain
10339 polymorphic type.
10340 (compute_known_type_jump_func): Likewise.
10341
10342 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10343
10344 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10345 Remove.
10346 (type_in_anonymous_namespace_p): Constify argument.
10347 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10348 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10349 (main_odr_variant): New function.
10350 (hash_type_name): Make static; update assert; do not ICE on
10351 non-records.
10352 (types_same_for_odr): Bring here from tree.c; simplify and remove
10353 old structural comparing code that doesn't work for templates.
10354 (odr_hasher::equal): Update assert.
10355 (add_type_duplicate): Return true when bases should be computed;
10356 replace incomplete loader by complete; do not output duplicated
10357 warnings; do not ICE on non-records; set odr_violated flag.
10358 (get_odr_type): Be ready to replace incomplete type by complete
10359 one; work on ODR variants instead of main variants; reorder item
10360 in array so bases have still smaller indexes.
10361 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10362 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10363
10364 2014-07-01 Cary Coutant <ccoutant@google.com>
10365
10366 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10367 lookup.
10368 (resolve_addr_in_expr): When replacing the rtx in a location list
10369 entry, get a new address table entry.
10370 (dwarf2out_finish): Call index_location_lists even if there are no
10371 addr_index_table entries yet.
10372
10373 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10374
10375 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10376 change for not being obvious.
10377
10378 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10379
10380 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10381 unused argument.
10382
10383 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10384
10385 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10386 (vcagt_f64): Likewise.
10387 (vcale_f64): Likewise.
10388 (vcaled_f64): Likewise.
10389 (vcales_f32): Likewise.
10390 (vcalt_f64): Likewise.
10391 (vcaltd_f64): Likewise.
10392 (vcalts_f32): Likewise.
10393
10394 2014-07-01 Marek Polacek <polacek@redhat.com>
10395
10396 * doc/invoke.texi: Document -Wint-conversion.
10397
10398 2014-07-01 Marek Polacek <polacek@redhat.com>
10399
10400 PR c/58286
10401 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10402
10403 2014-07-01 Martin Liska <mliska@suse.cz>
10404
10405 IPA REF alias refactoring
10406 * cgraph.h (iterate_direct_aliases): New function.
10407 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10408 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10409 FOR_EACH_ALIAS added.
10410 (cgraph_for_node_and_aliases): Likewise.
10411 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10412 * ipa-inline.c (reset_edge_caches): Likewise.
10413 (update_caller_keys): Likewise.
10414 * trans-mem.c (ipa_tm_execute): Likewise.
10415 *varpool.c (varpool_analyze_node): Likewise.
10416 (varpool_for_node_and_aliases): Likewise.
10417 * ipa-ref.h (first_alias): New function.
10418 (last_alias): Likewise.
10419 (has_aliases_p): Likewise.
10420 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10421 is sensitive to IPA_REF_ALIASes.
10422 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10423 are put at the beginning of the list.
10424 (symtab_node::iterate_direct_aliases): New function.
10425
10426 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10427
10428 Revert:
10429 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10430 type is complete.
10431 (write_ts_type_common_tree_pointers): Do not stream fields not set
10432 for incomplete types; do not stream duplicated fields for variants;
10433 sanity check that variant and type match.
10434 (write_ts_type_non_common_tree_pointers): Likewise.
10435 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10436 TYPE_SIZE whether type is complete.
10437 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10438 write_ts_type_common_tree_pointers
10439 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10440
10441 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10442
10443 * var-tracking.c (add_stores): Return instead of asserting if old
10444 and new values for conditional store are the same.
10445
10446 2014-06-30 Richard Henderson <rth@redhat.com>
10447
10448 PR rtl-opt/61608
10449 PR target/39284
10450 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10451 the cfg if there were any changes.
10452 * passes.def: Revert move of peephole2 after reorder_blocks;
10453 move duplicate_computed_gotos before peephole2.
10454
10455 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10456
10457 * except.c (emit_note_eh_region_end): New helper function.
10458 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10459 emit EH_REGION_END note.
10460 * jump.c (cleanup_barriers): Do not split a call and its
10461 corresponding CALL_ARG_LOCATION note.
10462
10463 2014-06-30 Jeff Law <law@redhat.com>
10464
10465 PR tree-optimization/61607
10466 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10467 deeper into the SSA_NAME_VALUE chain.
10468
10469 2014-06-30 Marek Polacek <polacek@redhat.com>
10470
10471 * convert.c (convert_to_integer): Don't instrument conversions if the
10472 function has no_sanitize_undefined attribute.
10473 * ubsan.c: Don't run the ubsan pass if the function has
10474 no_sanitize_undefined attribute.
10475
10476 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10477
10478 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10479 -fsanitize=undefined suboptions.
10480
10481 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10482
10483 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10484 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10485 against bigendian and adjust indices.
10486
10487 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10488
10489 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10490
10491 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10492
10493 PR target/61633
10494 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10495 Add alternative; make early clobber. Adjust both split patterns
10496 to use operand 0 as the working register.
10497
10498 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10499
10500 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10501 as ira_object_id_map might be NULL, or 1.
10502
10503 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10504
10505 * loop-invariant.c (get_inv_cost): Handle register class.
10506 (gain_for_invariant): Check the register pressure of the inv
10507 and its overlapped register class, other than all.
10508
10509 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10510
10511 * doc/invoke.texi (Optimize Options): Fix descriptions of
10512 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10513
10514 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10515
10516 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10517 documentation.
10518
10519 2014-06-29 Tobias Grosser <tobias@grosser.es>
10520
10521 PR bootstrap/61650
10522 * graphite-isl-ast-to-gimple.c: Add missing guards.
10523
10524 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10525
10526 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10527 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10528 * flag-types.h: Add new enum fgraphite_generator.
10529 * graphite-isl-ast-to-gimple.c: New.
10530 * graphite-isl-ast-to-gimple.h: New.
10531 * graphite.c (graphite_transform_loops): Add choice of Graphite
10532 code generator, which depends on flag_graphite_code_gen.
10533
10534 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10535
10536 * graphite-dependences.c (subtract_commutative_associative_deps):
10537 Add NULL checking of the following variables: must_raw_no_source,
10538 may_raw_no_source, must_war_no_source, may_war_no_source,
10539 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10540 must_war, may_war, must_waw, may_waw.
10541
10542 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10543
10544 * graphite-clast-to-gimple.c: gloog is renamed to
10545 graphite_regenerate_ast_cloog. gloog_error is renamed to
10546 graphite_regenerate_error.
10547 * graphite-clast-to-gimple.h: The definition of the struct
10548 bb_pbb_def is moved to graphite-htab.h.
10549 Add inclusion of the hash-table.h.
10550 * graphite-htab.h: The declaration of the function gloog is moved
10551 to graphite-clast-to-gimple.h and renamed to
10552 graphite_regenerate_ast_cloog.
10553 * graphite.c (graphite_transform_loops): gloog is renamed
10554 to graphite_regenerate_ast_cloog.
10555
10556 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10557
10558 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10559 type is complete.
10560 (write_ts_type_common_tree_pointers): Do not stream fields not set
10561 for incomplete types; do not stream duplicated fields for variants;
10562 sanity check that variant and type match.
10563 (write_ts_type_non_common_tree_pointers): Likewise.
10564 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10565 TYPE_SIZE whether type is complete.
10566 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10567 write_ts_type_common_tree_pointers
10568 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10569
10570 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10571
10572 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10573
10574 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10575
10576 * tree-inline.c (remap_type_1): Do not duplicate fields
10577 that are shared in between type and its main variant.
10578
10579 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10580
10581 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10582 of the type.
10583 (ipa_set_ancestor_jf) Likewise.
10584 (check_stmt_for_type_change): Check that we work on main variant.
10585 (detect_type_change): Look into main variant.
10586 (compute_known_type_jump_func): Check that main variant has BINFO.
10587
10588 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10589
10590 * ipa-devirt.c (set_type_binfo): New function.
10591 (add_type_duplicate): Use it.
10592 (get_odr_type): Sanity check that binfos points to main variants.
10593 (get_class_context): Be sure the context's outer_type is main variant.
10594 (contains_type_p): Walk main variant.
10595 (get_polymorphic_call_info_for_decl): Set outer_type to be
10596 main variant.
10597 (get_polymorphic_call_info): Likewise.
10598 (possible_polymorphic_call_targets): Sanity check that we operate
10599 on main variant.
10600
10601 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10602
10603 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10604
10605 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10606
10607 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10608 accidental change due to wide-int branch merge.
10609
10610 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10611
10612 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10613 compressed debug support.
10614 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10615 * configure: Regenerate.
10616 * config.in: Regenerate.
10617 * common.opt (compressed_debug_sections): New enum.
10618 (gz, gz=): New options.
10619 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10620 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10621 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10622 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10623 LINK_COMPRESS_DEBUG_SPEC.
10624 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10625 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10626 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10627 (Debugging Options): Document -gz[=type].
10628
10629 2014-06-27 Martin Jambor <mjambor@suse.cz>
10630
10631 PR ipa/61160
10632 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10633 args_to_skip, use those from node instead. Copy args_to_skip and
10634 combined_args_to_skip from node to the new thunk.
10635 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10636 (cgraph_create_virtual_clone): Moved computation of
10637 combined_args_to_skip...
10638 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10639
10640 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10641
10642 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10643 redundant diagnostic machinary.
10644
10645 2014-06-27 Richard Biener <rguenther@suse.de>
10646
10647 * tree-ssa-math-opts.c (bswap_replace): Fix
10648 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10649
10650 2014-06-27 Martin Liska <mliska@suse.cz>
10651
10652 * gimple.h (gimple_location_safe): New function introduced.
10653 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10654 of gimple_location_safe replaces gimple_location.
10655 (gimple_fold_call): Likewise.
10656 * ipa-devirt.c (ipa_devirt): Likewise.
10657 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10658 * ipa.c (walk_polymorphic_call_targets): Likewise.
10659 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10660
10661 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10662
10663 PR tree-optimization/57233
10664 PR tree-optimization/61299
10665 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10666 functions.
10667 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10668 would be lowered to scalar shifts, check if corresponding
10669 shifts and vector BIT_IOR_EXPR are supported and don't lower
10670 or lower just to narrower vector type in that case.
10671 * expmed.c (expand_shift_1): Fix up handling of vector
10672 shifts and rotates.
10673
10674 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10675
10676 PR target/61586
10677 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10678
10679 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10680
10681 * doc/invoke.texi (-fsemantic-interposition): Document.
10682 * common.opt (fsemantic-interposition): New flag.
10683 * varasm.c (decl_replaceable_p): Use it.
10684
10685 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10686
10687 PR target/61542
10688 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10689 extraction other than index 3.
10690
10691 2014-06-26 Teresa Johnson <tejohnson@google.com>
10692
10693 * doc/invoke.texi: Fix typo.
10694 * dumpfile.c: Add support for documented -fdump-* options
10695 optimized/missed/note/optall.
10696
10697 2014-06-26 Martin Jambor <mjambor@suse.cz>
10698
10699 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10700 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10701 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10702 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10703 * opts.c (default_options_optimization): Set
10704 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10705 * doc/invoke.texi (allow-load-data-races)
10706 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10707 (allow-store-data-races): Document the new default.
10708
10709 2014-06-26 Martin Jambor <mjambor@suse.cz>
10710
10711 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10712 renamed to ipa_impossible_devirt_target. Fix typo.
10713 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10715 ipa_impossible_devirt_target.
10716
10717 2014-06-26 Richard Biener <rguenther@suse.de>
10718
10719 PR tree-optimization/61607
10720 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10721 explaining why we restrict copies on loop depth.
10722 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10723 on loop depth.
10724 (record_equivalences_from_phis): Instead add it here.
10725
10726 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10727
10728 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10729 (LTO_WRAPPER_OBJS): New variable.
10730 (lto-wrapper$(exeext)): Use it.
10731 * collect2.c: Include "collect-utils.h".
10732 (verbose, debug): Remove variables.
10733 (at_file_supplied): No longer static.
10734 (tool_name): New variable.
10735 (do_wait, fork_execute, maybe_unlink): Don't declare.
10736 (tool_cleanup): No longer static.
10737 (notice): Remove function.
10738 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10739 fork_execute calls.
10740 (collect_wait, do_wait, collect_execute): Remove functions.
10741 (maybe_unlink): No longer static.
10742 * collect2.h (verbose, debug): Don't declare.
10743 (at_file_supplied): Declare.
10744 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10745 changed.
10746 (collect_execute): Replace with implementation from collect2, plus a
10747 new arg use_atfile. All callers changed.
10748 (collect_wait): Replace with implementation from collect2.
10749 (maybe_unlink_file): Remove function.
10750 (fork_execute): Replace with implementation from collect2, plus a
10751 new arg use_atfile. All callers changed.
10752 (do_wait): Add call to utils_cleanup to the error path.
10753 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10754 (tool_cleanup): Adjust declarations.
10755 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10756 * tlink.c: Include "collect-utils.h".
10757 (tlink_execute): New arg use_atfile. All callers changed.
10758 (tlink_init, tlink_execute): Remove declarations.
10759
10760 * collect-utils.c (save_temps): New variable.
10761 (do_wait): Use it instead of debug. Use fatal_error.
10762 * collect-utils.h (save_temps): Declare.
10763 * collect2.c (verbose): Rename from vflag. All uses changed.
10764 (tool_cleanup): New function, copied from collect_atexit.
10765 (collect_atexit, handler): Just call it.
10766 * collect2.h (verbose): Declaration renamed from vflag.
10767 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10768 debug.
10769
10770 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10771 (lto-wrapper$(exeext)): Link with collect-utils.o.
10772 * collect-utils.c: New file.
10773 * collect-utils.h: New file.
10774 * lto-wrapper.c: Include "collect-utils.h".
10775 (args_name): Delete variable.
10776 (tool_name): New variable.
10777 (tool_cleanup): New function.
10778 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10779 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10780 (fork_execute): Remove functions.
10781
10782 2014-06-26 Nick Clifton <nickc@redhat.com>
10783
10784 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10785
10786 * doc/extend.texi (Function Attributes): Fix typo in description
10787 of RX vector attribute.
10788
10789 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10790
10791 * config.gcc (supported_defaults): Error when passing either
10792 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10793
10794 2014-06-26 Richard Biener <rguenther@suse.de>
10795
10796 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10797 propagating volatile pointers.
10798
10799 2014-06-26 Richard Biener <rguenther@suse.de>
10800
10801 PR tree-optimization/61607
10802 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10803 loop if we redirected its latch edge.
10804 (thread_block_1): Do not cancel loops prematurely.
10805
10806 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10807
10808 * toplev.c (backend_init_target): Move init_emit_regs and
10809 init_regs to...
10810 (backend_init) ... here; skip ira_init_once and backend_init_target.
10811 (target_reinit) ... and here; clear
10812 this_target_rtl->lang_dependent_initialized.
10813 (lang_dependent_init_target): Clear
10814 this_target_rtl->lang_dependent_initialized;
10815 break out rtl initialization to ...
10816 (initialize_rtl): ... here; call also backend_init_target
10817 and ira_init_once.
10818 * toplev.h (initialize_rtl): New function.
10819 * function.c: Include toplev.h
10820 (init_function_start): Call initialize_rtl.
10821 * rtl.h (target_rtl): Add target_specific_initialized,
10822 lang_dependent_initialized.
10823
10824 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10825 Jakub Jelinek <jakub@redhat.com>
10826
10827 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10828
10829 2014-06-25 Tom de Vries <tom@codesourcery.com>
10830
10831 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10832
10833 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10834
10835 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10836 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10837 Issue a strict overflow warning if appropriate.
10838
10839 2014-06-25 Martin Liska <mliska@suse.cz>
10840
10841 IPA REF refactoring
10842 * Makefile.in: Removed header file (ipa-ref-inline.h).
10843 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10844 called.
10845 (cgraph_speculative_call_info): Likewise.
10846 (cgraph_for_node_thunks_and_aliases): Likewise.
10847 (cgraph_for_node_and_aliases): Likewise.
10848 (verify_cgraph_node): Likewise.
10849 * cgraph.h: Batch of IPA REF functions become member functions of
10850 symtab_node: add_reference, maybe_add_reference, clone_references,
10851 clone_referring, clone_reference, find_reference,
10852 remove_stmt_references, remove_all_references,
10853 remove_all_referring, dump_references, dump_referring,
10854 has_alias_p, iterate_reference, iterate_referring.
10855 * cgraphbuild.c (record_reference): New IPA REF function used.
10856 (record_type_list): Likewise.
10857 (record_eh_tables): Likewise.
10858 (mark_address): Likewise.
10859 (mark_load): Likewise.
10860 (mark_store): Likewise.
10861 (pass_build_cgraph_edges): Likewise.
10862 (rebuild_cgraph_edge): Likewise.
10863 (cgraph_rebuild_references): Likewise.
10864 (pass_remove_cgraph_callee_edges): Likewise.
10865 * cgraphclones.c (cgraph_clone_node): Likewise.
10866 (cgraph_create_virtual_clone): Likewise.
10867 (cgraph_materialize_clone): Likewise.
10868 (cgraph_materialize_all_clones): Likewise.
10869 * cgraphunit.c (cgraph_reset_node): Likewise.
10870 (cgraph_reset_node): Likewise.
10871 (analyze_function): Likewise.
10872 (assemble_thunks_and_aliases): Likewise.
10873 (expand_function): Likewise.
10874 * ipa-comdats.c (propagate_comdat_group): Likewise.
10875 (enqueue_references): Likewise.
10876 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10877 (create_specialized_node): Likewise.
10878 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10879 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10880 * ipa-inline.c (reset_edge_caches): Likewise.
10881 (update_caller_keys): Likewise.
10882 (execute): Likewise.
10883 * ipa-prop.c (remove_described_reference): Likewise.
10884 (propagate_controlled_uses): Likewise.
10885 (ipa_edge_duplication_hook): Likewise.
10886 (ipa_modify_call_arguments): Likewise.
10887 * ipa-pure-const.c (propagate_pure_const): Likewise.
10888 * ipa-ref-inline.h: Header file removed, functions moved
10889 to symtab_node class.
10890 * ipa-ref.c (remove_reference): New class member function.
10891 (cannot_lead_to_return): New class member function.
10892 (referring_ref_list): Likewise.
10893 (referred_ref_list): Likewise.
10894 Rest of functions moved to symtab_node class.
10895 * ipa-ref.h: New member functions remove_reference,
10896 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10897 to ipa_ref class.
10898 ipa_ref_list class has new member functions: first_reference,
10899 first_referring, clear, nreferences.
10900 * ipa-reference.c (analyze_function): New IPA REF function used.
10901 (write_node_summary_p): Likewise.
10902 (ipa_reference_write_optimization_summary): Likewise.
10903 * ipa-split.c (split_function): Likewise.
10904 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10905 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10906 (function_and_variable_visibility): Likewise.
10907 * ipa.c (has_addr_references_p): Likewise.
10908 (process_references): Argument type changed.
10909 (symtab_remove_unreachable_nodes): New IPA REF function used.
10910 (process_references): Likewise.
10911 (set_writeonly_bit): Likewise.
10912 * lto-cgraph.c: Implementation of new symtab_node member functions
10913 that uses new IPA REF functions.
10914 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10915 function used.
10916 * lto-streamer-out.c (output_symbol_p): Likewise.
10917 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10918 changed.
10919 * symtab.c: Implementation of new IPA REF API.
10920 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10921 (ipa_tm_create_version): Likewise.
10922 (ipa_tm_execute): Likewise.
10923 * tree-emutls.c (gen_emutls_addr): Likewise.
10924 * tree-inline.c (copy_bb): Likewise.
10925 (delete_unreachable_blocks_update_callgraph): Likewise.
10926 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10927 (varpool_for_node_and_aliases): Likewise.
10928
10929 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10930
10931 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10932
10933 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10934
10935 PR bootstrap/61598
10936 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10937 tree_node * instead of tree_node *.
10938 (fold): Adjust.
10939 (print_fold_checksum): Likewise.
10940 (fold_check_failed): Likewise.
10941 (debug_fold_checksum): Likewise.
10942 (fold_build1_stat_loc): Likewise.
10943 (fold_build2_stat_loc): Likewise.
10944 (fold_build3_stat_loc): Likewise.
10945 (fold_build_call_array_loc): Likewise.
10946
10947 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10948
10949 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10950 implementation with call to...
10951 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10952 function.
10953 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10954 Declare.
10955
10956 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10957
10958 PR tree-optimization/57742
10959 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10960 after replacing the statement.
10961
10962 2014-06-25 Nick Clifton <nickc@redhat.com>
10963
10964 * config/v850/v850.c (GHS_default_section_names): Change to const
10965 char * type.
10966 (GHS_current_section_names): Likewise.
10967 (v850_insert_attributes): Do not build strings, just assign the
10968 names directly. Change the type of 'chosen_section' to const
10969 char*.
10970 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10971 directly to the array entry.
10972 * config/v850/v850.h (GHS_default_section_names): Change to const
10973 char * type.
10974 (GHS_current_section_names): Likewise.
10975
10976 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10977
10978 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10979 (LANG_HOOKS_DECLS): Add it.
10980 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10981 has correct type.
10982 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10983 * langhooks.h (struct lang_hooks_for_decls): Add
10984 omp_clause_linear_ctor hook.
10985 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10986 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10987 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10988 combined simd loop use omp_clause_linear_ctor hook.
10989
10990 2014-06-24 Cong Hou <congh@google.com>
10991
10992 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10993 pattern recognition.
10994 (type_conversion_p): PROMOTION is true if it's a type promotion
10995 conversion, and false otherwise. Return true if the given expression
10996 is a type conversion one.
10997 * tree-vectorizer.h: Adjust the number of patterns.
10998 * tree.def: Add SAD_EXPR.
10999 * optabs.def: Add sad_optab.
11000 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11001 * expr.c (expand_expr_real_2): Likewise.
11002 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11003 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11004 * optabs.c (optab_for_tree_code): Likewise.
11005 * tree-cfg.c (estimate_operator_cost): Likewise.
11006 * tree-ssa-operands.c (get_expr_operands): Likewise.
11007 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11008 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11009 * doc/generic.texi: Add document for SAD_EXPR.
11010 * doc/md.texi: Add document for ssad and usad.
11011
11012 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11013
11014 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11015 qualification in cast.
11016
11017 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11018
11019 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11020 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11021 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11022 (tree_function_decl): ... here.
11023 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11024 streaming of vindex to ...
11025 (write_ts_function_decl_tree_pointers): ... here.
11026 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11027 Do not stream DECL_VINDEX.
11028 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11029
11030 2014-06-24 Catherine Moore <clm@codesourcery.com>
11031 Sandra Loosemore <sandra@codesourcery.com>
11032
11033 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11034 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11035 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11036
11037 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11038
11039 * doc/invoke.texi (Warning Options): Remove duplicated
11040 -Wmaybe-uninitialized.
11041
11042 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11043
11044 PR tree-optimization/57742
11045 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11046 (handle_builtin_malloc, handle_builtin_memset): New functions.
11047 (strlen_optimize_stmt): Call them.
11048 * passes.def: Move strlen after loop+dom but before vrp.
11049
11050 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11051
11052 PR target/61570
11053 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11054 model family 6 CPU with has_longmode never use a CPU without
11055 64-bit support.
11056
11057 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11058
11059 PR target/61570
11060 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11061 the last change.
11062
11063 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11064
11065 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11066 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11067 pointer_map.
11068 * hash-map.h: New file.
11069 * ipa-comdats.c: Use hash_map instead of pointer_map.
11070 * ipa.c: Likewise.
11071 * lto-section-out.c: Adjust.
11072 * lto-streamer.h: Replace pointer_map with hash_map.
11073 * symtab.c (verify_symtab): Likewise.
11074 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11075 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11076 * tree-streamer.h: Likewise.
11077 * tree-streamer.c: Adjust.
11078 * pointer-set.h: Remove pointer_map.
11079
11080 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11081
11082 * hash-table.h: Add a template arg to choose between storing values
11083 and storing pointers to values, and then provide partial
11084 specializations for both.
11085 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11086 should store, not the type values should point to.
11087 * tree-into-ssa.c (var_info_hasher): Likewise.
11088 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11089 * tree-complex.c: Adjust.
11090 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11091 table instead of int_tree_map *.
11092 * tree-parloops.c: Adjust.
11093 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11094 type is being stored.
11095 * tree-vectorizer.c: Adjust.
11096
11097 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11098
11099 * hash-table.h: Remove a layer of indirection from hash_table so that
11100 it contains the hash table's data instead of a pointer to the data.
11101 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11102 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11103 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11104 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11105 fold-const.c, gcse.c, ggc-common.c,
11106 gimple-ssa-strength-reduction.c, gimplify.c,
11107 graphite-clast-to-gimple.c, graphite-dependences.c,
11108 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11109 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11110 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11111 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11112 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11113 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11114 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11115 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11116 tree-ssa-live.c, tree-ssa-loop-im.c,
11117 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11118 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11119 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11120 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11121 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11122 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11123 vtable-verify.c, vtable-verify.h: Adjust.
11124
11125 2014-06-24 Richard Biener <rguenther@suse.de>
11126
11127 PR tree-optimization/61572
11128 * tree-ssa-sink.c (statement_sink_location): Do not sink
11129 loads from hard registers.
11130
11131 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11132
11133 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11134 not mentioned in clauses use private clause if the iterator is
11135 declared in #pragma omp for simd, and when adding lastprivate
11136 instead, add it to the outer #pragma omp for too. Diagnose
11137 if the variable is private in outer context. For simd collapse > 1
11138 loops, replace all iterators with temporaries.
11139 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11140 same even in collapse > 1 loops.
11141
11142 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11143 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11144 non-NULL.
11145 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11146 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11147 non-NULL.
11148 (gimplify_adjust_omp_clauses): Likewise.
11149 * omp-low.c (lower_rec_simd_input_clauses,
11150 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11151 safelen the same as safelen(1).
11152 * tree-nested.c (convert_nonlocal_omp_clauses,
11153 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11154 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11155 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11156 Fixup handling of GIMPLE_OMP_TARGET.
11157 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11158 GIMPLE_OMP_TARGET.
11159
11160 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11161
11162 PR tree-optimization/61554
11163 * tree-ssa-propagate.c: Include "bitmap.h".
11164 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11165 properly update constructor/destructor.
11166 (substitute_and_fold_dom_walker::before_dom_children):
11167 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11168 need_eh_cleaup instead.
11169 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11170 need_eh_cleanup.
11171
11172 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11173
11174 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11175 * tree-pass.h (make_pass_ipa_single_use): New pass.
11176 * cgraph.h (used_by_single_function): New flag.
11177 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11178 Stream it.
11179 * passes.def (pass_ipa_single_use): Scedule.
11180 * ipa.c (BOTTOM): New macro.
11181 (meet): New function
11182 (propagate_single_user): New function.
11183 (ipa_single_use): New function.
11184 (pass_data_ipa_single_use): New pass.
11185 (pass_ipa_single_use): New pass.
11186 (pass_ipa_single_use::gate): New gate.
11187 (make_pass_ipa_single_use): New function.
11188
11189 2014-06-23 Kai Tietz <ktietz@redhat.com>
11190
11191 PR target/39284
11192 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11193 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11194
11195 2014-06-23 Richard Biener <rguenther@suse.de>
11196
11197 * tree-ssa-loop.c (gate_loop): New function.
11198 (pass_tree_loop::gate): Call it.
11199 (pass_data_tree_no_loop, pass_tree_no_loop,
11200 make_pass_tree_no_loop): New.
11201 * tree-vectorizer.c: Include tree-scalar-evolution.c
11202 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11203 required.
11204 (pass_slp_vectorize::clone): New method.
11205 * timevar.def (TV_TREE_NOLOOP): New.
11206 * tree-pass.h (make_pass_tree_no_loop): Declare.
11207 * passes.def (pass_tree_no_loop): New pass group with
11208 SLP vectorizer.
11209
11210 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11211
11212 PR target/61570
11213 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11214 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11215
11216 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11217
11218 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11219 "yes" where needed.
11220
11221 2014-06-23 Alan Modra <amodra@gmail.com>
11222
11223 PR bootstrap/61583
11224 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11225 to zero on debug statements.
11226
11227 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11228
11229 PR target/60825
11230 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11231 Ignore third operand if present by marking qualifier_internal.
11232
11233 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11234
11235 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11236 vector extension.
11237 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11238 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11239 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11240 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11241 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11242 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11243 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11244 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11245 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11246 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11247 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11248 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11249 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11250 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11251 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11252 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11253 logic in GCC vector extensions
11254
11255 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11256 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11257 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11258 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11259 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11260 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11261 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11262 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11263 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11264 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11265
11266 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11267
11268 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11269 extensions.
11270
11271 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11272 (vget_low_s64): Use __GET_LOW macro.
11273 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11274 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11275 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11276 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11277 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11278
11279 (vcombine_s64): Use GCC vector extensions; remove cast.
11280 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11281 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11282 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11283 Fix type signature; remove cast.
11284
11285 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11286
11287 PR target/60825
11288 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11289 V1DFmode.
11290 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11291 add V1DFmode
11292 (BUILTIN_VD1): New.
11293 (BUILTIN_VD_RE): Remove.
11294 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11295 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11296 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11297 variant but not df.
11298 (vreinterpretv1df*, vreinterpret*v1df): New.
11299 (vreinterpretdf*, vreinterpret*df): Remove.
11300 * config/aarch64/aarch64-simd.md (aarch64_create,
11301 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11302 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11303 (VD1): New.
11304 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11305 (vcreate_f64): Remove cast, use v1df builtin.
11306 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11307 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11308 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11309 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11310 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11311 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11312 add range check using __builtin_aarch64_im_lane_boundsi.
11313 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11314 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11315 type signature, use gcc vector extensions.
11316 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11317 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11318 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11319 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11320 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11321 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11322 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11323 vreinterpret_u64_f64): Use v1df builtin not df.
11324
11325 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11326
11327 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11328 vector registers.
11329
11330 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11331
11332 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11333 priority directly.
11334
11335 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11336
11337 * loop-invariant.c (pre_check_invariant_p): New function.
11338 (find_invariant_insn): Call pre_check_invariant_p.
11339
11340 2014-06-22 Richard Henderson <rth@redhat.com>
11341
11342 PR target/61565
11343 * compare-elim.c (struct comparison): Add eh_note.
11344 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11345 a redundant comparison in a different EH region. Purge EH edges if
11346 necessary.
11347
11348 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11349
11350 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11351 (var_shift): Use it.
11352 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11353 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11354 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11355 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11356 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11357 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11358 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11359 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11360 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11361 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11362 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11363 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11364 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11365 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11366 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11367 *rotldi3_internal15be): Use the new attribute. Merge register and
11368 integer alternatives.
11369
11370 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11371
11372 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11373 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11374 split, *ashrdi3_internal3 and split): Delete, merge into...
11375 (ashr<mode>3): New expander.
11376 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11377 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11378
11379 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11380
11381 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11382 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11383 *rotldi3_internal3 and split): Delete, merge into...
11384 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11385 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11386 Use "rotlw" extended mnemonic.
11387
11388 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11389
11390 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11391 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11392 and split, *ashldi3_internal3 and split): Delete, merge into...
11393 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11394 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11395
11396 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11397
11398 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11399 (lshrsi3, two anonymous define_insns and define_splits,
11400 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11401 *lshrdi3_internal3 and split): Delete, merge into...
11402 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11403 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11404
11405 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11406
11407 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11408 Remove "O" alternative.
11409
11410 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11411
11412 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11413 (mips_move_from_gpr_cost): Likewise.
11414 (mips_register_move_cost): Update accordingly.
11415 (mips_secondary_reload_class): Remove name of in_p.
11416
11417 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11418
11419 PR target/61503
11420 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11421 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11422
11423 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11424
11425 * config/nios2/nios2.c: Include "builtins.h".
11426
11427 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11428
11429 * cgraph.h (tls_model_names): New variable.
11430 * print-tree.c (print_node): Simplify.
11431 * varpool.c (tls_model_names): New variable.
11432 (dump_varpool_node): Output tls model.
11433
11434 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11435
11436 * ipa-visibility.c (function_and_variable_visibility): Disable
11437 temporarily local aliases for some targets.
11438
11439 2014-06-20 Marek Polacek <polacek@redhat.com>
11440
11441 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11442 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11443 into SANITIZE_UNDEFINED.
11444 * doc/invoke.texi: Describe -fsanitize=bounds.
11445 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11446 functions created in the FEs.
11447 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11448 (expand_UBSAN_BOUNDS): New function.
11449 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11450 * internal-fn.h: Don't define internal functions here.
11451 * opts.c (common_handle_option): Add -fsanitize=bounds.
11452 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11453 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11454 * tree-core.h: Define internal functions here.
11455 (struct tree_base): Add ifn field.
11456 * tree-pretty-print.c: Include "internal-fn.h".
11457 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11458 * tree.c (get_callee_fndecl): Likewise.
11459 (build_call_expr_internal_loc): New function.
11460 * tree.def (CALL_EXPR): Update description.
11461 * tree.h (CALL_EXPR_IFN): Define.
11462 (build_call_expr_internal_loc): Declare.
11463 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11464 types.
11465 (ubsan_type_descriptor): Change bool parameter to enum
11466 ubsan_print_style. Adjust the code. Add handling of
11467 UBSAN_PRINT_ARRAY.
11468 (ubsan_expand_bounds_ifn): New function.
11469 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11470 (ubsan_build_overflow_builtin): Likewise.
11471 (instrument_bool_enum_load): Likewise.
11472 (ubsan_instrument_float_cast): Likewise.
11473 * ubsan.h (enum ubsan_print_style): New enum.
11474 (ubsan_expand_bounds_ifn): Declare.
11475 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11476
11477 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11478
11479 * config/rs6000/rs6000.md: Append `DONE' to preparation
11480 statements of `bswap' pattern splitters.
11481
11482 2014-06-20 Tom de Vries <tom@codesourcery.com>
11483
11484 * target.def (call_fusage_contains_non_callee_clobbers): Update
11485 definition.
11486 * doc/tm.texi: Regenerate.
11487
11488 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11489 Max Ostapenko <m.ostapenko@partner.samsung.com>
11490
11491 PR sanitizer/61547
11492 * asan.c (instrument_strlen_call): Fixed instrumentation of
11493 trailing byte.
11494
11495 2014-06-20 Martin Jambor <mjambor@suse.cz>
11496
11497 PR ipa/61540
11498 * ipa-prop.c (impossible_devirt_target): New function.
11499 (try_make_edge_direct_virtual_call): Use it, also instead of
11500 asserting.
11501
11502 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11503 Max Ostapenko <m.ostapenko@partner.samsung.com>
11504
11505 PR sanitizer/61530
11506 * asan.c (build_check_stmt): Add condition.
11507
11508 2014-06-20 Martin Jambor <mjambor@suse.cz>
11509
11510 PR ipa/61211
11511 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11512 expanded clones.
11513
11514 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11515
11516 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11517 Update comments.
11518 (VCONQ): Make comment more helpful.
11519 (VCON): Delete.
11520 * config/aarch64/aarch64-simd.md
11521 (aarch64_sqdmulh_lane<mode>):
11522 Use VCOND for operands 2. Update lane checking and flipping logic.
11523 (aarch64_sqrdmulh_lane<mode>): Likewise.
11524 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11525 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11526 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11527 attribute of operand 3 to VCOND.
11528 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11529 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11530 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11531 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11532 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11533 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11534 define_insn.
11535 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11536 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11537 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11538 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11539 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11540 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11541 operand to VCOND. Update lane flipping and bounds checking logic.
11542 (aarch64_sqdmlal2_lane<mode>): Likewise.
11543 (aarch64_sqdmlsl_lane<mode>): Likewise.
11544 (aarch64_sqdmull_lane<mode>): Likewise.
11545 (aarch64_sqdmull2_lane<mode>): Likewise.
11546 (aarch64_sqdmlal_laneq<mode>):
11547 Replace VCON usage with VCONQ.
11548 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11549 (aarch64_sqdmlal2_laneq<mode>): Emit
11550 aarch64_sqdmlal2_laneq<mode>_internal insn.
11551 Replace VCON with VCONQ.
11552 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11553 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11554 (aarch64_sqdmull_laneq<mode>): Emit
11555 aarch64_sqdmull_laneq<mode>_internal insn.
11556 Replace VCON with VCONQ.
11557 (aarch64_sqdmull2_laneq<mode>): Emit
11558 aarch64_sqdmull2_laneq<mode>_internal insn.
11559 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11560 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11561 of 3rd argument to int16x4_t.
11562 (vqdmlalh_lane_s16): Likewise.
11563 (vqdmlslh_lane_s16): Likewise.
11564 (vqdmull_high_lane_s16): Likewise.
11565 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11566 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11567 (vqdmlsl_lane_s16): Likewise.
11568 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11569 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11570 (vqdmlals_lane_s32): Likewise.
11571 (vqdmlsls_lane_s32): Likewise.
11572 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11573 (vqdmulls_lane_s32): Likewise.
11574 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11575 (vqdmlsl_lane_s32): Likewise.
11576 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11577 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11578 (vqrdmulhh_lane_s16): Likewise.
11579 (vqdmlsl_high_lane_s16): Likewise.
11580 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11581 (vqdmlsl_high_lane_s32): Likewise.
11582 (vqrdmulhs_lane_s32): Likewise.
11583
11584 2014-06-20 Tom de Vries <tom@codesourcery.com>
11585
11586 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11587 get_call_reg_set_usage.
11588
11589 2014-06-20 Tom de Vries <tom@codesourcery.com>
11590
11591 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11592 it contains all call_used_regs.
11593
11594 2014-06-20 Tom de Vries <tom@codesourcery.com>
11595
11596 * final.c (collect_fn_hard_reg_usage): Add and use variable
11597 function_used_regs.
11598
11599 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11600
11601 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11602 (set_init_priority, get_init_priority, set_fini_priority,
11603 get_fini_priority): New methods.
11604 * tree.c (init_priority_for_decl): Remove.
11605 (init_ttree): Do not initialize init priority.
11606 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11607 (decl_priority_info): Remove.
11608 (decl_init_priority_insert): Rewrite.
11609 (decl_fini_priority_insert): Rewrite.
11610 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11611 tree_priority_map_marked_p): Remove.
11612 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11613 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11614 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11615 not output priorities.
11616 (pack_ts_function_decl_value_fields): Likewise.
11617 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11618 not input priorities.
11619 (unpack_ts_function_decl_value_fields): Likewise.
11620 * symtab.c (symbol_priority_map): Declare.
11621 (init_priority_hash): Declare.
11622 (symtab_unregister_node): Unregister from priority hash, too.
11623 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11624 New methods.
11625 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11626 (symbol_priority_info): New function.
11627 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11628 New methods.
11629 * tree-core.h (tree_priority_map): Remove.
11630
11631 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11632
11633 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11634 0xff to uint64_t before shifting it up.
11635
11636 2014-06-20 Julian Brown <julian@codesourcery.com>
11637 Chung-Lin Tang <cltang@codesourcery.com>
11638
11639 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11640 TARGET_THUMB1_ONLY. Add comments.
11641
11642 2014-06-19 Tom de Vries <tom@codesourcery.com>
11643
11644 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11645 return type to void.
11646 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11647
11648 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11649
11650 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11651 as "move", from depends_on.
11652
11653 2014-06-19 Terry Guo <terry.guo@arm.com>
11654
11655 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11656 stage.
11657
11658 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11659
11660 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11661 Remove cr5.
11662 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11663
11664 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11665
11666 PR target/61550
11667 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11668 addresses here if reload in progress or completed.
11669
11670 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11671
11672 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11673 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11674 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11675 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11676 (mips_register_priority): New function that implements the target
11677 hook TARGET_REGISTER_PRIORITY.
11678 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11679 (mips_lra_p): Likewise for TARGET_LRA_P.
11680 (TARGET_REGISTER_PRIORITY): Define macro.
11681 (TARGET_SPILL_CLASS): Likewise.
11682 (TARGET_LRA_P): Likewise.
11683 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11684 classes.
11685 (REG_CLASS_NAMES): Likewise.
11686 (REG_CLASS_CONTENTS): Likewise.
11687 (BASE_REG_CLASS): Use M16_SP_REGS.
11688 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11689 New set attribute to enable alternatives depending on the register
11690 allocator used.
11691 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11692 (*lea64): Disable pattern for MIPS16.
11693 * config/mips/mips.opt (mlra): New option.
11694
11695 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11696
11697 * lra-constraints.c (base_to_reg): New function.
11698 (process_address): Use new function.
11699
11700 2014-06-18 Tom de Vries <tom@codesourcery.com>
11701
11702 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11703 * config/aarch64/aarch64.c
11704 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11705 (aarch64_emit_call_insn): New function.
11706 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11707 of emit_call_insn.
11708 * config/aarch64/aarch64.md (define_expand "call_internal")
11709 (define_expand "call_value_internal", define_expand "sibcall_internal")
11710 (define_expand "sibcall_value_internal"): New.
11711 (define_expand "call", define_expand "call_value")
11712 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11713 expand variant and aarch64_emit_call_insn.
11714
11715 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11716 Tom de Vries <tom@codesourcery.com>
11717
11718 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11719 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11720 Redefine to true.
11721 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11722 clobbers to CALL_INSN_FUNCTION_USAGE.
11723 (define_expand "sibcall_internal")
11724 (define_expand "sibcall_value_internal"): New.
11725 (define_expand "call", define_expand "call_value"): Add argument to
11726 arm_emit_call_insn.
11727 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11728 (define_expand "sibcall_value"): Use sibcall_value_internal and
11729 arm_emit_call_insn.
11730
11731 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11732
11733 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11734
11735 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11736
11737 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11738 __udivmoddi4.
11739
11740 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11741
11742 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11743 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11744 annotations. Fix DWARF information.
11745
11746 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11747
11748 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11749 __udivmoddi4, and fixups for negative operands.
11750
11751 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11752
11753 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11754
11755 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11756
11757 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11758 to __udivmoddi4.
11759
11760 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11761
11762 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11763 manipulation.
11764
11765 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11766
11767 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11768 describing register usage on function entry and exit.
11769
11770 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11771
11772 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11773 (__aeabi_ldivmod): Fix whitespace.
11774
11775 2014-06-18 Andreas Schwab <schwab@suse.de>
11776
11777 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11778 Remove blank line after @item.
11779
11780 2014-06-18 Richard Henderson <rth@redhat.com>
11781
11782 PR target/61545
11783 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11784
11785 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11786
11787 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11788 POST_MODIFY for neon loads and stores.
11789 (arm_print_operand): Output post-index register for neon loads and
11790 stores.
11791
11792 2014-06-18 Richard Biener <rguenther@suse.de>
11793
11794 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11795
11796 2014-06-18 Richard Biener <rguenther@suse.de>
11797
11798 * tree-pass.h (make_pass_dce_loop): Remove.
11799 * passes.def: Replace pass_dce_loop with pass_dce.
11800 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11801 changed free niter estimates and reset the scev cache.
11802 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11803 make_pass_dce_loop): Remove.
11804 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11805 (fini_copy_prop): Return whether something changed. Always
11806 let substitute_and_fold perform DCE and free niter estimates
11807 and reset the scev cache if so.
11808 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11809 (pass_data_copy_prop): Do not unconditionally schedule
11810 cleanup-cfg or update-ssa.
11811
11812 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11813
11814 PR tree-optimization/61518
11815 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11816 reduction var is used in reduction stmt or phi-function only.
11817
11818 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11819
11820 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11821
11822 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11823
11824 PR tree-optimization/61517
11825 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11826 whose rhs's first tree is the source expression instead of the
11827 expression itself.
11828 (find_bswap_or_nop): Likewise.
11829 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11830 gimple stmt whose rhs's first tree is the source. In the memory source
11831 case, move the stmt to be replaced close to one of the original load to
11832 avoid the problem of a store between the load and the stmt's original
11833 location.
11834 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11835 signature.
11836
11837 2014-06-18 Andreas Schwab <schwab@suse.de>
11838
11839 PR rtl-optimization/54555
11840 * postreload.c (move2add_use_add2_insn): Substitute
11841 STRICT_LOW_PART only if it is cheaper.
11842
11843 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11844
11845 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11846 Do not use unspec as call operand. Use memory_operand instead of
11847 memory_nox32_operand and add "m" operand constraint. Disable
11848 pattern for TARGET_X32.
11849 (*sibcall_pop_memory): Ditto.
11850 (*sibcall_value_memory): Ditto.
11851 (*sibcall_value_pop_memory): Ditto.
11852 (sibcall peepholes): Merge SImode and DImode patterns using
11853 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11854 Disable pattern for TARGET_X32. Check if eliminated register is
11855 really dead after call insn. Generate call RTX without unspec operand.
11856 (sibcall_value peepholes): Ditto.
11857 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11858 instead of memory_nox32_operand. Check if eliminated register is
11859 really dead after call insn. Generate call RTX without unspec operand.
11860 (sibcall_value_pop peepholes): Ditto.
11861 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11862
11863 2014-06-18 Terry Guo <terry.guo@arm.com>
11864
11865 PR target/61544
11866 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11867 reach the head.
11868
11869 2014-06-18 Olivier Hainque <hainque@adacore.com>
11870
11871 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11872 memorization of the end of block source location.
11873 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11874 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11875 end source location info we have on the block entry/exit code we
11876 generate.
11877
11878 2014-06-18 Richard Biener <rguenther@suse.de>
11879
11880 * common.opt (fssa-phiopt): New option.
11881 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11882 but not with -Og.
11883 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11884 * doc/invoke.texi (-fssa-phiopt): Document.
11885
11886 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11887
11888 * genattrtab.c (n_bypassed): New variable.
11889 (process_bypasses): Initialise n_bypassed.
11890 Count number of bypassed reservations.
11891 (make_automaton_attrs): Allocate space for bypassed reservations
11892 rather than number of bypasses.
11893
11894 2014-06-18 Richard Biener <rguenther@suse.de>
11895
11896 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11897 we propagated anything.
11898 (substitute_and_fold_dom_walker::before_dom_children): Something
11899 changed if we propagated into PHI arguments.
11900 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11901 we removed a stmt.
11902
11903 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11904
11905 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11906 vector case.
11907 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11908 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11909 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11910 Introduces alternative way of loads group permutaions.
11911 (vect_transform_grouped_load): Try alternative way of permutations.
11912
11913 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11914
11915 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11916 changed in ORT_TARGET region, don't jump to do_outer.
11917 (struct gimplify_adjust_omp_clauses_data): New type.
11918 (gimplify_adjust_omp_clauses_1): Adjust for data being
11919 a struct gimplify_adjust_omp_clauses_data pointer instead
11920 of tree *. Pass pre_p as a new argument to
11921 lang_hooks.decls.omp_finish_clause hook.
11922 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11923 splay_tree_foreach to pass both list_p and pre_p.
11924 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11925 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11926 gimplify_adjust_omp_clauses callers.
11927 * langhooks.c (lhd_omp_finish_clause): New function.
11928 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11929 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11930 * langhooks.h (struct lang_hooks_for_decls): Add a new
11931 gimple_seq * argument to omp_finish_clause hook.
11932 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11933 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11934 (scan_omp_parallel, lower_omp_for): When adding
11935 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11936 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11937 * tree-nested.c (convert_nonlocal_omp_clauses,
11938 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11939 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11940
11941 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11942
11943 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11944 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11945
11946 2014-06-17 Xinliang David Li <davidxl@google.com>
11947
11948 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11949 * passes.c (pass_init_dump_file): Do not set initialize
11950 flag to false unconditionally.
11951
11952 2014-06-17 Richard Biener <rguenther@suse.de>
11953
11954 * genopinit.c (main): Use vec<>::qsort method.
11955 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11956 Likewise.
11957 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11958
11959 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11960
11961 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11962 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11963 (mips_move_to_gpr_cost): Remove ST_REGS case.
11964 (mips_move_from_gpr_cost): Likewise.
11965 (mips_register_move_cost): Likewise.
11966 (mips_secondary_reload_class): Likewise.
11967
11968 2014-06-17 Richard Biener <rguenther@suse.de>
11969
11970 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11971 (pass_all_optimizations): Move 3rd copy-prop pass from after
11972 fre to before ifcombine/phiopt.
11973
11974 2014-06-17 Richard Biener <rguenther@suse.de>
11975
11976 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11977 and allow all blocks to be forwarders.
11978
11979 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11980
11981 PR target/61483
11982 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11983 variable 'size'; calculate 'size' right in the front; use
11984 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11985 pcum->aapcs_stack_words.
11986
11987 2014-06-17 Nick Clifton <nickc@redhat.com>
11988
11989 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11990 (umulhi3, mulsidi3, umulsidi3): Likewise.
11991
11992 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11993
11994 PR middle-end/61508
11995 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11996 check for section name.
11997
11998 2014-06-17 Richard Biener <rguenther@suse.de>
11999
12000 * tree-ssa-propagate.c: Include domwalk.h.
12001 (substitute_and_fold): Outline main worker into a domwalker ...
12002 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12003 Schedule stmts we can fully propagate for removal. Remove
12004 poor-mans DCE.
12005 (substitute_and_fold): Apply a dominator walk to perform
12006 substitution. Process stmts scheduled for removal here.
12007
12008 2014-06-17 Richard Biener <rguenther@suse.de>
12009
12010 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12011 of PHI node moving.
12012
12013 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12014
12015 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12016 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12017 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12018 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12019 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12020 TARGET_HARD_FLOAT.
12021 (get_fpscr) : Likewise.
12022
12023 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12024
12025 PR rtl-optimization/61325
12026 * lra-constraints.c (valid_address_p): Add forward declaration.
12027 (simplify_operand_subreg): Check address validity before and after
12028 alter_reg of memory subreg.
12029
12030 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12031
12032 * config/i386/i386.c (decide_alg): Correctly handle
12033 maximum size of stringop algorithm.
12034
12035 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12036
12037 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12038
12039 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12040
12041 PR rtl-optimization/61522
12042 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12043
12044 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12045
12046 Revert:
12047 * symtab.c (symtab_node::reset_section): New method.
12048 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12049 for localization.
12050 * cgraph.h (reset_section): Declare.
12051 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12052 do not consider comdat locals.
12053 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12054 for new symbol.
12055 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12056 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12057 reset sections of symbols dragged out of the comdats.
12058 (function_and_variable_visibility): Reset sections of
12059 localized symbols.
12060
12061 2014-06-16 Richard Biener <rguenther@suse.de>
12062
12063 PR tree-optimization/61482
12064 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12065 [-INF(OVF), +INF(OVF)] range.
12066
12067 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12068
12069 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12070 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12071 handling 32-bit multiplication.
12072
12073 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12074
12075 PR middle-end/61430
12076 * lra-lives.c (process_bb_lives): Skip creating copy during
12077 insn scan when src/dest has constrained to same regno.
12078
12079 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12080
12081 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12082 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12083
12084 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12085
12086 * asan.c (check_func): New function.
12087 (maybe_create_ssa_name): Likewise.
12088 (build_check_stmt_with_calls): Likewise.
12089 (use_calls_p): Likewise.
12090 (report_error_func): Change interface.
12091 (build_check_stmt): Allow non-integer lengths; add support
12092 for new parameter.
12093 (asan_instrument): Likewise.
12094 (instrument_mem_region_access): Moved code to build_check_stmt.
12095 (instrument_derefs): Likewise.
12096 (instrument_strlen_call): Likewise.
12097 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12098 * doc/invoke.texi: Describe new parameter.
12099 * params.def: Define new parameter.
12100 * params.h: Likewise.
12101 * sanitizer.def: Describe new builtins.
12102
12103 2014-06-16 Richard Biener <rguenther@suse.de>
12104
12105 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12106 Make all defs available at the end.
12107 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12108
12109 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12110
12111 PR plugins/45078
12112 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12113
12114 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12115
12116 PR bootstrap/61516
12117 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12118 initialization. Replace remaining use of uid.
12119
12120 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12121
12122 * c-family/c-common.c (handle_tls_model_attribute): Use
12123 set_decl_tls_model.
12124 * c-family/c-common.c (handle_tls_model_attribute): Use
12125 set_decl_tls_model.
12126 * cgraph.h (struct varpool_node): Add tls_model.
12127 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12128 * tree.h (DECL_TLS_MODEL): Update.
12129 (DECL_THREAD_LOCAL_P): Check that variable is static.
12130 (decl_tls_model): Declare.
12131 (set_decl_tls_model): Declare.
12132 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12133 set symbol prorperties.
12134 (get_emutls_init_templ_addr): Cleanup.
12135 (new_emutls_decl): Update.
12136 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12137 (lto_input_varpool_node): Likewise.
12138 * lto-streamer-out.c (hash_tree): Likewise.
12139 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12140 not stream DECL_TLS_MODEL.
12141 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12142 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12143
12144 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12145
12146 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12147
12148 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12149
12150 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12151 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12152 lists.
12153 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12154 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12155 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12156 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12157 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12158 (df_get_artificial_defs, df_get_artificial_uses)
12159 (df_single_def, df_single_use): Update accordingly.
12160 (df_refs_chain_dump): Take the first element in a linked list as
12161 parameter, rather than a pointer to an array of pointers.
12162 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12163 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12164 (df_chain_create_bb_process_use): Likewise.
12165 (df_md_bb_local_compute_process_def): Likewise.
12166 * fwprop.c (process_defs, process_uses): Likewise.
12167 (register_active_defs, update_uses): Likewise.
12168 (forward_propagate_asm): Update for new df_ref linking.
12169 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12170 (df_null_ref_rec, df_null_mw_rec): Likewise.
12171 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12172 explicitly.
12173 (df_scan_free_bb_info): Remove check for null artificial_defs.
12174 (df_install_ref_incremental): Adjust for new df_ref linking.
12175 Use a single-element insertion rather than a full sort.
12176 (df_ref_chain_delete_du_chain): Take the first element
12177 in a linked list as parameter, rather than a pointer to an array of
12178 pointers.
12179 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12180 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12181 (df_insn_info_delete): Remove check for null defs and call to
12182 df_scan_free_mws_vec.
12183 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12184 null rather than df_null_*_rec.
12185 (df_insn_rescan_debug_internal): Likewise, and update null
12186 checks in the same way. Remove check for null defs.
12187 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12188 Move a single element rather doing a full sort.
12189 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12190 linking.
12191 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12192 Initialize df_ref and df_mw_hardreg lists to null rather than
12193 df_null_*_rec.
12194 (df_ref_compare): Take df_refs as parameter, transferring the
12195 old interface to...
12196 (df_ref_ptr_compare): ...this new function.
12197 (df_sort_and_compress_refs): Update accordingly.
12198 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12199 old interface to...
12200 (df_mw_ptr_compare): ...this new function.
12201 (df_sort_and_compress_mws): Update accordingly.
12202 (df_install_refs, df_install_mws): Return a linked list rather than
12203 an array of pointers.
12204 (df_refs_add_to_chains): Assert that old lists are empty rather
12205 than freeing them.
12206 (df_insn_refs_verify): Don't handle null defs speciailly.
12207 * web.c (union_match_dups): Update for new df_ref linking.
12208
12209 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12210
12211 * df.h (df_ref_create, df_ref_remove): Delete.
12212 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12213 (df_ref_remove): Likewise.
12214
12215 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12216
12217 * df.h (df_single_def, df_single_use): New functions.
12218 * ira.c (find_moveable_pseudos): Use them.
12219
12220 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12221
12222 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12223 * df-problems.c (df_note_bb_compute): Use it.
12224 * regstat.c (regstat_bb_compute_ri): Likewise.
12225
12226 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12227
12228 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12229 * cse.c (cse_extended_basic_block): Use them.
12230 * dce.c (mark_artificial_use): Likewise.
12231 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12232 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12233 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12234 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12235 (df_simulate_initialize_backwards): Likewise.
12236 (df_simulate_finalize_backwards): Likewise.
12237 (df_simulate_initialize_forwards): Likewise.
12238 (df_md_simulate_artificial_defs_at_top): Likewise.
12239 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12240 * regrename.c (init_rename_info): Likewise.
12241 * regstat.c (regstat_bb_compute_ri): Likewise.
12242 (regstat_bb_compute_calls_crossed): Likewise.
12243
12244 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12245
12246 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12247 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12248 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12249 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12250 * combine.c (create_log_links): Likewise.
12251 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12252 (try_eliminate_compare): Likewise.
12253 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12254 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12255 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12256 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12257 (word_dce_process_block, dce_process_block): Likewise.
12258 * ddg.c (def_has_ccmode_p): Likewise.
12259 * df-core.c (df_bb_regno_first_def_find): Likewise.
12260 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12261 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12262 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12263 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12264 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12265 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12266 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12267 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12268 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12269 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12270 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12271 * fwprop.c (local_ref_killed_between_p): Likewise.
12272 (all_uses_available_at, free_load_extend): Likewise.
12273 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12274 * hw-doloop.c (scan_loop): Likewise.
12275 * ifcvt.c (dead_or_predicable): Likewise.
12276 * init-regs.c (initialize_uninitialized_regs): Likewise.
12277 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12278 (process_bb_node_lives): Likewise.
12279 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12280 (find_moveable_pseudos): Likewise.
12281 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12282 * recog.c (peep2_find_free_register): Likewise.
12283 * ree.c (get_defs): Likewise.
12284 * regstat.c (regstat_bb_compute_ri): Likewise.
12285 (regstat_bb_compute_calls_crossed): Likewise.
12286 * sched-deps.c (find_inc, find_mem): Likewise.
12287 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12288 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12289 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12290 (prepare_shrink_wrap): Likewise.
12291 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12292 * web.c (union_defs, pass_web::execute): Likewise.
12293 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12294 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12295
12296 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12297
12298 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12299 to inheritance pseudos.
12300 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12301
12302 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12303
12304 PR target/61415
12305 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12306 (BU_MISC_2): Rename to ...
12307 (BU_LDBL128_2): ... this.
12308 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12309 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12310 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12311 RS6000_BTM_LDBL128.
12312 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12313 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12314 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12315 (unpacktf_1): Likewise.
12316 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12317 (__builtin_longdouble_dw1): Likewise.
12318 * doc/sourcebuild.texi (longdouble128): Document.
12319
12320 2014-06-13 Jeff Law <law@redhat.com>
12321
12322 PR rtl-optimization/61094
12323 PR rtl-optimization/61446
12324 * ree.c (combine_reaching_defs): Get the mode for the copy from
12325 the extension insn rather than the defining insn.
12326
12327 2014-06-13 Dehao Chen <dehao@google.com>
12328
12329 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12330
12331 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12332
12333 * doc/install.texi (--enable-linker-plugin-configure-flags)
12334 (--enable-linker-plugin-flags): Document new flags.
12335
12336 2014-06-13 Martin Jambor <mjambor@suse.cz>
12337
12338 PR ipa/61186
12339 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12340 cache_token if returning early.
12341
12342 2014-06-13 Nick Clifton <nickc@redhat.com>
12343
12344 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12345 requested alignment is active.
12346 (LABEL_ALIGN): Likewise.
12347 (LOOP_ALIGN): Likewise.
12348
12349 2014-06-13 Richard Biener <rguenther@suse.de>
12350
12351 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12352 Rewrite to propagate the VN result into all uses where
12353 possible and to remove stmts becoming dead because of that.
12354 (eliminate): Generalize stmt removal handling, remove in
12355 reverse dominator order to support proper debug stmt
12356 generation. Update stmts before removing stmts.
12357 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12358
12359 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12360
12361 PR tree-optimization/61375
12362 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12363 symbolic number cannot be represented in an uint64_t.
12364 (find_bswap_or_nop_1): Likewise.
12365
12366 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12367
12368 * symtab.c (symtab_node::reset_section): New method.
12369 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12370 for localization.
12371 * cgraph.h (reset_section): Declare.
12372 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12373 do not consider comdat locals.
12374 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12375 for new symbol.
12376 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12377 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12378 reset sections of symbols dragged out of the comdats.
12379 (function_and_variable_visibility): Reset sections of
12380 localized symbols.
12381
12382 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12383
12384 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12385 to use symtab and decl_binds_to_current_def_p
12386 * tree-vectorizer.c (increase_alignment): Increase alignment
12387 of alias target, too.
12388
12389 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12390
12391 PR middle-end/61486
12392 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12393 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12394 if outer combined construct is distribute.
12395 (gimplify_omp_for): For OMP_DISTRIBUTE set
12396 gimplify_omp_ctxp->distribute.
12397 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12398 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12399 mapping into decl map.
12400
12401 2014-06-12 Jason Merrill <jason@redhat.com>
12402
12403 * common.opt (fabi-version): Change default to 0.
12404
12405 2014-06-12 Jason Merrill <jason@redhat.com>
12406
12407 * toplev.c (process_options): Reject -fabi-version=1.
12408
12409 2014-06-12 Jeff Law <law@redhat.com>
12410
12411 PR tree-optimization/61009
12412 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12413 value when we stop processing a block due to problematic PHIs.
12414
12415 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12416
12417 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12418 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12419 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12420 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12421 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12422 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12423 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12424 are not in the spec.
12425
12426 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12427
12428 PR target/59843
12429 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12430 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12431 Support V1DFmode.
12432
12433 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12434
12435 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12436
12437 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12438
12439 PR target/61443
12440 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12441 loading from address spaces.
12442
12443 2014-06-12 Martin Liska <mliska@suse.cz>
12444
12445 PR ipa/61462
12446 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12447 statement is reachable.
12448
12449 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12450
12451 * symtab.c (section_hash): New hash.
12452 (symtab_unregister_node): Clear section before freeing.
12453 (hash_section_hash_entry): New haser.
12454 (eq_sections): New function.
12455 (symtab_node::set_section_for_node): New method.
12456 (set_section_1): Update.
12457 (symtab_node::set_section): Take string instead of tree as parameter.
12458 (symtab_resolve_alias): Update.
12459 * cgraph.h (section_hash_entry_d): New structure.
12460 (section_hash_entry): New typedef.
12461 (cgraph_node): Change comdat_group_ to x_comdat_group,
12462 change section_ to x_section and turn into section_hash_entry;
12463 update accestors; put set_section_for_node offline.
12464 * tree.c (decl_section_name): Turn into string.
12465 (set_decl_section_name): Change parameter to be string.
12466 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12467 * sdbout.c (sdbout_one_type): Update.
12468 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12469 * varasm.c (IN_NAMED_SECTION, get_named_section,
12470 resolve_unique_section, hot_function_section, get_named_text_section,
12471 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12472 make_decl_rtl, default_unique_section): Update.
12473 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12474 (c6x_elf_unique_section): Update.
12475 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12476 * config/pa/pa.c (pa_function_section): Update.
12477 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12478 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12479 * config/arc/arc.c (arc_in_small_data_p): Update.
12480 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12481 * config/mcore/mcore.c (mcore_unique_section): Update.
12482 * config/mips/mips.c (mips16_build_function_stub): Update.
12483 (mips16_build_call_stub): Update.
12484 (mips_function_rodata_section): Update.
12485 (mips_in_small_data_p): Update.
12486 * config/score/score.c (score_in_small_data_p): Update.
12487 * config/rx/rx.c (rx_in_small_data): Update.
12488 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12489 (rs6000_xcoff_asm_named_section): Update.
12490 (rs6000_xcoff_unique_section): Update.
12491 * config/frv/frv.c (frv_string_begins_with): Update.
12492 (frv_in_small_data_p): Update.
12493 * config/v850/v850.c (v850_encode_data_area): Update.
12494 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12495 (bfin_handle_l1_data_attribute): Update.
12496 (bfin_handle_l2_attribute): Update.
12497 * config/mep/mep.c (mep_unique_section): Update.
12498 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12499 Update.
12500 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12501 (h8300_handle_tiny_data_attribute): Update.
12502 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12503 (m32r_in_small_data_p): Update.
12504 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12505 * config/i386/i386.c (ix86_in_large_data_p): Update.
12506 * config/i386/winnt.c (i386_pe_unique_section): Update.
12507 * config/darwin.c (darwin_function_section): Update.
12508 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12509 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12510 (new_emutls_decl): Update.
12511 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12512 input_varpool_node): Update.
12513 (ead_string_cst): Turn to ...
12514 (read_string): ... this one.
12515 * dwarf2out.c (secname_for_decl): Update.
12516 * asan.c (asan_protect_global): Update.
12517
12518 2014-06-11 DJ Delorie <dj@redhat.com>
12519
12520 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12521 cache lines.
12522 * config/rx/rx.c (rx_option_override): Likewise.
12523 (rx_align_for_label): Likewise.
12524
12525 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12526
12527 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12528
12529 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12530 prototype.
12531
12532 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12533
12534 * common.md: New file.
12535 * doc/md.texi: Update description of generic, machine-independent
12536 constraints.
12537 * config/s390/constraints.md (e): Delete.
12538 * Makefile.in (md_file): Include common.md.
12539 * config/m32c/t-m32c (md_file): Likewise.
12540 * genpreds.c (general_mem): New array.
12541 (generic_constraint_letters): Remove constraints now defined by
12542 common.md.
12543 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12544 Allow the first character to be '<' or '>' as well.
12545 * genoutput.c (general_mem): New array.
12546 (indep_constraints): Remove constraints now defined by common.md.
12547 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12548 Remove special handling of 'm'.
12549 * ira-costs.c (record_reg_classes): Remove special handling of
12550 constraints now defined by common.md.
12551 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12552 * ira-lives.c (single_reg_class): Likewise.
12553 (ira_implicitly_set_insn_hard_regs): Likewise.
12554 * lra-constraints.c (reg_class_from_constraints): Likewise.
12555 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12556 * postreload.c (reload_cse_simplify_operands): Likewise.
12557 * reload.c (push_secondary_reload, scratch_reload_class)
12558 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12559 * reload1.c (maybe_fix_stack_asms): Likewise.
12560 * targhooks.c (default_secondary_reload): Likewise.
12561 * stmt.c (parse_output_constraint): Likewise.
12562 * recog.c (preprocess_constraints): Likewise.
12563 (constrain_operands, peep2_find_free_register): Likewise.
12564 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12565 must be handled specially.
12566
12567 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12568
12569 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12570 * genpreds.c (have_const_dbl_constraints): Delete.
12571 (add_constraint): Don't set it.
12572 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12573 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12574 constraints using the lookup_constraint logic.
12575 * ira-lives.c (single_reg_class): Likewise.
12576 * ira.c (ira_setup_alts): Likewise.
12577 * lra-constraints.c (process_alt_operands): Likewise.
12578 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12579 * reload.c (find_reloads): Likewise.
12580
12581 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12582
12583 * genpreds.c (const_int_start, const_int_end): New variables.
12584 (choose_enum_order): Output CONST_INT constraints before memory
12585 constraints.
12586 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12587 Add CT_CONST_INT.
12588 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12589 * ira.c (ira_setup_alts): Likewise.
12590 * lra-constraints.c (process_alt_operands): Likewise.
12591 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12592 * reload.c (find_reloads): Likewise.
12593
12594 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12595
12596 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12597 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12598 * recog.c (preprocess_constraints): Update accordingly.
12599
12600 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12601
12602 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12603 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12604 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12605 * genpreds.c (print_type_tree): New function.
12606 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12607 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12608 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12609 Write out enum constraint_type and get_constraint_type.
12610 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12611 constraint_num rather than a constraint string.
12612 (satisfies_address_constraint_p): Likewise.
12613 (reg_class_from_constraints): Avoid old constraint macros.
12614 (process_alt_operands, process_address_1): Likewise.
12615 (curr_insn_transform): Likewise.
12616 * ira-costs.c (record_reg_classes): Likewise.
12617 (record_operand_costs): Likewise.
12618 * ira-lives.c (single_reg_class): Likewise.
12619 (ira_implicitly_set_insn_hard_regs): Likewise.
12620 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12621 * postreload.c (reload_cse_simplify_operands): Likewise.
12622 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12623 (constrain_operands, peep2_find_free_register): Likewise.
12624 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12625 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12626 * reload1.c (maybe_fix_stack_asms): Likewise.
12627 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12628 * targhooks.c (default_secondary_reload): Likewise.
12629 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12630 to EXTRA_CONSTRAINT_STR.
12631 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12632
12633 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12634
12635 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12636 (write_constraint_satisfied_p_array): ...this new function.
12637 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12638 an array.
12639 (write_insn_preds_c): Update accordingly.
12640
12641 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12642
12643 * genpreds.c (write_lookup_constraint): Rename to...
12644 (write_lookup_constraint_1): ...this.
12645 (write_lookup_constraint_array): New function.
12646 (write_tm_preds_h): Define lookup_constraint as an inline function
12647 that uses write_lookup_constraint_array where possible.
12648 (write_insn_preds_c): Update for the changes above.
12649
12650 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12651
12652 * doc/md.texi (regclass_for_constraint): Rename to...
12653 (reg_class_for_constraint): ...this.
12654 * genpreds.c (num_constraints, enum_order, register_start)
12655 (register_end, satisfied_start, memory_start, memory_end)
12656 (address_start, address_end): New variables.
12657 (add_constraint): Count the number of constraints.
12658 (choose_enum_order): New function.
12659 (write_enum_constraint_num): Iterate over enum_order.
12660 (write_regclass_for_constraint): Rename to...
12661 (write_reg_class_for_constraint_1): ...this and update output
12662 accordingly.
12663 (write_constraint_satisfied_p): Rename to...
12664 (write_constraint_satisfied_p_1): ...this and update output
12665 accordingly. Do nothing if all extra constraints are register
12666 constraints.
12667 (write_insn_extra_memory_constraint): Delete.
12668 (write_insn_extra_address_constraint): Delete.
12669 (write_range_function): New function.
12670 (write_tm_preds_h): Define constraint_satisfied_p and
12671 reg_class_for_constraint as inline functions that do a range check
12672 before calling the out-of-line function. Use write_range_function
12673 to implement insn_extra_{register,memory,address}_constraint,
12674 the first of which is new.
12675 (write_insn_preds_c): Update after above changes to write_* functions.
12676 (main): Call choose_enum_order.
12677
12678 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12679
12680 PR tree-optimization/61306
12681 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12682 expression instead of its size.
12683 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12684 false to prevent optimization when the result is unpredictable due to
12685 arithmetic right shift of signed type with highest byte is set.
12686 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12687 (init_symbolic_number): Likewise.
12688 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12689 when the result is unpredictable due to sign extension.
12690
12691 2014-06-11 Terry Guo <terry.guo@arm.com>
12692
12693 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12694 (*thumb1_addsi3): Ditto.
12695 (*thumb_subdi3): Ditto.
12696 (thumb1_subsi3_insn): Ditto.
12697 (*thumb_mulsi3): Ditto.
12698 (*thumb_mulsi3_v6): Ditto.
12699 (*thumb1_andsi3_insn): Ditto.
12700 (thumb1_bicsi3): Ditto.
12701 (*thumb1_iorsi3_insn): Ditto.
12702 (*thumb1_xorsi3_insn): Ditto.
12703 (*thumb1_ashlsi3): Ditto.
12704 (*thumb1_ashrsi3): Ditto.
12705 (*thumb1_lshrsi3): Ditto.
12706 (*thumb1_rotrsi3): Ditto.
12707 (*thumb1_negdi2): Ditto.
12708 (*thumb1_negsi2): Ditto.
12709 (*thumb1_abssi2): Ditto.
12710 (*thumb1_neg_abssi2): Ditto.
12711 (*thumb1_one_cmplsi2): Ditto.
12712 (*thumb1_zero_extendhisi2): Ditto.
12713 (*thumb1_zero_extendqisi2): Ditto.
12714 (*thumb1_zero_extendqisi2_v6): Ditto.
12715 (thumb1_extendhisi2): Ditto.
12716 (thumb1_extendqisi2): Ditto.
12717 (*thumb1_movdi_insn): Ditto.
12718 (*thumb1_movsi_insn): Ditto.
12719 (*thumb1_movhi_insn): Ditto.
12720 (thumb_movhi_clobber): Ditto.
12721 (*thumb1_movqi_insn): Ditto.
12722 (*thumb1_movhf): Ditto.
12723 (*thumb1_movsf_insn): Ditto.
12724 (*thumb_movdf_insn): Ditto.
12725 (movmem12b): Ditto.
12726 (movmem8b): Ditto.
12727 (cbranchqi4): Ditto.
12728 (cbranchsi4_insn): Ditto.
12729 (cbranchsi4_scratch): Ditto.
12730 (*negated_cbranchsi4): Ditto.
12731 (*tbit_cbranch): Ditto.
12732 (*tlobits_cbranch): Ditto.
12733 (*tstsi3_cbranch): Ditto.
12734 (*cbranchne_decr1): Ditto.
12735 (*addsi3_cbranch): Ditto.
12736 (*addsi3_cbranch_scratch): Ditto.
12737 (*thumb_cmpdi_zero): Ditto.
12738 (cstoresi_eq0_thumb1): Ditto.
12739 (cstoresi_ne0_thumb1): Ditto.
12740 (*cstoresi_eq0_thumb1_insn): Ditto.
12741 (*cstoresi_ne0_thumb1_insn): Ditto.
12742 (cstoresi_nltu_thumb1): Ditto.
12743 (cstoresi_ltu_thumb1): Ditto.
12744 (thumb1_addsi3_addgeu): Ditto.
12745 (*thumb_jump): Ditto.
12746 (*call_reg_thumb1_v5): Ditto.
12747 (*call_reg_thumb1): Ditto.
12748 (*call_value_reg_thumb1_v5): Ditto.
12749 (*call_value_reg_thumb1): Ditto.
12750 (*call_insn): Ditto.
12751 (*call_value_insn): Ditto.
12752 (thumb1_casesi_internal_pic): Ditto.
12753 (thumb1_casesi_dispatch): Ditto.
12754 (*thumb1_indirect_jump): Ditto.
12755 (prologue_thumb1_interwork): Ditto.
12756 (*epilogue_insns): Ditto.
12757 (consttable_1): Ditto.
12758 (consttable_2): Ditto.
12759 (tablejump): Ditto.
12760 (*thumb1_tablejump): Ditto.
12761 (thumb_eh_return): Ditto.
12762 (define_peephole2): Two of them are thumb1 only and got moved into
12763 new file thumb1.md.
12764 (define_split): Six of them are thumb1 only and got moved into new
12765 file thumb1.md.
12766 * config/arm/thumb1.md: New file comprised of above thumb1 only
12767 patterns.
12768
12769 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12770
12771 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12772 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12773 dependencies.
12774 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12775 (aarch64_crc_builtin_datum): New struct.
12776 (aarch64_crc_builtin_data): New.
12777 (aarch64_init_crc32_builtins): New function.
12778 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12779 (aarch64_crc32_expand_builtin): New.
12780 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12781 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12782 __ARM_FEATURE_CRC32 when appropriate.
12783 (TARGET_CRC32): Define.
12784 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12785 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12786 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12787 (aarch64_<crc_variant>): New pattern.
12788 * config/aarch64/arm_acle.h: New file.
12789 * config/aarch64/iterators.md (CRC): New int iterator.
12790 (crc_variant, crc_mode): New int attributes.
12791 * doc/aarch64-acle-intrinsics.texi: New file.
12792 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12793 Include aarch64-acle-intrinsics.texi.
12794
12795 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12796
12797 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12798 check for stores group of length 3.
12799 (vect_permute_store_chain): New permutations for stores group of
12800 length 3.
12801 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12802 of vec_perm_shuffle for the new permutations.
12803
12804 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12805
12806 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12807 table rewriting temporarily on targets not supporting ONE_ONLY.
12808
12809 2014-06-11 Richard Biener <rguenther@suse.de>
12810
12811 PR middle-end/61437
12812 Revert
12813 2014-06-04 Richard Biener <rguenther@suse.de>
12814
12815 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12816 TREE_PUBLIC and DECL_EXTERNAL decls.
12817
12818 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12819
12820 * varasm.c (set_implicit_section): New function.
12821 (resolve_unique_section): Use it to set implicit section
12822 for aliases, too.
12823 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12824 (default_function_section): Likewise.
12825 (decl_binds_to_current_def_p): Constify argument.
12826 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12827 * asan.c (asan_protect_global): Use
12828 symtab_get_node (decl)->implicit_section.
12829 * symtab.c (dump_symtab_base): Dump implicit sections.
12830 (verify_symtab_base): Verify sanity of sectoins and comdats.
12831 (symtab_resolve_alias): Alias share the section of its target.
12832 (set_section_1): New function.
12833 (symtab_node::set_section): Move here, recurse to aliases.
12834 (verify_symtab): Check for duplicated symtab lists.
12835 * tree-core.h (implicit_section_name_p): Remove.
12836 * tree-vect-data-refs.c: Include varasm.h.
12837 (vect_can_force_dr_alignment_p): Fix conditional on when
12838 decl bints to current definition; use
12839 symtab_get_node (decl)->implicit_section.
12840 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12841 * cgraph.h (struct symtab_node): Add implicit_section.
12842 (set_section): Rename to ...
12843 (set_section_for_node): ... this one.
12844 (set_section): Declare.
12845 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12846 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12847 input_overwrite_node, input_varpool_node): Stream implicit_section.
12848 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12849 removal; it will fail in LTO.
12850
12851 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12852
12853 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12854 Change second alternative type to f_mcr.
12855 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12856 and 12th alternatives' types to f_mcr and f_mrc.
12857 (*movdi_aarch64): Same for 12th and 13th alternatives.
12858 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12859 (aarch64_movtilow_tilow): Change type to fmov.
12860
12861 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12862
12863 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12864 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12865
12866 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12867
12868 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12869 New expander.
12870 (aarch64_sqrdmulh_lane<mode>): Likewise.
12871 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12872 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12873 (aarch64_sqdmulh_laneq<mode>): New expander.
12874 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12875 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12876 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12877 (aarch64_sqdmulh_lane<mode>): New expander.
12878 (aarch64_sqrdmulh_lane<mode>): Likewise.
12879 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12880 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12881 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12882 (aarch64_sqdmlal_laneq<mode>): Likewise.
12883 (aarch64_sqdmlsl_lane<mode>): Likewise.
12884 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12885 (aarch64_sqdmlal2_lane<mode>): Likewise.
12886 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12887 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12888 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12889 (aarch64_sqdmull_lane<mode>): Likewise.
12890 (aarch64_sqdmull_laneq<mode>): Likewise.
12891 (aarch64_sqdmull2_lane<mode>): Likewise.
12892 (aarch64_sqdmull2_laneq<mode>): Likewise.
12893
12894 2014-06-10 Richard Biener <rguenther@suse.de>
12895
12896 PR tree-optimization/61438
12897 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12898 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12899 insertion of IVs if running PRE.
12900 (eliminate): Adjust.
12901 (pass_pre::execute): Likewise.
12902 (pass_fre::execute): Likewise.
12903
12904 2014-06-10 Richard Biener <rguenther@suse.de>
12905
12906 PR middle-end/61456
12907 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12908 Do not use the main variant for the type comparison.
12909 (ncr_compar): Likewise.
12910 (nonoverlapping_component_refs_p): Likewise.
12911
12912 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12913
12914 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12915 REG_CFA_RESTORE mode.
12916
12917 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12918
12919 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12920 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12921 expand_vec_perm_pblendv.
12922
12923 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12924
12925 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12926 available.
12927 Simplify description of __crc32d and __crc32cd intrinsics.
12928 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12929 availability.
12930
12931 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12932
12933 PR lto/61334
12934 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12935 * config.in: Regenerate.
12936 * configure: Likewise.
12937
12938 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12939
12940 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12941 and public vars.
12942 (intersect_static_var_sets): Remove.
12943 (propagate): Do not prune local statics.
12944
12945 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12946
12947 PR fortran/60928
12948 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12949 Set lastprivate_firstprivate even if omp_private_outer_ref
12950 langhook returns true.
12951 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12952 langhook, call unshare_expr on new_var and call
12953 build_outer_var_ref to get the last argument.
12954
12955 2014-06-10 Marek Polacek <polacek@redhat.com>
12956
12957 PR c/60988
12958 * doc/extend.texi: Add cindex for transparent_union.
12959
12960 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12961
12962 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12963 init_symbolic_number ().
12964
12965 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12966
12967 PR middle-end/61141
12968 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12969 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12970 (verify_rtl_sharing): Likewise.
12971
12972 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12973
12974 PR c++/54442
12975 * tree.c (build_qualified_type): Use a canonical type for
12976 TYPE_CANONICAL.
12977
12978 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12979
12980 * config/arm/arm-modes.def: Remove XFmode.
12981
12982 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12983
12984 PR target/61062
12985 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12986 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12987 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12988 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12989 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12990 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12991 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12992 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12993 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12994
12995 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12996
12997 * tree-core.h (tree_decl_with_vis): Remove section_name.
12998
12999 2014-06-09 Kito Cheng <kito@0xlab.org>
13000
13001 * ira.c (ira): Don't call init_caller_save if LRA enabled
13002 since LRA use its own infrastructure to handle that.
13003
13004 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13005
13006 * symtab.c (dump_symtab_base): Update dumping.
13007 (symtab_make_decl_local): Clear only DECL_COMDAT.
13008 * tree-vect-data-refs.c (Check that variable is static before
13009 tampering with sections.
13010 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13011 (cgraph_create_virtual_clone): Likewise.
13012 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13013 (decl_section_name, set_decl_section_name): New accessors.
13014 (find_decls_types_r): Do not walk section name
13015 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13016 (decl_comdat_group, decl_comdat_group_id): Constify.
13017 (decl_section_name, set_decl_section_name): Update.
13018 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13019 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13020 (cgraph_make_node_local_1): Clear section and comdat group.
13021 * cgraph.h (set_comdat_group): Sanity check.
13022 (get_section, set_section): New.
13023 * ipa-comdats.c (ipa_comdats): Use get_section.
13024 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13025 * lto-streamer-out.c: Do not follow section names.
13026 * c-family/c-common.c (handle_section_attribute): Update.
13027 * lto-cgraph.c (lto_output_node): Output section.
13028 (lto_output_varpool_node): Likewise.
13029 (read_comdat_group): Rename to ...
13030 (read_identifier): ... this one.
13031 (read_string_cst): New function.
13032 (input_node, input_varpool_node): Input section names.
13033 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13034 (new_emutls_decl): Update.
13035 (secname_for_decl): Check section names only of static vars.
13036 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13037 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13038 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13039 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13040 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13041 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13042 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13043 * config/v850/v850.c (v850_insert_attributes): Likewise.
13044 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13045 Likewise.
13046 (h8300_handle_tiny_data_attribute): Likewise.
13047 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13048 (bfin_handle_l2_attribute): Likewise.
13049
13050 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13051
13052 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13053 remove static initializer.
13054
13055 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13056
13057 * varasm.c (use_blocks_for_decl_p): Check symbol table
13058 instead of alias attribute.
13059 (place_block_symbol): Recurse on aliases.
13060
13061 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13062
13063 * ipa-visibility.c: Include varasm.h
13064 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13065
13066 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13067
13068 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13069 outputting aliases.
13070
13071 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13072
13073 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13074 from test_insn into GGC space escape via SET_SRC.
13075
13076 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13077
13078 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13079 call statement, if any.
13080 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13081 statements, if any. Tidy up.
13082
13083 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13084
13085 PR target/61431
13086 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13087 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13088 handles swapping the two 64-bit double words on little endian
13089 systems. Include V1TImode and optionally TImode in VSX_LE so that
13090 these types are properly swapped. Change all of the insns and
13091 splits that do the 64-bit swaps to use VSX_LE.
13092 (vsx_le_perm_load_<mode>): Likewise.
13093 (vsx_le_perm_store_<mode>): Likewise.
13094 (splitters for little endian memory operations): Likewise.
13095 (vsx_xxpermdi2_le_<mode>): Likewise.
13096 (vsx_lxvd2x2_le_<mode>): Likewise.
13097 (vsx_stxvd2x2_le_<mode>): Likewise.
13098
13099 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13100
13101 PR target/61423
13102 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13103 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13104 and corresponding splitters. Zero extend general register
13105 or memory input operand to XMM temporary. Enable for
13106 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13107 (floatunssi<mode>2): Update expander predicate.
13108
13109 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13110
13111 PR rtl-optimization/61325
13112 * lra-constraints.c (process_address_1): Check scale equal to one
13113 to prevent transformation: base + scale * index => base + new_reg.
13114
13115 2014-06-06 Richard Biener <rguenther@suse.de>
13116
13117 PR tree-optimization/59299
13118 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13119 a def operand.
13120 (nearest_common_dominator_of_uses): Likewise.
13121 (statement_sink_location): Adjust. Support sinking loads.
13122
13123 2014-06-06 Martin Jambor <mjambor@suse.cz>
13124
13125 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13126 (build_agg_jump_func_from_list): Likewise.
13127 (determine_known_aggregate_parts): Renamed to
13128 determine_locally_known_aggregate_parts. Moved some functionality
13129 to the two functions above, removed bound checks.
13130
13131 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13132
13133 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13134 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13135 (aarch64_progress_pointer): Likewise.
13136 (aarch64_copy_one_part_and_move_pointers): Likewise.
13137 (aarch64_expand_movmen): Likewise.
13138 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13139 * config/aarch64/aarch64.md (movmem<mode>): New.
13140
13141 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13142
13143 * targhooks.c (default_add_stmt_cost): Call target specific
13144 hook instead of default one.
13145
13146 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13147
13148 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13149 endianness instead of host endianness.
13150 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13151 comments.
13152
13153 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13154
13155 PR debug/53927
13156 * function.c (instantiate_decls): Process the saved static chain.
13157 (expand_function_start): If not optimizing, save the static chain
13158 onto the stack.
13159 * tree-nested.c (convert_all_function_calls): Always create the static
13160 chain for nested functions if not optimizing.
13161
13162 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13163
13164 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13165
13166 2014-06-06 Richard Biener <rguenther@suse.de>
13167
13168 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13169 (construct_init_block): Likewise.
13170 (construct_exit_block): Likewise.
13171 (pass_expand::execute): Likewise.
13172 * graphite.c (graphite_transforms): Replace check for current_loops
13173 with a check for > 1 loops.
13174 (pass_graphite_transforms::execute): Adjust.
13175 * ipa-split.c (split_function): Remove check for current_loops.
13176 * omp-low.c (expand_parallel_call): Likewise.
13177 (expand_omp_for_init_counts): Likewise.
13178 (extract_omp_for_update_vars): Likewise.
13179 (expand_omp_for_generic): Likewise.
13180 (expand_omp_sections): Likewise.
13181 (expand_omp_target): Likewise.
13182 * tracer.c (tail_duplicate): Likewise.
13183 (pass_tracer::execute): Likewise.
13184 * trans-mem.c (expand_transaction): Likewise.
13185 * tree-complex.c (expand_complex_div_wide): Likewise.
13186 * tree-eh.c (lower_resx): Likewise.
13187 (cleanup_empty_eh_merge_phis): Likewise.
13188 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13189 current_loops with a check for > 1 loops.
13190 (pass_predcom::execute): Adjust.
13191 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13192 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13193 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13194 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13195 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13196 * tree-switch-conversion.c (process_switch): Likewise.
13197 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13198 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13199 (execute_vrp): Likewise.
13200 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13201
13202 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13203
13204 * rtl.h (insn_location): Declare.
13205 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13206 with UNKNOWN_LOCATION.
13207 * emit-rtl.c (insn_location): New function.
13208 * final.c (notice_source_line): Check that the instruction has a
13209 location before retrieving it and use insn_location.
13210 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13211 * print-rtl.c (print_rtx): Likewise.
13212
13213 2014-06-06 Richard Biener <rguenther@suse.de>
13214
13215 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13216
13217 2014-06-06 Christian Bruel <christian.bruel@st.com>
13218
13219 PR tree-optimization/43934
13220 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13221 cost.
13222
13223 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13224
13225 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13226 return NO_REGS for extra address and memory constraints. Handle
13227 operands that match (or are equivalent to something that matches)
13228 extra constant constraints. Ignore other non-register operands.
13229
13230 2014-06-06 Alan Modra <amodra@gmail.com>
13231
13232 PR target/61300
13233 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13234 * doc/tm.texi: Regenerate.
13235 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13236 Use throughout in place of REG_PARM_STACK_SPACE.
13237 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13238 "incoming" param. Pass to rs6000_function_parms_need_stack.
13239 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13240 prototype_p when incoming. Use function decl when incoming
13241 to handle K&R style functions.
13242 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13243 (INCOMING_REG_PARM_STACK_SPACE): Define.
13244
13245 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13246
13247 PR target/52472
13248 * cfgexpand.c (expand_debug_expr): Use address space of nested
13249 TREE_TYPE for ADDR_EXPR and MEM_REF.
13250
13251 2014-06-05 Jeff Law <law@redhat.com>
13252
13253 PR tree-optimization/61289
13254 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13255 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13256 looking for those which match LHS. All callers changed.
13257 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13258 parameters and code which manipulated them. All callers changed.
13259 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13260 and DST_MAP parameters. Simplify invalidation code by just calling
13261 invalidate_equivalences. All callers changed.
13262 (thread_across_edge): Simplify now that we don't need to maintain
13263 the map of equivalences to invalidate.
13264
13265 2014-06-05 Kai Tietz <ktietz@redhat.com>
13266 Richard Henderson <rth@redhat.com>
13267
13268 PR target/46219
13269 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13270 checking for !TARGET_X32.
13271 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13272 (sibcall_intern): New define_insn, plus required peepholes.
13273 (sibcall_pop_intern): Likewise.
13274 (sibcall_value_intern): Likewise.
13275 (sibcall_value_pop_intern): Likewise.
13276
13277 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13278
13279 * tree-inline.c (tree_function_versioning): Check DF info existence
13280 before accessing it.
13281
13282 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13283
13284 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13285 frame_size.
13286 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13287 aarch64_frame hard_fp_offset and frame_size.
13288 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13289 frame_size; remove original_frame_size.
13290 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13291 (aarch64_initial_elimination_offset): Remove frame_size and
13292 offset. Use aarch64_frame frame_size.
13293
13294 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13295 Jiong Wang <jiong.wang@arm.com>
13296 Renlin <renlin.li@arm.com>
13297
13298 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13299 initialization of R30 offset. Update offset. Iterate core
13300 regisers upto X30. Remove X29, X30 specific code.
13301
13302 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13303 Jiong Wang <jiong.wang@arm.com>
13304
13305 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13306 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13307 (aarch64_register_saved_on_entry): Adjust test.
13308
13309 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13310
13311 * config/aarch64/aarch64.h (machine_function): Move
13312 saved_varargs_size from here...
13313 (aarch64_frame): ... to here.
13314
13315 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13316 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13317 (aarch64_initial_elimination_offset)
13318 (aarch64_setup_incoming_varargs): Adjust location of
13319 saved_varargs_size.
13320
13321 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13322
13323 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13324 layout comment.
13325
13326 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13327 Prachi Godbole <Prachi.Godbole@imgtec.com>
13328
13329 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13330 mips32r5 entry to use PROCESSOR_P5600.
13331 * config/mips/mips-tables.opt: Regenerate.
13332 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13333 * config/mips/mips.c (mips_fmadd_bypass): New function.
13334 (mips_rtx_cost_data): Add costs for p5600.
13335 (mips_issue_rate): Add support for p5600.
13336 (mips_multipass_dfa_lookahead): Likewise.
13337 * config/mips/mips.h (TUNE_P5600): New define.
13338 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13339 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13340 * config/mips/mips.md: Include p5600.md.
13341 (processor): Add p5600.
13342 * config/mips/p5600.md: New file.
13343
13344 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13345
13346 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13347 * config/i386/predicates.md (palignr_operand): New.
13348 Indicates if permutation is suitable for palignr instruction.
13349
13350 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13351
13352 PR tree-optimization/61319
13353 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13354 stmt belongs to loop.
13355
13356 2014-06-05 Richard Biener <rguenther@suse.de>
13357
13358 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13359 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13360 (lookup_tmp_var): Adjust.
13361 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13362
13363 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13364
13365 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13366
13367 2014-06-05 Marek Polacek <polacek@redhat.com>
13368
13369 PR c/49706
13370 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13371
13372 2014-06-04 Tom de Vries <tom@codesourcery.com>
13373
13374 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13375 CONST_INT.
13376
13377 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13378
13379 PR tree-optimization/61385
13380 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13381
13382 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13383
13384 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13385 changed to use fatal_error.
13386 (main): Ensure lto_wrapper_cleanup is run atexit.
13387
13388 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13389
13390 * lra-constraints.c (valid_address_p): Move earlier in file.
13391 (address_eliminator): New structure.
13392 (satisfies_memory_constraint_p): New function.
13393 (satisfies_address_constraint_p): Likewise.
13394 (process_alt_operands, process_address, curr_insn_transform): Use them.
13395
13396 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13397
13398 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13399 const pointer.
13400 (target_lra_int, default_target_lra_int, this_target_lra_int)
13401 (op_alt_data): Delete.
13402 * lra.h (lra_init): Delete.
13403 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13404 (init_insn_code_data_once): Remove op_alt_data handling.
13405 (finish_insn_code_data_once): Likewise.
13406 (init_op_alt_data): Delete.
13407 (get_static_insn_data): Initialize operand_alternative to null.
13408 (free_insn_recog_data): Cast operand_alternative before freeing it.
13409 (setup_operand_alternative): Take the operand_alternative as
13410 parameter and assume it isn't already cached in the static
13411 insn data.
13412 (lra_set_insn_recog_data): Update accordingly.
13413 (lra_init): Delete.
13414 * ira.c (ira_init): Don't call lra_init.
13415 * target-globals.h (this_target_lra_int): Declare.
13416 (target_globals): Remove lra_int.
13417 (restore_target_globals): Update accordingly.
13418 * target-globals.c: Don't include lra-int.h.
13419 (default_target_globals, save_target_globals): Remove lra_int.
13420
13421 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13422
13423 * recog.h (operand_alternative): Convert reg_class, reject,
13424 matched and matches into bitfields.
13425 (preprocess_constraints): New overload.
13426 (preprocess_insn_constraints): New function.
13427 (preprocess_constraints): Take the insn as parameter.
13428 (recog_op_alt): Change into a pointer.
13429 (target_recog): Add x_op_alt.
13430 * recog.c (asm_op_alt): New variable.
13431 (recog_op_alt): Change into a pointer.
13432 (preprocess_constraints): New overload, replacing the old function
13433 definition with one that doesn't use global state.
13434 (preprocess_insn_constraints): New function.
13435 (preprocess_constraints): Use them. Take the insn as parameter.
13436 Use asm_op_alt for asms.
13437 (recog_init): Free existing x_op_alt entries.
13438 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13439 pointer const.
13440 (make_early_clobber_and_input_conflicts): Likewise.
13441 (process_bb_node_lives): Pass the insn to process_constraints.
13442 * reg-stack.c (check_asm_stack_operands): Likewise.
13443 (subst_asm_stack_regs): Likewise.
13444 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13445 * regrename.c (build_def_use): Likewise.
13446 * sched-deps.c (sched_analyze_insn): Likewise.
13447 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13448 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13449 (note_invalid_constants): Likewise.
13450 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13451 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13452 const.
13453
13454 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13455
13456 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13457 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13458 alternatives.
13459 (make_early_clobber_and_input_conflicts): Likewise.
13460 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13461
13462 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13463
13464 * recog.h (alternative_class): New function.
13465 (which_op_alt): Return a const recog_op_alt.
13466 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13467 (subst_asm_stack_regs): Likewise.
13468 * config/arm/arm.c (note_invalid_constants): Likewise.
13469 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13470 the operand_alternative; use alternative class instead.
13471 * sel-sched.c (get_reg_class): Likewise.
13472 * regrename.c (build_def_use): Likewise.
13473 (hide_operands, restore_operands, record_out_operands): Update type
13474 accordingly.
13475
13476 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13477
13478 * recog.h (recog_op_alt): Convert to a flat array.
13479 (which_op_alt): New function.
13480 * recog.c (recog_op_alt): Convert to a flat array.
13481 (preprocess_constraints): Update accordingly, grouping all
13482 operands of the same alternative together, rather than the
13483 other way around.
13484 * ira-lives.c (check_and_make_def_conflict): Likewise.
13485 (make_early_clobber_and_input_conflicts): Likewise.
13486 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13487 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13488 (subst_asm_stack_regs): Likewise.
13489 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13490 * regrename.c (hide_operands, record_out_operands): Likewise.
13491 (build_def_use): Likewise.
13492 * sel-sched.c (get_reg_class): Likewise.
13493 * config/arm/arm.c (note_invalid_constants): Likewise.
13494
13495 2014-06-04 Jason Merrill <jason@redhat.com>
13496
13497 PR c++/51253
13498 PR c++/61382
13499 * gimplify.c (gimplify_arg): Non-static.
13500 * gimplify.h: Declare it.
13501
13502 2014-06-04 Richard Biener <rguenther@suse.de>
13503
13504 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13505 TREE_PUBLIC and DECL_EXTERNAL decls.
13506
13507 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13508
13509 * regcprop.c (copyprop_hardreg_forward_1): Account for
13510 HARD_REGNO_CALL_PART_CLOBBERED.
13511
13512 2014-06-04 Richard Biener <rguenther@suse.de>
13513
13514 * configure.ac: Check whether the underlying type of int64_t
13515 is long or long long.
13516 * configure: Regenerate.
13517 * config.in: Likewise.
13518 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13519 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13520
13521 2014-06-04 Richard Biener <rguenther@suse.de>
13522
13523 PR tree-optimization/60098
13524 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13525 we hit a kill.
13526 (dse_optimize_stmt): Simplify, now that we found a kill
13527 earlier.
13528
13529 2014-06-04 Richard Biener <rguenther@suse.de>
13530
13531 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13532 of accesses with non-invariant address.
13533
13534 2014-06-04 Martin Liska <mliska@suse.cz>
13535
13536 * cgraph.h (cgraph_make_wrapper): New function introduced.
13537 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13538 * ipa-inline.h (inline_analyze_function): The function is global.
13539 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13540
13541 2014-06-04 Martin Liska <mliska@suse.cz>
13542
13543 * tree.h (private_lookup_attribute_starting): New function.
13544 (lookup_attribute_starting): Likewise.
13545 * tree.c (private_lookup_attribute_starting): Likewise.
13546
13547 2014-06-04 Martin Liska <mliska@suse.cz>
13548
13549 * cgraph.h (expand_thunk): New argument added.
13550 (address_taken_from_non_vtable_p): New global function.
13551 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13552 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13553 * cgraphunit.c (analyze_function): Likewise.
13554 (assemble_thunks_and_aliases): Argument added to call.
13555 (expand_thunk): New argument forces to produce GIMPLE thunk.
13556
13557 2014-06-04 Martin Liska <mliska@suse.cz>
13558
13559 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13560 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13561 * profile.c (branch_prob): Likewise.
13562
13563 2014-06-04 Martin Jambor <mjambor@suse.cz>
13564
13565 PR ipa/61340
13566 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13567 handler for switch on an ipa_ref_use enum.
13568 * ipa-reference.c (analyze_function): Likewise.
13569
13570 2014-06-04 Kai Tietz <ktietz@redhat.com>
13571
13572 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13573 from old call-instruction.
13574
13575 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13576
13577 * config/aarch64/aarch64.c (aarch64_classify_address)
13578 (aarch64_legitimize_reload_address): Support full addressing modes
13579 for vector modes.
13580 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13581 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13582
13583 2014-06-03 Andrew Pinski <apinski@cavium.com>
13584
13585 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13586 for OP0.
13587
13588 2014-06-03 Andrew Pinski <apinski@cavium.com>
13589
13590 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13591 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13592
13593 2014-06-03 Kai Tietz <ktietz@redhat.com>
13594
13595 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13596 for 64-bit ms-abi.
13597
13598 2014-06-03 Dehao Chen <dehao@google.com>
13599
13600 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13601 the same loop.
13602
13603 2014-06-03 Marek Polacek <polacek@redhat.com>
13604
13605 PR c/60439
13606 * doc/invoke.texi: Document -Wswitch-bool.
13607 * function.c (stack_protect_epilogue): Cast controlling expression of
13608 the switch to int.
13609 * gengtype.c (walk_type): Generate switch expression with its
13610 controlling expression cast to int.
13611
13612 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13613
13614 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13615 and attiny841.
13616 * config/avr/avr-tables.opt: Regenerate.
13617 * config/avr/t-multilib: Regenerate.
13618 * doc/avr-mmcu.texi: Regenerate.
13619
13620 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13621 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13622
13623 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13624 (ata6617c, ata664251): Add new avr35 devices.
13625 (ata6612c): Add new avr4 device.
13626 (ata6613c, ata6614q): Add new avr5 devices.
13627 * config/avr/avr-tables.opt: Regenerate.
13628 * config/avr/t-multilib: Regenerate.
13629 * doc/avr-mmcu.texi: Regenerate.
13630
13631 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13632
13633 * gcc/config/aarch64/aarch64-builtins.c
13634 (aarch64_types_binop_ssu_qualifiers): New static data.
13635 (TYPES_BINOP_SSU): Define.
13636 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13637 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13638 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13639 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13640 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13641 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13642 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13643 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13644 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13645 suffix to builtin function name, remove cast.
13646 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13647 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13648 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13649
13650 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13651
13652 * gcc/config/aarch64/aarch64-builtins.c
13653 (aarch64_types_binop_uus_qualifiers,
13654 aarch64_types_shift_to_unsigned_qualifiers,
13655 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13656 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13657 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13658 sqshlu_n, uqshl_n): Update qualifiers.
13659 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13660 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13661 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13662 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13663 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13664 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13665 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13666 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13667 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13668 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13669 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13670 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13671 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13672 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13673 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13674 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13675 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13676 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13677 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13678 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13679 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13680 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13681 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13682 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13683 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13684 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13685 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13686
13687 2014-06-03 Teresa Johnson <tejohnson@google.com>
13688
13689 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13690
13691 2014-06-02 Jason Merrill <jason@redhat.com>
13692
13693 PR c++/61020
13694 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13695
13696 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13697
13698 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13699 location == 0.
13700
13701 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13702
13703 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13704 New pattern.
13705 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13706 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13707 * config/aarch64/iterators.md (REVERSE): New iterator.
13708 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13709 (rev_op): New int_attribute.
13710 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13711 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13712 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13713 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13714 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13715 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13716 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13717 Replace temporary __asm__ with __builtin_shuffle.
13718
13719 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13720
13721 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13722 mips64r5.
13723 * config/mips/mips-tables.opt: Regenerate.
13724 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13725 to use mips_isa_rev rather than ISA_MIPS32R2.
13726 * config/mips/mips.h (ISA_MIPS32R3): New define.
13727 (ISA_MIPS32R5): New define.
13728 (ISA_MIPS64R3): New define.
13729 (ISA_MIPS64R5): New define.
13730 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13731 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13732 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13733 and mips64r5.
13734 (MIPS_ISA_SYNCI_SPEC): Likewise.
13735 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13736 (LINK_SPEC): Added mips32r3 and mips32r5.
13737 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13738 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13739 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13740 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13741 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13742 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13743 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13744
13745 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13746
13747 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13748 options.
13749 * config/mips/mips.opt (mxpa): New option.
13750 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13751 assembler.
13752
13753 2014-06-03 Martin Jambor <mjambor@suse.cz>
13754
13755 PR ipa/61160
13756 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13757 thunks.
13758
13759 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13760
13761 PR tree-optimization/61328
13762 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13763 initialization from find_bswap_or_nop_1.
13764 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13765 in source_expr2 before using the size value the function sets. Also
13766 make use of init_symbolic_number () in both the old place and
13767 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13768 doing recursion in the GIMPLE_BINARY_RHS case.
13769
13770 2014-06-03 Richard Biener <rguenther@suse.de>
13771
13772 PR tree-optimization/61383
13773 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13774 stmts can't trap.
13775
13776 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13777
13778 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13779 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13780 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13781 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13782 in this file.
13783 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13784 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13785 * system.h: ...here and make it unconditional.
13786 * target.def (conditional_register_usage): Mention
13787 define_register_constraint instead of old-style constraint macros.
13788 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13789 * doc/tm.texi: Regenerate.
13790 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13791 protected by !USE_MD_CONSTRAINTS.
13792 * config/frv/frv.md: Remove quote from old version of documentation.
13793 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13794 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13795 CONST_DOUBLE_OK_FOR_LETTER.
13796 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13797
13798 2014-06-02 Andrew Pinski <apinski@cavium.com>
13799
13800 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13801 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13802 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13803 file whose name depends on -mabi= and -mbig-endian.
13804 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13805 Handle LP64 better and handle ilp32 too.
13806 (MULTILIB_OPTIONS): Delete.
13807 (MULTILIB_DIRNAMES): Delete.
13808
13809 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13810
13811 * expr.h: Remove prototypes of functions defined in builtins.c.
13812 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13813 Remove prototypes of functions defined in builtins.c.
13814 * builtins.h: Update prototype list to include all exported functions.
13815 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13816 no_c99_libc_has_function): Move to targhooks.c
13817 (build_string_literal, build_call_expr_loc_array,
13818 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13819 to tree.c.
13820 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13821 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13822 no_c99_libc_has_function): Relocate from builtins.c.
13823 * tree.c: Include builtins.h.
13824 (build_call_expr_loc_array, build_call_expr_loc_vec,
13825 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13826 from builtins.c.
13827 * fold-const.h (fold_fma): Move prototype to builtins.h.
13828 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13829 * asan.c: Include builtins.h.
13830 * cfgexpand.c: Likewise.
13831 * convert.c: Likewise.
13832 * emit-rtl.c: Likewise.
13833 * except.c: Likewise.
13834 * expr.c: Likewise.
13835 * fold-const.c: Likewise.
13836 * gimple-fold.c: Likewise.
13837 * gimple-ssa-strength-reduction.c: Likewise.
13838 * gimplify.c: Likewise.
13839 * ipa-inline.c: Likewise.
13840 * ipa-prop.c: Likewise.
13841 * lto-streamer-out.c: Likewise.
13842 * stmt.c: Likewise.
13843 * tree-inline.c: Likewise.
13844 * tree-object-size.c: Likewise.
13845 * tree-sra.c: Likewise.
13846 * tree-ssa-ccp.c: Likewise.
13847 * tree-ssa-forwprop.c: Likewise.
13848 * tree-ssa-loop-ivcanon.c: Likewise.
13849 * tree-ssa-loop-ivopts.c: Likewise.
13850 * tree-ssa-math-opts.c: Likewise.
13851 * tree-ssa-reassoc.c: Likewise.
13852 * tree-ssa-threadedge.c: Likewise.
13853 * tree-streamer-in.c: Likewise.
13854 * tree-vect-data-refs.c: Likewise.
13855 * tree-vect-patterns.c: Likewise.
13856 * tree-vect-stmts.c: Likewise.
13857 * config/aarch64/aarch64.c: Likewise.
13858 * config/alpha/alpha.c: Likewise.
13859 * config/arc/arc.c: Likewise.
13860 * config/arm/arm.c: Likewise.
13861 * config/avr/avr.c: Likewise.
13862 * config/bfin/bfin.c: Likewise.
13863 * config/c6x/c6x.c: Likewise.
13864 * config/cr16/cr16.c: Likewise.
13865 * config/cris/cris.c: Likewise.
13866 * config/epiphany/epiphany.c: Likewise.
13867 * config/fr30/fr30.c: Likewise.
13868 * config/frv/frv.c: Likewise.
13869 * config/h8300/h8300.c: Likewise.
13870 * config/i386/i386.c: Likewise.
13871 * config/i386/winnt.c: Likewise.
13872 * config/ia64/ia64.c: Likewise.
13873 * config/iq2000/iq2000.c: Likewise.
13874 * config/lm32/lm32.c: Likewise.
13875 * config/m32c/m32c.c: Likewise.
13876 * config/m32r/m32r.c: Likewise.
13877 * config/m68k/m68k.c: Likewise.
13878 * config/mcore/mcore.c: Likewise.
13879 * config/mep/mep.c: Likewise.
13880 * config/microblaze/microblaze.c: Likewise.
13881 * config/mips/mips.c: Likewise.
13882 * config/mmix/mmix.c: Likewise.
13883 * config/mn10300/mn10300.c: Likewise.
13884 * config/moxie/moxie.c: Likewise.
13885 * config/msp430/msp430.c: Likewise.
13886 * config/nds32/nds32.c: Likewise.
13887 * config/pa/pa.c: Likewise.
13888 * config/pdp11/pdp11.c: Likewise.
13889 * config/picochip/picochip.c: Likewise.
13890 * config/rl78/rl78.c: Likewise.
13891 * config/rs6000/rs6000.c: Likewise.
13892 * config/rx/rx.c: Likewise.
13893 * config/s390/s390.c: Likewise.
13894 * config/score/score.c: Likewise.
13895 * config/sh/sh.c: Likewise.
13896 * config/sparc/sparc.c: Likewise.
13897 * config/spu/spu.c: Likewise.
13898 * config/stormy16/stormy16.c: Likewise.
13899 * config/tilegx/tilegx.c: Likewise.
13900 * config/tilepro/tilepro.c: Likewise.
13901 * config/v850/v850.c: Likewise.
13902 * config/vax/vax.c: Likewise.
13903 * config/xtensa/xtensa.c: Likewise.
13904
13905 2014-06-02 Jeff Law <law@redhat.com>
13906
13907 PR rtl-optimization/61094
13908 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13909 was marked as do_no_reextend. If a copy is needed to eliminate
13910 an extension, then mark it as do_not_reextend.
13911
13912 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13913
13914 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13915
13916 2014-06-02 Richard Henderson <rth@redhat.com>
13917
13918 PR target/61336
13919 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13920 addresses inside asms. Use output_operand_lossage instead of
13921 gcc_unreachable.
13922
13923 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13924
13925 PR target/61239
13926 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13927 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13928
13929 2014-06-02 Tom de Vries <tom@codesourcery.com>
13930
13931 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13932 case that x has VOIDmode.
13933
13934 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13935
13936 * varasm.c (copy_constant): Delete function.
13937 (build_constant_desc): Don't call it.
13938
13939 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13940
13941 PR target/61154
13942 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13943 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13944 with immediate_operand.
13945
13946 2014-06-02 Andreas Schwab <schwab@suse.de>
13947
13948 * config/ia64/ia64.c
13949 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13950 pending_data_specs first.
13951
13952 2014-06-02 Richard Biener <rguenther@suse.de>
13953
13954 PR tree-optimization/61378
13955 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13956 valueized_anything.
13957
13958 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13959
13960 * config/i386/constraints.md (Bw): Rename from 'w'.
13961 (Bz): Rename from 'z'.
13962 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13963
13964 2014-06-01 Kai Tietz <ktietz@redhat.com>
13965
13966 PR target/61377
13967 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13968 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13969 instead of m constraint.
13970
13971 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13972
13973 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13974 a separate alternative where the scratch operand 2 is marked as
13975 early clobber.
13976
13977 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13978
13979 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13980 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13981 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13982 and __builtins_arm_get_fpscr.
13983 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13984 __builtins_arm_get_fpscr.
13985 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13986 __builtins_arm_ldfpscr.
13987 (arm_atomic_assign_expand_fenv): New function.
13988 * config/arm/vfp.md (set_fpscr): New pattern.
13989 (get_fpscr) : Likewise.
13990 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13991 VUNSPEC_SET_FPSCR.
13992 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13993 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13994
13995 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13996
13997 * asan.c (report_error_func): Add SLOW_P argument, use
13998 BUILT_IN_ASAN_*_N if set.
13999 (build_check_stmt): Likewise.
14000 (instrument_derefs): If T has insufficient alignment,
14001 force same handling as for odd sizes.
14002
14003 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14004 BUILT_IN_ASAN_REPORT_STORE_N): New.
14005 * asan.c (struct asan_mem_ref): Change access_size type to
14006 HOST_WIDE_INT.
14007 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14008 update_mem_ref_hash_table): Likewise.
14009 (asan_mem_ref_hasher::hash): Hash in a HWI.
14010 (report_error_func): Change size_in_bytes argument to HWI.
14011 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14012 two.
14013 (build_shadow_mem_access): New function.
14014 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14015 Handle size_in_bytes not power of two or larger than 16.
14016 (instrument_derefs): Don't give up if size_in_bytes is not
14017 power of two or is larger than 16.
14018
14019 2014-05-30 Kai Tietz <ktietz@redhat.com>
14020
14021 PR target/60104
14022 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14023 for sibling-tail-calls.
14024 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14025 to its use.
14026 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14027 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14028
14029 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14030
14031 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14032 * config/avr/avr-tables.opt: Regenerate.
14033 * config/avr/t-multilib: Regenerate.
14034 * doc/avr-mmcu.texi: Regenerate.
14035
14036 2014-05-30 Ian Lance Taylor <iant@google.com>
14037
14038 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14039 target("sse").
14040
14041 2014-05-30 Tom de Vries <tom@codesourcery.com>
14042
14043 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14044 Redefine as true.
14045
14046 2014-05-30 Tom de Vries <tom@codesourcery.com>
14047
14048 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14049 * lra.c (initialize_lra_reg_info_element): Add init of
14050 actual_call_used_reg_set field.
14051 (lra): Call lra_create_live_ranges before lra_inheritance for
14052 -fuse-caller-save.
14053 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14054 -fuse-caller-save.
14055 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14056 instead of call_used_reg_set for -fuse-caller-save.
14057 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14058
14059 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14060
14061 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14062 to mov_imm.
14063 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14064
14065 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14066
14067 * ira.c (ira_get_dup_out_num): Check for output operands at
14068 the start of the loop. Handle cases where an included alternative
14069 follows an excluded one.
14070
14071 2014-05-29 Mike Stump <mikestump@comcast.net>
14072
14073 PR debug/61352
14074 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14075 post ld passes when lto is used.
14076
14077 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14078
14079 PR rtl-optimization/61325
14080 * lra-constraints.c (process_address): Rename to process_address_1.
14081 (process_address): New function.
14082
14083 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14084
14085 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14086 TYPES_BINOPV): New static data.
14087 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14088 New builtin.
14089 * config/aarch64/aarch64-simd.md (aarch64_ext,
14090 aarch64_im_lane_boundsi): New patterns.
14091 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14092 patterns for EXT.
14093 (aarch64_evpc_ext): New function.
14094
14095 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14096
14097 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14098 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14099 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14100 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14101 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14102
14103 2014-05-29 Tom de Vries <tom@codesourcery.com>
14104
14105 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14106
14107 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14108 Richard Sandiford <rdsandiford@googlemail.com>
14109
14110 * arm/iterators.md (shiftable_ops): New code iterator.
14111 (t2_binop0, arith_shift_insn): New code attributes.
14112 * arm/predicates.md (shift_nomul_operator): New predicate.
14113 * arm/arm.md (insn_enabled): Delete.
14114 (enabled): Remove insn_enabled test.
14115 (*arith_shiftsi): Delete. Replace with ...
14116 (*<arith_shift_insn>_multsi): ... new pattern.
14117 (*<arith_shift_insn>_shiftsi): ... new pattern.
14118 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14119
14120 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14121 Tom de Vries <tom@codesourcery.com>
14122
14123 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14124 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14125 clobber.
14126 (mips_split_call): Use POST_CALL_TMP_REG.
14127 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14128
14129 2014-05-29 Tom de Vries <tom@codesourcery.com>
14130
14131 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14132 with #ifdef STACK_REGS.
14133
14134 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14135
14136 * varasm.c (get_variable_section): Walk aliases.
14137 (place_block_symbol): Walk aliases.
14138
14139 2014-05-28 Tom de Vries <tom@codesourcery.com>
14140
14141 Revert:
14142 2014-05-28 Tom de Vries <tom@codesourcery.com>
14143
14144 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14145 * lra.c (initialize_lra_reg_info_element): Add init of
14146 actual_call_used_reg_set field.
14147 (lra): Call lra_create_live_ranges before lra_inheritance for
14148 -fuse-caller-save.
14149 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14150 -fuse-caller-save.
14151 * lra-constraints.c (need_for_call_save_p): Use
14152 actual_call_used_reg_set instead of call_used_reg_set for
14153 -fuse-caller-save.
14154 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14155
14156 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14157
14158 * doc/md.texi: Document that the % constraint character must
14159 be at the beginning of the string.
14160 * genoutput.c (validate_insn_alternatives): Check that '=',
14161 '+' and '%' only appear at the beginning of a constraint.
14162 * ira.c (commutative_constraint_p): Delete.
14163 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14164 at the start of the string.
14165 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14166 duplicate '='s.
14167 * config/arm/neon.md (bicdi3_neon): Likewise.
14168 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14169 (slt_si, sltu_si): Likewise.
14170 * config/vax/vax.md (sbcdi3): Likewise.
14171 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14172 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14173 (mul64): Move '%' to beginning of constraint.
14174 * config/arm/arm.md (*xordi3_insn): Likewise.
14175 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14176 (xorsi3): Likewise.
14177
14178 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14179
14180 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14181
14182 2014-05-28 Jason Merrill <jason@redhat.com>
14183
14184 PR c++/47202
14185 * cgraph.h (symtab_node::get_comdat_group_id): New.
14186 * cgraphunit.c (analyze_functions): Call it.
14187 * symtab.c (dump_symtab_node): Likewise.
14188 * tree.c (decl_comdat_group_id): New.
14189 * tree.h: Declare it.
14190 * lto-streamer-out.c (write_symbol): Use it.
14191 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14192
14193 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14194
14195 PR bootstrap/PR61146
14196 * wide-int.cc: Do not include longlong.h when compiling with clang.
14197
14198 2014-05-28 Richard Biener <rguenther@suse.de>
14199
14200 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14201 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14202 (vrp_visit_assignment_or_call): Print less vertical space.
14203 (vrp_visit_stmt): Likewise.
14204 (vrp_visit_phi_node): Likewise. For a PHI argument with
14205 VR_VARYING range consider recording it as copy.
14206
14207 2014-05-28 Richard Biener <rguenther@suse.de>
14208
14209 Revert
14210 2014-05-28 Richard Biener <rguenther@suse.de>
14211
14212 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14213
14214 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14215
14216 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14217 sufficiently aligned and an offset is used at the same time.
14218 (expand_expr_real_1): Likewise.
14219
14220 2014-05-28 Richard Biener <rguenther@suse.de>
14221
14222 PR middle-end/61045
14223 * fold-const.c (fold_comparison): When folding
14224 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14225 the sign of the remaining constant operand stays the same.
14226
14227 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14228
14229 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14230 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14231 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14232 to the assembler.
14233 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14234 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14235 (m32bit-doubles) Likewise.
14236 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14237 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14238 option for RL78.
14239
14240 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14241
14242 * configure.ac ($gcc_cv_ld_clearcap): New test.
14243 * configure: Regenerate.
14244 * config.in: Regenerate.
14245 * config/sol2.opt (mclear-hwcap): New option.
14246 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14247 * config/sol2-clearcap.map: Moved here from
14248 testsuite/gcc.target/i386/clearcap.map.
14249 * config/sol2-clearcapv2.map: Move here from
14250 gcc.target/i386/clearcapv2.map.
14251 * config/t-sol2 (install): Depend on install-clearcap-map.
14252 (install-clearcap-map): New target.
14253 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14254 -mclear-hwcap.
14255
14256 2014-05-28 Richard Biener <rguenther@suse.de>
14257
14258 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14259 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14260 ... here and remove the rest.
14261 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14262
14263 2014-05-28 Richard Biener <rguenther@suse.de>
14264
14265 PR tree-optimization/61335
14266 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14267 new range fails, drop to varying.
14268
14269 2014-05-28 Olivier Hainque <hainque@adacore.com>
14270
14271 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14272 (CPP_SPEC): Add entry for -mcpu=8548.
14273 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14274 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14275
14276 2014-05-28 Tom de Vries <tom@codesourcery.com>
14277
14278 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14279 * lra.c (initialize_lra_reg_info_element): Add init of
14280 actual_call_used_reg_set field.
14281 (lra): Call lra_create_live_ranges before lra_inheritance for
14282 -fuse-caller-save.
14283 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14284 -fuse-caller-save.
14285 * lra-constraints.c (need_for_call_save_p): Use
14286 actual_call_used_reg_set instead of call_used_reg_set for
14287 -fuse-caller-save.
14288 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14289
14290 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14291 Tom de Vries <tom@codesourcery.com>
14292
14293 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14294 to gccoptlist.
14295 (@item -fuse-caller-save): New item.
14296
14297 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14298 Tom de Vries <tom@codesourcery.com>
14299
14300 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14301 OPT_fuse_caller_save.
14302
14303 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14304 Tom de Vries <tom@codesourcery.com>
14305
14306 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14307 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14308 get_call_reg_set_usage.
14309 * resource.c (mark_set_resources, mark_target_live_regs): Use
14310 get_call_reg_set_usage.
14311 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14312 field.
14313 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14314 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14315 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14316 * ira-build.c (ira_create_allocno): Init
14317 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14318 (create_cap_allocno, propagate_allocno_info)
14319 (propagate_some_info_from_allocno)
14320 (copy_info_to_removed_store_destinations): Handle
14321 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14322 * ira-costs.c (ira_tune_allocno_costs): Use
14323 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14324
14325 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14326 Tom de Vries <tom@codesourcery.com>
14327
14328 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14329 and function_used_regs_valid fields.
14330 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14331 find_all_hard_reg_sets.
14332 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14333 (get_call_reg_set_usage): New function.
14334 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14335 * regs.h (get_call_reg_set_usage): Declare.
14336
14337 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14338
14339 PR libgcc/61152
14340 * config/dbx.h (License): Add Runtime Library Exception.
14341 * config/newlib-stdint.h (License): Same.
14342 * config/rtems.h (License): Same
14343 * config/initfini-array.h (License): Same
14344 * config/v850/v850.h (License): Same.
14345 * config/v850/v850-opts.h (License): Same
14346 * config/v850/rtems.h (License): Same.
14347
14348 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14349
14350 PR target/61044
14351 * doc/extend.texi (Local Labels): Note that label differences are
14352 not supported for AVR.
14353
14354 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14355 Olivier Hainque <hainque@adacore.com>
14356
14357 * rtl.h (set_for_reg_notes): Declare.
14358 * emit-rtl.c (set_for_reg_notes): New function.
14359 (set_unique_reg_note): Use it.
14360 * optabs.c (add_equal_note): Likewise
14361
14362 2014-05-27 Andrew Pinski <apinski@cavium.com>
14363
14364 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14365 Use <w> for the register in assembly template.
14366 (stack_protect_test): Use the mode of operands[0] for the result.
14367 (stack_protect_test_<mode>): Use <w> for the register
14368 in assembly template.
14369
14370 2014-05-27 DJ Delorie <dj@redhat.com>
14371
14372 * config/rx/rx.c (add_vector_labels): New.
14373 (rx_output_function_prologue): Call it.
14374 (rx_handle_func_attribute): Don't require empty arguments.
14375 (rx_handle_vector_attribute): New.
14376 (rx_attribute_table): Add "vector" attribute.
14377 * doc/extend.texi (interrupt, vector): Document new/changed
14378 RX-specific attributes.
14379
14380 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14381
14382 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14383
14384 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14385 predicate to detect a negative quotient.
14386
14387 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14388
14389 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14390 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14391 Add X - Y CMP 0 to X CMP Y transformation.
14392 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14393
14394 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14395
14396 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14397 before printing.
14398
14399 2014-05-27 Steve Ellcey <sellcey@mips.com>
14400
14401 * config/mips/mips.c: Add include of cgraph.h.
14402
14403 2014-05-27 Richard Biener <rguenther@suse.de>
14404
14405 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14406
14407 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14408
14409 PR libgcc/61152
14410 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14411 * config/arm/arm-cores.def (License): Same.
14412 * config/arm/arm-opts.h (License): Same.
14413 * config/arm/aout.h (License): Same.
14414 * config/arm/bpabi.h (License): Same.
14415 * config/arm/elf.h (License): Same.
14416 * config/arm/linux-elf.h (License): Same.
14417 * config/arm/linux-gas.h (License): Same.
14418 * config/arm/netbsd-elf.h (License): Same.
14419 * config/arm/uclinux-eabi.h (License): Same.
14420 * config/arm/uclinux-elf.h (License): Same.
14421 * config/arm/vxworks.h (License): Same.
14422
14423 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14424
14425 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14426 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14427 (arm_init_neon_builtins): Handle NEON_BSWAP.
14428 Define required type nodes.
14429 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14430 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14431 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14432 * config/arm/iterators.md (VDQHSD): New mode iterator.
14433
14434 2014-05-27 Richard Biener <rguenther@suse.de>
14435
14436 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14437 Try using literal operands when comparing value-ranges failed.
14438
14439 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14440
14441 * ira.c (commutative_operand): Adjust for change to recog_data.
14442 [Missing from previous commit.]
14443
14444 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14445
14446 * system.h (TEST_BIT): New macro.
14447 * recog.h (alternative_mask): New type.
14448 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14449 (recog_data_d): Replace alternative_enabled_p array with
14450 enabled_alternatives.
14451 (target_recog): New structure.
14452 (default_target_recog, this_target_recog): Declare.
14453 (get_enabled_alternatives, recog_init): Likewise.
14454 * recog.c (default_target_recog, this_target_recog): New variables.
14455 (get_enabled_alternatives): New function.
14456 (extract_insn): Use it.
14457 (recog_init): New function.
14458 (preprocess_constraints, constrain_operands): Adjust for change to
14459 recog_data.
14460 * postreload.c (reload_cse_simplify_operands): Likewise.
14461 * reload.c (find_reloads): Likewise.
14462 * ira-costs.c (record_reg_classes): Likewise.
14463 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14464 all alternatives after a disabled one would be skipped.
14465 (ira_implicitly_set_insn_hard_regs): Likewise.
14466 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14467 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14468 with enabled_alternatives.
14469 * lra.c (free_insn_recog_data): Update accordingly.
14470 (lra_update_insn_recog_data): Likewise.
14471 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14472 * lra-constraints.c (process_alt_operands): Likewise. Handle
14473 only_alternative as part of the enabled mask.
14474 * target-globals.h (this_target_recog): Declare.
14475 (target_globals): Add a recog field.
14476 (restore_target_globals): Restore this_target_recog.
14477 * target-globals.c: Include recog.h.
14478 (default_target_globals): Initialize recog field.
14479 (save_target_globals): Likewise.
14480 * reginfo.c (reinit_regs): Call recog_init.
14481 * toplev.c (backend_init_target): Likewise.
14482
14483 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14484
14485 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14486 rather than any named insn's code.
14487
14488 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14489
14490 PR libgcc/61152
14491 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14492 * config/arm/arm-cores.def (License): Same.
14493
14494 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14495
14496 * tree.h (decl_comdat_group): Declare.
14497 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14498 * tree.c (decl_comdat_group): Here.
14499
14500 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14501
14502 PR rtl-optimization/61222
14503 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14504 the shift, truncate the PLUS operand to the result mode.
14505
14506 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14507
14508 PR target/61271
14509 * config/i386/i386.c (ix86_rtx_costs)
14510 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14511 Fix condition.
14512
14513 2014-05-26 Martin Jambor <mjambor@suse.cz>
14514
14515 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14516 subreg uses.
14517
14518 2014-05-26 Richard Biener <rguenther@suse.de>
14519
14520 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14521 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14522 Provide specializations.
14523 (wi::int_traits <HOST_WIDE_INT>,
14524 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14525
14526 2014-05-26 Alan Modra <amodra@gmail.com>
14527
14528 PR target/61098
14529 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14530 params and return a bool. Remove dead code. Update comment.
14531 Assert we have a const_int source. Remove bogus code from
14532 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14533 handling of constants > 2G and reg_equal note, from..
14534 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14535 return value. Update comment. If we can, use a new pseudo
14536 for intermediate calculations.
14537 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14538 prototype.
14539 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14540 call to rs6000_emit_set_const in splitter.
14541 (movdi_internal64+2, +3): Likewise.
14542
14543 2014-05-26 Richard Biener <rguenther@suse.de>
14544
14545 * system.h: Define __STDC_FORMAT_MACROS before
14546 including inttypes.h.
14547 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14548 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14549 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14550 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14551 HOST_WIDEST_INT_C): Remove.
14552 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14553 if C99 inttypes.h is not available.
14554 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14555 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14556 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14557 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14558 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14559 (struct output_info): Likewise.
14560 (print_statistics): Adjust.
14561 (dump_bitmap_statistics): Likewise.
14562 * bt-load.c (migrate_btr_defs): Print with PRId64.
14563 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14564 (MAX_SAFE_MULTIPLIER): Adjust.
14565 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14566 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14567 dump_cgraph_node): Likewise.
14568 * final.c (dump_basic_block_info): Likewise.
14569 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14570 * gcov.c (format_gcov): Likewise.
14571 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14572 for calculation.
14573 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14574 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14575 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14576 Use PRId64 for dumping.
14577 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14578 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14579 (add_allocno_hard_regs): Adjust.
14580 * loop-doloop.c (doloop_modify): Print using PRId64.
14581 * loop-iv.c (inverse): Compute in uint64_t.
14582 (determine_max_iter, iv_number_of_iterations): Likewise.
14583 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14584 Print using PRId64.
14585 * lto-streamer-out.c (write_symbol): Use uint64_t.
14586 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14587 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14588 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14589 * modulo-sched.c (const_iteration_count): Use int64_t.
14590 (sms_schedule): Dump using PRId64.
14591 * predict.c (dump_prediction): Likewise.
14592 * pretty-print.h (pp_widest_integer): Remove.
14593 * profile.c (get_working_sets, is_edge_inconsistent,
14594 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14595 * tree-pretty-print.c (pp_double_int): Remove case handling
14596 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14597 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14598 and adjust users.
14599 (pass_optimize_bswap::execute): Remove restriction on hosts.
14600 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14601 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14602 * tree.c (widest_int_cst_value): Remove.
14603 * tree.h (widest_int_cst_value): Likewise.
14604 * value-prof.c (dump_histogram_value): Print using PRId64.
14605 * gengtype.c (main): Also inject int64_t.
14606 * ggc-page.c (struct max_alignment): Use int64_t.
14607 * alloc-pool.c (struct allocation_object_def): Likewise.
14608 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14609 for computation.
14610 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14611 * doc/tm.texi: Regenerated.
14612 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14613 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14614 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14615 mmix_output_register_setting): Use [u]int64_t in prototypes.
14616 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14617 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14618 mmix_output_octa, mmix_output_shifted_value): Adjust.
14619 (mmix_intval): Adjust. Remove unreachable case.
14620 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14621
14622 2014-05-26 Richard Biener <rguenther@suse.de>
14623
14624 * configure.ac: Drop __int64 type check. Insist that we
14625 found uint64_t and int64_t.
14626 * hwint.h (HOST_BITS_PER___INT64): Remove.
14627 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14628 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14629 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14630 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14631 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14632 for dst_q_src_df_rms_cdt.
14633 * configure: Regenerate.
14634 * config.in: Likewise.
14635
14636 2014-05-26 Michael Tautschnig <mt@debian.org>
14637
14638 PR target/61249
14639 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14640 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14641
14642 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14643
14644 PR rtl-optimization/61278
14645 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14646
14647 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14648
14649 PR rtl-optimization/61220
14650 Part of PR rtl-optimization/61225
14651 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14652 insn; skip split_edge for a block with only one successor.
14653
14654 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14655
14656 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14657 for variables.
14658
14659 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14660
14661 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14662 (update_vtable_references): New function.
14663 (function_and_variable_visibility): Rewrite also vtable initializers.
14664 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14665
14666 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14667
14668 * ggc.h (ggc_grow): New function.
14669 * ggc-none.c (ggc_grow): New function.
14670 * ggc-page.c (ggc_grow): Likewise.
14671
14672 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14673
14674 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14675 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14676 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14677 varpool_externally_visible_p, can_replace_by_local_alias,
14678 update_visibility_by_resolution_info, function_and_variable_visibility,
14679 pass_data_ipa_function_and_variable_visibility,
14680 make_pass_ipa_function_and_variable_visibility,
14681 whole_program_function_and_variable_visibility,
14682 pass_data_ipa_whole_program_visibility,
14683 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14684 * cgraph.h (cgraph_local_node_p): Declare.
14685 * ipa-visibility.c: New file.
14686 * Makefile.in (OBJS): Add ipa-visiblity.o
14687
14688 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14689
14690 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14691 that var decl is available.
14692
14693 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14694
14695 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14696 symtab_node pointer.
14697 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14698 (find_decls_types_r): Do not walk COMDAT_GROUP.
14699 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14700 * varasm.c (make_decl_one_only): Use set_comdat_group;
14701 create node if needed.
14702 * ipa-inline-transform.c (save_inline_function_body): Update
14703 way we decl->symtab mapping.
14704 * symtab.c (symtab_hash, hash_node, eq_node
14705 symtab_insert_node_to_hashtable): Remove.
14706 (symtab_register_node): Update.
14707 (symtab_unregister_node): Update.
14708 (symtab_get_node): Reimplement as inline function.
14709 (symtab_add_to_same_comdat_group): Update.
14710 (symtab_dissolve_same_comdat_group_list): Update.
14711 (dump_symtab_base): Update.
14712 (verify_symtab_base): Update.
14713 (symtab_make_decl_local): Update.
14714 (fixup_same_cpp_alias_visibility): Update.
14715 (symtab_nonoverwritable_alias): Update.
14716 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14717 * ipa.c (update_visibility_by_resolution_info): UPdate.
14718 * bb-reorder.c: Include cgraph.h
14719 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14720 with comdat groups.
14721 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14722 * cgraph.c (cgraph_get_create_node): Update.
14723 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14724 and comdat_group_.
14725 (symtab_get_node): Make inline.
14726 (symtab_insert_node_to_hashtable): Remove.
14727 (symtab_can_be_discarded): Update.
14728 (decl_comdat_group): New function.
14729 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14730 Update.
14731 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14732 comdat group name.
14733 (read_comdat_group): New function.
14734 (input_node, input_varpool_node): Use it.
14735 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14736 comdat groups.
14737 * mips.c (mips_start_unique_function): Likewise.
14738 (ix86_code_end): Likewise.
14739 (rs6000_code_end): Likweise.
14740 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14741
14742 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14743
14744 * gengtype-state.c (fatal_reading_state): Bring offline.
14745 * optabs.c (widening_optab_handler): Bring offline.
14746 * optabs.h (widening_optab_handler): Likewise.
14747 * final.c (get_attr_length_1): Likewise.
14748
14749 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14750
14751 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14752
14753 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14754
14755 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14756 (ppc440-compare): Include shift with dot.
14757 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14758 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14759 without dot.
14760 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14761 without dot.
14762 (e6500_sfx2): Include it.
14763 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14764 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14765 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14766 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14767 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14768 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14769 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14770 *lshiftrt_internal1le, *lshiftrt_internal1be,
14771 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14772 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14773 *rotldi3_internal10le, *rotldi3_internal10be,
14774 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14775 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14776 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14777 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14778 define_insns): Use type "shift" in the appropriate alternatives.
14779
14780 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14781
14782 * config/rs6000/rs6000.md (type): Add "logical". Delete
14783 "fast_compare".
14784 (dot): Adjust comment.
14785 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14786 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14787 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14788 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14789 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14790 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14791 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14792 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14793
14794 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14795 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14796 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14797 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14798 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14799 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14800 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14801 * config/rs6000/8540.md (ppc8540_su): Adjust.
14802 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14803 cell-cmp-microcoded): Adjust.
14804 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14805 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14806 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14807 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14808 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14809 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14810 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14811 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14812 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14813 Adjust.
14814 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14815 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14816 Adjust. Adjust comment.
14817 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14818 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14819
14820 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14821
14822 * config/rs6000/rs6000.md (type): Add "add".
14823 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14824 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14825 define_insns): Use it.
14826 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14827
14828 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14829 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14830 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14831 * config/rs6000/601.md (ppc601-integer): Adjust.
14832 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14833 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14834 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14835 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14836 * config/rs6000/8540.md (ppc8540_su): Adjust.
14837 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14838 cell-cmp-microcoded): Adjust.
14839 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14840 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14841 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14842 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14843 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14844 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14845 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14846 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14847 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14848 Adjust.
14849 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14850 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14851 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14852 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14853
14854 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14855
14856 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14857 "delayed_compare", "var_delayed_compare".
14858 (var_shift): New attribute.
14859 (cell_micro): Adjust.
14860 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14861 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14862 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14863 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14864 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14865 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14866 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14867 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14868 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14869 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14870 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14871 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14872 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14873 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14874 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14875 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14876 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14877 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14878 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14879 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14880 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14881 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14882 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14883 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14884 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14885
14886 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14887 * config/rs6000/440.md (ppc440-integer): Adjust.
14888 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14889 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14890 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14891 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14892 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14893 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14894 * config/rs6000/8540.md (ppc8540_su): Adjust.
14895 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14896 cell-cmp-microcoded): Adjust.
14897 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14898 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14899 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14900 e500mc64_delayed): Adjust.
14901 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14902 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14903 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14904 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14905 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14906 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14907 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14908 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14909 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14910 Adjust comment.
14911 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14912 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14913
14914 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14915
14916 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14917 (bits): New mode_attr.
14918 (idiv_ldiv): Delete mode_attr.
14919 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14920 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14921 rs6000_adjust_priority, is_nonpipeline_insn,
14922 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14923
14924 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14925 * config/rs6000/440.md (ppc440-idiv): Adjust.
14926 * config/rs6000/476.md (ppc476-idiv): Adjust.
14927 * config/rs6000/601.md (ppc601-idiv): Adjust.
14928 * config/rs6000/603.md (ppc603-idiv): Adjust.
14929 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14930 ppc620-ldiv): Adjust.
14931 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14932 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14933 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14934 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14935 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14936 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14937 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14938 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14939 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14940 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14941 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14942 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14943 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14944 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14945 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14946 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14947 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14948 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14949
14950 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14951
14952 * config/rs6000/rs6000.md (type): Delete "insert_word",
14953 "insert_dword". Add "insert".
14954 (size): Update comment.
14955 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14956 insn_must_be_first_in_group): Adjust.
14957 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14958 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14959 *insvsi_internal6, insvdi_internal): Adjust.
14960
14961 * config/rs6000/40x.md (ppc403-integer): Adjust.
14962 * config/rs6000/440.md (ppc440-integer): Adjust.
14963 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14964 * config/rs6000/601.md (ppc601-integer): Adjust.
14965 * config/rs6000/603.md (ppc603-integer): Adjust.
14966 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14967 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14968 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14969 * config/rs6000/8540.md (ppc8540_su): Adjust.
14970 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14971 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14972 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14973 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14974 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14975 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14976 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14977 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14978 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14979 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14980 * config/rs6000/power7.md (power7-integer): Adjust.
14981 * config/rs6000/power8.md (power8-1cyc): Adjust.
14982 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14983 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14984
14985 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14986
14987 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14988 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14989 (size): New attribute.
14990 (dot): New attribute.
14991 (cell_micro): Adjust.
14992 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14993 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14994 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14995 umuldi3_highpart): Adjust.
14996 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14997 rs6000_adjust_priority, is_nonpipeline_insn,
14998 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14999
15000 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15001 ppc405-imul3): Adjust.
15002 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15003 * config/rs6000/476.md (ppc476-imul): Adjust.
15004 * config/rs6000/601.md (ppc601-imul): Adjust.
15005 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15006 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15007 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15008 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15009 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15010 Adjust.
15011 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15012 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15013 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15014 cell-imul): Adjust.
15015 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15016 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15017 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15018 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15019 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15020 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15021 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15022 power4-lmul, power4-imul, power4-imul3): Adjust.
15023 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15024 power5-lmul, power5-imul, power5-imul3): Adjust.
15025 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15026 power6-lmul, power6-imul, power6-imul3): Adjust.
15027 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15028 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15029
15030 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15031 rs64a-lmul): Adjust.
15032 * config/rs6000/titan.md (titan_imul): Adjust.
15033
15034 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15035
15036 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15037 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15038 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15039 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15040 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15041 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15042 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15043 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15044 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15045 * config/rs6000/titan.md: Delete nonsensical comment.
15046 (titan_imul): Add type imul3.
15047 (titan_mulhw): Remove type imul3; add type halfmul.
15048
15049 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15050
15051 * config/rs6000/rs6000.md (type): Reorder, reformat.
15052
15053 2014-05-23 Martin Jambor <mjambor@suse.cz>
15054
15055 PR tree-optimization/53787
15056 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15057 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15058 analysis_done, update all uses.
15059 * ipa-prop.c: Include domwalk.h
15060 (param_analysis_info): Removed.
15061 (param_aa_status): New type.
15062 (ipa_bb_info): Likewise.
15063 (func_body_info): Likewise.
15064 (ipa_get_bb_info): New function.
15065 (aa_overwalked): Likewise.
15066 (find_dominating_aa_status): Likewise.
15067 (parm_bb_aa_status_for_bb): Likewise.
15068 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15069 (load_from_unmodified_param): Accept func_body_info as a parameter
15070 instead of parms_ainfo.
15071 (parm_ref_data_preserved_p): Changed to use new param AA info.
15072 (parm_ref_data_pass_through_p): Likewise.
15073 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15074 (compute_complex_assign_jump_func): Changed to use new param AA info.
15075 (compute_complex_ancestor_jump_func): Likewise.
15076 (ipa_compute_jump_functions_for_edge): Likewise.
15077 (ipa_compute_jump_functions): Removed.
15078 (ipa_compute_jump_functions_for_bb): New function.
15079 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15080 declarations down.
15081 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15082 and info, moved variable declarations down.
15083 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15084 node and info.
15085 (ipa_analyze_stmt_uses): Likewise.
15086 (ipa_analyze_params_uses): Removed.
15087 (ipa_analyze_params_uses_in_bb): New function.
15088 (ipa_analyze_controlled_uses): Likewise.
15089 (free_ipa_bb_info): Likewise.
15090 (analysis_dom_walker): New class.
15091 (ipa_analyze_node): Handle node-specific forbidden analysis,
15092 initialize and free func_body_info, use dominator walker.
15093 (ipcp_modif_dom_walker): New class.
15094 (ipcp_transform_function): Create and free func_body_info, use
15095 ipcp_modif_dom_walker, moved a lot of functionality there.
15096
15097 2014-05-23 Marek Polacek <polacek@redhat.com>
15098 Jakub Jelinek <jakub@redhat.com>
15099
15100 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15101 * gcc.c (sanitize_spec_function): Likewise.
15102 * convert.c (convert_to_integer): Include "ubsan.h". Add
15103 floating-point to integer instrumentation.
15104 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15105 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15106 SANITIZE_NONDEFAULT.
15107 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15108 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15109 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15110 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15111 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15112 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15113 float/double/long double.
15114 (ubsan_instrument_float_cast): New function.
15115 * ubsan.h (ubsan_instrument_float_cast): Declare.
15116
15117 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15118
15119 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15120 predicate.
15121 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15122 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15123 Adjust for tailcalling through registers.
15124 * config/aarch64/aarch64.h (enum reg_class): New caller save
15125 register class.
15126 (REG_CLASS_NAMES): Likewise.
15127 (REG_CLASS_CONTENTS): Likewise.
15128 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15129 Allow tailcalling without decls.
15130
15131 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15132
15133 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15134 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15135
15136 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15137 gsi, and variables v_* to v*.
15138
15139 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15140
15141 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15142
15143 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15144
15145 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15146 * omp-low.c: Update accordingly.
15147
15148 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15149 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15150 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15151 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15152 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15153 GF_OMP_TARGET_KIND_UPDATE.
15154
15155 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15156 Explicitly enumerate the expected region types.
15157
15158 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15159
15160 PR other/56955
15161 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15162 documentation; the old documentation didn't clearly state the
15163 constraints on the contents of the pointed-to storage.
15164
15165 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15166
15167 Fix bootstrap error on ia64
15168 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15169 Return default value.
15170
15171 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15172
15173 PR tree-optimization/54733
15174 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15175 (CMPNOP): Define.
15176 (find_bswap_or_nop_load): New.
15177 (find_bswap_1): Renamed to ...
15178 (find_bswap_or_nop_1): This. Also add support for memory source.
15179 (find_bswap): Renamed to ...
15180 (find_bswap_or_nop): This. Also add support for memory source and
15181 detection of bitwise operations equivalent to load in target
15182 endianness.
15183 (execute_optimize_bswap): Likewise. Also move its leading comment back
15184 in place and split statement transformation into ...
15185 (bswap_replace): This.
15186
15187 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15188
15189 PR rtl-optimization/61215
15190 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15191 simplify_gen_subreg until final substitution.
15192
15193 2014-05-23 Alan Modra <amodra@gmail.com>
15194
15195 PR target/61231
15196 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15197 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15198 Use "Y" constraint rather than "m".
15199
15200 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15201
15202 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15203 define.
15204 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15205 New function declaration.
15206 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15207 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15208 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15209 (aarch64_init_builtins) : Initialize builtins
15210 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15211 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15212 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15213 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15214 and __builtins_aarch64_set_fpsr.
15215 (aarch64_atomic_assign_expand_fenv): New function.
15216 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15217 (get_fpcr) : Likewise.
15218 (set_fpsr) : Likewise.
15219 (get_fpsr) : Likewise.
15220 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15221 and UNSPECV_SET_FPSR.
15222 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15223 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15224 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15225
15226 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15227
15228 PR rtl-optimization/60969
15229 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15230 constraints. Set up mem cost for NO_REGS case.
15231
15232 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15233
15234 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15235
15236 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15237
15238 * config/darwin.c: Include "lto-section-names.h".
15239 (LTO_SEGMENT_NAME): Don't define.
15240 * config/i386/winnt.c: Include "lto-section-names.h".
15241 * lto-streamer.c: Include "lto-section-names.h".
15242 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15243 * lto-wrapper.c: Include "lto-section-names.h".
15244 (LTO_SECTION_NAME_PREFIX): Don't define.
15245 * lto-section-names.h: New file.
15246 * cgraphunit.c: Include "lto-section-names.h".
15247
15248 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15249
15250 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15251
15252 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15253
15254 PR target/61208
15255 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15256
15257 2014-05-22 Nick Clifton <nickc@redhat.com>
15258
15259 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15260
15261 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15262
15263 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15264 -> (T)A transformation to integer types.
15265
15266 2014-05-22 Teresa Johnson <tejohnson@google.com>
15267
15268 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15269 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15270 (gcov_rewrite): Use gcov_nonruntime_assert.
15271 (gcov_open): Ditto.
15272 (gcov_write_words): Ditto.
15273 (gcov_write_length): Ditto.
15274 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15275 gcc_assert from IN_LIBGCOV code.
15276 (gcov_read_summary): Use gcov_error to flag profile corruption.
15277 (gcov_sync): Use gcov_nonruntime_assert.
15278 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15279 (gcov_histo_index): Use gcov_nonruntime_assert.
15280 (static void gcov_histogram_merge): Ditto.
15281 (compute_working_sets): Ditto.
15282 * gcov-io.h (gcov_nonruntime_assert): Define.
15283 (gcov_error): Define for !IN_LIBGCOV
15284
15285 2014-05-22 Richard Biener <rguenther@suse.de>
15286
15287 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15288 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15289 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15290 and deallocation site.
15291 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15292 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15293 passing through the incoming points-to set.
15294 (handle_lhs_call): Use flags argument instead of recomputing it.
15295 (find_func_aliases_for_call): Call handle_lhs_call with proper
15296 call return flags.
15297
15298 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15299
15300 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15301 all padding bits in REAL_VALUE_TYPE are cleared.
15302
15303 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15304
15305 Cleanup and improve multipass_dfa_lookahead_guard
15306 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15307 (core2i7_first_cycle_multipass_begin,)
15308 (core2i7_first_cycle_multipass_issue,)
15309 (core2i7_first_cycle_multipass_backtrack): Update signature.
15310 * config/ia64/ia64.c
15311 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15312 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15313 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15314 hook definition.
15315 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15316 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15317 values.
15318 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15319 return values.
15320 * doc/tm.texi: Regenerate.
15321 * doc/tm.texi.in
15322 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15323 * haifa-sched.c (ready_try): Make signed to allow negative values.
15324 (rebug_ready_list_1): Update.
15325 (choose_ready): Simplify.
15326 (sched_extend_ready_list): Update.
15327
15328 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15329
15330 Remove IA64 speculation tweaking flags
15331 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15332 speculation tuning flags.
15333 (msched-prefer-non-data-spec-insns,)
15334 (msched-prefer-non-control-spec-insns): Obsolete options.
15335 * haifa-sched.c (choose_ready): Remove handling of
15336 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15337 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15338 and PREFER_NON_DATA_SPEC.
15339 * sel-sched.c (process_spec_exprs): Remove handling of
15340 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15341
15342 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15343
15344 Improve scheduling debug output
15345 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15346 (advance_one_cycle): Update.
15347 (schedule_insn, queue_to_ready): Add debug printouts.
15348 (debug_ready_list_1): New static function.
15349 (debug_ready_list): Update.
15350 (max_issue): Add debug printouts.
15351 (dump_insn_stream): New static function.
15352 (schedule_block): Use it. Also better indent printouts.
15353
15354 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15355
15356 Fix sched_insn debug counter
15357 * haifa-sched.c (schedule_insn): Update.
15358 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15359 (save_backtrack_point, restore_backtrack_point): Update.
15360 (first_nonscheduled_insn): New static function.
15361 (queue_to_ready, choose_ready): Use it.
15362 (schedule_block): Init nonscheduled_insns_begin.
15363 (sched_emit_insn): Update.
15364
15365
15366 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15367
15368 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15369 to GENERAL_REGS.
15370 (aarch64_secondary_reload) : LikeWise.
15371 (aarch64_class_max_nregs) : Remove CORE_REGS.
15372 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15373 (REG_CLASS_NAMES) : Likewise.
15374 (REG_CLASS_CONTENTS) : LikeWise.
15375 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15376
15377 2014-05-21 Guozhi Wei <carrot@google.com>
15378
15379 PR target/61202
15380 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15381 constraint.
15382 (vqdmulhq_n_s16): Likewise.
15383
15384 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15385
15386 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15387
15388 2014-05-21 Marek Polacek <polacek@redhat.com>
15389
15390 PR sanitizer/61272
15391 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15392
15393 2014-05-21 Martin Jambor <mjambor@suse.cz>
15394
15395 * doc/invoke.texi (Optimize Options): Document parameters
15396 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15397 ipa-cp-array-index-hint-bonus.
15398
15399 2014-05-21 Mark Wielaard <mjw@redhat.com>
15400
15401 PR debug/16063
15402 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15403 version >= 3 or not strict DWARF.
15404 * langhooks.h (struct lang_hooks_for_types): Add
15405 enum_underlying_base_type.
15406 * langhooks.c (lhd_enum_underlying_base_type): New function.
15407 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15408 enum_underlying_base_type.
15409 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15410 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15411 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15412
15413 2014-05-21 Richard Biener <rguenther@suse.de>
15414
15415 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15416
15417 2014-05-21 John Marino <gnugcc@marino.st>
15418
15419 * config.gcc (*-*-dragonfly*): New target.
15420 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15421 * configure: Regenerate.
15422 * config/dragonfly-stdint.h: New.
15423 * config/dragonfly.h: New.
15424 * config/dragonfly.opt: New.
15425 * config/i386/dragonfly.h: New.
15426 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15427
15428 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15429
15430 * tree.def (VOID_CST): New.
15431 * tree-core.h (TI_VOID): New.
15432 * tree.h (void_node): New.
15433 * tree.c (tree_node_structure_for_code, tree_code_size)
15434 (iterative_hash_expr): Handle VOID_CST.
15435 (build_common_tree_nodes): Initialize void_node.
15436
15437 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15438
15439 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15440 functions.
15441 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15442
15443 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15444 more places.
15445
15446 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15447 flag_reorder_blocks_and_partition.
15448 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15449
15450 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15451
15452 PR target/54236
15453 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15454 constraints.
15455 (*addc_r_t): Add new insn_and_split.
15456
15457 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15458
15459 PR middle-end/61252
15460 * omp-low.c (handle_simd_reference): New function.
15461 (lower_rec_input_clauses): Use it. Defer adding reference
15462 initialization even for reduction without placeholder if in simd,
15463 handle it properly later on.
15464
15465 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15466
15467 PR tree-optimization/60899
15468 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15469 assume all static symbols will have definition wile parsing and
15470 check the do have definition later in compilation; check that
15471 variable referring symbol will be output before concluding that
15472 reference is safe; be conservative for referring local statics;
15473 be more precise about when comdat is output in other partition.
15474
15475 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15476
15477 PR bootstrap/60984
15478 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15479 parameter.
15480 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15481 (ipa_inline): Loop inline_to_all_callers until no more aliases
15482 are removed.
15483
15484 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15485
15486 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15487 set writeonly flag only for vars actually written to.
15488
15489 2014-05-20 Dehao Chen <dehao@google.com>
15490
15491 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15492 and callee count to get clone count.
15493 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15494 count in copy_body.
15495
15496 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15497
15498 PR rtl-optimization/61243
15499 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15500
15501 2014-05-20 Xinliang David Li <davidxl@google.com>
15502
15503 * cgraphunit.c (walk_polymorphic_call_targets): Add
15504 dbgcnt and fopt-info support.
15505 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15506 * ipa-devirt.c (ipa_devirt): Ditto.
15507 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15508 * ipa.c (walk_polymorphic_call_targets): Ditto.
15509 * gimple-fold.c (fold_gimple_assign): Ditto.
15510 (gimple_fold_call): Ditto.
15511 * dbgcnt.def: New counter.
15512
15513 2014-05-20 DJ Delorie <dj@redhat.com>
15514
15515 * config/msp430/msp430.md (split): Don't allow subregs when
15516 splitting SImode adds.
15517 (andneghi): Fix subtraction logic.
15518 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15519
15520 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15521
15522 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15523 symbols.
15524 * except.c (switch_to_exception_section, resolve_unique_section,
15525 get_named_text_section, default_function_rodata_section,
15526 align_variable, get_block_for_decl, default_section_type_flags):
15527 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15528 * symtab.c (symtab_add_to_same_comdat_group,
15529 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15530 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15531 Likewise.
15532 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15533 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15534 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15535 (c6x_function_in_section_p): Likewise.
15536 * config/darwin.c (machopic_select_section): Likewise.
15537 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15538 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15539 * config/mep/mep.c (mep_select_section): LIkewise.
15540 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15541
15542 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15543
15544 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15545 EH region of calls to pure functions that can throw an exception.
15546 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15547 (copy_reference_ops_from_call): Also copy the EH region of the call if
15548 it can throw an exception.
15549
15550 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15551
15552 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15553 nested VEC_SELECTs that are inverses of each other.
15554
15555 2014-05-20 Richard Biener <rguenther@suse.de>
15556
15557 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15558 (extract_and_process_scc_for_name): not here.
15559 (cond_dom_walker::before_dom_children): Only process
15560 stmts that end the BB in interesting ways.
15561 (run_scc_vn): Mark param uses as visited.
15562
15563 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15564
15565 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15566 arm_restrict_it.
15567
15568 2014-05-20 Nick Clifton <nickc@redhat.com>
15569
15570 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15571 (msp430_gimplify_va_arg_expr): New function.
15572 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15573
15574 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15575 operand 0 in order to prevent confusion about the number of
15576 registers involved.
15577
15578 2014-05-20 Richard Biener <rguenther@suse.de>
15579
15580 PR tree-optimization/61221
15581 * tree-ssa-pre.c (el_to_update): Remove.
15582 (eliminate_dom_walker::before_dom_children): Handle released
15583 VDEFs by value-numbering them to the associated VUSE. Update
15584 stmt immediately for substituted call address.
15585 (eliminate): Remove delayed stmt updating code.
15586 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15587 possibly late re-numbered vuses.
15588 (vn_reference_lookup_2): Adjust.
15589 (vn_reference_lookup_pieces): Likewise.
15590 (vn_reference_lookup): Likewise.
15591
15592 2014-05-20 Richard Biener <rguenther@suse.de>
15593
15594 * config.gcc: Remove need_64bit_hwint.
15595 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15596 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15597 it to be true.
15598 * config.in: Regenerate.
15599 * configure: Likewise.
15600
15601 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15602
15603 * doc/extend.texi: Create Label Attributes section,
15604 move all label attributes into it and reference it.
15605
15606 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15607
15608 * arm.c (thumb1_reorg): When scanning backwards skip anything
15609 that's not a proper insn.
15610
15611 2014-05-19 Richard Biener <rguenther@suse.de>
15612
15613 PR tree-optimization/61221
15614 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15615 Do nothing for unreachable blocks.
15616 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15617 Improve unreachability detection.
15618
15619 2014-05-19 Richard Biener <rguenther@suse.de>
15620
15621 PR tree-optimization/61209
15622 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15623
15624 2014-05-19 Nick Clifton <nickc@redhat.com>
15625
15626 * except.c (init_eh): Fix computation of builtin setjmp buffer
15627 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15628
15629 2014-05-19 Richard Biener <rguenther@suse.de>
15630
15631 PR tree-optimization/61184
15632 * tree-vrp.c (is_negative_overflow_infinity): Use
15633 TREE_OVERFLOW_P and do that check first.
15634 (is_positive_overflow_infinity): Likewise.
15635 (is_overflow_infinity): Likewise.
15636 (vrp_operand_equal_p): Properly treat operands with
15637 differing overflow as not equal.
15638
15639 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15640
15641 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15642 shift simplification where it was intended.
15643
15644 2014-05-19 Christian Bruel <christian.bruel@st.com>
15645
15646 PR target/61195
15647 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15648
15649 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15650
15651 PR target/61084
15652 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15653 than wide_int.
15654
15655 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15656
15657 * reg-notes.def (CROSSING_JUMP): Likewise.
15658 * rtl.h (rtx_def): Update comment for jump flag.
15659 (CROSSING_JUMP_P): Define.
15660 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15661 of a REG_CROSSING_JUMP note.
15662 * cfghooks.c (tidy_fallthru_edges): Likewise.
15663 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15664 * emit-rtl.c (try_split): Likewise.
15665 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15666 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15667 * jump.c (redirect_jump_2): Likewise.
15668 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15669 (relax_delay_slots): Likewise.
15670 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15671 (bbit_di): Likewise.
15672 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15673 * config/sh/sh.md (jump_compact): Likewise.
15674 * bb-reorder.c (rotate_loop): Likewise.
15675 (pass_duplicate_computed_gotos::execute): Likewise.
15676 (add_reg_crossing_jump_notes): Rename to...
15677 (update_crossing_jump_flags): ...this.
15678 (pass_partition_blocks::execute): Update accordingly.
15679
15680 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15681
15682 * tree.h: Remove extraneous template <>.
15683
15684 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15685
15686 * ipa.c (symtab_remove_unreachable_nodes): Remove
15687 symbol from comdat group if its body was eliminated.
15688 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15689 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15690 (symtab_unregister_node): ... this one.
15691 (verify_symtab_base): More strict checking of comdats.
15692 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15693
15694 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15695
15696 * tree-pass.h (make_pass_ipa_comdats): New pass.
15697 * timevar.def (TV_IPA_COMDATS): New timevar.
15698 * passes.def (pass_ipa_comdats): Add.
15699 * Makefile.in (OBJS): Add ipa-comdats.o
15700 * ipa-comdats.c: New file.
15701
15702 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15703
15704 * ipa.c (update_visibility_by_resolution_info): New function.
15705 (function_and_variable_visibility): Use it.
15706
15707 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15708
15709 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15710 New functions.
15711 (FOR_EACH_DEFINED_SYMBOL): New macro.
15712 (varpool_first_static_initializer, varpool_next_static_initializer,
15713 varpool_first_defined_variable, varpool_next_defined_variable):
15714 Fix comments.
15715 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15716
15717 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15718
15719 * ggc-page.c (ggc_handle_finalizers): Add comment.
15720
15721 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15722
15723 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15724 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15725 (ggc_internal_cleared_alloc): Likewise.
15726 * ggc-page.c (finalizer): New class.
15727 (vec_finalizer): Likewise.
15728 (globals::finalizers): New member.
15729 (globals::vec_finalizers): Likewise.
15730 (ggc_internal_alloc): Record the finalizer if any for the block being
15731 allocated.
15732 (ggc_handle_finalizers): New function.
15733 (ggc_collect): Call ggc_handle_finalizers.
15734 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15735 finalizer.
15736 (ggc_internal_cleared_alloc): Likewise.
15737 (finalize): New function.
15738 (need_finalization_p): Likewise.
15739 (ggc_alloc): Install the type's destructor as the finalizer if it
15740 might do something.
15741 (ggc_cleared_alloc): Likewise.
15742 (ggc_vec_alloc): Likewise.
15743 (ggc_cleared_vec_alloc): Likewise.
15744
15745 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15746
15747 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15748
15749 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15750
15751 * alias.c (record_alias_subset): Adjust.
15752 * bitmap.c (bitmap_element_allocate): Likewise.
15753 (bitmap_gc_alloc_stat): Likewise.
15754 * cfg.c (init_flow): Likewise.
15755 (alloc_block): Likewise.
15756 (unchecked_make_edge): Likewise.
15757 * cfgloop.c (alloc_loop): Likewise.
15758 (flow_loops_find): Likewise.
15759 (rescan_loop_exit): Likewise.
15760 * cfgrtl.c (init_rtl_bb_info): Likewise.
15761 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15762 (cgraph_allocate_node): Likewise.
15763 (cgraph_create_edge_1): Likewise.
15764 (cgraph_allocate_init_indirect_info): Likewise.
15765 * cgraphclones.c (cgraph_clone_edge): Likewise.
15766 * cgraphunit.c (add_asm_node): Likewise.
15767 (init_lowered_empty_function): Likewise.
15768 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15769 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15770 (alpha_use_linkage): Likewise.
15771 * config/arc/arc.c (arc_init_machine_status): Likewise.
15772 * config/arm/arm.c (arm_init_machine_status): Likewise.
15773 * config/avr/avr.c (avr_init_machine_status): Likewise.
15774 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15775 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15776 * config/cris/cris.c (cris_init_machine_status): Likewise.
15777 * config/darwin.c (machopic_indirection_name): Likewise.
15778 (darwin_build_constant_cfstring): Likewise.
15779 (darwin_enter_string_into_cfstring_table): Likewise.
15780 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15781 * config/frv/frv.c (frv_init_machine_status): Likewise.
15782 * config/i386/i386.c (get_dllimport_decl): Likewise.
15783 (ix86_init_machine_status): Likewise.
15784 (assign_386_stack_local): Likewise.
15785 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15786 (i386_pe_maybe_record_exported_symbol): Likewise.
15787 (i386_pe_record_stub): Likewise.
15788 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15789 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15790 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15791 (m32c_note_pragma_address): Likewise.
15792 * config/mep/mep.c (mep_init_machine_status): Likewise.
15793 (mep_note_pragma_flag): Likewise.
15794 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15795 (mips16_local_alias): Likewise.
15796 (mips_init_machine_status): Likewise.
15797 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15798 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15799 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15800 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15801 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15802 * config/pa/pa.c (pa_init_machine_status): Likewise.
15803 (pa_get_deferred_plabel): Likewise.
15804 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15805 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15806 (rs6000_init_machine_status): Likewise.
15807 (output_toc): Likewise.
15808 * config/s390/s390.c (s390_init_machine_status): Likewise.
15809 * config/score/score.c (score_output_external): Likewise.
15810 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15811 * config/spu/spu.c (spu_init_machine_status): Likewise.
15812 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15813 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15814 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15815 * coverage.c (coverage_end_function): Likewise.
15816 * dbxout.c (dbxout_init): Likewise.
15817 * doc/gty.texi: Don't mention variable_size attribute.
15818 * dwarf2cfi.c (new_cfi): Adjust.
15819 (new_cfi_row): Likewise.
15820 (copy_cfi_row): Likewise.
15821 (create_cie_data): Likewise.
15822 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15823 (new_loc_descr): Likewise.
15824 (find_AT_string_in_table): Likewise.
15825 (add_addr_table_entry): Likewise.
15826 (new_die): Likewise.
15827 (add_var_loc_to_decl): Likewise.
15828 (clone_die): Likewise.
15829 (clone_as_declaration): Likewise.
15830 (break_out_comdat_types): Likewise.
15831 (new_loc_list): Likewise.
15832 (add_loc_descr_to_each): Likewise.
15833 (add_location_or_const_value_attribute): Likewise.
15834 (add_linkage_name): Likewise.
15835 (lookup_filename): Likewise.
15836 (dwarf2out_var_location): Likewise.
15837 (new_line_info_table): Likewise.
15838 (dwarf2out_init): Likewise.
15839 (mem_loc_descriptor): Likewise.
15840 (loc_descriptor): Likewise.
15841 (add_const_value_attribute): Likewise.
15842 (tree_add_const_value_attribute): Likewise.
15843 (comp_dir_string): Likewise.
15844 (dwarf2out_vms_debug_main_pointer): Likewise.
15845 (string_cst_pool_decl): Likewise.
15846 * emit-rtl.c (set_mem_attrs): Likewise.
15847 (get_reg_attrs): Likewise.
15848 (start_sequence): Likewise.
15849 (init_emit): Likewise.
15850 (init_emit_regs): Likewise.
15851 * except.c (init_eh_for_function): Likewise.
15852 (gen_eh_region): Likewise.
15853 (gen_eh_region_catch): Likewise.
15854 (gen_eh_landing_pad): Likewise.
15855 (add_call_site): Likewise.
15856 * function.c (add_frame_space): Likewise.
15857 (insert_temp_slot_address): Likewise.
15858 (assign_stack_temp_for_type): Likewise.
15859 (get_hard_reg_initial_val): Likewise.
15860 (allocate_struct_function): Likewise.
15861 (prepare_function_start): Likewise.
15862 (types_used_by_var_decl_insert): Likewise.
15863 * gengtype.c (variable_size_p): Remove function.
15864 (enum alloc_quantity): Remove enum.
15865 (write_typed_alloc_def): Remove function.
15866 (write_typed_struct_alloc_def): Likewise.
15867 (write_typed_typedef_alloc_def): Likewise.
15868 (write_typed_alloc_defns): Likewise.
15869 (main): Adjust.
15870 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15871 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15872 * ggc.h (ggc_alloc): new function.
15873 (ggc_cleared_alloc): Likewise.
15874 (ggc_vec_alloc): Template on type of vector element, and remove
15875 element size argument.
15876 (ggc_cleared_vec_alloc): Likewise.
15877 * gimple.c (gimple_build_omp_for): Adjust.
15878 (gimple_copy): Likewise.
15879 * ipa-cp.c (get_replacement_map): Likewise.
15880 (find_aggregate_values_for_callers_subset): Likewise.
15881 (known_aggs_to_agg_replacement_list): Likewise.
15882 * ipa-devirt.c (get_odr_type): Likewise.
15883 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15884 (read_agg_replacement_chain): Likewise.
15885 * loop-iv.c (get_simple_loop_desc): Likewise.
15886 * lto-cgraph.c (input_node_opt_summary): Likewise.
15887 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15888 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15889 (input_eh_region): Likewise.
15890 (input_eh_lp): Likewise.
15891 (input_cfg): Likewise.
15892 * optabs.c (set_optab_libfunc): Likewise.
15893 (init_tree_optimization_optabs): Likewise.
15894 (set_conv_libfunc): Likewise.
15895 * passes.c (do_per_function_toporder): Likewise.
15896 * rtl.h: Don't use variable_size gty attribute.
15897 * sese.c (if_region_set_false_region): Adjust.
15898 * stringpool.c (gt_pch_save_stringpool): Likewise.
15899 * target-globals.c (save_target_globals): Likewise.
15900 * toplev.c (general_init): Likewise.
15901 * trans-mem.c (record_tm_replacement): Likewise.
15902 (split_bb_make_tm_edge): Likewise.
15903 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15904 * tree-data-ref.h (lambda_vector_new): Likewise.
15905 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15906 * tree-iterator.c (tsi_link_before): Likewise.
15907 (tsi_link_after): Likewise.
15908 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15909 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15910 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15911 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15912 * tree-ssa.c (init_tree_ssa): Adjust.
15913 * tree-ssanames.c (set_range_info): Likewise.
15914 (get_ptr_info): Likewise.
15915 (duplicate_ssa_name_ptr_info): Likewise.
15916 (duplicate_ssa_name_range_info): Likewise.
15917 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15918 (unpack_ts_fixed_cst_value_fields): Likewise.
15919 * tree.c (build_fixed): Likewise.
15920 (build_real): Likewise.
15921 (build_string): Likewise.
15922 (decl_priority_info): Likewise.
15923 (decl_debug_expr_insert): Likewise.
15924 (decl_value_expr_insert): Likewise.
15925 (decl_debug_args_insert): Likewise.
15926 (type_hash_add): Likewise.
15927 (build_omp_clause): Likewise.
15928 * ubsan.c (decl_for_type_insert): Likewise.
15929 * varasm.c (get_unnamed_section): Likewise.
15930 (get_noswitch_section): Likewise.
15931 (get_section): Likewise.
15932 (get_block_for_section): Likewise.
15933 (create_block_symbol): Likewise.
15934 (build_constant_desc): Likewise.
15935 (create_constant_pool): Likewise.
15936 (force_const_mem): Likewise.
15937 (record_tm_clone_pair): Likewise.
15938 * varpool.c (varpool_create_empty_node): Likewise.
15939
15940 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15941
15942 * dwarf2out.c (tree_add_const_value_attribute): Call
15943 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15944 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15945 instead of ggc_internal_<x>alloc_stat.
15946 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15947 (ggc_realloc): Likewise.
15948 * ggc-none.c (ggc_internal_alloc): Likewise.
15949 (ggc_internal_cleared_alloc): Likewise.
15950 * ggc-page.c: Likewise.
15951 * ggc.h (ggc_internal_alloc_stat): Likewise.
15952 (ggc_internal_alloc): Remove macro.
15953 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15954 (ggc_internal_cleared_alloc): Remove macro.
15955 (GGC_RESIZEVEC): Adjust.
15956 (ggc_resizevar): Remove macro.
15957 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15958 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15959 (ggc_internal_vec_cleared_alloc): Remove macro.
15960 (ggc_alloc_atomic_stat): Drop _stat suffix.
15961 (ggc_alloc_atomic): Remove macro.
15962 (ggc_alloc_cleared_atomic): Remove macro.
15963 (ggc_alloc_string_stat): Drop _stat suffix.
15964 (ggc_alloc_string): Remove macro.
15965 (ggc_alloc_rtx_def_stat): Adjust.
15966 (ggc_alloc_tree_node_stat): Likewise.
15967 (ggc_alloc_cleared_tree_node_stat): Likewise.
15968 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15969 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15970 * gimple.c (gimple_build_omp_for): Likewise.
15971 (gimple_copy): Likewise.
15972 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15973 * toplev.c (realloc_for_line_map): Adjust.
15974 * tree-data-ref.h (lambda_vector_new): Likewise.
15975 * tree-phinodes.c (allocate_phi_node): Likewise.
15976 * tree.c (grow_tree_vec_stat): Likewise.
15977 * vec.h (va_gc::reserve): Adjust.
15978
15979 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15980
15981 * config/microblaze/microblaze.c (break_handler): New Declaration.
15982 (microblaze_break_function_p,microblaze_is_break_handler): New.
15983 (compute_frame_size): Use microblaze_break_function_p.
15984 Add the test of break_handler.
15985 (microblaze_function_prologue) : Add the test of variable
15986 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15987 (microblaze_function_epilogue) : Add the test of break_handler.
15988 (microblaze_globalize_label) : Add the test of break_handler.
15989 Check the name by BREAK_HANDLER_NAME.
15990
15991 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15992
15993 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15994 microblaze_is_break_handler test.
15995 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15996 Use SYMBOL_REF_DECL.
15997
15998 * config/microblaze/microblaze-protos.h
15999 (microblaze_break_function_p,microblaze_is_break_handler):
16000 New Declaration.
16001
16002 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16003 new MicroBlaze break_handler functions.
16004
16005 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16006
16007 * doc/extend.texi (Size of an asm): Move node text according
16008 to its @menu entry position.
16009
16010 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16011
16012 PR tree-optimization/61140
16013 PR tree-optimization/61150
16014 PR tree-optimization/61197
16015 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16016
16017 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16018
16019 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16020
16021 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16022
16023 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16024 __SIZEOF_INT128__ is defined.
16025
16026 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16027
16028 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16029 (rs6000_delegitimize_address): Use it.
16030
16031 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16032
16033 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16034 inplace argument. Store the new address in the original MEM when true.
16035 * emit-rtl.c (change_address_1): Likewise.
16036 (adjust_address_1, adjust_automodify_address_1, offset_address):
16037 Update accordingly.
16038 * rtl.h (plus_constant): Add an inplace argument.
16039 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16040 when true. Avoid generating (plus X (const_int 0)).
16041 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16042 in-place. Pass true to plus_constant.
16043 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16044
16045 2014-05-16 Dehao Chen <dehao@google.com>
16046
16047 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16048
16049 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16050
16051 PR target/54089
16052 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16053 patterns.
16054 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16055
16056 2014-05-16 Dehao Chen <dehao@google.com>
16057
16058 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16059 optimize_function_for_size_p.
16060 * regs.h (REG_FREQ_FROM_BB): Likewise.
16061
16062 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16063
16064 PR target/51244
16065 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16066 negt_reg_operand cases.
16067 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16068 predicate.
16069 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16070
16071 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16072
16073 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16074 target variants.
16075
16076 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16077
16078 Revert:
16079 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16080
16081 * tree-cfg.c (dump_function_to_file): Dump the return type of
16082 functions, in a line to itself before the function body, mimicking
16083 the layout of a C function.
16084
16085 2014-05-16 Dehao Chen <dehao@google.com>
16086
16087 * cfghooks.c (make_forwarder_block): Use direct computation to
16088 get fall-through edge's count and frequency.
16089
16090 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16091
16092 * config/arc/arc.c (arc_init): Fix typo in error message.
16093 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16094 (split_stack_prologue_scratch_regno): Likewise.
16095 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16096 word from error message.
16097
16098 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16099
16100 * ira-costs.c: Fix typo in comment.
16101
16102 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16103
16104 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16105
16106 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16107
16108 * varpool.c (dump_varpool_node): Dump write-only flag.
16109 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16110 write-only flag.
16111 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16112 write-only variables.
16113 * ipa.c (process_references): New function.
16114 (set_readonly_bit): New function.
16115 (set_writeonly_bit): New function.
16116 (clear_addressable_bit): New function.
16117 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16118 fix handling of aliases.
16119 * cgraph.h (struct varpool_node): Add writeonly flag.
16120
16121 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16122
16123 PR rtl-optimization/60969
16124 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16125 Calculate costs for this case.
16126
16127 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16128
16129 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16130 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16131
16132 2014-05-16 Richard Biener <rguenther@suse.de>
16133
16134 PR tree-optimization/61194
16135 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16136 bool patterns ending in a COND_EXPR.
16137
16138 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16139
16140 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16141
16142 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16143
16144 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16145 where we were unable to cost an RTX.
16146
16147 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16148
16149 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16150 HIGH, LO_SUM.
16151
16152 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16153 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16154
16155 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16156
16157 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16158 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16159
16160 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16161 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16162
16163 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16164 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16165
16166 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16167 operators.
16168
16169 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16170 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16171
16172 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16173 DIV/MOD.
16174
16175 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16176 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16177
16178 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16179 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16180
16181 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16182 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16183
16184 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16185 rotates and shifts.
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
16191 ZERO_EXTEND and SIGN_EXTEND better.
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): Improve cost for
16197 logical operations.
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): Use address
16203 costs when costing loads and stores to memory.
16204
16205 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16206 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16207
16208 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16209 for SET RTX.
16210
16211 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16212
16213 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16214
16215 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16216 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16217
16218 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16219 to...
16220 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16221 well formed.
16222 (aarch64_rtx_mult_cost): New.
16223 (aarch64_rtx_costs): Use it, refactor as appropriate.
16224
16225 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16226 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16227
16228 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16229 emit instructions, return number of instructions which would
16230 be emitted.
16231 (aarch64_add_constant): Update call to aarch64_build_constant.
16232 (aarch64_output_mi_thunk): Likewise.
16233 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16234 a CONST_DOUBLE.
16235
16236 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16237
16238 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16239 (TARGET_RTX_COSTS): Call it.
16240
16241 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16242
16243 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16244 (cortexa57_vector_cost): Likewise.
16245 (cortexa57_tunings): Use them.
16246
16247 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16248
16249 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16250 (cpu_addrcost_table): Use it.
16251 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16252 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16253 move it.
16254
16255 2014-05-16 Richard Biener <rguenther@suse.de>
16256
16257 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16258 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16259 (visit_phi): Ignore edges marked as not executable.
16260 (class cond_dom_walker): New.
16261 (cond_dom_walker::before_dom_children): Value-number
16262 control statements and mark successor edges as not
16263 executable if possible.
16264 (run_scc_vn): First walk all control statements in
16265 dominator order, marking edges as not executable.
16266 * tree-inline.c (copy_edges_for_bb): Be not confused
16267 about random edge flags.
16268
16269 2014-05-16 Richard Biener <rguenther@suse.de>
16270
16271 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16272
16273 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16274
16275 PR target/61193
16276 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16277 (__TM_simple_begin): Use it.
16278 (__TM_begin): Likewise.
16279
16280 2014-05-15 Martin Jambor <mjambor@suse.cz>
16281
16282 PR ipa/61085
16283 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16284 type_preserved flag when the indirect edge is polymorphic.
16285
16286 2014-05-15 Martin Jambor <mjambor@suse.cz>
16287
16288 PR tree-optimization/61090
16289 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16290 build_ref_for_model.
16291
16292 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16293
16294 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16295 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16296
16297 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16298
16299 PR tree-optimization/61158
16300 * fold-const.c (fold_binary_loc): If X is zero-extended and
16301 shiftc >= prec, make sure zerobits is all ones instead of
16302 invoking undefined behavior.
16303
16304 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16305
16306 * regcprop.h: New file.
16307 * regcprop.c (skip_debug_insn_p): New decl.
16308 (replace_oldest_value_reg): Check skip_debug_insn_p.
16309 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16310 * shrink-wrap.c: Include regcprop.h.
16311 (prepare_shrink_wrap): Call
16312 copyprop_hardreg_forward_bb_without_debug_insn.
16313
16314 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16315
16316 * shrink-wrap.h: Update comment.
16317 * shrink-wrap.c: Update comment.
16318 (next_block_for_reg): Rename to live_edge_for_reg.
16319 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16320 (move_insn_for_shrink_wrap): Split live_edge.
16321 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16322
16323 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16324
16325 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16326 Delete.
16327 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16328 * config/sparc/sparc.md (fptype_ut699): New attribute.
16329 (in_branch_delay): Return false if -mfix-ut699 is specified and
16330 fptype_ut699 is set to single.
16331 (truncdfsf2): Add fptype_ut699 attribute.
16332 (fix_truncdfsi2): Likewise.
16333 (floatsisf2): Change fptype attribute.
16334 (fix_truncsfsi2): Likewise.
16335 (negtf2_notv9): Delete.
16336 (negtf2_v9): Likewise.
16337 (negtf2_hq): New instruction.
16338 (negtf2): New instruction and splitter.
16339 (negdf2_notv9): Rewrite.
16340 (abstf2_notv9): Delete.
16341 (abstf2_hq_v9): Likewise.
16342 (abstf2_v9): Likewise.
16343 (abstf2_hq): New instruction.
16344 (abstf2): New instruction and splitter.
16345 (absdf2_notv9): Rewrite.
16346
16347 2014-05-14 Cary Coutant <ccoutant@google.com>
16348
16349 PR debug/61013
16350 * opts.c (common_handle_option): Don't special-case "-g".
16351 (set_debug_level): Default to at least level 2 with "-g".
16352
16353 2014-05-14 DJ Delorie <dj@redhat.com>
16354
16355 * config/msp430/msp430.c (msp430_builtin): Add
16356 MSP430_BUILTIN_DELAY_CYCLES.
16357 (msp430_init_builtins): Register void __delay_cycles(long long).
16358 (msp430_builtin_decl): Add it.
16359 (cg_magic_constant): New.
16360 (msp430_expand_delay_cycles): New.
16361 (msp430_expand_builtin): Call it.
16362 (msp430_print_operand_raw): Change integer printing from "int" to
16363 HOST_WIDE_INT.
16364 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16365 (delay_cycles_start): New.
16366 (delay_cycles_end): New.
16367 (delay_cycles_32): New.
16368 (delay_cycles_32x): New.
16369 (delay_cycles_16): New.
16370 (delay_cycles_16x): New.
16371 (delay_cycles_2): New.
16372 (delay_cycles_1): New.
16373 * doc/extend.texi: Document __delay_cycles().
16374
16375 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16376
16377 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16378 length attribute computation.
16379
16380 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16381
16382 PR debug/61188
16383 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16384
16385 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16386
16387 PR target/61084
16388 * config/sparc/sparc.md: Fix types of low and high in DI constant
16389 splitter. Use gen_int_mode in some other splitters.
16390
16391 2014-05-14 Martin Jambor <mjambor@suse.cz>
16392
16393 PR ipa/60897
16394 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16395
16396 2014-05-14 James Norris <jnorris@codesourcery.com>
16397
16398 * omp-low.c (expand_parallel_call): Remove shadow variable.
16399 (expand_omp_taskreg): Likewise.
16400
16401 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16402
16403 * common/config/i386/i386-common.c
16404 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16405 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16406 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16407 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16408 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16409 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16410 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16411 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16412 xsavecintrin.h, xsavesintrin.h.
16413 (x86_64-*-*): Ditto.
16414 * config/i386/clflushoptintrin.h: New.
16415 * config/i386/xsavecintrin.h: Ditto.
16416 * config/i386/xsavesintrin.h: Ditto.
16417 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16418 (bit_XSAVES): Ditto.
16419 (bit_XSAVES): Ditto.
16420 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16421 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16422 -mno-clflushopt.
16423 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16424 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16425 OPTION_MASK_ISA_XSAVES.
16426 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16427 -mxsavec, -mxsaves.
16428 (PTA_CLFLUSHOPT) Define.
16429 (PTA_XSAVEC): Ditto.
16430 (PTA_XSAVES): Ditto.
16431 (ix86_option_override_internal): Handle new options.
16432 (ix86_valid_target_attribute_inner_p): Ditto.
16433 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16434 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16435 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16436 (bdesc_special_args): Add __builtin_ia32_xsaves,
16437 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16438 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16439 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16440 (ix86_expand_builtin): Handle new builtins.
16441 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16442 (TARGET_CLFLUSHOPT_P): Ditto.
16443 (TARGET_XSAVEC): Ditto.
16444 (TARGET_XSAVEC_P): Ditto.
16445 (TARGET_XSAVES): Ditto.
16446 (TARGET_XSAVES_P): Ditto.
16447 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16448 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16449 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16450 (ANY_XRSTOR): New.
16451 (ANY_XRSTOR64): Ditto.
16452 (xrstor): Ditto.
16453 (xrstor): Change into <xrstor>.
16454 (xrstor_rex64): Change into <xrstor>_rex64.
16455 (xrstor64): Change into <xrstor>64
16456 (clflushopt): New.
16457 * config/i386/i386.opt (mclflushopt): New.
16458 (mxsavec): Ditto.
16459 (mxsaves): Ditto.
16460 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16461 xsavecintrin.h.
16462 * doc/invoke.texi: Document new options.
16463
16464 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16465
16466 PR rtl-optimization/60866
16467 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16468 Default it to -1. Pass it down to init_simplejump_data.
16469 (init_simplejump_data): New parameter old_seqno. Pass it down
16470 to get_seqno_for_a_jump.
16471 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16472 initializing new jump seqno as a last resort. Add comment.
16473 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16474 jump and pass it down to sel_init_new_insn.
16475 (sel_redirect_edge_and_branch_force): Likewise.
16476
16477 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16478
16479 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16480 shifted values to avoid build warning.
16481
16482 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16483
16484 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16485 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16486 (cfg_layout_merge_blocks): Likewise.
16487 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16488
16489 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16490
16491 PR rtl-optimization/60901
16492 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16493 bb predecessor belongs to the same scheduling region. Adjust comment.
16494
16495 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16496
16497 * doc/sourcebuild.texi: (dfp_hw): Document.
16498 (p8vector_hw): Likewise.
16499 (powerpc_eabi_ok): Likewise.
16500 (powerpc_elfv2): Likewise.
16501 (powerpc_htm_ok): Likewise.
16502 (ppc_recip_hw): Likewise.
16503 (vsx_hw): Likewise.
16504
16505 2014-05-13 Cary Coutant <ccoutant@google.com>
16506
16507 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16508
16509 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16510
16511 * gengtype-parse.c (require3): Eliminate in favor of...
16512 (require4): New.
16513 (require_template_declaration): Update to support optional single *
16514 on a type.
16515
16516 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16517 (create_user_defined_type): Handle a single level of explicit
16518 pointerness within template arguments.
16519 (struct write_types_data): Add field "kind".
16520 (filter_type_name): Handle "*" character.
16521 (write_user_func_for_structure_ptr): Require a write_types_data
16522 rather than just a prefix string, so that we can look up the kind
16523 of the wtd and use it as an index into wrote_user_func_for_ptr,
16524 ensuring that such functions are written at most once. Support
16525 subclasses by invoking the marking function of the ultimate base class.
16526 (write_user_func_for_structure_body): Require a write_types_data
16527 rather than just a prefix string, so that we can pass this to
16528 write_user_func_for_structure_ptr.
16529 (write_func_for_structure): Likewise.
16530 (ggc_wtd): Add initializer of new "kind" field.
16531 (pch_wtd): Likewise.
16532
16533 * gengtype.h (enum write_types_kinds): New.
16534 (struct type): Add field wrote_user_func_for_ptr to the "s"
16535 union member.
16536
16537 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16538
16539 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16540 instead of const_binop.
16541 (fold_binary_loc): Likewise.
16542
16543 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16544
16545 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16546 calculation to match get_ref_base_and_extent.
16547
16548 2014-05-13 Catherine Moore <clm@codesourcery.com>
16549 Sandra Loosemore <sandra@codesourcery.com>
16550
16551 * configure.ac: Fix assembly for explicit JALR relocation check.
16552 * configure: Regenerate.
16553
16554 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16555
16556 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16557 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16558 Remove associated type declarations and initialisations.
16559 (arm_expand_neon_builtin): Likewise.
16560 (neon_emit_pair_result_insn): Delete.
16561 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16562 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16563 (neon_vzip<mode>): Likewise.
16564 (neon_vuzp<mode>): Likewise.
16565
16566 2014-05-13 Richard Biener <rguenther@suse.de>
16567
16568 PR ipa/60973
16569 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16570 it needs revisiting whether the call still may be tail-called.
16571
16572 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16573
16574 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16575 * rtl.h (block_symbol): Reduce number of fields to 2.
16576 (rtx_def): Add u2.symbol_ref_flags.
16577 (SYMBOL_REF_FLAGS): Use it.
16578 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16579 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16580 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16581 Lower index of SYMBOL_REF_DATA.
16582 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16583 Print SYMBOL_REF_FLAGS at the same time.
16584 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16585
16586 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16587
16588 * rtl.def (VAR_LOCATION): Remove "i" field.
16589 * rtl.h (rtx_def): Add u2.var_location_status.
16590 (PAT_VAR_LOCATION_STATUS): Use it.
16591 (gen_rtx_VAR_LOCATION): Declare.
16592 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16593 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16594 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16595
16596 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16597
16598 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16599 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16600
16601 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16602
16603 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16604 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16605 * rtl.h (rtx_def): Add insn_uid to u2 field.
16606 (RTX_FLAG_CHECK8): Delete in favor of...
16607 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16608 (INSN_DELETED_P): Update accordingly.
16609 (INSN_UID): Use u2.insn_uid.
16610 (INSN_CHAIN_CODE_P): Define.
16611 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16612 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16613 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16614 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16615 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16616 indices accordingly.
16617 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16618 Update indices for insn-chain rtxes.
16619 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16620 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16621 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16622 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16623 * combine.c (try_combine): Likewise.
16624 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16625
16626 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16627
16628 * rtl.def (REG): Remove middle field.
16629 * rtl.h (rtx_def): Add orignal_regno to u2.
16630 (ORIGINAL_REGNO): Use it instead of field 1.
16631 (REG_ATTRS): Lower field index accordingly.
16632 * gengtype.c (adjust_field_rtx_def): Remove handling of
16633 ORIGINAL_REGNO. Move REG_ATTRS index down.
16634 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16635 code that prints the REGNO.
16636
16637 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16638
16639 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16640 GENERATOR_FILE.
16641
16642 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16643
16644 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16645
16646 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16647
16648 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16649 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16650
16651 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16652
16653 * config/aarch64/aarch64-protos.h
16654 (aarch64_hard_regno_caller_save_mode): New prototype.
16655 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16656 New function.
16657 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16658
16659 2014-05-13 Christian Bruel <christian.bruel@st.com>
16660
16661 * target.def (mode_switching): New hook vector.
16662 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16663 (mode_exit, modepriority_to_mode): Likewise.
16664 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16665 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16666 * target.h: Include tm.h and hard-reg-set.h.
16667 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16668 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16669 * doc/tm.texi Regenerate.
16670 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16671 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16672 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16673 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16674 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16675 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16676 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16677 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16678 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16679 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16680 (ix86_emit_mode_set): Hookify.
16681 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16682 Delete.
16683 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16684 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16685 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16686 (epiphany_mode_priority_to_mode): Remove declaration.
16687 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16688 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16689 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16690 Likewise.
16691 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16692 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16693 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16694
16695 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16696
16697 PR target/61060
16698 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16699 is const0_rtx, return immediately. Don't test count == 0 when
16700 it is always true.
16701
16702 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16703
16704 * Makefile.in: add shrink-wrap.o.
16705 * config/i386/i386.c: include "shrink-wrap.h"
16706 * function.c: Likewise.
16707 (requires_stack_frame_p, next_block_for_reg,
16708 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16709 dup_block_and_redirect): Move to shrink-wrap.c
16710 (thread_prologue_and_epilogue_insns): Extract three code segments
16711 as functions in shrink-wrap.c
16712 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16713 shrink-wrap.h
16714 * shrink-wrap.c: New file.
16715 * shrink-wrap.h: New file.
16716
16717 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16718
16719 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16720 reference to Solaris.
16721
16722 2014-05-12 Mike Stump <mikestump@comcast.net>
16723
16724 PR other/31778
16725 * genattrtab.c (filename): Add.
16726 (convert_set_attr_alternative): Improve error message.
16727 (check_defs): Restore read_md_filename for error messages.
16728 (gen_insn): Save filename.
16729
16730 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16731
16732 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16733 -fno-local-ivars and -fivar-visibility.
16734 * c-family/c.opt: Make -Wshadow also implicitly enable
16735 -Wshadow-ivar.
16736
16737 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16738
16739 * doc/tm.texi: Remove reference to deleted macro.
16740 * doc/tm.texi.in: Likewise.
16741
16742 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16743
16744 PR target/60991
16745 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16746 to restore Y.
16747
16748 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16749
16750 PR libgcc/61152
16751 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16752 * config/arm/aout.h (License): Same.
16753 * config/arm/bpabi.h (License): Same.
16754 * config/arm/elf.h (License): Same.
16755 * config/arm/linux-elf.h (License): Same.
16756 * config/arm/linux-gas.h (License): Same.
16757 * config/arm/netbsd-elf.h (License): Same.
16758 * config/arm/uclinux-eabi.h (License): Same.
16759 * config/arm/uclinux-elf.h (License): Same.
16760 * config/arm/vxworks.h (License): Same.
16761
16762 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16763
16764 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16765 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16766 number of operands to 3.
16767 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16768 * tree-nested.c (convert_nonlocal_omp_clauses,
16769 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16770 * gimplify.c (gimplify_scan_omp_clauses): Handle
16771 OMP_CLAUSE_LINEAR_STMT.
16772 * omp-low.c (lower_rec_input_clauses): Fix typo.
16773 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16774 cast between Fortran boolean_type_node and C _Bool if
16775 needed.
16776
16777 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16778
16779 PR tree-optimization/61136
16780 * wide-int.h (multiple_of_p): Define a version that doesn't return
16781 the quotient.
16782 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16783 integer_zerop/const_binop pair.
16784 (multiple_of_p): Likewise, converting both operands to widest_int
16785 precision.
16786
16787 2014-05-09 Teresa Johnson <tejohnson@google.com>
16788
16789 * cgraphunit.c (analyze_functions): Use correct dump file.
16790
16791 2014-05-09 Florian Weimer <fweimer@redhat.com>
16792
16793 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16794 expand_used_vars.
16795 (stack_protect_return_slot_p): New function.
16796 (expand_used_vars): Call stack_protect_decl_p and
16797 stack_protect_return_slot_p for -fstack-protector-strong.
16798
16799 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16800 Andrew Haley <aph@redhat.com>
16801 Richard Sandiford <rdsandiford@googlemail.com>
16802
16803 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16804 pages.
16805
16806 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16807
16808 PR middle-end/61111
16809 * fold-const.c (fold_binary_loc): Changed width of mask.
16810
16811 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16812
16813 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16814 unsigned int initializers for regno_in, regno_out.
16815
16816 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16817
16818 PR target/61055
16819 * config/avr/avr.md (cc): Add new attribute set_vzn.
16820 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16821 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16822 with INC, DEC or NEG.
16823 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16824 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16825 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16826
16827 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16828
16829 Revert:
16830 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16831
16832 * wide-int.cc (UTItype): Define.
16833 (UDWtype): Define for appropriate W_TYPE_SIZE.
16834
16835 2014-05-09 Richard Biener <rguenther@suse.de>
16836
16837 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16838 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16839 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16840 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16841 ssa_propagate): Adjust.
16842
16843 2014-05-08 Jeff Law <law@redhat.com>
16844
16845 PR tree-optimization/61009
16846 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16847 tri-state rather than a boolean. When a block is too big to
16848 thread through, inform caller via negative return value.
16849 (thread_across_edge): If a block was too big for normal threading,
16850 then it's too big for a joiner too, so remove temporary equivalences
16851 and return immediately.
16852
16853 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16854 Matthias Klose <doko@ubuntu.com>
16855
16856 PR driver/61106
16857 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16858
16859 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16860
16861 PR target/59952
16862 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16863
16864 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16865
16866 PR target/61092
16867 * config/alpha/alpha.c: Include gimple-iterator.h.
16868 (alpha_gimple_fold_builtin): New function. Move
16869 ALPHA_BUILTIN_UMULH folding from ...
16870 (alpha_fold_builtin): ... here.
16871 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16872
16873 2014-05-08 Wei Mi <wmi@google.com>
16874
16875 PR target/58066
16876 * config/i386/i386.c (ix86_compute_frame_layout): Update
16877 preferred_stack_boundary for call, expanded from tls descriptor.
16878 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16879 to depend on SP register.
16880 (*tls_local_dynamic_base_32_gnu): Ditto.
16881 (*tls_local_dynamic_32_once): Ditto.
16882 (tls_global_dynamic_64_<mode>): Set
16883 ix86_tls_descriptor_calls_expanded_in_cfun.
16884 (tls_local_dynamic_base_64_<mode>): Ditto.
16885 (tls_global_dynamic_32): Set
16886 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16887 to depend on SP register.
16888 (tls_local_dynamic_base_32): Ditto.
16889
16890 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16891
16892 * config/arm/arm_neon.h: Update comment.
16893 * config/arm/neon-docgen.ml: Delete.
16894 * config/arm/neon-gen.ml: Delete.
16895 * doc/arm-neon-intrinsics.texi: Update comment.
16896
16897 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16898
16899 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16900 and v4sf versions.
16901 (vand, vorr, veor, vorn, vbic): Remove.
16902 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16903 iterator.
16904 (neon_vsub_unspec): Likewise.
16905 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16906
16907 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16908
16909 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16910 (vadd_s16): Likewise.
16911 (vadd_s32): Likewise.
16912 (vadd_f32): Likewise.
16913 (vadd_u8): Likewise.
16914 (vadd_u16): Likewise.
16915 (vadd_u32): Likewise.
16916 (vadd_s64): Likewise.
16917 (vadd_u64): Likewise.
16918 (vaddq_s8): Likewise.
16919 (vaddq_s16): Likewise.
16920 (vaddq_s32): Likewise.
16921 (vaddq_s64): Likewise.
16922 (vaddq_f32): Likewise.
16923 (vaddq_u8): Likewise.
16924 (vaddq_u16): Likewise.
16925 (vaddq_u32): Likewise.
16926 (vaddq_u64): Likewise.
16927 (vmul_s8): Likewise.
16928 (vmul_s16): Likewise.
16929 (vmul_s32): Likewise.
16930 (vmul_f32): Likewise.
16931 (vmul_u8): Likewise.
16932 (vmul_u16): Likewise.
16933 (vmul_u32): Likewise.
16934 (vmul_p8): Likewise.
16935 (vmulq_s8): Likewise.
16936 (vmulq_s16): Likewise.
16937 (vmulq_s32): Likewise.
16938 (vmulq_f32): Likewise.
16939 (vmulq_u8): Likewise.
16940 (vmulq_u16): Likewise.
16941 (vmulq_u32): Likewise.
16942 (vsub_s8): Likewise.
16943 (vsub_s16): Likewise.
16944 (vsub_s32): Likewise.
16945 (vsub_f32): Likewise.
16946 (vsub_u8): Likewise.
16947 (vsub_u16): Likewise.
16948 (vsub_u32): Likewise.
16949 (vsub_s64): Likewise.
16950 (vsub_u64): Likewise.
16951 (vsubq_s8): Likewise.
16952 (vsubq_s16): Likewise.
16953 (vsubq_s32): Likewise.
16954 (vsubq_s64): Likewise.
16955 (vsubq_f32): Likewise.
16956 (vsubq_u8): Likewise.
16957 (vsubq_u16): Likewise.
16958 (vsubq_u32): Likewise.
16959 (vsubq_u64): Likewise.
16960 (vand_s8): Likewise.
16961 (vand_s16): Likewise.
16962 (vand_s32): Likewise.
16963 (vand_u8): Likewise.
16964 (vand_u16): Likewise.
16965 (vand_u32): Likewise.
16966 (vand_s64): Likewise.
16967 (vand_u64): Likewise.
16968 (vandq_s8): Likewise.
16969 (vandq_s16): Likewise.
16970 (vandq_s32): Likewise.
16971 (vandq_s64): Likewise.
16972 (vandq_u8): Likewise.
16973 (vandq_u16): Likewise.
16974 (vandq_u32): Likewise.
16975 (vandq_u64): Likewise.
16976 (vorr_s8): Likewise.
16977 (vorr_s16): Likewise.
16978 (vorr_s32): Likewise.
16979 (vorr_u8): Likewise.
16980 (vorr_u16): Likewise.
16981 (vorr_u32): Likewise.
16982 (vorr_s64): Likewise.
16983 (vorr_u64): Likewise.
16984 (vorrq_s8): Likewise.
16985 (vorrq_s16): Likewise.
16986 (vorrq_s32): Likewise.
16987 (vorrq_s64): Likewise.
16988 (vorrq_u8): Likewise.
16989 (vorrq_u16): Likewise.
16990 (vorrq_u32): Likewise.
16991 (vorrq_u64): Likewise.
16992 (veor_s8): Likewise.
16993 (veor_s16): Likewise.
16994 (veor_s32): Likewise.
16995 (veor_u8): Likewise.
16996 (veor_u16): Likewise.
16997 (veor_u32): Likewise.
16998 (veor_s64): Likewise.
16999 (veor_u64): Likewise.
17000 (veorq_s8): Likewise.
17001 (veorq_s16): Likewise.
17002 (veorq_s32): Likewise.
17003 (veorq_s64): Likewise.
17004 (veorq_u8): Likewise.
17005 (veorq_u16): Likewise.
17006 (veorq_u32): Likewise.
17007 (veorq_u64): Likewise.
17008 (vbic_s8): Likewise.
17009 (vbic_s16): Likewise.
17010 (vbic_s32): Likewise.
17011 (vbic_u8): Likewise.
17012 (vbic_u16): Likewise.
17013 (vbic_u32): Likewise.
17014 (vbic_s64): Likewise.
17015 (vbic_u64): Likewise.
17016 (vbicq_s8): Likewise.
17017 (vbicq_s16): Likewise.
17018 (vbicq_s32): Likewise.
17019 (vbicq_s64): Likewise.
17020 (vbicq_u8): Likewise.
17021 (vbicq_u16): Likewise.
17022 (vbicq_u32): Likewise.
17023 (vbicq_u64): Likewise.
17024 (vorn_s8): Likewise.
17025 (vorn_s16): Likewise.
17026 (vorn_s32): Likewise.
17027 (vorn_u8): Likewise.
17028 (vorn_u16): Likewise.
17029 (vorn_u32): Likewise.
17030 (vorn_s64): Likewise.
17031 (vorn_u64): Likewise.
17032 (vornq_s8): Likewise.
17033 (vornq_s16): Likewise.
17034 (vornq_s32): Likewise.
17035 (vornq_s64): Likewise.
17036 (vornq_u8): Likewise.
17037 (vornq_u16): Likewise.
17038 (vornq_u32): Likewise.
17039 (vornq_u64): Likewise.
17040
17041 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17042
17043 * wide-int.cc (UTItype): Define.
17044 (UDWtype): Define for appropriate W_TYPE_SIZE.
17045
17046 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17047
17048 PR tree-optimization/59100
17049 * tree-ssa-phiopt.c: Include tree-inline.h.
17050 (neutral_element_p, absorbing_element_p): New functions.
17051 (value_replacement): Handle conditional binary operations with a
17052 neutral or absorbing element.
17053
17054 2014-05-08 Richard Biener <rguenther@suse.de>
17055
17056 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17057 folding the expression.
17058 (valueize_expr): Remove.
17059 (visit_reference_op_load): Do not valueize the result of
17060 vn_get_expr_for.
17061 (simplify_binary_expression): Likewise.
17062 (simplify_unary_expression): Likewise.
17063
17064 2014-05-08 Richard Biener <rguenther@suse.de>
17065
17066 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17067 looking at TYPE_ARG_TYPES.
17068
17069 2014-05-08 Richard Biener <rguenther@suse.de>
17070
17071 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17072 pointer propagation special-case.
17073
17074 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17075
17076 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17077 core part of address expressions.
17078
17079 2014-05-08 Alan Modra <amodra@gmail.com>
17080
17081 PR target/60737
17082 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17083 loads and stores when -mno-strict-align at any alignment.
17084 (expand_block_clear): Similarly. Also correct calculation of
17085 instruction count.
17086
17087 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17088
17089 PR middle-end/39246
17090 * tree-complex.c (expand_complex_move): Keep line info when expanding
17091 complex move.
17092 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17093 of complex expression. Use new argument to display correct location
17094 for values coming from phi statement.
17095 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17096 (warn_uninitialized_phi): Pass location of phi argument to
17097 warn_uninit.
17098 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17099 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17100
17101 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17102
17103 * config/rs6000/predicates.md (indexed_address_mem): New.
17104 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17105 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17106 fpstore_ux, fpstore_u.
17107 (sign_extend, indexed, update): New.
17108 (cell_micro): Adjust.
17109 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17110 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17111 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17112 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17113 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17114 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17115 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17116 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17117 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17118 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17119 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17120 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17121 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17122 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17123 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17124
17125 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17126 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17127 *vsx_extract_<mode>_store): Adjust.
17128 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17129 is_cracked_insn, insn_must_be_first_in_group,
17130 insn_must_be_last_in_group): Adjust.
17131
17132 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17133 Adjust.
17134 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17135 ppc440-fpstore): Adjust.
17136 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17137 ppc476-fpstore): Adjust.
17138 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17139 ppc601-fpstore): Adjust.
17140 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17141 Adjust.
17142 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17143 Adjust.
17144 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17145 ppc7450-fpstore): Adjust.
17146 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17147 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17148 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17149 Adjust.
17150 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17151 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17152 cell-fpstore, cell-fpstore-update): Adjust.
17153 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17154 ppce300c3_store, ppce300c3_fpstore): Adjust.
17155 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17156 e500mc_fpstore): Adjust.
17157 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17158 e500mc64_store, e500mc64_fpstore): Adjust.
17159 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17160 e5500_fpstore): Adjust.
17161 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17162 e6500_fpstore): Adjust.
17163 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17164 Adjust.
17165 * config/rs6000/power4.md (power4-load, power4-load-ext,
17166 power4-load-ext-update, power4-load-ext-update-indexed,
17167 power4-load-update-indexed, power4-load-update, power4-fpload,
17168 power4-fpload-update, power4-store, power4-store-update,
17169 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17170 Adjust.
17171 * config/rs6000/power5.md (power5-load, power5-load-ext,
17172 power5-load-ext-update, power5-load-ext-update-indexed,
17173 power5-load-update-indexed, power5-load-update, power5-fpload,
17174 power5-fpload-update, power5-store, power5-store-update,
17175 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17176 Adjust.
17177 * config/rs6000/power6.md (power6-load, power6-load-ext,
17178 power6-load-update, power6-load-update-indexed,
17179 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17180 power6-fpload-update, power6-store, power6-store-update,
17181 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17182 Adjust.
17183 * config/rs6000/power7.md (power7-load, power7-load-ext,
17184 power7-load-update, power7-load-update-indexed,
17185 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17186 power7-fpload-update, power7-store, power7-store-update,
17187 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17188 Adjust.
17189 * config/rs6000/power8.md (power8-load, power8-load-update,
17190 power8-load-ext, power8-load-ext-update, power8-fpload,
17191 power8-fpload-update, power8-store, power8-store-update-indexed,
17192 power8-fpstore, power8-fpstore-update): Adjust.
17193 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17194 Adjust.
17195 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17196 titan_lsu_store, titan_lsu_fpstore): Adjust.
17197 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17198
17199 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17200
17201 PR target/60884
17202 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17203 unrolled byte insns. Emit address increments after move insns.
17204
17205 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17206
17207 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17208 const_gimple, rather than a gimple.
17209 (gimple_call_builtin_p): Likewise, for the three variants.
17210
17211 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17212 (gimple_call_builtin_p): Likewise, for the three variants.
17213
17214 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17215
17216 PR tree-optimization/61095
17217 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17218
17219 2014-05-07 Richard Biener <rguenther@suse.de>
17220
17221 PR tree-optimization/61034
17222 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17223 (maybe_skip_until): Use translate to take into account
17224 lattices when trying to do disambiguations.
17225 (get_continuation_for_phi_1): Likewise.
17226 (get_continuation_for_phi): Adjust for added translate arguments.
17227 (walk_non_aliased_vuses): Likewise.
17228 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17229 (walk_non_aliased_vuses): Likewise.
17230 (call_may_clobber_ref_p_1): Declare.
17231 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17232 calls. Stop early if we are only supposed to disambiguate.
17233 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17234
17235 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17236
17237 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17238 Emit an error when the function has arguments.
17239
17240 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17241
17242 * cfgloop.h (unswitch_loops): Remove.
17243 * doc/passes.texi: Remove references to loop-unswitch.c
17244 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17245
17246 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17247
17248 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17249 check for loads group of length 3.
17250 (vect_permute_load_chain): New permutations for loads group of
17251 length 3.
17252 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17253 of vec_perm_shuffle for the new permutations.
17254
17255 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17256
17257 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17258 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17259 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17260 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17261 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17262 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17263 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17264 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17265
17266 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17267
17268 * loop-unswitch.c: Delete.
17269
17270 2014-05-07 Richard Biener <rguenther@suse.de>
17271
17272 * config.gcc: Always set need_64bit_hwint to yes.
17273
17274 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17275
17276 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17277 of using optimize_size.
17278
17279 2014-05-06 Mike Stump <mikestump@comcast.net>
17280
17281 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17282
17283 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17284
17285 * config/i386/sse.md (*mov<mode>_internal)
17286 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17287 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17288 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17289 (*<code><mode>3, *andnot<mode>3<mask_name>)
17290 (<mask_codefor><code><mode>3<mask_name>): Only consider
17291 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17292
17293 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17294
17295 Revert:
17296 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17297
17298 * lra-constraints.c (valid_address_p): Move earlier in file.
17299 Add a constraint argument to the address_info version.
17300 (satisfies_memory_constraint_p): New function.
17301 (satisfies_address_constraint_p): Likewise.
17302 (process_alt_operands, curr_insn_transform): Use them.
17303 (process_address): Pass the constraint to valid_address_p when
17304 checking address operands.
17305
17306 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17307
17308 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17309 to their respective blocks. Fix inadvertent use of "node".
17310
17311 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17312
17313 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17314 out from...
17315 (init_emit_once): ...here.
17316 * rtl.h (init_derived_machine_modes): Declare.
17317 * toplev.c (do_compile): Call it even if no_backend.
17318
17319 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17320 Mike Stump <mikestump@comcast.net>
17321 Richard Sandiford <rdsandiford@googlemail.com>
17322 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17323
17324 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17325 (rtx_equal_for_memref_p): Update comment.
17326 (adjust_offset_for_component_ref): Use wide-int interfaces.
17327 * builtins.c (get_object_alignment_2): Likewise.
17328 (c_readstr): Likewise.
17329 (target_char_cast): Add comment.
17330 (determine_block_size): Use wide-int interfaces.
17331 (expand_builtin_signbit): Likewise.
17332 (fold_builtin_int_roundingfn): Likewise.
17333 (fold_builtin_bitop): Likewise.
17334 (fold_builtin_bswap): Likewise.
17335 (fold_builtin_logarithm): Use signop.
17336 (fold_builtin_pow): Likewise.
17337 (fold_builtin_memory_op): Use wide-int interfaces.
17338 (fold_builtin_object_size): Likewise.
17339 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17340 nb_iterations_estimate.
17341 (record_niter_bound): Use wide-int interfaces.
17342 (get_estimated_loop_iterations_int): Likewise.
17343 (get_estimated_loop_iterations): Likewise.
17344 (get_max_loop_iterations): Likewise.
17345 * cfgloop.h: Include wide-int.h.
17346 (struct nb_iter_bound): Change bound to widest_int.
17347 (struct loop): Change nb_iterations_upper_bound and
17348 nb_iterations_estimate to widest_int.
17349 (record_niter_bound): Switch to use widest_int.
17350 (get_estimated_loop_iterations): Likewise.
17351 (get_max_loop_iterations): Likewise.
17352 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17353 update for wide-int.
17354 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17355 * combine.c (try_combine): Likewise.
17356 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17357 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17358 interfaces.
17359 (aarch64_float_const_representable_p): Likewise.
17360 * config/arc/arc.c: Include wide-int.h.
17361 (arc_can_use_doloop_p): Use wide-int interfaces.
17362 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17363 (vfp3_const_double_index): Likewise.
17364 * config/avr/avr.c (avr_out_round): Likewise.
17365 (avr_fold_builtin): Likewise.
17366 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17367 (bfin_can_use_doloop_p): Likewise.
17368 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17369 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17370 * config/i386/i386.c: Include wide-int.h.
17371 (ix86_data_alignment): Use wide-int interfaces.
17372 (ix86_local_alignment): Likewise.
17373 (ix86_emit_swsqrtsf): Update real_from_integer.
17374 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17375 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17376 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17377 (zero_constant): Likewise.
17378 (input_operand): Likewise.
17379 (splat_input_operand): Likewise.
17380 (non_logical_cint_operand): Change const_double to const_wide_int.
17381 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17382 (easy_altivec_constant): Remove comment.
17383 (paired_expand_vector_init): Use CONSTANT_P.
17384 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17385 (rs6000_emit_move): Update checks.
17386 (rs6000_aggregate_candidate): Use wide-int interfaces.
17387 (rs6000_expand_ternop_builtin): Likewise.
17388 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17389 (rs6000_assemble_integer): Likewise.
17390 (rs6000_hash_constant): Likewise.
17391 (output_toc): Likewise.
17392 (rs6000_rtx_costs): Likewise.
17393 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17394 * config/rs6000/rs6000-c.c: Include wide-int.h.
17395 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17396 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17397 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17398 Handle CONST_WIDE_INT.
17399 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17400 Use tree_fits_uhwi_p.
17401 * config/sparc/sparc.c: Include wide-int.h.
17402 (sparc_fold_builtin): Use wide-int interfaces.
17403 * config/vax/vax.c: Include wide-int.h.
17404 (vax_float_literal): Use real_from_integer.
17405 * coretypes.h (struct hwivec_def): New.
17406 (hwivec): New.
17407 (const_hwivec): New.
17408 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17409 (equiv_constant): Handle CONST_WIDE_INT.
17410 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17411 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17412 * dbxout.c (stabstr_U): Use wide-int interfaces.
17413 (dbxout_type): Update to use cst_fits_shwi_p.
17414 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17415 (TARGET_SUPPORTS_WIDE_INT): Add default.
17416 * dfp.c: Include wide-int.h.
17417 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17418 decimal_real_to_integer.
17419 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17420 decimal_real_to_integer.
17421 * doc/generic.texi (Constant expressions): Update for wide_int.
17422 * doc/rtl.texi (const_double): Likewise.
17423 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17424 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17425 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17426 (REAL_VALUE_FROM_INT): Remove.
17427 (TARGET_SUPPORTS_WIDE_INT): New.
17428 * doc/tm.texi: Regenerate.
17429 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17430 * double-int.h: Include wide-int.h.
17431 (struct wi::int_traits): New.
17432 * dwarf2out.c (get_full_len): New.
17433 (dw_val_equal_p): Add case dw_val_class_wide_int.
17434 (size_of_loc_descr): Likewise.
17435 (output_loc_operands): Likewise.
17436 (insert_double): Remove.
17437 (insert_wide_int): New.
17438 (add_AT_wide): New.
17439 (print_die): Add case dw_val_class_wide_int.
17440 (attr_checksum): Likewise.
17441 (attr_checksum_ordered): Likewise.
17442 (same_dw_val_p): Likewise.
17443 (size_of_die): Likewise.
17444 (value_format): Likewise.
17445 (output_die): Likewise.
17446 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17447 Use wide-int.
17448 (clz_loc_descriptor): Use wide-int interfaces.
17449 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17450 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17451 (round_up_to_align): Use wide-int interfaces.
17452 (field_byte_offset): Likewise.
17453 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17454 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17455 CONST_DOUBLE handling. Use wide-int interfaces.
17456 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17457 (gen_enumeration_type_die): Use add_AT_wide.
17458 (hash_loc_operands): Add case dw_val_class_wide_int.
17459 (compare_loc_operands): Likewise.
17460 * dwarf2out.h: Include wide-int.h.
17461 (wide_int_ptr): New.
17462 (enum dw_val_class): Add dw_val_class_wide_int.
17463 (struct dw_val_struct): Add val_wide.
17464 * emit-rtl.c (const_wide_int_htab): New.
17465 (const_wide_int_htab_hash): New.
17466 (const_wide_int_htab_eq): New.
17467 (lookup_const_wide_int): New.
17468 (const_double_htab_hash): Use wide-int interfaces.
17469 (const_double_htab_eq): Likewise.
17470 (rtx_to_double_int): Conditionally compile for wide-int.
17471 (immed_double_int_const): Rename to immed_wide_int_const and
17472 update for wide-int.
17473 (immed_double_const): Conditionally compile for wide-int.
17474 (init_emit_once): Use wide-int interfaces.
17475 * explow.c (plus_constant): Likewise.
17476 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17477 (lshift_value): Use wide-int interfaces.
17478 (expand_mult): Likewise.
17479 (choose_multiplier): Likewise.
17480 (expand_smod_pow2): Likewise.
17481 (make_tree): Likewise.
17482 * expr.c (convert_modes): Consolidate handling of constants.
17483 Use wide-int interfaces.
17484 (emit_group_load_1): Add note.
17485 (store_expr): Update comment.
17486 (get_inner_reference): Use wide-int interfaces.
17487 (expand_constructor): Update comment.
17488 (expand_expr_real_2): Use wide-int interfaces.
17489 (expand_expr_real_1): Likewise.
17490 (reduce_to_bit_field_precision): Likewise.
17491 (const_vector_from_tree): Likewise.
17492 * final.c: Include wide-int-print.h.
17493 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17494 * fixed-value.c: Include wide-int.h.
17495 (fixed_from_string): Use wide-int interfaces.
17496 (fixed_to_decimal): Likewise.
17497 (fixed_convert_from_real): Likewise.
17498 (real_convert_from_fixed): Likewise.
17499 * fold-const.h (mem_ref_offset): Return an offset_int.
17500 (div_if_zero_remainder): Remove code parameter.
17501 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17502 Use wide-int interfaces.
17503 (may_negate_without_overflow_p): Use wide-int interfaces.
17504 (negate_expr_p): Likewise.
17505 (fold_negate_expr): Likewise.
17506 (int_const_binop_1): Likewise.
17507 (const_binop): Likewise.
17508 (fold_convert_const_int_from_int): Likewise.
17509 (fold_convert_const_int_from_real): Likewise.
17510 (fold_convert_const_int_from_fixed): Likewise.
17511 (fold_convert_const_fixed_from_int): Likewise.
17512 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17513 (sign_bit_p): Use wide-int interfaces.
17514 (make_range_step): Likewise.
17515 (build_range_check): Likewise. Pass an integer of the correct type
17516 instead of using integer_one_node.
17517 (range_predecessor): Pass an integer of the correct type instead
17518 of using integer_one_node.
17519 (range_successor): Likewise.
17520 (merge_ranges): Likewise.
17521 (unextend): Use wide-int interfaces.
17522 (extract_muldiv_1): Likewise.
17523 (fold_div_compare): Likewise.
17524 (fold_single_bit_test): Likewise.
17525 (fold_sign_changed_comparison): Likewise.
17526 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17527 (fold_plusminus_mult_expr): Use wide-int interfaces.
17528 (native_encode_int): Likewise.
17529 (native_interpret_int): Likewise.
17530 (fold_unary_loc): Likewise.
17531 (pointer_may_wrap_p): Likewise.
17532 (size_low_cst): Likewise.
17533 (mask_with_tz): Likewise.
17534 (fold_binary_loc): Likewise.
17535 (fold_ternary_loc): Likewise.
17536 (multiple_of_p): Likewise.
17537 (tree_call_nonnegative_warnv_p): Update calls to
17538 tree_int_cst_min_precision and real_from_integer.
17539 (fold_negate_const): Use wide-int interfaces.
17540 (fold_abs_const): Likewise.
17541 (fold_relational_const): Use tree_int_cst_lt.
17542 (round_up_loc): Use wide-int interfaces.
17543 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17544 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17545 * gengtype.c: Remove include of double-int.h.
17546 (do_typedef): Use wide-int interfaces.
17547 (open_base_files): Add wide-int.h.
17548 (main): Add offset_int and widest_int typedefs.
17549 * gengtype-lex.l: Handle "^".
17550 (CXX_KEYWORD): Add "static".
17551 * gengtype-parse.c (require3): New.
17552 (require_template_declaration): Handle constant template arguments
17553 and nested templates.
17554 * gengtype-state.c: Don't include "double-int.h".
17555 * genpreds.c (write_one_predicate_function): Update comment.
17556 (write_tm_constrs_h): Add check for hval and lval use in
17557 CONST_WIDE_INT.
17558 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17559 (add_to_sequence): Likewise.
17560 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17561 and const_double_operand.
17562 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17563 interfaces.
17564 * gimple-fold.c (get_base_constructor): Likewise.
17565 (fold_array_ctor_reference): Likewise.
17566 (fold_nonarray_ctor_reference): Likewise.
17567 (fold_const_aggregate_ref_1): Likewise.
17568 (gimple_val_nonnegative_real_p): Likewise.
17569 (gimple_fold_indirect_ref): Likewise.
17570 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17571 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17572 (struct slsr_cand_d): Change index to be widest_int.
17573 (struct incr_info_d): Change incr to be widest_int.
17574 (alloc_cand_and_find_basis): Use wide-int interfaces.
17575 (slsr_process_phi): Likewise.
17576 (backtrace_base_for_ref): Likewise. Return a widest_int.
17577 (restructure_reference): Take a widest_int instead of a double_int.
17578 (slsr_process_ref): Use wide-int interfaces.
17579 (create_mul_ssa_cand): Likewise.
17580 (create_mul_imm_cand): Likewise.
17581 (create_add_ssa_cand): Likewise.
17582 (create_add_imm_cand): Take a widest_int instead of a double_int.
17583 (slsr_process_add): Use wide-int interfaces.
17584 (slsr_process_cast): Likewise.
17585 (slsr_process_copy): Likewise.
17586 (dump_candidate): Likewise.
17587 (dump_incr_vec): Likewise.
17588 (replace_ref): Likewise.
17589 (cand_increment): Likewise. Return a widest_int.
17590 (cand_abs_increment): Likewise.
17591 (replace_mult_candidate): Take a widest_int instead of a double_int.
17592 (replace_unconditional_candidate): Use wide-int interfaces.
17593 (incr_vec_index): Take a widest_int instead of a double_int.
17594 (create_add_on_incoming_edge): Likewise.
17595 (create_phi_basis): Use wide-int interfaces.
17596 (replace_conditional_candidate): Likewise.
17597 (record_increment): Take a widest_int instead of a double_int.
17598 (record_phi_increments): Use wide-int interfaces.
17599 (phi_incr_cost): Take a widest_int instead of a double_int.
17600 (lowest_cost_path): Likewise.
17601 (total_savings): Likewise.
17602 (analyze_increments): Use wide-int interfaces.
17603 (ncd_with_phi): Take a widest_int instead of a double_int.
17604 (ncd_of_cand_and_phis): Likewise.
17605 (nearest_common_dominator_for_cands): Likewise.
17606 (insert_initializers): Use wide-int interfaces.
17607 (all_phi_incrs_profitable): Likewise.
17608 (replace_one_candidate): Likewise.
17609 (replace_profitable_candidates): Likewise.
17610 * godump.c: Include wide-int-print.h.
17611 (go_output_typedef): Use wide-int interfaces.
17612 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17613 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17614 (build_loop_iteration_domains): Likewise.
17615 * hooks.h: Include wide-int.h rather than double-int.h.
17616 (hook_bool_dint_dint_uint_bool_true): Delete.
17617 (hook_bool_wint_wint_uint_bool_true): Declare.
17618 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17619 (hook_bool_wint_wint_uint_bool_true): New.
17620 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17621 interfaces.
17622 (ubsan_expand_si_overflow_mul_check): Likewise.
17623 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17624 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17625 (get_ancestor_addr_info): Likewise.
17626 (ipa_modify_call_arguments): Likewise.
17627 * loop-doloop.c (doloop_modify): Likewise.
17628 (doloop_optimize): Likewise.
17629 * loop-iv.c (iv_number_of_iterations): Likewise.
17630 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17631 (unroll_loop_constant_iterations): Likewise.
17632 (decide_unroll_runtime_iterations): Likewise.
17633 (unroll_loop_runtime_iterations): Likewise.
17634 (decide_peel_simple): Likewise.
17635 (decide_unroll_stupid): Likewise.
17636 * lto-streamer-in.c (streamer_read_wi): Add.
17637 (input_cfg): Use wide-int interfaces.
17638 (lto_input_tree_1): Likewise.
17639 * lto-streamer-out.c (streamer_write_wi): Add.
17640 (hash_tree): Use wide-int interfaces.
17641 (output_cfg): Likewise.
17642 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17643 (GTFILES): Add wide-int.h and signop.h.
17644 (TAGS): Look for .cc files too.
17645 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17646 * optabs.c (expand_subword_shift): Likewise.
17647 (expand_doubleword_shift): Likewise.
17648 (expand_absneg_bit): Likewise.
17649 (expand_copysign_absneg): Likewise.
17650 (expand_copysign_bit): Likewise.
17651 * postreload.c (reload_cse_simplify_set): Likewise.
17652 * predict.c (predict_iv_comparison): Likewise.
17653 * pretty-print.h: Include wide-int-print.h.
17654 (pp_wide_int) New.
17655 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17656 * print-tree.c: Include wide-int-print.h.
17657 (print_node_brief): Use wide-int interfaces.
17658 (print_node): Likewise.
17659 * read-rtl.c (validate_const_wide_int): New.
17660 (read_rtx_code): Add CONST_WIDE_INT case.
17661 * real.c: Include wide-int.h.
17662 (real_to_integer2): Delete.
17663 (real_to_integer): New function, returning a wide_int.
17664 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17665 (ten_to_ptwo): Update call to real_from_integer.
17666 (real_digit): Likewise.
17667 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17668 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17669 (REAL_VALUE_TO_INT): Delete.
17670 (real_to_integer): Declare a wide-int form.
17671 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17672 * recog.c (const_int_operand): Improve comment.
17673 (const_scalar_int_operand): New.
17674 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17675 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17676 (split_double): Likewise.
17677 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17678 (rtx_size): Likewise.
17679 (rtx_alloc_stat_v): New.
17680 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17681 (cwi_output_hex): New.
17682 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17683 (cwi_check_failed_bounds): New.
17684 * rtl.def (CONST_WIDE_INT): New.
17685 * rtl.h: Include <utility> and wide-int.h.
17686 (struct hwivec_def): New.
17687 (CWI_GET_NUM_ELEM): New.
17688 (CWI_PUT_NUM_ELEM): New.
17689 (struct rtx_def): Add num_elem and hwiv.
17690 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17691 (CASE_CONST_UNIQUE): Likewise.
17692 (CASE_CONST_ANY): Likewise.
17693 (CONST_SCALAR_INT_P): Likewise.
17694 (CONST_WIDE_INT_P): New.
17695 (CWI_ELT): New.
17696 (HWIVEC_CHECK): New.
17697 (cwi_check_failed_bounds): New.
17698 (CWI_ELT): New.
17699 (HWIVEC_CHECK): New.
17700 (CONST_WIDE_INT_VEC) New.
17701 (CONST_WIDE_INT_NUNITS) New.
17702 (CONST_WIDE_INT_ELT) New.
17703 (rtx_mode_t): New type.
17704 (wi::int_traits <rtx_mode_t>): New.
17705 (wi::shwi): New.
17706 (wi::min_value): New.
17707 (wi::max_value): New.
17708 (rtx_alloc_v) New.
17709 (const_wide_int_alloc): New.
17710 (immed_wide_int_const): New.
17711 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17712 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17713 * signop.h: New file.
17714 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17715 (simplify_const_unary_operation): Use wide-int interfaces.
17716 (simplify_binary_operation_1): Likewise.
17717 (simplify_const_binary_operation): Likewise.
17718 (simplify_const_relational_operation): Likewise.
17719 (simplify_immed_subreg): Likewise.
17720 * stmt.c (expand_case): Likewise.
17721 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17722 signop rather than a bool.
17723 * stor-layout.c (layout_type): Use wide-int interfaces.
17724 (initialize_sizetypes): Update calls to
17725 set_min_and_max_values_for_integral_type.
17726 (set_min_and_max_values_for_integral_type): Take a signop rather
17727 than a bool. Use wide-int interfaces.
17728 (fixup_signed_type): Update accordingly. Remove
17729 HOST_BITS_PER_DOUBLE_INT limit.
17730 (fixup_unsigned_type): Likewise.
17731 * system.h (STATIC_CONSTANT_P): New.
17732 (STATIC_ASSERT): New.
17733 * target.def (can_use_doloop_p): Take widest_ints rather than
17734 double_ints.
17735 * target.h: Include wide-int.h rather than double-int.h.
17736 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17737 than double_ints.
17738 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17739 rather than INT_CST_LT_UNSIGNED.
17740 (can_use_doloop_if_innermost): Take widest_ints rather than
17741 double_ints.
17742 * tree-affine.c: Include wide-int-print.h.
17743 (double_int_ext_for_comb): Delete.
17744 (wide_int_ext_for_comb): New.
17745 (aff_combination_zero): Use wide-int interfaces.
17746 (aff_combination_const): Take a widest_int instead of a double_int.
17747 (aff_combination_elt): Use wide-int interfaces.
17748 (aff_combination_scale): Take a widest_int instead of a double_int.
17749 (aff_combination_add_elt): Likewise.
17750 (aff_combination_add_cst): Likewise.
17751 (aff_combination_add): Use wide-int interfaces.
17752 (aff_combination_convert): Likewise.
17753 (tree_to_aff_combination): Likewise.
17754 (add_elt_to_tree): Take a widest_int instead of a double_int.
17755 (aff_combination_to_tree): Use wide-int interfaces.
17756 (aff_combination_remove_elt): Likewise.
17757 (aff_combination_add_product): Take a widest_int instead of
17758 a double_int.
17759 (aff_combination_mult): Use wide-int interfaces.
17760 (aff_combination_expand): Likewise.
17761 (double_int_constant_multiple_p): Delete.
17762 (wide_int_constant_multiple_p): New.
17763 (aff_combination_constant_multiple_p): Take a widest_int pointer
17764 instead of a double_int pointer.
17765 (print_aff): Use wide-int interfaces.
17766 (get_inner_reference_aff): Take a widest_int pointer
17767 instead of a double_int pointer.
17768 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17769 * tree-affine.h: Include wide-int.h.
17770 (struct aff_comb_elt): Change type of coef to widest_int.
17771 (struct affine_tree_combination): Change type of offset to widest_int.
17772 (double_int_ext_for_comb): Delete.
17773 (wide_int_ext_for_comb): New.
17774 (aff_combination_const): Use widest_int instead of double_int.
17775 (aff_combination_scale): Likewise.
17776 (aff_combination_add_elt): Likewise.
17777 (aff_combination_constant_multiple_p): Likewise.
17778 (get_inner_reference_aff): Likewise.
17779 (aff_comb_cannot_overlap_p): Likewise.
17780 (aff_combination_zero_p): Use wide-int interfaces.
17781 * tree.c: Include tree.h.
17782 (init_ttree): Use make_int_cst.
17783 (tree_code_size): Removed code for INTEGER_CST case.
17784 (tree_size): Add INTEGER_CST case.
17785 (make_node_stat): Update comment.
17786 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17787 (build_int_cst_type): Use wide-int interfaces.
17788 (double_int_to_tree): Likewise.
17789 (double_int_fits_to_tree_p): Delete.
17790 (force_fit_type_double): Delete.
17791 (force_fit_type): New.
17792 (int_cst_hash_hash): Use wide-int interfaces.
17793 (int_cst_hash_eq): Likewise.
17794 (build_int_cst_wide): Delete.
17795 (wide_int_to_tree): New.
17796 (cache_integer_cst): Use wide-int interfaces.
17797 (build_low_bits_mask): Likewise.
17798 (cst_and_fits_in_hwi): Likewise.
17799 (real_value_from_int_cst): Likewise.
17800 (make_int_cst_stat): New.
17801 (integer_zerop): Use wide_int interfaces.
17802 (integer_onep): Likewise.
17803 (integer_all_onesp): Likewise.
17804 (integer_pow2p): Likewise.
17805 (integer_nonzerop): Likewise.
17806 (tree_log2): Likewise.
17807 (tree_floor_log2): Likewise.
17808 (tree_ctz): Likewise.
17809 (int_size_in_bytes): Likewise.
17810 (mem_ref_offset): Return an offset_int rather than a double_int.
17811 (build_type_attribute_qual_variant): Use wide_int interfaces.
17812 (type_hash_eq): Likewise
17813 (tree_int_cst_equal): Likewise.
17814 (tree_int_cst_lt): Delete.
17815 (tree_int_cst_compare): Likewise.
17816 (tree_fits_shwi_p): Use wide_int interfaces.
17817 (tree_fits_uhwi_p): Likewise.
17818 (tree_int_cst_sign_bit): Likewise.
17819 (tree_int_cst_sgn): Likewise.
17820 (tree_int_cst_min_precision): Take a signop rather than a bool.
17821 (simple_cst_equal): Use wide_int interfaces.
17822 (compare_tree_int): Likewise.
17823 (iterative_hash_expr): Likewise.
17824 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17825 INT_CST_LT.
17826 (get_type_static_bounds): Use wide_int interfaces.
17827 (tree_int_cst_elt_check_failed): New.
17828 (build_common_tree_nodes): Reordered to set prec before filling in
17829 value.
17830 (int_cst_value): Check cst_and_fits_in_hwi.
17831 (widest_int_cst_value): Use wide_int interfaces.
17832 (upper_bound_in_type): Likewise.
17833 (lower_bound_in_type): Likewise.
17834 (num_ending_zeros): Likewise.
17835 (drop_tree_overflow): Likewise.
17836 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17837 (gen_conditions_for_pow_cst_base): Likewise.
17838 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17839 (group_case_labels_stmt): Use wide-int interfaces.
17840 (verify_gimple_assign_binary): Likewise.
17841 (print_loop): Likewise.
17842 * tree-chrec.c (tree_fold_binomial): Likewise.
17843 * tree-core.h (struct tree_base): Add int_length.
17844 (struct tree_int_cst): Change rep of value.
17845 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17846 (dr_may_alias_p): Likewise.
17847 (max_stmt_executions_tree): Likewise.
17848 * tree.def (INTEGER_CST): Update comment.
17849 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17850 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17851 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17852 (dequeue_and_dump): Use wide-int interfaces.
17853 * tree.h: Include wide-int.h.
17854 (NULL_TREE): Moved to earlier loc in file.
17855 (TREE_INT_CST_ELT_CHECK): New.
17856 (tree_int_cst_elt_check_failed): New.
17857 (TYPE_SIGN): New.
17858 (TREE_INT_CST): Delete.
17859 (TREE_INT_CST_LOW): Use wide-int interfaces.
17860 (TREE_INT_CST_HIGH): Delete.
17861 (TREE_INT_CST_NUNITS): New.
17862 (TREE_INT_CST_EXT_NUNITS): Likewise.
17863 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17864 (TREE_INT_CST_ELT): Likewise.
17865 (INT_CST_LT): Delete.
17866 (tree_int_cst_elt_check): New (two forms).
17867 (type_code_size): Update comment.
17868 (make_int_cst_stat, make_int_cst): New.
17869 (tree_to_double_int): Delete.
17870 (double_int_fits_to_tree_p): Delete.
17871 (force_fit_type_double): Delete.
17872 (build_int_cstu): Replace with out-of-line function.
17873 (build_int_cst_wide): Delete.
17874 (tree_int_cst_lt): Define inline.
17875 (tree_int_cst_le): New.
17876 (tree_int_cst_compare): Define inline.
17877 (tree_int_cst_min_precision): Take a signop rather than a bool.
17878 (wi::int_traits <const_tree>): New.
17879 (wi::int_traits <tree>): New.
17880 (wi::extended_tree): New.
17881 (wi::int_traits <wi::extended_tree>): New.
17882 (wi::to_widest): New.
17883 (wi::to_offset): New.
17884 (wi::fits_to_tree_p): New.
17885 (wi::min_value): New.
17886 (wi::max_value): New.
17887 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17888 (copy_tree_body_r): Likewise.
17889 * tree-object-size.c (compute_object_offset): Likewise.
17890 (addr_object_size): Likewise.
17891 * tree-predcom.c: Include wide-int-print.h.
17892 (struct dref_d): Change type of offset to widest_int.
17893 (dump_dref): Call wide-int printer.
17894 (aff_combination_dr_offset): Use wide-int interfaces.
17895 (determine_offset): Take a widest_int pointer rather than a
17896 double_int pointer.
17897 (split_data_refs_to_components): Use wide-int interfaces.
17898 (suitable_component_p): Likewise.
17899 (order_drefs): Likewise.
17900 (add_ref_to_chain): Likewise.
17901 (valid_initializer_p): Likewise.
17902 (determine_roots_comp): Likewise.
17903 * tree-pretty-print.c: Include wide-int-print.h.
17904 (dump_generic_node): Use wide-int interfaces.
17905 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17906 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17907 (move_fixed_address_to_symbol): Likewise.
17908 (move_hint_to_base): Likewise.
17909 (move_pointer_to_base): Likewise.
17910 (move_variant_to_index): Likewise.
17911 (most_expensive_mult_to_index): Likewise.
17912 (addr_to_parts): Likewise.
17913 (copy_ref_info): Likewise.
17914 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17915 (indirect_refs_may_alias_p): Likewise.
17916 (stmt_kills_ref_p_1): Likewise.
17917 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17918 * tree-ssa-ccp.c: Update comment at top of file. Include
17919 wide-int-print.h.
17920 (struct prop_value_d): Change type of mask to widest_int.
17921 (extend_mask): New function.
17922 (dump_lattice_value): Use wide-int interfaces.
17923 (get_default_value): Likewise.
17924 (set_constant_value): Likewise.
17925 (set_value_varying): Likewise.
17926 (valid_lattice_transition): Likewise.
17927 (set_lattice_value): Likewise.
17928 (value_to_double_int): Delete.
17929 (value_to_wide_int): New.
17930 (get_value_from_alignment): Use wide-int interfaces.
17931 (get_value_for_expr): Likewise.
17932 (do_dbg_cnt): Likewise.
17933 (ccp_finalize): Likewise.
17934 (ccp_lattice_meet): Likewise.
17935 (bit_value_unop_1): Use widest_ints rather than double_ints.
17936 (bit_value_binop_1): Likewise.
17937 (bit_value_unop): Use wide-int interfaces.
17938 (bit_value_binop): Likewise.
17939 (bit_value_assume_aligned): Likewise.
17940 (evaluate_stmt): Likewise.
17941 (ccp_fold_stmt): Likewise.
17942 (visit_cond_stmt): Likewise.
17943 (ccp_visit_stmt): Likewise.
17944 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17945 (constant_pointer_difference): Likewise.
17946 (associate_pointerplus): Likewise.
17947 (combine_conversions): Likewise.
17948 * tree-ssa-loop.h: Include wide-int.h.
17949 (struct tree_niter_desc): Change type of max to widest_int.
17950 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17951 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17952 (remove_redundant_iv_tests): Likewise.
17953 (canonicalize_loop_induction_variables): Likewise.
17954 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17955 (constant_multiple_of): Take a widest_int pointer instead of
17956 a double_int pointer.
17957 (get_computation_aff): Use wide-int interfaces.
17958 (ptr_difference_cost): Likewise.
17959 (difference_cost): Likewise.
17960 (get_loop_invariant_expr_id): Likewise.
17961 (get_computation_cost_at): Likewise.
17962 (iv_elimination_compare_lt): Likewise.
17963 (may_eliminate_iv): Likewise.
17964 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17965 instead of double_int.
17966 (max_loop_iterations): Likewise.
17967 (max_stmt_executions): Likewise.
17968 (estimated_stmt_executions): Likewise.
17969 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17970 (split_to_var_and_offset): Use wide-int interfaces.
17971 (determine_value_range): Likewise.
17972 (bound_difference_of_offsetted_base): Likewise.
17973 (bounds_add): Take a widest_int instead of a double_int.
17974 (number_of_iterations_ne_max): Use wide-int interfaces.
17975 (number_of_iterations_ne): Likewise.
17976 (number_of_iterations_lt_to_ne): Likewise.
17977 (assert_loop_rolls_lt): Likewise.
17978 (number_of_iterations_lt): Likewise.
17979 (number_of_iterations_le): Likewise.
17980 (number_of_iterations_cond): Likewise.
17981 (number_of_iterations_exit): Likewise.
17982 (finite_loop_p): Likewise.
17983 (derive_constant_upper_bound_assign): Likewise.
17984 (derive_constant_upper_bound): Return a widest_int.
17985 (derive_constant_upper_bound_ops): Likewise.
17986 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17987 (record_estimate): Take a widest_int rather than a double_int.
17988 (record_nonwrapping_iv): Use wide-int interfaces.
17989 (double_int_cmp): Delete.
17990 (wide_int_cmp): New.
17991 (bound_index): Take a widest_int rather than a double_int.
17992 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17993 (maybe_lower_iteration_bound): Likewise.
17994 (estimate_numbers_of_iterations_loop): Likewise.
17995 (estimated_loop_iterations): Take a widest_int pointer than than
17996 a double_int pointer.
17997 (estimated_loop_iterations_int): Use wide-int interfaces.
17998 (max_loop_iterations): Take a widest_int pointer than than
17999 a double_int pointer.
18000 (max_loop_iterations_int): Use wide-int interfaces.
18001 (max_stmt_executions): Take a widest_int pointer than than
18002 a double_int pointer.
18003 (estimated_stmt_executions): Likewise.
18004 (n_of_executions_at_most): Use wide-int interfaces.
18005 (scev_probably_wraps_p): Likewise.
18006 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18007 to real_to_integer.
18008 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18009 interfaces.
18010 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18011 double_ints. Adjust for trailing_wide_ints <3> representation.
18012 (set_nonzero_bits): Likewise.
18013 (get_range_info): Return wide_ints rather than double_ints.
18014 Adjust for trailing_wide_ints <3> representation.
18015 (get_nonzero_bits): Likewise.
18016 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18017 representation.
18018 * tree-ssanames.h (struct range_info_def): Replace min, max and
18019 nonzero_bits with a trailing_wide_ints <3>.
18020 (set_range_info): Use wide_int_refs rather than double_ints.
18021 (set_nonzero_bits): Likewise.
18022 (get_range_info): Return wide_ints rather than double_ints.
18023 (get_nonzero_bits): Likewise.
18024 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18025 * tree-ssa-pre.c (phi_translate_1): Likewise.
18026 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18027 (acceptable_pow_call): Likewise.
18028 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18029 interfaces.
18030 (vn_reference_fold_indirect): Likewise.
18031 (vn_reference_maybe_forwprop_address): Likewise.
18032 (valueize_refs_1): Likewise.
18033 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18034 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18035 tree_int_cst_lt and tree_int_cst_le.
18036 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18037 interfaces.
18038 (streamer_alloc_tree): Likewise.
18039 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18040 (streamer_write_tree_header): Likewise.
18041 (streamer_write_integer_cst): Likewise.
18042 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18043 (build_constructors): Likewise.
18044 (array_value_type): Likewise.
18045 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18046 (vect_check_gather): Likewise.
18047 * tree-vect-generic.c (build_replicated_const): Likewise.
18048 (expand_vector_divmod): Likewise.
18049 * tree-vect-loop.c (vect_transform_loop): Likewise.
18050 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18051 (vect_do_peeling_for_alignment): Likewise.
18052 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18053 * tree-vrp.c: Include wide-int.h.
18054 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18055 (extract_range_from_assert): Use wide-int interfaces.
18056 (vrp_int_const_binop): Likewise.
18057 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18058 double_int pointers.
18059 (ranges_from_anti_range): Use wide-int interfaces.
18060 (quad_int_cmp): Delete.
18061 (quad_int_pair_sort): Likewise.
18062 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18063 (extract_range_from_unary_expr_1): Likewise.
18064 (adjust_range_with_scev): Likewise.
18065 (masked_increment): Take and return wide_ints rather than double_ints.
18066 (register_edge_assert_for_2): Use wide-int interfaces.
18067 (check_array_ref): Likewise.
18068 (search_for_addr_array): Likewise.
18069 (maybe_set_nonzero_bits): Likewise.
18070 (union_ranges): Pass an integer of the correct type instead of
18071 using integer_one_node.
18072 (intersect_ranges): Likewise.
18073 (simplify_truth_ops_using_ranges): Likewise.
18074 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18075 (range_fits_type_p): Likewise.
18076 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18077 a bool.
18078 (simplify_conversion_using_ranges): Use wide-int interfaces.
18079 (simplify_float_conversion_using_ranges): Likewise.
18080 (vrp_finalize): Likewise.
18081 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18082 (gimple_stringops_transform): Likewise.
18083 * varasm.c (decode_addr_const): Likewise.
18084 (const_hash_1): Likewise.
18085 (const_rtx_hash_1): Likewise
18086 (output_constant): Likewise.
18087 (array_size_for_constructor): Likewise.
18088 (output_constructor_regular_field): Likewise.
18089 (output_constructor_bitfield): Likewise.
18090 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18091 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18092 GENERATOR_FILEs.
18093 * gencheck.c: Define BITS_PER_UNIT.
18094 * wide-int.cc: New.
18095 * wide-int.h: New.
18096 * wide-int-print.cc: New.
18097 * wide-int-print.h: New.
18098
18099 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18100
18101 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18102
18103 2014-05-06 Richard Biener <rguenther@suse.de>
18104
18105 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18106 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18107 (TODO_verify_all): Adjust.
18108 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18109 TODO_verify_stmts and TODO_verify_rtl_sharing.
18110 * bb-reorder.c: Likewise.
18111 * cfgexpand.c: Likewise.
18112 * cprop.c: Likewise.
18113 * cse.c: Likewise.
18114 * function.c: Likewise.
18115 * fwprop.c: Likewise.
18116 * gcse.c: Likewise.
18117 * gimple-ssa-isolate-paths.c: Likewise.
18118 * gimple-ssa-strength-reduction.c: Likewise.
18119 * ipa-split.c: Likewise.
18120 * loop-init.c: Likewise.
18121 * loop-unroll.c: Likewise.
18122 * lower-subreg.c: Likewise.
18123 * modulo-sched.c: Likewise.
18124 * postreload-gcse.c: Likewise.
18125 * predict.c: Likewise.
18126 * recog.c: Likewise.
18127 * sched-rgn.c: Likewise.
18128 * store-motion.c: Likewise.
18129 * tracer.c: Likewise.
18130 * trans-mem.c: Likewise.
18131 * tree-call-cdce.c: Likewise.
18132 * tree-cfg.c: Likewise.
18133 * tree-cfgcleanup.c: Likewise.
18134 * tree-complex.c: Likewise.
18135 * tree-eh.c: Likewise.
18136 * tree-emutls.c: Likewise.
18137 * tree-if-conv.c: Likewise.
18138 * tree-into-ssa.c: Likewise.
18139 * tree-loop-distribution.c: Likewise.
18140 * tree-object-size.c: Likewise.
18141 * tree-parloops.c: Likewise.
18142 * tree-pass.h: Likewise.
18143 * tree-sra.c: Likewise.
18144 * tree-ssa-ccp.c: Likewise.
18145 * tree-ssa-copy.c: Likewise.
18146 * tree-ssa-copyrename.c: Likewise.
18147 * tree-ssa-dce.c: Likewise.
18148 * tree-ssa-dom.c: Likewise.
18149 * tree-ssa-dse.c: Likewise.
18150 * tree-ssa-forwprop.c: Likewise.
18151 * tree-ssa-ifcombine.c: Likewise.
18152 * tree-ssa-loop-ch.c: Likewise.
18153 * tree-ssa-loop-ivcanon.c: Likewise.
18154 * tree-ssa-loop.c: Likewise.
18155 * tree-ssa-math-opts.c: Likewise.
18156 * tree-ssa-phiopt.c: Likewise.
18157 * tree-ssa-phiprop.c: Likewise.
18158 * tree-ssa-pre.c: Likewise.
18159 * tree-ssa-reassoc.c: Likewise.
18160 * tree-ssa-sink.c: Likewise.
18161 * tree-ssa-strlen.c: Likewise.
18162 * tree-ssa-tail-merge.c: Likewise.
18163 * tree-ssa-uncprop.c: Likewise.
18164 * tree-switch-conversion.c: Likewise.
18165 * tree-tailcall.c: Likewise.
18166 * tree-vect-generic.c: Likewise.
18167 * tree-vectorizer.c: Likewise.
18168 * tree-vrp.c: Likewise.
18169 * tsan.c: Likewise.
18170 * var-tracking.c: Likewise.
18171 * bt-load.c: Likewise.
18172 * cfgcleanup.c: Likewise.
18173 * combine-stack-adj.c: Likewise.
18174 * combine.c: Likewise.
18175 * compare-elim.c: Likewise.
18176 * config/epiphany/resolve-sw-modes.c: Likewise.
18177 * config/i386/i386.c: Likewise.
18178 * config/mips/mips.c: Likewise.
18179 * config/s390/s390.c: Likewise.
18180 * config/sh/sh_treg_combine.cc: Likewise.
18181 * config/sparc/sparc.c: Likewise.
18182 * dce.c: Likewise.
18183 * dse.c: Likewise.
18184 * final.c: Likewise.
18185 * ifcvt.c: Likewise.
18186 * mode-switching.c: Likewise.
18187 * passes.c: Likewise.
18188 * postreload.c: Likewise.
18189 * ree.c: Likewise.
18190 * reg-stack.c: Likewise.
18191 * regcprop.c: Likewise.
18192 * regrename.c: Likewise.
18193 * web.c: Likewise.
18194
18195 2014-05-06 Richard Biener <rguenther@suse.de>
18196
18197 PR middle-end/61070
18198 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18199 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18200
18201 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18202
18203 PR ipa/60965
18204 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18205
18206 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18207 Tom de Vries <tom@codesourcery.com>
18208
18209 * target.def (call_fusage_contains_non_callee_clobbers): New
18210 DEFHOOKPOD.
18211 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18212 Hooks to @menu.
18213 (@node Miscellaneous Register Hooks): New node.
18214 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18215 * doc/tm.texi: Regenerate.
18216
18217 2014-05-05 Marek Polacek <polacek@redhat.com>
18218
18219 PR driver/61065
18220 * opts.c (common_handle_option): Call error_at instead of warning_at.
18221
18222 2014-05-05 Richard Biener <rguenther@suse.de>
18223
18224 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18225 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18226 under the TODO_verify_il umbrella.
18227
18228 2014-05-05 Richard Biener <rguenther@suse.de>
18229
18230 * passes.c (execute_function_todo): Move TODO_verify_flow under
18231 the TODO_verify_ul umbrella.
18232
18233 2014-05-05 Richard Biener <rguenther@suse.de>
18234
18235 PR middle-end/61010
18236 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18237 X & CST away from a CST that is the mask of a mode.
18238
18239 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18240
18241 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18242 int argument to enum machine_mode.
18243 (picochip_class_max_nregs): Ditto.
18244 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18245 (picochip_class_max_nregs): Ditto.
18246
18247 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18248
18249 * target.def: Add new target hook.
18250 * doc/tm.texi: Regenerate.
18251 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18252 * targhooks.c (default_keep_leaf_when_profiled): New function.
18253
18254 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18255 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18256
18257 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18258
18259 PR tree-optimization/60363
18260 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18261 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18262 (update_destination_phis): New parameter.
18263 (create_edge_and_update_destination_phis): Ditto.
18264 (ssa_fix_duplicate_block_edges): Pass new arguments.
18265 (thread_single_edge): Ditto.
18266
18267 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18268
18269 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18270 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18271 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18272 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18273 Use RS6000_BTM_HARD_FLOAT.
18274 (BU_MISC_2): Likewise.
18275 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18276 RS6000_BTM_HARD_FLOAT.
18277 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18278 is explicitly used.
18279 (rs6000_invalid_builtin): Add hard floating builtin support.
18280 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18281 hard float builtins.
18282 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18283
18284 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18285
18286 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18287 Add missing function* argument.
18288
18289 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18290
18291 * lra-constraints.c (valid_address_p): Move earlier in file.
18292 Add a constraint argument to the address_info version.
18293 (satisfies_memory_constraint_p): New function.
18294 (satisfies_address_constraint_p): Likewise.
18295 (process_alt_operands, curr_insn_transform): Use them.
18296 (process_address): Pass the constraint to valid_address_p when
18297 checking address operands.
18298
18299 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18300
18301 * config/mips/mips.c (mips_isa_rev): New variable.
18302 (mips_set_architecture): Set it.
18303 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18304 from mips_isa_rev.
18305 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18306 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18307 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18308 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18309 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18310 conditions in terms of mips_isa_rev.
18311 (mips_isa_rev): Declare.
18312
18313 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18314
18315 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18316 (prob_unlikely, prob_likely): Make variables const.
18317
18318 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18319
18320 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18321
18322 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18323
18324 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18325
18326 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18327
18328 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18329 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18330 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18331 functions.
18332 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18333 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18334 sh_pass_in_reg_p.
18335 Replace usage of ROUND_REG with sh_round_reg.
18336 Use CEIL instead of ROUND_ADVANCE.
18337
18338 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18339
18340 PR target/61026
18341 * config/sh/sh.c: Include stdlib headers before everything else.
18342
18343 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18344
18345 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18346 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18347 (gimplify_adjust_omp_clauses): Simd region is never
18348 directly nested in combined parallel. Instead, for linear
18349 with copyin/copyout, if in combined for simd loop, make decl
18350 firstprivate/lastprivate on OMP_FOR.
18351 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18352 expand_omp_for_static_chunk): When setting endvar, also set
18353 fd->loop.v to the same value.
18354
18355 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18356
18357 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18358
18359 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18360
18361 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18362 expression.
18363
18364 2014-05-02 Marek Polacek <polacek@redhat.com>
18365
18366 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18367
18368 2014-05-02 Kito Cheng <kito@0xlab.org>
18369
18370 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18371 to a C expression marco.
18372 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18373 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18374 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18375 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18376 HONOR_REG_ALLOC_ORDER.
18377 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18378
18379 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18380
18381 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18382
18383 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18384
18385 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18386
18387 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18388
18389 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18390 (convert_scalar_cond_reduction): Likewise.
18391 (predicate_scalar_phi): Add recognition and transformation
18392 of simple conditioanl reduction to be vectorizable.
18393
18394 2014-05-01 Marek Polacek <polacek@redhat.com>
18395
18396 PR c/43245
18397 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18398
18399 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18400
18401 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18402 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18403 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18404 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18405 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18406 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18407 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18408 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18409
18410 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18411
18412 * config/arc/arc.opt (mlra): Move comment above option name
18413 to avoid mis-parsing as language options.
18414
18415 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18416
18417 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18418 * config/sol2.h: ... here.
18419 * config/sol2-10.h: Remove.
18420
18421 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18422 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18423 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18424 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18425 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18426 * config/sol2.h: ... here.
18427 (SECTION_NAME_FORMAT): Don't redefine.
18428 (STARTFILE_ARCH32_SPEC): Rename to ...
18429 (STARTFILE_ARCH_SPEC): ... this.
18430 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18431 * config/sparc/sol2.h: ... here.
18432 (SECTION_NAME_FORMAT): Don't undef.
18433 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18434 (SUBTARGET_EXTRA_SPECS): Remove.
18435 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18436
18437 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18438 (MD_STARTFILE_PREFIX): Remove.
18439 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18440 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18441 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18442 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18443 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18444 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18445 * config/i386/sol2.h: ... here.
18446 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18447 * config/i386/sol2-bi.h: Remove.
18448 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18449 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18450
18451 * config/i386/t-sol2-64: Rename to ...
18452 * config/i386/t-sol2: ... this.
18453 * config/sparc/t-sol2-64: Rename to ...
18454 * config/sparc/t-sol2: ... this.
18455
18456 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18457 sol2_tm_file_head, sol2_tm_file_tail.
18458 Include ${cpu_type}/sol2.h before sol2.h.
18459 Remove sol2-10.h.
18460 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18461 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18462 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18463 Reflect i386/t-sol2-64 renaming.
18464 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18465 Reflect sparc/t-sol2-64 renaming.
18466
18467 2014-04-30 Richard Biener <rguenther@suse.de>
18468
18469 * passes.c (execute_function_todo): Move TODO_verify_stmts
18470 and TODO_verify_ssa under the TODO_verify_il umbrella.
18471 * tree-ssa.h (verify_ssa): Adjust prototype.
18472 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18473 we should verify SSA operands.
18474 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18475 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18476 whether we should verify whether not throwing stmts have EH info.
18477 * graphite-scop-detection.c (create_sese_edges): Adjust.
18478 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18479 * tree-eh.c (lower_try_finally_switch): Do not add the
18480 default case label twice.
18481
18482 2014-04-30 Marek Polacek <polacek@redhat.com>
18483
18484 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18485 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18486 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18487 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18488
18489 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18490
18491 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18492 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18493 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18494 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18495 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18496 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18497 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18498 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18499
18500 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18501
18502 * tree-cfg.c (dump_function_to_file): Dump the return type of
18503 functions, in a line to itself before the function body, mimicking
18504 the layout of a C function.
18505
18506 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18507
18508 PR tree-optimization/60971
18509 * tree-tailcall.c (process_assignment): Reject conversions which
18510 reduce precision.
18511
18512 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18513
18514 * calls.c (initialize_argument_information): Always treat
18515 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18516 (expand_call): Likewise.
18517 (emit_library_call_calue_1): Likewise.
18518 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18519 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18520 code accordingly.
18521
18522 2014-04-29 Nick Clifton <nickc@redhat.com>
18523
18524 * config/msp430/msp430.md (umulsidi): Fix typo.
18525 (mulhisi3): Enable even inside interrupt handlers.
18526 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18527 bigger return address pushed in large mode.
18528
18529 2014-04-29 Nick Clifton <nickc@redhat.com>
18530
18531 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18532 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18533 available modes.
18534 * config/m32r/m32r.c (init_reg_tables): Likewise.
18535 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18536 enum to hold the modes.
18537
18538 2014-04-29 Richard Biener <rguenther@suse.de>
18539
18540 * dominance.c (free_dominance_info): Add overload with
18541 function parameter.
18542 (dom_info_state): Likewise.
18543 (dom_info_available_p): Likewise.
18544 * basic-block.h (free_dominance_info, dom_info_state,
18545 dom_info_available_p): Declare overloads.
18546 * passes.c (execute_function_todo): Verify that verifiers
18547 don't change dominator info state. Drop dominator info
18548 for IPA pass invocations.
18549 * cgraph.c (release_function_body): Restore asserts that
18550 dominator information is released.
18551
18552 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18553
18554 * doc/invoke.texi: Fix typo.
18555 * tree-vrp.c: Fix typos.
18556 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18557
18558 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18559
18560 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18561
18562 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18563
18564 * config/aarch64/aarch64-builtins.c
18565 (aarch64_types_storestruct_lane_qualifiers): New.
18566 (TYPES_STORESTRUCT_LANE): Likewise.
18567 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18568 (st3_lane): Likewise.
18569 (st4_lane): Likewise.
18570 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18571 (vec_store_lanesci_lane<mode>): Likewise.
18572 (vec_store_lanesxi_lane<mode>): Likewise.
18573 (aarch64_st2_lane<VQ:mode>): Likewise.
18574 (aarch64_st3_lane<VQ:mode>): Likewise.
18575 (aarch64_st4_lane<VQ:mode>): Likewise.
18576 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18577 * config/aarch64/arm_neon.h
18578 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18579 use new macro arguments.
18580 (__ST3_LANE_FUNC): Likewise.
18581 (__ST4_LANE_FUNC): Likewise.
18582 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18583 (V_THREE_ELEM): Likewise.
18584 (V_FOUR_ELEM): Likewise.
18585
18586 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18587
18588 * doc/gimple.texi: Replace the description of the now-defunct
18589 union gimple_statement_d with a diagram showing the
18590 gimple_statement_base class hierarchy and its relationships to
18591 the GSS_ and GIMPLE_ enums.
18592
18593 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18594
18595 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18596 * config/aarch64/aarch64.c
18597 (aarch64_cannot_change_mode_class): Weaken conditions.
18598 (aarch64_modes_tieable_p): New.
18599 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18600
18601 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18602
18603 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18604 (loadsync_<mode>): Change mode.
18605 (load_quadpti, store_quadpti): New.
18606 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18607 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18608
18609 2014-04-28 Martin Jambor <mjambor@suse.cz>
18610
18611 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18612 same alias type as the original statement.
18613 (subreplacement_assignment_data): New type.
18614 (handle_unscalarized_data_in_subtree): New type of parameter,
18615 generate new memory accesses with same alias type as the original
18616 statement.
18617 (load_assign_lhs_subreplacements): Likewise.
18618 (sra_modify_constructor_assign): Generate new memory accesses with
18619 same alias type as the original statement.
18620
18621 2014-04-28 Richard Biener <rguenther@suse.de>
18622
18623 * tree-pass.h (TODO_verify_il): Define.
18624 (TODO_verify_all): Complete properly.
18625 * passes.c (execute_function_todo): Move existing loop-closed
18626 SSA verification under TODO_verify_il.
18627 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18628 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18629 Fix tree sharing issue.
18630
18631 2014-04-28 Richard Biener <rguenther@suse.de>
18632
18633 PR middle-end/60092
18634 * builtins.def (DEF_C11_BUILTIN): Add.
18635 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18636 * coretypes.h (enum function_class): Add function_c11_misc.
18637 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18638 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18639 (call_may_clobber_ref_p_1): Likewise.
18640 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18641 (mark_all_reaching_defs_necessary_1): Likewise.
18642 (propagate_necessity): Likewise.
18643 (eliminate_unnecessary_stmts): Likewise.
18644 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18645
18646 2014-04-28 Richard Biener <rguenther@suse.de>
18647
18648 * tree-vrp.c (vrp_var_may_overflow): Remove.
18649 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18650 with overflow immediately bump to one before that value and
18651 let iteration figure out overflow status.
18652
18653 2014-04-28 Richard Biener <rguenther@suse.de>
18654
18655 * configure.ac: Do valgrind header checks unconditionally.
18656 Add --enable-valgrind-annotations.
18657 * system.h: Guard valgrind header inclusion with
18658 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18659 * alloc-pool.c (pool_alloc, pool_free): Use
18660 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18661 to guard possibly dead code.
18662 * config.in: Regenerated.
18663 * configure: Likewise.
18664
18665 2014-04-28 Jeff Law <law@redhat.com>
18666
18667 PR tree-optimization/60902
18668 * tree-ssa-threadedge.c
18669 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18670 over real defs when invalidating outputs from statements that do not
18671 produce useful outputs for threading.
18672
18673 2014-04-28 Richard Biener <rguenther@suse.de>
18674
18675 PR tree-optimization/60979
18676 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18677 SCOPs that end in a block with a successor with abnormal
18678 predecessors.
18679
18680 2014-04-28 Richard Biener <rguenther@suse.de>
18681
18682 * tree-pass.h (execute_pass_list): Adjust prototype.
18683 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18684 (do_per_function): Change callback signature, push all actual
18685 work to the callbals.
18686 (do_per_function_toporder): Likewise.
18687 (execute_function_dump): Adjust.
18688 (execute_function_todo): Likewise.
18689 (clear_last_verified): Likewise.
18690 (verify_curr_properties): Likewise.
18691 (update_properties_after_pass): Likewise.
18692 (execute_pass_list_1): Split out from ...
18693 (execute_pass_list): ... here. Adjust.
18694 (execute_ipa_pass_list): Likewise.
18695 * cgraphunit.c (cgraph_add_new_function): Adjust.
18696 (analyze_function): Likewise.
18697 (expand_function): Likewise.
18698 * cgraph.c (release_function_body): Free dominance info
18699 here instead of asserting it was magically freed elsewhere.
18700
18701 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18702
18703 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18704 * configure: Regenerate.
18705 * config/sparc/sparc.opt (muser-mode): New option.
18706 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18707 for LEON3.
18708 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18709 * doc/invoke.texi (SPARC options): Document -muser-mode.
18710
18711 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18712
18713 * cselib.c (find_slot_memmode): Delete.
18714 (cselib_hasher): Change compare_type to a struct.
18715 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18716 constants.
18717 (preserve_constants_and_equivs): Adjust for new compare_type.
18718 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18719 (wrap_constant): Delete.
18720 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18721
18722 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18723
18724 * doc/install.texi (Building with profile feedback): Remove
18725 outdated sentence.
18726
18727 2014-04-26 Tom de Vries <tom@codesourcery.com>
18728
18729 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18730 array accesses.
18731
18732 2014-04-25 Cary Coutant <ccoutant@google.com>
18733
18734 PR debug/60929
18735 * dwarf2out.c (should_move_die_to_comdat): A type definition
18736 can contain a subprogram definition, but don't move it to a
18737 comdat unit.
18738 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18739 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18740 from original DIE.
18741 (clone_tree_hash): Rename to...
18742 (clone_tree_partial): ...this; change callers. Copy
18743 DW_TAG_subprogram DIEs as declarations.
18744 (copy_decls_walk): Don't copy children of a declaration into a
18745 type unit.
18746
18747 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18748
18749 PR target/60969
18750 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18751 alternative 12.
18752
18753 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18754
18755 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18756 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18757 reg for long_call.
18758 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18759 restriction.
18760
18761 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18762
18763 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18764
18765 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18766
18767 PR tree-optimization/60930
18768 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18769 creating a multiply candidate by folding two constant
18770 multiplicands when the result overflows.
18771
18772 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18773
18774 PR tree-optimization/60960
18775 * tree-vect-generic.c (expand_vector_operation): Only call
18776 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18777
18778 2014-04-25 Tom de Vries <tom@codesourcery.com>
18779
18780 * expr.c (clobber_reg_mode): New function.
18781 * expr.h (clobber_reg): New function.
18782
18783 2014-04-25 Tom de Vries <tom@codesourcery.com>
18784
18785 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18786 clobbers.
18787
18788 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18789 Tom de Vries <tom@codesourcery.com>
18790
18791 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18792 handle.
18793 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18794 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18795 new argument to find_all_hard_reg_sets call.
18796
18797 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18798
18799 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18800 Use HOST_WIDE_INT_C for mask literal.
18801 (aarch_rev16_shleft_mask_imm_p): Likewise.
18802
18803 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18804
18805 PR target/60941
18806 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18807
18808 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18809
18810 PR preprocessor/56540
18811 * config/i386/i386-c.c (ix86_target_macros): Define
18812 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18813
18814 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18815
18816 * configure.ac (tga_func): Remove.
18817 (LIB_TLS_SPEC): Remove.
18818 * configure: Regenerate.
18819 * config.in: Regenerate.
18820 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18821
18822 2014-04-25 Richard Biener <rguenther@suse.de>
18823
18824 PR ipa/60912
18825 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18826 call stmt use/clobber sets during stmt walk instead of
18827 walking the possibly incomplete set of caller edges.
18828
18829 2014-04-25 Richard Biener <rguenther@suse.de>
18830
18831 PR ipa/60911
18832 * passes.c (apply_ipa_transforms): Inline into only caller ...
18833 (execute_one_pass): ... here. Properly bring in function
18834 bodies for nodes we want to apply IPA transforms to.
18835
18836 2014-04-24 Cong Hou <congh@google.com>
18837
18838 PR tree-optimization/60896
18839 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18840 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18841 (vect_mark_pattern_stmts): Set the def type of all statements in
18842 PATTERN_DEF_SEQ as vect_internal_def.
18843
18844 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18845
18846 * doc/extend.texi (PowerPC Built-in Functions): Document new
18847 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18848 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18849
18850 * config/rs6000/predicates.md (const_0_to_3_operand): New
18851 predicate to match 0..3 integer constants.
18852
18853 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18854 to support adding miscellaneous builtin functions.
18855 (BU_DFP_MISC_2): Likewise.
18856 (BU_P7_MISC_1): Likewise.
18857 (BU_P7_MISC_2): Likewise.
18858 (BU_P8V_MISC_3): Likewise.
18859 (BU_MISC_1): Likewise.
18860 (BU_MISC_2): Likewise.
18861 (DIVWE): Add extended divide builtin functions.
18862 (DIVWEO): Likewise.
18863 (DIVWEU): Likewise.
18864 (DIVWEUO): Likewise.
18865 (DIVDE): Likewise.
18866 (DIVDEO): Likewise.
18867 (DIVDEU): Likewise.
18868 (DIVDEUO): Likewise.
18869 (DXEX): Add decimal floating-point builtin functions.
18870 (DXEXQ): Likewise.
18871 (DDEDPD): Likewise.
18872 (DDEDPDQ): Likewise.
18873 (DENBCD): Likewise.
18874 (DENBCDQ): Likewise.
18875 (DIEX): Likewise.
18876 (DIEXQ): Likewise.
18877 (DSCLI): Likewise.
18878 (DSCLIQ): Likewise.
18879 (DSCRI): Likewise.
18880 (DSCRIQ): Likewise.
18881 (CDTBCD): Add new BCD builtin functions.
18882 (CBCDTD): Likewise.
18883 (ADDG6S): Likewise.
18884 (BCDADD): Likewise.
18885 (BCDADD_LT): Likewise.
18886 (BCDADD_EQ): Likewise.
18887 (BCDADD_GT): Likewise.
18888 (BCDADD_OV): Likewise.
18889 (BCDSUB): Likewise.
18890 (BCDSUB_LT): Likewise.
18891 (BCDSUB_EQ): Likewise.
18892 (BCDSUB_GT): Likewise.
18893 (BCDSUB_OV): Likewise.
18894 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18895 (UNPACK_TD): Likewise.
18896 (PACK_TF): Likewise.
18897 (UNPACK_TF): Likewise.
18898 (UNPACK_TF_0): Likewise.
18899 (UNPACK_TF_1): Likewise.
18900 (PACK_V1TI): Likewise.
18901 (UNPACK_V1TI): Likewise.
18902
18903 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18904 support for decimal floating point builtin functions.
18905 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18906 functions that take constant arguments.
18907 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18908 (rs6000_init_builtins): Setup long double, _Decimal64, and
18909 _Decimal128 types for new builtin functions.
18910 (builtin_function_type): Set the unsigned flags appropriately for
18911 the new builtin functions.
18912 (rs6000_opt_masks): Add support for decimal floating point builtin
18913 functions.
18914
18915 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18916 floating point builtin functions.
18917 (RS6000_BTM_COMMON): Likewise.
18918 (RS6000_BTI_long_double): Likewise.
18919 (RS6000_BTI_dfloat64): Likewise.
18920 (RS6000_BTI_dfloat128): Likewise.
18921 (long_double_type_internal_node): Likewise.
18922 (dfloat64_type_internal_node): Likewise.
18923 (dfloat128_type_internal_node): Likewise.
18924
18925 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18926 2.07 bcd arithmetic instructions.
18927 (UNSPEC_BCDSUB): Likewise.
18928 (UNSPEC_BCD_OVERFLOW): Likewise.
18929 (UNSPEC_BCD_ADD_SUB): Likewise.
18930 (bcd_add_sub): Likewise.
18931 (BCD_TEST): Likewise.
18932 (bcd<bcd_add_sub>): Likewise.
18933 (bcd<bcd_add_sub>_test): Likewise.
18934 (bcd<bcd_add_sub>_test2): Likewise.
18935 (bcd<bcd_add_sub>_<code>): Likewise.
18936 (peephole2 for combined bcd ops): Likewise.
18937
18938 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18939 decimal floating point builtin functions.
18940 (UNSPEC_DENBCD): Likewise.
18941 (UNSPEC_DXEX): Likewise.
18942 (UNSPEC_DIEX): Likewise.
18943 (UNSPEC_DSCLI): Likewise.
18944 (UNSPEC_DSCRI): Likewise.
18945 (D64_D128): Likewise.
18946 (dfp_suffix): Likewise.
18947 (dfp_ddedpd_<mode>): Likewise.
18948 (dfp_denbcd_<mode>): Likewise.
18949 (dfp_dxex_<mode>): Likewise.
18950 (dfp_diex_<mode>): Likewise.
18951 (dfp_dscli_<mode>): Likewise.
18952 (dfp_dscri_<mode>): Likewise.
18953
18954 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18955 builtin functions.
18956 (UNSPEC_CDTBCD): Likewise.
18957 (UNSPEC_CBCDTD): Likewise.
18958 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18959 (UNSPEC_DIVEO): Likewise.
18960 (UNSPEC_DIVEU): Likewise.
18961 (UNSPEC_DIVEUO): Likewise.
18962 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18963 pack/unpack 128-bit types.
18964 (UNSPEC_PACK_128BIT): Likewise.
18965 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18966 (udiv<mode>3): Use idiv_ldiv mode attribute.
18967 (div<mode>3): Likewise.
18968 (addg6s): Add new BCD builtin functions.
18969 (cdtbcd): Likewise.
18970 (cbcdtd): Likewise.
18971 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18972 (div_extend): Likewise.
18973 (div<div_extend>_<mode>"): Likewise.
18974 (FP128_64): Add support for new builtin functions to pack/unpack
18975 128-bit types.
18976 (unpack<mode>): Likewise.
18977 (unpacktf_0): Likewise.
18978 (unpacktf_1): Likewise.
18979 (unpack<mode>_dm): Likewise.
18980 (unpack<mode>_nodm): Likewise.
18981 (pack<mode>): Likewise.
18982 (unpackv1ti): Likewise.
18983 (packv1ti): Likewise.
18984
18985 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18986
18987 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18988 is disabled.
18989
18990 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18991
18992 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18993 * gimplify.c (omp_is_private): Change last argument's type to int.
18994 Only diagnose lastprivate if the simd argument is 1, only diagnose
18995 linear if the simd argument is 2.
18996 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18997 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18998 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18999 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19000 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19001 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19002 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19003 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19004 * tree-nested.c (convert_nonlocal_omp_clauses,
19005 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19006
19007 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19008
19009 PR target/60822
19010 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19011 operand 1.
19012
19013 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19014
19015 * flag-types.h (enum ivar_visibility): Add.
19016
19017 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19018
19019 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19020 function * argument.
19021
19022 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19023
19024 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19025
19026 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19027 Tom de Vries <tom@codesourcery.com>
19028
19029 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19030 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19031 reg-note.
19032 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19033 * emit-rtl.c (try_split): Same.
19034
19035 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19036 Tom de Vries <tom@codesourcery.com>
19037
19038 * common.opt (fuse-caller-save): New option.
19039
19040 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19041
19042 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19043 elements for big-endian.
19044
19045 2014-04-24 Richard Biener <rguenther@suse.de>
19046
19047 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19048 during TER and instead use the sepops interface for expanding
19049 non-GIMPLE_SINGLE_RHS.
19050
19051 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19052
19053 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19054 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19055
19056 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19057
19058 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19059 assembler 64-bit option.
19060 * configure: Regenerate.
19061
19062 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19063
19064 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19065 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19066 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19067 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19068 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19069
19070 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19071
19072 * config/aarch64/aarch64-builtins.c
19073 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19074 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19075 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19076 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19077 builtins.
19078 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19079 (Vrevsuff): New mode attribute.
19080
19081 2014-04-24 Terry Guo <terry.guo@arm.com>
19082
19083 * config/arm/arm.h (machine_function): Define variable
19084 after_arm_reorg here.
19085 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19086 (arm_split_constant): Update the way to access variable
19087 after_arm_reorg.
19088 (arm_reorg): Ditto.
19089 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19090
19091 2014-04-23 Tom de Vries <tom@codesourcery.com>
19092
19093 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19094
19095 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19096
19097 * is-a.h: Update comments to reflect the following changes to the
19098 "pointerness" of the API, making the template parameter match the
19099 return type, allowing use of is-a.h with typedefs of pointers.
19100 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19101 that the return type matches the parameter to the is_a_helper.
19102 (as_a): Likewise.
19103 (dyn_cast): Likewise.
19104
19105 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19106 pointer from the is-a.h API.
19107
19108 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19109 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19110 is-a.h API.
19111 (is_a_helper <varpool_node>::test): Likewise, convert to...
19112 (is_a_helper <varpool_node *>::test): ...this.
19113
19114 (varpool_first_variable): Update for removal of implicit pointer
19115 from the is-a.h API.
19116 (varpool_next_variable): Likewise.
19117 (varpool_first_static_initializer): Likewise.
19118 (varpool_next_static_initializer): Likewise.
19119 (varpool_first_defined_variable): Likewise.
19120 (varpool_next_defined_variable): Likewise.
19121 (cgraph_first_defined_function): Likewise.
19122 (cgraph_next_defined_function): Likewise.
19123 (cgraph_first_function): Likewise.
19124 (cgraph_next_function): Likewise.
19125 (cgraph_first_function_with_gimple_body): Likewise.
19126 (cgraph_next_function_with_gimple_body): Likewise.
19127 (cgraph_alias_target): Likewise.
19128 (varpool_alias_target): Likewise.
19129 (cgraph_function_or_thunk_node): Likewise.
19130 (varpool_variable_node): Likewise.
19131 (symtab_real_symbol_p): Likewise.
19132 * cgraphunit.c (referred_to_p): Likewise.
19133 (analyze_functions): Likewise.
19134 (handle_alias_pairs): Likewise.
19135 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19136 * gimple-ssa.h (gimple_vuse_op): Likewise.
19137 (gimple_vdef_op): Likewise.
19138 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19139 * gimple.c (gimple_build_asm_1): Likewise.
19140 (gimple_build_try): Likewise.
19141 (gimple_build_resx): Likewise.
19142 (gimple_build_eh_dispatch): Likewise.
19143 (gimple_build_omp_for): Likewise.
19144 (gimple_omp_for_set_clauses): Likewise.
19145
19146 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19147 (is_a_helper <gimple_statement_asm *>::test): ...this.
19148 (is_a_helper <gimple_statement_bind>::test): Convert to...
19149 (is_a_helper <gimple_statement_bind *>::test): ...this.
19150 (is_a_helper <gimple_statement_call>::test): Convert to...
19151 (is_a_helper <gimple_statement_call *>::test): ...this.
19152 (is_a_helper <gimple_statement_catch>::test): Convert to...
19153 (is_a_helper <gimple_statement_catch *>::test): ...this.
19154 (is_a_helper <gimple_statement_resx>::test): Convert to...
19155 (is_a_helper <gimple_statement_resx *>::test): ...this.
19156 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19157 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19158 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19159 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19160 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19161 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19162 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19163 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19164 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19165 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19166 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19167 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19168 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19169 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19170 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19171 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19172 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19173 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19174 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19175 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19176 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19177 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19178 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19179 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19180 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19181 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19182 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19183 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19184 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19185 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19186 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19187 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19188 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19189 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19190 (is_a_helper <gimple_statement_phi>::test): Convert to...
19191 (is_a_helper <gimple_statement_phi *>::test): ...this.
19192 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19193 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19194 (is_a_helper <gimple_statement_try>::test): Convert to...
19195 (is_a_helper <gimple_statement_try *>::test): ...this.
19196 (is_a_helper <gimple_statement_wce>::test): Convert to...
19197 (is_a_helper <gimple_statement_wce *>::test): ...this.
19198 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19199 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19200 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19201 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19202 (is_a_helper <const gimple_statement_call>::test): Convert to...
19203 (is_a_helper <const gimple_statement_call *>::test): ...this.
19204 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19205 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19206 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19207 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19208 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19209 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19210 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19211 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19212 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19213 Convert to...
19214 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19215 ...this.
19216 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19217 Convert to...
19218 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19219 ...this.
19220 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19221 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19222 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19223 to...
19224 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19225 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19226 to...
19227 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19228 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19229 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19230 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19231 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19232 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19233 to...
19234 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19235 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19236 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19237 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19238 to...
19239 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19240 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19241 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19242 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19243 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19244 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19245 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19246 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19247 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19248 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19249 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19250 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19251 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19252 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19253 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19254 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19255 to...
19256 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19257 ...this.
19258 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19259 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19260
19261 (gimple_use_ops): Update for removal of implicit pointer from the
19262 is-a.h API.
19263 (gimple_set_use_ops): Likewise.
19264 (gimple_vuse): Likewise.
19265 (gimple_vdef): Likewise.
19266 (gimple_vuse_ptr): Likewise.
19267 (gimple_vdef_ptr): Likewise.
19268 (gimple_set_vuse): Likewise.
19269 (gimple_set_vdef): Likewise.
19270 (gimple_omp_return_set_lhs): Likewise.
19271 (gimple_omp_return_lhs): Likewise.
19272 (gimple_omp_return_lhs_ptr): Likewise.
19273 (gimple_call_fntype): Likewise.
19274 (gimple_call_set_fntype): Likewise.
19275 (gimple_call_set_internal_fn): Likewise.
19276 (gimple_call_use_set): Likewise.
19277 (gimple_call_clobber_set): Likewise.
19278 (gimple_bind_vars): Likewise.
19279 (gimple_bind_set_vars): Likewise.
19280 (gimple_bind_body_ptr): Likewise.
19281 (gimple_bind_set_body): Likewise.
19282 (gimple_bind_add_stmt): Likewise.
19283 (gimple_bind_block): Likewise.
19284 (gimple_bind_set_block): Likewise.
19285 (gimple_asm_ninputs): Likewise.
19286 (gimple_asm_noutputs): Likewise.
19287 (gimple_asm_nclobbers): Likewise.
19288 (gimple_asm_nlabels): Likewise.
19289 (gimple_asm_input_op): Likewise.
19290 (gimple_asm_input_op_ptr): Likewise.
19291 (gimple_asm_output_op): Likewise.
19292 (gimple_asm_output_op_ptr): Likewise.
19293 (gimple_asm_set_output_op): Likewise.
19294 (gimple_asm_clobber_op): Likewise.
19295 (gimple_asm_set_clobber_op): Likewise.
19296 (gimple_asm_label_op): Likewise.
19297 (gimple_asm_set_label_op): Likewise.
19298 (gimple_asm_string): Likewise.
19299 (gimple_catch_types): Likewise.
19300 (gimple_catch_types_ptr): Likewise.
19301 (gimple_catch_handler_ptr): Likewise.
19302 (gimple_catch_set_types): Likewise.
19303 (gimple_catch_set_handler): Likewise.
19304 (gimple_eh_filter_types): Likewise.
19305 (gimple_eh_filter_types_ptr): Likewise.
19306 (gimple_eh_filter_failure_ptr): Likewise.
19307 (gimple_eh_filter_set_types): Likewise.
19308 (gimple_eh_filter_set_failure): Likewise.
19309 (gimple_eh_must_not_throw_fndecl): Likewise.
19310 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19311 (gimple_eh_else_n_body_ptr): Likewise.
19312 (gimple_eh_else_e_body_ptr): Likewise.
19313 (gimple_eh_else_set_n_body): Likewise.
19314 (gimple_eh_else_set_e_body): Likewise.
19315 (gimple_try_eval_ptr): Likewise.
19316 (gimple_try_cleanup_ptr): Likewise.
19317 (gimple_try_set_eval): Likewise.
19318 (gimple_try_set_cleanup): Likewise.
19319 (gimple_wce_cleanup_ptr): Likewise.
19320 (gimple_wce_set_cleanup): Likewise.
19321 (gimple_phi_capacity): Likewise.
19322 (gimple_phi_num_args): Likewise.
19323 (gimple_phi_result): Likewise.
19324 (gimple_phi_result_ptr): Likewise.
19325 (gimple_phi_set_result): Likewise.
19326 (gimple_phi_arg): Likewise.
19327 (gimple_phi_set_arg): Likewise.
19328 (gimple_resx_region): Likewise.
19329 (gimple_resx_set_region): Likewise.
19330 (gimple_eh_dispatch_region): Likewise.
19331 (gimple_eh_dispatch_set_region): Likewise.
19332 (gimple_omp_critical_name): Likewise.
19333 (gimple_omp_critical_name_ptr): Likewise.
19334 (gimple_omp_critical_set_name): Likewise.
19335 (gimple_omp_for_clauses): Likewise.
19336 (gimple_omp_for_clauses_ptr): Likewise.
19337 (gimple_omp_for_set_clauses): Likewise.
19338 (gimple_omp_for_collapse): Likewise.
19339 (gimple_omp_for_index): Likewise.
19340 (gimple_omp_for_index_ptr): Likewise.
19341 (gimple_omp_for_set_index): Likewise.
19342 (gimple_omp_for_initial): Likewise.
19343 (gimple_omp_for_initial_ptr): Likewise.
19344 (gimple_omp_for_set_initial): Likewise.
19345 (gimple_omp_for_final): Likewise.
19346 (gimple_omp_for_final_ptr): Likewise.
19347 (gimple_omp_for_set_final): Likewise.
19348 (gimple_omp_for_incr): Likewise.
19349 (gimple_omp_for_incr_ptr): Likewise.
19350 (gimple_omp_for_set_incr): Likewise.
19351 (gimple_omp_for_pre_body_ptr): Likewise.
19352 (gimple_omp_for_set_pre_body): Likewise.
19353 (gimple_omp_parallel_clauses): Likewise.
19354 (gimple_omp_parallel_clauses_ptr): Likewise.
19355 (gimple_omp_parallel_set_clauses): Likewise.
19356 (gimple_omp_parallel_child_fn): Likewise.
19357 (gimple_omp_parallel_child_fn_ptr): Likewise.
19358 (gimple_omp_parallel_set_child_fn): Likewise.
19359 (gimple_omp_parallel_data_arg): Likewise.
19360 (gimple_omp_parallel_data_arg_ptr): Likewise.
19361 (gimple_omp_parallel_set_data_arg): Likewise.
19362 (gimple_omp_task_clauses): Likewise.
19363 (gimple_omp_task_clauses_ptr): Likewise.
19364 (gimple_omp_task_set_clauses): Likewise.
19365 (gimple_omp_task_child_fn): Likewise.
19366 (gimple_omp_task_child_fn_ptr): Likewise.
19367 (gimple_omp_task_set_child_fn): Likewise.
19368 (gimple_omp_task_data_arg): Likewise.
19369 (gimple_omp_task_data_arg_ptr): Likewise.
19370 (gimple_omp_task_set_data_arg): Likewise.
19371 (gimple_omp_taskreg_clauses): Likewise.
19372 (gimple_omp_taskreg_clauses_ptr): Likewise.
19373 (gimple_omp_taskreg_set_clauses): Likewise.
19374 (gimple_omp_taskreg_child_fn): Likewise.
19375 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19376 (gimple_omp_taskreg_set_child_fn): Likewise.
19377 (gimple_omp_taskreg_data_arg): Likewise.
19378 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19379 (gimple_omp_taskreg_set_data_arg): Likewise.
19380 (gimple_omp_task_copy_fn): Likewise.
19381 (gimple_omp_task_copy_fn_ptr): Likewise.
19382 (gimple_omp_task_set_copy_fn): Likewise.
19383 (gimple_omp_task_arg_size): Likewise.
19384 (gimple_omp_task_arg_size_ptr): Likewise.
19385 (gimple_omp_task_set_arg_size): Likewise.
19386 (gimple_omp_task_arg_align): Likewise.
19387 (gimple_omp_task_arg_align_ptr): Likewise.
19388 (gimple_omp_task_set_arg_align): Likewise.
19389 (gimple_omp_single_clauses): Likewise.
19390 (gimple_omp_single_clauses_ptr): Likewise.
19391 (gimple_omp_single_set_clauses): Likewise.
19392 (gimple_omp_target_clauses): Likewise.
19393 (gimple_omp_target_clauses_ptr): Likewise.
19394 (gimple_omp_target_set_clauses): Likewise.
19395 (gimple_omp_target_child_fn): Likewise.
19396 (gimple_omp_target_child_fn_ptr): Likewise.
19397 (gimple_omp_target_set_child_fn): Likewise.
19398 (gimple_omp_target_data_arg): Likewise.
19399 (gimple_omp_target_data_arg_ptr): Likewise.
19400 (gimple_omp_target_set_data_arg): Likewise.
19401 (gimple_omp_teams_clauses): Likewise.
19402 (gimple_omp_teams_clauses_ptr): Likewise.
19403 (gimple_omp_teams_set_clauses): Likewise.
19404 (gimple_omp_sections_clauses): Likewise.
19405 (gimple_omp_sections_clauses_ptr): Likewise.
19406 (gimple_omp_sections_set_clauses): Likewise.
19407 (gimple_omp_sections_control): Likewise.
19408 (gimple_omp_sections_control_ptr): Likewise.
19409 (gimple_omp_sections_set_control): Likewise.
19410 (gimple_omp_for_set_cond): Likewise.
19411 (gimple_omp_for_cond): Likewise.
19412 (gimple_omp_atomic_store_set_val): Likewise.
19413 (gimple_omp_atomic_store_val): Likewise.
19414 (gimple_omp_atomic_store_val_ptr): Likewise.
19415 (gimple_omp_atomic_load_set_lhs): Likewise.
19416 (gimple_omp_atomic_load_lhs): Likewise.
19417 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19418 (gimple_omp_atomic_load_set_rhs): Likewise.
19419 (gimple_omp_atomic_load_rhs): Likewise.
19420 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19421 (gimple_omp_continue_control_def): Likewise.
19422 (gimple_omp_continue_control_def_ptr): Likewise.
19423 (gimple_omp_continue_set_control_def): Likewise.
19424 (gimple_omp_continue_control_use): Likewise.
19425 (gimple_omp_continue_control_use_ptr): Likewise.
19426 (gimple_omp_continue_set_control_use): Likewise.
19427 (gimple_transaction_body_ptr): Likewise.
19428 (gimple_transaction_label): Likewise.
19429 (gimple_transaction_label_ptr): Likewise.
19430 (gimple_transaction_set_body): Likewise.
19431 (gimple_transaction_set_label): Likewise.
19432
19433 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19434 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19435 * ipa-ref.c (ipa_record_reference): Likewise.
19436 * ipa-reference.c (analyze_function): Likewise.
19437 (ipa_reference_write_optimization_summary): Likewise.
19438 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19439 (address_taken_from_non_vtable_p): Likewise.
19440 (comdat_can_be_unshared_p_1): Likewise.
19441 * lto-cgraph.c (lto_output_ref): Likewise.
19442 (add_references): Likewise.
19443 (compute_ltrans_boundary): Likewise.
19444 (output_symtab): Likewise.
19445 (input_ref): Likewise.
19446 (input_cgraph_1): Likewise.
19447 (output_cgraph_opt_summary): Likewise.
19448 * lto-streamer-out.c (lto_output): Likewise.
19449 (output_symbol_p): Likewise.
19450 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19451 (lsei_start_function_in_partition): Likewise.
19452 (lsei_next_variable_in_partition): Likewise.
19453 (lsei_start_variable_in_partition): Likewise.
19454 * symtab.c (insert_to_assembler_name_hash): Likewise.
19455 (unlink_from_assembler_name_hash): Likewise.
19456 (symtab_unregister_node): Likewise.
19457 (symtab_remove_node): Likewise.
19458 (dump_symtab_node): Likewise.
19459 (verify_symtab_base): Likewise.
19460 (verify_symtab_node): Likewise.
19461 (symtab_make_decl_local): Likewise.
19462 (symtab_alias_ultimate_target): Likewise.
19463 (symtab_resolve_alias): Likewise.
19464 (symtab_get_symbol_partitioning_class): Likewise.
19465 * tree-phinodes.c (allocate_phi_node): Likewise.
19466 (reserve_phi_args_for_new_edge): Likewise.
19467 (remove_phi_args): Likewise.
19468 * varpool.c (varpool_node_for_asm): Likewise.
19469 (varpool_remove_unreferenced_decls): Likewise.
19470
19471 2014-04-23 Jeff Law <law@redhat.com>
19472
19473 PR tree-optimization/60902
19474 * tree-ssa-threadedge.c
19475 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19476 invalidate outputs from statements that do not produce useful
19477 outputs for threading.
19478
19479 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19480
19481 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19482 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19483 machine descriptions for Stack Smashing Protector.
19484
19485 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19486
19487 * aarch64.md (<optab>_rol<mode>3): New pattern.
19488 (<optab>_rolsi3_uxtw): Likewise.
19489 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19490
19491 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19492
19493 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19494 (arm_cortex_a12_tune): Likewise.
19495
19496 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19497
19498 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19499
19500 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19501
19502 * config/arm/arm.md (arm_rev16si2): New pattern.
19503 (arm_rev16si2_alt): Likewise.
19504 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19505
19506 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19507
19508 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19509 (rev16<mode>2_alt): Likewise.
19510 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19511 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19512 (aarch_rev16_shleft_mask_imm_p): Likewise.
19513 (aarch_rev16_p_1): Likewise.
19514 (aarch_rev16_p): Likewise.
19515 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19516 (aarch_rev16_shright_mask_imm_p): Likewise.
19517 (aarch_rev16_shleft_mask_imm_p): Likewise.
19518
19519 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19520
19521 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19522 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19523 rev cost.
19524 (cortex_a53_extra_costs): Likewise.
19525 (cortex_a57_extra_costs): Likewise.
19526 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19527 (cortexa7_extra_costs): Likewise.
19528 (cortexa8_extra_costs): Likewise.
19529 (cortexa12_extra_costs): Likewise.
19530 (cortexa15_extra_costs): Likewise.
19531 (v7m_extra_costs): Likewise.
19532 (arm_new_rtx_costs): Handle BSWAP.
19533
19534 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19535
19536 * config/arm/arm.c (cortexa8_extra_costs): New table.
19537 (arm_cortex_a8_tune): New tuning struct.
19538 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19539
19540 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19541
19542 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19543
19544 2014-04-23 Richard Biener <rguenther@suse.de>
19545
19546 * Makefile.in (OBJS): Remove loop-unswitch.o.
19547 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19548 * passes.def (pass_rtl_unswitch): Likewise.
19549 * loop-init.c (gate_rtl_unswitch): Likewise.
19550 (rtl_unswitch): Likewise.
19551 (pass_data_rtl_unswitch): Likewise.
19552 (pass_rtl_unswitch): Likewise.
19553 (make_pass_rtl_unswitch): Likewise.
19554 * rtl.h (reversed_condition): Likewise.
19555 (compare_and_jump_seq): Likewise.
19556 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19557 and make static.
19558 * loop-unroll.c (compare_and_jump_seq): Likewise.
19559
19560 2014-04-23 Richard Biener <rguenther@suse.de>
19561
19562 PR tree-optimization/60903
19563 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19564 commented code block.
19565 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19566 loop flags to newly created BBs and edges.
19567
19568 2014-04-23 Nick Clifton <nickc@redhat.com>
19569
19570 * config/msp430/msp430.c (msp430_handle_option): Move function
19571 to msp430-common.c
19572 (msp430_option_override): Simplify mcu and mcpu option handling.
19573 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19574 support for -mhwmult command line option.
19575 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19576 -mhwmult command line option.
19577 (msp430_hwmult_enabled): Delete.
19578 (msp43o_output_labelref): Add support for -mhwmult command line option.
19579 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19580 (umulsidi3): Likewise.
19581 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19582 (mcpu, mlarge, msmall): Likewise.
19583 (mhwmult): New option.
19584 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19585 prototype.
19586 (msp430_is_f5_mcu): Remove prototype.
19587 (msp430_use_f5_series_hwmult): Add prototype.
19588 * config/msp430/msp430-opts.h: New file.
19589 * common/config/msp430: New directory.
19590 * common/config/msp430/msp430-common.c: New file.
19591 * config.gcc (msp430): Remove target_has_targetm_common.
19592 * doc/invoke.texi: Document -mhwmult command line option.
19593
19594 2014-04-23 Nick Clifton <nickc@redhat.com>
19595
19596 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19597 default-manifest.o if it can be found in the search path.
19598 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19599
19600 2014-04-23 Terry Guo <terry.guo@arm.com>
19601
19602 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19603
19604 2014-04-23 Richard Biener <rguenther@suse.de>
19605
19606 PR middle-end/60895
19607 * tree-inline.c (declare_return_variable): Use mark_addressable.
19608
19609 2014-04-23 Richard Biener <rguenther@suse.de>
19610
19611 PR middle-end/60891
19612 * loop-init.c (loop_optimizer_init): Make sure to apply
19613 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19614
19615 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19616
19617 PR sanitizer/60275
19618 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19619 New options.
19620 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19621 if flag_sanitize_undefined_trap_on_error.
19622 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19623 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19624 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19625 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19626 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19627 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19628 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19629 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19630 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19631 * ubsan.c (ubsan_instrument_unreachable): Return
19632 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19633 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19634 if flag_sanitize_undefined_trap_on_error and
19635 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19636 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19637 instrument_bool_enum_load): Emit __builtin_trap () if
19638 flag_sanitize_undefined_trap_on_error and
19639 __builtin_handle_*_abort () if !flag_sanitize_recover.
19640 * doc/invoke.texi (-fsanitize-recover,
19641 -fsanitize-undefined-trap-on-error): Document.
19642
19643 2014-04-22 Christian Bruel <christian.bruel@st.com>
19644
19645 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19646 Force immediates to SImode.
19647
19648 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19649
19650 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19651 (lroundsfsi2): New.
19652 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19653 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19654 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19655 (nios2_fpu_insn): Add entry for round.
19656 (N2FPU_NO_ERRNO_P): Define.
19657 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19658 flag_errno_math.
19659 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19660
19661 2014-04-22 Richard Henderson <rth@redhat.com>
19662
19663 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19664 (add<GPI>3_compare0): Remove leading * from name.
19665 (add<GPI>3_carryin): Likewise.
19666 (sub<GPI>3_compare0): Likewise.
19667 (sub<GPI>3_carryin): Likewise.
19668 (<su_optab>mulditi3): New expander.
19669 (multi3): New expander.
19670 (madd<GPI>): Remove leading * from name.
19671
19672 2014-04-22 Martin Jambor <mjambor@suse.cz>
19673
19674 * cgraphclones.c (cgraph_function_versioning): Copy
19675 ipa_transforms_to_apply instead of asserting it is empty.
19676
19677 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19678
19679 PR target/60868
19680 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19681 on count_exp to get mode.
19682
19683 2014-04-22 Andrew Pinski <apinski@cavium.com>
19684
19685 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19686 Handle TLS for ILP32.
19687 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19688 (tlsie_small_<mode>): this and handle PTR.
19689 (tlsie_small_sidi): New pattern.
19690 (tlsle_small): Change to an expand to handle ILP32.
19691 (tlsle_small_<mode>): New pattern.
19692 (tlsdesc_small): Rename to ...
19693 (tlsdesc_small_<mode>): this and handle PTR.
19694
19695 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19696
19697 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19698
19699 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19700
19701 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19702 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19703 (aarch64_types_signed_poly_qualifiers): Likewise.
19704 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19705 (aarch64_types_poly_signed_qualifiers): Likewise.
19706 (TYPES_REINTERP_SS): Type macro added.
19707 (TYPES_REINTERP_SU): Likewise.
19708 (TYPES_REINTERP_SP): Likewise.
19709 (TYPES_REINTERP_US): Likewise.
19710 (TYPES_REINTERP_PS): Likewise.
19711 (aarch64_fold_builtin): New expression folding added.
19712 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19713 Declarations removed.
19714 (REINTERP_SS): Declarations added.
19715 (REINTERP_US): Likewise.
19716 (REINTERP_PS): Likewise.
19717 (REINTERP_SU): Likewise.
19718 (REINTERP_SP): Likewise.
19719 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19720 (vreinterpretq_p8_f64): Likewise.
19721 (vreinterpret_p16_f64): Likewise.
19722 (vreinterpretq_p16_f64): Likewise.
19723 (vreinterpret_f32_f64): Likewise.
19724 (vreinterpretq_f32_f64): Likewise.
19725 (vreinterpret_f64_f32): Likewise.
19726 (vreinterpret_f64_p8): Likewise.
19727 (vreinterpret_f64_p16): Likewise.
19728 (vreinterpret_f64_s8): Likewise.
19729 (vreinterpret_f64_s16): Likewise.
19730 (vreinterpret_f64_s32): Likewise.
19731 (vreinterpret_f64_s64): Likewise.
19732 (vreinterpret_f64_u8): Likewise.
19733 (vreinterpret_f64_u16): Likewise.
19734 (vreinterpret_f64_u32): Likewise.
19735 (vreinterpret_f64_u64): Likewise.
19736 (vreinterpretq_f64_f32): Likewise.
19737 (vreinterpretq_f64_p8): Likewise.
19738 (vreinterpretq_f64_p16): Likewise.
19739 (vreinterpretq_f64_s8): Likewise.
19740 (vreinterpretq_f64_s16): Likewise.
19741 (vreinterpretq_f64_s32): Likewise.
19742 (vreinterpretq_f64_s64): Likewise.
19743 (vreinterpretq_f64_u8): Likewise.
19744 (vreinterpretq_f64_u16): Likewise.
19745 (vreinterpretq_f64_u32): Likewise.
19746 (vreinterpretq_f64_u64): Likewise.
19747 (vreinterpret_s64_f64): Likewise.
19748 (vreinterpretq_s64_f64): Likewise.
19749 (vreinterpret_u64_f64): Likewise.
19750 (vreinterpretq_u64_f64): Likewise.
19751 (vreinterpret_s8_f64): Likewise.
19752 (vreinterpretq_s8_f64): Likewise.
19753 (vreinterpret_s16_f64): Likewise.
19754 (vreinterpretq_s16_f64): Likewise.
19755 (vreinterpret_s32_f64): Likewise.
19756 (vreinterpretq_s32_f64): Likewise.
19757 (vreinterpret_u8_f64): Likewise.
19758 (vreinterpretq_u8_f64): Likewise.
19759 (vreinterpret_u16_f64): Likewise.
19760 (vreinterpretq_u16_f64): Likewise.
19761 (vreinterpret_u32_f64): Likewise.
19762 (vreinterpretq_u32_f64): Likewise.
19763
19764 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19765
19766 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19767 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19768 (vreinterpret_p8_s8): Likewise.
19769 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19770 (vreinterpret_p8_s16): Likewise.
19771 (vreinterpret_p8_s32): Likewise.
19772 (vreinterpret_p8_s64): Likewise.
19773 (vreinterpret_p8_f32): Likewise.
19774 (vreinterpret_p8_u8): Likewise.
19775 (vreinterpret_p8_u16): Likewise.
19776 (vreinterpret_p8_u32): Likewise.
19777 (vreinterpret_p8_u64): Likewise.
19778 (vreinterpret_p8_p16): Likewise.
19779 (vreinterpretq_p8_s8): Likewise.
19780 (vreinterpretq_p8_s16): Likewise.
19781 (vreinterpretq_p8_s32): Likewise.
19782 (vreinterpretq_p8_s64): Likewise.
19783 (vreinterpretq_p8_f32): Likewise.
19784 (vreinterpretq_p8_u8): Likewise.
19785 (vreinterpretq_p8_u16): Likewise.
19786 (vreinterpretq_p8_u32): Likewise.
19787 (vreinterpretq_p8_u64): Likewise.
19788 (vreinterpretq_p8_p16): Likewise.
19789 (vreinterpret_p16_s8): Likewise.
19790 (vreinterpret_p16_s16): Likewise.
19791 (vreinterpret_p16_s32): Likewise.
19792 (vreinterpret_p16_s64): Likewise.
19793 (vreinterpret_p16_f32): Likewise.
19794 (vreinterpret_p16_u8): Likewise.
19795 (vreinterpret_p16_u16): Likewise.
19796 (vreinterpret_p16_u32): Likewise.
19797 (vreinterpret_p16_u64): Likewise.
19798 (vreinterpret_p16_p8): Likewise.
19799 (vreinterpretq_p16_s8): Likewise.
19800 (vreinterpretq_p16_s16): Likewise.
19801 (vreinterpretq_p16_s32): Likewise.
19802 (vreinterpretq_p16_s64): Likewise.
19803 (vreinterpretq_p16_f32): Likewise.
19804 (vreinterpretq_p16_u8): Likewise.
19805 (vreinterpretq_p16_u16): Likewise.
19806 (vreinterpretq_p16_u32): Likewise.
19807 (vreinterpretq_p16_u64): Likewise.
19808 (vreinterpretq_p16_p8): Likewise.
19809 (vreinterpret_f32_s8): Likewise.
19810 (vreinterpret_f32_s16): Likewise.
19811 (vreinterpret_f32_s32): Likewise.
19812 (vreinterpret_f32_s64): Likewise.
19813 (vreinterpret_f32_u8): Likewise.
19814 (vreinterpret_f32_u16): Likewise.
19815 (vreinterpret_f32_u32): Likewise.
19816 (vreinterpret_f32_u64): Likewise.
19817 (vreinterpret_f32_p8): Likewise.
19818 (vreinterpret_f32_p16): Likewise.
19819 (vreinterpretq_f32_s8): Likewise.
19820 (vreinterpretq_f32_s16): Likewise.
19821 (vreinterpretq_f32_s32): Likewise.
19822 (vreinterpretq_f32_s64): Likewise.
19823 (vreinterpretq_f32_u8): Likewise.
19824 (vreinterpretq_f32_u16): Likewise.
19825 (vreinterpretq_f32_u32): Likewise.
19826 (vreinterpretq_f32_u64): Likewise.
19827 (vreinterpretq_f32_p8): Likewise.
19828 (vreinterpretq_f32_p16): Likewise.
19829 (vreinterpret_s64_s8): Likewise.
19830 (vreinterpret_s64_s16): Likewise.
19831 (vreinterpret_s64_s32): Likewise.
19832 (vreinterpret_s64_f32): Likewise.
19833 (vreinterpret_s64_u8): Likewise.
19834 (vreinterpret_s64_u16): Likewise.
19835 (vreinterpret_s64_u32): Likewise.
19836 (vreinterpret_s64_u64): Likewise.
19837 (vreinterpret_s64_p8): Likewise.
19838 (vreinterpret_s64_p16): Likewise.
19839 (vreinterpretq_s64_s8): Likewise.
19840 (vreinterpretq_s64_s16): Likewise.
19841 (vreinterpretq_s64_s32): Likewise.
19842 (vreinterpretq_s64_f32): Likewise.
19843 (vreinterpretq_s64_u8): Likewise.
19844 (vreinterpretq_s64_u16): Likewise.
19845 (vreinterpretq_s64_u32): Likewise.
19846 (vreinterpretq_s64_u64): Likewise.
19847 (vreinterpretq_s64_p8): Likewise.
19848 (vreinterpretq_s64_p16): Likewise.
19849 (vreinterpret_u64_s8): Likewise.
19850 (vreinterpret_u64_s16): Likewise.
19851 (vreinterpret_u64_s32): Likewise.
19852 (vreinterpret_u64_s64): Likewise.
19853 (vreinterpret_u64_f32): Likewise.
19854 (vreinterpret_u64_u8): Likewise.
19855 (vreinterpret_u64_u16): Likewise.
19856 (vreinterpret_u64_u32): Likewise.
19857 (vreinterpret_u64_p8): Likewise.
19858 (vreinterpret_u64_p16): Likewise.
19859 (vreinterpretq_u64_s8): Likewise.
19860 (vreinterpretq_u64_s16): Likewise.
19861 (vreinterpretq_u64_s32): Likewise.
19862 (vreinterpretq_u64_s64): Likewise.
19863 (vreinterpretq_u64_f32): Likewise.
19864 (vreinterpretq_u64_u8): Likewise.
19865 (vreinterpretq_u64_u16): Likewise.
19866 (vreinterpretq_u64_u32): Likewise.
19867 (vreinterpretq_u64_p8): Likewise.
19868 (vreinterpretq_u64_p16): Likewise.
19869 (vreinterpret_s8_s16): Likewise.
19870 (vreinterpret_s8_s32): Likewise.
19871 (vreinterpret_s8_s64): Likewise.
19872 (vreinterpret_s8_f32): Likewise.
19873 (vreinterpret_s8_u8): Likewise.
19874 (vreinterpret_s8_u16): Likewise.
19875 (vreinterpret_s8_u32): Likewise.
19876 (vreinterpret_s8_u64): Likewise.
19877 (vreinterpret_s8_p8): Likewise.
19878 (vreinterpret_s8_p16): Likewise.
19879 (vreinterpretq_s8_s16): Likewise.
19880 (vreinterpretq_s8_s32): Likewise.
19881 (vreinterpretq_s8_s64): Likewise.
19882 (vreinterpretq_s8_f32): Likewise.
19883 (vreinterpretq_s8_u8): Likewise.
19884 (vreinterpretq_s8_u16): Likewise.
19885 (vreinterpretq_s8_u32): Likewise.
19886 (vreinterpretq_s8_u64): Likewise.
19887 (vreinterpretq_s8_p8): Likewise.
19888 (vreinterpretq_s8_p16): Likewise.
19889 (vreinterpret_s16_s8): Likewise.
19890 (vreinterpret_s16_s32): Likewise.
19891 (vreinterpret_s16_s64): Likewise.
19892 (vreinterpret_s16_f32): Likewise.
19893 (vreinterpret_s16_u8): Likewise.
19894 (vreinterpret_s16_u16): Likewise.
19895 (vreinterpret_s16_u32): Likewise.
19896 (vreinterpret_s16_u64): Likewise.
19897 (vreinterpret_s16_p8): Likewise.
19898 (vreinterpret_s16_p16): Likewise.
19899 (vreinterpretq_s16_s8): Likewise.
19900 (vreinterpretq_s16_s32): Likewise.
19901 (vreinterpretq_s16_s64): Likewise.
19902 (vreinterpretq_s16_f32): Likewise.
19903 (vreinterpretq_s16_u8): Likewise.
19904 (vreinterpretq_s16_u16): Likewise.
19905 (vreinterpretq_s16_u32): Likewise.
19906 (vreinterpretq_s16_u64): Likewise.
19907 (vreinterpretq_s16_p8): Likewise.
19908 (vreinterpretq_s16_p16): Likewise.
19909 (vreinterpret_s32_s8): Likewise.
19910 (vreinterpret_s32_s16): Likewise.
19911 (vreinterpret_s32_s64): Likewise.
19912 (vreinterpret_s32_f32): Likewise.
19913 (vreinterpret_s32_u8): Likewise.
19914 (vreinterpret_s32_u16): Likewise.
19915 (vreinterpret_s32_u32): Likewise.
19916 (vreinterpret_s32_u64): Likewise.
19917 (vreinterpret_s32_p8): Likewise.
19918 (vreinterpret_s32_p16): Likewise.
19919 (vreinterpretq_s32_s8): Likewise.
19920 (vreinterpretq_s32_s16): Likewise.
19921 (vreinterpretq_s32_s64): Likewise.
19922 (vreinterpretq_s32_f32): Likewise.
19923 (vreinterpretq_s32_u8): Likewise.
19924 (vreinterpretq_s32_u16): Likewise.
19925 (vreinterpretq_s32_u32): Likewise.
19926 (vreinterpretq_s32_u64): Likewise.
19927 (vreinterpretq_s32_p8): Likewise.
19928 (vreinterpretq_s32_p16): Likewise.
19929 (vreinterpret_u8_s8): Likewise.
19930 (vreinterpret_u8_s16): Likewise.
19931 (vreinterpret_u8_s32): Likewise.
19932 (vreinterpret_u8_s64): Likewise.
19933 (vreinterpret_u8_f32): Likewise.
19934 (vreinterpret_u8_u16): Likewise.
19935 (vreinterpret_u8_u32): Likewise.
19936 (vreinterpret_u8_u64): Likewise.
19937 (vreinterpret_u8_p8): Likewise.
19938 (vreinterpret_u8_p16): Likewise.
19939 (vreinterpretq_u8_s8): Likewise.
19940 (vreinterpretq_u8_s16): Likewise.
19941 (vreinterpretq_u8_s32): Likewise.
19942 (vreinterpretq_u8_s64): Likewise.
19943 (vreinterpretq_u8_f32): Likewise.
19944 (vreinterpretq_u8_u16): Likewise.
19945 (vreinterpretq_u8_u32): Likewise.
19946 (vreinterpretq_u8_u64): Likewise.
19947 (vreinterpretq_u8_p8): Likewise.
19948 (vreinterpretq_u8_p16): Likewise.
19949 (vreinterpret_u16_s8): Likewise.
19950 (vreinterpret_u16_s16): Likewise.
19951 (vreinterpret_u16_s32): Likewise.
19952 (vreinterpret_u16_s64): Likewise.
19953 (vreinterpret_u16_f32): Likewise.
19954 (vreinterpret_u16_u8): Likewise.
19955 (vreinterpret_u16_u32): Likewise.
19956 (vreinterpret_u16_u64): Likewise.
19957 (vreinterpret_u16_p8): Likewise.
19958 (vreinterpret_u16_p16): Likewise.
19959 (vreinterpretq_u16_s8): Likewise.
19960 (vreinterpretq_u16_s16): Likewise.
19961 (vreinterpretq_u16_s32): Likewise.
19962 (vreinterpretq_u16_s64): Likewise.
19963 (vreinterpretq_u16_f32): Likewise.
19964 (vreinterpretq_u16_u8): Likewise.
19965 (vreinterpretq_u16_u32): Likewise.
19966 (vreinterpretq_u16_u64): Likewise.
19967 (vreinterpretq_u16_p8): Likewise.
19968 (vreinterpretq_u16_p16): Likewise.
19969 (vreinterpret_u32_s8): Likewise.
19970 (vreinterpret_u32_s16): Likewise.
19971 (vreinterpret_u32_s32): Likewise.
19972 (vreinterpret_u32_s64): Likewise.
19973 (vreinterpret_u32_f32): Likewise.
19974 (vreinterpret_u32_u8): Likewise.
19975 (vreinterpret_u32_u16): Likewise.
19976 (vreinterpret_u32_u64): Likewise.
19977 (vreinterpret_u32_p8): Likewise.
19978 (vreinterpret_u32_p16): Likewise.
19979 (vreinterpretq_u32_s8): Likewise.
19980 (vreinterpretq_u32_s16): Likewise.
19981 (vreinterpretq_u32_s32): Likewise.
19982 (vreinterpretq_u32_s64): Likewise.
19983 (vreinterpretq_u32_f32): Likewise.
19984 (vreinterpretq_u32_u8): Likewise.
19985 (vreinterpretq_u32_u16): Likewise.
19986 (vreinterpretq_u32_u64): Likewise.
19987 (vreinterpretq_u32_p8): Likewise.
19988 (vreinterpretq_u32_p16): Likewise.
19989
19990 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19991
19992 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19993 Pattern extended.
19994 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19995 (sqabs): Likewise.
19996 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19997 (vqnegd_s64): Likewise.
19998 (vqabs_s64): Likewise.
19999 (vqabsd_s64): Likewise.
20000
20001 2014-04-22 Richard Henderson <rth@redhat.com>
20002
20003 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20004 computation to the top of the loop.
20005
20006 2014-04-22 Renlin <renlin.li@arm.com>
20007 Jiong Wang <jiong.wang@arm.com>
20008
20009 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20010 * config/aarch64/aarch64.c (aarch64_layout_frame)
20011 (aarch64_initial_elimination_offset): Likewise.
20012
20013 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20014
20015 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20016 Fix indentation.
20017
20018 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20019
20020 * machmode.h (bitwise_mode_for_mode): Declare.
20021 * stor-layout.h (bitwise_type_for_mode): Likewise.
20022 * stor-layout.c (bitwise_mode_for_mode): New function.
20023 (bitwise_type_for_mode): Likewise.
20024 * builtins.c (fold_builtin_memory_op): Use it instead of
20025 int_mode_for_mode and build_nonstandard_integer_type.
20026
20027 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20028
20029 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20030 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20031 (*-*-solaris2*): Simplify.
20032 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20033 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20034 *-*-solaris2.9* handling.
20035
20036 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20037 as bug.
20038 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20039 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20040 handling, simplify.
20041 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20042 * configure: Regenerate.
20043
20044 * config/i386/sol2-9.h: Remove.
20045
20046 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20047 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20048 Remove Solaris 9 references.
20049
20050 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20051
20052 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20053 (floatuns<GPI:mode><GPF:mode>2): Remove.
20054 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20055 and floatuns conversions.
20056 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20057 and floatuns conversions.
20058 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20059 (w1,w2): New mode attributes for inequal width conversions.
20060
20061 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20062
20063 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20064 the output asm format.
20065
20066 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20067
20068 * config/aarch64/aarch64-simd.md
20069 (aarch64_cm<optab>di): Always split.
20070 (*aarch64_cm<optab>di): New.
20071 (aarch64_cmtstdi): Always split.
20072 (*aarch64_cmtstdi): New.
20073
20074 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20075
20076 PR tree-optimization/60823
20077 * omp-low.c (ipa_simd_modify_function_body): Go through
20078 all SSA_NAMEs and for those refering to vector arguments
20079 which are going to be replaced adjust SSA_NAME_VAR and,
20080 if it is a default definition, change it into a non-default
20081 definition assigned at the beginning of function from new_decl.
20082 (ipa_simd_modify_stmt_ops): Rewritten.
20083 * tree-dfa.c (set_ssa_default_def): When removing default def,
20084 check for NULL loc instead of NULL *loc.
20085
20086 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20087
20088 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20089 restrictions on core registers for DImode values in Thumb2.
20090
20091 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20092
20093 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20094 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20095
20096 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20097
20098 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20099 (*iordi_notzesidi_di): Likewise.
20100 (*iordi_notsesidi_di): Likewise.
20101
20102 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20103
20104 * config/arm/arm-protos.h (tune_params): New struct members.
20105 * config/arm/arm.c: Initialise tune_params per processor.
20106 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20107 for speed, based on new tune_params.
20108
20109 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20110
20111 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20112 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20113 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20114 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20115 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20116 (vrnda_f64): Likewise.
20117 (vrndi_f64): Likewise.
20118 (vrndm_f64): Likewise.
20119 (vrndn_f64): Likewise.
20120 (vrndp_f64): Likewise.
20121 (vrndx_f64): Likewise.
20122
20123 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20124
20125 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20126 GET_MODE_SIZE argument is enum machine_mode.
20127
20128 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20129
20130 PR target/60910
20131 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20132 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20133
20134 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20135
20136 PR middle-end/60281
20137 * asan.c (asan_emit_stack_protection): Force the base to align to
20138 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20139 appropriate bits if STRICT_ALIGNMENT.
20140 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20141 when asan is on.
20142 (expand_used_vars): Leave a space in the stack frame for alignment
20143 if STRICT_ALIGNMENT.
20144
20145 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20146
20147 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20148 than a gimple.
20149 (gimple_store_p): Likewise.
20150 (gimple_assign_load_p): Likewise.
20151 (gimple_assign_cast_p): Likewise.
20152 (gimple_clobber_p): Likewise.
20153
20154 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20155 rather than a gimple.
20156 (gimple_assign_cast_p): Likewise.
20157
20158 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20159
20160 PR target/60735
20161 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20162 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20163
20164 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20165 more debug information for E500 if -mdebug=reg.
20166
20167 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20168
20169 PR target/60909
20170 * config/i386/i386.c (ix86_expand_builtin)
20171 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20172 register for target RTX.
20173 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20174
20175 2014-04-18 Cong Hou <congh@google.com>
20176
20177 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20178 the widen-mult pattern by handling two operands with different sizes,
20179 and operands whose size is smaller than half of the result type.
20180
20181 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20182
20183 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20184 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20185 (do_estimate_edge_time): Compute it.
20186 * ipa-inline.c (want_inline_small_function_p): Bypass
20187 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20188
20189 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20190
20191 * ipa-inline.c (spec_rem): New static variable.
20192 (dump_overall_stats): New function.
20193 (dump_inline_stats): New function.
20194
20195 2014-04-18 Richard Henderson <rth@redhat.com>
20196
20197 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20198 to GET_MODE_SIZE, not a reg_class_t.
20199
20200 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20201
20202 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20203 (vsx_xxmrglw_<mode>): Likewise.
20204
20205 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20206
20207 PR target/60876
20208 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20209 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20210 (rs6000_init_hard_regno_mode_ok): Likewise.
20211
20212 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20213
20214 * ipa-inline.c (inline_small_functions): Account only non-cold
20215 functions.
20216 * doc/invoke.texi (inline-unit-growth): Update documentation.
20217
20218 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20219
20220 * config/rs6000/rs6000.md (addti3, subti3): New.
20221
20222 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20223
20224 PR target/60863
20225 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20226 comment. Check optimize_insn_for_size_p instead of
20227 optimize_insn_for_speed_p.
20228
20229 2014-04-17 Martin Jambor <mjambor@suse.cz>
20230
20231 * gimple-iterator.c (gsi_start_edge): New function.
20232 * gimple-iterator.h (gsi_start_edge): Declare.
20233 * tree-sra.c (single_non_eh_succ): New function.
20234 (disqualify_ops_if_throwing_stmt): Renamed to
20235 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20236 having one non-EH successor BB.
20237 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20238 generate loads into replacements.
20239 (sra_modify_assign): Likewise and and also use the simple path for
20240 such statements.
20241 (sra_modify_function_body): Commit statements on edges.
20242
20243 2014-04-17 Richard Biener <rguenther@suse.de>
20244
20245 PR middle-end/60849
20246 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20247 comparison results and add clarifying comment.
20248
20249 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20250
20251 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20252 (blank_mode): Initialize it.
20253 (emit_mode_size_inline, emit_mode_nunits_inline,
20254 emit_mode_inner_inline): New functions.
20255 (emit_insn_modes_h): Call them and surround their output with
20256 #if GCC_VERSION >= 4001 ... #endif.
20257 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20258 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20259 mode_* arrays if the argument is __builtin_constant_p.
20260 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20261 is enum machine_mode.
20262
20263 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20264
20265 * passes.c (opt_pass::execute): Adjust.
20266 (pass_manager::execute_pass_mode_switching): Likewise.
20267 (early_local_passes::execute): Likewise.
20268 (execute_one_pass): Pass cfun to the pass's execute method.
20269 * tree-pass.h (opt_pass::execute): Add function * argument.
20270 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20271 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20272 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20273 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20274 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20275 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20276 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20277 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20278 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20279 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20280 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20281 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20282 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20283 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20284 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20285 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20286 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20287 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20288 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20289 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20290 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20291 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20292 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20293 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20294 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20295 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20296 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20297 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20298 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20299 Adjust.
20300
20301 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20302
20303 * passes.c (opt_pass::gate): Take function * argument.
20304 (gate_all_early_local_passes): Merge into
20305 (early_local_passes::gate): this.
20306 (gate_all_early_optimizations): Merge into
20307 (all_early_optimizations::gate): this.
20308 (gate_all_optimizations): Mege into
20309 (all_optimizations::gate): this.
20310 (gate_all_optimizations_g): Merge into
20311 (all_optimizations_g::gate): this.
20312 (gate_rest_of_compilation): Mege into
20313 (rest_of_compilation::gate): this.
20314 (gate_postreload): Merge into
20315 (postreload::gate): this.
20316 (dump_one_pass): Pass cfun to the pass's gate method.
20317 (execute_ipa_summary_passes): Likewise.
20318 (execute_one_pass): Likewise.
20319 (ipa_write_summaries_2): Likewise.
20320 (ipa_write_optimization_summaries_1): Likewise.
20321 (ipa_read_summaries_1): Likewise.
20322 (ipa_read_optimization_summaries_1): Likewise.
20323 (execute_ipa_stmt_fixups): Likewise.
20324 * tree-pass.h (opt_pass::gate): Add function * argument.
20325 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20326 combine-stack-adj.c, combine.c, compare-elim.c,
20327 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20328 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20329 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20330 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20331 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20332 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20333 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20334 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20335 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20336 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20337 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20338 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20339 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20340 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20341 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20342 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20343 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20344 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20345 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20346 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20347 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20348 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20349 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20350 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20351 var-tracking.c, vtable-verify.c, web.c: Adjust.
20352
20353 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20354
20355 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20356 * configure: Regenerate.
20357
20358 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20359
20360 * passes.c (dump_one_pass): don't check pass->has_gate.
20361 (execute_ipa_summary_passes): Likewise.
20362 (execute_one_pass): Likewise.
20363 (ipa_write_summaries_2): Likewise.
20364 (ipa_write_optimization_summaries_1): Likewise.
20365 (ipa_read_optimization_summaries_1): Likewise.
20366 (execute_ipa_stmt_fixups): Likewise.
20367 * tree-pass.h (pass_data::has_gate): Remove.
20368 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20369 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20370 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20371 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20372 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20373 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20374 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20375 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20376 gimple-low.c, gimple-ssa-isolate-paths.c,
20377 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20378 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20379 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20380 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20381 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20382 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20383 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20384 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20385 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20386 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20387 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20388 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20389 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20390 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20391 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20392 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20393 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20394 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20395 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20396 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20397 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20398 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20399 Adjust.
20400
20401 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20402
20403 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20404 declaration.
20405 * passes.c (pass_manager::register_dump_files_1): Merge into
20406 (pass_manager::register_dump_files): this, and remove its handling of
20407 properties since the pass always has the properties anyway.
20408 (pass_manager::pass_manager): Adjust.
20409
20410 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20411
20412 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20413 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20414 dealing with properties.
20415 (pass_manager::register_dump_files): Adjust.
20416
20417 2014-03-20 Mark Wielaard <mjw@redhat.com>
20418
20419 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20420 then represent the bound as normal constant value.
20421
20422 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20423
20424 PR target/60847
20425 Forward port from 4.8 branch
20426 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20427
20428 * config/i386/bmiintrin.h (_blsi_u32): New.
20429 (_blsi_u64): Ditto.
20430 (_blsr_u32): Ditto.
20431 (_blsr_u64): Ditto.
20432 (_blsmsk_u32): Ditto.
20433 (_blsmsk_u64): Ditto.
20434 (_tzcnt_u32): Ditto.
20435 (_tzcnt_u64): Ditto.
20436
20437 2014-04-17 Kito Cheng <kito@0xlab.org>
20438
20439 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20440
20441 2014-04-17 Richard Biener <rguenther@suse.de>
20442
20443 PR middle-end/60849
20444 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20445 boolean results for comparisons.
20446
20447 2014-04-17 Richard Biener <rguenther@suse.de>
20448
20449 PR tree-optimization/60836
20450 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20451 initial PHI args to be gimple values.
20452
20453 2014-04-17 Richard Biener <rguenther@suse.de>
20454
20455 PR tree-optimization/60841
20456 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20457 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20458 of stmts to SLP build.
20459 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20460 (vect_analyze_slp): Likewise.
20461 (vect_analyze_slp_instance): Likewise.
20462 (vect_build_slp_tree): Limit overall SLP tree growth.
20463 * tree-vectorizer.h (vect_analyze_data_refs,
20464 vect_analyze_slp): Adjust prototypes.
20465
20466 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20467
20468 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20469 Silvermont.
20470
20471 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20472
20473 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20474 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20475 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20476 for TARGET_SLOW_PSHUFB
20477
20478 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20479
20480 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20481 * config/i386/i386.c (intel_cost): Ditto.
20482
20483 2014-04-17 Joey Ye <joey.ye@arm.com>
20484
20485 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20486
20487 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20488
20489 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20490 with -fuse-profile.
20491
20492 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20493
20494 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20495 (type_all_derivations_known_p): New predicate.
20496 (type_all_ctors_visible_p): New predicate.
20497 (type_possibly_instantiated_p): New predicate.
20498 (get_odr_type): Compute all_derivations_known.
20499 (dump_odr_type): Dump the flag.
20500 (maybe_record_type): Cleanup.
20501 (record_target_from_binfo): Add bases_to_consider array;
20502 record bases for types w/o instances and skip CXX destructor.
20503 (possible_polymorphic_call_targets_1): Add bases_to_consider
20504 and consider_construction parameters; check if type may have instance.
20505 (get_polymorphic_call_info): Set maybe_in_construction to true
20506 when we know nothing.
20507 (record_targets_from_bases): Skip CXX destructors; they are
20508 never called for types in construction.
20509 (possible_polymorphic_call_targets): Do not record target when
20510 type may not have instance.
20511
20512 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20513
20514 PR ipa/60854
20515 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20516 external aliases alive, too.
20517
20518 2014-04-16 Andrew Pinski <apinski@cavium.com>
20519
20520 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20521 definition.
20522
20523 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20524
20525 * final.c (compute_alignments): Do not apply loop alignment to a block
20526 falling through to the exit.
20527
20528 2014-04-16 Catherine Moore <clm@codesourcery.com>
20529
20530 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20531 Adjust constraints for microMIPS store patterns.
20532
20533 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20534
20535 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20536
20537 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20538
20539 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20540 (append_use): Run at -O0.
20541 (append_vdef): Likewise.
20542 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20543 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20544
20545 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20546
20547 PR tree-optimization/60844
20548 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20549 (propagate_op_to_single_use, remove_visited_stmt_chain,
20550 linearize_expr, repropagate_negates, reassociate_bb): Use it
20551 instead of gsi_remove.
20552
20553 2014-04-16 Martin Jambor <mjambor@suse.cz>
20554
20555 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20556 ipa_transforms_to_apply.
20557 (cgraph_function_versioning): Assert that old_node has empty
20558 ipa_transforms_to_apply.
20559 * trans-mem.c (ipa_tm_create_version): Likewise.
20560 * tree-inline.c (tree_function_versioning): Do not duplicate
20561 ipa_transforms_to_apply.
20562
20563 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20564
20565 PR target/60817
20566 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20567 x86_64-*-* cases.
20568 Pass necessary as flags on 64-bit Solaris/x86.
20569 Use lowercase relocs for x86_64-*-*.
20570 * configure: Regenerate.
20571
20572 2014-04-15 Jan Hubicka <jh@suse.cz>
20573
20574 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20575 (maybe_record_node, likely_target_p): Use it.
20576
20577 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20578
20579 PR target/60839
20580 Revert following patch
20581
20582 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20583
20584 PR target/60735
20585 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20586 software floating point or no floating point registers, do not
20587 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20588 in GPRs that occurs after we tested for GPRs that would never be
20589 true.
20590
20591 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20592 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20593 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20594 specifically allow DDmode, since that does not use the SPE SIMD
20595 instructions.
20596
20597 2014-03-21 Mark Wielaard <mjw@redhat.com>
20598
20599 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20600 as unsigned or int depending on type and value used.
20601
20602 2014-04-15 Richard Biener <rguenther@suse.de>
20603
20604 PR rtl-optimization/56965
20605 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20606 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20607 ... here.
20608 * alias.c (true_dependence_1): Do not call
20609 nonoverlapping_component_refs_p.
20610 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20611 nonoverlapping_component_refs_p.
20612 (indirect_refs_may_alias_p): Likewise.
20613
20614 2014-04-15 Teresa Johnson <tejohnson@google.com>
20615
20616 * cfg.c (dump_bb_info): Fix flags check.
20617 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20618
20619 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20620
20621 PR rtl-optimization/60663
20622 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20623 avoid 0 cost.
20624
20625 2014-04-15 Richard Biener <rguenther@suse.de>
20626
20627 * lto-streamer.h (LTO_major_version): Bump to 4.
20628
20629 2014-04-15 Richard Biener <rguenther@suse.de>
20630
20631 * common.opt (lto_partition_model): New enum.
20632 (flto-partition=): Merge separate options with a single with argument,
20633 add -flto-partition=one support.
20634 * flag-types.h (enum lto_partition_model): Declare.
20635 * opts.c (finish_options): Remove duplicate -flto-partition=
20636 option check.
20637 * lto-wrapper.c (run_gcc): Adjust.
20638
20639 2014-04-15 Richard Biener <rguenther@suse.de>
20640
20641 * alias.c (ncr_compar): New function.
20642 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20643
20644 2014-04-15 Richard Biener <rguenther@suse.de>
20645
20646 * alias.c (record_component_aliases): Do not walk BINFOs.
20647
20648 2014-04-15 Richard Biener <rguenther@suse.de>
20649
20650 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20651 Add struct function argument and adjust.
20652 (find_func_aliases_for_call): Likewise.
20653 (find_func_aliases): Likewise.
20654 (find_func_clobbers): Likewise.
20655 (intra_create_variable_infos): Likewise.
20656 (compute_points_to_sets): Likewise.
20657 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20658
20659 2014-04-15 Richard Biener <rguenther@suse.de>
20660
20661 * tree.c (iterative_hash_expr): Use enum tree_code_class
20662 to store TREE_CODE_CLASS.
20663 (tree_block): Likewise.
20664 (tree_set_block): Likewise.
20665 * tree.h (fold_build_pointer_plus_loc): Use
20666 convert_to_ptrofftype_loc.
20667
20668 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20669
20670 PR plugins/59335
20671 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20672 added in 4.9.
20673
20674 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20675
20676 * cfgloop.h (struct loop): Move force_vectorize down.
20677 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20678 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20679 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20680 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20681 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20682 * tree-core.h (enum annot_expr_kind): Add new kind values.
20683 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20684 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20685 kinds.
20686 * tree.def (ANNOTATE_EXPR): Tweak comment.
20687
20688 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20689
20690 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20691 cxa_pure_virtual).
20692
20693 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20694
20695 * tree.h (TYPE_IDENTIFIER): Declare.
20696 * tree.c (subrange_type_for_debug_p): Use it.
20697 * godump.c (go_format_type): Likewise.
20698 * dwarf2out.c (is_cxx_auto, modified_type_die,
20699 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20700 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20701
20702 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20703
20704 PR lto/60820
20705 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20706
20707 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20708
20709 * config/i386/i386.c (examine_argument): Return bool. Return true if
20710 parameter should be passed in memory.
20711 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20712 (construct_container): Update calls to examine_argument.
20713 (function_arg_advance_64): Ditto.
20714 (return_in_memory_32): Merge with ix86_return_in_memory.
20715 (return_in_memory_64): Ditto.
20716 (return_in_memory_ms_64): Ditto.
20717
20718 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20719
20720 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20721 * coverage.c (coverage_compute_profile_id): Handle externally visible
20722 symbols.
20723
20724 2014-04-14 Martin Jambor <mjambor@suse.cz>
20725
20726 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20727 DECL_DISREGARD_INLINE_LIMITS functions.
20728
20729 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20730
20731 PR target/60827
20732 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20733
20734 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20735
20736 PR target/60827
20737 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20738 optimize_insn_for_speed_p instead of
20739 optimize_function_for_speed_p.
20740
20741 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20742
20743 * doc/invoke.texi (free): Document AArch64.
20744
20745 2014-04-14 Richard Biener <rguenther@suse.de>
20746
20747 PR tree-optimization/60042
20748 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20749 (insert_into_preds_of_block): Do not prevent PHI insertion
20750 for REFERENCE exprs here ...
20751 (eliminate_dom_walker::before_dom_children): ... but prevent
20752 their use here under similar conditions when applied to the
20753 IL after PRE optimizations.
20754
20755 2014-04-14 Richard Biener <rguenther@suse.de>
20756
20757 * passes.def: Move early points-to after early SRA.
20758
20759 2014-04-14 Richard Biener <rguenther@suse.de>
20760
20761 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20762 check for which sign-changes we allow when forwarding
20763 a converted value into a switch.
20764
20765 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20766
20767 * stor-layout.c (place_field): Finalize non-constant offset for the
20768 field, if any.
20769
20770 2014-04-14 Richard Biener <rguenther@suse.de>
20771
20772 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20773 as argument.
20774 (expand_switch_using_bit_tests_p): Likewise.
20775 (process_switch): Compute and pass on speed_p based on the
20776 switch stmt.
20777 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20778 optimize_bb_for_speed_p.
20779
20780 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20781
20782 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20783 * function.h (struct function): Rename has_force_vect_loops into
20784 has_force_vectorize_loops.
20785 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20786 (input_struct_function_base): Likewise.
20787 * lto-streamer-out.c (output_cfg): Likewise.
20788 (output_struct_function_base): Likewise.
20789 * omp-low.c (expand_omp_simd): Likewise.
20790 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20791 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20792 (version_loop_for_if_conversion): Likewise.
20793 (tree_if_conversion): Likewise.
20794 (main_tree_if_conversion): Likewise.
20795 (gate_tree_if_conversion): Likewise.
20796 * tree-inline.c (copy_loops): Likewise.
20797 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20798 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20799 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20800 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20801 * tree-vectorizer.c (vectorize_loops): Likewise.
20802 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20803
20804 2014-04-14 Richard Biener <rguenther@suse.de>
20805
20806 PR lto/60720
20807 * lto-streamer-out.c (wrap_refs): New function.
20808 (lto_output): Wrap symbol references in global initializes in
20809 type-preserving MEM_REFs.
20810
20811 2014-04-14 Christian Bruel <christian.bruel@st.com>
20812
20813 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20814
20815 2014-04-14 Christian Bruel <christian.bruel@st.com>
20816
20817 * config/sh/sh.md (setmemqi): New expand pattern.
20818 * config/sh/sh.h (CLEAR_RATIO): Define.
20819 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20820 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20821
20822 2014-04-14 Richard Biener <rguenther@suse.de>
20823
20824 PR middle-end/55022
20825 * fold-const.c (negate_expr_p): Don't negate directional rounding
20826 division.
20827 (fold_negate_expr): Likewise.
20828
20829 2014-04-14 Richard Biener <rguenther@suse.de>
20830
20831 PR tree-optimization/59817
20832 PR tree-optimization/60453
20833 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20834 recursion to catch all CHRECs in the scalar evolution and restrict
20835 the predicate for the remains appropriately.
20836
20837 2014-04-12 Catherine Moore <clm@codesourcery.com>
20838
20839 * config/mips/constraints.md: Add new register constraint "kb".
20840 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20841 (*movhi_internal): Likewise.
20842 (*movqi_internal): Likewise.
20843 * config/mips/mips.h (M16_STORE_REGS): New register class.
20844 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20845 (REG_CLASS_CONTENTS): Likewise.
20846 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20847
20848 2014-04-11 Tobias Burnus <burnus@net-b.de>
20849
20850 PR c/60194
20851 * doc/invoke.texi (-Wformat-signedness): Document it.
20852 (Wformat=2): Mention that this enables -Wformat-signedness.
20853
20854 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20855
20856 * common/config/epiphany/epiphany-common.c
20857 (epiphany_option_optimization_table): Enable section anchors by
20858 default at -O1 or higher.
20859 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20860 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20861 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20862 carries no extra cost.
20863 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20864 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20865 * config/epiphany/predicates.md (memclob_operand): New predicate.
20866 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20867 Use memclob_operand predicate and X constraint for operand 3.
20868
20869 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20870
20871 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20872 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20873 its operands.
20874
20875 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20876
20877 PR rtl-optimization/60651
20878 * mode-switching.c (optimize_mode_switching): Make sure to emit
20879 sets of a lower numbered entity before sets of a higher numbered
20880 entity to a mode of the same or lower priority.
20881 When creating a seginfo for a basic block that starts with a code
20882 label, move the insertion point past the code label.
20883 (new_seginfo): Document and enforce requirement that
20884 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20885 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20886 * doc/tm.texi: Regenerate.
20887
20888 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20889
20890 PR target/60811
20891 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20892
20893 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20894
20895 * BASE-VER: Set to 4.10.0.
20896
20897 2014-04-11 Tobias Burnus <burnus@net-b.de>
20898
20899 PR other/59055
20900 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20901 * doc/gcc.texi (Service): Update description in the @menu
20902 * doc/invoke.texi (Option Summary): Remove misplaced and
20903 duplicated @menu.
20904
20905 2014-04-11 Steve Ellcey <sellcey@mips.com>
20906 Jakub Jelinek <jakub@redhat.com>
20907
20908 PR middle-end/60556
20909 * expr.c (convert_move): Use emit_store_flag_force instead of
20910 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20911 argument to it.
20912
20913 2014-04-11 Richard Biener <rguenther@suse.de>
20914
20915 PR middle-end/60797
20916 * varasm.c (assemble_alias): Avoid endless error reporting
20917 recursion by setting TREE_ASM_WRITTEN.
20918
20919 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20920
20921 * config/s390/s390.md: Add a splitter for NOT rtx.
20922
20923 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20924
20925 PR rtl-optimization/60663
20926 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20927
20928 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20929 Jakub Jelinek <jakub@redhat.com>
20930
20931 PR lto/60567
20932 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20933 flag from decl_node to node.
20934
20935 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20936
20937 PR debug/60655
20938 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20939 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20940 ameliorating the cases where it can be.
20941
20942 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20943
20944 Revert
20945 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20946
20947 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20948 (loadsync_<mode>): Change mode.
20949 (load_quadpti, store_quadpti): New.
20950 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20951 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20952 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20953
20954 2014-04-09 Cong Hou <congh@google.com>
20955
20956 PR testsuite/60773
20957 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20958 documentation.
20959
20960 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20961
20962 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20963 instead of vnor to exploit possible fusion opportunity in the
20964 future.
20965 (altivec_expand_vec_perm_const_le): Likewise.
20966
20967 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20968
20969 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20970 (loadsync_<mode>): Change mode.
20971 (load_quadpti, store_quadpti): New.
20972 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20973 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20974
20975 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20976
20977 PR target/60763
20978 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20979 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20980 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20981
20982 2014-04-08 Richard Biener <rguenther@suse.de>
20983
20984 PR middle-end/60706
20985 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20986 a 64bit widest int print double-int similar to on HWI64 hosts.
20987
20988 2014-04-08 Richard Biener <rguenther@suse.de>
20989
20990 PR tree-optimization/60785
20991 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20992 default defs properly.
20993
20994 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20995
20996 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20997 (Weffc++): Likewise.
20998
20999 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21000
21001 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21002 set completep to false rather than true.
21003
21004 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21005
21006 PR target/60504
21007 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21008 ARM_TARGET2_DWARF_FORMAT.
21009
21010 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21011
21012 PR target/60609
21013 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21014 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21015 ADDR_DIFF_VEC.
21016
21017 2014-04-07 Richard Biener <rguenther@suse.de>
21018
21019 PR tree-optimization/60766
21020 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21021 (may_eliminate_iv): Convert cand_value_at result to desired type.
21022
21023 2014-04-07 Jason Merrill <jason@redhat.com>
21024
21025 PR c++/60731
21026 * common.opt (-fno-gnu-unique): Add.
21027 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21028
21029 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21030
21031 * haifa-sched.c: Fix outdated function reference and minor
21032 grammar errors in introductory comment.
21033
21034 2014-04-07 Richard Biener <rguenther@suse.de>
21035
21036 PR middle-end/60750
21037 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21038 for noreturn calls.
21039 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21040
21041 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21042
21043 PR debug/55794
21044 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21045 size accounting for thunks.
21046 (pa_asm_output_mi_thunk): Use final_start_function() and
21047 final_end_function() to output function start and end directives.
21048
21049 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21050
21051 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21052 device specific ISA/ feature information. Remove short_sp and
21053 errata_skip ds. Add avr_device_specific_features enum to have device
21054 specific info.
21055 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21056 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21057 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21058 updated device specific info.
21059 * config/avr/avr-mcus.def: Merge device specific details to
21060 dev_attribute field.
21061 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21062 errata_skip.
21063 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21064 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21065 assembler if RMW isa supported by current device.
21066 * config/avr/genmultilib.awk: Update as device info structure changed.
21067 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21068
21069 2014-04-04 Cong Hou <congh@google.com>
21070
21071 PR tree-optimization/60656
21072 * tree-vect-stmts.c (supportable_widening_operation):
21073 Fix a bug that elements in a vector with vect_used_by_reduction
21074 property are incorrectly reordered when the operation on it is not
21075 consistant with the one in reduction operation.
21076
21077 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21078
21079 PR rtl-optimization/60155
21080 * gcse.c (record_set_data): New function.
21081 (single_set_gcse): New function.
21082 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21083 (hoist_code): Likewise.
21084 (get_pressure_class_and_nregs): Likewise.
21085
21086 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21087
21088 * explow.c (probe_stack_range): Emit a final optimization blockage.
21089
21090 2014-04-04 Anthony Green <green@moxielogic.com>
21091
21092 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21093 typos.
21094
21095 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21096
21097 PR ipa/59626
21098 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21099 flags are set only during streaming.
21100 * ipa.c (process_references, walk_polymorphic_call_targets,
21101 symtab_remove_unreachable_nodes): Drop bodies of always inline
21102 after early inlining.
21103 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21104
21105 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21106 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21107
21108 PR debug/60655
21109 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21110 containing a NOT.
21111
21112 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21113
21114 PR bootstrap/60743
21115 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21116 duration.
21117 (cortex_a53_fdivd): Likewise.
21118
21119 2014-04-04 Martin Jambor <mjambor@suse.cz>
21120
21121 PR ipa/60640
21122 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21123 Adjust all callers.
21124 * cgraph.c (clone_of_p): Also return true if thunks match.
21125 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21126 cgraph_function_or_thunk_node and an obsolete comment.
21127 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21128 file.
21129 (build_function_decl_skip_args): Likewise.
21130 (set_new_clone_decl_and_node_flags): New function.
21131 (duplicate_thunk_for_node): Likewise.
21132 (redirect_edge_duplicating_thunks): Likewise.
21133 (cgraph_clone_node): New parameter args_to_skip, pass it to
21134 redirect_edge_duplicating_thunks which is called instead of
21135 cgraph_redirect_edge_callee.
21136 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21137 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21138
21139 2014-04-04 Jeff Law <law@redhat.com>
21140
21141 PR target/60657
21142 * config/arm/predicates.md (const_int_I_operand): New predicate.
21143 (const_int_M_operand): Similarly.
21144 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21145 const_int_operand.
21146 (insv_t2, extv_reg, extzv_t2): Likewise.
21147 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21148 (pop_multiple_with_writeback_and_return): Likewise.
21149 (vfp_pop_multiple_with_writeback): Likewise
21150
21151 2014-04-04 Richard Biener <rguenther@suse.de>
21152
21153 PR ipa/60746
21154 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21155 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21156 non-GIMPLE_LABELs.
21157 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21158 * gimplify.c (gimple_add_tmp_var_fn): New function.
21159 * gimple-expr.h (create_tmp_reg_fn): Declare.
21160 * gimple-expr.c (create_tmp_reg_fn): New function.
21161 * gimple-low.c (record_vars_into): Don't change cfun.
21162 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21163 code generation without cfun.
21164
21165 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21166
21167 PR bootstrap/60719
21168 * Makefile.in (install-driver): Fix shell scripting.
21169
21170 2014-04-03 Cong Hou <congh@google.com>
21171
21172 PR tree-optimization/60505
21173 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21174 threshold of number of iterations below which no vectorization
21175 will be done.
21176 * tree-vect-loop.c (new_loop_vec_info):
21177 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21178 * tree-vect-loop.c (vect_analyze_loop_operations):
21179 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21180 * tree-vect-loop.c (vect_transform_loop):
21181 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21182 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21183 of iterations of the loop and see if we should build the epilogue.
21184
21185 2014-04-03 Richard Biener <rguenther@suse.de>
21186
21187 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21188 (streamer_tree_cache_create): Adjust.
21189 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21190 to allow optional nodes array.
21191 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21192 (streamer_tree_cache_append): Likewise.
21193 (streamer_tree_cache_create): Create nodes array optionally
21194 as specified by parameter.
21195 * lto-streamer-out.c (create_output_block): Avoid maintaining
21196 the node array in the writer cache.
21197 (DFS_write_tree): Remove assertion.
21198 (produce_asm_for_decls): Free the out decl state hash table early.
21199 * lto-streamer-in.c (lto_data_in_create): Adjust for
21200 streamer_tree_cache_create prototype change.
21201
21202 2014-04-03 Richard Biener <rguenther@suse.de>
21203
21204 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21205 set TREE_CHAIN to NULL_TREE.
21206
21207 2014-04-03 Richard Biener <rguenther@suse.de>
21208
21209 PR tree-optimization/60740
21210 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21211 over all GIMPLE_COND operands.
21212
21213 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21214
21215 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21216 (Weffc++): Remove Scott's numbering, merge lists and reference
21217 Wnon-virtual-dtor.
21218
21219 2014-04-03 Nick Clifton <nickc@redhat.com>
21220
21221 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21222 properly.
21223
21224 2014-04-03 Martin Jambor <mjambor@suse.cz>
21225
21226 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21227 mention gcc_unreachable before failing.
21228 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21229 removed symbols.
21230
21231 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21232
21233 PR ipa/60659
21234 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21235 inconsistent code and instead mark the context inconsistent.
21236 (possible_polymorphic_call_targets): For inconsistent contexts
21237 return empty complete list.
21238
21239 2014-04-02 Anthony Green <green@moxielogic.com>
21240
21241 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21242 (extendqisi2, extendhisi2): Define.
21243 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21244 (WCHAR_TYPE): Change to unsigned int.
21245
21246 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21247
21248 PR tree-optimization/60733
21249 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21250 insertion point for PHI candidates to be the end of the feeding
21251 block for the PHI argument.
21252
21253 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21254
21255 PR rtl-optimization/60650
21256 * lra-constraints.c (process_alt_operands): Decrease reject for
21257 earlyclobber matching.
21258
21259 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21260
21261 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21262
21263 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21264
21265 * config/spu/spu.c (pad_bb): Do not crash when the last
21266 insn is CODE_FOR_blockage.
21267
21268 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21269
21270 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21271 lies outside the target mode.
21272
21273 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21274
21275 PR target/60735
21276 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21277 software floating point or no floating point registers, do not
21278 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21279 in GPRs that occurs after we tested for GPRs that would never be
21280 true.
21281
21282 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21283 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21284 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21285 specifically allow DDmode, since that does not use the SPE SIMD
21286 instructions.
21287
21288 2014-04-02 Richard Biener <rguenther@suse.de>
21289
21290 PR middle-end/60729
21291 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21292 MODE_INTs. Properly use negv_optab.
21293 (expand_abs): Likewise.
21294
21295 2014-04-02 Richard Biener <rguenther@suse.de>
21296
21297 PR bootstrap/60719
21298 * Makefile.in (install-driver): Guard extra installs with special
21299 names properly.
21300
21301 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21302
21303 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21304 Document vec_vgbbd.
21305
21306 2014-04-01 Richard Henderson <rth@redhat.com>
21307
21308 PR target/60704
21309 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21310 alternative enabled before register allocation.
21311
21312 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21313
21314 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21315 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21316 typo.
21317 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21318 (nios2_got_address): Update nios2_large_got_address call site.
21319 (nios2_delegitimize_address): New function.
21320 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21321 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21322 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21323
21324 2014-04-01 Martin Husemann <martin@duskware.de>
21325
21326 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21327 for -mabi=32.
21328
21329 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21330
21331 PR rtl-optimization/60604
21332 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21333 check from register_operand.
21334 (register_operand): Redefine in terms of general_operand.
21335 (nonmemory_operand): Use register_operand for the non-constant cases.
21336
21337 2014-04-01 Richard Biener <rguenther@suse.de>
21338
21339 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21340
21341 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21342
21343 * doc/invoke.texi (mapp-regs): Clarify.
21344
21345 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21346
21347 * config/i386/avx512fintrin.h (__v32hi): Define type.
21348 (__v64qi): Likewise.
21349 (_mm512_set1_epi8): Define.
21350 (_mm512_set1_epi16): Define.
21351 (_mm512_set4_epi32): Define.
21352 (_mm512_set4_epi64): Define.
21353 (_mm512_set4_pd): Define.
21354 (_mm512_set4_ps): Define.
21355 (_mm512_setr4_epi64): Define.
21356 (_mm512_setr4_epi32): Define.
21357 (_mm512_setr4_pd): Define.
21358 (_mm512_setr4_ps): Define.
21359 (_mm512_setzero_epi32): Define.
21360
21361 2014-03-31 Martin Jambor <mjambor@suse.cz>
21362
21363 PR middle-end/60647
21364 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21365 callsite_arguments_match_p. Updated all callers. Also check types of
21366 corresponding formal parameters and actual arguments.
21367 (not_all_callers_have_enough_arguments_p) Renamed to
21368 some_callers_have_mismatched_arguments_p.
21369
21370 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21371
21372 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21373
21374 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21375
21376 PR target/60034
21377 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21378 section anchor.
21379
21380 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21381
21382 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21383 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21384 Split out
21385 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21386 Use FMAMODE_NOVF512 mode iterator.
21387 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21388 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21389 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21390 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21391 Split out
21392 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21393 Use VF_128_256 mode iterator.
21394 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21395 Ditto.
21396
21397 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21398
21399 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21400 static chain if needed.
21401
21402 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21403
21404 PR target/60697
21405 * lra-constraints.c (index_part_to_reg): New.
21406 (process_address): Use it.
21407
21408 2014-03-27 Jeff Law <law@redhat.com>
21409 Jakub Jelinek <jakub@redhat.com>
21410
21411 PR target/60648
21412 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21413 gen_rtx_{PLUS,MULT} to build up the address expression.
21414
21415 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21416 creating non-canonical RTL.
21417
21418 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21419
21420 PR ipa/60243
21421 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21422 functions; reorganize to make cheap checks first.
21423 (inline_small_functions): Do not estimate growth when dumping;
21424 it is expensive.
21425 * ipa-inline.h (inline_summary): Add min_size.
21426 (growth_likely_positive): New function.
21427 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21428 (set_cond_stmt_execution_predicate): Cleanup.
21429 (estimate_edge_size_and_time): Compute min_size.
21430 (estimate_calls_size_and_time): Likewise.
21431 (estimate_node_size_and_time): Likewise.
21432 (inline_update_overall_summary): Update min_size.
21433 (do_estimate_edge_time): Likewise.
21434 (do_estimate_edge_size): Update.
21435 (do_estimate_edge_hints): Update.
21436 (growth_likely_positive): New function.
21437
21438 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21439
21440 PR target/60693
21441 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21442 also if addr has VOIDmode.
21443
21444 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21445
21446 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21447 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21448 Declare extern.
21449 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21450 instructions as well as AdvancedSIMD loads.
21451
21452 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21453
21454 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21455 Use crypto_aese type.
21456 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21457 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21458 crypto_aese, crypto_aesmc. Move to types.md.
21459 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21460 crypto_aesmc.
21461 * config/arm/iterators.md (crypto_type): Likewise.
21462
21463 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21464
21465 * cgraph.c: Include expr.h and tree-dfa.h.
21466 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21467 remove LHS.
21468
21469 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21470
21471 PR target/60675
21472 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21473 regs from checking multi-reg pseudos.
21474
21475 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21476
21477 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21478
21479 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21480
21481 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21482 if it would clobber the stack pointer, even temporarily.
21483
21484 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21485
21486 * mode-switching.c: Make small adjustments to the top comment.
21487
21488 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21489
21490 * config/rs6000/constraints.md (wD constraint): New constraint to
21491 match the constant integer to get the top DImode/DFmode out of a
21492 vector in a VSX register.
21493
21494 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21495 match the constant integer to get the top DImode/DFmode out of a
21496 vector in a VSX register.
21497
21498 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21499 for ISA 2.07.
21500
21501 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21502 vbpermq builtins.
21503
21504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21505 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21506
21507 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21508 Optimize vec_extract of 64-bit values, where the value being
21509 extracted is in the top word, where we can use scalar
21510 instructions. Add direct move and store support. Combine the big
21511 endian/little endian vector select load support into a single insn.
21512 (vsx_extract_<mode>_internal1): Likewise.
21513 (vsx_extract_<mode>_internal2): Likewise.
21514 (vsx_extract_<mode>_load): Likewise.
21515 (vsx_extract_<mode>_store): Likewise.
21516 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21517 combined into vsx_extract_<mode>_load.
21518 (vsx_extract_<mode>_one_le): Likewise.
21519
21520 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21521 define the top 64-bit vector element.
21522
21523 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21524 constraint.
21525
21526 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21527 Document vec_vbpermq builtin.
21528
21529 PR target/60672
21530 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21531 enable use of xxsldwi and xxpermdi builtin functions.
21532 (vec_xxpermdi): Likewise.
21533
21534 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21535 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21536
21537 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21538
21539 PR rtl-optimization/60650
21540 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21541 first_p. Use it.
21542 (find_spills_for): New.
21543 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21544 Spill all pseudos on the second iteration.
21545
21546 2014-03-27 Marek Polacek <polacek@redhat.com>
21547
21548 PR c/50347
21549 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21550 types.
21551
21552 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21553
21554 * config/s390/s390.c (s390_can_use_return_insn): Check for
21555 call-saved FPRs on 31 bit.
21556
21557 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21558
21559 PR middle-end/60682
21560 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21561 if they need regimplification, just drop them instead of
21562 calling gimple_regimplify_operands on them.
21563
21564 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21565
21566 PR target/60580
21567 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21568 (aarch64_frame_pointer_required): Adjust logic.
21569 (aarch64_can_eliminate): Adjust logic.
21570 (aarch64_override_options_after_change): Adjust logic.
21571
21572 2014-03-27 Dehao Chen <dehao@google.com>
21573
21574 * ipa-inline.c (early_inliner): Update node's inline info.
21575
21576 2014-03-26 Dehao Chen <dehao@google.com>
21577
21578 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21579 compiler inserted conditional jumps for NAN float check.
21580
21581 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21582
21583 * ubsan.h (ubsan_create_data): Change second argument's type
21584 to const location_t *.
21585 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21586 _("<unknown>").
21587 (ubsan_create_data): Change second argument to const location_t *PLOC.
21588 Create Loc field whenever PLOC is non-NULL.
21589 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21590 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21591 callers.
21592
21593 PR other/59545
21594 * real.c (real_to_integer2): Change type of low to UHWI.
21595
21596 2014-03-26 Tobias Burnus <burnus@net-b.de>
21597
21598 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21599 (CILK_SELF_SPECS): New define.
21600 (driver_self_specs): Use it.
21601
21602 2014-03-26 Richard Biener <rguenther@suse.de>
21603
21604 * tree-pretty-print.c (percent_K_format): Implement special
21605 case for LTO and its stripped down BLOCK tree.
21606
21607 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21608
21609 PR sanitizer/60636
21610 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21611
21612 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21613 one range is range_int_cst_p, but not both, at least optimize
21614 addition/subtraction of 0 and multiplication by 0 or 1.
21615 * gimple-fold.c (gimple_fold_call): Fold
21616 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21617 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21618 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21619
21620 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21621
21622 PR rtl-optimization/60452
21623 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21624 <case REG>: Return 1 for invalid offsets from the frame pointer.
21625
21626 2014-03-26 Marek Polacek <polacek@redhat.com>
21627
21628 PR c/37428
21629 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21630 a structure/union.
21631
21632 2014-03-26 Marek Polacek <polacek@redhat.com>
21633
21634 PR c/39525
21635 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21636 field members.
21637
21638 2014-03-26 Marek Polacek <polacek@redhat.com>
21639
21640 PR other/59545
21641 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21642 multiplication in unsigned type.
21643
21644 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21645
21646 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21647
21648 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21649
21650 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21651
21652 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21653
21654 PR ipa/60315
21655 * cif-code.def (UNREACHABLE) New code.
21656 * ipa-inline.c (inline_small_functions): Skip edges to
21657 __builtlin_unreachable.
21658 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21659 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21660 predicate to __bulitin_unreachable.
21661 (set_cond_stmt_execution_predicate): Fix issue when
21662 invert_tree_comparison returns ERROR_MARK.
21663 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21664 propagate to inline clones.
21665 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21666 to unreachable.
21667 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21668 * cgraphclones.c (cgraph_clone_node): If call destination is already
21669 ureachable, do not redirect it back.
21670 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21671 unreachable.
21672
21673 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21674
21675 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21676 Do not modify inline clones.
21677
21678 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21679
21680 * config/i386/i386.md (general_sext_operand): New mode attr.
21681 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21682 don't generate (sign_extend (const_int)).
21683 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21684 operands[2]. Use We constraint instead of <i> and
21685 <general_sext_operand> predicate instead of <general_operand>.
21686 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21687 * config/i386/constraints.md (We): New constraint.
21688 * config/i386/predicates.md (x86_64_sext_operand,
21689 sext_operand): New predicates.
21690
21691 2014-03-25 Martin Jambor <mjambor@suse.cz>
21692
21693 PR ipa/60600
21694 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21695 inconsistent devirtualizations to __builtin_unreachable.
21696
21697 2014-03-25 Marek Polacek <polacek@redhat.com>
21698
21699 PR c/35449
21700 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21701
21702 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21703
21704 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21705 order of elements for big-endian.
21706
21707 2014-03-25 Richard Biener <rguenther@suse.de>
21708
21709 PR middle-end/60635
21710 * gimplify-me.c (gimple_regimplify_operands): Update the
21711 re-gimplifed stmt.
21712
21713 2014-03-25 Martin Jambor <mjambor@suse.cz>
21714
21715 PR ipa/59176
21716 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21717 (lto_output_varpool_node): Likewise.
21718 (input_overwrite_node): Likewise.
21719 (input_varpool_node): Likewise.
21720
21721 2014-03-25 Richard Biener <rguenther@suse.de>
21722
21723 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21724 (run_gcc): Likewise.
21725
21726 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21727
21728 * combine.c (simplify_compare_const): Add MODE argument.
21729 Handle mode_width 0 as very large mode_width.
21730 (try_combine, simplify_comparison): Adjust callers.
21731
21732 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21733 type to avoid signed integer overflow.
21734 * explow.c (plus_constant): Likewise.
21735
21736 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21737
21738 * doc/generic.texi: Correct typos.
21739
21740 2014-03-24 Tobias Burnus <burnus@net-b.de>
21741
21742 * doc/invoke.texi (-flto): Expand section about
21743 using static libraries with LTO.
21744
21745 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21746
21747 PR rtl-optimization/60501
21748 * optabs.def (addptr3_optab): New optab.
21749 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21750 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21751 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21752
21753 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21754
21755 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21756
21757 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21758
21759 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21760 _mm512_set1_pd.
21761
21762 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21763 (_mm256_undefined_ps): Define.
21764 (_mm256_undefined_pd): Define.
21765 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21766 (_mm_undefined_pd): Define.
21767 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21768 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21769 (_mm512_undefined_ps): Define.
21770 (_mm512_undefined_pd): Define.
21771 Use _mm*_undefined_*.
21772 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21773
21774 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21775
21776 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21777 (lshr_simd): DI mode added.
21778 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21779 (aarch64_ushr_simddi): Likewise.
21780 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21781 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21782 (vshrd_n_u64): Likewise.
21783
21784 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21785
21786 * Makefile.in (s-macro_list): Depend on cc1.
21787
21788 2014-03-23 Teresa Johnson <tejohnson@google.com>
21789
21790 * ipa-utils.c (ipa_print_order): Use specified dump file.
21791
21792 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21793
21794 PR rtl-optimization/60601
21795 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21796
21797 * gcc.c (eval_spec_function): Initialize save_growing_value.
21798
21799 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21800
21801 PR sanitizer/60613
21802 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21803 code == MINUS_EXPR, never swap op0 with op1.
21804
21805 * toplev.c (init_local_tick): Avoid signed integer multiplication
21806 overflow.
21807 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21808 shift by first operand's bitsize.
21809
21810 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21811
21812 PR target/60610
21813 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21814 redefine to 1 or 0.
21815 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21816 TARGET_ISA_64BIT_P(x).
21817
21818 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21819
21820 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21821 pattern for vector nor instead of subtract from splat(-1).
21822 (altivec_expand_vec_perm_const_le): Likewise.
21823
21824 2014-03-21 Richard Henderson <rth@twiddle.net>
21825
21826 PR target/60598
21827 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21828 related insns after epilogue_completed.
21829
21830 2014-03-21 Martin Jambor <mjambor@suse.cz>
21831
21832 PR ipa/59176
21833 * cgraph.h (symtab_node): New flag body_removed.
21834 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21835 when removing bodies.
21836 * symtab.c (dump_symtab_base): Dump body_removed flag.
21837 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21838 had their bodies removed.
21839
21840 2014-03-21 Martin Jambor <mjambor@suse.cz>
21841
21842 PR ipa/60419
21843 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21844 in the border.
21845
21846 2014-03-21 Richard Biener <rguenther@suse.de>
21847
21848 PR tree-optimization/60577
21849 * tree-core.h (struct tree_base): Document nothrow_flag use
21850 in DECL_NONALIASED.
21851 * tree.h (DECL_NONALIASED): New.
21852 (may_be_aliased): Adjust.
21853 * coverage.c (build_var): Set DECL_NONALIASED.
21854
21855 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21856
21857 * expr.c (expand_expr_real_1): Remove outdated comment.
21858
21859 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21860
21861 PR middle-end/60597
21862 * ira.c (adjust_cleared_regs): Call copy_rtx on
21863 *reg_equiv[REGNO (loc)].src_p before passing it to
21864 simplify_replace_fn_rtx.
21865
21866 PR target/60568
21867 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21868 into CONST, put pic register as first operand of PLUS. Use
21869 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21870
21871 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21872
21873 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21874
21875 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21876
21877 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21878 around for store forwarding issue in the FPU on the UT699.
21879 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21880 loads and operations if -mfix-ut699 is specified.
21881 (divtf3_hq): Tweak attribute.
21882 (sqrttf2_hq): Likewise.
21883
21884 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21885
21886 * calls.c (store_one_arg): Remove incorrect const qualification on the
21887 type of the temporary.
21888 * cfgexpand.c (expand_return): Likewise.
21889 * expr.c (expand_constructor): Likewise.
21890 (expand_expr_real_1): Likewise.
21891
21892 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21893
21894 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21895 of parts.
21896
21897 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21898
21899 PR target/60039
21900 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21901
21902 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21903
21904 * config/arm/aarch-common-protos.h
21905 (alu_cost_table): Fix spelling of "extend".
21906 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21907
21908 2014-03-19 Richard Biener <rguenther@suse.de>
21909
21910 PR middle-end/60553
21911 * tree-core.h (tree_type_common): Re-order pointer members
21912 to reduce recursion depth during GC walks.
21913
21914 2014-03-19 Marek Polacek <polacek@redhat.com>
21915
21916 PR sanitizer/60569
21917 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21918 before accessing it.
21919
21920 2014-03-19 Richard Biener <rguenther@suse.de>
21921
21922 PR lto/59543
21923 * lto-streamer-in.c (input_function): In WPA stage do not drop
21924 debug stmts.
21925
21926 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21927
21928 PR tree-optimization/60559
21929 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21930 with build_zero_cst assignment.
21931
21932 2014-03-18 Kai Tietz <ktietz@redhat.com>
21933
21934 PR rtl-optimization/56356
21935 * sdbout.c (sdbout_parms): Verify that parms'
21936 incoming argument is valid.
21937 (sdbout_reg_parms): Likewise.
21938
21939 2014-03-18 Richard Henderson <rth@redhat.com>
21940
21941 PR target/60562
21942 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21943 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21944 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21945
21946 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21947
21948 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21949 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21950 Italicize plugin event names in description. Explain that
21951 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21952 Remind that no GCC functions should be called after PLUGIN_FINISH.
21953 Explain what pragmas with expansion are.
21954
21955 2014-03-18 Martin Liska <mliska@suse.cz>
21956
21957 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21958 gimple call statement is update.
21959 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21960 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21961
21962 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21963
21964 PR sanitizer/60557
21965 * ubsan.c (ubsan_instrument_unreachable): Call
21966 initialize_sanitizer_builtins.
21967 (ubsan_pass): Likewise.
21968
21969 PR sanitizer/60535
21970 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21971 varpool_finalize_decl instead of rest_of_decl_compilation.
21972
21973 2014-03-18 Richard Biener <rguenther@suse.de>
21974
21975 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21976 by using bitmap_and_compl instead of bitmap_and_compl_into.
21977 (df_rd_transfer_function): Likewise.
21978
21979 2014-03-18 Richard Biener <rguenther@suse.de>
21980
21981 * doc/lto.texi (fresolution): Fix typo.
21982
21983 2014-03-18 Richard Biener <rguenther@suse.de>
21984
21985 * doc/invoke.texi (flto): Update for changes in 4.9.
21986
21987 2014-03-18 Richard Biener <rguenther@suse.de>
21988
21989 * doc/loop.texi: Remove section on the removed lambda framework.
21990 Update loop docs with recent changes in preserving loop structure.
21991
21992 2014-03-18 Richard Biener <rguenther@suse.de>
21993
21994 * doc/lto.texi (-fresolution): Document.
21995
21996 2014-03-18 Richard Biener <rguenther@suse.de>
21997
21998 * doc/contrib.texi: Adjust my name.
21999
22000 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22001
22002 PR ipa/58721
22003 * internal-fn.c: Include diagnostic-core.h.
22004 (expand_BUILTIN_EXPECT): New function.
22005 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22006 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22007 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22008 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22009 IFN_BUILTIN_EXPECT.
22010 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22011 Revert 3 argument __builtin_expect code.
22012 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22013 * gimple-fold.c (gimple_fold_call): Likewise.
22014 * tree.h (fold_builtin_expect): New prototype.
22015 * builtins.c (build_builtin_expect_predicate): Add predictor
22016 argument, if non-NULL, create 3 argument __builtin_expect.
22017 (fold_builtin_expect): No longer static. Add ARG2 argument,
22018 pass it through to build_builtin_expect_predicate.
22019 (fold_builtin_2): Adjust caller.
22020 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22021 * internal-fn.def (BUILTIN_EXPECT): New.
22022
22023 2014-03-18 Tobias Burnus <burnus@net-b.de>
22024
22025 PR ipa/58721
22026 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22027 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22028 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22029
22030 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22031
22032 PR ipa/58721
22033 * predict.c (combine_predictions_for_bb): Fix up formatting.
22034 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22035 fill what it points to if non-NULL.
22036 (tree_predict_by_opcode): Adjust caller, use the predictor.
22037 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22038
22039 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22040
22041 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22042 proper constant for the store mode.
22043
22044 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22045
22046 * symtab.c (change_decl_assembler_name): Fix transparent alias
22047 chain construction.
22048
22049 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22050
22051 * config/aarch64/aarch64.c: Correct the comments about the
22052 aarch64 stack layout.
22053
22054 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22055
22056 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22057 check for GF_OMP_FOR_KIND_FOR.
22058
22059 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22060
22061 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22062 ymm and zmm register names.
22063
22064 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22065
22066 PR target/60516
22067 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22068 note creation for the 2010-08-31 changes.
22069
22070 2014-03-17 Marek Polacek <polacek@redhat.com>
22071
22072 PR middle-end/60534
22073 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22074 as -fno-tree-loop-vectorize.
22075 (expand_omp_simd): Likewise.
22076
22077 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22078
22079 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22080 (eligible_for_call_delay): New prototype.
22081 * config/sparc/sparc.c (tls_call_delay): Rename into...
22082 (eligible_for_call_delay): ...this. Return false if the instruction
22083 cannot be put in the delay slot of a branch.
22084 (eligible_for_restore_insn): Simplify.
22085 (eligible_for_return_delay): Return false if the instruction cannot be
22086 put in the delay slot of a branch and simplify.
22087 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22088 put in the delay slot of a branch.
22089 * config/sparc/sparc.md (fix_ut699): New attribute.
22090 (tls_call_delay): Delete.
22091 (in_call_delay): Reimplement.
22092 (eligible_for_sibcall_delay): Rename into...
22093 (in_sibcall_delay): ...this.
22094 (eligible_for_return_delay): Rename into...
22095 (in_return_delay): ...this.
22096 (in_branch_delay): Reimplement.
22097 (in_uncond_branch_delay): Delete.
22098 (in_annul_branch_delay): Delete.
22099
22100 2014-03-14 Richard Henderson <rth@redhat.com>
22101
22102 PR target/60525
22103 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22104 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22105 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22106 (floathi splitters): Remove.
22107 (float<SWI48x>xf2): New pattern.
22108 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22109 code that tried to handle DImode for 32-bit, but which was excluded
22110 by the pattern's condition. Drop allocation of stack temporary.
22111 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22112 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22113 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22114 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22115 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22116 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22117 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22118 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22119 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22120 (*float<SWI48x><X87MODEF>2_i387): Remove.
22121 (all float _with_temp splitters): Remove.
22122 (*float<SWI48x><MODEF>2_i387): New pattern.
22123 (*float<SWI48><MODEF>2_sse): New pattern.
22124 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22125 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22126
22127 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22128 Marek Polacek <polacek@redhat.com>
22129
22130 PR middle-end/60484
22131 * common.opt (dump_base_name_prefixed): New Variable.
22132 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22133 if x_dump_base_name_prefixed is already set, set it at the end.
22134
22135 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22136
22137 PR rtl-optimization/60508
22138 * lra-constraints.c (get_reload_reg): Add new parameter
22139 in_subreg_p.
22140 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22141 Pass the new parameter values.
22142
22143 2014-03-14 Richard Biener <rguenther@suse.de>
22144
22145 * common.opt: Revert unintented changes from r205065.
22146 * opts.c: Likewise.
22147
22148 2014-03-14 Richard Biener <rguenther@suse.de>
22149
22150 PR middle-end/60518
22151 * cfghooks.c (split_block): Properly adjust all loops the
22152 block was a latch of.
22153
22154 2014-03-14 Martin Jambor <mjambor@suse.cz>
22155
22156 PR lto/60461
22157 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22158 and simplify it.
22159
22160 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22161
22162 PR target/59396
22163 * config/avr/avr.c (avr_set_current_function): Pass function name
22164 through default_strip_name_encoding before sanity checking instead
22165 of skipping the first char of the assembler name.
22166
22167 2014-03-13 Richard Henderson <rth@redhat.com>
22168
22169 PR debug/60438
22170 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22171 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22172 * config/i386/i386-protos.h: Likewise.
22173 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22174 in the expander instead of a splitter.
22175 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22176 any possibility of requiring a memory.
22177 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22178 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22179 (fp branch splitters): Update for ix86_split_fp_branch.
22180 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22181 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22182 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22183 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22184 (*fop_<MODEF>_3_i387): Likewise.
22185 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22186 (splitters for the fop_* register patterns): Remove.
22187 (fscalexf4_i387): Rename from *fscalexf4_i387.
22188 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22189
22190 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22191
22192 PR tree-optimization/59779
22193 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22194 type for bitsize and maxsize instead of HOST_WIDE_INT.
22195
22196 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22197
22198 PR rtl-optimization/57320
22199 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22200 the CFG after thread_prologue_and_epilogue_insns.
22201
22202 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22203
22204 PR rtl-optimization/57189
22205 * lra-constraints.c (process_alt_operands): Disfavor spilling
22206 vector pseudos.
22207
22208 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22209
22210 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22211
22212 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22213
22214 PR tree-optimization/59025
22215 PR middle-end/60418
22216 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22217 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22218
22219 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22220
22221 PR target/60486
22222 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22223 calls of avr_out_plus_1.
22224
22225 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22226
22227 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22228 BB's single pred and update the father loop's latch info later.
22229
22230 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22231
22232 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22233 (VEC_M): Likewise.
22234 (VEC_N): Likewise.
22235 (VEC_R): Likewise.
22236 (VEC_base): Likewise.
22237 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22238 registers, we need to swap double words in little endian mode.
22239
22240 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22241 to be a container mode for 128-bit integer operations added in ISA
22242 2.07. Unlike TImode and PTImode, the preferred register set is
22243 the Altivec/VMX registers for the 128-bit operations.
22244
22245 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22246 declarations.
22247 (rs6000_split_128bit_ok_p): Likewise.
22248
22249 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22250 macros for creating ISA 2.07 normal and overloaded builtin
22251 functions with 3 arguments.
22252 (BU_P8V_OVERLOAD_3): Likewise.
22253 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22254 for use as overloaded functions.
22255 (VPERM_1TI_UNS): Likewise.
22256 (VSEL_1TI): Likewise.
22257 (VSEL_1TI_UNS): Likewise.
22258 (ST_INTERNAL_1ti): Likewise.
22259 (LD_INTERNAL_1ti): Likewise.
22260 (XXSEL_1TI): Likewise.
22261 (XXSEL_1TI_UNS): Likewise.
22262 (VPERM_1TI): Likewise.
22263 (VPERM_1TI_UNS): Likewise.
22264 (XXPERMDI_1TI): Likewise.
22265 (SET_1TI): Likewise.
22266 (LXVD2X_V1TI): Likewise.
22267 (STXVD2X_V1TI): Likewise.
22268 (VEC_INIT_V1TI): Likewise.
22269 (VEC_SET_V1TI): Likewise.
22270 (VEC_EXT_V1TI): Likewise.
22271 (EQV_V1TI): Likewise.
22272 (NAND_V1TI): Likewise.
22273 (ORC_V1TI): Likewise.
22274 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22275 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22276 overloaded builtin.
22277 (VADDUQM): Likewise.
22278 (VSUBCUQ): Likewise.
22279 (VADDEUQM): Likewise.
22280 (VADDECUQ): Likewise.
22281 (VSUBEUQM): Likewise.
22282 (VSUBECUQ): Likewise.
22283
22284 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22285 __int128_t and __uint128_t types.
22286 (__uint128_type): Likewise.
22287 (altivec_categorize_keyword): Add support for vector __int128_t,
22288 vector __uint128_t, vector __int128, and vector unsigned __int128
22289 as a container type for TImode operations that need to be done in
22290 VSX/Altivec registers.
22291 (rs6000_macro_to_expand): Likewise.
22292 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22293 to support 128-bit integer instructions vaddcuq, vadduqm,
22294 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22295 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22296
22297 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22298 for V1TImode, and set up preferences to use VSX/Altivec registers.
22299 Setup VSX reload handlers.
22300 (rs6000_debug_reg_global): Likewise.
22301 (rs6000_init_hard_regno_mode_ok): Likewise.
22302 (rs6000_preferred_simd_mode): Likewise.
22303 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22304 (easy_altivec_constant): Likewise.
22305 (output_vec_const_move): Likewise.
22306 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22307 simple move.
22308 (rs6000_expand_vector_extract): Likewise.
22309 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22310 addressing.
22311 (rs6000_const_vec): Add support for V1TImode.
22312 (rs6000_emit_le_vsx_load): Swap double words when loading or
22313 storing TImode/V1TImode.
22314 (rs6000_emit_le_vsx_store): Likewise.
22315 (rs6000_emit_le_vsx_move): Likewise.
22316 (rs6000_emit_move): Add support for V1TImode.
22317 (altivec_expand_ld_builtin): Likewise.
22318 (altivec_expand_st_builtin): Likewise.
22319 (altivec_expand_vec_init_builtin): Likewise.
22320 (altivec_expand_builtin): Likewise.
22321 (rs6000_init_builtins): Add support for V1TImode type. Add
22322 support for ISA 2.07 128-bit integer builtins. Define type names
22323 for the VSX/Altivec vector types.
22324 (altivec_init_builtins): Add support for overloaded vector
22325 functions with V1TImode type.
22326 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22327 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22328 external function.
22329 (rs6000_split_128bit_ok_p): Likewise.
22330 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22331 __int128_t and vector __uint128_t.
22332
22333 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22334 and mode attributes.
22335 (VSX_M): Likewise.
22336 (VSX_M2): Likewise.
22337 (VSm): Likewise.
22338 (VSs): Likewise.
22339 (VSr): Likewise.
22340 (VSv): Likewise.
22341 (VS_scalar): Likewise.
22342 (VS_double): Likewise.
22343 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22344
22345 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22346 we support the ISA 2.07 128-bit integer arithmetic instructions.
22347 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22348 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22349 and TImode types for use with the builtin functions.
22350 (V1TI_type_node): Likewise.
22351 (unsigned_V1TI_type_node): Likewise.
22352 (intTI_type_internal_node): Likewise.
22353 (uintTI_type_internal_node): Likewise.
22354
22355 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22356 128-bit builtin functions.
22357 (UNSPEC_VADDEUQM): Likewise.
22358 (UNSPEC_VADDECUQ): Likewise.
22359 (UNSPEC_VSUBCUQ): Likewise.
22360 (UNSPEC_VSUBEUQM): Likewise.
22361 (UNSPEC_VSUBECUQ): Likewise.
22362 (VM): Add V1TImode to vector mode iterators.
22363 (VM2): Likewise.
22364 (VI_unit): Likewise.
22365 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22366 (altivec_vaddcuq): Likewise.
22367 (altivec_vsubuqm): Likewise.
22368 (altivec_vsubcuq): Likewise.
22369 (altivec_vaddeuqm): Likewise.
22370 (altivec_vaddecuq): Likewise.
22371 (altivec_vsubeuqm): Likewise.
22372 (altivec_vsubecuq): Likewise.
22373
22374 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22375 mode iterators.
22376 (BOOL_128): Likewise.
22377 (BOOL_REGS_OUTPUT): Likewise.
22378 (BOOL_REGS_OP1): Likewise.
22379 (BOOL_REGS_OP2): Likewise.
22380 (BOOL_REGS_UNARY): Likewise.
22381 (BOOL_REGS_AND_CR0): Likewise.
22382
22383 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22384 128-bit integer builtin support.
22385 (vec_vadduqm): Likewise.
22386 (vec_vaddecuq): Likewise.
22387 (vec_vaddeuqm): Likewise.
22388 (vec_vsubecuq): Likewise.
22389 (vec_vsubeuqm): Likewise.
22390 (vec_vsubcuq): Likewise.
22391 (vec_vsubuqm): Likewise.
22392
22393 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22394 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22395 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22396 128-bit integer add/subtract to ISA 2.07.
22397
22398 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22399
22400 * config/arc/arc.c (arc_predicate_delay_insns):
22401 Fix third argument passed to conditionalize_nonjump.
22402
22403 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22404
22405 * config/aarch64/aarch64-builtins.c
22406 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22407 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22408 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22409 instead of __builtin_lfloor.
22410 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22411
22412 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22413
22414 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22415 (tree_ssa_ifcombine_bb_1): New function.
22416 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22417 is an empty forwarder block to then_bb or vice versa and then_bb
22418 and else_bb are effectively swapped.
22419
22420 2014-03-12 Christian Bruel <christian.bruel@st.com>
22421
22422 PR target/60264
22423 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22424 REG_CFA_DEF_CFA note.
22425 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22426 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22427
22428 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22429
22430 PR tree-optimization/60454
22431 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22432
22433 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22434
22435 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22436 Do not define target_cpu_default2 to generic.
22437 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22438 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22439 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22440
22441 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22442 Marc Glisse <marc.glisse@inria.fr>
22443
22444 PR tree-optimization/60502
22445 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22446 instead of build_low_bits_mask.
22447
22448 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22449
22450 PR middle-end/60482
22451 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22452 if there are multiple uses, but op doesn't live on E edge.
22453 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22454 clobber stmts before __builtin_unreachable.
22455
22456 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22457
22458 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22459 hard_frame_pointer_rtx.
22460 * cse.c (cse_insn): Remove volatile check.
22461 * cselib.c (cselib_process_insn): Likewise.
22462 * dse.c (scan_insn): Likewise.
22463
22464 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22465
22466 * config/arc/arc.c (conditionalize_nonjump): New function,
22467 broken out of ...
22468 (arc_ifcvt): ... this.
22469 (arc_predicate_delay_insns): Use it.
22470
22471 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22472
22473 * config/arc/predicates.md (extend_operand): During/after reload,
22474 allow const_int_operand.
22475 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22476 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22477 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22478 to "i".
22479 (umulsi3_highpart_i): Likewise.
22480
22481 2014-03-11 Richard Biener <rguenther@suse.de>
22482
22483 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22484 Add asserts to guard possible wrong-code bugs.
22485
22486 2014-03-11 Richard Biener <rguenther@suse.de>
22487
22488 PR tree-optimization/60429
22489 PR tree-optimization/60485
22490 * tree-ssa-structalias.c (set_union_with_increment): Properly
22491 take into account all fields that overlap the shifted vars.
22492 (do_sd_constraint): Likewise.
22493 (do_ds_constraint): Likewise.
22494 (get_constraint_for_ptr_offset): Likewise.
22495
22496 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22497
22498 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22499 (nios2_compute_frame_layout):
22500 Add calculation of cfun->machine->fp_save_offset.
22501 (nios2_expand_prologue): Correct setting of frame pointer register
22502 in prologue.
22503 (nios2_expand_epilogue): Update recovery of stack pointer from
22504 frame pointer accordingly.
22505 (nios2_initial_elimination_offset): Update calculation of offset
22506 for eliminating to HARD_FRAME_POINTER_REGNUM.
22507
22508 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22509
22510 PR ipa/60457
22511 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22512 cgraph_get_create_node on VAR_DECLs.
22513
22514 2014-03-10 Richard Biener <rguenther@suse.de>
22515
22516 PR middle-end/60474
22517 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22518
22519 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22520
22521 * config/vms/vms.opt (vms_float_format): New variable.
22522
22523 2014-03-08 Tobias Burnus <burnus@net-b.de>
22524
22525 * doc/invoke.texi (-fcilkplus): Update implementation status.
22526
22527 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22528 Richard Biener <rguenther@suse.de>
22529
22530 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22531 consistently accross all TUs.
22532 (run_gcc): Enable -fshort-double automatically at link at link-time
22533 and disallow override.
22534
22535 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22536
22537 PR target/58271
22538 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22539 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22540 if they can't be used.
22541
22542 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22543
22544 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22545 for Solaris 11/x86 ld.
22546 * configure: Regenerate.
22547
22548 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22549
22550 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22551 (LIB_TLS_SPEC): Save as ld_tls_libs.
22552 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22553 (HAVE_AS_IX86_TLSLDM): New test.
22554 * configure, config.in: Regenerate.
22555 * config/i386/i386.c (legitimize_tls_address): Fall back to
22556 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22557 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22558 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22559 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22560
22561 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22562
22563 * common.opt (fira-loop-pressure): Mark as optimization.
22564
22565 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22566
22567 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22568 an OpenMP mappable type.
22569
22570 2014-03-06 Matthias Klose <doko@ubuntu.com>
22571
22572 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22573 MULTILIB_OSDIRNAMES is not defined.
22574
22575 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22576 Meador Inge <meadori@codesourcery.com>
22577
22578 PR target/58595
22579 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22580 (arm_legitimize_address): Call legitimize_tls_address for any
22581 arm_tls_referenced_p expression, handle constant addend. Call it
22582 before testing for !TARGET_ARM.
22583 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22584
22585 2014-03-06 Richard Biener <rguenther@suse.de>
22586
22587 PR middle-end/60445
22588 PR lto/60424
22589 PR lto/60427
22590 Revert
22591 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22592
22593 * tree-streamer.c (record_common_node): Assert we don't record
22594 nodes with type double.
22595 (preload_common_node): Skip type double, complex double and double
22596 pointer since it is now frontend dependent due to fshort-double option.
22597
22598 2014-03-06 Richard Biener <rguenther@suse.de>
22599
22600 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22601 or -fno-lto is specified and the linker has full plugin support.
22602 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22603 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22604 * lto-wrapper.c (merge_and_complain): Merge compile-time
22605 optimization levels.
22606 (run_gcc): And pass it through to the link options.
22607
22608 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22609
22610 PR debug/60381
22611 Revert:
22612 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22613 PR debug/59992
22614 * cselib.c (remove_useless_values): Skip to avoid quadratic
22615 behavior if the condition moved from...
22616 (cselib_process_insn): ... here holds.
22617
22618 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22619
22620 PR plugins/59335
22621 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22622 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22623
22624 PR plugins/59335
22625 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22626 (TM_H): Add x86-tune.def.
22627
22628 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22629
22630 * config/aarch64/aarch64.c (generic_tunings):
22631 Use cortexa57_extra_costs.
22632
22633 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22634
22635 PR lto/60404
22636 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22637 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22638 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22639 cost for in_lto_p.
22640
22641 2014-03-04 Heiher <r@hev.cc>
22642
22643 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22644 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22645
22646 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22647
22648 * config/i386/predicates.md (const2356_operand): Change to ...
22649 (const2367_operand): ... this.
22650 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22651 const2367_operand.
22652 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22653 (*avx512pf_scatterpf<mode>sf): Ditto.
22654 (avx512pf_scatterpf<mode>df): Ditto.
22655 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22656 (*avx512pf_scatterpf<mode>df): Ditto.
22657 * config/i386/i386.c (ix86_expand_builtin): Update
22658 incorrect hint operand error message.
22659
22660 2014-03-04 Richard Biener <rguenther@suse.de>
22661
22662 * lto-section-in.c (lto_get_section_data): Fix const cast.
22663
22664 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22665
22666 * tree-streamer.c (record_common_node): Assert we don't record
22667 nodes with type double.
22668 (preload_common_node): Skip type double, complex double and double
22669 pointer since it is now frontend dependent due to fshort-double option.
22670
22671 2014-03-04 Richard Biener <rguenther@suse.de>
22672
22673 PR lto/60405
22674 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22675 (lto_input_toplevel_asms): Likewise.
22676 * lto-section-in.c (lto_get_section_data): Instead do it here
22677 for every section.
22678
22679 2014-03-04 Richard Biener <rguenther@suse.de>
22680
22681 PR tree-optimization/60382
22682 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22683 dead PHIs a reduction.
22684
22685 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22686
22687 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22688 hint value.
22689 (_mm_prefetch): Move out of GCC target("sse") pragma.
22690 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22691 GCC target("prfchw") pragma.
22692 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22693 for locality <= 2.
22694 * config/i386/i386.c (ix86_option_override_internal): Enable
22695 -mprfchw with -mprefetchwt1.
22696
22697 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22698
22699 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22700 Mark as varying.
22701
22702 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22703
22704 * opts.h (CL_PCH_IGNORE): Define.
22705 * targhooks.c (option_affects_pch_p):
22706 Return false for options that have CL_PCH_IGNORE set.
22707 * opt-functions.awk: Process PchIgnore.
22708 * doc/options.texi: Document PchIgnore.
22709
22710 * config/arc/arc.opt (misize): Add PchIgnore property.
22711
22712 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22713
22714 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22715 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22716 constraint on constants to permit them being loaded into
22717 GENERAL_REGS or BASE_REGS.
22718
22719 2014-03-03 Nick Clifton <nickc@redhat.com>
22720
22721 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22722 anti-cacnonical alternatives.
22723 (negandhi3_real): New pattern.
22724 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22725
22726 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22727
22728 * config/avr/avr-mcus.def: Remove atxmega16x1.
22729 * config/avr/avr-tables.opt: Regenerate.
22730 * config/avr/t-multilib: Regenerate.
22731 * doc/avr-mmcu.texi: Regenerate.
22732
22733 2014-03-03 Tobias Grosser <tobias@grosser.es>
22734 Mircea Namolaru <mircea.namolaru@inria.fr>
22735
22736 PR tree-optimization/58028
22737 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22738 scalar dimensions.
22739
22740 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22741
22742 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22743 not handled by recognizers.
22744
22745 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22746
22747 PR middle-end/60175
22748 * function.c (expand_function_end): Don't emit
22749 clobber_return_register sequence if clobber_after is a BARRIER.
22750 * cfgexpand.c (construct_exit_block): Append instructions before
22751 return_label to prev_bb.
22752
22753 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22754
22755 * config/rs6000/constraints.md: Document reserved use of "wc".
22756
22757 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22758
22759 PR ipa/60150
22760 * ipa.c (function_and_variable_visibility): When dissolving comdat
22761 group, also set all symbols to local.
22762
22763 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22764
22765 PR ipa/60306
22766
22767 Revert:
22768 2013-12-14 Jan Hubicka <jh@suse.cz>
22769 PR middle-end/58477
22770 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22771
22772 2014-03-02 Jon Beniston <jon@beniston.com>
22773
22774 PR bootstrap/48230
22775 PR bootstrap/50927
22776 PR bootstrap/52466
22777 PR target/46898
22778 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22779 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22780 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22781 (simple_return, *simple_return): New patterns
22782 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22783 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22784
22785 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22786
22787 * dwarf2out.c (gen_subprogram_die): Tidy.
22788
22789 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22790
22791 PR target/60071
22792 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22793 (*mov_t_msb_neg_negc): ... this new insn.
22794
22795 2014-02-28 Jason Merrill <jason@redhat.com>
22796
22797 PR c++/58678
22798 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22799 function.
22800
22801 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22802
22803 PR c++/60314
22804 * dwarf2out.c (decltype_auto_die): New static.
22805 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22806 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22807 (is_cxx_auto): Likewise.
22808
22809 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22810
22811 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22812 we are not using general regs only.
22813
22814 2014-02-28 Richard Biener <rguenther@suse.de>
22815
22816 PR target/60280
22817 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22818 previous fix and only allow to remove trivial pre-headers
22819 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22820 (remove_forwarder_block): Properly update the latch of a loop.
22821
22822 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22823
22824 PR debug/59992
22825 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22826 (cselib_preserved_hash_table): New.
22827 (preserve_constants_and_equivs): Move preserved vals to it.
22828 (cselib_find_slot): Look it up first.
22829 (cselib_init): Initialize it.
22830 (cselib_finish): Release it.
22831 (dump_cselib_table): Dump it.
22832
22833 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22834
22835 PR debug/59992
22836 * cselib.c (remove_useless_values): Skip to avoid quadratic
22837 behavior if the condition moved from...
22838 (cselib_process_insn): ... here holds.
22839
22840 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22841
22842 PR debug/57232
22843 * var-tracking.c (vt_initialize): Apply the same condition to
22844 preserve the CFA base value.
22845
22846 2014-02-28 Joey Ye <joey.ye@arm.com>
22847
22848 PR target/PR60169
22849 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22850 if reload in progress or completed.
22851
22852 2014-02-28 Tobias Burnus <burnus@net-b.de>
22853
22854 PR middle-end/60147
22855 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22856 NAMELIST_DECL.
22857
22858 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22859
22860 * doc/tm.texi.in (Condition Code Status): Update documention for
22861 relative locations of cc0-setter and cc0-user.
22862
22863 2014-02-27 Jeff Law <law@redhat.com>
22864
22865 PR rtl-optimization/52714
22866 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22867 into two independent simple sets, if I3 is a jump, ensure the
22868 pattern we place into I3 is a (set (pc) ...).
22869
22870 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22871 Jeff Law <law@redhat.com>
22872
22873 PR rtl-optimization/49847
22874 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22875 are in different blocks.
22876 * doc/tm.texi (Condition Code Status): Update documention for
22877 relative locations of cc0-setter and cc0-user.
22878
22879 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22880
22881 PR target/59222
22882 * lra.c (lra_emit_add): Check SUBREG too.
22883
22884 2014-02-27 Andreas Schwab <schwab@suse.de>
22885
22886 * config/m68k/m68k.c (m68k_option_override): Disable
22887 -flive-range-shrinkage for classic m68k.
22888 (m68k_override_options_after_change): Likewise.
22889
22890 2014-02-27 Marek Polacek <polacek@redhat.com>
22891
22892 PR middle-end/59223
22893 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22894 -Wmaybe-uninitialized.
22895
22896 2014-02-27 Alan Modra <amodra@gmail.com>
22897
22898 PR target/57936
22899 * reload1.c (emit_input_reload_insns): When reload_override_in,
22900 set old to rl->in_reg when rl->in_reg is a subreg.
22901
22902 2014-02-26 Richard Biener <rguenther@suse.de>
22903
22904 PR bootstrap/60343
22905 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22906
22907 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22908
22909 * common/config/i386/predicates.md (const1256_operand): Remove.
22910 (const2356_operand): New.
22911 (const_1_to_2_operand): Remove.
22912 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22913 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22914 (*avx512pf_gatherpf<mode>sf): Ditto.
22915 (avx512pf_gatherpf<mode>df): Ditto.
22916 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22917 (*avx512pf_gatherpf<mode>df): Ditto.
22918 (avx512pf_scatterpf<mode>sf): Ditto.
22919 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22920 (*avx512pf_scatterpf<mode>sf): Ditto.
22921 (avx512pf_scatterpf<mode>df): Ditto.
22922 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22923 (*avx512pf_scatterpf<mode>df): Ditto.
22924 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22925
22926 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22927
22928 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22929 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22930 (_mm512_mask_testn_epi64_mask): Move to ...
22931 * config/i386/avx512cdintrin.h: Here.
22932 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22933 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22934 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22935 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22936 TARGET_AVX512F from TARGET_AVX512CD.
22937
22938 2014-02-26 Richard Biener <rguenther@suse.de>
22939
22940 PR ipa/60327
22941 * ipa.c (walk_polymorphic_call_targets): Properly guard
22942 call to inline_update_overall_summary.
22943
22944 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22945
22946 PR target/60280
22947 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22948 and latches only if requested. Fix latch if it is removed.
22949 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22950 LOOPS_HAVE_PREHEADERS.
22951
22952 2014-02-25 Andrew Pinski <apinski@cavium.com>
22953
22954 * builtins.c (expand_builtin_thread_pointer): Create a new target
22955 when the target is NULL.
22956
22957 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22958
22959 PR rtl-optimization/60317
22960 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22961 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22962 * lra-assigns.c: Include params.h.
22963 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22964 other reload pseudos considerations.
22965
22966 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22967
22968 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22969 to use canonical form for nor<mode>3.
22970
22971 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22972
22973 PR target/55426
22974 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22975 conversions.
22976
22977 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22978
22979 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22980 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22981 (ix86_handle_option): Handle OPT_mprefetchwt1.
22982 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22983 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22984 PREFETCHWT1 CPUID.
22985 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22986 OPTION_MASK_ISA_PREFETCHWT1.
22987 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22988 (PTA_PREFETCHWT1): New.
22989 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22990 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22991 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22992 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22993 (*prefetch_avx512pf_<mode>_: Change into ...
22994 (*prefetch_prefetchwt1_<mode>: This.
22995 * config/i386/i386.opt (mprefetchwt1): New.
22996 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22997 (_mm_prefetch): Handle intent to write.
22998 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22999
23000 2014-02-25 Richard Biener <rguenther@suse.de>
23001
23002 PR middle-end/60291
23003 * emit-rtl.c (mem_attrs_htab): Remove.
23004 (mem_attrs_htab_hash): Likewise.
23005 (mem_attrs_htab_eq): Likewise.
23006 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23007 (init_emit_once): Do not allocate mem_attrs_htab.
23008
23009 2014-02-25 Richard Biener <rguenther@suse.de>
23010
23011 PR lto/60319
23012 * lto-opts.c (lto_write_options): Output non-explicit conservative
23013 -fwrapv, -fno-trapv and -fno-strict-overflow.
23014 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23015 (run_gcc): And pass them through.
23016
23017 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23018
23019 * sel-sched.c (calculate_new_fences): New parameter ptime.
23020 Calculate it as a maximum over all fence cycles.
23021 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23022 Print the final schedule timing when sched_verbose.
23023
23024 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23025
23026 PR rtl-optimization/60292
23027 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23028 bit fot the fence instruction.
23029
23030 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23031
23032 * calls.h: Fix typo in comment.
23033
23034 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23035
23036 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23037 adjusting offsetable addresses.
23038
23039 2014-02-24 Guozhi Wei <carrot@google.com>
23040
23041 * sparseset.h (sparseset_pop): Fix the wrong index.
23042
23043 2014-02-24 Walter Lee <walt@tilera.com>
23044
23045 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23046 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23047 triplet.
23048 * common/config/tilegx/tilegx-common.c
23049 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23050 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23051 (LINK_SPEC): Ditto.
23052 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23053 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23054 (tilegx_gimplify_va_arg_expr): Handle big endian.
23055 (tilegx_expand_unaligned_load): Ditto.
23056 (tilegx_expand_unaligned_store): Ditto.
23057 (TARGET_RETURN_IN_MSB): New.
23058 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23059 (TARGET_ENDIAN_DEFAULT): New.
23060 (TARGET_BIG_ENDIAN): Handle big endian.
23061 (BYTES_BIG_ENDIAN): Ditto.
23062 (WORDS_BIG_ENDIAN): Ditto.
23063 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23064 (ENDIAN_SPEC): New.
23065 (EXTRA_SPECS): New.
23066 * config/tilegx/tilegx.md (extv): Handle big endian.
23067 (extzv): Ditto.
23068 (insn_st<n>): Ditto.
23069 (insn_st<n>_add<bitsuffix>): Ditto.
23070 (insn_stnt<n>): Ditto.
23071 (insn_stnt<n>_add<bitsuffix>):Ditto.
23072 (vec_interleave_highv8qi): Handle big endian.
23073 (vec_interleave_highv8qi_be): New.
23074 (vec_interleave_highv8qi_le): New.
23075 (insn_v1int_h): Handle big endian.
23076 (vec_interleave_lowv8qi): Handle big endian.
23077 (vec_interleave_lowv8qi_be): New.
23078 (vec_interleave_lowv8qi_le): New.
23079 (insn_v1int_l): Handle big endian.
23080 (vec_interleave_highv4hi): Handle big endian.
23081 (vec_interleave_highv4hi_be): New.
23082 (vec_interleave_highv4hi_le): New.
23083 (insn_v2int_h): Handle big endian.
23084 (vec_interleave_lowv4hi): Handle big endian.
23085 (vec_interleave_lowv4hi_be): New.
23086 (vec_interleave_lowv4hi_le): New.
23087 (insn_v2int_l): Handle big endian.
23088 (vec_interleave_highv2si): Handle big endian.
23089 (vec_interleave_highv2si_be): New.
23090 (vec_interleave_highv2si_le): New.
23091 (insn_v4int_h): Handle big endian.
23092 (vec_interleave_lowv2si): Handle big endian.
23093 (vec_interleave_lowv2si_be): New.
23094 (vec_interleave_lowv2si_le): New.
23095 (insn_v4int_l): Handle big endian.
23096 * config/tilegx/tilegx.opt (mbig-endian): New option.
23097 (mlittle-endian): New option.
23098 * doc/install.texi: Document tilegxbe-linux.
23099 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23100
23101 2014-02-24 Martin Jambor <mjambor@suse.cz>
23102
23103 PR ipa/60266
23104 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23105 there are no parameter descriptors.
23106
23107 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23108
23109 PR rtl-optimization/60268
23110 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23111 initialization to ...
23112 (sched_rgn_init): ... here.
23113 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23114
23115 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23116
23117 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23118 names.
23119
23120 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23121
23122 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23123 definition.
23124
23125 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23126
23127 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23128 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23129
23130 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23131
23132 * config/microblaze/predicates.md: Add cmp_op predicate.
23133 * config/microblaze/microblaze.md: Add branch_compare instruction
23134 which uses cmp_op predicate and emits cmp insn before branch.
23135 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23136 to microblaze_expand_conditional_branch and consolidate logic.
23137 (microblaze_expand_conditional_branch): emit branch_compare
23138 insn instead of handling cmp op separate from branch insn.
23139
23140 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23141
23142 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23143 to permit subregs.
23144
23145 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23146
23147 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23148 define_insn with define_expand and new define_insn
23149 *altivec_lve<VI_char>x_internal.
23150 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23151 and new define_insn *altivec_stve<VI_char>x_internal.
23152 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23153 prototype.
23154 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23155 lve*x built-ins.
23156 (altivec_expand_stvex_be): New function.
23157
23158 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23159
23160 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23161 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23162 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23163 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23164
23165 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23166
23167 PR target/60298
23168 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23169 instead of emit_move_insn.
23170
23171 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23172
23173 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23174 vspltw with vsldoi.
23175 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23176 gen_altivec_vsumsws.
23177
23178 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23179
23180 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23181 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23182 (altivec_lvxl_<mode>): New define_expand incorporating
23183 -maltivec=be semantics where needed.
23184 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23185 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23186 semantics where needed.
23187 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23188 (altivec_stvx_<mode>): New define_expand incorporating
23189 -maltivec=be semantics where needed.
23190 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23191 VM2 iterator instead of V4SI.
23192 (altivec_stvxl_<mode>): New define_expand incorporating
23193 -maltivec=be semantics where needed.
23194 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23195 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23196 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23197 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23198 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23199 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23200 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23201 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23202 ALTIVEC_BUILTIN_STVXL.
23203 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23204 (altivec_expand_stvx_be): Likewise.
23205 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23206 (altivec_expand_lvx_be): Likewise.
23207 (altivec_expand_stvx_be): Likewise.
23208 (altivec_expand_builtin): Add cases for
23209 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23210 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23211 (altivec_init_builtins): Add definitions for
23212 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23213 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23214
23215 2014-02-21 Catherine Moore <clm@codesourcery.com>
23216
23217 * doc/invoke.texi (mvirt, mno-virt): Document.
23218 * config/mips/mips.opt (mvirt): New option.
23219 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23220
23221 2014-02-21 Richard Biener <rguenther@suse.de>
23222
23223 PR tree-optimization/60276
23224 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23225 (STMT_VINFO_MIN_NEG_DIST): New macro.
23226 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23227 STMT_VINFO_MIN_NEG_DIST.
23228 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23229 made for negative dependence distances still hold.
23230
23231 2014-02-21 Richard Biener <rguenther@suse.de>
23232
23233 PR middle-end/60291
23234 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23235 DECL_INITIAL for globals not in the current function context.
23236
23237 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23238
23239 PR tree-optimization/56490
23240 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23241 * tree-ssa-uninit.c: Include params.h.
23242 (compute_control_dep_chain): Add num_calls argument, return false
23243 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23244 num_calls to recursive call.
23245 (find_predicates): Change dep_chain into normal array,
23246 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23247 variable and adjust compute_control_dep_chain caller.
23248 (find_def_preds): Likewise.
23249
23250 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23251
23252 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23253 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23254
23255 2014-02-21 Nick Clifton <nickc@redhat.com>
23256
23257 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23258 (pushhi1): Likewise.
23259 (popqi1): Add mode to pre_dec.
23260 (pophi1): Likewise.
23261
23262 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23263
23264 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23265 mode for mask of V8SFmode permutation.
23266
23267 2014-02-20 Richard Henderson <rth@redhat.com>
23268
23269 PR c++/60272
23270 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23271 a new pseudo for OLDVAL.
23272
23273 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23274
23275 PR target/57896
23276 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23277 gen_reg_rtx if d->testing_p.
23278 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23279 if d->testing_p and we will certainly return true.
23280 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23281 if d->testing_p.
23282
23283 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23284
23285 * emit-rtl.c (gen_reg_rtx): Assert that
23286 crtl->emit.regno_pointer_align_length is non-zero.
23287
23288 2014-02-20 Richard Henderson <rth@redhat.com>
23289
23290 PR c++/60272
23291 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23292 on failure the store back into EXPECT.
23293
23294 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23295 Sandra Loosemore <sandra@codesourcery.com>
23296
23297 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23298 * config/nios2/nios2.c (nios2_function_profiler): Add
23299 -fPIC (flag_pic == 2) support.
23300 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23301 (nios2_large_offset_p): New function.
23302 (nios2_unspec_reloc_p): Move up position, update to use
23303 nios2_large_offset_p.
23304 (nios2_unspec_address): Remove function.
23305 (nios2_unspec_offset): New function.
23306 (nios2_large_got_address): New function.
23307 (nios2_got_address): Add large offset support.
23308 (nios2_legitimize_tls_address): Update usage of removed and new
23309 functions.
23310 (nios2_symbol_binds_local_p): New function.
23311 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23312 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23313 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23314 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23315 processing for (const (unspec ...)).
23316 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23317
23318 2014-02-20 Richard Biener <rguenther@suse.de>
23319
23320 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23321 doing the substitution.
23322 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23323
23324 2014-02-20 Martin Jambor <mjambor@suse.cz>
23325
23326 PR ipa/55260
23327 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23328 info when checking whether lattices are bottom.
23329
23330 2014-02-20 Richard Biener <rguenther@suse.de>
23331
23332 PR middle-end/60221
23333 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23334 regions at -O0.
23335
23336 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23337
23338 PR ipa/58555
23339 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23340 parameter specifying the scaling.
23341 (inline_call): Update.
23342 (want_inline_recursively): Guard division by zero.
23343 (recursive_inlining): Update.
23344 * ipa-inline.h (clone_inlined_nodes): Update.
23345
23346 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23347
23348 PR target/60204
23349 * config/i386/i386.c (classify_argument): Pass structures of size
23350 64 bytes or less in register.
23351
23352 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23353 Kirill Yukhin <kirill.yukhin@intel.com>
23354
23355 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23356 (_mm_rcp28_round_ss): Ditto.
23357 (_mm_rsqrt28_round_sd): Ditto.
23358 (_mm_rsqrt28_round_ss): Ditto.
23359 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23360 (_mm_rcp14_round_ss): Ditto.
23361 (_mm_rsqrt14_round_sd): Ditto.
23362 (_mm_rsqrt14_round_ss): Ditto.
23363 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23364 the first input operand, get rid of match_dup.
23365 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23366 attribute to sse.
23367 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23368 Ditto.
23369 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23370 operand as the first input operand, set type attribute.
23371 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23372 Set type attribute.
23373 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23374 operand as the first input operand, set type attribute.
23375
23376 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23377
23378 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23379 bit of zero.
23380
23381 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23382
23383 PR target/60207
23384 * config/i386/i386.c (construct_container): Remove TFmode check
23385 for X86_64_INTEGER_CLASS.
23386
23387 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23388
23389 PR target/59794
23390 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23391 only when -Wpsabi is enabled.
23392
23393 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23394
23395 PR target/59799
23396 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23397 passing arrays in registers are the same as for structs, so remove the
23398 special case for them.
23399
23400 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23401
23402 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23403 destination type, extract only the valid bits if the source type is not
23404 integral and has a different mode.
23405
23406 2014-02-19 Richard Biener <rguenther@suse.de>
23407
23408 PR ipa/60243
23409 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23410 for all calls.
23411
23412 2014-02-19 Richard Biener <rguenther@suse.de>
23413
23414 PR ipa/60243
23415 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23416 (ipa_modify_call_arguments): Emit an argument load explicitely and
23417 preserve virtual SSA form there and for the replacement call.
23418 Do not update SSA form nor free dominance info.
23419
23420 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23421
23422 * ipa.c (function_and_variable_visibility): Also clear WEAK
23423 flag when disolving COMDAT_GROUP.
23424
23425 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23426
23427 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23428 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23429 not devirtualizing.
23430 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23431 do more sanity checks.
23432 (detect_type_change): Return true when giving up early.
23433 (compute_complex_assign_jump_func): Fix type parameter of
23434 ipa_set_ancestor_jf.
23435 (compute_complex_ancestor_jump_func): Likewise.
23436 (update_jump_functions_after_inlining): Fix updating of
23437 ancestor function.
23438 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23439
23440 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23441
23442 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23443 inline clones when edge disappears.
23444
23445 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23446
23447 PR target/60203
23448 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23449 Split 64-bit moves into 2 patterns. Do not allow the use of
23450 direct move for TDmode in little endian, since the decimal value
23451 has little endian bytes within a word, but the 64-bit pieces are
23452 ordered in a big endian fashion, and normal subreg's of TDmode are
23453 not allowed.
23454 (mov<mode>_64bit_dm): Likewise.
23455 (movtd_64bit_nodm): Likewise.
23456
23457 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23458
23459 PR tree-optimization/60174
23460 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23461 statement of an SSA_NAME that occurs in an abnormal PHI node.
23462
23463 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23464
23465 PR sanitizer/60142
23466 * final.c (SEEN_BB): Remove.
23467 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23468 (final_scan_insn): Don't force_source_line on second
23469 NOTE_INSN_BASIC_BLOCK.
23470
23471 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23472
23473 PR target/60205
23474 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23475 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23476 (type_natural_mode): Warn ABI change when %zmm register is not
23477 available for AVX512F vector value passing.
23478
23479 2014-02-18 Kai Tietz <ktietz@redhat.com>
23480
23481 PR target/60193
23482 * config/i386/i386.c (ix86_expand_prologue): Use value in
23483 rax register as displacement when restoring %r10 or %rax.
23484 Fix wrong offset when restoring both registers.
23485
23486 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23487
23488 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23489 assertion with conditional return.
23490
23491 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23492 Uros Bizjak <ubizjak@gmail.com>
23493
23494 PR driver/60233
23495 * config/i386/driver-i386.c (host_detect_local_cpu): If
23496 YMM state is not saved by the OS, also clear has_f16c. Move
23497 CPUID 0x80000001 handling before YMM state saving checking.
23498
23499 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23500
23501 PR rtl-optimization/58960
23502 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23503 factored out from ...
23504 (sched_init): ... here.
23505 (free_global_sched_pressure_data): New, factored out from ...
23506 (sched_finish): ... here.
23507 * sched-int.h (free_global_sched_pressure_data): Declare.
23508 * sched-rgn.c (nr_regions_initial): New static global.
23509 (haifa_find_rgns): Initialize it.
23510 (schedule_region): Disable sched-pressure for the newly
23511 generated regions.
23512
23513 2014-02-17 Richard Biener <rguenther@suse.de>
23514
23515 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23516 release SSA defs of pattern stmts.
23517
23518 2014-02-17 Richard Biener <rguenther@suse.de>
23519
23520 * tree-inline.c (expand_call_inline): Release the virtual
23521 operand defined by the call we are about to inline.
23522
23523 2014-02-17 Richard Biener <rguenther@suse.de>
23524
23525 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23526
23527 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23528 Ilya Tocar <ilya.tocar@intel.com>
23529
23530 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23531 arguments order in builtin.
23532 (_mm512_permutexvar_epi64): Ditto.
23533 (_mm512_mask_permutexvar_epi64): Ditto
23534 (_mm512_maskz_permutexvar_epi32): Ditto
23535 (_mm512_permutexvar_epi32): Ditto
23536 (_mm512_mask_permutexvar_epi32): Ditto
23537
23538 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23539
23540 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23541 (p8_vmrgow): Likewise.
23542
23543 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23544
23545 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23546 endian targets.
23547
23548 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23549
23550 PR target/60203
23551 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23552 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23553 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23554 using direct move instructions on ISA 2.07. Also adjust
23555 instruction length for 64-bit.
23556 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23557 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23558
23559 2014-02-15 Alan Modra <amodra@gmail.com>
23560
23561 PR target/58675
23562 PR target/57935
23563 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23564 find_replacement on parts of insn rtl that might be reloaded.
23565
23566 2014-02-15 Richard Biener <rguenther@suse.de>
23567
23568 PR tree-optimization/60183
23569 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23570 (tree_ssa_phiprop): Calculate and free post-dominators.
23571
23572 2014-02-14 Jeff Law <law@redhat.com>
23573
23574 PR rtl-optimization/60131
23575 * ree.c (get_extended_src_reg): New function.
23576 (combine_reaching_defs): Use it rather than assuming location of REG.
23577 (find_and_remove_re): Verify first operand of extension is
23578 a REG before adding the insns to the copy list.
23579
23580 2014-02-14 Roland McGrath <mcgrathr@google.com>
23581
23582 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23583 * configure: Regenerated.
23584 * config.in: Regenerated.
23585 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23586 instead of ASM_SHORT.
23587
23588 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23589 Richard Earnshaw <rearnsha@arm.com>
23590
23591 PR rtl-optimization/59535
23592 * lra-constraints.c (process_alt_operands): Encourage alternative
23593 when unassigned pseudo class is superset of the alternative class.
23594 (inherit_reload_reg): Don't inherit when optimizing for code size.
23595 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23596 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23597 modes not less than 4 for Thumb1.
23598
23599 2014-02-14 Kyle McMartin <kyle@redhat.com>
23600
23601 PR pch/60010
23602 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23603
23604 2014-02-14 Richard Biener <rguenther@suse.de>
23605
23606 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23607 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23608 Do not strip INDIRECT_REFs.
23609
23610 2014-02-14 Richard Biener <rguenther@suse.de>
23611
23612 PR lto/60179
23613 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23614 DECL_FUNCTION_SPECIFIC_TARGET.
23615 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23616 * tree-streamer-out.c (pack_ts_target_option): Remove.
23617 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23618 (write_ts_function_decl_tree_pointers): Do not stream
23619 DECL_FUNCTION_SPECIFIC_TARGET.
23620 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23621 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23622 (lto_input_ts_function_decl_tree_pointers): Do not stream
23623 DECL_FUNCTION_SPECIFIC_TARGET.
23624
23625 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23626
23627 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23628 (get_initial_def_for_induction, vectorizable_induction): Ignore
23629 debug stmts when looking for exit_phi.
23630 (vectorizable_live_operation): Fix up condition.
23631
23632 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23633
23634 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23635 nreverse() because it changes the content of original tree list.
23636
23637 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23638
23639 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23640 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23641
23642 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23643
23644 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23645 GNU coding standards.
23646
23647 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23648
23649 PR debug/60152
23650 * dwarf2out.c (gen_subprogram_die): Don't call
23651 add_calling_convention_attribute if subr_die is old_die.
23652
23653 2014-02-13 Sharad Singhai <singhai@google.com>
23654
23655 * doc/optinfo.texi: Fix order of nodes.
23656
23657 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23658
23659 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23660 operands[2], not operands[3].
23661
23662 2014-02-13 Richard Biener <rguenther@suse.de>
23663
23664 PR bootstrap/59878
23665 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23666 mention the possibility of an in-tree build.
23667 (CLooG): Update recommended version to 0.18.1, mention the
23668 possibility of an in-tree build and clarify that the ISL
23669 bundled with CLooG does not work.
23670
23671 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23672
23673 PR target/43546
23674 * expr.c (compress_float_constant): If x is a hard register,
23675 extend into a pseudo and then move to x.
23676
23677 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23678
23679 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23680 caused by bad second argument to warning_at() with -mhotpatch and
23681 nested functions (e.g. with gfortran).
23682
23683 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23684
23685 * opts.c (option_name): Remove "enabled by default" rider.
23686
23687 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23688
23689 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23690
23691 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23692 Uros Bizjak <ubizjak@gmail.com>
23693
23694 PR target/60151
23695 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23696 * configure: Regenerated.
23697
23698 2014-02-12 Richard Biener <rguenther@suse.de>
23699
23700 * vec.c (vec_prefix::calculate_allocation): Move as
23701 inline variant to vec.h.
23702 (vec_prefix::calculate_allocation_1): New out-of-line version.
23703 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23704 (vec_prefix::m_has_auto_buf): Rename to ...
23705 (vec_prefix::m_using_auto_storage): ... this.
23706 (vec_prefix::calculate_allocation): Inline the easy cases
23707 and dispatch to calculate_allocation_1 which doesn't need the
23708 prefix address.
23709 (va_heap::reserve): Use gcc_checking_assert.
23710 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23711 m_using_auto_storage.
23712 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23713 member and adjust.
23714 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23715 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23716 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23717
23718 2014-02-12 Richard Biener <rguenther@suse.de>
23719
23720 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23721 when we found a dependence.
23722
23723 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23724
23725 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23726 common code...
23727 (maybe_fold_stmt): ... into this new function.
23728 * omp-low.c (lower_omp): Update comment.
23729
23730 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23731 last use.
23732
23733 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23734 dereference.
23735
23736 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23737
23738 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23739 identifiers in comments.
23740 (cortexa53_extra_costs): Likewise.
23741 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23742 (cortexa7_extra_costs): Likewise.
23743 (cortexa12_extra_costs): Likewise.
23744 (cortexa15_extra_costs): Likewise.
23745 (v7m_extra_costs): Likewise.
23746
23747 2014-02-12 Richard Biener <rguenther@suse.de>
23748
23749 PR middle-end/60092
23750 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23751 of posix_memalign being successful.
23752 (lower_stmt): Restrict lowering of posix_memalign to when
23753 -ftree-bit-ccp is enabled.
23754
23755 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23756
23757 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23758 arg_loc.
23759 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23760
23761 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23762
23763 PR rtl-optimization/60116
23764 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23765 other_insn once the combination has been validated.
23766
23767 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23768
23769 PR lto/59468
23770 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23771 and wrapper.
23772 * ipa-devirt.c: Include demangle.h
23773 (odr_violation_reported): New static variable.
23774 (add_type_duplicate): Update odr_violations.
23775 (maybe_record_node): Add completep parameter; update it.
23776 (record_target_from_binfo): Add COMPLETEP parameter;
23777 update it as needed.
23778 (possible_polymorphic_call_targets_1): Likewise.
23779 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23780 rename FINAL to COMPLETE.
23781 (record_targets_from_bases): Sanity check we found the binfo;
23782 fix COMPLETEP updating.
23783 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23784 parameter, fix computing of COMPLETEP.
23785 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23786 at LTO time do demangling.
23787 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23788 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23789 parameter.
23790 (gimple_get_virt_method_for_binfo): Likewise.
23791 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23792 gimple_get_virt_method_for_vtable): Update prototypes.
23793
23794 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23795
23796 PR target/49008
23797 * genautomata.c (add_presence_absence): Fix typo with
23798 {final_}presence_list.
23799
23800 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23801
23802 PR target/60137
23803 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23804 for VSX/Altivec vectors that land in GPR registers.
23805
23806 2014-02-11 Richard Henderson <rth@redhat.com>
23807 Jakub Jelinek <jakub@redhat.com>
23808
23809 PR debug/59776
23810 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23811 around drhs if type conversion to lacc->type is not useless.
23812
23813 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23814
23815 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23816 tuning struct.
23817 (cortex-a57.cortex-a53): Likewise.
23818 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23819
23820 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23821
23822 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23823 arm_restrict_it.
23824
23825 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23826
23827 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23828 add_options_for_arm_vfp3.
23829
23830 2014-02-11 Jeff Law <law@redhat.com>
23831
23832 PR middle-end/54041
23833 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23834 object with an undesirable mode.
23835
23836 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23837
23838 PR libgomp/60107
23839 * config/i386/sol2-9.h: New file.
23840 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23841 *-*-solaris2.9*): Use it.
23842
23843 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23844
23845 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23846 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23847
23848 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23849
23850 * config/microblaze/microblaze.c: Extend mcpu version format
23851
23852 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23853
23854 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23855
23856 2014-02-10 Richard Henderson <rth@redhat.com>
23857
23858 PR target/59927
23859 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23860 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23861 ms-abi vs -mno-accumulate-outgoing-args.
23862 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23863 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23864 respect to ms-abi.
23865
23866 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23867
23868 PR middle-end/60080
23869 * cfgexpand.c (expand_asm_operands): Attach source location to
23870 ASM_INPUT rtx objects.
23871 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23872
23873 2014-02-10 Nick Clifton <nickc@redhat.com>
23874
23875 * config/mn10300/mn10300.c (popcount): New function.
23876 (mn10300_expand_prologue): Include saved registers in stack usage
23877 count.
23878
23879 2014-02-10 Jeff Law <law@redhat.com>
23880
23881 PR middle-end/52306
23882 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23883 when changing the SET_DEST of a prior insn to avoid an input reload.
23884
23885 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23886
23887 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23888 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23889 -mcall-openbsd, or -mcall-linux.
23890 (CC1_ENDIAN_BIG_SPEC): Remove.
23891 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23892 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23893 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23894 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23895 and %cc1_endian_default.
23896 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23897
23898 2014-02-10 Richard Biener <rguenther@suse.de>
23899
23900 PR tree-optimization/60115
23901 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23902 MEM_REF handling. Properly verify that the accesses are not
23903 out of the objects bound.
23904
23905 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23906
23907 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23908 coretex to cortex.
23909
23910 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23911
23912 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23913 proper constants and fix formatting.
23914 (possible_polymorphic_call_targets): Fix formatting.
23915
23916 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23917 Ilya Tocar <ilya.tocar@intel.com>
23918
23919 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23920 (_mm512_loadu_epi32): Renamed into...
23921 (_mm512_loadu_si512): This.
23922 (_mm512_storeu_epi32): Renamed into...
23923 (_mm512_storeu_si512): This.
23924 (_mm512_maskz_ceil_ps): Removed.
23925 (_mm512_maskz_ceil_pd): Ditto.
23926 (_mm512_maskz_floor_ps): Ditto.
23927 (_mm512_maskz_floor_pd): Ditto.
23928 (_mm512_floor_round_ps): Ditto.
23929 (_mm512_floor_round_pd): Ditto.
23930 (_mm512_ceil_round_ps): Ditto.
23931 (_mm512_ceil_round_pd): Ditto.
23932 (_mm512_mask_floor_round_ps): Ditto.
23933 (_mm512_mask_floor_round_pd): Ditto.
23934 (_mm512_mask_ceil_round_ps): Ditto.
23935 (_mm512_mask_ceil_round_pd): Ditto.
23936 (_mm512_maskz_floor_round_ps): Ditto.
23937 (_mm512_maskz_floor_round_pd): Ditto.
23938 (_mm512_maskz_ceil_round_ps): Ditto.
23939 (_mm512_maskz_ceil_round_pd): Ditto.
23940 (_mm512_expand_pd): Ditto.
23941 (_mm512_expand_ps): Ditto.
23942 * config/i386/i386.c (ix86_builtins): Remove
23943 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23944 (bdesc_args): Ditto.
23945 * config/i386/predicates.md (const1256_operand): New.
23946 (const_1_to_2_operand): Ditto.
23947 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23948 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23949 (*avx512pf_gatherpf<mode>sf): Ditto.
23950 (avx512pf_gatherpf<mode>df): Ditto.
23951 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23952 (*avx512pf_gatherpf<mode>df): Ditto.
23953 (avx512pf_scatterpf<mode>sf): Ditto.
23954 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23955 (*avx512pf_scatterpf<mode>sf): Ditto.
23956 (avx512pf_scatterpf<mode>df): Ditto.
23957 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23958 (*avx512pf_scatterpf<mode>df): Ditto.
23959 (avx512f_expand<mode>): Removed.
23960 (<shift_insn><mode>3<mask_name>): Change predicate type.
23961
23962 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23963
23964 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23965 not at the end of datarefs vector use ordered_remove to avoid
23966 reordering datarefs vector.
23967
23968 PR c/59984
23969 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23970 mark local addressable non-static vars as GOVD_PRIVATE
23971 instead of GOVD_LOCAL.
23972 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23973 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23974 than copying them.
23975
23976 PR middle-end/60092
23977 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23978 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23979 assume_aligned or alloc_align attributes.
23980 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23981 arguments. Handle also assume_aligned and alloc_align attributes.
23982 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23983 calls to functions with assume_aligned or alloc_align attributes.
23984 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23985
23986 2014-02-08 Terry Guo <terry.guo@arm.com>
23987
23988 * doc/invoke.texi: Document ARM -march=armv7e-m.
23989
23990 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23991
23992 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23993 flag on __cilkrts_rethrow builtin.
23994
23995 PR ipa/60026
23996 * ipa-cp.c (determine_versionability): Fail at -O0
23997 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23998 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23999
24000 Revert:
24001 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24002
24003 PR ipa/60026
24004 * tree-inline.c (copy_forbidden): Fail for
24005 __attribute__((optimize (0))) functions.
24006
24007 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24008
24009 * varpool.c: Include pointer-set.h.
24010 (varpool_remove_unreferenced_decls): Variables in other partitions
24011 will not be output; be however careful to not lose information
24012 about partitioning.
24013
24014 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24015
24016 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24017 lookup in the vtable constructor.
24018
24019 2014-02-07 Jeff Law <law@redhat.com>
24020
24021 PR target/40977
24022 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24023 define_insn_and_split.
24024
24025 * ipa-inline.c (inline_small_functions): Fix typos.
24026
24027 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24028
24029 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24030 (s390_can_use_return_insn): Declare.
24031 * config/s390/s390.h (EPILOGUE_USES): Define.
24032 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24033 instructions.
24034 (s390_chunkify_start): Handle return JUMP_LABELs.
24035 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24036 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24037 (s390_can_use_return_insn): New functions.
24038 (s390_fix_long_loop_prediction): Handle conditional returns.
24039 (TARGET_SET_UP_BY_PROLOGUE): Define.
24040 * config/s390/s390.md (ANY_RETURN): New code iterator.
24041 (*creturn, *csimple_return, return, simple_return): New patterns.
24042
24043 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24044
24045 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24046 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24047 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24048 REG_CFA_RESTORE list when deciding not to restore a register.
24049
24050 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24051
24052 * config/s390/s390.c: Include tree-pass.h and context.h.
24053 (s390_early_mach): New function, split out from...
24054 (s390_emit_prologue): ...here.
24055 (pass_data_s390_early_mach): New pass structure.
24056 (pass_s390_early_mach): New class.
24057 (s390_option_override): Create and register early_mach pass.
24058 Move to end of file.
24059
24060 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24061
24062 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24063 to match for the exit block.
24064
24065 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24066
24067 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24068 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24069 Reject misaligned operands.
24070
24071 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24072
24073 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24074
24075 2014-02-07 Richard Biener <rguenther@suse.de>
24076
24077 PR middle-end/60092
24078 * gimple-low.c (lower_builtin_posix_memalign): New function.
24079 (lower_stmt): Call it to lower posix_memalign in a way
24080 to make alignment info accessible.
24081
24082 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24083
24084 PR c++/60082
24085 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24086 __builtin_setjmp_receiver.
24087
24088 2014-02-07 Richard Biener <rguenther@suse.de>
24089
24090 PR middle-end/60092
24091 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24092 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24093 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24094 Handle BUILT_IN_POSIX_MEMALIGN.
24095 (find_func_clobbers): Likewise.
24096 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24097 (call_may_clobber_ref_p_1): Likewise.
24098
24099 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24100
24101 PR ipa/59918
24102 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24103 sanity check.
24104
24105 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24106
24107 PR ipa/59469
24108 * lto-cgraph.c (lto_output_node): Use
24109 symtab_get_symbol_partitioning_class.
24110 (lto_output_varpool_node): likewise.
24111 (symtab_get_symbol_partitioning_class): Move here from
24112 lto/lto-partition.c
24113 * cgraph.h (symbol_partitioning_class): Likewise.
24114 (symtab_get_symbol_partitioning_class): Declare.
24115
24116 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24117
24118 * ggc.h (ggc_internal_cleared_alloc): New macro.
24119 * vec.h (vec_safe_copy): Handle memory stats.
24120 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24121 * target-globals.c (save_target_globals): Likewise.
24122
24123 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24124
24125 PR target/60077
24126 * expr.c (emit_move_resolve_push): Export; be bit more selective
24127 on when to clear alias set.
24128 * expr.h (emit_move_resolve_push): Declare.
24129 * function.h (struct function): Add tail_call_marked.
24130 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24131 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24132 * config/i386/i386.md (TImode move expander): De not call
24133 ix86_expand_push.
24134 (FP push expanders): Preserve memory attributes.
24135 * config/i386/sse.md (push<mode>1): Remove.
24136 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24137 (ix86_expand_push): Remove.
24138 * config/i386/mmx.md (push<mode>1): Remove.
24139
24140 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24141
24142 PR rtl-optimization/60030
24143 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24144 lopart with paradoxical subreg before shifting it up by hprec.
24145
24146 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24147
24148 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24149 Remove extra newline at end of file.
24150 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24151 (arm_issue_rate): Handle cortexa57.
24152 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24153 (cortex-a57.cortex-a53): Likewise.
24154
24155 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24156
24157 PR target/59575
24158 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24159 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24160 bitmask.
24161 (arm_expand_prologue): Adjust all callers.
24162 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24163 info, registers also at the lowest numbered registers side. Use
24164 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24165 XEXP.
24166
24167 PR debug/59992
24168 * var-tracking.c (adjust_mems): Before adding a SET to
24169 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24170
24171 2014-02-06 Alan Modra <amodra@gmail.com>
24172
24173 PR target/60032
24174 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24175 change SDmode to DDmode when lra_in_progress.
24176
24177 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24178
24179 PR middle-end/59150
24180 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24181 free_data_ref on the dr first, and before goto again also set dr
24182 to the next dr. For simd_lane_access, free old datarefs[i] before
24183 overwriting it. For get_vectype_for_scalar_type failure, don't
24184 free_data_ref if simd_lane_access.
24185
24186 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24187
24188 PR target/60062
24189 * tree.h (opts_for_fn): New inline function.
24190 (opt_for_fn): Define.
24191 * config/i386/i386.c (ix86_function_regparm): Use
24192 opt_for_fn (decl, optimize) instead of optimize.
24193
24194 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24195
24196 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24197 for SYMBOL_REF in large memory model.
24198
24199 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24200
24201 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24202 and crypto support.
24203 (cortex-a57): Likewise.
24204 (cortex-a57.cortex-a53): Likewise.
24205
24206 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24207 Kugan Vivekanandarajah <kuganv@linaro.org>
24208
24209 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24210 unaligned_access.
24211 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24212
24213 2014-02-06 Richard Biener <rguenther@suse.de>
24214
24215 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24216 set_loop_copy and initialize_original_copy_tables.
24217
24218 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24219
24220 * config/aarch64/aarch64-simd.md
24221 (aarch64_ashr_simddi): Change QI to SI.
24222
24223 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24224 Jakub Jelinek <jakub@redhat.com>
24225
24226 PR middle-end/60013
24227 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24228 of the dataflow.
24229
24230 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24231
24232 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24233 CODE_FOR_altivec_vpku[hw]um to
24234 CODE_FOR_altivec_vpku[hw]um_direct.
24235 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24236 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24237 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24238 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24239
24240 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24241
24242 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24243 generation for -maltivec=be.
24244 (altivec_vsumsws): Simplify redundant test.
24245
24246 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24247
24248 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24249 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24250 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24251 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24252 gen_altivec_vpkuwum.
24253 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24254 BYTES_BIG_ENDIAN.
24255 (altivec_vpks<VI_char>ss): Likewise.
24256 (altivec_vpks<VI_char>us): Likewise.
24257 (altivec_vpku<VI_char>us): Likewise.
24258 (altivec_vpku<VI_char>um): Likewise.
24259 (altivec_vpku<VI_char>um_direct): New (copy of
24260 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24261 internal use).
24262 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24263 target is little endian and -maltivec=be is not specified.
24264 (*altivec_vupkhs<VU_char>_direct): New (copy of
24265 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24266 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24267 target is little endian and -maltivec=be is not specified.
24268 (*altivec_vupkls<VU_char>_direct): New (copy of
24269 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24270 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24271 little endian and -maltivec=be is not specified.
24272 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24273 little endian and -maltivec=be is not specified.
24274
24275 2014-02-05 Richard Henderson <rth@redhat.com>
24276
24277 PR debug/52727
24278 * combine-stack-adj.c: Revert r206943.
24279 * sched-int.h (struct deps_desc): Add last_args_size.
24280 * sched-deps.c (init_deps): Initialize it.
24281 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24282 contain REG_ARGS_SIZE notes.
24283
24284 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24285
24286 * lto-cgraph.c (asm_nodes_output): Make global.
24287 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24288 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24289 (driver_handle_option): Handle OPT_fwpa.
24290
24291 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24292
24293 PR ipa/59947
24294 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24295 a comment typo and formatting issue. If odr_hash hasn't been
24296 created, return vNULL and set *completep to false.
24297
24298 PR middle-end/57499
24299 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24300 bb with no successors.
24301
24302 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24303
24304 PR target/59718
24305 * doc/invoke.texi (-march): Clarify documentation for ARM.
24306 (-mtune): Likewise.
24307 (-mcpu): Likewise.
24308
24309 2014-02-05 Richard Biener <rguenther@suse.de>
24310
24311 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24312 when not vectorizing because of too many alias checks.
24313 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24314 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24315
24316 2014-02-05 Nick Clifton <nickc@redhat.com>
24317
24318 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24319 accept extended registers in any mode when compiling for the MN10300.
24320
24321 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24322
24323 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24324 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24325 sanitization attributes.
24326 (can_inline_edge_p): Likewise.
24327 (sanitize_attrs_match_for_inline_p): New function.
24328
24329 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24330
24331 * ipa-prop.c (detect_type_change): Shor circuit testing of
24332 type changes on THIS pointer.
24333
24334 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24335
24336 PR target/59777
24337 * config/pa/pa.c (legitimize_tls_address): Return original address
24338 if not passed a SYMBOL_REF rtx.
24339 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24340 addresses.
24341 (pa_emit_move_sequence): Simplify TLS source operands.
24342 (pa_legitimate_constant_p): Reject all TLS constants.
24343 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24344 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24345
24346 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24347
24348 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24349 groups when we know they are controlled by LTO.
24350 * varasm.c (default_binds_local_p_1): If object is in other partition,
24351 it will be resolved locally.
24352
24353 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24354
24355 * config/host-linux.c (linux_gt_pch_use_address): Don't
24356 use SSIZE_MAX because it is not always defined.
24357
24358 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24359
24360 PR bootstrap/59913
24361 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24362 threshold for pseudo splitting.
24363 (update_ebb_live_info): Process call argument hard registers and
24364 hard registers from insn definition too.
24365 (max_small_class_regs_num): New constant.
24366 (inherit_in_ebb): Update live hard regs through EBBs. Update
24367 reloads_num only for small register classes. Don't split for
24368 outputs of jumps.
24369
24370 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24371
24372 PR ipa/60058
24373 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24374 is non-null.
24375
24376 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24377
24378 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24379 visibility is safe.
24380
24381 2014-02-04 Marek Polacek <polacek@redhat.com>
24382
24383 * gdbinit.in (pel): Define.
24384
24385 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24386
24387 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24388 behavior.
24389
24390 2014-02-04 Richard Biener <rguenther@suse.de>
24391
24392 PR lto/59723
24393 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24394 in function context local.
24395 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24396 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24397 similar to LTO_imported_decl_ref.
24398
24399 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24400
24401 PR tree-optimization/60002
24402 * cgraphclones.c (build_function_decl_skip_args): Clear
24403 DECL_LANG_SPECIFIC.
24404
24405 PR tree-optimization/60023
24406 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24407 false to gsi_replace.
24408 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24409 has been in some EH region and vec_stmt could throw, add
24410 vec_stmt into the same EH region.
24411 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24412 has no lhs, ignore it.
24413 * internal-fn.c (expand_MASK_LOAD): Likewise.
24414
24415 PR ipa/60026
24416 * tree-inline.c (copy_forbidden): Fail for
24417 __attribute__((optimize (0))) functions.
24418
24419 PR other/58712
24420 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24421 is set, copy one less argument.
24422 (expand_simd_clones): Don't subtract clone_info->inbranch
24423 from simd_clone_struct_alloc argument.
24424
24425 PR rtl-optimization/57915
24426 * recog.c (simplify_while_replacing): If all unary/binary/relational
24427 operation arguments are constant, attempt to simplify those.
24428
24429 PR middle-end/59261
24430 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24431 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24432
24433 2014-02-04 Richard Biener <rguenther@suse.de>
24434
24435 PR tree-optimization/60012
24436 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24437 TBAA disambiguation to all DDRs.
24438
24439 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24440
24441 PR target/59788
24442 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24443 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24444
24445 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24446
24447 PR ipa/59882
24448 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24449
24450 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24451
24452 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24453 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24454
24455 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24456
24457 PR ipa/59831
24458 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24459 to figure out targets of polymorphic calls with known decl.
24460 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24461 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24462 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24463 (get_polymorphic_call_info): ... here.
24464 (get_polymorphic_call_info_from_invariant): New function.
24465
24466 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24467
24468 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24469 lookup via vtable pointer; check for type consistency
24470 and turn inconsitent facts into UNREACHABLE.
24471 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24472 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24473 type inconsistent querries; return UNREACHABLE instead.
24474
24475 2014-02-03 Richard Henderson <rth@twiddle.net>
24476
24477 PR tree-opt/59924
24478 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24479 already processed this node.
24480 (normalize_one_pred_1): Pass along mark_set.
24481 (normalize_one_pred): Create and destroy a pointer_set_t.
24482 (normalize_one_pred_chain): Likewise.
24483
24484 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24485
24486 PR gcov-profile/58602
24487 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24488
24489 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24490
24491 PR ipa/59831
24492 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24493 -fno-devirtualize; try to devirtualize by the knowledge of
24494 virtual table pointer given by aggregate propagation.
24495 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24496 (ipa_print_node_jump_functions): Dump also offset that
24497 is relevant for polymorphic calls.
24498 (determine_known_aggregate_parts): Add arg_type parameter; use it
24499 instead of determining the type from pointer type.
24500 (ipa_compute_jump_functions_for_edge): Update call of
24501 determine_known_aggregate_parts.
24502 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24503 (gimple_get_virt_method_for_binfo): ... here; simplify using
24504 vtable_pointer_value_to_vtable.
24505 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24506 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24507 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24508 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24509 POINTER_PLUS_EXPR.
24510 (vtable_pointer_value_to_binfo): ... here.
24511 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24512
24513 2014-02-03 Teresa Johnson <tejohnson@google.com>
24514
24515 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24516 redef of outer loop index variable.
24517
24518 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24519
24520 PR c++/53017
24521 PR c++/59211
24522 * doc/extend.texi (Function Attributes): Typo.
24523
24524 2014-02-03 Cong Hou <congh@google.com>
24525
24526 PR tree-optimization/60000
24527 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24528 if the vectorized statement is a store. A store statement can only
24529 appear at the end of pattern statements.
24530
24531 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24532
24533 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24534 (ix86_option_override_internal): Default long double to 64-bit for
24535 32-bit Bionic and to 128-bit for 64-bit Bionic.
24536
24537 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24538 TARGET_LONG_DOUBLE_128 is true.
24539 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24540
24541 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24542 (mlong-double-64): Negate -mlong-double-128.
24543 (mlong-double-128): New option.
24544
24545 * config/i386/i386-c.c (ix86_target_macros): Define
24546 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24547
24548 * doc/invoke.texi: Document -mlong-double-128.
24549
24550 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24551
24552 PR rtl-optimization/60024
24553 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24554
24555 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24556
24557 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24558
24559 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24560
24561 PR rtl-optimization/57662
24562 * sel-sched.c (code_motion_path_driver): Do not mark already not
24563 existing blocks in the visiting bitmap.
24564
24565 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24566
24567 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24568 on the insn being emitted.
24569
24570 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24571 Will Deacon <will.deacon@arm.com>
24572
24573 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24574
24575 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24576
24577 * config/arm/arm-tables.opt: Regenerate.
24578
24579 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24580
24581 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24582 for vector types other than V16QImode.
24583 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24584 define_expand, and call altivec_expand_vec_perm_le when producing
24585 code with little endian element order.
24586 (*altivec_vperm_<mode>_internal): New insn having previous
24587 behavior of altivec_vperm_<mode>.
24588 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24589 altivec_expand_vec_perm_le when producing code with little endian
24590 element order.
24591 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24592 behavior of altivec_vperm_<mode>_uns.
24593
24594 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24595
24596 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24597 (altivec_vsumsws): Add handling for -maltivec=be with a little
24598 endian target.
24599 (altivec_vsumsws_direct): New.
24600 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24601 gen_altivec_vsumsws.
24602
24603 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24604
24605 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24606 vtable_pointer_value_to_binfo): New functions.
24607 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24608 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24609
24610 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24611
24612 * config/nios2/nios2.md (load_got_register): Initialize GOT
24613 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24614 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24615
24616 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24617
24618 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24619 preserverd by passthrough, do not propagate the type.
24620
24621 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24622
24623 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24624 (mips_atomic_assign_expand_fenv): New function.
24625 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24626
24627 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24628
24629 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24630 (__builtin_mips_set_fcsr): Likewise.
24631 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24632 MIPS_USI_FTYPE_VOID.
24633 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24634 (mips16_expand_set_fcsr): Likewise.
24635 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24636 (mips16_set_fcsr_stub): Likewise.
24637 (mips16_get_fcsr_one_only_stub): New class.
24638 (mips16_set_fcsr_one_only_stub): Likewise.
24639 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24640 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24641 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24642 (hard_float): New availability predicate.
24643 (mips_builtins): Add get_fcsr and set_fcsr.
24644 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24645 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24646 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24647 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24648 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24649 patterns.
24650
24651 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24652
24653 * config/mips/mips.c (mips_one_only_stub): New class.
24654 (mips_need_mips16_rdhwr_p): Replace with...
24655 (mips16_rdhwr_stub): ...this new variable.
24656 (mips16_stub_call_address): New function.
24657 (mips16_rdhwr_one_only_stub): New class.
24658 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24659 (mips_output_mips16_rdhwr): Delete.
24660 (mips_finish_stub): New function.
24661 (mips_code_end): Use it to handle rdhwr stubs.
24662
24663 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24664
24665 PR target/60017
24666 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24667 when calculating size of integer atomic types.
24668
24669 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24670
24671 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24672
24673 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24674
24675 PR tree-optimization/60003
24676 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24677 * profile.c (branch_prob): Use gimple_call_builtin_p
24678 to check for BUILT_IN_SETJMP_RECEIVER.
24679 * tree-inline.c (copy_bb): Call notice_special_calls.
24680
24681 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24682
24683 PR bootstrap/59985
24684 * lra-constraints.c (process_alt_operands): Update reload_sum only
24685 on the first pass.
24686
24687 2014-01-31 Richard Henderson <rth@redhat.com>
24688
24689 PR middle-end/60004
24690 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24691 until after else_eh is processed.
24692
24693 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24694
24695 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24696 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24697 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24698 in smmintrin.h, remove them.
24699 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24700 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24701 * config/i386/i386.md (ROUND_SAE): Fix value.
24702 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24703 (const48_operand): New.
24704 * config/i386/subst.md (round), (round_expand): Use
24705 const_4_or_8_to_11_operand.
24706 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24707
24708 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24709
24710 * config/i386/constraints.md (Yk): Swap meaning with k.
24711 * config/i386/i386.md (movhi_internal): Change Yk to k.
24712 (movqi_internal): Ditto.
24713 (*k<logic><mode>): Ditto.
24714 (*andhi_1): Ditto.
24715 (*andqi_1): Ditto.
24716 (kandn<mode>): Ditto.
24717 (*<code>hi_1): Ditto.
24718 (*<code>qi_1): Ditto.
24719 (kxnor<mode>): Ditto.
24720 (kortestzhi): Ditto.
24721 (kortestchi): Ditto.
24722 (kunpckhi): Ditto.
24723 (*one_cmplhi2_1): Ditto.
24724 (*one_cmplqi2_1): Ditto.
24725 * config/i386/sse.md (): Change k to Yk.
24726 (avx512f_load<mode>_mask): Ditto.
24727 (avx512f_blendm<mode>): Ditto.
24728 (avx512f_store<mode>_mask): Ditto.
24729 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24730 (avx512f_storedqu<mode>_mask): Ditto.
24731 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24732 Ditto.
24733 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24734 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24735 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24736 (avx512f_maskcmp<mode>3): Ditto.
24737 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24738 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24739 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24740 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24741 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24742 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24743 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24744 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24745 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24746 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24747 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24748 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24749 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24750 (vec_extract_lo_<mode>_maskm): Ditto.
24751 (vec_extract_hi_<mode>_maskm): Ditto.
24752 (avx512f_vternlog<mode>_mask): Ditto.
24753 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24754 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24755 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24756 (avx512f_<code>v8div16qi2_mask): Ditto.
24757 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24758 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24759 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24760 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24761 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24762 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24763 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24764 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24765 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24766 (avx512cd_maskb_vec_dupv8di): Ditto.
24767 (avx512cd_maskw_vec_dupv16si): Ditto.
24768 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24769 (avx512f_vpermi2var<mode>3_mask): Ditto.
24770 (avx512f_vpermi2var<mode>3_mask): Ditto.
24771 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24772 (*avx512f_gathersi<mode>): Ditto.
24773 (*avx512f_gathersi<mode>_2): Ditto.
24774 (*avx512f_gatherdi<mode>): Ditto.
24775 (*avx512f_gatherdi<mode>_2): Ditto.
24776 (*avx512f_scattersi<mode>): Ditto.
24777 (*avx512f_scatterdi<mode>): Ditto.
24778 (avx512f_compress<mode>_mask): Ditto.
24779 (avx512f_compressstore<mode>_mask): Ditto.
24780 (avx512f_expand<mode>_mask): Ditto.
24781 * config/i386/subst.md (mask): Change k to Yk.
24782 (mask_scalar_merge): Ditto.
24783 (sd): Ditto.
24784
24785 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24786
24787 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24788
24789 2014-01-31 Richard Biener <rguenther@suse.de>
24790
24791 PR middle-end/59990
24792 * builtins.c (fold_builtin_memory_op): Make sure to not
24793 use a floating-point mode or a boolean or enumeral type for
24794 the copy operation.
24795
24796 2014-01-30 DJ Delorie <dj@redhat.com>
24797
24798 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24799 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24800 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24801 whenever main() has an epilogue.
24802
24803 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24804
24805 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24806 unused variable "field".
24807 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24808 (vsx_mergeh_<mode>): Likewise.
24809 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24810 (altivec_vmrghh): Likewise.
24811 (altivec_vmrghw): Likewise.
24812 (altivec_vmrglb): Likewise.
24813 (altivec_vmrglh): Likewise.
24814 (altivec_vmrglw): Likewise.
24815 (altivec_vspltb): Add missing uses.
24816 (altivec_vsplth): Likewise.
24817 (altivec_vspltw): Likewise.
24818 (altivec_vspltsf): Likewise.
24819
24820 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24821
24822 PR target/59923
24823 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24824 frame related instructions.
24825
24826 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24827
24828 PR rtl-optimization/59959
24829 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24830 any reload of register whose subreg is invalid.
24831
24832 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24833
24834 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24835 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24836 Add missing return type - void.
24837
24838 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24839
24840 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24841 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24842 remove element index adjustment for endian (now handled in vsx.md
24843 and altivec.md).
24844 (altivec_expand_vec_perm_const): Use
24845 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24846 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24847 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24848 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24849 define_expand and a new define_insn *altivec_vspltb_internal;
24850 adjust for -maltivec=be on a little endian target.
24851 (altivec_vspltb_direct): New.
24852 (altivec_vsplth): Divide into a define_expand and a new
24853 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24854 little endian target.
24855 (altivec_vsplth_direct): New.
24856 (altivec_vspltw): Divide into a define_expand and a new
24857 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24858 little endian target.
24859 (altivec_vspltw_direct): New.
24860 (altivec_vspltsf): Divide into a define_expand and a new
24861 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24862 a little endian target.
24863
24864 2014-01-30 Richard Biener <rguenther@suse.de>
24865
24866 PR tree-optimization/59993
24867 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24868 can propagate form the earlier stmt and avoid the transform
24869 when the intermediate result is needed.
24870
24871 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24872
24873 * README.Portability: Fix typo.
24874
24875 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24876
24877 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24878 comparison_operator with ordered_comparison_operator.
24879
24880 2014-01-30 Nick Clifton <nickc@redhat.com>
24881
24882 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24883 Rename to mn10300_store_multiple_regs.
24884 * config/mn10300/mn10300.c: Likewise.
24885 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24886 store_multiple_regs.
24887 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24888 Call mn10300_store_multiple_regs.
24889
24890 2014-01-30 Nick Clifton <nickc@redhat.com>
24891 DJ Delorie <dj@redhat.com>
24892
24893 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24894 %fp 2 to keep registers after it properly word-aligned.
24895 (rl78_alloc_physical_registers_umul): Handle the case where both
24896 input operands are the same.
24897
24898 2014-01-30 Richard Biener <rguenther@suse.de>
24899
24900 PR tree-optimization/59903
24901 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24902 check properly.
24903
24904 2014-01-30 Jason Merrill <jason@redhat.com>
24905
24906 PR c++/59633
24907 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24908
24909 PR c++/59645
24910 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24911
24912 2014-01-30 Richard Biener <rguenther@suse.de>
24913
24914 PR tree-optimization/59951
24915 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24916
24917 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24918
24919 PR target/59784
24920 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24921 SFmode to DFmode case.
24922
24923 2014-01-29 DJ Delorie <dj@redhat.com>
24924
24925 * config/msp430/msp430.opt (-minrt): New.
24926 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24927 if -minrt given.
24928 (ENDFILE_SPEC): Likewise.
24929
24930 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24931
24932 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24933 (estimate_function_body_sizes): Use it.
24934
24935 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24936
24937 PR c++/58561
24938 * dwarf2out.c (is_cxx_auto): New.
24939 (is_base_type): Use it.
24940 (gen_type_die_with_usage): Likewise.
24941
24942 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24943
24944 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24945 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24946 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24947 -maltivec=be with LE targets.
24948 (vsx_mergeh_<mode>): Likewise.
24949 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24950 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24951 (altivec_vmrghb): Replace with define_expand and new
24952 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24953 (altivec_vmrghb_direct): New define_insn.
24954 (altivec_vmrghh): Replace with define_expand and new
24955 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24956 (altivec_vmrghh_direct): New define_insn.
24957 (altivec_vmrghw): Replace with define_expand and new
24958 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24959 (altivec_vmrghw_direct): New define_insn.
24960 (*altivec_vmrghsf): Adjust for endianness.
24961 (altivec_vmrglb): Replace with define_expand and new
24962 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24963 (altivec_vmrglb_direct): New define_insn.
24964 (altivec_vmrglh): Replace with define_expand and new
24965 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24966 (altivec_vmrglh_direct): New define_insn.
24967 (altivec_vmrglw): Replace with define_expand and new
24968 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24969 (altivec_vmrglw_direct): New define_insn.
24970 (*altivec_vmrglsf): Adjust for endianness.
24971 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24972 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24973 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24974 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24975 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24976 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24977 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24978 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24979
24980 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24981
24982 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24983 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24984 whitespace.
24985
24986 2014-01-29 Richard Biener <rguenther@suse.de>
24987
24988 PR tree-optimization/58742
24989 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24990 associate_pointerplus_align.
24991 (associate_pointerplus_diff): New function.
24992 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24993 and associate_pointerplus_diff.
24994
24995 2014-01-29 Richard Biener <rguenther@suse.de>
24996
24997 * lto-streamer.h (LTO_major_version): Bump to 3.
24998 (LTO_minor_version): Reset to 0.
24999
25000 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25001
25002 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25003 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25004 (arm_file_start): Generate correct asm header for armv7ve.
25005 * config/arm/bpabi.h: Add multilib support for armv7ve.
25006 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25007 and cortex-a15 to armv7ve.
25008 * config/arm/t-aprofile: Add multilib support for armv7ve.
25009 * doc/invoke.texi: Document -march=armv7ve.
25010
25011 2014-01-29 Richard Biener <rguenther@suse.de>
25012
25013 PR tree-optimization/58742
25014 * tree-ssa-forwprop.c (associate_plusminus): Return true
25015 if we changed sth, defer EH cleanup to ...
25016 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25017 (simplify_mult): New function.
25018
25019 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25020
25021 PR middle-end/59917
25022 PR tree-optimization/59920
25023 * tree.c (build_common_builtin_nodes): Remove
25024 __builtin_setjmp_dispatcher initialization.
25025 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25026 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25027 instead of gsi_after_labels + manually skipping debug stmts.
25028 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25029 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25030 * tree-inline.c (copy_edges_for_bb): Remove
25031 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25032 argument. Ignore computed_goto_p stmts. Don't call
25033 make_abnormal_goto_edges. If a call might need abnormal edges
25034 for non-local gotos, see if it already has an edge to
25035 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25036 with true argument, don't do anything then, otherwise add
25037 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25038 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25039 caller.
25040 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25041 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25042 (lower_stmt): Don't set data->calls_builtin_setjmp.
25043 (lower_builtin_setjmp): Adjust comment.
25044 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25045 * tree-cfg.c (found_computed_goto): Remove.
25046 (factor_computed_gotos): Remove.
25047 (make_goto_expr_edges): Return bool, true for computed gotos.
25048 Don't call make_abnormal_goto_edges.
25049 (build_gimple_cfg): Don't set found_computed_goto, don't call
25050 factor_computed_gotos.
25051 (computed_goto_p): No longer static.
25052 (make_blocks): Don't set found_computed_goto.
25053 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25054 (make_edges): If make_goto_expr_edges returns true, push bb
25055 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25056 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25057 vector. Record mapping between bbs and OpenMP regions if there
25058 are any, adjust make_gimple_omp_edges caller. Call
25059 handle_abnormal_edges.
25060 (make_abnormal_goto_edges): Remove.
25061 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25062 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25063 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25064 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25065 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25066 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25067 filling *region also set *region_idx to (*region)->entry->index.
25068
25069 PR other/58712
25070 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25071 For REGs set ORIGINAL_REGNO.
25072
25073 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25074
25075 * doc/md.texi: Mention that a target shouldn't implement
25076 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25077 than hi/lo pair.
25078
25079 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25080
25081 PR tree-optimization/59594
25082 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25083 a copy of the datarefs vector rather than the vector itself.
25084
25085 2014-01-28 Jason Merrill <jason@redhat.com>
25086
25087 PR c++/53756
25088 * dwarf2out.c (auto_die): New static.
25089 (gen_type_die_with_usage): Handle C++1y 'auto'.
25090 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25091 on definition.
25092
25093 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25094
25095 PR target/59672
25096 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25097 (SPEC_X32): Likewise.
25098 (SPEC_64): Likewise.
25099 * config/i386/i386.c (ix86_option_override_internal): Turn off
25100 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25101 for TARGET_16BIT.
25102 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25103 * config/i386/i386.h (TARGET_16BIT): New macro.
25104 (TARGET_16BIT_P): Likewise.
25105 * config/i386/i386.opt: Add m16.
25106 * doc/invoke.texi: Document -m16.
25107
25108 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25109
25110 PR preprocessor/59935
25111 * input.c (location_get_source_line): Bail out on when line number
25112 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25113
25114 2014-01-28 Richard Biener <rguenther@suse.de>
25115
25116 PR tree-optimization/58742
25117 * tree-ssa-forwprop.c (associate_plusminus): Handle
25118 pointer subtraction of the form (T)(P + A) - (T)P.
25119
25120 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25121
25122 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25123 at const_int_cost.
25124
25125 2014-01-28 Richard Biener <rguenther@suse.de>
25126
25127 Revert
25128 2014-01-28 Richard Biener <rguenther@suse.de>
25129
25130 PR rtl-optimization/45364
25131 PR rtl-optimization/59890
25132 * var-tracking.c (local_get_addr_clear_given_value): Handle
25133 already cleared slot.
25134 (val_reset): Handle not allocated local_get_addr_cache.
25135 (vt_find_locations): Use post-order on the inverted CFG.
25136
25137 2014-01-28 Richard Biener <rguenther@suse.de>
25138
25139 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25140
25141 2014-01-28 Richard Biener <rguenther@suse.de>
25142
25143 PR rtl-optimization/45364
25144 PR rtl-optimization/59890
25145 * var-tracking.c (local_get_addr_clear_given_value): Handle
25146 already cleared slot.
25147 (val_reset): Handle not allocated local_get_addr_cache.
25148 (vt_find_locations): Use post-order on the inverted CFG.
25149
25150 2014-01-28 Alan Modra <amodra@gmail.com>
25151
25152 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25153 * configure.ac <recursive call for build != host>: Define
25154 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25155 and LD_FOR_BUILD too.
25156 * configure: Regenerate.
25157
25158 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25159
25160 * config/i386/i386.c (get_builtin_code_for_version): Separate
25161 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25162 Broadwell from Haswell.
25163
25164 2014-01-27 Steve Ellcey <sellcey@mips.com>
25165
25166 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25167 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25168 * config/mips/mips.c (mips_option_override): Change setting
25169 of TARGET_DSP.
25170 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25171 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25172 Change from Mask to Var.
25173
25174 2014-01-27 Jeff Law <law@redhat.com>
25175
25176 * ipa-inline.c (inline_small_functions): Fix typo.
25177
25178 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25179
25180 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25181 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25182 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25183 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25184 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25185 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25186 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25187 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25188 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25189 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25190 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25191 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25192 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25193 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25194 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25195 (_mm512_storeu_epi64): Ditto.
25196 (_mm512_cmpge_epi32_mask): Ditto.
25197 (_mm512_cmpge_epu32_mask): Ditto.
25198 (_mm512_cmpge_epi64_mask): Ditto.
25199 (_mm512_cmpge_epu64_mask): Ditto.
25200 (_mm512_cmple_epi32_mask): Ditto.
25201 (_mm512_cmple_epu32_mask): Ditto.
25202 (_mm512_cmple_epi64_mask): Ditto.
25203 (_mm512_cmple_epu64_mask): Ditto.
25204 (_mm512_cmplt_epi32_mask): Ditto.
25205 (_mm512_cmplt_epu32_mask): Ditto.
25206 (_mm512_cmplt_epi64_mask): Ditto.
25207 (_mm512_cmplt_epu64_mask): Ditto.
25208 (_mm512_cmpneq_epi32_mask): Ditto.
25209 (_mm512_cmpneq_epu32_mask): Ditto.
25210 (_mm512_cmpneq_epi64_mask): Ditto.
25211 (_mm512_cmpneq_epu64_mask): Ditto.
25212 (_mm512_expand_pd): Ditto.
25213 (_mm512_expand_ps): Ditto.
25214 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25215 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25216 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25217 * config/i386/i386.c (ix86_builtins): Add
25218 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25219 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25220 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25221 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25222 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25223 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25224 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25225 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25226 IX86_BUILTIN_PMOVUSQW512_MEM.
25227 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25228 __builtin_ia32_pmovsqd512mem_mask,
25229 __builtin_ia32_pmovqd512mem_mask,
25230 __builtin_ia32_pmovusqw512mem_mask,
25231 __builtin_ia32_pmovsqw512mem_mask,
25232 __builtin_ia32_pmovqw512mem_mask,
25233 __builtin_ia32_pmovusdw512mem_mask,
25234 __builtin_ia32_pmovsdw512mem_mask,
25235 __builtin_ia32_pmovdw512mem_mask,
25236 __builtin_ia32_pmovqb512mem_mask,
25237 __builtin_ia32_pmovusqb512mem_mask,
25238 __builtin_ia32_pmovsqb512mem_mask,
25239 __builtin_ia32_pmovusdb512mem_mask,
25240 __builtin_ia32_pmovsdb512mem_mask,
25241 __builtin_ia32_pmovdb512mem_mask.
25242 (bdesc_args): Add __builtin_ia32_expanddf512,
25243 __builtin_ia32_expandsf512.
25244 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25245 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25246 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25247 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25248 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25249 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25250 (avx512f_<code>v8div16qi2_mask_store): This.
25251 (avx512f_expand<mode>): New.
25252
25253 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25254
25255 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25256 New.
25257 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25258 (_mm512_prefetch_i32scatter_pd): Ditto.
25259 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25260 (_mm512_prefetch_i64scatter_pd): Ditto.
25261 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25262 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25263 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25264 (_mm512_prefetch_i32scatter_ps): Ditto.
25265 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25266 (_mm512_prefetch_i64scatter_ps): Ditto.
25267 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25268 * config/i386/i386-builtin-types.def: Define
25269 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25270 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25271 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25272 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25273 IX86_BUILTIN_SCATTERPFQPD.
25274 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25275 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25276 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25277 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25278 __builtin_ia32_scatterpfqps.
25279 (ix86_expand_builtin): Expand new built-ins.
25280 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25281 fix memory access data type.
25282 (*avx512pf_gatherpf<mode>_mask): Ditto.
25283 (*avx512pf_gatherpf<mode>): Ditto.
25284 (avx512pf_scatterpf<mode>): Ditto.
25285 (*avx512pf_scatterpf<mode>_mask): Ditto.
25286 (*avx512pf_scatterpf<mode>): Ditto.
25287 (GATHER_SCATTER_SF_MEM_MODE): New.
25288 (avx512pf_gatherpf<mode>df): Ditto.
25289 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25290 (*avx512pf_scatterpf<mode>df): Ditto.
25291
25292 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25293
25294 PR bootstrap/59934
25295 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25296 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25297 reached.
25298
25299 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25300
25301 * common/config/arm/arm-common.c
25302 (arm_rewrite_mcpu): Handle multiple names.
25303 * config/arm/arm.h
25304 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25305
25306 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25307
25308 * gimple-builder.h (create_gimple_tmp): Delete.
25309
25310 2014-01-27 Christian Bruel <christian.bruel@st.com>
25311
25312 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25313 words comparisons.
25314
25315 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25316
25317 * config/pa/pa.md (call): Generate indirect long calls to non-local
25318 functions when outputing 32-bit code.
25319 (call_value): Likewise except for special call to buggy powf function.
25320
25321 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25322 portable runtime and PIC indirect calls.
25323 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25324 and PIC call sequences. Use ldo instead of blr to set return register
25325 in PIC call sequence.
25326
25327 2014-01-25 Walter Lee <walt@tilera.com>
25328
25329 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25330 avoid clobbering a live register.
25331
25332 2014-01-25 Walter Lee <walt@tilera.com>
25333
25334 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25335 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25336 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25337 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25338
25339 2014-01-25 Walter Lee <walt@tilera.com>
25340
25341 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25342 arguments on even registers.
25343 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25344 STACK_BOUNDARY.
25345 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25346 (BIGGEST_ALIGNMENT): Ditto.
25347 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25348
25349 2014-01-25 Walter Lee <walt@tilera.com>
25350
25351 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25352 insns before bundling.
25353 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25354
25355 2014-01-25 Walter Lee <walt@tilera.com>
25356
25357 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25358 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25359 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25360
25361 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25362
25363 * config/mips/constraints.md (kl): Delete.
25364 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25365 define expands, using...
25366 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25367 instructions for MIPS16.
25368 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25369 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25370
25371 2014-01-25 Walter Lee <walt@tilera.com>
25372
25373 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25374 (clzdi2): Ditto.
25375 (ffsdi2): Ditto.
25376
25377 2014-01-25 Walter Lee <walt@tilera.com>
25378
25379 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25380 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25381
25382 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25383
25384 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25385 Handle XOR.
25386
25387 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25388
25389 * print-rtl.c (in_call_function_usage): New var.
25390 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25391 EXPR_LIST mode as mode and not as reg note name.
25392
25393 PR middle-end/59561
25394 * cfgloopmanip.c (copy_loop_info): If
25395 loop->warned_aggressive_loop_optimizations, make sure
25396 the flag is set in target loop too.
25397
25398 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25399
25400 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25401 flag_cilkplus.
25402 * builtins.def: Likewise.
25403 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25404 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25405 * ira.c (ira_setup_eliminable_regset): Likewise.
25406 * omp-low.c (gate_expand_omp): Likewise.
25407 (execute_lower_omp): Likewise.
25408 (diagnose_sb_0): Likewise.
25409 (gate_diagnose_omp_blocks): Likewise.
25410 (simd_clone_clauses_extract): Likewise.
25411 (gate): Likewise.
25412
25413 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25414
25415 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25416 correction for little endian...
25417 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25418 here.
25419
25420 2014-01-24 Jeff Law <law@redhat.com>
25421
25422 PR tree-optimization/59919
25423 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25424 for non-returning calls.
25425
25426 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25427
25428 * common/config/aarch64/aarch64-common.c
25429 (aarch64_rewrite_mcpu): Handle multiple names.
25430 * config/aarch64/aarch64.h
25431 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25432
25433 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25434
25435 * input.c (add_file_to_cache_tab): Handle the case where fopen
25436 returns NULL.
25437
25438 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25439
25440 PR target/59929
25441 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25442 from push operand if code of push isn't PRE_DEC.
25443
25444 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25445
25446 PR target/59909
25447 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25448 -mquad-memory-atomic. Update -mquad-memory documentation to say
25449 it is only used for non-atomic loads/stores.
25450
25451 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25452 -mquad-memory or -mquad-memory-atomic switches.
25453
25454 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25455 -mquad-memory-atomic to ISA 2.07 support.
25456
25457 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25458 to separate support of normal quad word memory operations (ldq, stq)
25459 from the atomic quad word memory operations.
25460
25461 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25462 support to separate non-atomic quad word operations from atomic
25463 quad word operations. Disable non-atomic quad word operations in
25464 little endian mode so that we don't have to swap words after the
25465 load and before the store.
25466 (quad_load_store_p): Add comment about atomic quad word support.
25467 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25468 options printed with -mdebug=reg.
25469
25470 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25471 -mquad-memory-atomic as the test for whether we have quad word
25472 atomic instructions.
25473 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25474 or -mp8-vector are used, allow byte/half-word atomic operations.
25475
25476 * config/rs6000/sync.md (load_lockedti): Insure that the address
25477 is a proper indexed or indirect address for the lqarx instruction.
25478 On little endian systems, swap the hi/lo registers after the lqarx
25479 instruction.
25480 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25481 insure the address is valid for the lqarx instruction.
25482 (store_conditionalti): Insure that the address is a proper indexed
25483 or indirect address for the stqcrx. instruction. On little endian
25484 systems, swap the hi/lo registers before doing the stqcrx.
25485 instruction.
25486 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25487 insure the address is valid for the stqcrx. instruction.
25488
25489 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25490 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25491 type of quad memory support is available.
25492
25493 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25494
25495 PR regression/59915
25496 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25497 there is a danger of looping.
25498
25499 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25500
25501 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25502 force flag_ira_loop_pressure if set via command line.
25503
25504 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25505
25506 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25507 (ashr_simd): New builtin handling DI mode.
25508 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25509 (aarch64_sshr_simddi): New match pattern.
25510 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25511 (vshrd_n_s64): Likewise.
25512 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25513
25514 2014-01-23 Nick Clifton <nickc@redhat.com>
25515
25516 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25517 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25518 favour of mcu specific scripts.
25519 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25520 430x multilibs.
25521
25522 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25523 Alex Velenko <Alex.Velenko@arm.com>
25524
25525 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25526 (vaddv_s16): Likewise.
25527 (vaddv_s32): Likewise.
25528 (vaddv_u8): Likewise.
25529 (vaddv_u16): Likewise.
25530 (vaddv_u32): Likewise.
25531 (vaddvq_s8): Likewise.
25532 (vaddvq_s16): Likewise.
25533 (vaddvq_s32): Likewise.
25534 (vaddvq_s64): Likewise.
25535 (vaddvq_u8): Likewise.
25536 (vaddvq_u16): Likewise.
25537 (vaddvq_u32): Likewise.
25538 (vaddvq_u64): Likewise.
25539 (vaddv_f32): Likewise.
25540 (vaddvq_f32): Likewise.
25541 (vaddvq_f64): Likewise.
25542 (vmaxv_f32): Likewise.
25543 (vmaxv_s8): Likewise.
25544 (vmaxv_s16): Likewise.
25545 (vmaxv_s32): Likewise.
25546 (vmaxv_u8): Likewise.
25547 (vmaxv_u16): Likewise.
25548 (vmaxv_u32): Likewise.
25549 (vmaxvq_f32): Likewise.
25550 (vmaxvq_f64): Likewise.
25551 (vmaxvq_s8): Likewise.
25552 (vmaxvq_s16): Likewise.
25553 (vmaxvq_s32): Likewise.
25554 (vmaxvq_u8): Likewise.
25555 (vmaxvq_u16): Likewise.
25556 (vmaxvq_u32): Likewise.
25557 (vmaxnmv_f32): Likewise.
25558 (vmaxnmvq_f32): Likewise.
25559 (vmaxnmvq_f64): Likewise.
25560 (vminv_f32): Likewise.
25561 (vminv_s8): Likewise.
25562 (vminv_s16): Likewise.
25563 (vminv_s32): Likewise.
25564 (vminv_u8): Likewise.
25565 (vminv_u16): Likewise.
25566 (vminv_u32): Likewise.
25567 (vminvq_f32): Likewise.
25568 (vminvq_f64): Likewise.
25569 (vminvq_s8): Likewise.
25570 (vminvq_s16): Likewise.
25571 (vminvq_s32): Likewise.
25572 (vminvq_u8): Likewise.
25573 (vminvq_u16): Likewise.
25574 (vminvq_u32): Likewise.
25575 (vminnmv_f32): Likewise.
25576 (vminnmvq_f32): Likewise.
25577 (vminnmvq_f64): Likewise.
25578
25579 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25580
25581 * config/aarch64/aarch64-simd.md
25582 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25583 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25584 (*aarch64_mul3_elt<mode>): Likewise.
25585 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25586 (*aarch64_mul3_elt_to_64v2df): Likewise.
25587 (*aarch64_mla_elt<mode>): Likewise.
25588 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25589 (*aarch64_mls_elt<mode>): Likewise.
25590 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25591 (*aarch64_fma4_elt<mode>): Likewise.
25592 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25593 (*aarch64_fma4_elt_to_64v2df): Likewise.
25594 (*aarch64_fnma4_elt<mode>): Likewise.
25595 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25596 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25597 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25598 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25599 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25600 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25601 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25602 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25603 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25604
25605 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25606
25607 * config/aarch64/aarch64-simd.md
25608 (aarch64_be_checked_get_lane<mode>): New define_expand.
25609 * config/aarch64/aarch64-simd-builtins.def
25610 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25611 New builtin definition.
25612 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25613 Use new safe be builtin.
25614
25615 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25616
25617 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25618 New define_insn.
25619 (aarch64_be_st1<mode>): Likewise.
25620 (aarch_ld1<VALL:mode>): Define_expand modified.
25621 (aarch_st1<VALL:mode>): Likewise.
25622 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25623 (UNSPEC_ST1): Likewise.
25624
25625 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25626
25627 * config/microblaze/microblaze.md: Add trap insn and attribute
25628
25629 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25630
25631 PR preprocessor/58580
25632 * input.h (location_get_source_line): Take an additional line_size
25633 parameter.
25634 (void diagnostics_file_cache_fini): Declare new function.
25635 * input.c (struct fcache): New type.
25636 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25637 New static constants.
25638 (diagnostic_file_cache_init, total_lines_num)
25639 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25640 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25641 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25642 (get_next_line, read_next_line, goto_next_line, read_line_num):
25643 New static function definitions.
25644 (diagnostic_file_cache_fini): New function.
25645 (location_get_source_line): Take an additional output line_len
25646 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25647 read_line_num.
25648 * diagnostic.c (diagnostic_finish): Call
25649 diagnostic_file_cache_fini.
25650 (adjust_line): Take an additional input parameter for the length
25651 of the line, rather than calculating it with strlen.
25652 (diagnostic_show_locus): Adjust the use of
25653 location_get_source_line and adjust_line with respect to their new
25654 signature. While displaying a line now, do not stop at the first
25655 null byte. Rather, display the zero byte as a space and keep
25656 going until we reach the size of the line.
25657 * Makefile.in: Add vec.o to OBJS-libcommon
25658
25659 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25660 Ilya Tocar <ilya.tocar@intel.com>
25661
25662 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25663 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25664 (__builtin_ia32_kmov16): Ditto.
25665 * config/i386/i386.md (UNSPEC_KMOV): New.
25666 (kmovw): Ditto.
25667
25668 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25669
25670 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25671 (_mm512_storeu_si512): Ditto.
25672
25673 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25674
25675 PR target/52125
25676 * rtl.h (get_referenced_operands): Declare.
25677 * recog.c (get_referenced_operands): New function.
25678 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25679 operands have been referenced when recording LO_SUM references.
25680
25681 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25682
25683 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25684
25685 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25686
25687 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25688 Enable for generic and recent AMD targets.
25689
25690 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25691
25692 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25693 ARG_SIZE note when adjustment was eliminated.
25694
25695 2014-01-22 Jeff Law <law@redhat.com>
25696
25697 PR tree-optimization/59597
25698 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25699 in file. Accept new argument REGISTERING and use it to modify
25700 dump output appropriately.
25701 (register_jump_thread): Corresponding changes.
25702 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25703 thread paths involving joiner blocks. Add code to dump cancelled
25704 jump threading paths.
25705
25706 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25707
25708 PR rtl-optimization/59477
25709 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25710 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25711
25712 2014-01-22 Tom Tromey <tromey@redhat.com>
25713
25714 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25715 PARAMS.
25716 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25717
25718 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25719
25720 PR rtl-optimization/59896
25721 * lra-constraints.c (process_alt_operands): Check unused note for
25722 matched operands of insn with no output reloads.
25723
25724 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25725
25726 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25727 (mips_move_from_gpr_cost): Likewise.
25728
25729 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25730
25731 PR rtl-optimization/59858
25732 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25733 ira_class_hard_regs_num.
25734 (process_alt_operands): Increase reject for dying matched operand.
25735
25736 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25737
25738 PR target/59003
25739 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25740 smaller than size, perform several stores or loads and stores
25741 at dst + count - size to store or copy all of size bytes, rather
25742 than just last modesize bytes.
25743
25744 2014-01-20 DJ Delorie <dj@redhat.com>
25745
25746 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25747 that CLOBBERs are REGs before propogating their values.
25748
25749 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25750
25751 PR middle-end/59789
25752 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25753 (cgraph_inline_failed_type): New function.
25754 * cgraph.h (DEFCIFCODE): Add type.
25755 (cgraph_inline_failed_type_t): New enum.
25756 (cgraph_inline_failed_type): New prototype.
25757 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25758 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25759 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25760 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25761 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25762 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25763 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25764 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25765 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25766 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25767 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25768 OPTIMIZATION_MISMATCH.
25769 * tree-inline.c (expand_call_inline): Emit errors during
25770 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25771
25772 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25773
25774 PR target/59685
25775 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25776 mode attribute in insn output.
25777
25778 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25779
25780 * output.h (output_constant): Delete.
25781 * varasm.c (output_constant): Make private.
25782
25783 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25784
25785 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25786
25787 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25788
25789 PR middle-end/59860
25790 * tree.h (fold_builtin_strcat): New prototype.
25791 * builtins.c (fold_builtin_strcat): No longer static. Add len
25792 argument, if non-NULL, don't call c_strlen. Optimize
25793 directly into __builtin_memcpy instead of __builtin_strcpy.
25794 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25795 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25796
25797 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25798
25799 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25800 for SImode_address_operand operands, having only a REG argument.
25801
25802 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25803
25804 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25805 loader name using mbig-endian.
25806 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25807
25808 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25809
25810 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25811 (-mtune): Likewise.
25812 (-mcpu): Likewise.
25813
25814 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25815
25816 * config/aarch64/aarch64-protos.h
25817 (aarch64_cannot_change_mode_class_ptr): Declare.
25818 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25819 aarch64_cannot_change_mode_class_ptr): New.
25820 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25821 backend hook aarch64_cannot_change_mode_class.
25822
25823 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25824
25825 * common/config/aarch64/aarch64-common.c
25826 (aarch64_handle_option): Don't handle any option order logic here.
25827 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25828 selected_cpu, warn on architecture version mismatch.
25829 (aarch64_override_options): Fix parsing order for option strings.
25830
25831 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25832 Iain Sandoe <iain@codesourcery.com>
25833
25834 PR bootstrap/59496
25835 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25836 warning. Amend comment to reflect current functionality.
25837
25838 2014-01-20 Richard Biener <rguenther@suse.de>
25839
25840 PR middle-end/59860
25841 * builtins.c (fold_builtin_strcat): Remove case better handled
25842 by tree-ssa-strlen.c.
25843
25844 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25845
25846 * config/aarch64/aarch64.opt
25847 (mcpu, march, mtune): Make case-insensitive.
25848
25849 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25850
25851 PR target/59880
25852 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25853 if operands[1] is a REG or ZERO_EXTEND of a REG.
25854
25855 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25856
25857 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25858
25859 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25860
25861 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25862 long non-pic millicode calls.
25863
25864 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25865
25866 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25867
25868 2014-01-19 Kito Cheng <kito@0xlab.org>
25869
25870 * builtins.c (expand_movstr): Check movstr expand done or fail.
25871
25872 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25873 H.J. Lu <hongjiu.lu@intel.com>
25874
25875 PR target/59379
25876 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25877 to DImode for zero-extended addresses.
25878
25879 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25880
25881 PR rtl-optimization/57763
25882 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25883 on the new indirect jump_insn and increment LABEL_NUSES (label).
25884
25885 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25886
25887 PR bootstrap/59580
25888 PR bootstrap/59583
25889 * config.gcc (x86_archs): New variable.
25890 (x86_64_archs): Likewise.
25891 (x86_cpus): Likewise.
25892 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25893 --with-arch/--with-cpu= options.
25894 Support --with-arch=/--with-cpu={nehalem,westmere,
25895 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25896
25897 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25898
25899 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25900 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25901
25902 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25903
25904 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25905
25906 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25907
25908 PR target/58944
25909 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25910 clear cpp_get_options (parse_in)->warn_unused_macros for
25911 ix86_target_macros_internal with cpp_define.
25912
25913 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25914
25915 * jump.c (delete_related_insns): Keep (use (insn))s.
25916 * reorg.c (redundant_insn): Check for barriers too.
25917
25918 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25919
25920 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25921
25922 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25923
25924 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25925 call to $$dyncall when TARGET_LONG_CALLS is true.
25926
25927 2014-01-17 Jeff Law <law@redhat.com>
25928
25929 * ree.c (combine_set_extension): Temporarily disable test for
25930 changing number of hard registers.
25931
25932 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25933
25934 PR middle-end/58125
25935 * ipa-inline-analysis.c (inline_free_summary):
25936 Do not free summary of aliases.
25937
25938 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25939
25940 PR middle-end/59706
25941 * gimplify.c (gimplify_expr): Use create_tmp_var
25942 instead of create_tmp_var_raw. If cond doesn't have
25943 integral type, don't add the IFN_ANNOTATE builtin at all.
25944
25945 2014-01-17 Martin Jambor <mjambor@suse.cz>
25946
25947 PR ipa/59736
25948 * ipa-cp.c (prev_edge_clone): New variable.
25949 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25950 Also resize prev_edge_clone vector.
25951 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25952 (ipcp_edge_removal_hook): New function.
25953 (ipcp_driver): Register ipcp_edge_removal_hook.
25954
25955 2014-01-17 Andrew Pinski <apinski@cavium.com>
25956 Steve Ellcey <sellcey@mips.com>
25957
25958 PR target/59462
25959 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25960 of operator mode.
25961
25962 2014-01-17 Jeff Law <law@redhat.com>
25963
25964 PR middle-end/57904
25965 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25966 so that pass_ccp runs first.
25967
25968 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25969
25970 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25971 (ix86_adjust_cost): Use !TARGET_XXX.
25972 (do_reorder_for_imul): Likewise.
25973 (swap_top_of_ready_list): Likewise.
25974 (ix86_sched_reorder): Likewise.
25975
25976 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25977
25978 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25979 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25980 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25981 (intel_memset): New. Duplicate slm_memset.
25982 (intel_cost): New. Duplicate slm_cost.
25983 (m_INTEL): New macro.
25984 (processor_target_table): Add "intel".
25985 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25986 with PROCESSOR_INTEL for "intel".
25987 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25988 PROCESSOR_SILVERMONT.
25989 (ix86_issue_rate): Likewise.
25990 (ix86_adjust_cost): Likewise.
25991 (ia32_multipass_dfa_lookahead): Likewise.
25992 (swap_top_of_ready_list): Likewise.
25993 (ix86_sched_reorder): Likewise.
25994 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25995 instead of TARGET_OPT_AGU.
25996 * config/i386/i386.h (TARGET_INTEL): New.
25997 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25998 (processor_type): Add PROCESSOR_INTEL.
25999 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26000 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26001
26002 2014-01-17 Marek Polacek <polacek@redhat.com>
26003
26004 PR c/58346
26005 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26006 size is zero.
26007
26008 2014-01-17 Richard Biener <rguenther@suse.de>
26009
26010 PR tree-optimization/46590
26011 * opts.c (default_options_table): Add entries for
26012 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26013 all enabled at -O1 but not for -Og.
26014 * common.opt (fbranch-count-reg): Remove Init(1).
26015 (fmove-loop-invariants): Likewise.
26016 (ftree-pta): Likewise.
26017
26018 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26019
26020 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26021 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26022 decls to at least the GCC 4.8 used alignments.
26023
26024 PR fortran/59440
26025 * tree-nested.c (convert_nonlocal_reference_stmt,
26026 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26027 of GIMPLE_BIND stmts, adjust associated decls.
26028
26029 2014-01-17 Richard Biener <rguenther@suse.de>
26030
26031 PR tree-optimization/46590
26032 * vec.h (vec<>::bseach): New member function implementing
26033 binary search according to C89 bsearch.
26034 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26035 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26036 bitmap pointer again. Make accesses_in_loop a flat array.
26037 (mem_ref_obstack): New global.
26038 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26039 (mark_ref_stored): Likewise.
26040 (ref_indep_loop_p_2): Likewise.
26041 (set_ref_stored_in_loop): New helper function.
26042 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26043 (memref_free): Adjust.
26044 (record_mem_ref_loc): Simplify.
26045 (gather_mem_refs_stmt): Adjust.
26046 (sort_locs_in_loop_postorder_cmp): New function.
26047 (analyze_memory_references): Sort accesses_in_loop after
26048 loop postorder number.
26049 (find_ref_loc_in_loop_cmp): New function.
26050 (for_all_locs_in_loop): Find relevant cluster of locs in
26051 accesses_in_loop and iterate without recursion.
26052 (execute_sm): Avoid uninit warning.
26053 (struct ref_always_accessed): Simplify.
26054 (ref_always_accessed::operator ()): Likewise.
26055 (ref_always_accessed_p): Likewise.
26056 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26057 loop postorder numbers here.
26058 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26059 numbers.
26060
26061 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26062
26063 PR c++/57945
26064 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26065 on decls for which assemble_alias has been called.
26066
26067 2014-01-17 Nick Clifton <nickc@redhat.com>
26068
26069 * config/msp430/msp430.opt: (mcpu): New option.
26070 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26071 (msp430_option_override): Parse target_cpu. If the MCU name
26072 matches a generic string, clear target_mcu.
26073 (msp430_attr): Allow numeric interrupt values up to 63.
26074 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26075 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26076 option.
26077 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26078 Add mcpu matches.
26079 * config/msp430/msp430.md (popm): Use %J rather than %I.
26080 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26081 (addhi_cy_i): Use immediate_operand for operand 2.
26082 * doc/invoke.texi: Document -mcpu option.
26083
26084 2014-01-17 Richard Biener <rguenther@suse.de>
26085
26086 PR rtl-optimization/38518
26087 * df.h (df_analyze_loop): Declare.
26088 * df-core.c: Include cfgloop.h.
26089 (df_analyze_1): Split out main part of df_analyze.
26090 (df_analyze): Adjust.
26091 (loop_inverted_post_order_compute): New function.
26092 (loop_post_order_compute): Likewise.
26093 (df_analyze_loop): New function avoiding whole-function
26094 postorder computes.
26095 * loop-invariant.c (find_defs): Use df_analyze_loop.
26096 (find_invariants): Adjust.
26097 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26098
26099 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26100
26101 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26102 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26103
26104 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26105
26106 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26107 traversal when removing references.
26108
26109 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26110
26111 PR ipa/59775
26112 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26113
26114 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26115
26116 PR middle-end/56791
26117 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26118 pushing a reload for an autoinc when we had previously reloaded an
26119 inner part of the address.
26120
26121 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26122
26123 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26124 field.
26125 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26126 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26127 when not giving up or versioning for alias only because of
26128 loop->safelen.
26129 (vect_analyze_data_ref_dependences): Set to true.
26130 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26131 is a GIMPLE_PHI.
26132 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26133 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26134 to the condition.
26135
26136 PR middle-end/58344
26137 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26138
26139 PR target/59839
26140 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26141 operand 0 predicate for gathers, use a new pseudo as subtarget.
26142
26143 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26144
26145 PR middle-end/59609
26146 * lra-constraints.c (process_alt_operands): Add printing debug info.
26147 Check absence of input/output reloads for matched operands too.
26148
26149 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26150
26151 PR rtl-optimization/59835
26152 * ira.c (ira_init_register_move_cost): Increase cost for
26153 impossible modes.
26154
26155 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26156
26157 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26158
26159 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26160
26161 PR target/59780
26162 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26163 non-register objects. Use gen_(high/low)part more consistently.
26164 Fix assertions.
26165
26166 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26167
26168 PR target/59844
26169 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26170 endian support, remove tests for WORDS_BIG_ENDIAN.
26171 (p8_mfvsrd_3_<mode>): Likewise.
26172 (reload_gpr_from_vsx<mode>): Likewise.
26173 (reload_gpr_from_vsxsf): Likewise.
26174 (p8_mfvsrd_4_disf): Likewise.
26175
26176 2014-01-16 Richard Biener <rguenther@suse.de>
26177
26178 PR rtl-optimization/46590
26179 * lcm.c (compute_antinout_edge): Use postorder iteration.
26180 (compute_laterin): Use inverted postorder iteration.
26181
26182 2014-01-16 Nick Clifton <nickc@redhat.com>
26183
26184 PR middle-end/28865
26185 * varasm.c (output_constant): Return the number of bytes actually
26186 emitted.
26187 (output_constructor_array_range): Update the field size with the
26188 number of bytes emitted by output_constant.
26189 (output_constructor_regular_field): Likewise. Also do not
26190 complain if the total number of bytes emitted is now greater
26191 than the expected fieldpos.
26192 * output.h (output_constant): Update prototype and descriptive comment.
26193
26194 2014-01-16 Marek Polacek <polacek@redhat.com>
26195
26196 PR middle-end/59827
26197 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26198 it is error_mark_node.
26199
26200 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26201
26202 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26203 VALID_AVX256_REG_OR_OI_MODE.
26204
26205 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26206
26207 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26208 current procedure should be profiled.
26209
26210 2014-01-15 Andrew Pinski <apinski@cavium.com>
26211
26212 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26213 of moving from/to the STACK_REG register class.
26214
26215 2014-01-15 Richard Henderson <rth@redhat.com>
26216
26217 PR debug/54694
26218 * reginfo.c (global_regs_decl): Globalize.
26219 * rtl.h (global_regs_decl): Declare.
26220 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26221 reserved via global_regs.
26222
26223 2014-01-15 Teresa Johnson <tejohnson@google.com>
26224
26225 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26226
26227 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26228
26229 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26230 and vmulosh rather than call gen_vec_widen_smult_*.
26231 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26232 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26233 (vec_widen_smult_even_v16qi): Likewise.
26234 (vec_widen_umult_even_v8hi): Likewise.
26235 (vec_widen_smult_even_v8hi): Likewise.
26236 (vec_widen_umult_odd_v16qi): Likewise.
26237 (vec_widen_smult_odd_v16qi): Likewise.
26238 (vec_widen_umult_odd_v8hi): Likewise.
26239 (vec_widen_smult_odd_v8hi): Likewise.
26240 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26241 vmuloub rather than call gen_vec_widen_umult_*.
26242 (vec_widen_umult_lo_v16qi): Likewise.
26243 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26244 vmulosb rather than call gen_vec_widen_smult_*.
26245 (vec_widen_smult_lo_v16qi): Likewise.
26246 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26247 rather than call gen_vec_widen_umult_*.
26248 (vec_widen_umult_lo_v8hi): Likewise.
26249 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26250 rather than call gen_vec_widen_smult_*.
26251 (vec_widen_smult_lo_v8hi): Likewise.
26252
26253 2014-01-15 Jeff Law <law@redhat.com>
26254
26255 PR tree-optimization/59747
26256 * ree.c (find_and_remove_re): Properly handle case where a second
26257 eliminated extension requires widening a copy created for elimination
26258 of a prior extension.
26259 (combine_set_extension): Ensure that the number of hard regs needed
26260 for a destination register does not change when we widen it.
26261
26262 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26263
26264 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26265 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26266 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26267 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26268 (avr-*-rtems*): Likewise.
26269 (bfin*-rtems*): Likewise.
26270 (moxie-*-rtems*): Likewise.
26271 (h8300-*-rtems*): Likewise.
26272 (i[34567]86-*-rtems*): Likewise.
26273 (lm32-*-rtems*): Likewise.
26274 (m32r-*-rtems*): Likewise.
26275 (m68k-*-rtems*): Likewise.
26276 (microblaze*-*-rtems*): Likewise.
26277 (mips*-*-rtems*): Likewise.
26278 (powerpc-*-rtems*): Likewise.
26279 (sh-*-rtems*): Likewise.
26280 (sparc-*-rtems*): Likewise.
26281 (sparc64-*-rtems*): Likewise.
26282 (v850-*-rtems*): Likewise.
26283 (m32c-*-rtems*): Likewise.
26284
26285 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26286
26287 PR rtl-optimization/59511
26288 * ira.c (ira_init_register_move_cost): Use memory costs for some
26289 cases of register move cost calculations.
26290 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26291 instead of BB frequency.
26292 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26293 * lra-assigns.c (find_hard_regno_for): Ditto.
26294
26295 2014-01-15 Richard Biener <rguenther@suse.de>
26296
26297 PR tree-optimization/59822
26298 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26299 (vectorizable_load): Use it to hoist defs of uses of invariant
26300 loads out of the loop.
26301
26302 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26303 Kugan Vivekanandarajah <kuganv@linaro.org>
26304
26305 PR target/59695
26306 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26307 truncation.
26308
26309 2014-01-15 Richard Biener <rguenther@suse.de>
26310
26311 PR rtl-optimization/59802
26312 * lcm.c (compute_available): Use inverted postorder to seed
26313 the initial worklist.
26314
26315 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26316
26317 PR target/59803
26318 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26319 ADDR_REGS for invalid symrefs in non-PIC code.
26320
26321 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26322
26323 PR other/58712
26324 * builtins.c (determine_block_size): Initialize *probable_max_size
26325 even if len_rtx is CONST_INT.
26326
26327 2014-01-14 Andrew Pinski <apinski@cavium.com>
26328
26329 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26330 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26331 (cortexa53_tunings): Likewise.
26332 (aarch64_sched_issue_rate): New function.
26333 (TARGET_SCHED_ISSUE_RATE): Define.
26334
26335 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26336
26337 * ira-costs.c (find_costs_and_classes): Add missed
26338 ira_init_register_move_cost_if_necessary.
26339
26340 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26341
26342 PR target/59787
26343 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26344
26345 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26346
26347 PR target/59794
26348 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26349 to indicate if type is used for function return value. Warn ABI
26350 change if the vector mode isn't available for function return value.
26351 (ix86_function_arg_advance): Pass false to type_natural_mode.
26352 (ix86_function_arg): Likewise.
26353 (ix86_gimplify_va_arg): Likewise.
26354 (function_arg_32): Don't warn ABI change.
26355 (ix86_function_value): Pass true to type_natural_mode.
26356 (ix86_return_in_memory): Likewise.
26357 (ix86_struct_value_rtx): Removed.
26358 (TARGET_STRUCT_VALUE_RTX): Likewise.
26359
26360 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26361
26362 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26363 converting a conditional jump into a conditional return.
26364
26365 2014-01-14 Richard Biener <rguenther@suse.de>
26366
26367 PR tree-optimization/58921
26368 PR tree-optimization/59006
26369 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26370 hoisting invariant stmts.
26371 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26372 invariant loads on the preheader edge if possible.
26373
26374 2014-01-14 Joey Ye <joey.ye@arm.com>
26375
26376 * doc/plugin.texi (Building GCC plugins): Update to C++.
26377
26378 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26379
26380 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26381 (_mm_rcp28_round_ss): Ditto.
26382 (_mm_rsqrt28_round_sd): Ditto.
26383 (_mm_rsqrt28_round_ss): Ditto.
26384 (_mm_rcp28_sd): Ditto.
26385 (_mm_rcp28_ss): Ditto.
26386 (_mm_rsqrt28_sd): Ditto.
26387 (_mm_rsqrt28_ss): Ditto.
26388 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26389 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26390 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26391 (IX86_BUILTIN_RCP28SD): Ditto.
26392 (IX86_BUILTIN_RCP28SS): Ditto.
26393 (IX86_BUILTIN_RSQRT28SD): Ditto.
26394 (IX86_BUILTIN_RSQRT28SS): Ditto.
26395 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26396 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26397 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26398 (ix86_expand_special_args_builtin): Expand new FTYPE.
26399 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26400 (srcp14<mode>): Make insn unary.
26401 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26402 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26403 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26404 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26405 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26406 Fix rounding: make it SAE only.
26407 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26408 Ditto.
26409 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26410 Ditto.
26411 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26412 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26413 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26414 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26415 (round_saeonly_mask_scalar_operand4): Ditto.
26416 (round_saeonly_mask_scalar_op3): Ditto.
26417 (round_saeonly_mask_scalar_op4): Ditto.
26418
26419 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26420
26421 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26422 Implement -maltivec=be for vec_insert and vec_extract.
26423
26424 2014-01-10 DJ Delorie <dj@redhat.com>
26425
26426 * config/msp430/msp430.md (call_internal): Don't allow memory
26427 references with SP as the base register.
26428 (call_value_internal): Likewise.
26429 * config/msp430/constraints.md (Yc): New. For memory references
26430 that don't use SP as a base register.
26431
26432 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26433 "an integer without a # prefix"
26434 * config/msp430/msp430.md (epilogue_helper): Use it.
26435
26436 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26437
26438 PR target/59617
26439 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26440 AVX512F gather builtins.
26441 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26442 on gather decls with INTEGER_TYPE masktype.
26443 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26444 directly into the builtin rather than hoisting it before loop.
26445
26446 PR tree-optimization/59387
26447 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26448 (scev_const_prop): If folded_casts and type has undefined overflow,
26449 use force_gimple_operand instead of force_gimple_operand_gsi and
26450 for each added stmt if it is assign with
26451 arith_code_with_undefined_signed_overflow, call
26452 rewrite_to_defined_overflow.
26453 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26454 gimple-fold.h instead.
26455 (arith_code_with_undefined_signed_overflow,
26456 rewrite_to_defined_overflow): Moved to ...
26457 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26458 rewrite_to_defined_overflow): ... here. No longer static.
26459 Include gimplify-me.h.
26460 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26461 rewrite_to_defined_overflow): New prototypes.
26462
26463 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26464
26465 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26466
26467 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26468
26469 * builtins.c (get_object_alignment_2): Minor tweak.
26470 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26471
26472 2014-01-13 Christian Bruel <christian.bruel@st.com>
26473
26474 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26475 optimized non constant lengths.
26476
26477 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26478
26479 PR libgomp/59194
26480 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26481 load as __atomic_load_N if possible.
26482
26483 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26484
26485 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26486 target parameter.
26487 (rs6000_expand_builtin): Adjust call.
26488
26489 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26490
26491 PR target/58115
26492 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26493 * config/rs6000/rs6000.c: Include target-globals.h.
26494 (rs6000_set_current_function): Instead of doing target_reinit
26495 unconditionally, use save_target_globals_default_opts and
26496 restore_target_globals.
26497
26498 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26499 FPSCR.
26500 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26501 (rs6000_expand_builtin): Handle mffs and mtfsf.
26502 (rs6000_init_builtins): Define mffs and mtfsf.
26503 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26504 (rs6000_mffs): New pattern.
26505 (rs6000_mtfsf): New pattern.
26506
26507 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26508
26509 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26510 Start narrowing with START. Apply candidate-use pair
26511 and check overall cost in narrowing.
26512 (iv_ca_prune): Pass new argument.
26513
26514 2014-01-10 Jeff Law <law@redhat.com>
26515
26516 PR middle-end/59743
26517 * ree.c (combine_reaching_defs): Ensure the defining statement
26518 occurs before the extension when optimizing extensions with
26519 different source and destination hard registers.
26520
26521 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26522
26523 PR ipa/58585
26524 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26525 vtables into the type inheritance graph.
26526
26527 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26528
26529 PR rtl-optimization/59754
26530 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26531 modes in the REGNO != REGNO case.
26532
26533 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26534
26535 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26536
26537 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26538
26539 PR tree-optimization/59745
26540 * tree-predcom.c (tree_predictive_commoning_loop): Call
26541 free_affine_expand_cache if giving up because components is NULL.
26542
26543 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26544 GC in payload of target_globals struct instead of allocating them on
26545 the heap and the larger structs separately using GC.
26546 * target-globals.h (struct target_globals): Make regs, hard_regs,
26547 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26548 of GTY((skip)) and change type to void *.
26549 (reset_target_globals): Cast loads from those fields to corresponding
26550 types.
26551
26552 2014-01-10 Steve Ellcey <sellcey@mips.com>
26553
26554 PR plugins/59335
26555 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26556 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26557 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26558
26559 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26560
26561 PR target/59744
26562 * aarch64-modes.def (CC_Zmode): New flags mode.
26563 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26564 represents an equality.
26565 (aarch64_get_condition_code): Handle CC_Zmode.
26566 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26567
26568 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26569
26570 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26571 extraction in good case.
26572
26573 2014-01-10 Richard Biener <rguenther@suse.de>
26574
26575 PR tree-optimization/59374
26576 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26577 checking after SLP discovery. Mark stmts not participating
26578 in any SLP instance properly.
26579
26580 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26581
26582 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26583 when handling a SET rtx.
26584
26585 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26586
26587 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26588 (cortex-a57): Likewise.
26589 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26590
26591 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26592
26593 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26594 non-iwmmxt builtins.
26595
26596 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26597
26598 PR ipa/58252
26599 PR ipa/59226
26600 * ipa-devirt.c record_target_from_binfo): Take as argument
26601 stack of binfos and lookup matching one for virtual inheritance.
26602 (possible_polymorphic_call_targets_1): Update.
26603
26604 2014-01-10 Huacai Chen <chenhc@lemote.com>
26605
26606 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26607 kernel strings for Loongson-2E/2F/3A.
26608
26609 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26610
26611 PR middle-end/59670
26612 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26613 is_gimple_call before calling gimple_call_internal_p.
26614
26615 2014-01-09 Steve Ellcey <sellcey@mips.com>
26616
26617 * Makefile.in (TREE_FLOW_H): Remove.
26618 (TREE_SSA_H): Add file names from tree-flow.h.
26619 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26620 * tree.h: Remove tree-flow.h reference.
26621 * hash-table.h: Remove tree-flow.h reference.
26622 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26623 reference with tree-ssa-loop.h.
26624
26625 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26626
26627 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26628 default element-order behavior for -maltivec.
26629 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26630 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26631 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26632 when targeting big endian, at least for now.
26633 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26634
26635 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26636
26637 PR middle-end/47735
26638 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26639 var satisfies use_register_for_decl, just take into account type
26640 alignment, rather than decl alignment.
26641
26642 PR tree-optimization/59622
26643 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26644 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26645 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26646 Don't devirtualize for inplace at all. For targets.length () == 1,
26647 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26648
26649 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26650
26651 * config/i386/i386.md (cpu): Remove the unused btver1.
26652
26653 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26654
26655 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26656
26657 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26658
26659 PR target/58115
26660 * tree-core.h (struct target_globals): New forward declaration.
26661 (struct tree_target_option): Add globals field.
26662 * tree.h (TREE_TARGET_GLOBALS): Define.
26663 (prepare_target_option_nodes_for_pch): New prototype.
26664 * target-globals.h (struct target_globals): Define even if
26665 !SWITCHABLE_TARGET.
26666 * tree.c (prepare_target_option_node_for_pch,
26667 prepare_target_option_nodes_for_pch): New functions.
26668 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26669 * config/i386/i386.c: Include target-globals.h.
26670 (ix86_set_current_function): Instead of doing target_reinit
26671 unconditionally, use save_target_globals_default_opts and
26672 restore_target_globals.
26673
26674 2014-01-09 Richard Biener <rguenther@suse.de>
26675
26676 PR tree-optimization/59715
26677 * tree-cfg.h (split_critical_edges): Declare.
26678 * tree-cfg.c (split_critical_edges): Export.
26679 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26680
26681 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26682
26683 * cfgexpand.c (expand_stack_vars): Optionally disable
26684 asan stack protection.
26685 (expand_used_vars): Likewise.
26686 (partition_stack_vars): Likewise.
26687 * asan.c (asan_emit_stack_protection): Optionally disable
26688 after return stack usage.
26689 (instrument_derefs): Optionally disable memory access instrumentation.
26690 (instrument_builtin_call): Likewise.
26691 (instrument_strlen_call): Likewise.
26692 (asan_protect_global): Optionally disable global variables protection.
26693 * doc/invoke.texi: Added doc for new options.
26694 * params.def: Added new options.
26695 * params.h: Likewise.
26696
26697 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26698
26699 PR rtl-optimization/59724
26700 * ifcvt.c (cond_exec_process_if_block): Don't call
26701 flow_find_head_matching_sequence with 0 longest_match.
26702 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26703 non-active insns if !stop_after.
26704 (try_head_merge_bb): Revert 2014-01-07 changes.
26705
26706 2014-01-08 Jeff Law <law@redhat.com>
26707
26708 * ree.c (get_sub_rtx): New function, extracted from...
26709 (merge_def_and_ext): Here.
26710 (combine_reaching_defs): Use get_sub_rtx.
26711
26712 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26713
26714 * cgraph.h (varpool_variable_node): Do not choke on null node.
26715
26716 2014-01-08 Catherine Moore <clm@codesourcery.com>
26717
26718 * config/mips/mips.md (simple_return): Attempt to use JRC
26719 for microMIPS.
26720 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26721
26722 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26723
26724 PR rtl-optimization/59137
26725 * reorg.c (steal_delay_list_from_target): Call update_block for
26726 elided insns.
26727 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26728
26729 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26730
26731 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26732 two duplicate entries.
26733
26734 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26735
26736 Revert:
26737 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26738
26739 * config/mips/mips.c (mips_truncated_op_cost): New function.
26740 (mips_rtx_costs): Adjust test for BADDU.
26741 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26742
26743 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26744
26745 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26746 (*baddu_si): ...this new pattern.
26747
26748 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26749
26750 PR ipa/59722
26751 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26752
26753 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26754
26755 PR middle-end/57748
26756 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26757 inner_reference_p.
26758 (expand_expr, expand_normal): Adjust.
26759 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26760 inner_reference_p. Use inner_reference_p to expand inner references.
26761 (store_expr): Adjust.
26762 * cfgexpand.c (expand_call_stmt): Adjust.
26763
26764 2014-01-08 Rong Xu <xur@google.com>
26765
26766 * gcov-io.c (gcov_var): Move from gcov-io.h.
26767 (gcov_position): Ditto.
26768 (gcov_is_error): Ditto.
26769 (gcov_rewrite): Ditto.
26770 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26771 only part to libgcc/libgcov.h.
26772
26773 2014-01-08 Marek Polacek <polacek@redhat.com>
26774
26775 PR middle-end/59669
26776 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26777
26778 2014-01-08 Marek Polacek <polacek@redhat.com>
26779
26780 PR sanitizer/59667
26781 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26782
26783 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26784
26785 PR rtl-optimization/59649
26786 * stor-layout.c (get_mode_bounds): For BImode return
26787 0 and STORE_FLAG_VALUE.
26788
26789 2014-01-08 Richard Biener <rguenther@suse.de>
26790
26791 PR middle-end/59630
26792 * gimple.h (is_gimple_builtin_call): Remove.
26793 (gimple_builtin_call_types_compatible_p): New.
26794 (gimple_call_builtin_p): New overload.
26795 * gimple.c (is_gimple_builtin_call): Remove.
26796 (validate_call): Rename to ...
26797 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26798 check return types.
26799 (validate_type): New static function.
26800 (gimple_call_builtin_p): New overload and adjust.
26801 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26802 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26803 (gimple_fold_stmt_to_constant_1): Likewise.
26804 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26805
26806 2014-01-08 Richard Biener <rguenther@suse.de>
26807
26808 PR middle-end/59471
26809 * gimplify.c (gimplify_expr): Gimplify register-register type
26810 VIEW_CONVERT_EXPRs to separate stmts.
26811
26812 2014-01-07 Jeff Law <law@redhat.com>
26813
26814 PR middle-end/53623
26815 * ree.c (combine_set_extension): Handle case where source
26816 and destination registers in an extension insn are different.
26817 (combine_reaching_defs): Allow source and destination registers
26818 in extension to be different under limited circumstances.
26819 (add_removable_extension): Remove restriction that the
26820 source and destination registers in the extension are the same.
26821 (find_and_remove_re): Emit a copy from the extension's
26822 destination to its source after the defining insn if
26823 the source and destination registers are different.
26824
26825 PR middle-end/59285
26826 * ifcvt.c (merge_if_block): If we are merging a block with more than
26827 one successor with a block with no successors, remove any BARRIER
26828 after the second block.
26829
26830 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26831
26832 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26833
26834 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26835
26836 PR target/59652
26837 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26838 for 14-bit register offsets when INT14_OK_STRICT is false.
26839
26840 2014-01-07 Roland Stigge <stigge@antcom.de>
26841 Michael Meissner <meissner@linux.vnet.ibm.com>
26842
26843 PR 57386/target
26844 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26845 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26846
26847 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26848
26849 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26850 -mcpu.
26851
26852 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26853
26854 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26855 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26856 rtx is const0_rtx or not.
26857
26858 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26859
26860 PR target/58115
26861 * target-globals.c (save_target_globals): Remove this_fn_optab
26862 handling.
26863 * toplev.c: Include optabs.h.
26864 (target_reinit): Temporarily restore the global options if another
26865 set of options are in force.
26866
26867 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26868
26869 PR rtl-optimization/58668
26870 * cfgcleanup.c (flow_find_cross_jump): Don't count
26871 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26872 to determine what is counted.
26873 (flow_find_head_matching_sequence): Use active_insn_p to determine
26874 what is counted.
26875 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26876 counting change.
26877 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26878 determine what is counted.
26879
26880 PR tree-optimization/59643
26881 * tree-predcom.c (split_data_refs_to_components): If one dr is
26882 read and one write, determine_offset fails and the write isn't
26883 in the bad component, just put the read into the bad component.
26884
26885 2014-01-07 Mike Stump <mikestump@comcast.net>
26886 Jakub Jelinek <jakub@redhat.com>
26887
26888 PR pch/59436
26889 * tree-core.h (struct tree_optimization_option): Change optabs
26890 type from unsigned char * to void *.
26891 * optabs.c (init_tree_optimization_optabs): Adjust
26892 TREE_OPTIMIZATION_OPTABS initialization.
26893
26894 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26895
26896 PR target/59644
26897 * config/i386/i386.h (struct machine_function): Add
26898 no_drap_save_restore field.
26899 * config/i386/i386.c (ix86_save_reg): Use
26900 !cfun->machine->no_drap_save_restore instead of
26901 crtl->stack_realign_needed.
26902 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26903 this function clears frame_pointer_needed. Set
26904 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26905 and DRAP reg is needed.
26906
26907 2014-01-06 Marek Polacek <polacek@redhat.com>
26908
26909 PR c/57773
26910 * doc/implement-c.texi: Mention that other integer types are
26911 permitted as bit-field types in strictly conforming mode.
26912
26913 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26914
26915 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26916 is newly allocated.
26917
26918 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26919
26920 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26921
26922 2014-01-06 Martin Jambor <mjambor@suse.cz>
26923
26924 PR ipa/59008
26925 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26926 to int.
26927 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26928
26929 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26930
26931 PR debug/59350
26932 PR debug/59510
26933 * var-tracking.c (add_stores): Preserve the value of the source even if
26934 we don't record the store.
26935
26936 2014-01-06 Terry Guo <terry.guo@arm.com>
26937
26938 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26939
26940 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26941
26942 PR bootstrap/59541
26943 * config/darwin.c (darwin_function_section): Adjust return values to
26944 correspond to optimisation changes made in r206070.
26945
26946 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26947
26948 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26949 from prefetch_block tune setting.
26950 (nocona_cost): Correct size of prefetch block to 64.
26951
26952 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26953
26954 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26955 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26956 used to save the static chain register in the computation of the offset
26957 from which the FP registers need to be restored.
26958
26959 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26960
26961 PR tree-optimization/59519
26962 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26963 ICE if get_current_def (current_new_name) is already non-NULL, as long
26964 as it is a phi result of some other phi in *new_exit_bb that has
26965 the same argument.
26966
26967 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26968 or vmovdqu* for misaligned_operand.
26969 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26970 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26971 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26972 aligned_mem for AVX512F masked aligned load and store builtins and for
26973 non-temporal moves.
26974
26975 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26976
26977 PR tree-optimization/59651
26978 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26979 Address range for negative step should be added by TYPE_SIZE_UNIT.
26980
26981 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26982
26983 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26984 overlapping registers also for registers other than the stack pointer.
26985
26986 2014-01-03 Marek Polacek <polacek@redhat.com>
26987
26988 PR other/59661
26989 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26990 __builtin_FILE.
26991
26992 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26993
26994 PR target/59625
26995 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26996 asm goto as jump.
26997
26998 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26999 (push splitter): Use <P:MODE_SIZE> instead of
27000 GET_MODE_SIZE (<P:MODE>mode).
27001 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27002 (mov -1, reg peephole2): Likewise.
27003 * config/i386/sse.md (*mov<mode>_internal,
27004 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27005 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27006 *<code><mode>3, *andnot<mode>3<mask_name>,
27007 <mask_codefor><code><mode>3<mask_name>): Likewise.
27008 * config/i386/subst.md (mask_mode512bit_condition,
27009 sd_mask_mode512bit_condition): Likewise.
27010
27011 2014-01-02 Xinliang David Li <davidxl@google.com>
27012
27013 PR tree-optimization/59303
27014 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27015 (dump_predicates): Better output format.
27016 (pred_equal_p): New function.
27017 (is_neq_relop_p): Ditto.
27018 (is_neq_zero_form_p): Ditto.
27019 (pred_expr_equal_p): Ditto.
27020 (pred_neg_p): Ditto.
27021 (simplify_pred): Ditto.
27022 (simplify_preds_2): Ditto.
27023 (simplify_preds_3): Ditto.
27024 (simplify_preds_4): Ditto.
27025 (simplify_preds): Ditto.
27026 (push_pred): Ditto.
27027 (push_to_worklist): Ditto.
27028 (get_pred_info_from_cmp): Ditto.
27029 (is_degenerated_phi): Ditto.
27030 (normalize_one_pred_1): Ditto.
27031 (normalize_one_pred): Ditto.
27032 (normalize_one_pred_chain): Ditto.
27033 (normalize_preds): Ditto.
27034 (normalize_cond_1): Remove function.
27035 (normalize_cond): Ditto.
27036 (is_gcond_subset_of): Ditto.
27037 (is_subset_of_any): Ditto.
27038 (is_or_set_subset_of): Ditto.
27039 (is_and_set_subset_of): Ditto.
27040 (is_norm_cond_subset_of): Ditto.
27041 (pred_chain_length_cmp): Ditto.
27042 (convert_control_dep_chain_into_preds): Type change.
27043 (find_predicates): Ditto.
27044 (find_def_preds): Ditto.
27045 (destroy_predicates_vecs): Ditto.
27046 (find_matching_predicates_in_rest_chains): Ditto.
27047 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27048 (is_pred_expr_subset): Ditto.
27049 (is_pred_chain_subset_of): Ditto.
27050 (is_included_in): Ditto.
27051 (is_superset_of): Ditto.
27052
27053 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27054
27055 Update copyright years.
27056
27057 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27058
27059 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27060 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27061 config/arc/arc.md, config/arc/arc.opt,
27062 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27063 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27064 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27065 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27066 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27067 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27068 vtable-verify.c, vtable-verify.h: Use the standard form for the
27069 copyright notice.
27070
27071 2014-01-02 Tobias Burnus <burnus@net-b.de>
27072
27073 * gcc.c (process_command): Update copyright notice dates.
27074 * gcov-dump.c: Ditto.
27075 * gcov.c: Ditto.
27076 * doc/cpp.texi: Bump @copying's copyright year.
27077 * doc/cppinternals.texi: Ditto.
27078 * doc/gcc.texi: Ditto.
27079 * doc/gccint.texi: Ditto.
27080 * doc/gcov.texi: Ditto.
27081 * doc/install.texi: Ditto.
27082 * doc/invoke.texi: Ditto.
27083
27084 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27085
27086 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27087
27088 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27089
27090 * config/i386/sse.md (*mov<mode>_internal): Guard
27091 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27092
27093 PR rtl-optimization/59647
27094 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27095 new_rtx into UNSIGNED_FLOAT rtxes.
27096 \f
27097 Copyright (C) 2014 Free Software Foundation, Inc.
27098
27099 Copying and distribution of this file, with or without modification,
27100 are permitted in any medium without royalty provided the copyright
27101 notice and this notice are preserved.