dse.c: Include rtl-iter.h.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * dse.c: Include rtl-iter.h.
4 (check_mem_read_rtx): Change void * parameter to real type.
5 Remove return value.
6 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
7 for_each_rtx. Don't handle null rtxes.
8
9 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
10
11 * df-problems.c: Include rtl-iter.h.
12 (find_memory): Turn from being a for_each_rtx callback to being
13 a function that examines each subrtx itself. Continue to look for
14 volatile references even after a nonvolatile one has been found.
15 (can_move_insns_across): Update calls accordingly.
16
17 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18
19 * ddg.c (walk_mems_2, walk_mems_1): Delete.
20 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
21 to iterate over subrtxes. Return a bool rather than an int.
22
23 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * ddg.c: Include rtl-iter.h.
26 (mark_mem_use_1): Rename to...
27 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
28 instead of for_each_rtx.
29 (mem_read_insn_p): Update accordingly.
30
31 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
32
33 * cse.c (change_cc_mode_args): Delete.
34 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
35 a function that examines each subrtx itself. Take the fields of
36 change_cc_mode_args as argument and return void.
37 (cse_change_cc_mode_insn): Update calls accordingly.
38
39 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
40
41 * cse.c (is_dead_reg): Change argument to const_rtx.
42 (dead_debug_insn_data): Delete.
43 (is_dead_debug_insn): Expand commentary. Turn from being a
44 for_each_rtx callback to being a function that examines
45 each subrtx itself. Take the fields of dead_debug_insn_data
46 as argument.
47 (delete_trivially_dead_insns): Update call accordingly.
48
49 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
50
51 * cse.c (check_for_label_ref): Move earlier in file. Turn from
52 being a for_each_rtx callback to being a function that examines
53 each subrtx itself.
54 (cse_extended_basic_block): Update call accordingly.
55
56 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
57
58 * cse.c (check_dependence_data): Delete.
59 (check_dependence): Change from being a for_each_rtx callback to being
60 a function that examines all subrtxes itself. Don't handle null rtxes.
61 (invalidate): Update call accordingly.
62
63 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
64
65 * cse.c: Include rtl-iter.h.
66 (approx_reg_cost_1): Delete.
67 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
68 Don't handle null rtxes.
69
70 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
71
72 * cfgcleanup.c: Include rtl-iter.h.
73 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
74 to being a function that examines each subrtx itself.
75 (thread_jump): Update accordingly.
76
77 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
78
79 * combine-stack-adj.c: Include rtl-iter.h.
80 (record_stack_refs_data): Delete.
81 (record_stack_refs): Turn from being a for_each_rtx callback
82 to being a function that examines each subrtx itself.
83 Take a pointer to the reflist. Invert sense of return value
84 so that true means success and false means failure. Don't
85 handle null rtxes.
86 (combine_stack_adjustments_for_block): Update accordingly.
87
88 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
89
90 * combine.c (record_truncated_value): Turn from being a for_each_rtx
91 callback to a function that takes an rtx and returns a bool
92 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
93 for_each_rtx.
94
95 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
96
97 * combine.c: Include rtl-iter.h.
98 (unmentioned_reg_p_1): Delete.
99 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
100 Don't handle null rtxes.
101
102 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
103
104 * calls.c: Include rtl-iter.h.
105 (internal_arg_pointer_based_exp_1): Delete.
106 (internal_arg_pointer_based_exp): Take a const_rtx.
107 Use FOR_EACH_SUBRTX to iterate over subrtxes.
108
109 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
110
111 * caller-save.c: Include rtl-iter.h.
112 (add_used_regs_1): Delete.
113 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
114 to iterate over subrtxes. Assert that any remaining pseudos
115 have been spilled.
116
117 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
118
119 * bt-load.c: Include rtl-iter.h.
120 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
121 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
122 to iterate over subrtxes.
123 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
124 find_btr_use rather than btr_referenced_p.
125
126 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
127
128 * alias.c: Include rtl-iter.h.
129 (refs_newer_value_cb): Delete.
130 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
131
132 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
133
134 * rtl-iter.h: New file.
135 * rtlanal.c: Include it.
136 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
137 (generic_subrtx_iterator <T>::add_single_to_queue)
138 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
139 (generic_subrtx_iterator <T>::free_array): New functions.
140 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
141 (generic_subrtx_iterator <const_rtx_accessor>)
142 (generic_subrtx_iterator <rtx_var_accessor>
143 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
144 (setup_reg_subrtx_bounds): New function.
145 (init_rtlanal): Call it.
146
147 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
148
149 PR target/62261
150 * config/sh/sh.md (ashlsi3): Handle negative shift count for
151 TARGET_SHMEDIA.
152 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
153
154 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
155
156 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
157
158 2014-08-27 David Malcolm <dmalcolm@redhat.com>
159
160 * rtl.h (JUMP_LABEL_AS_INSN): New.
161
162 2014-08-27 David Malcolm <dmalcolm@redhat.com>
163
164 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
165 rtx_expr_list **.
166 (alloc_EXPR_LIST): Strengthen return type from rtx to
167 rtx_expr_list *.
168 (remove_free_EXPR_LIST_node): Likewise for param.
169 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
170 from rtx to rtx_expr_list *.
171 * sched-int.h (struct deps_desc): Strengthen fields
172 "pending_read_mems" and "pending_write_mems" from rtx to
173 rtx_expr_list *.
174
175 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
176 rtx to rtx_expr_list *.
177 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
178 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
179 rtx_expr_list **.
180 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
181 from rtx to rtx_expr_list *.
182 * loop-iv.c (simplify_using_initial_values): Strengthen local
183 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
184 "pnote_next" from rtx * to rtx_expr_list **.
185 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
186 param "exprp" from rtx * to rtx_expr_list **.
187 (add_insn_mem_dependence): Strengthen local "mem_list" from
188 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
189 to rtx_expr_list *.
190 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
191 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
192 param "old_mems_p" from rtx * to rtx_expr_list **.
193 * var-tracking.c (struct adjust_mem_data): Strengthen field
194 "side_effects" from rtx to rtx_expr_list *.
195 (adjust_insn): Replace NULL_RTX with NULL when assigning to
196 rtx_expr_list *.
197 (prepare_call_arguments): Likewise.
198
199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
200
201 * function.h (struct rtl_data): Strengthen field
202 "x_stack_slot_list" from rtx to rtx_expr_list *.
203
204 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
205 when assigning to stack_slot_list.
206
207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
208
209 * function.h (struct rtl_data): Strengthen field
210 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
211 * rtl.h (remove_node_from_expr_list): Strengthen second param from
212 rtx * to rtx_expr_list **.
213
214 * cfgbuild.c (make_edges): In loop over
215 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
216 rtx_expr_list *, and use methods of the latter class to clarify
217 the code.
218 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
219 rtx_expr_list *, and use methods of the latter class to clarify
220 the code.
221 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
222 * reload1.c (set_initial_label_offsets): Likewise for local "x".
223 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
224 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
225 to rtx_expr_list *. Use methods of the latter class to clarify
226 the code.
227
228 2014-08-27 David Malcolm <dmalcolm@redhat.com>
229
230 * function.h (struct expr_status): Strengthen field
231 "x_forced_labels" from rtx to rtx_expr_list *.
232
233 * cfgbuild.c (make_edges): Split local "x" into two locals,
234 strengthening one from rtx to rtx_expr_list *, and using methods
235 of said class.
236 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
237 loop over forced_labels, introduce strengthen it from rtx to
238 rtx_expr_list *, using methods to clarify the code.
239 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
240 to rtx_expr_list *, using methods of said class to clarify the
241 code.
242 * reload1.c (set_initial_label_offsets): Split local "x" into two
243 per-loop variables, strengthening the first from rtx to
244 rtx_expr_list * and using methods.
245
246 2014-08-27 David Malcolm <dmalcolm@redhat.com>
247
248 * coretypes.h (class rtx_expr_list): Add forward declaration.
249 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
250 * gengenrtl.c (special_rtx): Add EXPR_LIST.
251 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
252 invariant: GET_CODE (X) == EXPR_LIST.
253 (is_a_helper <rtx_expr_list *>::test): New.
254 (rtx_expr_list::next): New.
255 (rtx_expr_list::element): New.
256 (gen_rtx_EXPR_LIST): New.
257
258 2014-08-27 David Malcolm <dmalcolm@redhat.com>
259
260 * varasm.c (mark_constants): Convert a GET_CODE check into a
261 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
262 Use methods of rtx_sequence to clarify the code.
263
264 2014-08-27 David Malcolm <dmalcolm@redhat.com>
265
266 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
267 local "seq" via a checked cast, and use methods of rtx_sequence
268 to simplify the code.
269
270 2014-08-27 David Malcolm <dmalcolm@redhat.com>
271
272 * resource.c (mark_referenced_resources): Strengthen local
273 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
274 using methods of rtx_sequence to clarify the code.
275 (find_dead_or_set_registers): Within the switch statement, convert
276 a GET_CODE check to a dyn_cast, introducing local "seq". Within
277 the JUMP_P handling, introduce another local "seq", adding a
278 checked cast to rtx_sequence *. In both cases, use methods of
279 rtx_sequence to clarify the code.
280 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
281 via a checked cast, and use methods of rtx_sequence to simplify
282 the code.
283
284 2014-08-27 David Malcolm <dmalcolm@redhat.com>
285
286 * reorg.c (redundant_insn): In two places in the function, replace
287 a check of GET_CODE with a dyn_cast, introducing local "seq", and
288 usings methods of rtx_sequence to clarify the code.
289
290 2014-08-27 David Malcolm <dmalcolm@redhat.com>
291
292 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
293 local "seq" with a checked cast, and use methods of rtx_sequence
294 to clarify the code.
295
296 2014-08-27 David Malcolm <dmalcolm@redhat.com>
297
298 * function.c (contains): Introduce local "seq" for PATTERN (insn),
299 with a checked cast, in the region for where we know it's a
300 SEQUENCE. Use methods of rtx_sequence.
301
302 2014-08-27 David Malcolm <dmalcolm@redhat.com>
303
304 * final.c (get_attr_length_1): Replace GET_CODE check with a
305 dyn_cast, introducing local "seq" and the use of methods of
306 rtx_sequence.
307 (shorten_branches): Likewise, introducing local "body_seq".
308 Strengthen local "inner_insn" from rtx to rtx_insn *.
309 (reemit_insn_block_notes): Replace GET_CODE check with a
310 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
311 Use methods of rtx_sequence.
312 (final_scan_insn): Likewise, introducing local "seq" for when
313 "body" is known to be a SEQUENCE, using its methods.
314
315 2014-08-27 David Malcolm <dmalcolm@redhat.com>
316
317 * except.c (can_throw_external): Strengthen local "seq" from rtx
318 to rtx_sequence *. Use methods of rtx_sequence.
319 (insn_nothrow_p): Likewise.
320
321 2014-08-27 David Malcolm <dmalcolm@redhat.com>
322
323 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
324 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
325 Use methods of rtx_sequence.
326 (scan_trace): Likewise for local "pat".
327
328 2014-08-27 David Malcolm <dmalcolm@redhat.com>
329
330 * coretypes.h (class rtx_sequence): Add forward declaration.
331 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
332 invariant: GET_CODE (X) == SEQUENCE.
333 (is_a_helper <rtx_sequence *>::test): New.
334 (is_a_helper <const rtx_sequence *>::test): New.
335 (rtx_sequence::len): New.
336 (rtx_sequence::element): New.
337 (rtx_sequence::insn): New.
338
339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
340
341 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
342 rtx_insn_list **.
343 (alloc_INSN_LIST): Strengthen return type from rtx to
344 rtx_insn_list *.
345 (copy_INSN_LIST): Likewise for return type and param.
346 (concat_INSN_LIST): Likewise for both params and return type.
347 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
348 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
349 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
350 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
351
352 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
353 "implicit_sets", "control_uses", "clobbers" from rtx to
354 rtx_insn_list *.
355 (struct deps_desc): Likewise for fields "pending_read_insns",
356 "pending_write_insns", "pending_jump_insns",
357 "last_pending_memory_flush", "last_function_call",
358 "last_function_call_may_noreturn", "sched_before_next_call",
359 "sched_before_next_jump".
360 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
361 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
362
363 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
364 from rtx to rtx_insn_list *.
365 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
366 rtx_insn_list *.
367
368 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
369 to rtx_insn_list **.
370 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
371 rtx_insn_list *.
372 (queue_insn): Likewise for local "link".
373 (struct haifa_saved_data): Strengthen field "insn_queue" from
374 rtx * to rtx_insn_list **.
375 (save_backtrack_point): Update allocation of save->insn_queue to
376 reflect the strengthening of elements from rtx to rtx_insn_list *.
377 (queue_to_ready): Strengthen local "link" from rtx to
378 rtx_insn_list *; use methods "next" and "insn" when traversing the
379 list.
380 (early_queue_to_ready): Likewise for locals "link", "next_link",
381 "prev_link".
382 (schedule_block): Update allocation of insn_queue to reflect the
383 strengthening of elements from rtx to rtx_insn_list *. Strengthen
384 local "link" from rtx to rtx_insn_list *, and use methods when
385 working it.
386 (add_to_speculative_block): Strengthen locals "twins" and
387 "next_node" from rtx to rtx_insn_list *, and use methods when
388 working with them. Strengthen local "twin" from rtx to
389 rtx_insn *, eliminating a checked cast.
390 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
391 from rtx to rtx_insn_list *, and use methods when working with
392 them.
393
394 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
395 from rtx to rtx_insn_list *, adding a checked cast.
396 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
397 rtx_insn_list **.
398 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
399 "newlink" from rtx to rtx_insn_list *. Strengthen local
400 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
401 from rtx to rtx_insn *.
402 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
403 from rtx to rtx_insn_list *. Use methods of the latter class.
404 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
405 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
406 (remove_free_INSN_LIST_node): Strengthen return type and local
407 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
408 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
409 rtx_insn_list *, using "insn" method.
410
411 * sched-deps.c (add_dependence_list): Strengthen param "list"
412 from rtx to rtx_insn_list *, and use methods when working with it.
413 (add_dependence_list_and_free): Strengthen param "listp" from
414 rtx * to rtx_insn_list **.
415 (remove_from_dependence_list): Strenghten param "listp" from rtx *
416 to rtx_insn_list **, and use methods when working with *listp.
417 (remove_from_both_dependence_lists): Strengthen param "listp" from
418 rtx * to rtx_insn_list **
419 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
420 to rtx_insn_list **. Eliminate local "link", in favor of two new
421 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
422 respectively.
423 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
424 by introducing local "cond_deps".
425 (remove_from_deps): Strengthen param "insn" from rtx to
426 rtx_insn *.
427
428 * sched-rgn.c (concat_insn_mem_list): Strengthen param
429 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
430 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
431 Use methods of rtx_insn_list.
432
433 * store-motion.c (struct st_expr): Strengthen fields
434 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
435 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
436 rtx_insn_list *.
437 (find_moveable_store): Split out "tmp" into multiple more-tightly
438 scoped locals. Use methods of rtx_insn_list *.
439 (compute_store_table): Strengthen local "tmp" from rtx to
440 rtx_insn *. Use methods of rtx_insn_list *.
441
442 2014-08-27 David Malcolm <dmalcolm@redhat.com>
443
444 * coretypes.h (class rtx_insn_list): Add forward declaration.
445 * rtl.h (class rtx_insn_list): New subclass of rtx_def
446 (is_a_helper <rtx_insn_list *>::test): New.
447 (rtx_insn_list::next): New.
448 (rtx_insn_list::insn): New.
449 (gen_rtx_INSN_LIST): Add prototype.
450 * emit-rtl.c (gen_rtx_INSN_LIST): New.
451 * gengenrtl.c (special_rtx): Add INSN_LIST.
452
453 2014-08-27 David Malcolm <dmalcolm@redhat.com>
454
455 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
456 "prev" from rtx to rtx_insn *.
457
458 2014-08-27 David Malcolm <dmalcolm@redhat.com>
459
460 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
461 functions. Require merely an rtx for now, not an rtx_insn *.
462 (BLOCK_FOR_INSN): Likewise.
463 (INSN_LOCATION): Likewise.
464 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
465
466 2014-08-27 David Malcolm <dmalcolm@redhat.com>
467
468 * rtl.h (PATTERN): Convert this macro into a pair of inline
469 functions, for now, requiring const_rtx and rtx.
470
471 2014-08-27 David Malcolm <dmalcolm@redhat.com>
472
473 * target.def (unwind_emit): Strengthen param "insn" from rtx to
474 rtx_insn *.
475 (final_postscan_insn): Likewise.
476 (adjust_cost): Likewise.
477 (adjust_priority): Likewise.
478 (variable_issue): Likewise.
479 (macro_fusion_pair_p): Likewise.
480 (dfa_post_cycle_insn): Likewise.
481 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
482 (first_cycle_multipass_issue): Likewise.
483 (dfa_new_cycle): Likewise.
484 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
485 (speculate_insn): Likewise for param "insn".
486 (gen_spec_check): Likewise for params "insn" and "label".
487 (get_insn_spec_ds): Likewise for param "insn".
488 (get_insn_checked_ds): Likewise.
489 (dispatch_do): Likewise.
490 (dispatch): Likewise.
491 (cannot_copy_insn_p): Likewise.
492 (invalid_within_doloop): Likewise.
493 (legitimate_combined_insn): Likewise.
494 (needed): Likewise.
495 (after): Likewise.
496
497 * doc/tm.texi: Automatically updated to reflect changes to
498 target.def.
499
500 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
501 working with insn.
502 (schedule_block): Likewise.
503 (sched_init): Likewise.
504 (sched_speculate_insn): Strengthen param "insn" from rtx to
505 rtx_insn *.
506 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
507 working with insn.
508 * hooks.c (hook_bool_rtx_true): Rename to...
509 hook_bool_rtx_insn_true): ...this, and strengthen first param from
510 rtx to rtx_insn *.
511 (hook_constcharptr_const_rtx_null): Rename to...
512 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
513 first param from const_rtx to const rtx_insn *.
514 (hook_bool_rtx_int_false): Rename to...
515 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
516 param from rtx to rtx_insn *.
517 (hook_void_rtx_int): Rename to...
518 (hook_void_rtx_insn_int): ...this, and strengthen first param from
519 rtx to rtx_insn *.
520
521 * hooks.h (hook_bool_rtx_true): Rename to...
522 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
523 rtx to rtx_insn *.
524 (hook_bool_rtx_int_false): Rename to...
525 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
526 param from rtx to rtx_insn *.
527 (hook_void_rtx_int): Rename to...
528 (hook_void_rtx_insn_int): ...this, and strengthen first param from
529 rtx to rtx_insn *.
530 (hook_constcharptr_const_rtx_null): Rename to...
531 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
532 first param from const_rtx to const rtx_insn *.
533
534 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
535 and local "prev" from rtx to rtx_insn *.
536
537 * sched-int.h (sched_speculate_insn): Strengthen first param from
538 rtx to rtx_insn *.
539
540 * sel-sched.c (create_speculation_check): Likewise for local "label".
541 * targhooks.c (default_invalid_within_doloop): Strengthen param
542 "insn" from const_rtx to const rtx_insn *.
543 * targhooks.h (default_invalid_within_doloop): Strengthen param
544 from const_rtx to const rtx_insn *.
545
546 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
547 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
548
549 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
550 "insn".
551 (arc_invalid_within_doloop): Likewise, with const.
552
553 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
554 (arm_cannot_copy_insn_p): Likewise for param "insn".
555 (arm_unwind_emit): Likewise.
556
557 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
558 "dep_insn".
559
560 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
561 (c6x_variable_issue): Likewise. Removed now-redundant checked
562 cast.
563 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
564
565 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
566 Likewise for param "insn".
567 (epiphany_mode_after): Likewise.
568 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
569 params "insn", "dep_insn".
570 (epiphany_mode_needed): Likewise for param "insn".
571 (epiphany_mode_after): Likewise.
572
573 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
574 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
575 (ix86_avx_u128_mode_needed): Likewise.
576 (ix86_i387_mode_needed): Likewise.
577 (ix86_mode_needed): Likewise.
578 (ix86_avx_u128_mode_after): Likewise.
579 (ix86_mode_after): Likewise.
580 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
581 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
582 (ix86_adjust_priority): Likewise for param "insn".
583 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
584 (do_dispatch): Likewise.
585 (has_dispatch): Likewise.
586 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
587
588 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
589 reflect renaming of default hook implementation from
590 hook_constcharptr_const_rtx_null to
591 hook_constcharptr_const_rtx_insn_null.
592 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
593 rtx to rtx_insn *.
594 (ia64_variable_issue): Likewise for param "insn".
595 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
596 (ia64_dfa_new_cycle): Likewise.
597 (ia64_get_insn_spec_ds): Likewise.
598 (ia64_get_insn_checked_ds): Likewise.
599 (ia64_speculate_insn): Likewise.
600 (ia64_gen_spec_check): Likewise for params "insn", "label".
601 (ia64_asm_unwind_emit): Likewise for param "insn".
602
603 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
604
605 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
606 "insn", "def_insn".
607 (m68k_sched_variable_issue): Likewise for param "insn".
608
609 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
610 "def_insn".
611
612 * config/microblaze/microblaze.c (microblaze_adjust_cost):
613 Likewise for params "insn", "dep".
614
615 * config/mips/mips.c (mips_adjust_cost): Likewise.
616 (mips_variable_issue): Likewise for param "insn".
617 (mips_final_postscan_insn): Likewise.
618
619 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
620 for params "insn", "dep".
621
622 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
623 "dep_insn".
624 (pa_adjust_priority): Likewise for param "insn".
625
626 * config/picochip/picochip.c (picochip_sched_adjust_cost):
627 Likewise for params "insn", "dep_insn".
628
629 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
630 param "insn".
631 (rs6000_variable_issue): Likewise.
632 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
633 (rs6000_debug_adjust_cost): Likewise.
634 (rs6000_adjust_priority): Likewise for param "insn".
635 (rs6000_use_sched_lookahead_guard): Likewise.
636 (get_next_active_insn): Likewise for return type and both params.
637 (redefine_groups): Likewise for params "prev_head_insn", "tail"
638 and locals "insn", "next_insn".
639 (pad_groups): Likewise.
640
641 * config/s390/s390.c (s390_adjust_priority): Likewise for param
642 "insn".
643 (s390_cannot_copy_insn_p): Likewise.
644 (s390_sched_variable_issue): Likewise for third param, eliminating
645 checked cast.
646 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
647 default hook implementation from hook_constcharptr_const_rtx_null
648 to hook_constcharptr_const_rtx_insn_null.
649
650 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
651 from rtx to rtx_insn *.
652 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
653 (sh_variable_issue): Likewise for param "insn".
654 (sh_dfa_new_cycle): Likewise.
655 (sh_mode_needed): Likewise.
656 (sh_mode_after): Likewise.
657
658 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
659 params "insn", "dep_insn".
660 (hypersparc_adjust_cost): Likewise.
661 (sparc_adjust_cost): Likewise.
662
663 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
664 param, eliminated checked cast.
665 (spu_sched_adjust_cost): Likewise for first and third params.
666
667 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
668 params "insn" and "dep_insn" from rtx to rtx_insn *.
669
670 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
671
672 2014-08-27 David Malcolm <dmalcolm@redhat.com>
673
674 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
675 (set_is_load_p): ...this, updating to work on a SET pattern rather
676 than an insn.
677 (is_store_insn): Rename to...
678 (set_is_store_p): ...this, updating to work on a SET pattern
679 rather than an insn.
680 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
681 top of function to where it is needed. Rewrite the bogus
682 condition that checks for "insn" and "dep" being PARALLEL to
683 instead use single_set, introducing locals "insn_set" and
684 "dep_set". Given that we only ever returned "cost" for a non-pair
685 of SETs, bail out early if we don't have a pair of SET.
686 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
687 use the new locals "insn_set" and "dep_set", and update calls to
688 is_load_insn and is_store_insn to be calls to set_is_load_p and
689 set_is_store_p.
690
691 2014-08-27 Guozhi Wei <carrot@google.com>
692
693 PR target/62262
694 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
695 amount before using it.
696
697 2014-08-27 Richard Biener <rguenther@suse.de>
698
699 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
700 get_maxval_strlen inside a more useful API.
701 (gimple_fold_builtin_with_strlen): Remove and fold into ...
702 (gimple_fold_builtin): ... caller.
703 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
704 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
705 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
706 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
707 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
708 gimple_fold_builtin_sprintf): Adjust to compute maxval
709 themselves.
710
711 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
712
713 PR other/62248
714 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
715
716 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
717 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
718 Anna Tikhonova <anna.tikhonova@intel.com>
719 Ilya Tocar <ilya.tocar@intel.com>
720 Andrey Turetskiy <andrey.turetskiy@intel.com>
721 Ilya Verbin <ilya.verbin@intel.com>
722 Kirill Yukhin <kirill.yukhin@intel.com>
723 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
724
725 * config/i386/sse.md
726 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
727 Use `concat_tg_mode' attribute to determine asm register size.
728
729 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
730 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
731 Anna Tikhonova <anna.tikhonova@intel.com>
732 Ilya Tocar <ilya.tocar@intel.com>
733 Andrey Turetskiy <andrey.turetskiy@intel.com>
734 Ilya Verbin <ilya.verbin@intel.com>
735 Kirill Yukhin <kirill.yukhin@intel.com>
736 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
737
738 * config/i386/sse.md
739 (define_mode_iterator VI48_AVX512VL): New.
740 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
741 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
742 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
743 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
744 with VI1): Change mode iterator.
745 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
746 with VI_ULOADSTORE_BW_AVX512VL): New.
747 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
748 with VI_ULOADSTORE_F_AVX512VL): Ditto.
749 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
750 with VI1): Change mode iterator.
751 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
752 with VI_ULOADSTORE_BW_AVX512VL): New.
753 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
754 with VI_ULOADSTORE_F_AVX512VL): Ditto.
755 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
756 with VI1): Change mode iterator.
757 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
758 with VI_ULOADSTORE_BW_AVX512VL): New.
759 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
760 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
761 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
762 (define_insn "<avx512>_storedqu<mode>_mask" with
763 VI48_AVX512VL): New.
764 (define_insn "<avx512>_storedqu<mode>_mask" with
765 VI12_AVX512VL): Ditto.
766
767 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
769 Anna Tikhonova <anna.tikhonova@intel.com>
770 Ilya Tocar <ilya.tocar@intel.com>
771 Andrey Turetskiy <andrey.turetskiy@intel.com>
772 Ilya Verbin <ilya.verbin@intel.com>
773 Kirill Yukhin <kirill.yukhin@intel.com>
774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
775
776 * config/i386/sse.md
777 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
778 (define_mode_iterator VI48_AVX512BW): New.
779 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
780 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
781 with VI48_AVX2_48_AVX512F): New.
782 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
783 with VI2_AVX512VL): Ditto.
784
785 2014-08-27 Richard Biener <rguenther@suse.de>
786
787 PR middle-end/62239
788 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
789 (fold_builtin_3): Do not fold strcat_chk here.
790 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
791 from builtins.c.
792 (gimple_fold_builtin): Fold strcat_chk here.
793
794 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
795
796 * dwarf2out.h (dwarf2out_decl): Remove prototype.
797 * dwarf2out.c (dwarf2out_decl): Make static.
798
799 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
800
801 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
802
803 2014-08-26 David Malcolm <dmalcolm@redhat.com>
804
805 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
806 from rtx to rtx_insn *.
807 (cselib_lookup_from_insn): Likewise for final param.
808 (cselib_subst_to_values_from_insn): Likewise.
809 (cselib_add_permanent_equiv): Likewise.
810
811 * cselib.c (cselib_current_insn): Likewise for this variable.
812 (cselib_subst_to_values_from_insn): Likewise for param "insn".
813 (cselib_lookup_from_insn): Likewise.
814 (cselib_add_permanent_equiv): Likewise for param "insn" and local
815 "save_cselib_current_insn".
816 (cselib_process_insn): Replace use of NULL_RTX with NULL.
817
818 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
819 from rtx to rtx_insn *.
820
821 2014-08-26 David Malcolm <dmalcolm@redhat.com>
822
823 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
824 rtx_insn *.
825
826 2014-08-26 David Malcolm <dmalcolm@redhat.com>
827
828 * df.h (df_dump_insn_problem_function): Strengthen first param of
829 this callback from const_rtx to const rtx_insn *.
830 (struct df_insn_info): Strengthen field "insn" from rtx to
831 rtx_insn *.
832 (DF_REF_INSN): Eliminate this function, reinstating the older
833 macro definition.
834 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
835 (df_reg_defined): Likewise.
836 (df_find_use): Likewise.
837 (df_reg_used): Likewise.
838 (df_dump_insn_top): Strengthen param 1 from const_rtx to
839 const rtx_insn *.
840 (df_dump_insn_bottom): Likewise.
841 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
842 (df_insn_debug_regno): Likewise.
843 (debug_df_insn): Likewise.
844 (df_rd_simulate_one_insn): Likewise for param 2.
845 (df_word_lr_simulate_defs): Likewise for param 1.
846 (df_word_lr_simulate_uses): Likewise.
847 (df_md_simulate_one_insn): Likewise for param 2.
848 (df_simulate_find_noclobber_defs): Likewise for param 1.
849 (df_simulate_find_defs): Likewise.
850 (df_simulate_defs): Likewise.
851 (df_simulate_uses): Likewise.
852 (df_simulate_one_insn_backwards): Likewise for param 2.
853 (df_simulate_one_insn_forwards): Likewise.
854 (df_uses_create): Likewise for param 2.
855 (df_insn_create_insn_record): Likewise for param 1.
856 (df_insn_delete): Likewise.
857 (df_insn_rescan): Likewise.
858 (df_insn_rescan_debug_internal): Likewise.
859 (df_insn_change_bb): Likewise.
860 (df_notes_rescan): Likewise.
861 * rtl.h (remove_death): Likewise for param 2.
862 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
863 const rtx_insn *.
864 * sched-int.h (reemit_notes): Strengthen param from rtx to
865 rtx_insn *.
866 * valtrack.h (propagate_for_debug): Likewise for param 1.
867
868 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
869 local "tmp_rtx" from const_rtx to const rtx_insn *.
870 * combine.c (remove_death): Strengthen param "insn" from rtx to
871 rtx_insn *.
872 (move_deaths): Likewise for local "where_dead".
873 * cse.c (delete_trivially_dead_insns): Introduce local
874 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
875 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
876 rtx_insn *.
877 (df_reg_defined): Likewise.
878 (df_find_use): Likewise.
879 (df_reg_used): Likewise.
880 (df_dump_insn_problem_data): Strengthen param "insn" from
881 const_rtx to const rtx_insn *.
882 (df_dump_insn_top): Likewise.
883 (df_dump_insn_bottom): Likewise.
884 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
885 (df_insn_debug_regno): Likewise.
886 (debug_df_insn): Likewise.
887 (DF_REF_INSN): Delete.
888 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
889 from rtx to rtx_insn *.
890 (df_chain_insn_top_dump): Strengthen param "insn" from
891 const_rtx to const rtx_insn *.
892 (df_chain_insn_bottom_dump): Likewise.
893 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
894 rtx_insn *.
895 (df_word_lr_simulate_uses): Likewise.
896 (df_print_note): Likewise.
897 (df_remove_dead_and_unused_notes): Likewise.
898 (df_set_unused_notes_for_mw): Likewise.
899 (df_set_dead_notes_for_mw): Likewise.
900 (df_create_unused_note): Likewise.
901 (df_simulate_find_defs): Likewise.
902 (df_simulate_find_uses): Likewise.
903 (df_simulate_find_noclobber_defs): Likewise.
904 (df_simulate_defs): Likewise.
905 (df_simulate_uses): Likewise.
906 (df_simulate_one_insn_backwards): Likewise.
907 (df_simulate_one_insn_forwards): Likewise.
908 (df_md_simulate_one_insn): Likewise.
909 * df-scan.c (df_uses_create): Likewise.
910 (df_insn_create_insn_record): Likewise.
911 (df_insn_delete): Likewise.
912 (df_insn_rescan): Likewise.
913 (df_insn_rescan_debug_internal): Likewise.
914 (df_insn_change_bb): Likewise.
915 (df_notes_rescan): Likewise.
916 (df_refs_add_to_chains): Likewise.
917 (df_insn_refs_verify): Likewise.
918 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
919 when invoking df_insn_delete.
920 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
921 (set_unique_reg_note): Add checked cast.
922 * final.c (cleanup_subreg_operands): Likewise.
923 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
924 "insn" from rtx to rtx_insn *.
925 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
926 "last" from rtx to rtx_insn *.
927 * ira-emit.c (change_regs_in_insn): New function.
928 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
929 Invoke change_regs_in_insn rather than change_regs.
930 * ira.c (update_equiv_regs): Strengthen locals "insn",
931 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
932 for_each_rtx_in_insn rather than for_each_rtx.
933 * recog.c (confirm_change_group): Add checked casts.
934 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
935 Add checked cast.
936 (peep2_fill_buffer): Add checked cast.
937 * rtlanal.c (remove_note): Likewise.
938 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
939 locals "next" "end" from rtx to rtx_insn *.
940
941 2014-08-26 David Malcolm <dmalcolm@redhat.com>
942
943 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
944 to rtx_insn *.
945 (struct reg_use_data): Likewise for field "insn".
946 (insn_cost): Likewise for param.
947 (real_insn_for_shadow): Likewise for return type and param.
948 (increase_insn_priority): Likewise for param 1.
949 (debug_dependencies): Likewise for both params.
950
951 * haifa-sched.c (insn_delay): Likewise for param "insn".
952 (real_insn_for_shadow): Likewise for return type and param "insn".
953 (update_insn_after_change): Likewise for param "insn".
954 (recompute_todo_spec): Likewise for param "next" and locals "pro",
955 "other".
956 (insn_cost): Likewise for param "insn".
957 (increase_insn_priority): Likewise.
958 (calculate_reg_deaths): Likewise.
959 (setup_insn_reg_pressure_info): Likewise.
960 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
961 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
962 (model_recompute): Likewise.
963 (must_restore_pattern_p): Likewise for param "next".
964 (model_excess_cost): Likewise for param "insn".
965 (queue_remove): Likewise.
966 (adjust_priority): Likewise for param "prev".
967 (update_register_pressure): Likewise for param "insn".
968 (setup_insn_max_reg_pressure): Likewise for local "insn".
969 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
970 (model_add_to_schedule): Likewise.
971 (model_reset_queue_indices): Likewise for local "insn".
972 (unschedule_insns_until): Strengthen local "recompute_vec" from
973 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
974 "con" from rtx to rtx_insn *.
975 (restore_last_backtrack_point): Likewise for both locals "x". Add
976 checked casts.
977 (estimate_insn_tick): Likewise for param "insn".
978 (commit_schedule): Likewise for params "prev_head", "tail" and
979 local "x".
980 (verify_shadows): Likewise for locals "i1", "i2".
981 (dump_insn_stream): Likewise for params "head", "tail" and locals
982 "next_tail", "insn".
983 (schedule_block): Likewise for locals "insn", "x". Add a checked
984 cast.
985 (fix_inter_tick): Likewise for params "head", "tail".
986 (create_check_block_twin): Likewise for local "jump".
987 (haifa_change_pattern): Likewise for param "insn".
988 (haifa_speculate_insn): Likewise.
989 (dump_new_block_header): Likewise for params "head", "tail".
990 (fix_jump_move): Likewise for param "jump".
991 (move_block_after_check): Likewise.
992 (sched_init_insn_luid): Likewise for param "insn".
993 (sched_init_luids): Likewise for local "insn".
994 (insn_luid): Likewise for param "insn".
995 (init_h_i_d): Likewise.
996 (haifa_init_h_i_d): Likewise for local "insn".
997 (haifa_init_insn): Likewise for param "insn".
998 * sched-deps.c (add_dependence): Likewise for local "real_pro",
999 "other".
1000 (create_insn_reg_use): Likewise for param "insn".
1001 (setup_insn_reg_uses): Likewise. Add a checked cast.
1002 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1003 "tail" from rtx to rtx_insn *.
1004 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1005 "insn", "next_tail".
1006
1007 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1008
1009 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1010 from rtx to rtx_insn *.
1011 (model_add_to_schedule): Likewise for locals "start", "end",
1012 "iter".
1013
1014 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1015
1016 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1017 rtx_insn *.
1018 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1019 "to" and locals "insn", "next", "copy". Remove now-redundant
1020 checked cast.
1021
1022 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1023
1024 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1025 rtx_insn * and param 4 from rtx * to rtx_insn **.
1026 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1027 param 2 from rtx * to rtx_insn **.
1028
1029 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1030 rtx_insn * and final param from rtx * to rtx_insn **.
1031
1032 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1033 from rtx to rtx_insn *.
1034 (try_head_merge_bb): Likewise for both locals named "move_upto".
1035 * df-problems.c (can_move_insns_across): Likewise for params
1036 "from", "to", "across_from", "across_to" and locals "insn",
1037 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1038 rtx_insn **.
1039 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1040 from rtx to rtx_insn *.
1041 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1042 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1043 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1044 rtx_insn *.
1045 (noce_try_abs): Likewise.
1046 (noce_get_condition): Likewise for param "jump". Strengthen param
1047 "earliest" from rtx * to rtx_insn **.
1048 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1049 rtx_insn *.
1050 (find_cond_trap): Likewise.
1051 (dead_or_predicable): Likewise for local "earliest".
1052 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1053 checked cast.
1054 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1055 and local "prev". Strengthen param "earliest" from rtx * to
1056 rtx_insn **.
1057 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1058 Strengthen param "earliest" from rtx * to rtx_insn **.
1059
1060 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1061
1062 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1063 "to" and local "insn" from rtx to rtx_insn *.
1064
1065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1066
1067 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1068 from rtx to rtx_insn *.
1069 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1070 (code_motion_path_driver): Likewise for local "last_insn".
1071 (simplify_changed_insns): Likewise for local "insn".
1072
1073 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1074
1075 * rtl.h (push_to_sequence): Strengthen param from rtx to
1076 rtx_insn *.
1077 (push_to_sequence2): Likewise for both params.
1078 (delete_insns_since): Likewise for param.
1079 (reorder_insns_nobb): Likewise for all three params.
1080 (set_new_first_and_last_insn): Likewise for both params.
1081
1082 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1083 rtx_insn *. Remove now-redundant cast.
1084 (set_last_insn): Likewise.
1085
1086 * builtins.c (expand_builtin_return): Strengthen local
1087 "call_fusage" from rtx to rtx_insn *.
1088 * cfgrtl.c (create_basic_block_structure): Likewise for local
1089 "after".
1090 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1091 "first", "last" and local "insn".
1092 (delete_insns_since): Likewise for param "from".
1093 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1094 and local "x".
1095 (push_to_sequence): Likewise for param "first" and local "last".
1096 (push_to_sequence2): Likewise for params "first" and "last".
1097 * lra.c (emit_add3_insn): Likewise for local "last".
1098 (lra_emit_add): Likewise.
1099 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1100 "last_insn".
1101 (process_address_1): Likewise for locals "insn", last".
1102 * modulo-sched.c (ps_first_note): Likewise for return type.
1103 * optabs.c (expand_binop_directly): Likewise for param "last".
1104
1105 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1106
1107 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1108 to rtx_insn*.
1109 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1110
1111 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1112
1113 * function.h (struct sequence_stack): Strengthen fields "first"
1114 and "last" from rtx to rtx_insn *.
1115 (struct emit_status): Likewise for fields "x_first_insn" and
1116 "x_last_insn".
1117
1118 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1119 (set_first_insn): Add checked cast.
1120 (get_last_insn): Remove now-redundant checked cast.
1121 (set_last_insn): Add checked cast.
1122
1123 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1124 "saved_first" and "saved_last" from rtx to rtx_insn *.
1125
1126 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1127
1128 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1129 (unlink_insn_chain): Strengthen both params from rtx to
1130 rtx_insn *.
1131
1132 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1133 variable.
1134 (unlink_insn_chain): Likewise for params "first" and "last".
1135 Remove now-redundant checked cast.
1136 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1137 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1138 rtx_insn *.
1139 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1140 params.
1141 (add_insn): Likewise for param "insn" and local "prev".
1142 (add_insn_after_nobb): Likewise for both params and local "next".
1143 (add_insn_before_nobb): Likewise for both params and local "prev".
1144 (add_insn_after): Rename param "after" to "uncast_after",
1145 introducing local "after" with another checked cast.
1146 (add_insn_before): Rename params "insn" and "before", giving them
1147 "uncast_" prefixes, adding the old names back using checked casts.
1148 (emit_note_after): Likewise for param "after".
1149 (emit_note_before): Likewise for param "before".
1150 (emit_label): Add a checked cast.
1151
1152 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1153
1154 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1155 "insn" from rtx to rtx_insn *.
1156
1157 * cselib.c (cselib_record_sets_hook): Likewise.
1158
1159 * var-tracking.c (add_with_sets): Likewise, renaming back from
1160 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1161 to rtx_insn *.
1162
1163 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1164
1165 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1166 and "header_" from rtx to rtx_insn *.
1167 (struct basic_block_d): Likewise for field "head_" within "x"
1168 field of union basic_block_il_dependent.
1169 (BB_HEAD): Drop function...
1170 (SET_BB_HEAD): ...and this function in favor of...
1171 (BB_HEAD): ...reinstate macro.
1172 (BB_END): Drop function...
1173 (SET_BB_END): ...and this function in favor of...
1174 (BB_END): ...reinstate macro.
1175 (BB_HEADER): Drop function...
1176 (SET_BB_HEADER): ...and this function in favor of...
1177 (BB_HEADER): ...reinstate macro.
1178
1179 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1180 (fix_crossing_unconditional_branches): Likewise.
1181 * caller-save.c (save_call_clobbered_regs): Likewise.
1182 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1183 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1184 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1185 (merge_blocks_move_successor_nojumps): Likewise.
1186 (outgoing_edges_match): Update use of for_each_rtx to
1187 for_each_rtx_in_insn.
1188 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1189 (expand_gimple_cond): Likewise.
1190 (expand_gimple_tailcall): Likewise.
1191 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1192 SET_BB_END.
1193 (construct_exit_block): Drop use of SET_BB_END.
1194 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1195 rtx_insn *.
1196 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1197 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1198 SET_BB_HEAD and SET_BB_END.
1199 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1200 SET_BB_END.
1201 (rtl_delete_block): Drop use of SET_BB_HEAD.
1202 (rtl_split_block): Drop use of SET_BB_END.
1203 (emit_nop_for_unique_locus_between): Likewise.
1204 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1205 (block_label): Drop use of SET_BB_HEAD.
1206 (fixup_abnormal_edges): Drop use of SET_BB_END.
1207 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1208 (relink_block_chain): Likewise.
1209 (fixup_reorder_chain): Drop use of SET_BB_END.
1210 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1211 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1212 rtx_insn **. Drop use of SET_BB_HEADER.
1213 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1214 SET_BB_HEAD.
1215 (BB_HEAD): Delete this function.
1216 (SET_BB_HEAD): Likewise.
1217 (BB_END): Likewise.
1218 (SET_BB_END): Likewise.
1219 (BB_HEADER): Likewise.
1220 (SET_BB_HEADER): Likewise.
1221 * emit-rtl.c (add_insn_after): Rename param "insn" to
1222 "uncast_insn", adding a new local "insn" and a checked cast to
1223 rtx_insn *. Drop use of SET_BB_END.
1224 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1225 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1226 (reorder_insns): Drop use of SET_BB_END.
1227 (emit_insn_after_1): Strengthen param "first" and locals "last",
1228 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1229 (emit_pattern_after_noloc): Add checked cast.
1230 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1231 (restore_other_notes): Likewise.
1232 (move_insn): Likewise.
1233 (sched_extend_bb): Likewise.
1234 (fix_jump_move): Likewise.
1235 * ifcvt.c (noce_process_if_block): Likewise.
1236 (dead_or_predicable): Likewise.
1237 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1238 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1239 * sel-sched-ir.c (sel_move_insn): Likewise.
1240 * sel-sched.c (move_nop_to_previous_block): Likewise.
1241
1242 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1243 SET_BB_END.
1244 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1245
1246 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1247
1248 * basic-block.h (create_basic_block_structure): Strengthen params
1249 1 "head" and 2 "end" from rtx to rtx_insn *.
1250 * cfgrtl.c (create_basic_block_structure): Likewise.
1251 (rtl_create_basic_block): Update casts from void * to rtx to
1252 rtx_insn *, so that we can pass them as rtx_insn * to
1253 create_basic_block_structure.
1254 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1255
1256 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1257
1258 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1259 rtx_insn **.
1260 (check_for_inc_dec): Strengthen param "insn" from rtx to
1261 rtx_insn *.
1262
1263 * cselib.h (cselib_process_insn): Likewise.
1264
1265 * cselib.c (cselib_record_sets): Likewise.
1266 (cselib_process_insn): Likewise.
1267
1268 * dse.c (struct insn_info): Likewise for field "insn".
1269 (check_for_inc_dec_1): Likewise for local "insn".
1270 (check_for_inc_dec): Likewise for param "insn".
1271 (scan_insn): Likewise.
1272 (dse_step1): Likewise for local "insn".
1273
1274 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1275 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1276
1277 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1278
1279 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1280 from rtx to rtx_insn *.
1281 (DEP_PRO): Delete this function and...
1282 (SET_DEP_PRO): ...this function in favor of...
1283 (DEP_PRO): ...reinstate this macro.
1284 (DEP_CON): Delete this function and...
1285 (SET_DEP_CON): ...this function in favor of...
1286 (DEP_CON): ...reinstate this old macro.
1287 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1288 (init_dep): Likewise.
1289 (set_priorities): Likewise for both params.
1290 (sd_copy_back_deps): Likewise for params 1 and 2.
1291
1292 * haifa-sched.c (priority): Likewise for param "insn" and local
1293 "next".
1294 (set_priorities): Likewise for params "head" and "tail" and local
1295 "insn".
1296 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1297 local "consumer".
1298 (add_to_speculative_block): Add a checked cast.
1299 (create_check_block_twin): Drop use of SET_DEP_CON.
1300 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1301 rtx to rtx_insn *.
1302
1303 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1304 Drop use of SET_DEP_PRO
1305 (init_dep): Strengthen params "pro" and "con" from rtx to
1306 rtx_insn *.
1307 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1308 use of SET_DEP_CON.
1309 (DEP_PRO): Delete.
1310 (DEP_CON): Delete.
1311 (SET_DEP_PRO): Delete.
1312 (SET_DEP_CON): Delete.
1313
1314 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1315
1316 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1317 from rtx to rtx_insn *.
1318 (VINSN_INSN_RTX): Eliminate rvalue function and...
1319 (SET_VINSN_INSN): ...lvalue function in favor of...
1320 (VINSN_INSN_RTX): reinstate this old macro.
1321
1322 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1323 in favor of VINSN_INSN_RTX.
1324 (VINSN_INSN_RTX): Delete this function.
1325 (SET_VINSN_INSN_RTX): Likewise.
1326
1327 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1328
1329 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1330 (BND_TO): Delete this function and...
1331 (SET_BND_TO): ...this functions in favor of...
1332 (BND_TO): ...reinstating this macro.
1333 (struct _fence): Strengthen field "executing_insns" from
1334 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1335 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1336 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1337 and param "insn" from rtx to insn_t.
1338 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1339 rtx_insn *.
1340
1341 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1342 vec<rtx_insn *> .
1343 (rtx_vec_t): Likewise.
1344 (struct sched_deps_info_def): Strengthen param of "start_insn"
1345 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1346 "note_mem_dep" callback and first param of "note_dep" callback.
1347
1348 * haifa-sched.c (add_to_speculative_block): Strengthen param
1349 "insn" from rtx to rtx_insn *.
1350 (clear_priorities): Likewise.
1351 (calc_priorities): Likewise for local "insn".
1352
1353 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1354 Remove redundant checked cast.
1355 (haifa_note_mem_dep): Likewise for param "pending_insn".
1356 (haifa_note_dep): Likewise for param "elem".
1357 (note_mem_dep): Likewise for param "e".
1358 (sched_analyze_1): Add checked casts.
1359 (sched_analyze_2): Likewise.
1360
1361 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1362 from rtx to rtx_insn *.
1363 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1364 from vec<rtx> * to vec<rtx_insn *> *.
1365
1366 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1367 scaffolding.
1368 (flist_add): Strengthen param "executing_insns" from
1369 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1370 (advance_deps_context): Remove now-redundant checked cast.
1371 (init_fences): Replace uses of NULL_RTX with NULL.
1372 (merge_fences): Strengthen params "last_scheduled_insn" and
1373 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1374 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1375 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1376 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1377 an instruction, rather than doing double-duty as a pattern.
1378 (return_nop_to_pool): Update for change of insn_t.
1379 (deps_init_id): Remove now-redundant checked cast.
1380 (struct sched_scan_info_def): Strengthen param of "init_insn"
1381 callback from rtx to insn_t.
1382 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1383 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1384 NULL.
1385 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1386 "end" from rtx to rtx_insn *.
1387 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1388 (rtx insn_rtx, bool force_unique_p)
1389 (BND_TO): Delete function.
1390 (SET_BND_TO): Delete function.
1391
1392 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1393 rtx to rtx_insn *.
1394 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1395 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1396 rtx to rtx_insn *.
1397 (undo_transformations): Likewise for param "insn".
1398 (update_liveness_on_insn): Likewise.
1399 (compute_live_below_insn): Likewise for param "insn" and local
1400 "succ".
1401 (update_data_sets): Likewise for param "insn".
1402 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1403 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1404 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1405 rtx_insn *.
1406 (move_cond_jump): Likewise for param "insn".
1407 (move_cond_jump): Drop use of SET_BND_TO.
1408 (compute_av_set_on_boundaries): Likewise.
1409 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1410 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1411 from rtx to rtx_insn *.
1412 (maybe_emit_renaming_copy): Likewise for param "insn".
1413 (maybe_emit_speculative_check): Likewise.
1414 (handle_emitting_transformations): Likewise.
1415 (remove_insn_from_stream): Likewise.
1416 (code_motion_process_successors): Strengthen local "succ" from rtx
1417 to insn_t.
1418
1419 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1420
1421 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1422 ilist_t, not _xlist_t;
1423 (ILIST_INSN): Define in terms of new union field "insn".
1424 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1425 _XLIST_NEXT.
1426 (struct _list_node): Add new field "insn" to the union, of type
1427 insn_t.
1428 (ilist_add): Replace macro with an inline function, requiring an
1429 insn_t.
1430 (ilist_remove): Define this macro directly in terms of
1431 _list_remove, rather than indirectly via _xlist_remove.
1432 (ilist_clear): Likewise, in terms of _list_clear rather than
1433 _xlist_clear.
1434 (ilist_is_in_p): Replace macro with an inline function, requiring
1435 an insn_t.
1436 (_list_iter_cond_insn): New function.
1437 (ilist_iter_remove): Define this macro directly in terms of
1438 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1439 (ilist_iterator): Define directly in terms of _list_iterator
1440 rather than indirectly through _xlist_iterator.
1441 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1442 than in terms of _FOR_EACH_X.
1443 (FOR_EACH_INSN_1): Likewise.
1444
1445 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1446
1447 PR target/60606
1448 PR target/61330
1449 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1450 DECL_HARD_REGISTER and return for invalid register specifications.
1451 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1452 DECL_HARD_REGISTER, call expand_one_error_var.
1453 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1454 CC_REGNUM with non-MODE_CC modes.
1455 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1456
1457 2014-08-26 Marek Polacek <polacek@redhat.com>
1458
1459 PR c/61271
1460 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1461
1462 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1463
1464 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1465 qi cost; add di cost.
1466 (cortexa57_addrcost_table): Likewise.
1467
1468 2014-08-26 Marek Polacek <polacek@redhat.com>
1469
1470 PR c/61271
1471 * expr.c (is_aligning_offset): Remove logical not.
1472
1473 2014-08-26 Marek Polacek <polacek@redhat.com>
1474
1475 PR c/61271
1476 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1477 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1478
1479 2014-08-26 Richard Biener <rguenther@suse.de>
1480
1481 PR tree-optimization/62175
1482 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1483 expand possibly trapping operations.
1484
1485 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1486
1487 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1488 "insn" from rtx to rtx_insn *.
1489 (permute_load): Likewise for param "insn".
1490 (permute_store): Likewise.
1491 (handle_special_swappables): Likewise for local "insn".
1492 (replace_swap_with_copy): Likewise for locals "insn" and
1493 "new_insn".
1494 (rs6000_analyze_swaps): Likewise for local "insn".
1495
1496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1497
1498 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1499 to rtx_insn *.
1500
1501 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1502
1503 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1504 "note_list" from rtx to rtx_insn *.
1505 (BB_NOTE_LIST): Replace this function and...
1506 (SET_BB_NOTE_LIST): ...this function with...
1507 (BB_NOTE_LIST): ...the former macro implementation.
1508
1509 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1510 local "from_start" from rtx to rtx_insn *. Strengthen param
1511 "to_endp" from rtx * to rtx_insn **.
1512
1513 * haifa-sched.c (concat_note_lists): Likewise.
1514 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1515 BB_NOTE_LIST.
1516 (sel_restore_notes): Likewise.
1517 (move_bb_info): Likewise.
1518 (BB_NOTE_LIST): Delete this function.
1519 (SET_BB_NOTE_LIST): Delete this function.
1520 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1521 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1522
1523 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1524
1525 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1526 from rtx * to rtx_insn **.
1527 (reorder2): Likewise.
1528 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1529 from rtx to rtx_insn *.
1530
1531 * doc/tm.texi: Update mechanically for above change to target.def.
1532
1533 * sched-int.h (note_list): Strengthen this variable from rtx to
1534 rtx_insn *.
1535 (remove_notes): Likewise for both params.
1536 (restore_other_notes): Likewise for return type and first param.
1537 (struct ready_list): Strengthen field "vec" from rtx * to
1538 rtx_insn **.
1539 (struct dep_replacement): Strenghten field "insn" from rtx to
1540 rtx_insn *.
1541 (struct deps_desc): Likewise for fields "last_debug_insn",
1542 "last_args_size".
1543 (struct haifa_sched_info): Likewise for callback field
1544 "can_schedule_ready_p"'s param, for first param of "new_ready"
1545 callback field, for both params of "rank" callback field, for
1546 first field of "print_insn" callback field (with a const), for
1547 both params of "contributes_to_priority" callback, for param
1548 of "insn_finishes_block_p" callback, for fields "prev_head",
1549 "next_tail", "head", "tail", for first param of "add_remove_insn"
1550 callback, for first param of "begin_schedule_ready" callback, for
1551 both params of "begin_move_insn" callback, and for second param
1552 of "advance_target_bb" callback.
1553 (add_dependence): Likewise for params 1 and 2.
1554 (sched_analyze): Likewise for params 2 and 3.
1555 (deps_analyze_insn): Likewise for param 2.
1556 (ready_element): Likewise for return type.
1557 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1558 (try_ready): Strenghten param from rtx to rtx_insn *.
1559 (sched_emit_insn): Likewise for return type.
1560 (record_delay_slot_pair): Likewise for params 1 and 2.
1561 (add_delay_dependencies): Likewise for param.
1562 (contributes_to_priority): Likewise for both params.
1563 (find_modifiable_mems): Likewise.
1564
1565 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1566 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1567 "first_older_only_insn" from rtx to rtx_insn *.
1568 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1569 rtx_insn **.
1570
1571 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1572 "last_scheduled_iter0" from rtx to rtx_insn *.
1573 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1574 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1575 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1576 "insn" from rtx to rtx_insn *.
1577 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1578 rtx_insn **.
1579 (c6x_sched_reorder2): Strengthen param "ready" and locals
1580 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1581 "insn" from rtx to rtx_insn *.
1582 (c6x_variable_issue): Add a checked cast when assigning from insn
1583 to ss.last_scheduled_iter0.
1584 (split_delayed_branch): Strengthen param "insn" and local "i1"
1585 from rtx to rtx_insn *.
1586 (split_delayed_nonbranch): Likewise.
1587 (undo_split_delayed_nonbranch): Likewise for local "insn".
1588 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1589 "entry_after", "end_packet", "head_insn", "tail_insn",
1590 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1591 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1592 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1593 but add a checked cast on loop->start_label. Consolidate calls to
1594 avoid assigning result of gen_spkernel to "insn", now an
1595 rtx_insn *.
1596
1597 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1598 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1599 rtx to rtx_insn *.
1600 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1601 rtx_insn **. Strengthen locals "top", "next" from rtx to
1602 rtx_insn *.
1603 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1604 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1605 (add_parameter_dependencies): Strengthen params "call", "head" and
1606 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1607 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1608 (add_dependee_for_func_arg): Likewise for param "arg" and local
1609 "insn".
1610 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1611 "tail" and locals "insn", "first_arg".
1612
1613 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1614 for params "head", "tail" and locals "insn", "next", "next_tail".
1615 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1616 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1617 "insn", "lowest", "highest" from rtx to rtx_insn *.
1618 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1619 rtx_insn **.
1620 (ia64_sched_reorder2): Likewise.
1621
1622 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1623 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1624 from rtx * to rtx_insn **.
1625 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1626 rtx_insn **.
1627 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1628 rtx_insn *.
1629 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1630 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1631 to rtx_insn *.
1632
1633 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1634 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1635 to rtx_insn *.
1636 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1637 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1638 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1639 rtx_insn **.
1640 (vr4130_reorder): Likewise.
1641 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1642 rtx to rtx_insn *.
1643 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1644 rtx_insn **.
1645 (mips_sched_reorder): Likewise.
1646 (mips_sched_reorder2): Likewise.
1647
1648 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1649
1650 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1651 Strengthen local "tmp" from rtx to rtx_insn *.
1652 (rs6000_sched_reorder2): Likewise.
1653
1654 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1655 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1656 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1657 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1658
1659 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1660 "tmp2" from rtx to rtx_insn *.
1661 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1662 Strengthen local "insn" from rtx to rtx_insn *.
1663 (ready_reorder): Strengthen param "ready" from rtx * to
1664 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1665 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1666 (sh_reorder2): Likewise.
1667
1668 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1669 local "insn" from rtx to rtx_insn *.
1670
1671 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1672 rtx_insn *.
1673 (scheduled_insns): Strengthen this variable from vec<rtx> to
1674 vec<rtx_insn *>.
1675 (set_modulo_params): Likewise for locals "i1", "i2".
1676 (record_delay_slot_pair): Likewise for params "i1", "i2".
1677 (add_delay_dependencies): Likewise for param "insn".
1678 (cond_clobbered_p): Likewise.
1679 (recompute_todo_spec): Likewise for local "prev".
1680 (last_scheduled_insn): Likewise for this variable.
1681 (nonscheduled_insns_begin): Likewise.
1682 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1683 rtx_insn **.
1684 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1685 rtx_insn *.
1686 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1687 Strengthen local "insn" from rtx to rtx_insn *.
1688 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1689 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1690 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1691 (ready_remove_first): Likewise for return type and local "t".
1692 (ready_element): Likewise for return type.
1693 (ready_remove): Likewise for return type and local "t".
1694 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1695 (check_clobbered_conditions): Strengthen local "x" from rtx to
1696 rtx_insn *, adding a checked cast.
1697 (schedule_insn): Likewise for param "insn".
1698 (remove_notes): Likewise for params "head", "tail" and locals
1699 "next_tail", "insn", "next".
1700 (struct haifa_saved_data): Likewise for fields
1701 "last_scheduled_insn", "nonscheduled_insns_begin".
1702 (save_backtrack_point): Update for change to field "vec" of
1703 struct ready_list.
1704 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1705 rtx_insn **.
1706 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1707 from rtx to rtx_insn *
1708 (resolve_dependencies): Strengthen param "insn" from rtx to
1709 rtx_insn *
1710 (restore_other_notes): Likewise for return type, for param "head"
1711 and local "note_head".
1712 (undo_all_replacements): Likewise for local "insn".
1713 (first_nonscheduled_insn): Likewise for return type and local "insn".
1714 (queue_to_ready): Likewise for local "insn", adding checked casts.
1715 (early_queue_to_ready): Likewise for local "insn".
1716 (debug_ready_list_1): Strengthen local "p" from rtx * to
1717 rtx_insn **.
1718 (move_insn): Strengthen param "insn" and local "note" from rtx to
1719 rtx_insn *
1720 (insn_finishes_cycle_p): Likewise for param "insn".
1721 (max_issue): Likewise for local "insn".
1722 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1723 to rtx_insn **.
1724 (commit_schedule): Strengthen param "prev_head" and local "insn"
1725 from rtx to rtx_insn *
1726 (prune_ready_list): Likewise for local "insn".
1727 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1728 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1729 (set_priorities): Likewise for local "prev_head".
1730 (try_ready): Likewise for param "next".
1731 (fix_tick_ready): Likewise.
1732 (change_queue_index): Likewise.
1733 (sched_extend_ready_list): Update for change to field "vec" of
1734 struct ready_list.
1735 (generate_recovery_code): Strengthen param "insn" from rtx to
1736 rtx_insn *.
1737 (begin_speculative_block): Likewise.
1738 (create_check_block_twin): Likewise for param "insn" and locals
1739 "label", "check", "twin". Introduce local "check_pat" to avoid
1740 "check" being used as a plain rtx before being used as an insn.
1741 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1742 extracting elements from ready_list.
1743 (sched_remove_insn): Strengthen param "insn" from rtx to
1744 rtx_insn *.
1745 (sched_emit_insn): Likewise for return type.
1746 (ready_remove_first_dispatch): Likewise for return type and local
1747 "insn".
1748
1749 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1750
1751 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1752 const rtx_insn *.
1753
1754 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1755 from rtx to rtx_insn *.
1756 (add_dependence_list): Likewise for param "insn". Add a checked
1757 cast.
1758 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1759 to rtx_insn *. Strengthen param "list_p" from rtx * to
1760 rtx_insn **.
1761 (chain_to_prev_insn): Strengthen param "insn" and locals
1762 "prec_nonnote", "i" from rtx to rtx_insn *.
1763 (flush_pending_lists): Likewise for param "insn".
1764 (cur_insn): Likewise for this variable.
1765 (haifa_start_insn): Add a checked cast.
1766 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1767 (sched_analyze_reg): Likewise for param "insn".
1768 (sched_analyze_1): Likewise.
1769 (sched_analyze_2): Likewise. Add checked casts.
1770 (sched_analyze_insn): Likewise. Also for local "prev".
1771 (deps_analyze_insn): Likewise for param "insn".
1772 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1773 (add_dependence_1): Likewise for params "insn", "elem".
1774 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1775 (parse_add_or_inc): Likewise for param "insn".
1776 (find_inc): Likewise for local "inc_cand".
1777 (find_modifiable_mems): Likewise for params "head", "tail" and
1778 locals "insn", "next_tail".
1779
1780 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1781 (begin_schedule_ready): Likewise for param "insn".
1782 (begin_move_insn): Likewise for params "insn" and "last".
1783 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1784 const rtx_insn *.
1785 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1786 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1787 (ebb_add_remove_insn): Likewise for param "insn".
1788 (advance_target_bb): Likewise.
1789
1790 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1791 "insn".
1792 (check_live): Likewise for param "insn".
1793 (init_ready_list): Likewise for local "insn".
1794 (can_schedule_ready_p): Likewise for param "insn".
1795 (begin_schedule_ready): Likewise.
1796 (new_ready): Likewise for param "next".
1797 (rgn_print_insn): Likewise for param "insn".
1798 (rgn_rank): Likewise for params "insn1", "insn2".
1799 (contributes_to_priority): Likewise for params "next", "insn".
1800 (rgn_insn_finishes_block_p): Likewise for param "insn".
1801 (add_branch_dependences): Likewise for params "head", "tail" and
1802 locals "insn", "last".
1803 (rgn_add_remove_insn): Likewise for param "insn".
1804 (advance_target_bb): Likewise.
1805
1806 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1807 const_rtx to const rtx_insn *.
1808
1809 * sel-sched-dump.h (sel_print_insn): Likewise.
1810
1811 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1812 (deps_init_id): Likewise.
1813
1814 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1815 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1816 rtx_insn **.
1817
1818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1819
1820 * output.h (final_start_function): Strengthen param 1 from rtx to
1821 rtx_insn *.
1822
1823 * final.c (final_start_function): Likewise, renaming back from
1824 "uncast_first" to "first", and dropping the checked cast from rtx
1825 to rtx_insn *.
1826
1827 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1828
1829 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1830 * final.c (final): Likewise. Rename param back from
1831 "uncast_first" to "first" and eliminate the checked cast from rtx
1832 to rtx_insn *.
1833
1834 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1835
1836 * output.h (shorten_branches): Strengthen param from rtx to
1837 rtx_insn *.
1838
1839 * final.c (shorten_branches): Likewise, renaming param back from
1840 "uncast_first" to "first", and dropping the checked cast from rtx
1841 to rtx_insn *.
1842
1843 * genattr.c (gen_attr): Likewise when writing out the prototype of
1844 shorten_branches.
1845
1846 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1847
1848 * sched-int.h (struct haifa_sched_info): Strengthen fields
1849 "prev_head" and "next_tail" from rtx to rtx_insn *.
1850
1851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1852
1853 * rtl.h (rtx_jump_table_data::get_labels): New method.
1854 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1855 with use of the new rtx_jump_table_data::get_labels method.
1856 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1857 to rtx_jump_table_data *. Simplify by using get_labels method.
1858 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1859 a dyn_cast, introducing local "table", using it to replace
1860 label-lookup logic with a get_labels method call.
1861 (patch_jump_insn): Simplify using get_labels method.
1862 * dwarf2cfi.c (create_trace_edges): Likewise.
1863 * rtlanal.c (label_is_jump_target_p): Likewise.
1864
1865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1866
1867 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1868 to rtx_insn *.
1869
1870 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1871 (unshare_all_rtl_again): Likewise, also for local "p".
1872
1873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1874
1875 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1876 to rtx_insn *.
1877 * cfgrtl.c (delete_insn_and_edges): Likewise.
1878
1879 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1880
1881 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1882 from rtx to rtx_insn *.
1883
1884 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1885
1886 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1887
1888 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1889 locals "returnjump", "epilogue_end", "insn", "next".
1890
1891 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1892 "returnjump" from rtx * to rtx_insn **.
1893 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1894
1895 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1896
1897 * basic-block.h (struct edge_def). Strengthen "r" within
1898 union edge_def_insns from rtx to rtx_insn *.
1899
1900 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1901 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1902 rtx_insn *.
1903 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1904 from rtx to rtx_insn *.
1905 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1906 rtx_insn *.
1907 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1908 (reg_used_on_edge): Likewise.
1909 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1910 (gt_pch_nx): New overload for rtx_insn *&.
1911 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1912 from rtx to rtx_insn *.
1913
1914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1915
1916 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1917 from rtx to rtx_insn *.
1918 (BB_FOOTER): Replace function with access macro.
1919 (SET_BB_FOOTER): Delete.
1920
1921 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1922 with BB_FOOTER.
1923 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1924 (emit_barrier_after_bb): Likewise.
1925 (record_effective_endpoints): Likewise.
1926 (relink_block_chain): Likewise.
1927 (fixup_fallthru_exit_predecessor): Likewise.
1928 (cfg_layout_duplicate_bb): Likewise.
1929 (cfg_layout_split_block): Likewise.
1930 (cfg_layout_delete_block): Likewise.
1931 (cfg_layout_merge_blocks): Likewise.
1932 (BB_FOOTER): Delete function.
1933 (SET_BB_FOOTER): Delete function.
1934 * combine.c (update_cfg_for_uncondjump): Replace uses of
1935 SET_BB_FOOTER with BB_FOOTER.
1936
1937 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1938
1939 * except.h (struct eh_landing_pad_d): Strengthen field
1940 "landing_pad" from rtx to rtx_code_label *.
1941
1942 * except.c (sjlj_emit_dispatch_table): Likewise for param
1943 "dispatch_label"
1944 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1945
1946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1947
1948 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1949 first param from rtx to rtx_insn *.
1950 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1951 field "set_frame_ptr_insn".
1952 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1953 "csend" from rtx to rtx_code_label *.
1954 (xtensa_expand_atomic): Likewise for local "csloop".
1955 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1956 rtx_insn *.
1957 (xtensa_call_tls_desc): Likewise for return type and locals
1958 "call_insn", "insns".
1959 (xtensa_legitimize_tls_address): Likewise for local "insns".
1960 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1961
1962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1963
1964 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1965 first param from rtx to rtx_insn *.
1966 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1967 "insn".
1968
1969 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1970
1971 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1972 Strengthen param 1 from rtx to rtx_insn *.
1973 (tilepro_output_cbranch): Likewise.
1974 (tilepro_adjust_insn_length): Likewise.
1975 (tilepro_final_prescan_insn): Likewise for sole param.
1976
1977 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1978 Likewise for local "last".
1979 (cbranch_predicted_p): Likewise for param "insn".
1980 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1981 (tilepro_output_cbranch_with_opcode): Likewise.
1982 (tilepro_output_cbranch): Likewise.
1983 (frame_emit_load): Likewise for return type and locals "seq",
1984 "insn".
1985 (emit_sp_adjust): Likewise for return type and local "insn".
1986 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1987 "insn".
1988 (tilepro_adjust_insn_length): Likewise for param "insn".
1989 (next_insn_to_bundle): Likewise for return type and params
1990 "r", "end".
1991 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1992 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1993 local "new_insns".
1994 (match_addli_pcrel): Likewise for param "insn".
1995 (replace_addli_pcrel): Likewise.
1996 (match_auli_pcrel): Likewise.
1997 (replace_auli_pcrel): Likewise.
1998 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1999 "next_insn".
2000 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2001 "queue", "next_queue", "prev".
2002 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2003 (tilepro_final_prescan_insn): Likewise for param "insn".
2004
2005 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2006
2007 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2008 Strengthen param 1 from rtx to rtx_insn *.
2009 (tilegx_output_cbranch): Likewise.
2010 (tilegx_adjust_insn_length): Likewise.
2011 (tilegx_final_prescan_insn): Likewise for sole param.
2012
2013 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2014 or local "last".
2015 (cbranch_predicted_p): Likewise for param "insn".
2016 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2017 (tilegx_output_cbranch_with_opcode): Likewise.
2018 (tilegx_output_cbranch): Likewise.
2019 (frame_emit_load): Likewise for return type.
2020 (set_frame_related_p): Likewise for locals "seq", "insn".
2021 (emit_sp_adjust): Likewise for return type, and for local "insn".
2022 Introduce local "pat" for use in place of "insn" where the latter
2023 isn't an instruction.
2024 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2025 from rtx to rtx_insn *.
2026 (tilegx_adjust_insn_length): Likewise for param "insn".
2027 (next_insn_to_bundle): Likewise for return type and params "r" and
2028 "end".
2029 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2030 "end".
2031 (replace_insns): Likewise for params "old_insn", "new_insns".
2032 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2033 "new_insns".
2034 (replace_mov_pcrel_step2): Likewise.
2035 (replace_mov_pcrel_step3): Likewise.
2036 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2037 "next_insn".
2038 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2039 "queue", "next_queue", "prev".
2040 (tilegx_output_mi_thunk): Likewise for local "insn".
2041 (tilegx_final_prescan_insn): Likewise for param "insn".
2042
2043 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2044
2045 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2046 rtx to rtx_insn *.
2047 (frame_emit_load): Likewise.
2048 (frame_emit_add_imm): Likewise, also for local "insn".
2049 (spu_expand_prologue): Likewise for local "insn".
2050 (struct spu_bb_info): Likewise for field "prop_jump".
2051 (emit_nop_for_insn): Likewise for param "insn" and local
2052 "new_insn".
2053 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2054 "hbr_insn".
2055 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2056 locals "hint", "insn".
2057 (get_branch_target): Likewise for param "branch".
2058 (insn_clobbers_hbr): Likewise for param "insn".
2059 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2060 locals "insn", "before_4", "before_16".
2061 (insert_hbrp): Likewise for local "insn".
2062 (spu_machine_dependent_reorg): Likewise for locals "branch",
2063 "insn", "next", "bbend".
2064 (uses_ls_unit): Likewise for param "insn".
2065 (get_pipe): Likewise.
2066 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2067 introducing a checked cast.
2068 (spu_sched_adjust_cost): Likewise for params "insn" and
2069 "dep_insn".
2070 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2071 (spu_sms_res_mii): Likewise.
2072
2073 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2074
2075 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2076 from rtx to rtx_insn *.
2077 (output_cbranch): Likewise for param 6.
2078 (output_return): Likewise for param 1.
2079 (output_sibcall): Likewise.
2080 (output_v8plus_shift): Likewise.
2081 (output_v8plus_mult): Likewise.
2082 (output_v9branch): Likewise for param 7.
2083 (output_cbcond): Likewise for param 3.
2084
2085 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2086 for local "insn".
2087 (sparc_legitimize_pic_address): Likewise.
2088 (sparc_emit_call_insn): Likewise.
2089 (emit_save_or_restore_regs): Likewise.
2090 (emit_window_save): Likewise for return type and local "insn".
2091 (sparc_expand_prologue): Likewise for local "insn".
2092 (sparc_flat_expand_prologue): Likewise.
2093 (output_return): Likewise for param "insn".
2094 (output_sibcall): Likewise for param "insn" and local "delay".
2095 (output_ubranch): Likewise for param "insn".
2096 (output_cbranch): Likewise.
2097 (output_cbcond): Likewise.
2098 (output_v9branch): Likewise.
2099 (output_v8plus_shift): Likewise.
2100 (sparc_output_mi_thunk): Likewise for local "insn".
2101 (get_some_local_dynamic_name): Likewise.
2102 (output_v8plus_mult): Likewise for param "insn".
2103
2104 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2105
2106 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2107 from rtx to rtx_insn *.
2108 (output_branchy_insn): Likewise for param 3.
2109 (output_far_jump): Likewise for param 1.
2110 (final_prescan_insn): Likewise.
2111 (sh_insn_length_adjustment): Likewise for sole param.
2112
2113 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2114 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2115 rtx_code_label *.
2116 (sh_emit_compare_and_set): Likewise for local "lab".
2117 (output_far_jump): Strengthen param "insn" and local "prev" from
2118 rtx to rtx_insn *.
2119 (output_branchy_insn): Likewise for param "insn" and local
2120 "next_insn".
2121 (output_ieee_ccmpeq): Likewise for param "insn".
2122 (struct label_ref_list_d): Strengthen field "label" from rtx to
2123 rtx_code_label *.
2124 (pool_node): Likewise.
2125 (pool_window_label): Likewise for this global.
2126 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2127 (dump_table): Strengthen params "start", "barrier" and local
2128 "scan" from rtx to rtx_insn *.
2129 (broken_move): Likewise for param "insn".
2130 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2131 Strengthen param "first_mova" from rtx * to rtx_insn **.
2132 (mova_p): Likewise for param "insn".
2133 (fixup_mova): Likewise for param "mova".
2134 (find_barrier): Likewise for return type, params "mova" and
2135 "from", and locals "barrier_before_mova", "found_barrier",
2136 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2137 "label" from rtx to rtx_code_label *.
2138 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2139 rtx to rtx_insn *.
2140 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2141 (split_branches): Likewise for param "first" and local "insn".
2142 (final_prescan_insn): Likewise for param "insn".
2143 (sequence_insn_p): Likewise for locals "prev", "next".
2144 (sh_insn_length_adjustment): Likewise for param "insn".
2145 (sh_can_redirect_branch): Likewise for local "insn".
2146 (find_r0_life_regions): Likewise for locals "end", "insn".
2147 (sh_output_mi_thunk): Likewise for local "insns".
2148
2149 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2150
2151 * config/score/score.c (score_output_mi_thunk): Strengthen local
2152 "insn" from rtx to rtx_insn *.
2153 (score_prologue): Likewise.
2154
2155 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2156
2157 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2158 1 from rtx to rtx_insn *.
2159 (s390_emit_jump): Likewise for return type.
2160 (s390_emit_call): Likewise.
2161 (s390_load_got): Likewise.
2162
2163 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2164 variable.
2165 (s390_match_ccmode): Likewise for param "insn".
2166 (s390_emit_jump): Likewise for return type.
2167 (s390_split_branches): Likewise for local "label".
2168 (struct constant): Strengthen field "label" from rtx to
2169 rtx_code_label *.
2170 (struct constant_pool): Likewise for field "label". Strengthen
2171 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2172 rtx_insn *.
2173 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2174 insns.
2175 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2176 (s390_end_pool): Likewise.
2177 (s390_dump_pool): Likewise for local "insn".
2178 (s390_mainpool_start): Likewise.
2179 (s390_chunkify_start): Likewise.
2180 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2181 with insns. Strengthen locals "label", "jump", "barrier", "next",
2182 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2183 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2184 rtx_insn *.
2185 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2186 "jump", "label", "next_insn".
2187 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2188 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2189 "tbegin_insn".
2190 (s390_load_got): Likewise for return type and local "insns".
2191 (s390_save_gprs_to_fprs): Likewise for local "insn".
2192 (s390_restore_gprs_from_fprs): Likewise.
2193 (pass_s390_early_mach::execute): Likewise.
2194 (s390_emit_prologue): Likewise for local "insns".
2195 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2196 rtx_code_label *.
2197 (s390_emit_call): Strengthen return type and local "insn" from
2198 rtx to rtx_insn *.
2199 (s390_emit_tpf_eh_return): Likewise for local "insn".
2200 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2201 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2202 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2203 local "cur_insn".
2204 (s390_non_addr_reg_read_p): Likewise for param "insn".
2205 (find_cond_jump): Likewise for return type and param "insn".
2206 (s390_swap_cmp): Likewise for param "insn".
2207 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2208 "prev_insn", "next_insn".
2209 (s390_reorg): Likewise for locals "insn", "target".
2210 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2211 (s390_sched_variable_issue): For now, rename param "insn" to
2212 "uncast_insn", introducing a checked cast.
2213 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2214 insn.
2215 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2216 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2217
2218 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2219
2220 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2221 param from rtx to rtx_insn *.
2222 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2223
2224 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2225
2226 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2227 4 from rtx to rtx_insn *.
2228 (rs6000_final_prescan_insn): Likewise for first param.
2229 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2230 local "insn".
2231 (rs6000_get_some_local_dynamic_name): Likewise.
2232 (output_cbranch): Likewise for param "insn".
2233 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2234 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2235 (rs6000_emit_allocate_stack): Likewise for local "insn".
2236 (load_cr_save): Likewise.
2237 (restore_saved_cr): Likewise.
2238 (restore_saved_lr): Likewise.
2239 (emit_cfa_restores): Likewise.
2240 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2241 "deleted_debug_label".
2242 (rs6000_output_mi_thunk): Likewise for local "insn".
2243 (rs6000_final_prescan_insn): Likewise for param "insn".
2244
2245 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2246
2247 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2248 Strengthen param "insn" from rtx to rtx_insn *.
2249 * config/picochip/picochip.c (picochip_current_prescan_insn):
2250 Likewise for this variable.
2251 (picochip_final_prescan_insn): Likewise for param "insn".
2252
2253 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2254
2255 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2256 from rtx to rtx_insn *.
2257 (pa_output_indirect_call): Likewise.
2258 (pa_adjust_insn_length): Likewise.
2259 (pa_attr_length_millicode_call): Likewise.
2260 (pa_attr_length_call): Likewise.
2261 (pa_attr_length_indirect_call): Likewise.
2262
2263 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2264 "insn".
2265 (pa_attr_length_millicode_call): Likewise.
2266 (pa_attr_length_call): Likewise.
2267 (pa_output_call): Likewise.
2268 (pa_attr_length_indirect_call): Likewise.
2269 (pa_output_indirect_call): Likewise.
2270
2271 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2272
2273 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2274 Strengthen first param from rtx to rtx_insn *.
2275 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2276 param "insn".
2277
2278 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2279
2280 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2281 type from rtx to rtx_insn *.
2282 (mips_expand_call): Likewise.
2283 (mips_adjust_insn_length): Likewise for first param.
2284 (mips_output_conditional_branch): Likewise.
2285 (mips_output_order_conditional_branch): Likewise.
2286 (mips_final_prescan_insn): Likewise.
2287
2288 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2289 rtx_insn * for the SEQUENCE case.
2290 (SEQ_END): Likewise.
2291 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2292 (mips_emit_call_insn): Likewise, also for local "insn".
2293 (mips16_gp_pseudo_reg): Likewise for local "scan".
2294 (mips16_build_call_stub): Likewise for return type and for local
2295 "insn". Introduce a new local "pattern" so that "insn" can indeed
2296 be an insn.
2297 (mips_expand_call): Strengthen return type and local "insn" from
2298 rtx to rtx_insn *.
2299 (mips_block_move_loop): Strengthen local "label" from rtx to
2300 rtx_code_label *.
2301 (mips_expand_synci_loop): Likewise for locals "label",
2302 "end_label".
2303 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2304 rtx_insn *.
2305 (mips16e_collect_argument_saves): Likewise for locals "insn",
2306 "next".
2307 (mips_find_gp_ref): Likewise for param of callback for "pred"
2308 param, and for local "insn".
2309 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2310 (mips_insn_has_flexible_gp_ref_p): Likewise.
2311 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2312 local "insn".
2313 (mips_epilogue_set_cfa): Likewise for local "insn".
2314 (mips_expand_epilogue): Likewise.
2315 (mips_adjust_insn_length): Likewise for param "insn".
2316 (mips_output_conditional_branch): Likewise.
2317 (mips_output_order_conditional_branch): Likewise.
2318 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2319 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2320 "falu2_turn_enabled_insn".
2321 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2322 "done_label" from rtx to rtx_code_label *.
2323 (struct mips16_constant): Likewise for field "label".
2324 (mips16_add_constant): Likewise for return type.
2325 (mips16_emit_constants_1): Strengthen return type and param "insn"
2326 from rtx to rtx_insn *.
2327 (mips16_emit_constants): Likewise for param "insn".
2328 (mips16_insn_length): Likewise.
2329 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2330 to rtx_code_label *.
2331 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2332 from rtx to rtx_insn *.
2333 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2334 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2335 (r10k_simplify_address): Strengthen param "insn" and local
2336 "def_insn" from rtx to rtx_insn *.
2337 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2338 rtx_insn *.
2339 (r10k_needs_protection_p_1): Update target type of cast of data
2340 from to rtx to rtx_insn *.
2341 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2342 rtx * to rtx_insn **.
2343 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2344 rtx_insn *.
2345 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2346 (mips_call_expr_from_insn): Likewise for param "insn".
2347 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2348 (mips_find_pic_call_symbol): Likewise for param "insn".
2349 (mips_annotate_pic_calls): Likewise for local "insn".
2350 (mips_sim_insn): Likewise for this variable.
2351 (struct mips_sim): Likewise for field "insn" within elements of
2352 last_set array.
2353 (mips_sim_wait_reg): Likewise for param "insn".
2354 (mips_sim_wait_regs): Likewise.
2355 (mips_sim_wait_units): Likewise.
2356 (mips_sim_wait_insn): Likewise.
2357 (mips_sim_issue_insn): Likewise.
2358 (mips_sim_finish_insn): Likewise.
2359 (mips_seq_time): Likewise for param "seq" and local "insn".
2360 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2361 locals "first", "second".
2362 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2363 "last", "last2", "next".
2364 (mips_avoid_hazard): Likewise for params "after", "insn".
2365 (mips_reorg_process_insns): Likewise for locals "insn",
2366 "last_insn", "subinsn", "next_insn".
2367 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2368 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2369 "jump_sequence".
2370 (mips_output_mi_thunk): Likewise for local "insn".
2371 (mips_final_prescan_insn): Likewise for param "insn".
2372
2373 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2374
2375 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2376 Strengthen return type and local "insns" from rtx to rtx_insn *.
2377 (microblaze_legitimize_tls_address): Likewise for local "insns".
2378 (microblaze_block_move_loop): Strengthen local "label" from rtx
2379 to rtx_code_label *.
2380 (microblaze_expand_prologue): Strengthen two locals named "insn"
2381 from rtx to rtx_insn *.
2382 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2383 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2384 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2385 to rtx_code_label *.
2386
2387 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2388
2389 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2390 param from rtx to rtx_insn *.
2391 (mep_reuse_lo): Likewise for third param.
2392 (mep_use_post_modify_p): Likewise for first param.
2393 (mep_core_address_length): Likewise.
2394 (mep_cop_address_length): Likewise.
2395 (mep_final_prescan_insn): Likewise.
2396 (mep_store_data_bypass_p): Likewise for both params.
2397 (mep_mul_hilo_bypass_p): Likewise.
2398 (mep_ipipe_ldc_p): Likewise for param.
2399
2400 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2401 (mep_rewrite_mult): Likewise.
2402 (mep_rewrite_mulsi3): Likewise.
2403 (mep_rewrite_maddsi3): Likewise.
2404 (mep_reuse_lo_p_1): Likewise.
2405 (mep_reuse_lo_p): Likewise.
2406 (mep_frame_expr): Likewise.
2407 (mep_make_parallel): Likewise for both params.
2408 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2409 local "insn".
2410 (mep_use_post_modify_p): Likewise for param "insn".
2411 (mep_core_address_length): Likewise.
2412 (mep_cop_address_length): Likewise.
2413 (mep_reg_set_in_function): Likewise for local "insn".
2414 (mep_asm_without_operands_p): Likewise.
2415 (F): Likewise for return type and param "x".
2416 (add_constant): Likewise for local "insn".
2417 (maybe_dead_move): Likewise for return type and local "insn".
2418 (mep_expand_prologue): Likewise for local "insn".
2419 (mep_final_prescan_insn): Likewise for param "insn".
2420 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2421 "next", "follow", "x".
2422 (mep_insert_repeat_label_last): Likewise for return type, param
2423 "last_insn", and locals "next", "prev". Strengthen param "label"
2424 from rtx to rtx_code_label *.
2425 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2426 rtx_insn *.
2427 (struct mep_doloop_end): Likewise for fields "insn" and
2428 "fallthrough".
2429 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2430 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2431 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2432 rtx_insn *.
2433 (mep_invert_branch): Likewise for params "insn" and "after".
2434 (mep_reorg_erepeat): Likewise for param "insns" and locals
2435 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2436 "l" from rtx to rtx_code_label *.
2437 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2438 from rtx to rtx_insn *.
2439 (mep_reorg_addcombine): Likewise for param "insns" and locals
2440 "i", "n".
2441 (add_sp_insn_p): Likewise for param "insn".
2442 (mep_reorg_noframe): Likewise for param "insns" and locals
2443 "start_frame_insn", "end_frame_insn", "next".
2444 (mep_reorg): Likewise for local "insns".
2445 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2446 cast.
2447 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2448 (mep_mul_hilo_bypass_p): Likewise.
2449 (mep_ipipe_ldc_p): Likewise for param "insn".
2450 (mep_make_bundle): Likewise for return type, param "cop" and local
2451 "insn", splitting out the latter into a new local "seq" for when it
2452 is a SEQUENCE rather than an insn.
2453 (core_insn_p): Likewise for param "insn".
2454 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2455 "last", "first", "note", "prev", "core_insn".
2456
2457 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2458
2459 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2460 rtx to rtx_insn *.
2461 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2462 (m68k_final_prescan_insn): Likewise for first param.
2463
2464 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2465 (m68k_set_frame_related): Likewise for param "insn".
2466 (output_btst): Likewise for param "insn".
2467 (m68k_final_prescan_insn): Likewise.
2468 (m68k_move_to_reg): Likewise for local "insn".
2469 (m68k_call_tls_get_addr): Likewise for local "insns".
2470 (m68k_call_m68k_read_tp): Likewise.
2471 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2472 (m68k_output_mi_thunk): Likewise for local "insn".
2473
2474 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2475
2476 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2477 first param from rtx to rtx_insn *.
2478 (iq2000_adjust_insn_length): Likewise.
2479 (iq2000_output_conditional_branch): Likewise.
2480 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2481 "insn" and local "nop_insn".
2482 (iq2000_annotate_frame_insn): Likewise for param "insn".
2483 (iq2000_expand_prologue): Likewise for both locals "insn".
2484 (iq2000_adjust_insn_length): Likewise for param "insn".
2485 (iq2000_output_conditional_branch): Likewise.
2486
2487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2488
2489 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2490 "insns" from rtx to rtx_insn *.
2491 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2492 (struct spill_fill_data): Likewise for field "init_after" and for
2493 elements of array field "prev_insn".
2494 (spill_restore_mem): Likewise for locals "insn", "first".
2495 (do_spill): Likewise for local "insn".
2496 (do_restore): Likewise.
2497 (ia64_expand_prologue): Likewise.
2498 (ia64_expand_epilogue): Likewise.
2499 (emit_insn_group_barriers): Likewise for locals "insn",
2500 "last_label".
2501 (emit_all_insn_group_barriers): Likewise for locals "insn",
2502 "last".
2503 (dfa_stop_insn): Likewise for this global.
2504 (dfa_pre_cycle_insn): Likewise.
2505 (ia64_nop): Likewise.
2506 (final_emit_insn_group_barriers): Likewise for locals "insn",
2507 "last".
2508 (emit_predicate_relation_info): Likewise for locals "head", "n",
2509 "insn", "b", "a".
2510 (ia64_reorg): Likewise for local "insn".
2511 (ia64_output_mi_thunk): Likewise.
2512 (expand_vec_perm_interleave_2): Likewise for local "seq".
2513
2514 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2515
2516 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2517 param 1 "insn" from rtx to rtx_insn *.
2518 (ix86_use_lea_for_mov): Likewise.
2519 (ix86_avoid_lea_for_addr): Likewise.
2520 (ix86_split_lea_for_addr): Likewise.
2521 (ix86_lea_for_add_ok): Likewise.
2522 (ix86_output_call_insn): Likewise.
2523
2524 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2525 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2526 (ix86_output_function_epilogue): Likewise for locals "insn",
2527 "deleted_debug_label".
2528 (legitimize_tls_address): Likewise for local "insn".
2529 (get_some_local_dynamic_name): Likewise.
2530 (increase_distance): Likewise for params "prev", "next".
2531 (distance_non_agu_define_in_bb): Likewise for params "insn",
2532 "start" and locals "prev", "next".
2533 (distance_non_agu_define): Likewise for param "insn".
2534 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2535 locals "next", "prev".
2536 (distance_agu_use): Likewise for param "insn".
2537 (ix86_lea_outperforms): Likewise.
2538 (ix86_ok_to_clobber_flags): Likewise.
2539 (ix86_avoid_lea_for_add): Likewise.
2540 (ix86_use_lea_for_mov): Likewise.
2541 (ix86_avoid_lea_for_addr): Likewise.
2542 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2543 (ix86_split_lea_for_addr): Likewise for param "insn".
2544 (ix86_lea_for_add_ok): Likewise for param "insn".
2545 (ix86_expand_carry_flag_compare): Likewise for local
2546 "compare_seq".
2547 (ix86_expand_int_movcc): Likewise.
2548 (ix86_output_call_insn): Likewise for param "insn".
2549 (ix86_output_call_insn): Likewise for local "i".
2550 (x86_output_mi_thunk): Introduce local "insn", using it in place
2551 of "tmp" when dealing with insns.
2552 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2553 "start".
2554 (ix86_pad_returns): Likewise for locals "ret", "prev".
2555 (ix86_count_insn_bb): Likewise for local "insn".
2556 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2557 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2558 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2559 (expand_vec_perm_interleave2): Likewise for local "seq".
2560 (expand_vec_perm_vperm2f128_vblend): Likewise.
2561 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2562 call to for_each_rtx with for_each_rtx_in_insn.
2563
2564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2565
2566 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2567 "label" from rtx to rtx_code_label *.
2568 (ix86_expand_prologue): Likewise.
2569 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2570 "varargs_label".
2571 (ix86_split_idivmod): Likewise for locals "end_label" and
2572 "qimode_label".
2573 (ix86_expand_branch): Likewise for local "label2".
2574 (ix86_expand_aligntest): Likewise for return type and local "label".
2575 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2576 "top_label".
2577 (expand_movmem_epilogue): Likewise for the various locals named
2578 "label".
2579 (expand_setmem_epilogue): Likewise.
2580 (expand_small_movmem_or_setmem): Likewise for local "label".
2581 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2582 Strengthen param "done_label" from rtx * to rtx_code_label **.
2583 Strengthen locals "loop_label" and "label" from rtx to
2584 rtx_code_label *.
2585 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2586 Likewise for locals "loop_label", "label".
2587 (ix86_expand_set_or_movmem): Likewise for locals "label",
2588 "jump_around_label", "hot_label".
2589 (ix86_expand_strlensi_unroll_1): Likewise for locals
2590 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2591 "end_2_label".
2592 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2593 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2594 "label2", "jump_label".
2595 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2596 local "label".
2597 (ix86_expand_lfloorceil): Likewise for local "label".
2598 (ix86_expand_rint): Likewise.
2599 (ix86_expand_floorceildf_32): Likewise.
2600 (ix86_expand_floorceil): Likewise.
2601 (ix86_expand_rounddf_32): Likewise.
2602 (ix86_expand_trunc): Likewise.
2603 (ix86_expand_truncdf_32): Likewise.
2604 (ix86_expand_round): Likewise.
2605
2606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2607
2608 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2609 first param from rtx to rtx_insn *.
2610 (h8300_insn_length_from_table): Likewise.
2611 * config/h8300/h8300.c (F): Likewise for return type and param
2612 "x".
2613 (Fpa): Add a checked cast to rtx_insn *.
2614 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2615 rtx_insn *.
2616 (final_prescan_insn): Likewise for param "insn".
2617 (h8300_binary_length): Likewise.
2618 (h8300_insn_length_from_table): Likewise.
2619
2620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2621
2622 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2623 Strengthen first param "insn" from rtx to rtx_insn *.
2624
2625 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2626 Likewise.
2627 (frame_insn): Likewise for return type. Introduce local "insn"
2628 for use in place of local "x" for use as an rtx_insn *.
2629 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2630 (epiphany_expand_prologue): Likewise for local "insn".
2631 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2632 * config/epiphany/resolve-sw-modes.c
2633 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2634 "seq".
2635
2636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2637
2638 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2639 param from rtx to rtx_insn *.
2640 (c6x_final_prescan_insn): Likewise for first param.
2641
2642 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2643 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2644 (c6x_expand_compare): Strengthen local "insns" from rtx to
2645 rtx_insn *.
2646 (c6x_get_unit_specifier): Likewise for param "insn".
2647 (c6x_print_unit_specifier_field): Likewise.
2648 (c6x_final_prescan_insn): Likewise.
2649 (emit_add_sp_const): Likewise for local "insn".
2650 (c6x_expand_prologue): Likewise.
2651
2652 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2653
2654 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2655 param 1 from rtx to rtx_insn *.
2656 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2657 the various locals named "insn".
2658 (expand_epilogue_reg_restore): Likewise.
2659 (frame_related_constant_load): Likewise.
2660 (add_to_reg): Likewise.
2661 (emit_link_insn): Likewise.
2662 (do_link): Likewise.
2663 (expand_interrupt_handler_prologue): Likewise.
2664 (branch_dest): Likewise for param "branch".
2665 (asm_conditional_branch): Likewise for param "insn".
2666 (gen_one_bundle): Likewise for elements of param "slot" and local
2667 "t".
2668 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2669 elements of local "slot".
2670 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2671 "queue", "next_queue", "prev".
2672 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2673 (add_sched_insns_for_speculation): Likewise for local "insn".
2674
2675 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2676
2677 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2678 from rtx to rtx_insn *.
2679 (output_movhi): Likewise.
2680 (output_movsisf): Likewise.
2681 (avr_out_tstsi): Likewise.
2682 (avr_out_tsthi): Likewise.
2683 (avr_out_tstpsi): Likewise.
2684 (avr_out_compare): Likewise.
2685 (avr_out_compare64): Likewise.
2686 (avr_out_movpsi): Likewise.
2687 (ashlqi3_out): Likewise.
2688 (ashlhi3_out): Likewise.
2689 (ashlsi3_out): Likewise.
2690 (ashrqi3_out): Likewise.
2691 (ashrhi3_out): Likewise.
2692 (ashrsi3_out): Likewise.
2693 (lshrqi3_out): Likewise.
2694 (lshrhi3_out): Likewise.
2695 (lshrsi3_out): Likewise.
2696 (avr_out_ashlpsi3): Likewise.
2697 (avr_out_ashrpsi3): Likewise.
2698 (avr_out_lshrpsi3): Likewise.
2699 (avr_out_fract): Likewise.
2700 (avr_out_sbxx_branch): Likewise.
2701 (avr_out_round): Likewise.
2702 (avr_out_xload): Likewise.
2703 (avr_out_movmem): Likewise.
2704 (adjust_insn_length): Likewise.
2705 (avr_out_lpm): Likewise.
2706 (reg_unused_after): Likewise.
2707 (_reg_unused_after): Likewise.
2708 (avr_jump_mode): Likewise for second param.
2709 (jump_over_one_insn): Likewise for first param.
2710 (avr_final_prescan_insn): Likewise.
2711 (out_shift_with_cnt): Likewise for second param.
2712
2713 * config/avr/avr.c (get_sequence_length): Likewise for param
2714 "insns" and local "insn".
2715 (emit_push_byte): Likewise for local "insn".
2716 (emit_push_sfr): Likewise.
2717 (avr_prologue_setup_frame): Likewise for locals "insn",
2718 "fp_plus_insns", "sp_plus_insns".
2719 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2720 "sp_plus_insns".
2721 (avr_jump_mode): Likewise for param "insn".
2722 (avr_final_prescan_insn): Likewise.
2723 (avr_find_unused_d_reg): Likewise.
2724 (avr_out_lpm_no_lpmx): Likewise.
2725 (avr_out_lpm): Likewise.
2726 (avr_out_xload): Likewise.
2727 (output_movqi): Likewise.
2728 (output_movhi): Likewise.
2729 (out_movqi_r_mr): Likewise.
2730 (out_movhi_r_mr): Likewise.
2731 (out_movsi_r_mr): Likewise.
2732 (out_movsi_mr_r): Likewise.
2733 (output_movsisf): Likewise.
2734 (avr_out_load_psi): Likewise.
2735 (avr_out_store_psi): Likewise.
2736 (avr_out_movpsi): Likewise.
2737 (out_movqi_mr_r): Likewise.
2738 (avr_out_movhi_mr_r_xmega): Likewise.
2739 (out_movhi_mr_r): Likewise.
2740 (compare_condition): Likewise for param "insn" and local "next".
2741 (compare_sign_p): Likewise for param "insn".
2742 (compare_diff_p): Likewise.
2743 (compare_eq_p): Likewise.
2744 (avr_out_compare): Likewise.
2745 (avr_out_compare64): Likewise.
2746 (avr_out_tsthi): Likewise.
2747 (avr_out_tstpsi): Likewise.
2748 (avr_out_tstsi): Likewise.
2749 (out_shift_with_cnt): Likewise.
2750 (ashlqi3_out): Likewise.
2751 (ashlhi3_out): Likewise.
2752 (avr_out_ashlpsi3): Likewise.
2753 (ashlsi3_out): Likewise.
2754 (ashrqi3_out): Likewise.
2755 (ashrhi3_out): Likewise.
2756 (avr_out_ashrpsi3): Likewise.
2757 (ashrsi3_out): Likewise.
2758 (lshrqi3_out): Likewise.
2759 (lshrhi3_out): Likewise.
2760 (avr_out_lshrpsi3): Likewise.
2761 (lshrsi3_out): Likewise.
2762 (avr_out_fract): Likewise.
2763 (avr_out_round): Likewise.
2764 (avr_adjust_insn_length): Likewise.
2765 (reg_unused_after): Likewise.
2766 (_reg_unused_after): Likewise.
2767 (avr_compare_pattern): Likewise.
2768 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2769 and locals "branch1", "branch2", "insn2", "jump".
2770 (avr_reorg): Likewise for local "insn".
2771 (avr_2word_insn_p): Likewise for param "insn".
2772 (jump_over_one_insn_p): Likewise.
2773 (avr_out_sbxx_branch): Likewise.
2774 (avr_out_movmem): Likewise.
2775
2776 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2777
2778 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2779 param from rtx to rtx_insn *.
2780 (thumb1_final_prescan_insn): Likewise.
2781 (thumb2_final_prescan_insn): Likewise.
2782
2783 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2784 rtx to rtx_insn *.
2785 (struct minipool_node): Likewise for field "insn".
2786 (dump_minipool): Likewise for param "scan".
2787 (create_fix_barrier): Likewise for local "from". Strengthen local
2788 "label" from rtx to rtx_code_label *.
2789 (push_minipool_barrier): Strengthen param "insn" from rtx to
2790 rtx_insn *.
2791 (push_minipool_fix): Likewise.
2792 (note_invalid_constants): Likewise.
2793 (thumb2_reorg): Likewise for local "insn".
2794 (arm_reorg): Likewise.
2795 (thumb2_final_prescan_insn): Likewise for param
2796 "insn" and local "first_insn".
2797 (arm_final_prescan_insn): Likewise for param "insn" and locals
2798 "start_insn", "this_insn".
2799 (arm_debugger_arg_offset): Likewise for param "insn".
2800 (thumb1_emit_multi_reg_push): Likewise for return type and local
2801 "insn".
2802 (thumb1_final_prescan_insn): Likewise for param "insn".
2803 (thumb_far_jump_used_p): Likewise for local "insn".
2804 (thumb1_expand_prologue): Likewise.
2805 (arm_expand_epilogue_apcs_frame): Likewise.
2806 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2807 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2808 from rtx to rtx_code_label *.
2809 (arm_split_atomic_op): Likewise for local "label".
2810 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2811
2812 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2813
2814 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2815 first param from rtx to rtx_insn *.
2816 (arc_verify_short): Likewise.
2817 (arc_short_long): Likewise.
2818 (arc_need_delay): Likewise.
2819
2820 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2821 "target_insn".
2822 (arc_ccfsm_advance): Likewise for param "insn" and locals
2823 "start_insn", "this_insn".
2824 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2825 (arc_ccfsm_post_advance): Likewise for param "insn".
2826 (arc_next_active_insn): Likewise for return type and param "insn".
2827 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2828 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2829 (output_short_suffix): Likewise for local "insn".
2830 (arc_final_prescan_insn): Likewise for param "insn". Remove
2831 now-redundant checked cast.
2832 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2833 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2834 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2835 for use where lc_set became an insn.
2836 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2837 rtx to rtx_insn *.
2838 (arc_get_insn_variants): Likewise for local "prev".
2839 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2840 "next".
2841 (arc_predicate_delay_insns): Likewise for local "insn".
2842 (arc_pad_return): Likewise for local "prev". For now, add a
2843 checked cast when extracting the insn from "final_sequence".
2844 (arc_short_long): Likewise for param "insn".
2845 (arc_need_delay): Likewise for param "insn" and local "next".
2846 (arc_label_align): Likewise for locals "prev", "next".
2847
2848 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2849
2850 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2851 "insn" from rtx to rtx_insn *.
2852 (alpha_gp_save_rtx): Likewise for local "seq".
2853 (alpha_instantiate_decls): Likewise for local "top".
2854 (get_some_local_dynamic_name): Likewise for local "insn".
2855 (alpha_does_function_need_gp): Likewise.
2856 (set_frame_related_p): Likewise for return type and for locals
2857 "seq" and "insn".
2858 (emit_frame_store_1): Likewise for local "insn".
2859 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2860 (alpha_end_function): Likewise for local "insn".
2861 (alpha_output_mi_thunk_osf): Likewise.
2862 (alphaev4_insn_pipe): Likewise for param "insn".
2863 (alphaev5_insn_pipe): Likewise.
2864 (alphaev4_next_group): Likewise for return type and param 1
2865 "insn".
2866 (alphaev5_next_group): Likewise.
2867 (alpha_align_insns_1): Likewise for return type and param 1 of
2868 callback param "next_group", and for locals "i", "next", "prev",
2869 "where", "where2", "insn".
2870
2871 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2872
2873 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2874 rather than modifying the stmt.
2875
2876 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2877
2878 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2879 cgraph_state conversion.
2880
2881 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2882
2883 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2884 Strengthen local "insns" from rtx to rtx_insn *.
2885 (aarch64_set_frame_expr): Likewise for local "insn".
2886 (aarch64_save_or_restore_fprs): Likewise.
2887 (aarch64_save_or_restore_callee_save_registers): Likewise.
2888 (aarch64_expand_prologue): Likewise.
2889 (aarch64_expand_epilogue): Likewise.
2890 (aarch64_output_mi_thunk): Likewise.
2891 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2892 "label2" from rtx to rtx_code_label *.
2893 (aarch64_split_atomic_op): Likewise for local "label".
2894
2895 2014-08-25 Martin Liska <mliska@suse.cz>
2896
2897 * cgraph.h (symtab_node):
2898 (bool needed_p (void)): created from decide_is_symbol_needed
2899 (bool referred_to_p (void)): created from referred_to_p
2900 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2901 * cgraph.h (cgraph_node):
2902 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2903 (void expand (void)): created from expand_function
2904 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2905 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2906 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2907 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2908 * cgraph.h (varpool_node):
2909 (static void add (tree decl): created from varpool_add_new_variable
2910 * cgraph.h (cgraph_edge):
2911 void remove (void);
2912 (void remove_caller (void)): created from cgraph_edge_remove_caller
2913 (void remove_callee (void)): created from cgraph_edge_remove_callee
2914 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2915 created from cgraph_set_call_stmt
2916 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2917 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2918 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2919 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2920 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2921 created from cgraph_speculative_call_info
2922 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2923 int freq_scale, bool update_original)): created from cgraph_clone_edge
2924 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2925 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2926 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2927 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2928 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2929 (static void rebuild_references (void)): created from cgraph_rebuild_references
2930 * cgraph.h (symbol_table):
2931 (create_reference): renamed from add_reference
2932 (maybe_create_reference): renamed from maybe_add_reference
2933 (void register_symbol (symtab_node *node)): new function
2934 (void clear_asm_symbols (void)): new function
2935 (void unregister (symtab_node *node)): new function
2936 (void release_symbol (cgraph_node *node, int uid)): new function
2937 (cgraph_node * allocate_cgraph_symbol (void)): new function
2938 (void initialize (void)): created from cgraph_init
2939 (symtab_node *first_symbol (void)):new function
2940 (asm_node *first_asm_symbol (void)):new function
2941 (symtab_node *first_defined_symbol (void)):new function
2942 (varpool_node *first_variable (void)):new function
2943 (varpool_node *next_variable (varpool_node *node)):new function
2944 (varpool_node *first_static_initializer (void)):new function
2945 (varpool_node *next_static_initializer (varpool_node *node)):new function
2946 (varpool_node *first_defined_variable (void)):new function
2947 (varpool_node *next_defined_variable (varpool_node *node)):new function
2948 (cgraph_node *first_defined_function (void)):new function
2949 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2950 (cgraph_node *first_function (void)):new function
2951 (cgraph_node *next_function (cgraph_node *node)):new function
2952 (cgraph_node *first_function_with_gimple_body (void)):new function
2953 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2954 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2955 created from symtab_remove_unreachable_nodes
2956 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2957 (void process_new_functions (void)): created from cgraph_process_new_functions
2958 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2959 (bool output_variables (void)): created from varpool_node::output_variables
2960 (void output_asm_statements (void)): created from output_asm_statements
2961 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2962 (void compile (void)): created from compile
2963 (void output_weakrefs (void)): created from output_weakrefs
2964 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2965 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2966 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2967 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2968 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2969 created from cgraph_next_function_with_gimple_body
2970 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2971 created from cgraph_remove_edge_removal_hook
2972 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2973 created from cgraph_add_node_removal_hook
2974 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2975 created from cgraph_remove_node_removal_hook
2976 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2977 created from varpool_add_node_removal_hook
2978 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2979 created from varpool_remove_node_removal_hook
2980 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2981 created from cgraph_add_function_insertion_hook
2982 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2983 created from cgraph_remove_function_insertion_hook
2984 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2985 created from varpool_add_variable_insertion_hook
2986 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2987 created from varpool_remove_variable_insertion_hook
2988 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2989 created from cgraph_add_edge_duplication_hook
2990 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2991 created from cgraph_remove_edge_duplication_hook
2992 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2993 created from cgraph_add_node_duplication_hook
2994 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2995 created from cgraph_remove_node_duplication_hook
2996 (void call_edge_removal_hooks (cgraph_edge *e)):
2997 created from cgraph_call_edge_removal_hooks
2998 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2999 created from call_function_insertion_hooks
3000 (void call_cgraph_removal_hooks (cgraph_node *node)):
3001 created from cgraph_call_node_removal_hooks
3002 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3003 created from cgraph_node::call_duplication_hooks
3004 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3005 created from cgraph_call_edge_duplication_hooks
3006 (void call_varpool_removal_hooks (varpool_node *node)):
3007 created from varpool_call_node_removal_hooks
3008 (void call_varpool_insertion_hooks (varpool_node *node)):
3009 created from varpool_call_variable_insertion_hooks
3010 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3011 created from insert_to_assembler_name_hash
3012 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3013 created from unlink_from_assembler_name_hash
3014 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3015 created from symtab_prevail_in_asm_name_hash
3016 (void symtab_initialize_asm_name_hash (void)):
3017 created from symtab_initialize_asm_name_hash
3018 (void change_decl_assembler_name (tree decl, tree name)):
3019 created from change_decl_assembler_name
3020 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3021 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3022 created from decl_assembler_name_hash
3023 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3024 created from decl_assembler_name_equal
3025 (static hashval_t hash_node_by_assembler_name (const void *p)):
3026 created from hash_node_by_assembler_name
3027 (static int eq_assembler_name (const void *p1, const void *p2)):
3028 created from eq_assembler_name
3029
3030 2014-08-25 Marek Polacek <polacek@redhat.com>
3031
3032 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3033
3034 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3035
3036 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3037 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3038 SWI1248_AVX512BW mode iterator.
3039
3040 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3041
3042 PR target/62111
3043 * config/sh/predicates.md (general_extend_operand): Disable
3044 TRUNCATE before reload completes.
3045
3046 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3047
3048 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3049
3050 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3051
3052 PR target/61996
3053 * config/sh/sh.opt (musermode): Allow negative form.
3054 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3055 targets that don't support it.
3056 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3057 Document -mno-usermode option.
3058
3059 2014-08-24 Kito Cheng <kito@0xlab.org>
3060
3061 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3062 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3063 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3064 * doc/tm.texi: Regenerate.
3065
3066 2014-08-24 Kito Cheng <kito@0xlab.org>
3067
3068 * ira.c: Fix typo in comment.
3069
3070 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3071
3072 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3073 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3074
3075 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3076
3077 PR target/62038
3078 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3079 last_address when the current function is a thunk.
3080 (pa_asm_output_mi_thunk): When we don't have named sections or they
3081 are not being used, check that thunk can reach the stub table with a
3082 short branch.
3083
3084 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3085
3086 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3087 rtx_insn *.
3088 (pass_web::execute): Likewise for local "insn".
3089
3090 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3091
3092 * var-tracking.c (struct micro_operation_def): Strengthen field
3093 "insn" from rtx to rtx_insn *.
3094 (struct emit_note_data_def): Likewise.
3095 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3096 (vt_stack_adjustments): Likewise for local "insn".
3097 (adjust_insn): Likewise for param "insn".
3098 (val_store): Likewise.
3099 (val_resolve): Likewise.
3100 (struct count_use_info): Likewise for field "insn".
3101 (log_op_type): Likewise for param "insn".
3102 (reverse_op): Likewise.
3103 (prepare_call_arguments): Likewise.
3104 (add_with_sets): The initial param takes an insn, but we can't
3105 yet strengthen it from rtx to rtx_insn * since it's used as a
3106 cselib_record_sets_hook callback. For now rename initial param
3107 from "insn" to "uncast_insn", and introduce a local "insn" of
3108 the stronger rtx_insn * type, with a checked cast.
3109 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3110 rtx_insn *.
3111 (emit_note_insn_var_location): Likewise.
3112 (emit_notes_for_changes): Likewise.
3113 (emit_notes_for_differences): Likewise.
3114 (next_non_note_insn_var_location): Likewise for return type and
3115 for param "insn".
3116 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3117 (vt_initialize): Likewise for local "insn".
3118 (delete_debug_insns): Likewise for locals "insn" and "next".
3119
3120 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3121
3122 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3123 rtx_insn *.
3124 (mark_constant_pool): Likewise for local "insn".
3125
3126 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3127
3128 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3129 rtx to rtx_insn *.
3130 (dead_debug_promote_uses): Likewise.
3131 (dead_debug_insert_temp): Likewise.
3132
3133 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3134
3135 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3136 from const_rtx to const rtx_insn *.
3137 (store_killed_after): Likewise. Strengthen locals "last", "act"
3138 from rtx to rtx_insn *.
3139 (store_killed_before): Strengthen param "insn" from const_rtx to
3140 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3141 (find_moveable_store): Strengthen param "insn" from rtx to
3142 rtx_insn *.
3143 (compute_store_table): Likewise for local "insn".
3144 (insert_insn_start_basic_block): Likewise for param "insn" and
3145 locals "prev", "before", "insn".
3146 (insert_store): For now, add a checked cast to rtx_insn * on the
3147 result of gen_move_insn.
3148 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3149 to rtx_insn *.
3150 (replace_store_insn): Likewise. For now, add a checked cast to
3151 rtx_insn * on the result of gen_move_insn.
3152
3153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3154
3155 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3156 rtx_insn *.
3157 (expand_sjlj_dispatch_table): Likewise.
3158
3159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3160
3161 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3162 "insn" from rtx to rtx_insn *.
3163
3164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3165
3166 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3167 "insn" from rtx to rtx_insn *.
3168 (dup_block_and_redirect): Likewise for param 3 "before".
3169
3170 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3171 from rtx to rtx_insn *.
3172 (move_insn_for_shrink_wrap): Likewise.
3173 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3174 (dup_block_and_redirect): Likewise for param "before" and local
3175 "insn".
3176 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3177 "end".
3178 (convert_to_simple_return): Likewise for local "start".
3179
3180 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3181 Strengthen local "insn" from rtx to rtx_insn *, for use when
3182 invoking requires_stack_frame_p.
3183
3184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3185
3186 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3187 rtx_insn *.
3188 (speculate_expr): Likewise for locals "orig_insn_rtx",
3189 "spec_insn_rtx".
3190 (eq_transformed_insns): Likewise for locals "i1", "i2".
3191 (check_for_new_jump): Likewise for return type and local "end".
3192 (find_new_jump): Likewise for return type and local "jump".
3193 (sel_split_edge): Likewise for local "jump".
3194 (sel_create_recovery_block): Likewise.
3195 (sel_redirect_edge_and_branch_force): Likewise.
3196 (sel_redirect_edge_and_branch): Likewise.
3197
3198 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3199
3200 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3201 "new_insn" from rtx to rtx_insn *.
3202 (create_insn_rtx_with_rhs): Likewise for return type and for local
3203 "insn_rtx".
3204 (create_insn_rtx_with_lhs): Likewise.
3205 (create_speculation_check): Likewise for local "insn_rtx".
3206 (implicit_clobber_conflict_p): Likewise for local "insn".
3207 (get_expr_cost): Likewise.
3208 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3209 (move_cond_jump): Likewise for locals "next", "prev", "link",
3210 "head", "from", "to".
3211
3212 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3213
3214 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3215 "next" from rtx to rtx_insn *.
3216 (find_conditional_protection): Likewise for local "next".
3217 (is_conditionally_protected): Likewise for local "insn1".
3218 (is_pfree): Likewise for locals "insn1", "insn2".
3219
3220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3221
3222 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3223 from rtx to rtx_insn *.
3224
3225 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3226 locals "insn1", "insn2" from rtx to rtx_insn *.
3227 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3228 locals "insn", "prev", "last_jump", "next_tail".
3229 (schedule_ebb): Likewise for params "head", "tail".
3230 (schedule_ebbs): Likewise for locals "tail", "head".
3231
3232 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3233 to rtx_insn on "last_insn" in one of the invocations of
3234 schedule_ebb.
3235
3236 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3237
3238 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3239 "elem", "insn" from rtx to rtx_insn *.
3240 (change_spec_dep_to_hard): Likewise.
3241 (get_back_and_forw_lists): Likewise for local "con".
3242 (sd_add_dep): Likewise for locals "elem", "insn".
3243 (sd_resolve_dep): Likewise for locals "pro", "con".
3244 (sd_unresolve_dep): Likewise.
3245 (sd_delete_dep): Likewise.
3246 (chain_to_prev_insn): Likewise for local "pro".
3247 (find_inc): Likewise for locals "pro", "con".
3248
3249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3250
3251 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3252 to rtx_insn *.
3253 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3254 const rtx_insn *.
3255 (modified_between_p): Strengthen local "insn" from rtx to
3256 rtx_insn *.
3257 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3258 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3259 const rtx_insn *.
3260
3261 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3262
3263 * resource.c (next_insn_no_annul): Strengthen local "next" from
3264 rtx to rtx_insn *.
3265 (mark_referenced_resources): Likewise for local "insn".
3266
3267 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3268
3269 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3270 to rtx_insn *.
3271 (find_reloads): Likewise for param 1.
3272 (subst_reloads): Likewise for sole param.
3273 (find_equiv_reg): Likwise for param 2.
3274 (regno_clobbered_p): Likwise for param 2.
3275 (reload): Likewise for param 1.
3276
3277 * caller-save.c (save_call_clobbered_regs): Strengthen local
3278 "insn" from rtx to rtx_insn *.
3279 (insert_one_insn): Likewise for local "insn".
3280
3281 * reload.c (this_insn): Likewise for this global.
3282 (find_reloads): Likewise for param "insn".
3283 (find_reloads_toplev): Likewise.
3284 (find_reloads_address): Likewise.
3285 (subst_reg_equivs): Likewise.
3286 (update_auto_inc_notes): Likewise.
3287 (find_reloads_address_1): Likewise.
3288 (find_reloads_subreg_address): Likewise.
3289 (subst_reloads): Likewise.
3290 (find_equiv_reg): Likewise, also for local "p".
3291 (regno_clobbered_p): Likewise for param "insn".
3292
3293 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3294 array.
3295 (spill_reg_store): Likewise for the elements of this array.
3296 (remove_init_insns): Likewise for local "equiv_insn".
3297 (will_delete_init_insn_p): Likewise for param "insn".
3298 (reload): Likewise for param ""first" and local "insn".
3299 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3300 rtx_insn *.
3301 (calculate_elim_costs_all_insns): Likewise.
3302 (delete_caller_save_insns): Likewise.
3303 (spill_failure): Likewise for param "insn".
3304 (delete_dead_insn): Likewise.
3305 (set_label_offsets): Likewise.
3306 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3307 "prev_insn".
3308 (elimination_costs_in_insn): Likewise for param "insn".
3309 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3310 when referring to an insn.
3311 (set_initial_label_offsets): Likewise.
3312 (set_offsets_for_label): Strengthen param "insn" from rtx to
3313 rtx_insn *.
3314 (init_eliminable_invariants): Likewise for param "first" and local
3315 "insn".
3316 (fixup_eh_region_note): Likewise for param "insn".
3317 (reload_as_needed): Likewise for locals "prev", "insn",
3318 "old_next", "old_prev", "next".
3319 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3320 "last".
3321 (reload_inheritance_insn): Strengthen elements of this array from
3322 rtx to rtx_insn *.
3323 (failed_reload): Likewise for param "insn".
3324 (choose_reload_regs): Likewise for local "insn". Replace use of
3325 NULL_RTX with NULL when referring to an insn.
3326 (input_reload_insns): Strengthen elements of this array from rtx
3327 to rtx_insn *.
3328 (other_input_address_reload_insns): Likewise for this global.
3329 (other_input_reload_insns): Likewise for this global.
3330 (input_address_reload_insns): Likwise for the elements of this
3331 array.
3332 (inpaddr_address_reload_insns): Likwise for the elements of this
3333 array.
3334 (output_reload_insns): Likewise for the elements of this array.
3335 (output_address_reload_insns): Likewise for the elements of this
3336 array.
3337 (outaddr_address_reload_insns): Likewise for the elements of this
3338 array.
3339 (operand_reload_insns): Likewise for this global.
3340 (other_operand_reload_insns): Likewise for this global.
3341 (other_output_reload_insns): Likewise for the elements of this
3342 array.
3343 (new_spill_reg_store): Likewise for the elements of this
3344 array.
3345 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3346 Strengthen local "where" from rtx * to rtx_insn **.
3347 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3348 from rtx to rtx_insn *.
3349 (do_input_reload): Likewise for local "insn".
3350 (do_output_reload): Likewise for local "insn".
3351 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3352 (emit_insn_if_valid_for_reload): Likewise for return type and local
3353 "last". Add checked cast to rtx_insn when returning "insn" since
3354 this has been through emit_insn.
3355 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3356 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3357 returning "insn" since it's been through
3358 emit_insn_if_valid_for_reload at this point.
3359 (delete_output_reload): Strengthen param "insn" and locals
3360 "output_reload_insn", "i2" from rtx to rtx_insn *.
3361 (delete_address_reloads): Likewise for params "dead_insn",
3362 "current_insn" and locals "prev", "next".
3363 (delete_address_reloads_1): Likewise for params "dead_insn",
3364 "current_insn" and locals "prev", "i2".
3365 (inc_for_reload): Likewise for locals "last", "add_insn".
3366 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3367 rtx_insn *.
3368
3369 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3370 param of this duplicate of the prototype from reload.h
3371
3372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3373
3374 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3375 rtx to rtx_insn *.
3376 (regstat_bb_compute_calls_crossed): Likewise.
3377
3378 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3379
3380 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3381 to rtx_insn *.
3382 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3383 with an insn.
3384 (regrename_analyze): Strengthen local "insn" from rtx to
3385 rtx_insn *.
3386 (scan_rtx_reg): Likewise for param "insn".
3387 (scan_rtx_address): Likewise.
3388 (scan_rtx): Likewise.
3389 (restore_operands): Likewise.
3390 (record_out_operands): Likewise.
3391 (build_def_use): Likewise for local "insn". Replace use of
3392 NULL_RTX with NULL when dealing with an insn.
3393
3394 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3395
3396 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3397 * reginfo.c (reg_scan): Likewise, also for local "insn".
3398 (reg_scan_mark_refs): Likewise for param "insn".
3399 (init_subregs_of_mode): Likewise for local "insn".
3400
3401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3402
3403 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3404 "insn" from rtx to rtx_insn *.
3405 (replace_oldest_value_reg): Likewise for param "insn".
3406 (replace_oldest_value_addr): Likewise.
3407 (replace_oldest_value_mem): Likewise.
3408 (apply_debug_insn_changes): Likewise for local "last_insn".
3409 (copyprop_hardreg_forward_1): Likewise for local "insn".
3410
3411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3412
3413 * reg-stack.c (next_flags_user): Strengthen return type and param
3414 "insn" from rtx to rtx_insn *.
3415 (straighten_stack): Likewise for param "insn".
3416 (check_asm_stack_operands): Likewise.
3417 (remove_regno_note): Likewise.
3418 (emit_pop_insn): Likewise for return type, param "insn", local
3419 "pop_insn".
3420 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3421 "limit" from rtx to rtx_insn *.
3422 (swap_to_top): Likewise for param "insn".
3423 (move_for_stack_reg): Likewise.
3424 (move_nan_for_stack_reg): Likewise.
3425 (swap_rtx_condition): Likewise.
3426 (compare_for_stack_reg): Likewise.
3427 (subst_all_stack_regs_in_debug_insn): Likewise.
3428 (subst_stack_regs_pat): Likewise, and local "insn2".
3429 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3430 rtx_insn *.
3431 (subst_stack_regs): Likewise.
3432 (change_stack): Likewise.
3433 (convert_regs_1): Likewise for locals "insn", "next".
3434
3435 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3436
3437 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3438 rtx_insn *.
3439 (combine_set_extension): Likewise for param "curr_insn".
3440 (transform_ifelse): Likewise for param "def_insn".
3441 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3442 from vec<rtx> * to vec<rtx_insn *> *.
3443 (is_cond_copy_insn): Likewise for param "insn".
3444 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3445 to vec<rtx_insn *>.
3446 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3447 local "def_insn" from rtx to rtx_insn *.
3448 (get_sub_rtx): Likewise for param "def_insn".
3449 (merge_def_and_ext): Likewise.
3450 (combine_reaching_defs): Likewise.
3451 (add_removable_extension): Likewise for param "insn".
3452 (find_removable_extensions): Likewise for local "insn".
3453 (find_and_remove_re): Likewise for locals "curr_insn" and
3454 "def_insn". Strengthen locals "reinsn_del_list" and
3455 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3456
3457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3458
3459 * recog.c (split_insn): Strengthen param "insn" and locals
3460 "first", "last" from rtx to rtx_insn *.
3461 (split_all_insns): Likewise for locals "insn", "next".
3462 (split_all_insns_noflow): Likewise.
3463
3464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3465
3466 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3467 const rtx_insn *.
3468 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3469 (debug_rtx_find): Likewise for param 1 "x".
3470
3471 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3472 const_rtx to const rtx_insn *. Likewise for local "insn".
3473 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3474 (debug_rtx_find): Likewise for param 1 "x".
3475 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3476 from const_rtx to const rtx_insn * within the appropriate cases of
3477 the switch statement.
3478
3479 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3480 Strengthen local "insns" from rtx to rtx_insn * since this is
3481 passed to a call to debug_rtx_list.
3482
3483 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3484
3485 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3486 to rtx_insn *.
3487
3488 * function.c (stack_protect_epilogue): Add checked cast to
3489 rtx_insn for now when invoking predict_insn_def.
3490
3491 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3492 rtx_insn *.
3493 (predict_insn_def): Likewise.
3494 (rtl_predict_edge): Likewise for local "last_insn".
3495 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3496 const rtx_insn *.
3497 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3498 to rtx_insn *.
3499 (bb_estimate_probability_locally): Likewise for local "last_insn".
3500 (expensive_function_p): Likewise for local "insn".
3501
3502 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3503 local "jmp", since this is used when invoking predict_insn_def.
3504
3505 2014-08-22 Marek Polacek <polacek@redhat.com>
3506
3507 PR c++/62199
3508 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3509
3510 2014-08-22 Marek Polacek <polacek@redhat.com>
3511
3512 PR c/61271
3513 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3514 a comparison in parens.
3515 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3516 in parens.
3517
3518 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3519
3520 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3521 rtx_insn *.
3522
3523 * cprop.c (fis_get_condition): Likewise.
3524
3525 * postreload.c (reload_cse_regs): Likewise for param "first".
3526 (reload_cse_simplify): Likewise for param "insn".
3527 (reload_cse_regs_1): Likewise for local "insn".
3528 (reload_cse_simplify_set): Likewise for param "insn".
3529 (reload_cse_simplify_operands): Likewise.
3530 (struct reg_use): Likewise for field "insn".
3531 (reload_combine_purge_insn_uses): Likewise for param "insn".
3532 (fixup_debug_insns): Likewise for params "from", "to" and local
3533 "insn".
3534 (try_replace_in_use): Likewise for local "use_insn".
3535 (reload_combine_recognize_const_pattern): Likewise for param
3536 "insn" and locals "add_moved_after_insn", "use_insn".
3537 (reload_combine_recognize_pattern): Likewise for param "insn" and
3538 local "prev".
3539 (reload_combine): Likewise for locals "insn", "prev".
3540 (reload_combine_note_use): Likewise for param "insn".
3541 (move2add_use_add2_insn): Likewise.
3542 (move2add_use_add3_insn): Likewise.
3543 (reload_cse_move2add): Likewise, also for local "next".
3544 (move2add_note_store): Likewise for local "insn".
3545
3546 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3547
3548 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3549 rtx to rtx_insn *.
3550 (struct unoccr): Likewise.
3551 (struct modifies_mem): Likewise.
3552 (alloc_mem): Likewise for local "insn".
3553 (insert_expr_in_table): Likewise for param "insn".
3554 (dump_expr_hash_table_entry): Likewise for local "insn".
3555 (oprs_unchanged_p): Likewise for param "insn".
3556 (load_killed_in_block_p): Likewise for local "setter".
3557 (record_last_reg_set_info): Likewise for param "insn".
3558 (record_last_reg_set_info_regno): Likewise.
3559 (record_last_mem_set_info): Likewise.
3560 (record_last_set_info): Likewise for local "last_set_insn".
3561 (record_opr_changes): Likewise for param "insn".
3562 (hash_scan_set): Likewise.
3563 (compute_hash_table): Likewise for local "insn".
3564 (get_avail_load_store_reg): Likewise for param "insn".
3565 (eliminate_partially_redundant_load): Likewise, also for locals
3566 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3567 RTX for insns.
3568 (eliminate_partially_redundant_loads): Likewise for local "insn".
3569
3570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3571
3572 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3573 rtx to rtx_insn *.
3574 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3575 (expand_twoval_unop): Likewise for locals entry_last", "last".
3576 (expand_twoval_binop): Likewise.
3577 (expand_twoval_binop_libfunc): Likewise for local "insns".
3578 (widen_leading): Likewise for local "last".
3579 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3580 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3581 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3582 (expand_parity): Likewise for locals "last" and "seq".
3583 (expand_ffs): Likewise for local "seq". Strengthen local
3584 "nonzero_label" from rtx to rtx_code_label *.
3585 (expand_absneg_bit): Strengthen local "insns" from rtx to
3586 rtx_insn *.
3587 (expand_unop_direct): Likewise for local "last".
3588 (expand_unop): Likewise for locals "last", "insns".
3589 (expand_abs_nojump): Likewise for local "last".
3590 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3591 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3592 rtx_insn *.
3593 (expand_copysign_absneg): Strengthen local "label" from rtx to
3594 rtx_code_label *.
3595 (expand_copysign_bit): Strengthen local "insns" from rtx to
3596 rtx_insn *.
3597 (struct no_conflict_data): Likewise for fields "first", "insn".
3598 (emit_libcall_block_1): Likewise for param "insns" and locals
3599 "next", "last", "insn".
3600 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3601 on "insns" when invoking emit_libcall_block_1. Ultimately we
3602 want to strengthen insns itself.
3603 (prepare_cmp_insn): Strengthen local "last" from rtx to
3604 rtx_insn *.
3605 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3606 (prepare_float_lib_cmp): Likewise for local "insns".
3607 (emit_conditional_move): Likewise for local "last".
3608 (emit_conditional_add): Likewise.
3609 (have_sub2_insn): Likewise for local "seq".
3610 (expand_float): Likewise for local "insns". Strengthen locals
3611 "label", "neglabel" from rtx to rtx_code_label *.
3612 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3613 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3614 (expand_fixed_convert): Likewise for local "insns" (to
3615 rtx_insn *).
3616 (expand_sfix_optab): Likewise for local "last".
3617 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3618 to rtx_code_label *.
3619 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3620 from rtx to rtx_insn *.
3621 (expand_atomic_fetch_op): Likewise for local "insn".
3622 (maybe_legitimize_operand_same_code): Likewise for local "last".
3623 (maybe_legitimize_operands): Likewise.
3624
3625 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3626
3627 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3628 "insn" from rtx to rtx_insn *.
3629 (ps_rtl_insn): Likewise for return type.
3630 (doloop_register_get): Likewise for params "head", "tail" and
3631 locals "insn", "first_insn_not_to_check".
3632 (schedule_reg_move): Likewise for local "this_insn".
3633 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3634 of gen_move_insn for now.
3635 (reset_sched_times): Strengthen local "insn" from rtx to
3636 rtx_insn *.
3637 (permute_partial_schedule): Likewise.
3638 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3639 (dump_insn_location): Likewise for param "insn".
3640 (loop_canon_p): Likewise for local "insn".
3641 (sms_schedule): Likewise.
3642 (print_partial_schedule): Likewise.
3643 (ps_has_conflicts): Likewise.
3644
3645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3646
3647 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3648 "tailp" from rtx * to rtx_insn **.
3649
3650 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3651 from rtx to rtx_insn *.
3652 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3653 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3654 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3655 rtx to rtx_insn *.
3656 * modulo-sched.c (const_iteration_count): Strengthen return type
3657 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3658 use of NULL_RTX with NULL when working with insns.
3659 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3660 to rtx_insn *.
3661 (sms_schedule): Likewise.
3662 * sched-rgn.c (init_ready_list): Likewise, also for locals
3663 "src_head" and "src_next_tail".
3664 (compute_block_dependences): Likewise.
3665 (free_block_dependencies): Likewise.
3666 (debug_rgn_dependencies): Likewise.
3667 (free_rgn_deps): Likewise.
3668 (compute_priorities): Likewise.
3669 (schedule_region): Likewise.
3670 * sel-sched.c (find_ebb_boundaries): Likewise.
3671
3672 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3673 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3674
3675 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3676
3677 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3678 from rtx to rtx_insn *.
3679 (new_seginfo): Likewise for param "insn".
3680 (create_pre_exit): Likewise for locals "last_insn",
3681 "before_return_copy", "return_copy".
3682 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3683 "mode_set".
3684
3685 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3686
3687 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3688 from rtx to rtx_insn *.
3689 (lra_push_insn): Likewise for 1st param.
3690 (lra_push_insn_and_update_insn_regno_info): Likewise.
3691 (lra_pop_insn): Likewise for return type.
3692 (lra_invalidate_insn_data): Likewise for 1st param.
3693 (lra_set_insn_deleted): Likewise.
3694 (lra_delete_dead_insn): Likewise.
3695 (lra_process_new_insns): Likewise for first 3 params.
3696 (lra_set_insn_recog_data): Likewise for 1st param.
3697 (lra_update_insn_recog_data): Likewise.
3698 (lra_set_used_insn_alternative): Likewise.
3699 (lra_invalidate_insn_regno_info): Likewise.
3700 (lra_update_insn_regno_info): Likewise.
3701 (lra_former_scratch_operand_p): Likewise.
3702 (lra_eliminate_regs_1): Likewise.
3703 (lra_get_insn_recog_data): Likewise.
3704
3705 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3706 rtx to rtx_insn *.
3707
3708 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3709 "mv1" and "mv2".
3710 (substitute_within_insn): New.
3711 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3712 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3713 Replace call to "substitute" with call to substitute_within_insn.
3714
3715 * lra-constraints.c (curr_insn): Strengthen from rtx to
3716 rtx_insn *.
3717 (get_equiv_with_elimination): Likewise for param "insn".
3718 (match_reload): Strengthen params "before" and "after" from rtx *
3719 to rtx_insn **.
3720 (emit_spill_move): Likewise for return type. Add a checked cast
3721 to rtx_insn * on result of gen_move_insn for now.
3722 (check_and_process_move): Likewise for local "before". Replace
3723 NULL_RTX with NULL when referring to insns.
3724 (process_addr_reg): Strengthen params "before" and "after" from
3725 rtx * to rtx_insn **.
3726 (insert_move_for_subreg): Likewise.
3727 (simplify_operand_subreg): Strengthen locals "before" and "after"
3728 from rtx to rtx_insn *.
3729 (process_address_1): Strengthen params "before" and "after" from
3730 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3731 rtx to rtx_insn *.
3732 (process_address): Strengthen params "before" and "after" from
3733 rtx * to rtx_insn **.
3734 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3735 (curr_insn_transform): Strengthen locals "before" and "after"
3736 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3737 to insns.
3738 (loc_equivalence_callback): Update cast of "data", changing
3739 resulting type from rtx to rtx_insn *.
3740 (substitute_pseudo_within_insn): New.
3741 (inherit_reload_reg): Strengthen param "insn" from rtx to
3742 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3743 NULL when referring to insns. Add a checked cast to rtx_insn *
3744 when using usage_insn to invoke lra_update_insn_regno_info.
3745 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3746 likewise for locals "restore", "save". Add checked casts to
3747 rtx_insn * when using usage_insn to invoke
3748 lra_update_insn_regno_info and lra_process_new_insns. Replace
3749 NULL_RTX with NULL when referring to insns.
3750 (split_if_necessary): Strengthen param "insn" from rtx to
3751 rtx_insn *.
3752 (update_ebb_live_info): Likewise for params "head", "tail" and local
3753 "prev_insn".
3754 (get_last_insertion_point): Likewise for return type and local "insn".
3755 (get_live_on_other_edges): Likewise for local "last".
3756 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3757 "prev_insn", "next_insn", "restore".
3758 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3759 (undo_optional_reloads): Likewise for local "insn".
3760
3761 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3762 "insn".
3763 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3764 insns.
3765 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3766 rtx_insn *.
3767 (spill_pseudos): Likewise for local "insn".
3768 (init_elimination): Likewise.
3769 (process_insn_for_elimination): Likewise for param "insn".
3770
3771 * lra-lives.c (curr_insn): Likewise.;
3772
3773 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3774 (remove_pseudos): Likewise for param "insn".
3775 (spill_pseudos): Likewise for local "insn".
3776 (lra_final_code_change): Likewise for locals "insn", "curr".
3777
3778 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3779 (lra_set_insn_deleted): Likewise.
3780 (lra_delete_dead_insn): Likewise, and for local "prev".
3781 (new_insn_reg): Likewise for param "insn".
3782 (lra_set_insn_recog_data): Likewise.
3783 (lra_update_insn_recog_data): Likewise.
3784 (lra_set_used_insn_alternative): Likewise.
3785 (get_insn_freq): Likewise.
3786 (invalidate_insn_data_regno_info): Likewise.
3787 (lra_invalidate_insn_regno_info): Likewise.
3788 (lra_update_insn_regno_info): Likewise.
3789 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3790 vec<rtx_insn *>.
3791 (lra_push_insn_1): Strengthen param "insn" from rtx to
3792 rtx_insn *.
3793 (lra_push_insn): Likewise.
3794 (lra_push_insn_and_update_insn_regno_info): Likewise.
3795 (lra_pop_insn): Likewise for return type and local "insn".
3796 (push_insns): Likewise for params "from", "to", and local "insn".
3797 (setup_sp_offset): Likewise for params "from", "last" and locals
3798 "before", "insn".
3799 (lra_process_new_insns): Likewise for params "insn", "before",
3800 "after" and local "last".
3801 (struct sloc): Likewise for field "insn".
3802 (lra_former_scratch_operand_p): Likewise for param "insn".
3803 (remove_scratches): Likewise for locals "insn", "last".
3804 (check_rtl): Likewise for local "insn".
3805 (add_auto_inc_notes): Likewise for param "insn".
3806 (update_inc_notes): Likewise for local "insn".
3807 (lra): Replace NULL_RTX with NULL when referring to insn.
3808
3809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3810
3811 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3812 to rtx_insn *.
3813 (resolve_reg_notes): Likewise.
3814 (resolve_simple_move): Likewise for return type, param "insn", and
3815 locals "insns", "minsn".
3816 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3817 (resolve_use): Likewise.
3818 (resolve_debug): Likewise.
3819 (find_decomposable_shift_zext): Likewise.
3820 (resolve_shift_zext): Likewise for return type, param "insn", and
3821 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3822 (decompose_multiword_subregs): Likewise for local "insn",
3823 "orig_insn", "decomposed_shift", "end".
3824
3825 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3826
3827 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3828 param "insns" from rtx to rtx_insn *.
3829
3830 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3831 rtx to rtx_insn *.
3832 (struct iv_to_split): Likewise.
3833 (loop_exit_at_end_p): Likewise for local "insn".
3834 (split_edge_and_insert): Likewise for param "insns".
3835 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3836 and locals "seq", "jump".
3837 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3838 "branch_code"; update invocations of compare_and_jump_seq to
3839 eliminate NULL_RTX in favor of NULL.
3840 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3841 rtx to rtx_insn *.
3842 (reset_debug_uses_in_loop): Likewise.
3843 (analyze_insn_to_expand_var): Likewise for param "insn".
3844 (analyze_iv_to_split_insn): Likewise.
3845 (analyze_insns_in_loop): Likewise for local "insn".
3846 (insert_base_initialization): Likewise for param
3847 "insn" and local "seq".
3848 (split_iv): Likewise for param "insn" and local "seq".
3849 (expand_var_during_unrolling): Likewise for param "insn".
3850 (insert_var_expansion_initialization): Likewise for local "seq".
3851 (combine_var_copies_in_loop_exit): Likewise.
3852 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3853 "insn".
3854 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3855 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3856 "next".
3857
3858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3859
3860 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3861 rtx_insn *.
3862 (iv_analyze_result): Likewise.
3863 (iv_analyze_expr): Likewise.
3864 (biv_p): Likewise.
3865
3866 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3867 local "def_insn" from rtx to rtx_insn *.
3868 (get_biv_step_1): Likewise for local "insn".
3869 (iv_analyze_expr): Likewise for param "insn".
3870 (iv_analyze_def): Likewise for local "insn".
3871 (iv_analyze_op): Likewise for param "insn".
3872 (iv_analyze): Likewise.
3873 (iv_analyze_result): Likewise.
3874 (biv_p): Likewise.
3875 (suitable_set_for_replacement): Likewise.
3876 (simplify_using_initial_values): Likewise for local "insn".
3877 (iv_number_of_iterations): Likewise for param "insn".
3878 (check_simple_exit): Add checked cast to rtx_insn when invoking
3879 iv_number_of_iterations for now (until get_condition is
3880 strengthened).
3881
3882 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3883 "insn" from rtx to rtx_insn *.
3884 (analyze_insns_in_loop): Likewise for local "insn".
3885
3886 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3887
3888 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3889 to rtx_insn *.
3890 (struct invariant): Likewise.
3891 (hash_invariant_expr_1): Likewise for param "insn".
3892 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3893 (find_exits): Likewise for local "insn".
3894 (create_new_invariant): Likewise for param "insn".
3895 (check_dependencies): Likewise.
3896 (find_invariant_insn): Likewise.
3897 (record_uses): Likewise.
3898 (find_invariants_insn): Likewise.
3899 (find_invariants_bb): Likewise for local "insn".
3900 (get_pressure_class_and_nregs): Likewise for param "insn".
3901 (calculate_loop_reg_pressure): Likewise for local "insn".
3902
3903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3904
3905 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3906 to rtx_insn *.
3907 (add_test): Likewise for locals "seq", "jump".
3908 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3909
3910 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3911
3912 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3913 rtx_insn *.
3914 (rebuild_jump_labels_chain): Likewise for param "chain".
3915
3916 * cfgexpand.c (pass_expand::execute): Add checked cast to
3917 rtx_insn * when calling rebuild_jump_labels_chain in region where
3918 we know e->insns.r is non-NULL.
3919
3920 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3921 rtx_insn *.
3922 (rebuild_jump_labels): Likewise.
3923 (rebuild_jump_labels_chain): Likewise for param "chain".
3924 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3925 (init_label_info): Likewise for param "f".
3926 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3927 "prev_nonjump_insn".
3928 (mark_all_labels): Likewise for param "f" and locals "insn",
3929 "prev_nonjump_insn".
3930
3931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3932
3933 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3934 from rtx to rtx_insn *insn.
3935 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3936 (ira_add_allocno_copy): Likewise.
3937 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3938 rtx to rtx_insn *.
3939 (ira_create_copy): Likewise.
3940 (ira_add_allocno_copy): Likewise.
3941 (create_bb_allocnos): Likewise for local "insn".
3942 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3943 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3944 process_regs_for_copy for rtx_insn * param.
3945 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3946 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3947 process_regs_for_copy for rtx_insn * param.
3948 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3949 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3950 (record_operand_costs): Likewise.
3951 (scan_one_insn): Likewise for return type, and for param "insn".
3952 (process_bb_for_costs): Likewise for local "insn".
3953 (process_bb_node_for_hard_reg_moves): Likewise.
3954 * ira-emit.c (struct move): Likewise for field "insn".
3955 (create_move): Eliminate use of NULL_RTX when dealing with an
3956 rtx_insn *.
3957 (emit_move_list): Strengthen return type and locals "result",
3958 "insn" from rtx to rtx_insn *insn.
3959 (emit_moves): Likewise for locals "insns", "tmp".
3960 (ira_emit): Likewise for local "insn".
3961 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3962 "insn".
3963 (find_call_crossed_cheap_reg): Likewise.
3964 (process_bb_node_lives): Likewise for local "insn".
3965 * ira.c (decrease_live_ranges_number): Likewise.
3966 (compute_regs_asm_clobbered): Likewise.
3967 (build_insn_chain): Likewise.
3968 (find_moveable_pseudos): Likewise, also locals "def_insn",
3969 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3970 to rtx_insn **. Add a checked cast when assigning from
3971 "closest_use" into closest_uses array in a region where we know
3972 it's a non-NULL insn.
3973 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3974 to rtx_insn *.
3975 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3976 "last_interesting_insn", "uin".
3977 (move_unallocated_pseudos): Likewise for locals "def_insn",
3978 "move_insn", "newinsn".
3979
3980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3981
3982 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3983 Strengthen locals "done_label", "do_error" from rtx to
3984 rtx_code_label *.
3985 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3986 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3987 rtx_code_label *.
3988 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3989 "done_label", "do_error" to rtx_code_label * and local "last" to
3990 rtx_insn *.
3991 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3992 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3993 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3994 "after_lopart_neg", "do_overflow", "hipart_different" to
3995 rtx_code_label * and local "last" to rtx_insn *.
3996
3997 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3998
3999 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4000 "insn" and "move_insn" from rtx to rtx_insn *.
4001
4002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4003
4004 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4005 rtx_insn *.
4006 (cheap_bb_rtx_cost_p): Likewise.
4007 (first_active_insn): Likewise for return type and local "insn".
4008 (last_active_insn): Likewise for return type and locals "insn",
4009 "head".
4010 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4011 "insn_b".
4012 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4013 "seq".
4014 (noce_try_move): Likewise for local "seq".
4015 (noce_try_store_flag): Likewise.
4016 (noce_try_store_flag_constants): Likewise.
4017 (noce_try_addcc): Likewise.
4018 (noce_try_store_flag_mask): Likewise.
4019 (noce_try_cmove): Likewise.
4020 (noce_try_minmax): Likewise.
4021 (noce_try_abs): Likewise.
4022 (noce_try_sign_mask): Likewise.
4023 (noce_try_bitop): Likewise.
4024 (noce_can_store_speculate_p): Likewise for local "insn".
4025 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4026 seq".
4027 (check_cond_move_block): Likewise for local "insn".
4028 (cond_move_convert_if_block): Likewise.
4029 (cond_move_process_if_block): Likewise for locals "seq",
4030 "loc_insn".
4031 (noce_find_if_block): Likewise for local "jump".
4032 (merge_if_block): Likewise for local "last".
4033 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4034 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4035 (block_has_only_trap): Likewise for return type and local "trap".
4036 (find_if_case_1): Likewise for local "jump".
4037 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4038 "insn".
4039
4040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4041
4042 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4043 "last_insn", "loop_end" from rtx to rtx_insn *.
4044
4045 * hw-doloop.c (scan_loop): Likewise for local "insn".
4046 (discover_loop): Likewise for param "tail_insn".
4047 (discover_loops): Likewise for local "tail".
4048
4049 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4050 cast to rtx_insn * when assigning from an rtx local to a
4051 hwloop_info's "last_insn" field.
4052
4053 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4054
4055 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4056 (add_delay_dependencies): Strengthen local "pro" from rtx to
4057 rtx_insn *.
4058 (recompute_todo_spec): Likewise.
4059 (dep_cost_1): Likewise for locals "insn", "used".
4060 (schedule_insn): Likewise for local "dbg".
4061 (schedule_insn): Likewise for locals "pro", "next".
4062 (unschedule_insns_until): Likewise for local "con".
4063 (restore_pattern): Likewise for local "next".
4064 (estimate_insn_tick): Likewise for local "pro".
4065 (resolve_dependencies): Likewise for local "next".
4066 (fix_inter_tick): Likewise.
4067 (fix_tick_ready): Likewise for local "pro".
4068 (add_to_speculative_block): Likewise for locals "check", "twin",
4069 "pro".
4070 (sched_extend_bb): Likewise for locals "end", "insn".
4071 (init_before_recovery): Likewise for local "x".
4072 (sched_create_recovery_block): Likewise for local "barrier".
4073 (create_check_block_twin): Likewise for local "pro".
4074 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4075 "consumer".
4076 (unlink_bb_notes): Update for change to type of bb_header.
4077 Strengthen locals "prev", "label", "note", "next" from rtx to
4078 rtx_insn *.
4079 (clear_priorities): Likewise for local "pro".
4080
4081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4082
4083 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4084 rtx_insn *.
4085 (test_insn): Likewise for this global.
4086 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4087 const rtx_insn *.
4088 (oprs_anticipatable_p): Likewise.
4089 (oprs_available_p): Likewise.
4090 (insert_expr_in_table): Strengthen param "insn" from rtx to
4091 rtx_insn *.
4092 (hash_scan_set): Likewise.
4093 (hash_scan_clobber): Likewise.
4094 (hash_scan_call): Likewise.
4095 (hash_scan_insn): Likewise.
4096 (compute_hash_table_work): Likewise for local "insn".
4097 (process_insert_insn): Likewise for return type and local "pat".
4098 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4099 "pat", "pat_end", "maybe_cc0_setter".
4100 (pre_edge_insert): Likewise for local "insn".
4101 (pre_insert_copy_insn): Likewise for param "insn".
4102 (pre_insert_copies): Likewise for local "insn".
4103 (struct set_data): Likewise for field "insn".
4104 (single_set_gcse): Likewise for param "insn".
4105 (gcse_emit_move_after): Likewise.
4106 (pre_delete): Likewise for local "insn".
4107 (update_bb_reg_pressure): Likewise for param "from" and local
4108 "insn".
4109 (should_hoist_expr_to_dom): Likewise for param "from".
4110 (hoist_code): Likewise for local "insn".
4111 (get_pressure_class_and_nregs): Likewise for param "insn".
4112 (calculate_bb_reg_pressure): Likewise for local "insn".
4113 (compute_ld_motion_mems): Likewise.
4114
4115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4116
4117 * genpeep.c (main): Rename param back from "uncast_ins1" to
4118 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4119 checked cast.
4120
4121 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4122
4123 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4124
4125 PR target/62195
4126 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4127 documentation to state it is only for VSX operations.
4128
4129 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4130 constraint only active if VSX.
4131
4132 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4133 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4134 (lfiwzx): Likewise.
4135
4136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4137
4138 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4139 Strengthen local "insn" from rtx to rtx_insn *.
4140 (use_killed_between): Likewise for param "target_insn".
4141 (all_uses_available_at): Likewise for param "target_insn" and
4142 local "next".
4143 (update_df_init): Likewise for params "def_insn", "insn".
4144 (update_df): Likewise for param "insn".
4145 (try_fwprop_subst): Likewise for param "def_insn" and local
4146 "insn".
4147 (free_load_extend): Likewise for param "insn".
4148 (forward_propagate_subreg): Likewise for param "def_insn" and
4149 local "use_insn".
4150 (forward_propagate_asm): Likewise for param "def_insn" and local
4151 "use_insn".
4152 (forward_propagate_and_simplify): Likewise for param "def_insn"
4153 and local "use_insn".
4154 (forward_propagate_into): Likewise for locals "def_insn" and
4155 "use_insn".
4156
4157 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4158
4159 * function.c (emit_initial_value_sets): Strengthen local "seq"
4160 from rtx to rtx_insn *.
4161 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4162 local "seq".
4163 (instantiate_virtual_regs): Likewise for local "insn".
4164 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4165 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4166 (expand_function_end): Likewise for locals "insn" and "seq".
4167 (epilogue_done): Likewise for local "insn".
4168 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4169 "last", "trial".
4170 (reposition_prologue_and_epilogue_notes): Likewise for locals
4171 "insn", "last", "note", "first".
4172 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4173 (pass_match_asm_constraints::execute): Likewise for local "insn".
4174
4175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4176
4177 * output.h (final_scan_insn): Strengthen return type from rtx to
4178 rtx_insn *.
4179 (final_forward_branch_p): Likewise for param.
4180 (current_output_insn): Likewise for this global.
4181
4182 * final.c (rtx debug_insn): Likewise for this variable.
4183 (current_output_insn): Likewise.
4184 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4185 adding "insn" back in as an rtx_insn * with a checked cast, so
4186 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4187 first param.
4188 (compute_alignments): Strengthen local "label" from rtx to
4189 rtx_insn *.
4190 (shorten_branches): Rename param from "first" to "uncast_first",
4191 introducing a new local rtx_insn * "first" using a checked cast to
4192 effectively strengthen "first" from rtx to rtx_insn * without
4193 affecting the type signature. Strengthen locals "insn", "seq",
4194 "next", "label" from rtx to rtx_insn *.
4195 (change_scope): Strengthen param "orig_insn" and local "insn" from
4196 rtx to rtx_insn *.
4197 (final_start_function): Rename param from "first" to "uncast_first",
4198 introducing a new local rtx_insn * "first" using a checked cast to
4199 effectively strengthen "first" from rtx to rtx_insn * without
4200 affecting the type signature. Strengthen local "insn" from rtx to
4201 rtx_insn *.
4202 (dump_basic_block_info): Strengthen param "insn" from rtx to
4203 rtx_insn *.
4204 (final): Rename param from "first" to "uncast_first",
4205 introducing a new local rtx_insn * "first" using a checked cast to
4206 effectively strengthen "first" from rtx to rtx_insn * without
4207 affecting the type signature. Strengthen locals "insn", "next"
4208 from rtx to rtx_insn *.
4209 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4210 rtx_insn *.
4211 (call_from_call_insn): Strengthen param "insn" from rtx to
4212 rtx_call_insn *.
4213 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4214 introducing a new local rtx_insn * "insn" using a checked cast to
4215 effectively strengthen "insn" from rtx to rtx_insn * without
4216 affecting the type signature. Strengthen return type and locals
4217 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4218 now-redundant checked cast to rtx_insn * from both invocations of
4219 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4220 introducing a local "call_insn" for use when invoking
4221 call_from_call_insn.
4222 (notice_source_line): Strengthen param "insn" from rtx to
4223 rtx_insn *.
4224 (leaf_function_p): Likewise for local "insn".
4225 (final_forward_branch_p): Likewise.
4226 (leaf_renumber_regs): Likewise for param "first".
4227 (rest_of_clean_state): Likewise for locals "insn" and "next".
4228 (self_recursive_call_p): Likewise for param "insn".
4229 (collect_fn_hard_reg_usage): Likewise for local "insn".
4230 (get_call_fndecl): Likewise for param "insn".
4231 (get_call_cgraph_rtl_info): Likewise.
4232 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4233 introducing a new local rtx_insn * "insn" using a checked cast to
4234 effectively strengthen "insn" from rtx to rtx_insn * without
4235 affecting the type signature.
4236
4237 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4238 cast when assigning from param "insn" to current_output_insn.
4239 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4240 so that we can assign it back to current_output_insn.
4241
4242 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4243
4244 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4245 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4246 atmxt540s and atmxt540sreva devices.
4247 * config/avr/avr-tables.opt: Regenerate.
4248 * config/avr/t-multilib: Regenerate.
4249 * doc/avr-mmcu.texi: Regenerate.
4250
4251 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4252
4253 * expr.c (convert_move): Strengthen local "insns" from rtx to
4254 rtx_insn *.
4255 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4256 "top_label" from rtx to rtx_code_label *.
4257 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4258 rtx_insn *.
4259 (emit_single_push_insn): Likewise for locals "prev", "last".
4260 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4261 to rtx_code_label *.
4262 (store_constructor): Likewise for locals "loop_start", "loop_end".
4263 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4264 rtx_insn *.
4265 (expand_expr_real_2): Likewise.
4266 (expand_expr_real_1): Strengthen local "label" from rtx to
4267 rtx_code_label *.
4268
4269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4270
4271 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4272 from rtx to rtx_insn *.
4273 (store_bit_field_1): Likewise.
4274 (extract_bit_field_1): Likewise.
4275 (expand_mult_const): Likewise for local "insns".
4276 (expmed_mult_highpart): Strengthen local "label" from rtx to
4277 rtx_code_label *.
4278 (expand_smod_pow2): Likewise.
4279 (expand_sdiv_pow2): Likewise.
4280 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4281 rtx_insn *. Strengthen locals "label", "label1", "label2",
4282 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4283 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4284 (emit_store_flag): Likewise.
4285 (emit_store_flag_force): Strengthen local "label" from rtx to
4286 rtx_code_label *.
4287 (do_cmp_and_jump): Likewise for param "label".
4288
4289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4290
4291 * explow.c (force_reg): Strengthen local "insn" from rtx to
4292 rtx_insn *.
4293 (adjust_stack_1): Likewise.
4294 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4295 "final_label", "available_label", "space_available" from rtx to
4296 rtx_code_label *.
4297 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4298 (anti_adjust_stack_and_probe): Likewise.
4299
4300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4301
4302 * except.h (sjlj_emit_function_exit_after): Strengthen param
4303 "after" from rtx to rtx_insn *. This is only called with
4304 result of get_last_insn (in function.c) so type-change should be
4305 self-contained.
4306
4307 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4308 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4309 to rtx_insn *. These fields are only used from except.c so this
4310 type-change should be self-contained to this patch.
4311
4312 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4313 local "last" from rtx to rtx_insn *.
4314 (dw2_build_landing_pads): Likewise for local "seq".
4315 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4316 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4317 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4318 rtx to rtx_insn *.
4319 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4320 to rtx_insn *.
4321 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4322 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4323 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4324 referring to an insn. Strengthen local "dispatch_label" from
4325 rtx to rtx_code_label *.
4326 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4327 rtx_insn *.
4328 (expand_eh_return): Strengthen local "around_label" from
4329 rtx to rtx_code_label *.
4330 (convert_to_eh_region_ranges): Strengthen locals "iter",
4331 "last_action_insn", "first_no_action_insn",
4332 "first_no_action_insn_before_switch",
4333 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4334
4335 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4336
4337 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4338 from rtx to rtx_insn *.
4339 (cached_next_real_insn): Likewise.
4340 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4341 working with insns.
4342 (dwarf2out_var_location): Strengthen locals "next_real",
4343 "next_note", "expected_next_loc_note", "last_start", "insn" from
4344 rtx to rtx_insn *.
4345
4346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4347
4348 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4349 from rtx to rtx_insn *.
4350 (create_pseudo_cfg): Likewise for local "insn".
4351
4352 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4353
4354 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4355 from rtx to rtx_insn *.
4356 (df_bb_regno_last_def_find): Likewise.
4357
4358 * df-problems.c (df_rd_bb_local_compute): Likewise.
4359 (df_lr_bb_local_compute): Likewise.
4360 (df_live_bb_local_compute): Likewise.
4361 (df_chain_remove_problem): Likewise.
4362 (df_chain_create_bb): Likewise.
4363 (df_word_lr_bb_local_compute): Likewise.
4364 (df_remove_dead_eq_notes): Likewise for param "insn".
4365 (df_note_bb_compute): Likewise for local "insn".
4366 (simulate_backwards_to_point): Likewise.
4367 (df_md_bb_local_compute): Likewise.
4368
4369 * df-scan.c (df_scan_free_bb_info): Likewise.
4370 (df_scan_start_dump): Likewise.
4371 (df_scan_start_block): Likewise.
4372 (df_install_ref_incremental): Likewise for local "insn".
4373 (df_insn_rescan_all): Likewise.
4374 (df_reorganize_refs_by_reg_by_insn): Likewise.
4375 (df_reorganize_refs_by_insn_bb): Likewise.
4376 (df_recompute_luids): Likewise.
4377 (df_bb_refs_record): Likewise.
4378 (df_update_entry_exit_and_calls): Likewise.
4379 (df_bb_verify): Likewise.
4380
4381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4382
4383 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4384 "first_note" from rtx to rtx_insn *.
4385 (get_node_of_insn): Likewise for param 2 "insn".
4386 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4387
4388 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4389 rtx_insn *.
4390 (mem_write_insn_p): Likewise.
4391 (mem_access_insn_p): Likewise.
4392 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4393 (def_has_ccmode_p): Likewise for param "insn".
4394 (add_cross_iteration_register_deps): Likewise for locals
4395 "def_insn" and "use_insn".
4396 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4397 (build_intra_loop_deps): Likewise for local "src_insn".
4398 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4399 to rtx_insn *.
4400 (get_node_of_insn): Likewise for param "insn".
4401
4402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4403
4404 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4405 (deletable_insn_p): Strengthen param "insn" from rtx to
4406 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4407 find_call_stack_args, since this is guarded by CALL_P (insn).
4408 (marked_insn_p): Strengthen param "insn" from rtx to
4409 rtx_insn *.
4410 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4411 invoking find_call_stack_args, since this is guarded by
4412 CALL_P (insn).
4413 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4414 rtx_insn *; we know this is an insn since this was called by
4415 mark_nonreg_stores.
4416 (mark_nonreg_stores_2): Likewise.
4417 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4418 rtx_insn *.
4419 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4420 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4421 to rtx_insn *.
4422 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4423 from rtx to rtx_insn *.
4424 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4425 "next", "ref_insn".
4426 (delete_unmarked_insns): Likewise for locals "insn", "next".
4427 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4428 (mark_reg_dependencies): Likewise for param "insn".
4429 (rest_of_handle_ud_dce): Likewise for local "insn".
4430 (word_dce_process_block): Likewise.
4431 (dce_process_block): Likewise.
4432
4433 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4434
4435 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4436 from rtx to rtx_insn *.
4437 (struct change_cc_mode_args): Likewise for field "insn".
4438 (this_insn): Strengthen from rtx to rtx_insn *.
4439 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4440 with insn.
4441 (validate_canon_reg): Strengthen param "insn" from rtx to
4442 rtx_insn *.
4443 (canon_reg): Likewise.
4444 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4445 dealing with insn.
4446 (record_jump_equiv): Strengthen param "insn" from rtx to
4447 rtx_insn *.
4448 (try_back_substitute_reg): Likewise, also for locals "prev",
4449 "bb_head".
4450 (find_sets_in_insn): Likewise for param "insn".
4451 (canonicalize_insn): Likewise.
4452 (cse_insn): Likewise. Add a checked cast.
4453 (invalidate_from_clobbers): Likewise for param "insn".
4454 (invalidate_from_sets_and_clobbers): Likewise.
4455 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4456 dealing with insn.
4457 (cse_prescan_path): Strengthen local "insn" from rtx to
4458 rtx_insn *.
4459 (cse_extended_basic_block): Likewise for locals "insn" and
4460 "prev_insn".
4461 (cse_main): Likewise for param "f".
4462 (check_for_label_ref): Likewise for local "insn".
4463 (set_live_p): Likewise for second param ("insn").
4464 (insn_live_p): Likewise for first param ("insn") and for local
4465 "next".
4466 (cse_change_cc_mode_insn): Likewise for first param "insn".
4467 (cse_change_cc_mode_insns): Likewise for first and second params
4468 "start" and "end".
4469 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4470 and "end".
4471 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4472 "cc_src_insn".
4473
4474 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4475 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4476 Anna Tikhonova <anna.tikhonova@intel.com>
4477 Ilya Tocar <ilya.tocar@intel.com>
4478 Andrey Turetskiy <andrey.turetskiy@intel.com>
4479 Ilya Verbin <ilya.verbin@intel.com>
4480 Kirill Yukhin <kirill.yukhin@intel.com>
4481 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4482
4483 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4484 New.
4485 * config/i386/sse.md
4486 (define_mode_iterator VI248_AVX2): Delete.
4487 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4488 (define_mode_iterator VI48_AVX2): Ditto.
4489 (define_insn <shift_insn><mode>3): Delete.
4490 (define_insn "<shift_insn><mode>3<mask_name>" with
4491 VI2_AVX2_AVX512BW): New.
4492 (define_insn "<shift_insn><mode>3<mask_name>" with
4493 VI48_AVX2): Ditto.
4494
4495 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4497 Anna Tikhonova <anna.tikhonova@intel.com>
4498 Ilya Tocar <ilya.tocar@intel.com>
4499 Andrey Turetskiy <andrey.turetskiy@intel.com>
4500 Ilya Verbin <ilya.verbin@intel.com>
4501 Kirill Yukhin <kirill.yukhin@intel.com>
4502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4503
4504 * config/i386/sse.md
4505 (define_mode_iterator VI4F_BRCST32x2): New.
4506 (define_mode_attr 64x2_mode): Ditto.
4507 (define_mode_attr 32x2mode): Ditto.
4508 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4509 with VI4F_BRCST32x2): Ditto.
4510 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4511 with V16FI mode iterator): Ditto.
4512 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4513 with V16FI): Ditto.
4514 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4515 with VI8F_BRCST64x2): Ditto.
4516
4517 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4518 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4519 Anna Tikhonova <anna.tikhonova@intel.com>
4520 Ilya Tocar <ilya.tocar@intel.com>
4521 Andrey Turetskiy <andrey.turetskiy@intel.com>
4522 Ilya Verbin <ilya.verbin@intel.com>
4523 Kirill Yukhin <kirill.yukhin@intel.com>
4524 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4525
4526 * config/i386/sse.md
4527 (define_mode_iterator VI8_AVX512VL): New.
4528 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4529
4530 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4531
4532 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4533 (define_mode_iterator V48_AVX512VL): New.
4534 (define_mode_iterator V12_AVX512VL): Ditto.
4535 (define_insn <avx512>_load<mode>_mask): Split into two similar
4536 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4537 Refactor output template.
4538 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4539
4540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4541
4542 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4543 rtx_insn *.
4544 (reg_available_p): Likewise for param "insn".
4545 (insert_set_in_table): Likewise.
4546 (hash_scan_set): Likewise.
4547 (hash_scan_insn): Likewise.
4548 (make_set_regs_unavailable): Likewise.
4549 (compute_hash_table_work): Likewise for local "insn".
4550 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4551 const rtx_insn *.
4552 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4553 (try_replace_reg): Likewise.
4554 (find_avail_set): Likewise.
4555 (cprop_jump): Likewise for params "setcc", "jump".
4556 (constprop_register): Likewise for param "insn".
4557 (cprop_insn): Likewise.
4558 (do_local_cprop): Likewise.
4559 (local_cprop_pass): Likewise for local "insn".
4560 (bypass_block): Likewise for params "setcc" and "jump".
4561 (bypass_conditional_jumps): Likewise for locals "setcc" and
4562 "insn".
4563 (one_cprop_pass): Likewise for local "insn".
4564
4565 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4566
4567 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4568 from rtx to rtx_insn *.
4569 (struct comparison): Likewise, also for field "prev_clobber".
4570 (conforming_compare): Likewise for param "insn".
4571 (arithmetic_flags_clobber_p): Likewise.
4572 (find_flags_uses_in_insn): Likewise.
4573 (find_comparison_dom_walker::before_dom_children): Likewise for
4574 locals "insn", "next", "last_clobber".
4575 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4576
4577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4578
4579 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4580 "insn" from rtx to rtx_insn *.
4581 (single_set_for_csa): Likewise for param "insn".
4582 (record_one_stack_ref): Likewise.
4583 (try_apply_stack_adjustment): Likewise.
4584 (struct record_stack_refs_data): Likewise for field "insn".
4585 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4586 (prev_active_insn_bb): Likewise for return type and param "insn".
4587 (next_active_insn_bb): Likewise.
4588 (force_move_args_size_note): Likewise for params "prev" and "last"
4589 and locals "test", "next_candidate", "prev_candidate".
4590 (combine_stack_adjustments_for_block): Strengthen locals
4591 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4592 rtx_insn *.
4593
4594 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4595
4596 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4597 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4598 (subst_insn): Likewise for this variable.
4599 (added_links_insn): Likewise.
4600 (struct insn_link): Likewise for field "insn".
4601 (alloc_insn_link): Likewise for param "insn".
4602 (struct undobuf): Likewise for field "other_insn".
4603 (find_single_use): Likewise for param "insn" and local "next".
4604 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4605 (delete_noop_moves): Likewise for locals "insn", "next".
4606 (create_log_links): Likewise for locals "insn", "use_insn".
4607 Strengthen local "next_use" from rtx * to rtx_insn **.
4608 (insn_a_feeds_b): Likewise for params "a", "b".
4609 (combine_instructions): Likewise for param "f" and locals "insn",
4610 "next", "prev", "first", "last_combined_insn", "link", "link1",
4611 "temp". Replace use of NULL_RTX with NULL when referring to
4612 insns.
4613 (setup_incoming_promotions): Likewise for param "first"
4614 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4615 (can_combine_p): Likewise for params "insn", "i3", "pred",
4616 "pred2", "succ", "succ2" and for local "p".
4617 (combinable_i3pat): Likewise for param "i3".
4618 (cant_combine_insn_p): Likewise for param "insn".
4619 (likely_spilled_retval_p): Likewise.
4620 (adjust_for_new_dest): Likewise.
4621 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4622 (try_combine): Likewise for return type and for params "i3", "i2",
4623 "i1", "i0", "last_combined_insn", and for locals "insn",
4624 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4625 "i0_insn". Eliminate local "tem" in favor of new locals
4626 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4627 checked cast for now to rtx_insn * on the return type of
4628 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4629 insns.
4630 (find_split_point): Strengthen param "insn" from rtx to
4631 rtx_insn *.
4632 (simplify_set): Likewise for local "other_insn".
4633 (recog_for_combine): Likewise for param "insn".
4634 (record_value_for_reg): Likewise.
4635 (record_dead_and_set_regs_1): Likewise for local
4636 "record_dead_insn".
4637 (record_dead_and_set_regs): Likewise for param "insn".
4638 (record_promoted_value): Likewise.
4639 (check_promoted_subreg): Likewise.
4640 (get_last_value_validate): Likewise.
4641 (reg_dead_at_p): Likewise.
4642 (move_deaths): Likewise for param "to_insn".
4643 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4644 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4645 in favor of new locals "tem_note" and "tem_insn", the latter being
4646 an rtx_insn *.
4647 (distribute_links): Strengthen locals "place", "insn" from rtx to
4648 rtx_insn *.
4649
4650 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4651
4652 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4653 than a const_rtx.
4654 (can_delete_label_p): Require a const rtx_code_label * rather than
4655 a const_rtx.
4656 (delete_insn): Add checked cast to rtx_code_label * when we know
4657 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4658 rtx to rtx_insn *.
4659 (delete_insn_chain): Strengthen locals "prev" and "current" from
4660 rtx to rtx_insn *. Add a checked cast when assigning from
4661 "finish" (strengthening the params will come later). Add a
4662 checked cast to rtx_note * in region where we know
4663 NOTE_P (current).
4664 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4665 rtx_insn *.
4666 (compute_bb_for_insn): Likewise.
4667 (free_bb_for_insn): Likewise for local "insn".
4668 (compute_bb_for_insn): Likewise.
4669 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4670 local "insn" from rtx to rtx_insn *
4671 (flow_active_insn_p): Require a const rtx_insn * rather than a
4672 const_rtx.
4673 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4674 rtx_insn *.
4675 (can_fallthru): Likewise for locals "insn" and "insn2".
4676 (bb_note): Likewise for local "note".
4677 (first_insn_after_basic_block_note): Likewise for local "note" and
4678 for return type.
4679 (rtl_split_block): Likewise for locals "insn" and "next".
4680 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4681 "end".
4682 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4683 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4684 "prev", "tmp".
4685 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4686 them), "kill_from", "barrier", "new_insn".
4687 (patch_jump_insn): Likewise for params "insn", "old_label".
4688 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4689 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4690 "old_label", "new_label".
4691 (rtl_tidy_fallthru_edge): Likewise for local "q".
4692 (rtl_split_edge): Likewise for locals "before", "last".
4693 (commit_one_edge_insertion): Likewise for locals "before",
4694 "after", "insns", "tmp", "last", adding a checked cast where
4695 currently necessary.
4696 (commit_edge_insertions): Likewise.
4697 (rtl_dump_bb): Likewise for locals "insn", "last".
4698 (print_rtl_with_bb): Likewise for local "x".
4699 (rtl_verify_bb_insns): Likewise for local "x".
4700 (rtl_verify_bb_pointers): Likewise for local "insn".
4701 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4702 "head", "end".
4703 (rtl_verify_fallthru): Likewise for local "insn".
4704 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4705 (purge_dead_edges): Likewise for local "insn".
4706 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4707 (skip_insns_after_block): Likewise for return type and for locals
4708 "insn", "last_insn", "next_head", "prev".
4709 (record_effective_endpoints): Likewise for locals "next_insn",
4710 "insn", "end".
4711 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4712 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4713 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4714 (duplicate_insn_chain): For now, add checked cast from rtx to
4715 rtx_insn * when returning insn.
4716 (cfg_layout_duplicate_bb): Likewise for local "insn".
4717 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4718 "prev", "remaints".
4719 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4720 (rtl_block_empty_p): Likewise.
4721 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4722 "split_point", "last".
4723 (rtl_block_ends_with_call_p): Likewise for local "insn".
4724 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4725 const rtx_insn *.
4726 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4727 "split_at_insn" from rtx to rtx_insn *.
4728 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4729 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4730 to const rtx_insn *.
4731 (rtl_account_profile_record): Likewise.
4732
4733 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4734
4735 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4736 rtx to rtx_insn *.
4737 (average_num_loop_insns): Likewise.
4738 (init_set_costs): Likewise for local "seq".
4739 (seq_cost): Likewise for param "seq", from const_rtx to const
4740 rtx_insn *.
4741
4742 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4743
4744 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4745 rtx to rtx_insn *.
4746
4747 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4748
4749 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4750 "f1" and "f2" from rtx * to rtx_insn **.
4751 (flow_find_head_matching_sequence): Likewise.
4752
4753 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4754 "cbranch_insn" from rtx to rtx_insn *.
4755 (thread_jump): Likewise for local "insn".
4756 (try_forward_edges): Likewise for local "last".
4757 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4758 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4759 "real_b_end".
4760 (can_replace_by): Likewise for params "i1", "i2".
4761 (old_insns_match_p): Likewise.
4762 (merge_notes): Likewise.
4763 (walk_to_nondebug_insn): Likewise for param "i1".
4764 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4765 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4766 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4767 (flow_find_head_matching_sequence): Strengthen params "f1" and
4768 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4769 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4770 rtx_insn *.
4771 (outgoing_edges_match): Likewise for locals "last1", "last2".
4772 (try_crossjump_to_edge): Likewise for local "insn".
4773 Replace call to for_each_rtx with for_each_rtx_in_insn.
4774
4775 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4776 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4777 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4778 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4779 (try_optimize_cfg): Strengthen local "last" from rtx to
4780 rtx_insn *.
4781 (delete_dead_jumptables): Likewise for locals "insn", "next",
4782 "label".
4783
4784 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4785 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4786 "rtx else_first_tail", to reflect the basic-block.h changes above.
4787
4788 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4789
4790 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4791 rtx_insn *.
4792 (purge_dead_tablejump_edges): Likewise.
4793 (find_bb_boundaries): Likewise for locals "insn", "end",
4794 "flow_transfer_insn".
4795
4796 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4797
4798 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4799 "ins" and "prev" from rtx to rtx_insn *.
4800
4801 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4802
4803 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4804 rtx_insn *.
4805 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4806 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4807 "scan_start".
4808 (load_register_parameters): Likewise for local "before_arg".
4809 (check_sibcall_argument_overlap): Likewise for param "insn".
4810 (expand_call): Likewise for locals "normal_call_insns",
4811 "tail_call_insns", "insns", "before_call", "after_args",
4812 "before_arg", "last", "prev". Strengthen one of the "last" from
4813 rtx to rtx_call_insn *.
4814 (fixup_tail_calls): Strengthen local "insn" from rtx to
4815 rtx_insn *.
4816 (emit_library_call_value_1): Likewise for locals "before_call" and
4817 "last".
4818
4819 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4820
4821 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4822 and "last" from rtx to rtx_insn *.
4823 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4824 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4825 rtx_call_insn *.
4826 (expand_errno_check): Strengthen local "lab" from rtx to
4827 rtx_code_label *.
4828 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4829 rtx_insn *.
4830 (expand_builtin_mathfn_2): Likewise.
4831 (expand_builtin_mathfn_ternary): Likewise.
4832 (expand_builtin_mathfn_3): Likewise.
4833 (expand_builtin_interclass_mathfn): Likewise for local "last".
4834 (expand_builtin_int_roundingfn): Likewise for local "insns".
4835 (expand_builtin_int_roundingfn_2): Likewise.
4836 (expand_builtin_strlen): Likewise for local "before_strlen".
4837 (expand_builtin_strncmp): Likewise for local "seq".
4838 (expand_builtin_signbit): Likewise for local "last".
4839 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4840 from rtx to rtx_code_label *.
4841 (expand_stack_restore): Strengthen local "prev" from rtx to
4842 rtx_insn *.
4843
4844 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4845
4846 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4847 to rtx_insn *.
4848 (struct btr_def_s): Likewise.
4849 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4850 const rtx_insn *.
4851 (add_btr_def): Likewise.
4852 (new_btr_user): Likewise.
4853 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4854 rtx to rtx_insn *.
4855 (link_btr_uses): Likewise.
4856 (move_btr_def): Likewise for locals "insp", "old_insn",
4857 "new_insn". Add checked cast to rtx_insn * for now on result of
4858 gen_move_insn.
4859 (can_move_up): Strengthen param "insn" from const_rtx to
4860 const rtx_insn *.
4861
4862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4863
4864 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4865 rtx_insn *.
4866 (get_uncond_jump_length): Likewise for locals "label", "jump".
4867 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4868 "jump", "insn".
4869 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4870 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4871 (find_jump_block): Likewise for local "insn".
4872 (fix_crossing_conditional_branches): Likewise for locals
4873 "old_jump", "new_jump".
4874 (fix_crossing_unconditional_branches): Likewise for locals
4875 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4876 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4877
4878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4879
4880 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4881 rtx to rtx_insn *.
4882 (struct mem_insn): Likewise for field "insn".
4883 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4884 (reg_next_inc_use): Likewise.
4885 (reg_next_def): Likewise.
4886 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4887 from rtx to rtx_insn *.
4888 (move_insn_before): Likewise for param "next_insn" and local "insns".
4889 (attempt_change): Likewise for local "mov_insn".
4890 (try_merge): Likewise for param "last_insn".
4891 (get_next_ref): Likewise for return type and local "insn".
4892 Strengthen param "next_array" from rtx * to rtx_insn **.
4893 (parse_add_or_inc): Strengthen param "insn" from rtx to
4894 rtx_insn *.
4895 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4896 the latter).
4897 (merge_in_block): Likewise for locals "insn", "curr",
4898 "other_insn".
4899 (pass_inc_dec::execute): Update allocations of the arrays to
4900 reflect the stronger types.
4901
4902 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4903
4904 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4905 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4906 from rtx to rtx_code_label *.
4907
4908 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4909
4910 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4911 to rtx_insn *.
4912
4913 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4914
4915 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4916 generated a warning and prevented bootstrapping the compiler.
4917
4918 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4919
4920 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4921 rtx_insn *.
4922
4923 * jump.c (delete_related_insns): Likewise, also for locals "next"
4924 and "prev".
4925
4926 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4927
4928 * genautomata.c (output_internal_insn_latency_func): When writing
4929 the function "internal_insn_latency" to insn-automata.c,
4930 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4931 allowing the optional guard function of (define_bypass) clauses to
4932 expect a pair of rtx_insn *, rather than a pair of rtx.
4933 (output_insn_latency_func): When writing the function
4934 "insn_latency", add an "uncast_" prefix to params "insn" and
4935 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4936 using checked casts from the params, thus enabling the above
4937 change to the generated "internal_insn_latency" function.
4938
4939 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4940
4941 PR tree-optimization/62091
4942 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4943 handle correctly arrays.
4944 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4945 inheritance binfos.
4946 (record_known_type): Walk into inner type.
4947 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4948 condition on no type changes.
4949
4950 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4951
4952 * genattrtab.c (write_attr_get): Within the generated get_attr_
4953 functions, rename param "insn" to "uncast_insn" and reintroduce
4954 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4955 is an rtx_insn * within insn-attrtab.c
4956
4957 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4958
4959 * output.h (peephole): Strengthen return type from rtx to
4960 rtx_insn *.
4961 * rtl.h (delete_for_peephole): Likewise for both params.
4962 * genpeep.c (main): In generated "peephole" function, strengthen
4963 return type and local "insn" from rtx to rtx_insn *. For now,
4964 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4965 rtx_insn *, with a checked cast.
4966 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4967 locals "insn", "next", "prev" from rtx to rtx_insn *.
4968
4969 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4970
4971 PR tree-optimization/62112
4972 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4973 * gimple-iterator.h (gsi_replace): Return bool.
4974 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4975 moved from ref_may_alias_global_p.
4976 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4977 New overloads.
4978 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4979 (stmt_kills_ref_p_1): Rename...
4980 (stmt_kills_ref_p): ... to this.
4981 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4982 stmt_kills_ref_p): Declare.
4983 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4984 Move the self-assignment case...
4985 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4986
4987 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4988
4989 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4990
4991 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4992 "after". For now, don't strengthen param "trial", which requires
4993 adding checked casts when returning it.
4994
4995 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4996
4997 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4998 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4999 "var_location" hook from rtx to rtx_insn *.
5000 (debug_nothing_rtx): Delete in favor of...
5001 (debug_nothing_rtx_code_label): New prototype.
5002 (debug_nothing_rtx_rtx): Delete unused prototype.
5003 (debug_nothing_rtx_insn): New prototype.
5004
5005 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5006 invoking debug_hooks->var_location (in two places, one in a NOTE
5007 case of a switch statement, the other guarded by a CALL_P
5008 conditional. Add checked cast to rtx_code_label * when invoking
5009 debug_hooks->label (within CODE_LABEL case of switch statement).
5010
5011 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5012 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5013 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5014 (xcoff_debug_hooks): Likewise.
5015 * debug.c (do_nothing_debug_hooks): Likewise.
5016 (debug_nothing_rtx): Delete in favor of...
5017 (debug_nothing_rtx_insn): New function.
5018 (debug_nothing_rtx_rtx): Delete unused function.
5019 (debug_nothing_rtx_code_label): New function.
5020 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5021 debug_nothing_rtx to debug_nothing_rtx_code_label.
5022 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5023 to rtx_insn *.
5024 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5025 debug_nothing_rtx to debug_nothing_rtx_insn.
5026 (sdbout_label): Strengthen param "insn" from rtx to
5027 rtx_code_label *.
5028 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5029 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5030 "var_location" hook from debug_nothing_rtx to
5031 debug_nothing_rtx_insn.
5032
5033 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5034
5035 * recog.h (insn_output_fn): Update this function typedef to match
5036 the changes below to the generated output functions, strengthening
5037 the 2nd param from rtx to rtx_insn *.
5038
5039 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5040 insn when invoking an output function, to match the new signature
5041 of insn_output_fn with a stronger second param.
5042
5043 * genconditions.c (write_header): In the generated code for
5044 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5045 to match the other changes in this patch.
5046
5047 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5048 the generated "gen_" functions from rtx to rtx_insn * within their
5049 implementations.
5050
5051 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5052 the subfunctions within the generated "recog_", "split", "peephole2"
5053 function trees from rtx to rtx_insn *. For now, the top-level
5054 generated functions ("recog", "split", "peephole2") continue to
5055 take a plain rtx for "insn", to avoid introducing dependencies on
5056 other patches. Rename this 2nd param from "insn" to
5057 "uncast_insn", and reintroduce "insn" as a local variable of type
5058 rtx_insn *, initialized at the top of the generated function with
5059 a checked cast on "uncast_insn".
5060 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5061 the generated "gen_" functions from rtx to rtx_insn * within their
5062 prototypes.
5063
5064 * genoutput.c (process_template): Strengthen the 2nd param within
5065 the generated "output_" functions "insn" from rtx to rtx_insn *.
5066
5067 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5068
5069 * tree-profile.c (tree_profiling): Skip external functions
5070 when doing coverage instrumentation.
5071 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5072
5073 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5074
5075 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5076 (vec_mergee): Likewise.
5077 (vec_mergeo): Likewise.
5078 (vec_cntlz): Likewise.
5079 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5080 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5081 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5082 VMRGEW, and VMRGOW.
5083 * doc/extend.texi: Document various forms of vec_cpsgn,
5084 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5085 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5086 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5087 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5088 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5089
5090 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5091
5092 * config/rs6000/rs6000.c (context.h): New include.
5093 (tree-pass.h): Likewise.
5094 (make_pass_analyze_swaps): New decl.
5095 (rs6000_option_override): Register pass_analyze_swaps.
5096 (swap_web_entry): New subsclass of web_entry_base (df.h).
5097 (special_handling_values): New enum.
5098 (union_defs): New function.
5099 (union_uses): Likewise.
5100 (insn_is_load_p): Likewise.
5101 (insn_is_store_p): Likewise.
5102 (insn_is_swap_p): Likewise.
5103 (rtx_is_swappable_p): Likewise.
5104 (insn_is_swappable_p): Likewise.
5105 (chain_purpose): New enum.
5106 (chain_contains_only_swaps): New function.
5107 (mark_swaps_for_removal): Likewise.
5108 (swap_const_vector_halves): Likewise.
5109 (adjust_subreg_index): Likewise.
5110 (permute_load): Likewise.
5111 (permute_store): Likewise.
5112 (handle_special_swappables): Likewise.
5113 (replace_swap_with_copy): Likewise.
5114 (dump_swap_insn_table): Likewise.
5115 (rs6000_analyze_swaps): Likewise.
5116 (pass_data_analyze_swaps): New pass_data.
5117 (pass_analyze_swaps): New rtl_opt_pass.
5118 (make_pass_analyze_swaps): New function.
5119 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5120
5121 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5122
5123 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5124 type from rtx to rtx_insn *.
5125 (create_copy_of_insn_rtx): Likewise.
5126 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5127 (create_copy_of_insn_rtx): Likewise, also for local "res".
5128
5129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5130
5131 * rtl.h (find_first_parameter_load): Strengthen return type from
5132 rtx to rtx_insn *.
5133 * rtlanal.c (find_first_parameter_load): Strengthen return type
5134 from rtx to rtx_insn *. Add checked cast for now, to postpone
5135 strengthening the params.
5136
5137 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5138
5139 PR fortran/44054
5140 * diagnostic.c: Set default caret.
5141 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5142 line is needed.
5143 * diagnostic.h (struct diagnostic_context):
5144
5145 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5146
5147 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5148 (sel_bb_head): Strengthen return type insn_t (currently just an
5149 rtx) to rtx_insn *.
5150 (sel_bb_end): Likewise.
5151
5152 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5153 (sel_bb_head): Strengthen return type and local "head" from
5154 insn_t (currently just an rtx) to rtx_insn *.
5155 (sel_bb_end): Likewise for return type.
5156 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5157 working with insn.
5158
5159 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5160
5161 * basic-block.h (get_last_bb_insn): Strengthen return type from
5162 rtx to rtx_insn *.
5163 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5164 end".
5165
5166 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5167
5168 PR fortran/44054
5169 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5170 to here ...
5171 (diagnostic_report_diagnostic): ... from here.
5172 * toplev.c (general_init): Move code to c-family.
5173
5174 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5175
5176 * df.h (web_entry_base): Replace existing struct web_entry with a
5177 new class web_entry_base with only the predecessor member.
5178 (unionfind_root): Remove declaration and move to class member.
5179 (unionfind_union): Remove declaration and move to friend
5180 function.
5181 (union_defs): Remove declaration.
5182 * web.c (web_entry_base::unionfind_root): Modify to be member
5183 function and adjust accessors.
5184 (unionfind_union): Modify to be friend function and adjust
5185 accessors.
5186 (web_entry): New subclass of web_entry_base containing the reg
5187 member.
5188 (union_match_dups): Modify for struct -> class changes.
5189 (union_defs): Likewise.
5190 (entry_register): Likewise.
5191 (pass_web::execute): Likewise.
5192
5193 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5194
5195 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5196 builtin define __VEC_ELEMENT_REG_ORDER__.
5197
5198 2014-08-20 Martin Jambor <mjambor@suse.cz>
5199 Wei Mi <wmi@google.com>
5200
5201 PR ipa/60449
5202 PR middle-end/61776
5203 * tree-ssa-operands.c (update_stmt_operands): Remove
5204 MODIFIED_NORETURN_CALLS.
5205 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5206 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5207 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5208 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5209 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5210 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5211 (gimple_call_set_ctrl_altering): New func.
5212 (gimple_call_ctrl_altering_p): Ditto.
5213 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5214 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5215 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5216 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5217 remove MODIFIED_NORETURN_CALLS.
5218
5219 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5220
5221 * coverage.c (coverage_compute_profile_id): Return non-0;
5222 also handle symbols with unique name.
5223 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5224
5225 2014-08-20 Steve Ellcey <sellcey@mips.com>
5226
5227 PR middle-end/49191
5228 * doc/sourcebuild.texi (non_strict_align): New.
5229
5230 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5231
5232 * cgraphunit.c (ipa_passes, compile): Reshedule
5233 symtab_remove_unreachable_nodes passes; update comments.
5234 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5235 TODO_remove_functions before the pass; the functions ought to be
5236 already removed.
5237 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5238 TODO_remove_functions.
5239 * passes.c (pass_data_early_local_passes): Do not schedule function
5240 removal.
5241 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5242
5243 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5244
5245 PR c/59304
5246 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5247 before setting the option.
5248 * diagnostic.c (diagnostic_classify_diagnostic): Record
5249 command-line status.
5250
5251 2014-08-20 Richard Biener <rguenther@suse.de>
5252
5253 PR lto/62190
5254 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5255 to build uint{16,32,64}_type_node.
5256
5257 2014-08-20 Terry Guo <terry.guo@arm.com>
5258
5259 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5260 with immediate_operand.
5261
5262 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5263
5264 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5265 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5266 NULL.
5267
5268 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5269
5270 PR preprocessor/51303
5271 * incpath.c (remove_duplicates): Use cpp_warning.
5272
5273 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5274
5275 PR c/60975
5276 PR c/53063
5277 * doc/options.texi (CPP): Document it.
5278 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5279 * optc-gen.awk: Handle CPP.
5280 * opth-gen.awk: Likewise.
5281
5282 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5283
5284 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5285 rtx_insn *.
5286 (duplicate_insn_chain): Likewise.
5287 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5288 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5289 checked cast for now (until we can strengthen the params in the
5290 same way).
5291 (duplicate_insn_chain): Likewise.
5292
5293 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5294
5295 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5296 rtx_insn *.
5297 (prev_cc0_setter): Likewise.
5298
5299 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5300 rtx_insn *, adding checked casts for now as necessary.
5301 (prev_cc0_setter): Likewise.
5302
5303 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5304
5305 * expr.h (emit_move_insn): Strengthen return type from rtx to
5306 rtx_insn *.
5307 (emit_move_insn_1): Likewise.
5308 (emit_move_complex_push): Likewise.
5309 (emit_move_complex_parts): Likewise.
5310
5311 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5312 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5313 with insns.
5314 (emit_move_complex_push): Strengthen return type from rtx to
5315 rtx_insn *.
5316 (emit_move_complex): Likewise, also for local "ret".
5317 (emit_move_ccmode): Likewise.
5318 (emit_move_multi_word): Likewise for return type and locals
5319 "last_insn", "seq".
5320 (emit_move_insn_1): Likewise for return type and locals "result",
5321 "ret".
5322 (emit_move_insn): Likewise for return type and local "last_insn".
5323 (compress_float_constant): Likewise.
5324
5325 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5326
5327 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5328 from rtx to rtx_insn *.
5329
5330 * rtl.h (emit_insn_before): Likewise.
5331 (emit_insn_before_noloc): Likewise.
5332 (emit_insn_before_setloc): Likewise.
5333 (emit_jump_insn_before): Likewise.
5334 (emit_jump_insn_before_noloc): Likewise.
5335 (emit_jump_insn_before_setloc): Likewise.
5336 (emit_call_insn_before): Likewise.
5337 (emit_call_insn_before_noloc): Likewise.
5338 (emit_call_insn_before_setloc): Likewise.
5339 (emit_debug_insn_before): Likewise.
5340 (emit_debug_insn_before_noloc): Likewise.
5341 (emit_debug_insn_before_setloc): Likewise.
5342 (emit_label_before): Likewise.
5343 (emit_insn_after): Likewise.
5344 (emit_insn_after_noloc): Likewise.
5345 (emit_insn_after_setloc): Likewise.
5346 (emit_jump_insn_after): Likewise.
5347 (emit_jump_insn_after_noloc): Likewise.
5348 (emit_jump_insn_after_setloc): Likewise.
5349 (emit_call_insn_after): Likewise.
5350 (emit_call_insn_after_noloc): Likewise.
5351 (emit_call_insn_after_setloc): Likewise.
5352 (emit_debug_insn_after): Likewise.
5353 (emit_debug_insn_after_noloc): Likewise.
5354 (emit_debug_insn_after_setloc): Likewise.
5355 (emit_label_after): Likewise.
5356 (emit_insn): Likewise.
5357 (emit_debug_insn): Likewise.
5358 (emit_jump_insn): Likewise.
5359 (emit_call_insn): Likewise.
5360 (emit_label): Likewise.
5361 (gen_clobber): Likewise.
5362 (emit_clobber): Likewise.
5363 (gen_use): Likewise.
5364 (emit_use): Likewise.
5365 (emit): Likewise.
5366
5367 (emit_barrier_before): Strengthen return type from rtx to
5368 rtx_barrier *.
5369 (emit_barrier_after): Likewise.
5370 (emit_barrier): Likewise.
5371
5372 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5373 from rtx to rtx_insn *. Add checked casts for now when converting
5374 "last" from rtx to rtx_insn *.
5375 (emit_insn_before_noloc): Likewise for return type.
5376 (emit_jump_insn_before_noloc): Likewise.
5377 (emit_call_insn_before_noloc): Likewise.
5378 (emit_debug_insn_before_noloc): Likewise.
5379 (emit_barrier_before): Strengthen return type and local "insn"
5380 from rtx to rtx_barrier *.
5381 (emit_label_before): Strengthen return type from rtx to
5382 rtx_insn *. Add checked cast for now when returning param
5383 (emit_pattern_after_noloc): Strengthen return type from rtx to
5384 rtx_insn *. Add checked casts for now when converting "last" from
5385 rtx to rtx_insn *.
5386 (emit_insn_after_noloc): Strengthen return type from rtx to
5387 rtx_insn *.
5388 (emit_jump_insn_after_noloc): Likewise.
5389 (emit_call_insn_after_noloc): Likewise.
5390 (emit_debug_insn_after_noloc): Likewise.
5391 (emit_barrier_after): Strengthen return type from rtx to
5392 rtx_barrier *.
5393 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5394 Add checked cast for now when converting "label" from rtx to
5395 rtx_insn *.
5396 (emit_pattern_after_setloc): Strengthen return type from rtx to
5397 rtx_insn *. Add checked casts for now when converting "last" from
5398 rtx to rtx_insn *.
5399 (emit_pattern_after): Strengthen return type from rtx to
5400 rtx_insn *.
5401 (emit_insn_after_setloc): Likewise.
5402 (emit_insn_after): Likewise.
5403 (emit_jump_insn_after_setloc): Likewise.
5404 (emit_jump_insn_after): Likewise.
5405 (emit_call_insn_after_setloc): Likewise.
5406 (emit_call_insn_after): Likewise.
5407 (emit_debug_insn_after_setloc): Likewise.
5408 (emit_debug_insn_after): Likewise.
5409 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5410 when converting "last" from rtx to rtx_insn *.
5411 (emit_pattern_before): Strengthen return type from rtx to
5412 rtx_insn *.
5413 (emit_insn_before_setloc): Likewise.
5414 (emit_insn_before): Likewise.
5415 (emit_jump_insn_before_setloc): Likewise.
5416 (emit_jump_insn_before): Likewise.
5417 (emit_call_insn_before_setloc): Likewise.
5418 (emit_call_insn_before): Likewise.
5419 (emit_debug_insn_before_setloc): Likewise.
5420 (emit_debug_insn_before): Likewise.
5421 (emit_insn): Strengthen return type and locals "last", "insn",
5422 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5423 within cases where we know we have an insn.
5424 (emit_debug_insn): Likewise.
5425 (emit_jump_insn): Likewise.
5426 (emit_call_insn): Strengthen return type and local "insn" from rtx
5427 to rtx_insn *.
5428 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5429 a checked cast to rtx_insn * for now on "label".
5430 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5431 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5432 (emit_use): Likewise.
5433 (gen_use): Likewise, also for local "seq".
5434 (emit): Likewise for return type and local "insn".
5435 (rtx_insn): Likewise for return type and local "new_rtx".
5436
5437 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5438 from rtx to rtx_barrier *.
5439
5440 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5441 changed return type from rtx to rtx_insn *, we must update
5442 "emit_fn" type, and this in turn means updating...
5443 (frame_insn): ...this. Strengthen return type from rtx to
5444 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5445
5446 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5447
5448 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5449 rtx to rtx_jump_table_data *. Also for local.
5450 * rtl.h (emit_jump_table_data): Likewise.
5451
5452 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5453
5454 * basic-block.h (create_basic_block_structure): Strengthen third
5455 param "bb_note" from rtx to rtx_note *.
5456 * rtl.h (emit_note_before): Strengthen return type from rtx to
5457 rtx_note *.
5458 (emit_note_after): Likewise.
5459 (emit_note): Likewise.
5460 (emit_note_copy): Likewise. Also, strengthen param similarly.
5461 * function.h (struct rtl_data): Strengthen field
5462 "x_stack_check_probe_note" from rtx to rtx_note *.
5463
5464 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5465 from rtx to rtx_note *.
5466 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5467 "bb_note" from rtx to rtx_note *.
5468 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5469 when calling emit_note_copy.
5470 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5471 rtx_note *.
5472 (emit_note_after): Likewise.
5473 (emit_note_before): Likewise.
5474 (emit_note_copy): Likewise. Also, strengthen param similarly.
5475 (emit_note): Likewise.
5476 * except.c (emit_note_eh_region_end): Likewise for return type.
5477 Strengthen local "next" from rtx to rtx_insn *.
5478 (convert_to_eh_region_ranges): Strengthen local "note"
5479 from rtx to rtx_note *.
5480 * final.c (change_scope): Likewise.
5481 (reemit_insn_block_notes): Likewise, for both locals named "note".
5482 Also, strengthen local "insn" from rtx to rtx_insn *.
5483 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5484 rtx to rtx_note *.
5485 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5486 strengthen local "seq" from rtx to rtx_insn *.
5487 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5488 to rtx_note *.
5489 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5490 vec<rtx_note *>.
5491 (get_bb_note_from_pool): Strengthen return type from rtx to
5492 rtx_note *.
5493 (sel_create_basic_block): Strengthen local "new_bb_note" from
5494 insn_t to rtx_note *.
5495 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5496 "note" from rtx to rtx_note *.
5497 (emit_notes_in_bb): Likewise.
5498
5499 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5500
5501 * function.h (struct rtl_data): Strengthen field
5502 "x_parm_birth_insn" from rtx to rtx_insn *.
5503 * function.c (struct assign_parm_data_all): Strengthen fields
5504 "first_conversion_insn" and "last_conversion_insn" from rtx to
5505 rtx_insn *.
5506
5507 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5508
5509 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5510 to rtx_insn *; also for local "var_end_seq".
5511 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5512 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5513 "insn".
5514 (expand_gimple_cond): Likewise for locals "last2" and "last".
5515 (mark_transaction_restart_calls): Likewise for local "insn".
5516 (expand_gimple_stmt): Likewise for return type and locals "last"
5517 and "insn".
5518 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5519 (avoid_complex_debug_insns): Likewise for param "insn".
5520 (expand_debug_locations): Likewise for locals "insn", "last",
5521 "prev_insn" and "insn2".
5522 (expand_gimple_basic_block): Likewise for local "last".
5523 (construct_exit_block): Likewise for locals "head", "end",
5524 "orig_end".
5525 (pass_expand::execute): Likewise for locals "var_seq",
5526 "var_ret_seq", "next".
5527
5528 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5529
5530 * asan.h (asan_emit_stack_protection): Strengthen return type from
5531 rtx to rtx_insn *.
5532 * asan.c (asan_emit_stack_protection): Likewise. Add local
5533 "insns" to hold the return value.
5534
5535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5536
5537 * basic-block.h (bb_note): Strengthen return type from rtx to
5538 rtx_note *.
5539 * sched-int.h (bb_note): Likewise.
5540 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5541
5542 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5543
5544 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5545 rtx_insn *.
5546
5547 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5548 "insn" from rtx to rtx_insn *.
5549 (make_debug_insn_raw): Strengthen return type from rtx to
5550 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5551 (make_jump_insn_raw): Strengthen return type from rtx to
5552 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5553 (make_call_insn_raw): Strengthen return type from rtx to
5554 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5555 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5556 callback from rtx to rtx_insn *; likewise for local "insn" and
5557 "next", adding a checked cast to rtx_insn in the relevant cases of
5558 the switch statement.
5559 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5560 callback from rtx to rtx_insn *.
5561 (emit_pattern_after_setloc): Likewise.
5562 (emit_pattern_after): Likewise.
5563 (emit_pattern_before_setloc): Likewise.
5564 (emit_pattern_before): Likewise.
5565
5566 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5567
5568 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5569 rtx_call_insn *.
5570 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5571 accepting an rtx_insn *.
5572 (last_call_insn): Strengthen return type from rtx to
5573 rtx_call_insn *.
5574
5575 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5576
5577 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5578 "insns" from rtx to rtx_insn *.
5579 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5580 locals "insn" and "prev".
5581
5582 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5583
5584 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5585 rtx_jump_table_data **.
5586
5587 * cfgbuild.c (make_edges): Introduce local "table", using it in
5588 place of "tmp" for jump table data.
5589 (find_bb_boundaries): Strengthen local "table" from rtx to
5590 rtx_jump_table_data *.
5591 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5592 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5593 (try_crossjump_to_edge): Likewise.
5594 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5595 "table".
5596 (patch_jump_insn): Introduce local "table", using it in place of
5597 "tmp" for jump table data.
5598 (force_nonfallthru_and_redirect): Introduce local "table", so that
5599 call to tablejump_p can receive an rtx_jump_table_data **. Update
5600 logic around the call to overwrite "note" appropriately if
5601 tablejump_p returns non-zero.
5602 (get_last_bb_insn): Introduce local "table", using it in place of
5603 "tmp" for jump table data.
5604 * dwarf2cfi.c (create_trace_edges): Likewise.
5605
5606 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5607 from rtx to rtx_jump_table_data *.
5608 (create_fix_barrier): Strengthen local "tmp" from rtx to
5609 rtx_jump_table_data *.
5610 (arm_reorg): Likewise for local "table".
5611
5612 * config/s390/s390.c (s390_chunkify_start): Likewise.
5613
5614 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5615
5616 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5617 rtx to rtx_jump_table_data *.
5618
5619 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5620 rtx_jump_table_data **. Add a checked cast when writing through
5621 the pointer: we know there that local "table" is non-NULL and that
5622 JUMP_TABLE_DATA_P (table) holds.
5623 (label_is_jump_target_p): Introduce local "table", using it in
5624 place of "tmp" for jump table data.
5625
5626 2014-08-19 Marek Polacek <polacek@redhat.com>
5627
5628 PR c++/62153
5629 * doc/invoke.texi: Document -Wbool-compare.
5630
5631 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5632
5633 * rtl.h (entry_of_function): Strengthen return type from rtx to
5634 rtx_insn *.
5635 * cfgrtl.c (entry_of_function): Likewise.
5636
5637 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5638
5639 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5640 rtx_insn *, adding a checked cast for now.
5641 (get_last_insn): Likewise.
5642
5643 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5644
5645 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5646 rtx_code_label *.
5647
5648 * emit-rtl.c (gen_label_rtx): Likewise.
5649
5650 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5651
5652 * rtl.h (previous_insn): Strengthen return type from rtx to
5653 rtx_insn *.
5654 (next_insn): Likewise.
5655 (prev_nonnote_insn): Likewise.
5656 (prev_nonnote_insn_bb): Likewise.
5657 (next_nonnote_insn): Likewise.
5658 (next_nonnote_insn_bb): Likewise.
5659 (prev_nondebug_insn): Likewise.
5660 (next_nondebug_insn): Likewise.
5661 (prev_nonnote_nondebug_insn): Likewise.
5662 (next_nonnote_nondebug_insn): Likewise.
5663 (prev_real_insn): Likewise.
5664 (next_real_insn): Likewise.
5665 (prev_active_insn): Likewise.
5666 (next_active_insn): Likewise.
5667
5668 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5669 rtx_insn *, adding a checked cast.
5670 (previous_insn): Likewise.
5671 (next_nonnote_insn): Likewise.
5672 (next_nonnote_insn_bb): Likewise.
5673 (prev_nonnote_insn): Likewise.
5674 (prev_nonnote_insn_bb): Likewise.
5675 (next_nondebug_insn): Likewise.
5676 (prev_nondebug_insn): Likewise.
5677 (next_nonnote_nondebug_insn): Likewise.
5678 (prev_nonnote_nondebug_insn): Likewise.
5679 (next_real_insn): Likewise.
5680 (prev_real_insn): Likewise.
5681 (next_active_insn): Likewise.
5682 (prev_active_insn): Likewise.
5683
5684 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5685 param "stepfunc" so that it returns an rtx_insn * rather than an
5686 rtx, to track the change to prev_nonnote_insn_bb, which is the
5687 only function this is called with.
5688 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5689
5690 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5691
5692 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5693 assert.
5694
5695 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5696
5697 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5698 (class rtx_nonjump_insn): Likewise.
5699 (class rtx_jump_insn): Likewise.
5700 (class rtx_call_insn): Likewise.
5701 (class rtx_jump_table_data): Likewise.
5702 (class rtx_barrier): Likewise.
5703 (class rtx_code_label): Likewise.
5704 (class rtx_note): Likewise.
5705
5706 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5707 adding the invariant DEBUG_INSN_P (X).
5708 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5709 the invariant NONJUMP_INSN_P (X).
5710 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5711 the invariant JUMP_P (X).
5712 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5713 the invariant CALL_P (X).
5714 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5715 invariant JUMP_TABLE_DATA_P (X).
5716 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5717 invariant BARRIER_P (X).
5718 (class rtx_code_label): New, a subclass of rtx_insn, adding
5719 the invariant LABEL_P (X).
5720 (class rtx_note): New, a subclass of rtx_insn, adding
5721 the invariant NOTE_P(X).
5722 (is_a_helper <rtx_debug_insn *>::test): New.
5723 (is_a_helper <rtx_nonjump_insn *>::test): New.
5724 (is_a_helper <rtx_jump_insn *>::test): New.
5725 (is_a_helper <rtx_call_insn *>::test): New.
5726 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5727 overloaded for both rtx and rtx_insn *.
5728 (is_a_helper <rtx_barrier *>::test): New.
5729 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5730 for both rtx and rtx_insn *.
5731 (is_a_helper <rtx_note *>::test): New.
5732
5733 2014-08-19 Marek Polacek <polacek@redhat.com>
5734
5735 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5736 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5737 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5738 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5739
5740 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5741
5742 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5743 rtx_insn *. To help with transition, for now, convert from an
5744 access macro into a pair of functions: BND_TO, returning an
5745 rtx_insn *, and...
5746 (SET_BND_TO): New function, for use where BND_TO is used as an
5747 lvalue.
5748
5749 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5750 SET_BND_TO.
5751 (BND_TO): New function, adding a checked cast.
5752 (SET_BND_TO): New function.
5753
5754 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5755 SET_BND_TO.
5756 (compute_av_set_on_boundaries): Likewise.
5757
5758 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5759
5760 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5761 destination if it is used in source.
5762 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5763 (*popcount<mode>2_falsedep_1): Likewise.
5764
5765 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5766
5767 PR other/62168
5768 * configure.ac: Set install_gold_as_default to no first.
5769 * configure: Regenerated.
5770
5771 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5772
5773 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5774 "note_list" field will eventually be an rtx_insn *. To help with
5775 transition, for now, convert from an access macro into a pair of
5776 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5777 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5778 used as an lvalue.
5779
5780 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5781 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5782
5783 * sel-sched-ir.c (init_bb): Likewise.
5784 (sel_restore_notes): Likewise.
5785 (move_bb_info): Likewise.
5786 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5787 (SET_BB_NOTE_LIST): New function.
5788
5789 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5790
5791 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5792 field will eventually be an rtx_insn *. To help with transition,
5793 for now, convert from an access macro into a pair of functions:
5794 VINSN_INSN_RTX, returning an rtx_insn *, and...
5795 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5796 is used as an lvalue.
5797
5798 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5799 SET_VINSN_INSN_RTX where it's used as an lvalue.
5800 (VINSN_INSN_RTX): New function.
5801 (SET_VINSN_INSN_RTX): New function.
5802
5803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5804
5805 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5806 eventually be rtx_insn *, but to help with transition, for now,
5807 convert from an access macro into a pair of functions: DEP_PRO
5808 returning an rtx_insn * and...
5809 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5810 lvalue, returning an rtx&.
5811 (DEP_CON): Analogous changes to DEP_PRO above.
5812 (SET_DEP_CON): Likewise.
5813
5814 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5815 an lvalue to SET_DEP_CON.
5816 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5817 (sd_copy_back_deps): Likewise for DEP_CON.
5818 (DEP_PRO): New function, adding a checked cast for now.
5819 (DEP_CON): Likewise.
5820 (SET_DEP_PRO): New function.
5821 (SET_DEP_CON): Likewise.
5822
5823 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5824
5825 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5826 (extra_options): Add i386/cygwin.opt.
5827 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5828 (CPP_SPEC): Accept -pthread.
5829 (LINK_SPEC): Ditto.
5830 (GOMP_SELF_SPECS): Update comment.
5831 * config/i386/cygwin.opt: New file for -pthread flag.
5832
5833 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5834
5835 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5836 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5837 that we can return an rtx_insn *.
5838
5839 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5840
5841 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5842 when building executables, not DLLs. Add --large-address-aware
5843 under the same conditions.
5844 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5845 when building executables, not DLLs. Add --large-address-aware
5846 under the same conditions when using -m32.
5847
5848 * config/i386/cygwin-stdint.h: Throughout, make type
5849 definitions dependent on target architecture, not host.
5850
5851 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5852
5853 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5854 the return type from rtx to rtx_insn *, which will enable various
5855 conversions in followup patches. For now this is is done by a
5856 checked cast.
5857 (NEXT_INSN): Likewise.
5858 (SET_PREV_INSN): Convert to an inline function. This is intended
5859 for use as an lvalue, and so returns an rtx& to allow in-place
5860 modification.
5861 (SET_NEXT_INSN): Likewise.
5862
5863 2014-07-08 Mark Wielaard <mjw@redhat.com>
5864
5865 PR debug/59051
5866 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5867
5868 2014-08-19 Marek Polacek <polacek@redhat.com>
5869
5870 PR c/61271
5871 * cgraphunit.c (handle_alias_pairs): Fix condition.
5872
5873 2014-08-19 Richard Biener <rguenther@suse.de>
5874
5875 * gimple-fold.c (fold_gimple_assign): Properly build a
5876 null-pointer constant when devirtualizing addresses.
5877
5878 2014-07-07 Mark Wielaard <mjw@redhat.com>
5879
5880 * dwarf2out.c (decl_quals): New function.
5881 (modified_type_die): Take one cv_quals argument instead of two,
5882 one for const and one for volatile.
5883 (add_type_attribute): Likewise.
5884 (generic_parameter_die): Call add_type_attribute with one modifier
5885 argument.
5886 (base_type_for_mode): Likewise.
5887 (add_bounds_info): Likewise.
5888 (add_subscript_info): Likewise.
5889 (gen_array_type_die): Likewise.
5890 (gen_descr_array_type_die): Likewise.
5891 (gen_entry_point_die): Likewise.
5892 (gen_enumeration_type_die): Likewise.
5893 (gen_formal_parameter_die): Likewise.
5894 (gen_subprogram_die): Likewise.
5895 (gen_variable_die): Likewise.
5896 (gen_const_die): Likewise.
5897 (gen_field_die): Likewise.
5898 (gen_pointer_type_die): Likewise.
5899 (gen_reference_type_die): Likewise.
5900 (gen_ptr_to_mbr_type_die): Likewise.
5901 (gen_inheritance_die): Likewise.
5902 (gen_subroutine_type_die): Likewise.
5903 (gen_typedef_die): Likewise.
5904 (force_type_die): Likewise.
5905
5906 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5907
5908 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5909 if unset.
5910 * configure: Regenerate.
5911
5912 2014-08-19 Richard Biener <rguenther@suse.de>
5913
5914 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5915 DECL_EXTERNALs in BLOCKs as non-references.
5916 * tree-streamer-out.c (streamer_write_chain): Likewise.
5917
5918 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5920 Anna Tikhonova <anna.tikhonova@intel.com>
5921 Ilya Tocar <ilya.tocar@intel.com>
5922 Andrey Turetskiy <andrey.turetskiy@intel.com>
5923 Ilya Verbin <ilya.verbin@intel.com>
5924 Kirill Yukhin <kirill.yukhin@intel.com>
5925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5926
5927 * config/i386/sse.md
5928 (define_mode_iterator VI48_AVX512F): Delete.
5929 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5930 (define_mode_iterator VI2_AVX512VL): Ditto.
5931 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5932 Delete.
5933 (define_insn
5934 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5935 New.
5936 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5937 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5938 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5939 with VI48_AVX512F_AVX512VL): New.
5940 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5941 with VI2_AVX512VL): Ditto.
5942
5943 2014-08-19 Marek Polacek <polacek@redhat.com>
5944
5945 * doc/invoke.texi: Document -Wc99-c11-compat.
5946
5947 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5948
5949 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5950 for rvalues, and...
5951 (SET_PREV_INSN): New macro, for use as an lvalue.
5952 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5953
5954 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5955 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5956 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5957 (fixup_abnormal_edges): Likewise.
5958 (unlink_insn_chain): Likewise.
5959 (fixup_reorder_chain): Likewise.
5960 (cfg_layout_delete_block): Likewise.
5961 (cfg_layout_merge_blocks): Likewise.
5962 * combine.c (update_cfg_for_uncondjump): Likewise.
5963 * emit-rtl.c (link_insn_into_chain): Likewise.
5964 (remove_insn): Likewise.
5965 (delete_insns_since): Likewise.
5966 (reorder_insns_nobb): Likewise.
5967 (emit_insn_after_1): Likewise.
5968 * final.c (rest_of_clean_state): Likewise.
5969 (final_scan_insn): Likewise.
5970 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5971 * haifa-sched.c (concat_note_lists): Likewise.
5972 (remove_notes): Likewise.
5973 (restore_other_notes): Likewise.
5974 (move_insn): Likewise.
5975 (unlink_bb_notes): Likewise.
5976 (restore_bb_notes): Likewise.
5977 * jump.c (delete_for_peephole): Likewise.
5978 * optabs.c (emit_libcall_block_1): Likewise.
5979 * reorg.c (emit_delay_sequence): Likewise.
5980 (fill_simple_delay_slots): Likewise.
5981 * sel-sched-ir.c (sel_move_insn): Likewise.
5982 (sel_remove_insn): Likewise.
5983 (get_bb_note_from_pool): Likewise.
5984 * sel-sched.c (move_nop_to_previous_block): Likewise.
5985
5986 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5987 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5988 (c6x_gen_bundles): Likewise.
5989 (hwloop_optimize): Likewise.
5990 * config/frv/frv.c (frv_function_prologue): Likewise.
5991 (frv_register_nop): Likewise.
5992 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5993 (ia64_reorg): Likewise.
5994 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5995 (mep_make_bundle): Likewise.
5996 (mep_bundle_insns): Likewise.
5997 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5998 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5999 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6000
6001 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6002
6003 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6004 return type from rtx to rtx_insn *.
6005 (BB_END): Likewise.
6006 (BB_HEADER): Likewise.
6007 (BB_FOOTER): Likewise.
6008 (SET_BB_HEAD): Convert to a function.
6009 (SET_BB_END): Likewise.
6010 (SET_BB_HEADER): Likewise.
6011 (SET_BB_FOOTER): Likewise.
6012
6013 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6014 Strengthen the return type from rtx to rtx_insn *. For now, this
6015 is done by adding a checked cast, but this will eventually
6016 become a field lookup.
6017 (BB_END): Likewise.
6018 (BB_HEADER): Likewise.
6019 (BB_FOOTER): Likewise.
6020 (SET_BB_HEAD): New function, from macro of same name. This is
6021 intended for use as an lvalue, and so returns an rtx& to allow
6022 in-place modification.
6023 (SET_BB_END): Likewise.
6024 (SET_BB_HEADER): Likewise.
6025 (SET_BB_FOOTER): Likewise.
6026
6027 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6028
6029 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6030 for rvalues, and...
6031 (SET_BB_HEAD): New macro, for use as a lvalue.
6032 (BB_END, SET_BB_END): Likewise.
6033 (BB_HEADER, SET_BB_HEADER): Likewise.
6034 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6035
6036 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6037 of BB_* macros into SET_BB_* macros.
6038 (fix_crossing_unconditional_branches): Likewise.
6039 * caller-save.c (save_call_clobbered_regs): Likewise.
6040 (insert_one_insn): Likewise.
6041 * cfgbuild.c (find_bb_boundaries): Likewise.
6042 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6043 (outgoing_edges_match): Likewise.
6044 (try_optimize_cfg): Likewise.
6045 * cfgexpand.c (expand_gimple_cond): Likewise.
6046 (expand_gimple_tailcall): Likewise.
6047 (expand_gimple_basic_block): Likewise.
6048 (construct_exit_block): Likewise.
6049 * cfgrtl.c (delete_insn): Likewise.
6050 (create_basic_block_structure): Likewise.
6051 (rtl_delete_block): Likewise.
6052 (rtl_split_block): Likewise.
6053 (emit_nop_for_unique_locus_between): Likewise.
6054 (rtl_merge_blocks): Likewise.
6055 (block_label): Likewise.
6056 (try_redirect_by_replacing_jump): Likewise.
6057 (emit_barrier_after_bb): Likewise.
6058 (fixup_abnormal_edges): Likewise.
6059 (record_effective_endpoints): Likewise.
6060 (relink_block_chain): Likewise.
6061 (fixup_reorder_chain): Likewise.
6062 (fixup_fallthru_exit_predecessor): Likewise.
6063 (cfg_layout_duplicate_bb): Likewise.
6064 (cfg_layout_split_block): Likewise.
6065 (cfg_layout_delete_block): Likewise.
6066 (cfg_layout_merge_blocks): Likewise.
6067 * combine.c (update_cfg_for_uncondjump): Likewise.
6068 * emit-rtl.c (add_insn_after): Likewise.
6069 (remove_insn): Likewise.
6070 (reorder_insns): Likewise.
6071 (emit_insn_after_1): Likewise.
6072 * haifa-sched.c (get_ebb_head_tail): Likewise.
6073 (restore_other_notes): Likewise.
6074 (move_insn): Likewise.
6075 (sched_extend_bb): Likewise.
6076 (fix_jump_move): Likewise.
6077 * ifcvt.c (noce_process_if_block): Likewise.
6078 (dead_or_predicable): Likewise.
6079 * ira.c (update_equiv_regs): Likewise.
6080 * reg-stack.c (change_stack): Likewise.
6081 * sel-sched-ir.c (sel_move_insn): Likewise.
6082 * sel-sched.c (move_nop_to_previous_block): Likewise.
6083
6084 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6085 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6086
6087 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6088
6089 * rtl.h (for_each_rtx_in_insn): New function.
6090 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6091
6092 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6093
6094 * coretypes.h (class rtx_insn): Add forward declaration.
6095
6096 * rtl.h: Include is-a.h.
6097 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6098 workaround to ensure gengtype knows inheritance is occurring,
6099 whilst continuing to use the pre-existing special-casing for
6100 rtx_def.
6101 (class rtx_insn): New subclass of rtx_def, adding the
6102 invariant that we're dealing with something we can sanely use
6103 INSN_UID, NEXT_INSN, PREV_INSN on.
6104 (is_a_helper <rtx_insn *>::test): New.
6105 (is_a_helper <const rtx_insn *>::test): New.
6106
6107 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6108
6109 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6110
6111 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6112
6113 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6114 comdats as extern.
6115
6116 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6117
6118 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6119 to BUILT_IN_UNREACHABLE.
6120
6121 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6122
6123 PR target/62011
6124 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6125 New tune flag.
6126 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6127 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6128 (ffs<mode>2): Do not expand with tzcnt for
6129 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6130 (ffssi2_no_cmove): Ditto.
6131 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6132 (ctz<mode>2): New expander.
6133 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6134 (*ctz<mode>2_falsedep): New insn.
6135 (*ctz<mode>2): Rename from ctz<mode>2.
6136 (clz<mode>2_lzcnt): New expander.
6137 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6138 (*clz<mode>2_lzcnt_falsedep): New insn.
6139 (*clz<mode>2): Rename from ctz<mode>2.
6140 (popcount<mode>2): New expander.
6141 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6142 (*popcount<mode>2_falsedep): New insn.
6143 (*popcount<mode>2): Rename from ctz<mode>2.
6144 (*popcount<mode>2_cmp): Remove.
6145 (*popcountsi2_cmp_zext): Ditto.
6146
6147 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6148
6149 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6150 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6151 * config/microblaze/microblaze.h
6152 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6153
6154 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6155
6156 PR other/62168
6157 * configure.ac: Set install_gold_as_default to no for
6158 --enable-gold=no.
6159 * configure: Regenerated.
6160
6161 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6162
6163 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6164 * config.in: Add undef of HAVE_isl.
6165 * configure: Regenerate.
6166 * configure.ac: Add definition of HAVE_isl.
6167 * graphite-blocking.c: Add checking of HAVE_isl.
6168 * graphite-dependences.c: Likewise.
6169 * graphite-interchange.c: Likewise.
6170 * graphite-isl-ast-to-gimple.c: Likewise.
6171 * graphite-optimize-isl.c: Likewise.
6172 * graphite-poly.c: Likewise.
6173 * graphite-scop-detection.c: Likewise.
6174 * graphite-sese-to-poly.c: Likewise.
6175 * graphite.c: Likewise.
6176 * toplev.c: Replace the checking of HAVE_cloog with the checking
6177 of HAVE_isl.
6178
6179 2014-08-18 Richard Biener <rguenther@suse.de>
6180
6181 PR tree-optimization/62090
6182 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6183 (fold_builtin_3): Do not fold snprintf.
6184 (fold_builtin_4): Likewise.
6185 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6186 moved from builtins.c.
6187 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6188 (gimple_fold_builtin): Do not fold sprintf here.
6189
6190 2014-08-18 Richard Biener <rguenther@suse.de>
6191
6192 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6193 code to ...
6194 (maybe_canonicalize_mem_ref_addr): ... this function.
6195 (fold_stmt_1): Apply it here before all simplification.
6196
6197 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6198
6199 PR ipa/61800
6200 * cgraph.h (cgraph_node::create_indirect_edge): Add
6201 compute_indirect_info param.
6202 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6203 indirect_info only when it is required.
6204 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6205 indirect_info fore cloned indirect edge.
6206
6207 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6209 Anna Tikhonova <anna.tikhonova@intel.com>
6210 Ilya Tocar <ilya.tocar@intel.com>
6211 Andrey Turetskiy <andrey.turetskiy@intel.com>
6212 Ilya Verbin <ilya.verbin@intel.com>
6213 Kirill Yukhin <kirill.yukhin@intel.com>
6214 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6215
6216 * config/i386/sse.md
6217 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6218 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6219
6220 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6221 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6222 Anna Tikhonova <anna.tikhonova@intel.com>
6223 Ilya Tocar <ilya.tocar@intel.com>
6224 Andrey Turetskiy <andrey.turetskiy@intel.com>
6225 Ilya Verbin <ilya.verbin@intel.com>
6226 Kirill Yukhin <kirill.yukhin@intel.com>
6227 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6228
6229 * config/i386/sse.md
6230 (define_mode_iterator VF1_AVX512VL): New.
6231 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6232 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6233 New.
6234
6235 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6236 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6237 Anna Tikhonova <anna.tikhonova@intel.com>
6238 Ilya Tocar <ilya.tocar@intel.com>
6239 Andrey Turetskiy <andrey.turetskiy@intel.com>
6240 Ilya Verbin <ilya.verbin@intel.com>
6241 Kirill Yukhin <kirill.yukhin@intel.com>
6242 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6243
6244 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6245 * config/i386/i386.md
6246 (define_code_iterator any_float): New.
6247 (define_code_attr floatsuffix): New.
6248 * config/i386/sse.md
6249 (define_mode_iterator VF1_128_256VL): New.
6250 (define_mode_iterator VF2_512_256VL): New.
6251 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6252 TARGET check.
6253 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6254 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6255 New.
6256 (define_mode_attr qq2pssuff): New.
6257 (define_mode_attr sselongvecmode): New.
6258 (define_mode_attr sselongvecmodelower): New.
6259 (define_mode_attr sseintvecmode3): New.
6260 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6261 New.
6262 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6263 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6264 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6265 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6266
6267 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6268 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6269 Anna Tikhonova <anna.tikhonova@intel.com>
6270 Ilya Tocar <ilya.tocar@intel.com>
6271 Andrey Turetskiy <andrey.turetskiy@intel.com>
6272 Ilya Verbin <ilya.verbin@intel.com>
6273 Kirill Yukhin <kirill.yukhin@intel.com>
6274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6275
6276 * config/i386/sse.md
6277 (define_mode_iterator VF2_AVX512VL): New.
6278 (define_mode_attr sseintvecmode2): New.
6279 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6280 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6281 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6282 (define_insn
6283 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6284 Ditto.
6285 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6286 Ditto.
6287 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6288 Ditto.
6289
6290 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6291 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6292 Anna Tikhonova <anna.tikhonova@intel.com>
6293 Ilya Tocar <ilya.tocar@intel.com>
6294 Andrey Turetskiy <andrey.turetskiy@intel.com>
6295 Ilya Verbin <ilya.verbin@intel.com>
6296 Kirill Yukhin <kirill.yukhin@intel.com>
6297 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6298
6299 * config/i386/i386.md
6300 (define_insn "*movoi_internal_avx"): Add evex version.
6301 (define_insn "*movti_internal"): Ditto.
6302
6303 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6304 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6305 Anna Tikhonova <anna.tikhonova@intel.com>
6306 Ilya Tocar <ilya.tocar@intel.com>
6307 Andrey Turetskiy <andrey.turetskiy@intel.com>
6308 Ilya Verbin <ilya.verbin@intel.com>
6309 Kirill Yukhin <kirill.yukhin@intel.com>
6310 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6311
6312 * config/i386/i386.md
6313 (define_attr "isa"): Add avx512dq, noavx512dq.
6314 (define_attr "enabled"): Ditto.
6315 * config/i386/sse.md
6316 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6317
6318 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6320 Anna Tikhonova <anna.tikhonova@intel.com>
6321 Ilya Tocar <ilya.tocar@intel.com>
6322 Andrey Turetskiy <andrey.turetskiy@intel.com>
6323 Ilya Verbin <ilya.verbin@intel.com>
6324 Kirill Yukhin <kirill.yukhin@intel.com>
6325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6326
6327 * config/i386/i386.c
6328 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6329 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6330 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6331 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6332 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6333 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6334 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6335 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6336 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6337 * config/i386/sse.md
6338 (define_mode_iterator VMOVE): Allow V4TI mode.
6339 (define_mode_iterator V_AVX512VL): New.
6340 (define_mode_iterator V): New handling for AVX512VL.
6341 (define_insn "avx512f_load<mode>_mask"): Delete.
6342 (define_insn "<avx512>_load<mode>_mask"): New.
6343 (define_insn "avx512f_store<mode>_mask"): Delete.
6344 (define_insn "<avx512>_store<mode>_mask"): New.
6345
6346
6347 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6348
6349 PR sanitizer/62089
6350 * asan.c (instrument_derefs): Fix bitfield check.
6351
6352 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6353
6354 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6355 * config/rs6000/htm.md (ttest): Remove clobber.
6356 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6357 (and_operand): Reformat.
6358 (and_2rld_operand): New predicate.
6359 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6360 parameter.
6361 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6362 parameter. Handle AND directly.
6363 (rs6000_split_logical_di): Remove last parameter.
6364 (rs6000_split_logical): Remove last parameter. Remove obsolete
6365 comment.
6366 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6367 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6368 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6369 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6370 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6371 and 5 anonymous splitters): Delete.
6372 (and<mode>3): New expander.
6373 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6374 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6375 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6376 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6377 (floatdisf2_internal1): Remove clobbers.
6378 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6379 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6380 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6381 (and<mode>3 for BOOL_128): Remove clobber.
6382 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6383 rs6000_split_logical.
6384 (*bool<mode>3_internal for BOOL_128): Adjust call of
6385 rs6000_split_logical.
6386 (*boolc<mode>3_internal1 for BOOL_128,
6387 *boolc<mode>3_internal2 for BOOL_128,
6388 *boolcc<mode>3_internal1 for BOOL_128,
6389 *boolcc<mode>3_internal2 for BOOL_128,
6390 *eqv<mode>3_internal1 for BOOL_128,
6391 *eqv<mode>3_internal2 for BOOL_128,
6392 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6393 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6394 clobber.
6395 (*vec_reload_and_reg_<mptrsize>): Delete.
6396
6397 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6398
6399 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6400 and split, *boolccsi3_internal3 and split): Delete.
6401 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6402 *boolccdi3_internal3 and split): Delete.
6403 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6404 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6405
6406 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6407
6408 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6409 and split, *boolcsi3_internal3 and split): Delete.
6410 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6411 *boolcdi3_internal3 and split): Delete.
6412 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6413
6414 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6415
6416 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6417 <'u'>: Also support printing the low-order 16 bits.
6418 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6419 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6420 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6421 *booldi3_internal3 and split): Delete.
6422 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6423 *bool<mode>3_dot2): New.
6424 (two anonymous define_splits for non_logical_cint_operand): Merge.
6425
6426 2014-08-17 Marek Polacek <polacek@redhat.com>
6427 Manuel López-Ibáñez <manu@gcc.gnu.org>
6428
6429 PR c/62059
6430 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6431 (diagnostic_show_locus): Don't print caret diagnostic
6432 if a column is larger than the line_width.
6433
6434 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6435
6436 * common.opt: Make the ISL AST generator to be the main code generator
6437 of Graphite.
6438
6439 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6440
6441 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6442
6443 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6444
6445 PR target/61641
6446 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6447 Declare.
6448 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6449 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6450 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6451 Define.
6452 * config/pa/pa.md (begin_brtab): Delete insn.
6453 (end_brtab): Likewise.
6454
6455 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6456
6457 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6458
6459 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6460
6461 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6462 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6463 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6464 (get_dynamic_type): Remove.
6465 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6466 (clear_speculation): Bring to ipa-deivrt.h
6467 (get_class_context): Rename to ...
6468 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6469 (contains_type_p): Update.
6470 (get_dynamic_type): Rename to ...
6471 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6472 (possible_polymorphic_call_targets): UPdate.
6473 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6474 * ipa-prop.c (ipa_analyze_call_uses): Update.
6475
6476 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6477
6478 * doc/invoke.texi (SH options): Document missing processor variant
6479 options. Remove references to Hitachi. Undocument deprecated mspace
6480 option.
6481
6482 2014-08-15 Jason Merrill <jason@redhat.com>
6483
6484 * tree.c (type_hash_canon): Uncomment assert.
6485
6486 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6487
6488 * input.h (in_system_header_at): Add comment.
6489
6490 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6491
6492 PR fortran/44054
6493 * diagnostic.c (build_message_string): Make it extern.
6494 * diagnostic.h (build_message_string): Make it extern.
6495
6496 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6497
6498 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6499 load/store from/to non-floating class pseudo.
6500
6501 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6502
6503 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6504
6505 2014-08-15 Richard Biener <rguenther@suse.de>
6506
6507 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6508 (get_constraint_for_ssa_var): Remove dead code.
6509 (get_constraint_for_1): Adjust.
6510 (find_what_var_points_to): Likewise.
6511 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6512
6513 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6514
6515 PR target/61878
6516 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6517 (_mm512_mask_cmpge_epu32_mask): Ditto.
6518 (_mm512_cmpge_epu32_mask): Ditto.
6519 (_mm512_mask_cmpge_epi64_mask): Ditto.
6520 (_mm512_cmpge_epi64_mask): Ditto.
6521 (_mm512_mask_cmpge_epu64_mask): Ditto.
6522 (_mm512_cmpge_epu64_mask): Ditto.
6523 (_mm512_mask_cmple_epi32_mask): Ditto.
6524 (_mm512_cmple_epi32_mask): Ditto.
6525 (_mm512_mask_cmple_epu32_mask): Ditto.
6526 (_mm512_cmple_epu32_mask): Ditto.
6527 (_mm512_mask_cmple_epi64_mask): Ditto.
6528 (_mm512_cmple_epi64_mask): Ditto.
6529 (_mm512_mask_cmple_epu64_mask): Ditto.
6530 (_mm512_cmple_epu64_mask): Ditto.
6531 (_mm512_mask_cmplt_epi32_mask): Ditto.
6532 (_mm512_cmplt_epi32_mask): Ditto.
6533 (_mm512_mask_cmplt_epu32_mask): Ditto.
6534 (_mm512_cmplt_epu32_mask): Ditto.
6535 (_mm512_mask_cmplt_epi64_mask): Ditto.
6536 (_mm512_cmplt_epi64_mask): Ditto.
6537 (_mm512_mask_cmplt_epu64_mask): Ditto.
6538 (_mm512_cmplt_epu64_mask): Ditto.
6539 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6540 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6541 (_mm512_cmpneq_epu32_mask): Ditto.
6542 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6543 (_mm512_cmpneq_epi64_mask): Ditto.
6544 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6545 (_mm512_cmpneq_epu64_mask): Ditto.
6546 (_mm512_castpd_ps): Ditto.
6547 (_mm512_castpd_si512): Ditto.
6548 (_mm512_castps_pd): Ditto.
6549 (_mm512_castps_si512): Ditto.
6550 (_mm512_castsi512_ps): Ditto.
6551 (_mm512_castsi512_pd): Ditto.
6552 (_mm512_castpd512_pd128): Ditto.
6553 (_mm512_castps512_ps128): Ditto.
6554 (_mm512_castsi512_si128): Ditto.
6555 (_mm512_castpd512_pd256): Ditto.
6556 (_mm512_castps512_ps256): Ditto.
6557 (_mm512_castsi512_si256): Ditto.
6558 (_mm512_castpd128_pd512): Ditto.
6559 (_mm512_castps128_ps512): Ditto.
6560 (_mm512_castsi128_si512): Ditto.
6561 (_mm512_castpd256_pd512): Ditto.
6562 (_mm512_castps256_ps512): Ditto.
6563 (_mm512_castsi256_si512): Ditto.
6564 (_mm512_cmpeq_epu32_mask): Ditto.
6565 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6566 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6567 (_mm512_cmpeq_epu64_mask): Ditto.
6568 (_mm512_cmpgt_epu32_mask): Ditto.
6569 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6570 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6571 (_mm512_cmpgt_epu64_mask): Ditto.
6572 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6573 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6574 * config/i386/i386.c (enum ix86_builtins): Add
6575 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6576 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6577 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6578 (bdesc_args): Add __builtin_ia32_si512_256si,
6579 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6580 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6581 __builtin_ia32_pd512_pd.
6582 (ix86_expand_args_builtin): Handle new FTYPEs.
6583 * config/i386/sse.md (castmode): Add 512-bit modes.
6584 (AVX512MODE2P): New.
6585 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6586 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6587
6588 2014-08-15 Richard Biener <rguenther@suse.de>
6589
6590 * fold-const.c (tree_swap_operands_p): Put all constants
6591 last, also strip sign-changing NOPs when considering further
6592 canonicalization. Canonicalize also when optimizing for size.
6593
6594 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6595
6596 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6597 one_match > zero_match case to just before simple_sequence.
6598
6599 2014-08-15 Richard Biener <rguenther@suse.de>
6600
6601 * data-streamer.h (streamer_string_index, string_for_index):
6602 Remove.
6603 * data-streamer-out.c (streamer_string_index): Make static.
6604 * data-streamer-in.c (string_for_index): Likewise.
6605 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6606 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6607
6608 2014-08-15 Richard Biener <rguenther@suse.de>
6609
6610 PR tree-optimization/62031
6611 * tree-data-ref.c (dr_analyze_indices): Do not set
6612 DR_UNCONSTRAINED_BASE.
6613 (dr_may_alias_p): All indirect accesses have to go the
6614 formerly DR_UNCONSTRAINED_BASE path.
6615 * tree-data-ref.h (struct indices): Remove
6616 unconstrained_base member.
6617 (DR_UNCONSTRAINED_BASE): Remove.
6618
6619 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6620
6621 PR middle-end/62092
6622 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6623 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6624 in OMP_CLAUSE_MAP in some outer target region.
6625
6626 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6627
6628 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6629 name_expansion_cache.
6630 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6631 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6632 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6633 (difference_cannot_overflow_p): New parameter. Use affine
6634 expansion for equality check.
6635 (iv_elimination_compare_lt): Pass new argument.
6636
6637 2014-08-14 DJ Delorie <dj@redhat.com>
6638
6639 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6640 variables to the accumulator.
6641
6642 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6643 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6644 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6645 with far-far moves.
6646
6647 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6648 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6649 (umulqihi3_virt): Likewise.
6650 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6651 (umulqihi3_real): Likewise.
6652
6653 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6654
6655 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6656
6657 PR tree-optimization/62091
6658 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6659 function_entry_reached.
6660 (walk_aliased_vdefs): Clear it here.
6661 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6662
6663 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6664
6665 * ipa-utils.h (compare_virtual_tables): Declare.
6666 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6667
6668 2014-08-14 Marek Polacek <polacek@redhat.com>
6669
6670 DR 458
6671 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6672 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6673
6674 2014-08-14 Tom de Vries <tom@codesourcery.com>
6675
6676 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6677
6678 2014-08-14 Tom de Vries <tom@codesourcery.com>
6679
6680 PR rtl-optimization/62004
6681 PR rtl-optimization/62030
6682 * ifcvt.c (rtx_interchangeable_p): New function.
6683 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6684 * emit-rtl.h (mem_attrs_eq_p): Declare.
6685
6686 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6687
6688 * graphite-scop-detection.c:
6689 Add inclusion of cp-tree.h.
6690 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6691 in case they are pointers to object types
6692
6693 2014-08-14 Richard Biener <rguenther@suse.de>
6694
6695 * BASE-VER: Change to 5.0.0
6696
6697 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6698 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6699 Anna Tikhonova <anna.tikhonova@intel.com>
6700 Ilya Tocar <ilya.tocar@intel.com>
6701 Andrey Turetskiy <andrey.turetskiy@intel.com>
6702 Ilya Verbin <ilya.verbin@intel.com>
6703 Kirill Yukhin <kirill.yukhin@intel.com>
6704 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6705
6706 * config/i386/sse.md (define_mode_attr avx512): New.
6707 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6708 V4DI modes.
6709 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6710 (define_mode_attr ssse3_avx2): Ditto.
6711 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6712 (define_mode_attr avx2_avx512bw): New.
6713 (define_mode_attr ssedoublemodelower): New.
6714 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6715 V32HI, V64QI modes.
6716 (define_mode_attr ssebytemode): Allow V8DI modes.
6717 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6718 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6719 (define_mode_attr ssePSmode2): New.
6720 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6721 V16HI, V32HI modes.
6722 (define_mode_attr dbpsadbwmode): New.
6723 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6724 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6725 (vi8_sse4_1_avx2_avx512): New.
6726 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6727 mode attribute.
6728 (define_mode_attr blendbits): Move before its immediate use.
6729
6730 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6731 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6732 Anna Tikhonova <anna.tikhonova@intel.com>
6733 Ilya Tocar <ilya.tocar@intel.com>
6734 Andrey Turetskiy <andrey.turetskiy@intel.com>
6735 Ilya Verbin <ilya.verbin@intel.com>
6736 Kirill Yukhin <kirill.yukhin@intel.com>
6737 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6738
6739 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6740 * config/i386/subst.md
6741 (define_mode_iterator SUBST_V): Update.
6742 (define_mode_iterator SUBST_A): Ditto.
6743 (define_subst_attr "mask_operand7"): New.
6744 (define_subst_attr "mask_operand10"): New.
6745 (define_subst_attr "mask_operand_arg34") : New.
6746 (define_subst_attr "mask_expand_op3"): New.
6747 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6748 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6749 (define_subst_attr "mask_avx512vl_condition"): New.
6750 (define_subst_attr "round_mask_operand4"): Ditto.
6751 (define_subst_attr "round_mask_scalar_op3"): Delete.
6752 (define_subst_attr "round_mask_op4"): New.
6753 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6754 V16SImode.
6755 (define_subst_attr "round_modev8sf_condition"): New.
6756 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6757 <MODE>mode.
6758 (define_subst_attr "round_saeonly_mask_operand4"): New.
6759 (define_subst_attr "round_saeonly_mask_op4"): New.
6760 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6761 V8DImode, V16SImode.
6762 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6763 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6764 (define_subst_attr "mask_expand4_args"): New.
6765 (define_subst "mask_expand4"): New.
6766
6767 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6769 Anna Tikhonova <anna.tikhonova@intel.com>
6770 Ilya Tocar <ilya.tocar@intel.com>
6771 Andrey Turetskiy <andrey.turetskiy@intel.com>
6772 Ilya Verbin <ilya.verbin@intel.com>
6773 Kirill Yukhin <kirill.yukhin@intel.com>
6774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6775
6776 * config/i386/i386.md
6777 (define_attr "isa"): Add avx512bw,noavx512bw.
6778 (define_attr "enabled"): Ditto.
6779 (define_split): Add 32/64-bit mask logic.
6780 (define_insn "*k<logic>qi"): New.
6781 (define_insn "*k<logic>hi"): New.
6782 (define_insn "*anddi_1"): Add mask version.
6783 (define_insn "*andsi_1"): Ditto.
6784 (define_insn "*<code><mode>_1"): Ditto.
6785 (define_insn "*<code>hi_1"): Ditto.
6786 (define_insn "kxnor<mode>"): New.
6787 (define_insn "kunpcksi"): New.
6788 (define_insn "kunpckdi"): New.
6789 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6790 (define_insn "*one_cmplhi2_1"): Ditto.
6791
6792 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6794 Anna Tikhonova <anna.tikhonova@intel.com>
6795 Ilya Tocar <ilya.tocar@intel.com>
6796 Andrey Turetskiy <andrey.turetskiy@intel.com>
6797 Ilya Verbin <ilya.verbin@intel.com>
6798 Kirill Yukhin <kirill.yukhin@intel.com>
6799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6800
6801 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6802 V32HImode.
6803
6804 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6806 Anna Tikhonova <anna.tikhonova@intel.com>
6807 Ilya Tocar <ilya.tocar@intel.com>
6808 Andrey Turetskiy <andrey.turetskiy@intel.com>
6809 Ilya Verbin <ilya.verbin@intel.com>
6810 Kirill Yukhin <kirill.yukhin@intel.com>
6811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6812
6813 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6814 registers.
6815 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6816 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6817 xmm/ymm16+ when availble.
6818 * config/i386/i386.h
6819 (HARD_REGNO_NREGS): Add mask regs.
6820 (VALID_AVX512F_REG_MODE): Ditto.
6821 (VALID_AVX512F_REG_MODE) : Define.
6822 (VALID_MASK_AVX512BW_MODE): Ditto.
6823 (reg_class) (MASK_REG_P(X)): Define.
6824 * config/i386/i386.md: Do not split long moves with mask register,
6825 use kmovb if avx512bw is availible.
6826 (movdi_internal): Handle mask registers.
6827
6828 2014-08-14 Richard Biener <rguenther@suse.de>
6829
6830 PR tree-optimization/62081
6831 * tree-ssa-loop.c (pass_fix_loops): New pass.
6832 (pass_tree_loop::gate): Do not fixup loops here.
6833 * tree-pass.h (make_pass_fix_loops): Declare.
6834 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6835
6836 2014-08-14 Richard Biener <rguenther@suse.de>
6837
6838 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6839 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6840
6841 2014-08-14 Richard Biener <rguenther@suse.de>
6842
6843 PR tree-optimization/62090
6844 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6845 (fold_builtin_2): Do not fold sprintf.
6846 (fold_builtin_3): Likewise.
6847 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6848 moved from builtins.c.
6849 (gimple_fold_builtin): Fold sprintf.
6850
6851 2014-08-14 Richard Biener <rguenther@suse.de>
6852
6853 PR rtl-optimization/62079
6854 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6855 run cleanup_cfg.
6856
6857 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6858
6859 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6860 current_function_decl.
6861
6862 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6863
6864 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6865 cgraph_function_node to cgraph_node::function_symbol
6866 refactoring.
6867
6868 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6869
6870 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6871 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6872
6873 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6874
6875 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6876 warning.
6877
6878 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6879
6880 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6881 generator.
6882
6883 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6884
6885 PR target/62025
6886 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6887 any registers that are used in mem_insn.
6888
6889 2014-08-12 Steve Ellcey <sellcey@mips.com>
6890
6891 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6892
6893 2014-08-12 Steve Ellcey <sellcey@mips.com>
6894
6895 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6896 (MULTILIB_DIRNAMES): Ditto.
6897 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6898 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6899 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6900 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6901 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6902 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6903
6904 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6905
6906 PR target/61413
6907 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6908 of __ARM_SIZEOF_WCHAR_T.
6909
6910 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6911
6912 PR target/62098
6913 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6914 Remove unnecessary attributes.
6915
6916 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6917
6918 * internal-fn.c (init_internal_fns): Fix off-by-one.
6919
6920 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6922 Anna Tikhonova <anna.tikhonova@intel.com>
6923 Ilya Tocar <ilya.tocar@intel.com>
6924 Andrey Turetskiy <andrey.turetskiy@intel.com>
6925 Ilya Verbin <ilya.verbin@intel.com>
6926 Kirill Yukhin <kirill.yukhin@intel.com>
6927 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6928
6929 * config/i386/i386.c (standard_sse_constant_opcode): Use
6930 vpxord/vpternlog if avx512 is availible.
6931
6932 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6933
6934 PR middle-end/62103
6935 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6936 bitfields, that is when size doesn't match the size of type or the
6937 size of the constructor.
6938
6939 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6940
6941 * config/rs6000/constraints.md (wh constraint): New constraint,
6942 for FP registers if direct move is available.
6943 (wi constraint): New constraint, for VSX/FP registers that can
6944 handle 64-bit integers.
6945 (wj constraint): New constraint for VSX/FP registers that can
6946 handle 64-bit integers for direct moves.
6947 (wk constraint): New constraint for VSX/FP registers that can
6948 handle 64-bit doubles for direct moves.
6949 (wy constraint): Make documentation match implementation.
6950
6951 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6952 scalar_in_vmx_p field to simplify tests of whether SFmode or
6953 DFmode can go in the Altivec registers.
6954 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6955 (rs6000_setup_reg_addr_masks): Likewise.
6956 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6957 field, and wh/wi/wj/wk constraints.
6958 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6959 the wh/wi/wj/wk constraints.
6960 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6961 upper registers, prefer VSX registers unless the operation is a
6962 memory operation with REG+OFFSET addressing.
6963
6964 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6965 DImode. Change SFmode to use ww constraint instead of d to allow
6966 SF registers in the upper registers.
6967 (VSr2): Likewise.
6968 (VSr3): Likewise.
6969 (VSr5): Fix thinko in comment.
6970 (VSa): New mode attribute that is an alternative to wa, that
6971 returns the VSX register class that a mode can go in, but may not
6972 be the preferred register class.
6973 (VS_64dm): New mode attribute for appropriate register classes for
6974 referencing 64-bit elements of vectors for direct moves and normal
6975 moves.
6976 (VS_64reg): Likewise.
6977 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6978 register allocator to only registers the data type can handle.
6979 (vsx_le_perm_load_<mode>): Likewise.
6980 (vsx_le_perm_store_<mode>): Likewise.
6981 (vsx_xxpermdi2_le_<mode>): Likewise.
6982 (vsx_xxpermdi4_le_<mode>): Likewise.
6983 (vsx_lxvd2x2_le_<mode>): Likewise.
6984 (vsx_lxvd2x4_le_<mode>): Likewise.
6985 (vsx_stxvd2x2_le_<mode>): Likewise.
6986 (vsx_add<mode>3): Likewise.
6987 (vsx_sub<mode>3): Likewise.
6988 (vsx_mul<mode>3): Likewise.
6989 (vsx_div<mode>3): Likewise.
6990 (vsx_tdiv<mode>3_internal): Likewise.
6991 (vsx_fre<mode>2): Likewise.
6992 (vsx_neg<mode>2): Likewise.
6993 (vsx_abs<mode>2): Likewise.
6994 (vsx_nabs<mode>2): Likewise.
6995 (vsx_smax<mode>3): Likewise.
6996 (vsx_smin<mode>3): Likewise.
6997 (vsx_sqrt<mode>2): Likewise.
6998 (vsx_rsqrte<mode>2): Likewise.
6999 (vsx_tsqrt<mode>2_internal): Likewise.
7000 (vsx_fms<mode>4): Likewise.
7001 (vsx_nfma<mode>4): Likewise.
7002 (vsx_eq<mode>): Likewise.
7003 (vsx_gt<mode>): Likewise.
7004 (vsx_ge<mode>): Likewise.
7005 (vsx_eq<mode>_p): Likewise.
7006 (vsx_gt<mode>_p): Likewise.
7007 (vsx_ge<mode>_p): Likewise.
7008 (vsx_xxsel<mode>): Likewise.
7009 (vsx_xxsel<mode>_uns): Likewise.
7010 (vsx_copysign<mode>3): Likewise.
7011 (vsx_float<VSi><mode>2): Likewise.
7012 (vsx_floatuns<VSi><mode>2): Likewise.
7013 (vsx_fix_trunc<mode><VSi>2): Likewise.
7014 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7015 (vsx_x<VSv>r<VSs>i): Likewise.
7016 (vsx_x<VSv>r<VSs>ic): Likewise.
7017 (vsx_btrunc<mode>2): Likewise.
7018 (vsx_b2trunc<mode>2): Likewise.
7019 (vsx_floor<mode>2): Likewise.
7020 (vsx_ceil<mode>2): Likewise.
7021 (vsx_<VS_spdp_insn>): Likewise.
7022 (vsx_xscvspdp): Likewise.
7023 (vsx_xvcvspuxds): Likewise.
7024 (vsx_float_fix_<mode>2): Likewise.
7025 (vsx_set_<mode>): Likewise.
7026 (vsx_extract_<mode>_internal1): Likewise.
7027 (vsx_extract_<mode>_internal2): Likewise.
7028 (vsx_extract_<mode>_load): Likewise.
7029 (vsx_extract_<mode>_store): Likewise.
7030 (vsx_splat_<mode>): Likewise.
7031 (vsx_xxspltw_<mode>): Likewise.
7032 (vsx_xxspltw_<mode>_direct): Likewise.
7033 (vsx_xxmrghw_<mode>): Likewise.
7034 (vsx_xxmrglw_<mode>): Likewise.
7035 (vsx_xxsldwi_<mode>): Likewise.
7036 (vsx_xscvdpspn): Tighten constraints to only use register classes
7037 the types use.
7038 (vsx_xscvspdpn): Likewise.
7039 (vsx_xscvdpspn_scalar): Likewise.
7040
7041 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7042 wj, and wk constraints.
7043 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7044 general purpose registers.
7045
7046 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7047 direct moves.
7048 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7049 DImode instead of wm. Use wk constraint for direct move of DFmode
7050 instead of wm.
7051 (extendsidi2_lfiwax): Likewise.
7052 (lfiwax): Likewise.
7053 (lfiwzx): Likewise.
7054 (movdi_internal64): Likewise.
7055
7056 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7057 wk constraints. Make the wy constraint documentation match them
7058 implementation.
7059
7060 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7061
7062 Replacement of isl_int by isl_val
7063 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7064 (compute_bounds_for_param): use isl_val instead of isl_int
7065 (compute_bounds_for_loop): likewise
7066 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7067 (build_linearized_memory_access): use isl_val instead of isl_int
7068 (pdr_stride_in_loop): likewise
7069 * graphite-optimize-isl.c:
7070 (getPrevectorMap): use isl_val instead of isl_int
7071 * graphite-poly.c:
7072 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7073 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7074 (extern the_isl_ctx): declare
7075 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7076 (extract_affine_gmp): likewise
7077 (wrap): likewise
7078 (build_loop_iteration_domains): likewise
7079 (add_param_constraints): likewise
7080
7081 2014-08-11 Richard Biener <rguenther@suse.de>
7082
7083 PR tree-optimization/62075
7084 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7085 handle uses in patterns.
7086
7087 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7088 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7089 Anna Tikhonova <anna.tikhonova@intel.com>
7090 Ilya Tocar <ilya.tocar@intel.com>
7091 Andrey Turetskiy <andrey.turetskiy@intel.com>
7092 Ilya Verbin <ilya.verbin@intel.com>
7093 Kirill Yukhin <kirill.yukhin@intel.com>
7094 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7095
7096 * common/config/i386/i386-common.c
7097 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7098 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7099 (ix86_handle_option): Handle OPT_mavx512vl.
7100 * config/i386/cpuid.h (bit_AVX512VL): Define.
7101 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7102 set -mavx512vl accordingly.
7103 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7104 OPTION_MASK_ISA_AVX512VL.
7105 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7106 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7107 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7108 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7109 * config/i386/i386.h (TARGET_AVX512VL): Define.
7110 (TARGET_AVX512VL_P(x)): Ditto.
7111 * config/i386/i386.opt: Add mavx512vl.
7112
7113 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7114
7115 PR tree-optimization/62073
7116 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7117 a basic block.
7118
7119 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7121 Anna Tikhonova <anna.tikhonova@intel.com>
7122 Ilya Tocar <ilya.tocar@intel.com>
7123 Andrey Turetskiy <andrey.turetskiy@intel.com>
7124 Ilya Verbin <ilya.verbin@intel.com>
7125 Kirill Yukhin <kirill.yukhin@intel.com>
7126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7127
7128 * common/config/i386/i386-common.c
7129 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7130 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7131 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7132 (ix86_handle_option): Handle OPT_mavx512bw.
7133 * config/i386/cpuid.h (bit_AVX512BW): Define.
7134 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7135 set -mavx512bw accordingly.
7136 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7137 OPTION_MASK_ISA_AVX512BW.
7138 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7139 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7140 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7141 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7142 * config/i386/i386.h (TARGET_AVX512BW): Define.
7143 (TARGET_AVX512BW_P(x)): Ditto.
7144 * config/i386/i386.opt: Add mavx512bw.
7145
7146 2014-08-11 Richard Biener <rguenther@suse.de>
7147
7148 PR tree-optimization/62070
7149 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7150 Remove SSA checking.
7151
7152 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7153
7154 * asan.c (asan_check_flags): New enum.
7155 (build_check_stmt_with_calls): Removed function.
7156 (build_check_stmt): Split inlining logic to
7157 asan_expand_check_ifn.
7158 (instrument_derefs): Rename parameter.
7159 (instrument_mem_region_access): Rename parameter.
7160 (instrument_strlen_call): Likewise.
7161 (asan_expand_check_ifn): New function.
7162 (asan_instrument): Remove old code.
7163 (pass_sanopt::execute): Change handling of
7164 asan-instrumentation-with-call-threshold.
7165 (asan_clear_shadow): Fix formatting.
7166 (asan_function_start): Likewise.
7167 (asan_emit_stack_protection): Likewise.
7168 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7169 Update description.
7170 * internal-fn.c (expand_ASAN_CHECK): New function.
7171 * internal-fn.def (ASAN_CHECK): New internal function.
7172 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7173 Update description.
7174 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7175 * tree.c: Small comment fix.
7176
7177 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7178
7179 * gimple.c (gimple_call_fnspec): Support internal functions.
7180 (gimple_call_return_flags): Use const.
7181 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7182 * internal-fn.def: Add fnspec information.
7183 * internal-fn.h (internal_fn_fnspec): New function.
7184 (init_internal_fns): Declare new function.
7185 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7186 (init_internal_fns): New function.
7187 * tree-core.h: Update macro call.
7188 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7189
7190 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7191
7192 * lto-streamer.h (struct output_block::symbol): Change from
7193 struct symtab_node to plain symtab_node.
7194 (referenced_from_this_partition_p): Change first parameter
7195 from struct symtab_node to plain symtab_node.
7196
7197 2014-08-10 Marek Polacek <polacek@redhat.com>
7198
7199 PR c/51849
7200 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7201
7202 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7203
7204 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7205 DECL correctly; do not give up on types in static storage.
7206
7207 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7208
7209 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7210
7211 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7212
7213 * graphite-isl-ast-to-gimple.c:
7214 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7215
7216 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7217
7218 2014-08-08 Guozhi Wei <carrot@google.com>
7219
7220 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7221
7222 2014-08-08 Cary Coutant <ccoutant@google.com>
7223
7224 * dwarf2out.c (get_skeleton_type_unit): Remove.
7225 (output_skeleton_debug_sections): Remove skeleton type units.
7226 (output_comdat_type_unit): Likewise.
7227 (dwarf2out_finish): Likewise.
7228
7229 2014-08-07 Yi Yang <ahyangyi@google.com>
7230
7231 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7232
7233 2014-08-08 Richard Biener <rguenther@suse.de>
7234
7235 * lto-streamer.h (struct lto_input_block): Make it a class
7236 with a constructor.
7237 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7238 (struct lto_function_header, struct lto_simple_header,
7239 struct lto_simple_header_with_strings,
7240 struct lto_decl_header, struct lto_function_header): Make
7241 a simple inheritance hieararchy. Remove unused fields.
7242 (struct lto_asm_header): Remove.
7243 * lto-streamer-out.c (produce_asm): Adjust.
7244 (lto_output_toplevel_asms): Likewise.
7245 (produce_asm_for_decls): Likewise.
7246 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7247 * data-streamer-in.c (string_for_index): Likewise.
7248 * ipa-inline-analysis.c (inline_read_section): Likewise.
7249 * ipa-prop.c (ipa_prop_read_section): Likewise.
7250 (read_replacements_section): Likewise.
7251 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7252 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7253 (lto_destroy_simple_input_block): Likewise.
7254 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7255 (lto_input_toplevel_asms): Likewise.
7256
7257 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7259 Anna Tikhonova <anna.tikhonova@intel.com>
7260 Ilya Tocar <ilya.tocar@intel.com>
7261 Andrey Turetskiy <andrey.turetskiy@intel.com>
7262 Ilya Verbin <ilya.verbin@intel.com>
7263 Kirill Yukhin <kirill.yukhin@intel.com>
7264 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7265
7266 * common/config/i386/i386-common.c
7267 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7268 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7269 (ix86_handle_option): Handle OPT_mavx512dq.
7270 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7271 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7272 set -mavx512dq accordingly.
7273 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7274 OPTION_MASK_ISA_AVX512DQ.
7275 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7276 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7277 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7278 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7279 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7280 (TARGET_AVX512DQ_P(x)): Ditto.
7281 * config/i386/i386.opt: Add mavx512dq.
7282
7283 2014-08-08 Richard Biener <rguenther@suse.de>
7284
7285 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7286 target_percent, target_percent_s): Export.
7287 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7288 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7289 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7290 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7291 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7292 Move to gimple-fold.c.
7293 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7294 strcat and strcpy.
7295 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7296 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7297 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7298 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7299 (rewrite_call_expr_array): Remove.
7300 (fold_builtin_sprintf_chk): Likewise.
7301 (fold_builtin_snprintf_chk): Likewise.
7302 (fold_builtin_varargs): Remove handling of sprintf_chk,
7303 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7304 (gimple_fold_builtin_sprintf_chk): Remove.
7305 (gimple_fold_builtin_snprintf_chk): Likewise.
7306 (gimple_fold_builtin_varargs): Likewise.
7307 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7308 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7309 * gimple.c (gimple_seq_add_seq_without_update): New function.
7310 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7311 * gimple-fold.c: Include output.h.
7312 (gsi_replace_with_seq_vops): New function, split out from ...
7313 (gimplify_and_update_call_from_tree): ... here.
7314 (replace_call_with_value): New function.
7315 (replace_call_with_call_and_fold): Likewise.
7316 (var_decl_component_p): Moved from builtins.c.
7317 (gimple_fold_builtin_memory_op): Moved from builtins.c
7318 fold_builtin_memory_op and rewritten to GIMPLE.
7319 (gimple_fold_builtin_memset): Likewise.
7320 (gimple_fold_builtin_strcpy): Likewise.
7321 (gimple_fold_builtin_strncpy): Likewise.
7322 (gimple_fold_builtin_strcat): Likewise.
7323 (gimple_fold_builtin_fputs): Likewise.
7324 (gimple_fold_builtin_memory_chk): Likewise.
7325 (gimple_fold_builtin_stxcpy_chk): Likewise.
7326 (gimple_fold_builtin_stxncpy_chk): Likewise.
7327 (gimple_fold_builtin_snprintf_chk): Likewise.
7328 (gimple_fold_builtin_sprintf_chk): Likewise.
7329 (gimple_fold_builtin_strlen): New function.
7330 (gimple_fold_builtin_with_strlen): New function split out from
7331 gimple_fold_builtin.
7332 (gimple_fold_builtin): Change signature and handle
7333 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7334 here. Call gimple_fold_builtin_with_strlen.
7335 (gimple_fold_call): Adjust.
7336
7337 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7338
7339 * calls.c (precompute_arguments): Check
7340 promoted_for_signed_and_unsigned_p and set the promoted mode.
7341 (promoted_for_signed_and_unsigned_p): New function.
7342 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7343 and set the promoted mode.
7344 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7345 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7346 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7347
7348
7349 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7350
7351 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7352 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7353 (expand_call): Likewise.
7354 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7355 to get promoted mode.
7356 * combine.c (record_promoted_value): Skip > 0 comparison with
7357 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7358 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7359 of SUBREG_PROMOTED_UNSIGNED_P.
7360 (convert_modes): Likewise.
7361 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7362 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7363 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7364 SUBREG_PROMOTED_UNSIGNED_SET.
7365 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7366 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7367 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7368 SUBREG_PROMOTED_SET.
7369 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7370 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7371 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7372 of SUBREG_PROMOTED_UNSIGNED_P.
7373 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7374 (SUBREG_PROMOTED_SET): New define.
7375 (SUBREG_PROMOTED_GET): Likewise.
7376 (SUBREG_PROMOTED_SIGN): Likewise.
7377 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7378 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7379 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7380 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7381 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7382 (nonzero_bits1): Skip > 0 comparison with the results as
7383 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7384 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7385 of !SUBREG_PROMOTED_UNSIGNED_P.
7386 * simplify-rtx.c (simplify_unary_operation_1): Use new
7387 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7388 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7389 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7390 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7391
7392 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7393
7394 * ipa-devirt.c: Include gimple-pretty-print.h
7395 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7396 further tests.
7397 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7398 (get_polymorphic_call_info): Fix return value
7399 (type_change_info): New sturcture based on ipa-prop
7400 variant.
7401 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7402 based on ipa-prop variant.
7403 (extr_type_from_vtbl_ptr_store): New function
7404 based on ipa-prop variant.
7405 (record_known_type): New function.
7406 (check_stmt_for_type_change): New function.
7407 (get_dynamic_type): New function.
7408 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7409 * tree-ssa-pre.c: ipa-utils.h
7410 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7411 machinery; sanity check with ipa-prop devirtualization.
7412 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7413 polymorphic flag.
7414
7415 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7416
7417 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7418 * alias.c, cfgexpand.c, cgraphbuild.c,
7419 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7420 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7421 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7422 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7423 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7424 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7425 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7426 dse.c, except.c, gengtype.c, gimple-expr.c,
7427 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7428 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7429 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7430 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7431 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7432 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7433 pointer-set.h.
7434 * pointer-set.c: Remove file.
7435 * pointer-set.h: Remove file.
7436
7437 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7438
7439 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7440 * config/arm/types.md (f_sels, f_seld): Delete.
7441
7442 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7443
7444 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7445 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7446 (aarch64_movdi_<mode>high): Likewise.
7447 (aarch64_mov<mode>high_di): Likewise.
7448 (aarch64_movdi_<mode>low): Likewise.
7449 (aarch64_mov<mode>low_di): Likewise.
7450 (aarch64_movtilow_tilow): Likewise.
7451 Add comment explaining usage of fp,simd attributes and of
7452 TARGET_FLOAT and TARGET_SIMD.
7453
7454 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7455 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7456
7457 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7458 Use MOVN when one of the half-words is 0xffff.
7459
7460 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7461
7462 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7463
7464 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7465
7466 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7467 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7468 (rfs_str): String corresponding to RFS_* constants.
7469 (rank_for_schedule_stats_t): New typedef.
7470 (rank_for_schedule_stats): New static variable.
7471 (rfs_result): New static function.
7472 (rank_for_schedule): Track statistics for deciding heuristics.
7473 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7474 static functions.
7475 (ready_sort): Use them for debug printouts.
7476 (schedule_block): Init statistics state. Print statistics on
7477 rank_for_schedule decisions.
7478
7479 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7480
7481 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7482
7483 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7484
7485 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7486 constraint.
7487
7488 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7489
7490 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7491 function to not conflict.
7492 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7493 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7494 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7495 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7496 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7497 of pointer_map.
7498
7499 2014-08-07 Marek Polacek <polacek@redhat.com>
7500
7501 * fold-const.c (fold_binary_loc): Add folding of
7502 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7503
7504 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7505
7506 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7507 instead of type size.
7508 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7509
7510 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7511
7512 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7513 (*thumb1_movqi_insn): Likewise.
7514 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7515
7516 2014-08-07 Tom de Vries <tom@codesourcery.com>
7517
7518 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7519 (glibc_2_11_or_earlier): Remove effective-target keywords.
7520
7521 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7522
7523 * config/arm/arm.c (bdesc_2arg): Fix typo.
7524 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7525
7526 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7527
7528 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7529
7530 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7531
7532 PR debug/61923
7533 * haifa-sched.c (advance_one_cycle): Fix dump.
7534 (schedule_block): Don't advance cycle if we are already at the
7535 beginning of the cycle.
7536
7537 2014-08-06 Martin Jambor <mjambor@suse.cz>
7538
7539 PR ipa/61393
7540 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7541
7542 2014-08-06 Richard Biener <rguenther@suse.de>
7543
7544 PR lto/62034
7545 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7546 SCCs here.
7547 (lto_input_tree): Pop SCCs here.
7548
7549 2014-08-06 Richard Biener <rguenther@suse.de>
7550
7551 PR tree-optimization/61320
7552 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7553 handle misaligned loads.
7554
7555 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7556
7557 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7558 (aarch64_expand_vec_perm_const): Check for dup before zip.
7559
7560 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7561
7562 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7563 CONST_INT_P instead of GET_CODE and compare.
7564 (aarch64_select_cc_mode): Likewise.
7565 (aarch64_print_operand): Likewise.
7566 (aarch64_rtx_costs): Likewise.
7567 (aarch64_simd_valid_immediate): Likewise.
7568 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7569 (aarch64_simd_emit_pair_result_insn): Likewise.
7570
7571 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7572
7573 * gdbhooks.py (find_gcc_source_dir): New helper function.
7574 (class PassNames): New class, locating and parsing passes.def.
7575 (class BreakOnPass): New command "break-on-pass".
7576
7577 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7578
7579 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7580 getting olde.
7581
7582 2014-08-05 Richard Biener <rguenther@suse.de>
7583
7584 PR rtl-optimization/61672
7585 * emit-rtl.h (mem_attrs_eq_p): Declare.
7586 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7587 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7588 * cfgcleanup.c (merge_memattrs): Likewise.
7589 Include emit-rtl.h.
7590
7591 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7592
7593 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7594 rather than singleton vectors.
7595 (vqdmlsls_lane_s32): Likewise.
7596
7597 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7598
7599 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7600 Use VSDQ_HSI mode iterator.
7601 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7602 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7603 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7604 Use BUILTIN_VDQHS macro.
7605 (sqrdmulh_laneq): Likewise.
7606 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7607 (vqdmlals_laneq_s32): Likewise.
7608 (vqdmlslh_laneq_s16): Likewise.
7609 (vqdmlsls_laneq_s32): Likewise.
7610 (vqdmulhh_laneq_s16): Likewise.
7611 (vqdmulhs_laneq_s32): Likewise.
7612 (vqrdmulhh_laneq_s16): Likewise.
7613 (vqrdmulhs_laneq_s32): Likewise.
7614
7615 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7616
7617 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7618 (vmuld_laneq_f64): Likewise.
7619 (vmuls_laneq_f32): Likewise.
7620 (vmul_n_f64): Likewise.
7621 (vmuld_lane_f64): Reimplement in C.
7622 (vmuls_lane_f32): Likewise.
7623
7624 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7625
7626 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7627 to reservation.
7628 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7629
7630 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7631
7632 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7633 (rbitsi2): Likewise.
7634 (*arm_rev): Set predicable and predicable_short_it attributes.
7635
7636 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7637
7638 * convert.c (convert_to_integer): Guard transformation to lrint by
7639 -fno-math-errno.
7640
7641 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7642
7643 * config/aarch64/aarch64-builtins.c
7644 (aarch64_simd_builtin_type_mode): Delete.
7645 (v8qi_UP): Remap to V8QImode.
7646 (v4hi_UP): Remap to V4HImode.
7647 (v2si_UP): Remap to V2SImode.
7648 (v2sf_UP): Remap to V2SFmode.
7649 (v1df_UP): Remap to V1DFmode.
7650 (di_UP): Remap to DImode.
7651 (df_UP): Remap to DFmode.
7652 (v16qi_UP):V16QImode.
7653 (v8hi_UP): Remap to V8HImode.
7654 (v4si_UP): Remap to V4SImode.
7655 (v4sf_UP): Remap to V4SFmode.
7656 (v2di_UP): Remap to V2DImode.
7657 (v2df_UP): Remap to V2DFmode.
7658 (ti_UP): Remap to TImode.
7659 (ei_UP): Remap to EImode.
7660 (oi_UP): Remap to OImode.
7661 (ci_UP): Map to CImode.
7662 (xi_UP): Remap to XImode.
7663 (si_UP): Remap to SImode.
7664 (sf_UP): Remap to SFmode.
7665 (hi_UP): Remap to HImode.
7666 (qi_UP): Remap to QImode.
7667 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7668 (VAR1): Build builtin name.
7669 (aarch64_init_simd_builtins): Remove dead code.
7670
7671 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7672
7673 * graphite-isl-ast-to-gimple.c:
7674 (set_options): New function.
7675 (scop_to_isl_ast): Add calling of set_options.
7676
7677 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7678
7679 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7680 (analyze_iv_to_split_insn): Don't initialize them.
7681 (get_ivts_expr): Removed.
7682 (allocate_basic_variable, insert_base_initialization): Use
7683 SET_SRC instead of *get_ivts_expr.
7684 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7685
7686 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7687
7688 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7689 (translate_isl_ast_for_loop): Add checking of the
7690 flag_loop_parallelize_all.
7691 (ast_build_before_for): New function.
7692 (scop_to_isl_ast): Add checking of the
7693 flag_loop_parallelize_all.
7694 * graphite-dependences.c: Move the defenition of the
7695 scop_get_dependences from graphite-optimize-isl.c to this file.
7696 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7697 (carries_deps): Add checking of the x's value.
7698 * graphite-optimize-isl.c: Move the defenition of the
7699 scop_get_dependences to graphite-dependences.c.
7700 * graphite-poly.h: Add declarations of scop_get_dependences
7701 and carries_deps.
7702
7703 2014-08-04 Rohit <rohitarulraj@freescale.com>
7704
7705 PR target/60102
7706 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7707 names.
7708 (alt_reg_names): Likewise.
7709 (rs6000_dwarf_register_span): For SPE high registers, replace
7710 dwarf register numbers with GCC hard register numbers.
7711 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7712 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7713 register number for the corresponding GCC hard register number.
7714 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7715 newly added GCC hard register numbers for SPE high registers.
7716 (DWARF_FRAME_REGISTERS): Likewise.
7717 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7718 (DWARF_FRAME_REGNUM): Likewise.
7719 (FIXED_REGISTERS): Likewise.
7720 (CALL_USED_REGISTERS): Likewise.
7721 (CALL_REALLY_USED_REGISTERS): Likewise.
7722 (REG_ALLOC_ORDER): Likewise.
7723 (enum reg_class): Likewise.
7724 (REG_CLASS_NAMES): Likewise.
7725 (REG_CLASS_CONTENTS): Likewise.
7726 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7727
7728 2014-08-04 Richard Biener <rguenther@suse.de>
7729
7730 * gimple-fold.h (gimple_fold_builtin): Remove.
7731 * gimple-fold.c (gimple_fold_builtin): Make static.
7732 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7733 fold_stmt, not gimple_fold_builtin.
7734
7735 2014-08-04 Martin Liska <mliska@suse.cz>
7736
7737 * cgraph.h (csi_end_p): Removed.
7738 (csi_next): Likewise.
7739 (csi_node): Likewise.
7740 (csi_start): Likewise.
7741 (cgraph_node_in_set_p): Likewise.
7742 (cgraph_node_set_size): Likewise.
7743 (vsi_end_p): Likewise.
7744 (vsi_next): Likewise.
7745 (vsi_node): Likewise.
7746 (vsi_start): Likewise.
7747 (varpool_node_set_size): Likewise.
7748 (cgraph_node_set_nonempty_p): Likewise.
7749 (varpool_node_set_nonempty_p): Likewise.
7750 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7751 cgraph_node_set.
7752 * ipa-inline-transform.c: Likewise.
7753 * ipa-utils.c (cgraph_node_set_new): Removed.
7754 (cgraph_node_set_add): Likewise.
7755 (cgraph_node_set_remove): Likewise.
7756 (cgraph_node_set_find): Likewise.
7757 (dump_cgraph_node_set): Likewise.
7758 (debug_cgraph_node_set): Likewise.
7759 (free_cgraph_node_set): Likewise.
7760 (varpool_node_set_new): Likewise.
7761 (varpool_node_set_add): Likewise.
7762 (varpool_node_set_remove): Likewise.
7763 (varpool_node_set_find): Likewise.
7764 (dump_varpool_node_set): Likewise.
7765 (free_varpool_node_set): Likewise.
7766 (debug_varpool_node_set): Likewise.
7767 * tree-emutls.c (struct tls_var_data):
7768 (emutls_index): Removed.
7769 (emutls_decl): Likewise.
7770 (gen_emutls_addr): Function implementation uses newly added
7771 hash_map<varpool_node *, tls_var_data>.
7772 (clear_access_vars): Likewise.
7773 (create_emultls_var): Likewise.
7774 (ipa_lower_emutls): Likewise.
7775 (reset_access): New function.
7776
7777 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7778
7779 * config/i386/i386.c (ix86_option_override_internal): Add
7780 PTA_RDRND and PTA_MOVBE for bdver4.
7781
7782 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7783 James Greenhalgh <james.greenhalgh@arm.com>
7784
7785 * doc/md.texi (clrsb): Document.
7786 (clz): Change reference to x into operand 1.
7787 (ctz): Likewise.
7788 (popcount): Likewise.
7789
7790 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7791
7792 PR target/61713
7793 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7794 move to subtarget in serial version if result is ignored.
7795
7796 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7797 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7798
7799 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7800 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7801 (sched_analyze_insn): Update use of try_group_insn to
7802 sched_macro_fuse_insns.
7803 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7804 arguments that are not conditional jumps.
7805
7806 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7807
7808 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7809 family information. Handle BTVER2 cpu with cpuid family value.
7810
7811 2014-08-04 Tom de Vries <tom@codesourcery.com>
7812
7813 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7814 (glibc_2_11_or_earlier): Document effective-target keywords.
7815
7816 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7817
7818 * ipa-devirt.c (odr_type_warn_count): Add type.
7819 (possible_polymorphic_call_targets): Set it.
7820 (ipa_devirt): Use it.
7821
7822 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7823
7824 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7825 Document.
7826 * ipa-devirt.c: Include hash-map.h
7827 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7828 (clear_speculation): Break out of ...
7829 (get_class_context): ... here; speed up handling obviously useless
7830 speculations.
7831 (odr_type_warn_count, decl_warn_count): New structures.
7832 (final_warning_record): New structure.
7833 (final_warning_records): New static variable.
7834 (possible_polymorphic_call_targets): Cleanup handling of
7835 speculative info; do not build speculation when user do not care;
7836 record info about warnings when asked for.
7837 (add_decl_warning): New function.
7838 (type_warning_cmp): New function.
7839 (decl_warning_cmp): New function.
7840 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7841 (gate): Enable pass when warnings are requested.
7842 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7843 options.
7844
7845 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7846
7847 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7848 Fix cast.
7849 (hash_map::remove): New method.
7850 (hash_map::traverse): New method.
7851 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7852 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7853 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7854 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7855 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7856 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7857 pointer_map.
7858
7859 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7860
7861 * hash-set.h: new File.
7862 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7863 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7864 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7865 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7866 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7867 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7868 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7869 varpool.c: Use hash_set instead of pointer_set.
7870
7871 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7872
7873 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7874
7875 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7876
7877 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7878 for frame access when strict_p is false.
7879
7880 2014-08-01 Renlin Li <renlin.li@arm.com>
7881 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7882
7883 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7884 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7885 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7886 Declaration.
7887 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7888 predicate.
7889 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7890 aarch64_mem_pair_offset.
7891
7892 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7893
7894 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7895 offset.
7896 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7897 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7898
7899 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7900
7901 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7902
7903 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7904
7905 PR regression/61510
7906 * cgraphunit.c (analyze_functions): Use get_create rather than get
7907 for decls which are clones of abstract functions.
7908
7909 2014-08-01 Martin Liska <mliska@suse.cz>
7910
7911 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7912 * ipa-prop.h (count_formal_params): Global function created from static.
7913 * ipa-prop.c (count_formal_params): Likewise.
7914 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7915 profiles for semantically equivalent functions.
7916 * passes.c (do_per_function): If we load body of a function
7917 during WPA, this condition should behave same.
7918 * varpool.c (ctor_for_folding): More tolerant assert for variable
7919 aliases created during WPA.
7920
7921 2014-08-01 Martin Liska <mliska@suse.cz>
7922
7923 * doc/invoke.texi (Options That Control Optimization): Documentation
7924 for -foptimize-strlen introduced. Optimization levels default options
7925 fixed.
7926
7927 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7928
7929 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7930 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7931 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7932 type to bool.
7933 * stor-layout.h (min_align_of_type): New prototype.
7934 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7935 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7936 check.
7937 * ubsan.c: Include builtins.h.
7938 (ubsan_expand_bounds_ifn): Change return type to bool,
7939 always return true.
7940 (ubsan_expand_null_ifn): Change return type to bool, change
7941 argument to gimple_stmt_iterator *. Handle both null and alignment
7942 sanitization, take type from ckind argument's type rather than
7943 first argument.
7944 (instrument_member_call): Removed.
7945 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7946 Handle both null and alignment sanitization, don't say whole
7947 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7948 call instead of 2 argument.
7949 (instrument_null): Adjust instrument_mem_ref caller. Don't
7950 instrument calls here.
7951 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7952 like SANITIZE_NULL.
7953 * stor-layout.c (min_align_of_type): New function.
7954 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7955 Or it into SANITIZE_UNDEFINED.
7956 * doc/invoke.texi (-fsanitize=alignment): Document.
7957
7958 2014-07-31 Andi Kleen <ak@linux.intel.com>
7959
7960 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7961
7962 2014-07-31 Andi Kleen <ak@linux.intel.com>
7963
7964 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7965 inchash.
7966 (vn_reference_compute_hash): Dito.
7967 (vn_nary_op_compute_hash): Dito.
7968 (vn_phi_compute_hash): Dito.
7969 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7970
7971 2014-07-31 Andi Kleen <ak@linux.intel.com>
7972
7973 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7974 Rename to inchash:add_expr_commutative. Convert to inchash.
7975 (iterative_hash_hashable_expr): Rename to
7976 inchash:add_hashable_expr. Convert to inchash.
7977 (avail_expr_hash): Dito.
7978
7979 2014-07-31 Andi Kleen <ak@linux.intel.com>
7980
7981 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7982 Convert to inchash.
7983
7984 2014-07-31 Andi Kleen <ak@linux.intel.com>
7985
7986 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7987
7988 2014-07-31 Andi Kleen <ak@linux.intel.com>
7989
7990 * Makefile.in (OBJS): Add rtlhash.o
7991 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7992 (loc_checksum): Dito.
7993 (loc_checksum_ordered): Dito.
7994 (hash_loc_operands): Dito.
7995 (hash_locs): Dito.
7996 (hash_loc_list): Dito.
7997 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7998 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7999 * rtlhash.c: New file.
8000 * rtlhash.h: New file.
8001
8002 2014-07-31 Andi Kleen <ak@linux.intel.com>
8003
8004 * inchash.h (inchash): Change inchash class to namespace.
8005 (class hash): ... Rename from inchash.
8006 (add_object): Move from macro to class template.
8007 * lto-streamer-out.c (hash_tree): Change inchash
8008 to inchash::hash.
8009 * tree.c (build_type_attribute_qual_variant): Dito.
8010 (type_hash_list): Dito.
8011 (attribute_hash_list): Dito.
8012 (iterative_hstate_expr): Rename to inchash::add_expr
8013 (build_range_type_1): Change inchash to inchash::hash
8014 and use hash::add_expr.
8015 (build_array_type_1): Dito.
8016 (build_function_type): Dito
8017 (build_method_type_directly): Dito.
8018 (build_offset_type): Dito.
8019 (build_complex_type): Dito.
8020 (make_vector_type): Dito.
8021 * tree.h (iterative_hash_expr): Dito.
8022
8023 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8024
8025 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8026
8027 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8028
8029 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8030 correct alphabetical position.
8031 (vpaddd_f64): Rewrite using builtins.
8032 (vpaddd_s64): Move to correct alphabetical position.
8033 (vpaddd_u64): New.
8034
8035 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8036
8037 PR target/61844
8038 * config/sh/sh.c (sh_legitimate_address_p,
8039 sh_legitimize_reload_address): Handle reg+reg address modes when
8040 ALLOW_INDEXED_ADDRESS is false.
8041 * config/sh/predicates.md (general_movsrc_operand,
8042 general_movdst_operand): Likewise.
8043
8044 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8045
8046 * config/aarch64/aarch64-builtins.c
8047 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8048 BYTES_BIG_ENDIAN.
8049
8050 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8051
8052 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8053 the generated mask based on BYTES_BIG_ENDIAN.
8054 (aarch64_simd_check_vect_par_cnst_half): New.
8055 * config/aarch64/aarch64-protos.h
8056 (aarch64_simd_check_vect_par_cnst_half): New.
8057 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8058 the check out to aarch64_simd_check_vect_par_cnst_half.
8059 (vect_par_cnst_lo_half): Likewise.
8060 * config/aarch64/aarch64-simd.md
8061 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8062 (move_hi_quad_<mode>): Always generate a low mask.
8063
8064 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8065
8066 * doc/invoke.texi (AVR Options): Add documentation about
8067 __AVR_DEVICE_NAME__ built-in macro.
8068
8069 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8070
8071 PR target/61948
8072 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8073 constraints are satisfied.
8074 (<shift>di3_neon): Likewise.
8075
8076 2014-07-31 Richard Biener <rguenther@suse.de>
8077
8078 PR tree-optimization/61964
8079 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8080 by structural equality.
8081
8082 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8083
8084 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8085 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8086 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8087 New enums.
8088 * gcc.c (sanitize_spec_function): Support new option.
8089 (SANITIZER_SPEC): Remove now redundant check.
8090 * opts.c (common_handle_option): Support new option.
8091 (finish_options): Check for incompatibilities.
8092 * toplev.c (process_options): Split userspace-specific checks.
8093
8094 2014-07-31 Richard Biener <rguenther@suse.de>
8095
8096 * lto-streamer.h (struct output_block): Remove global.
8097 (struct data_in): Remove labels, num_named_labels and
8098 num_unnamed_labels.
8099 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8100 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8101
8102 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8103
8104 PR c++/60517
8105 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8106 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8107 (isolate_path): New argument to avoid inserting a trap.
8108 (find_implicit_erroneous_behaviour): Handle returning the address
8109 of a local variable.
8110 (find_explicit_erroneous_behaviour): Likewise.
8111
8112 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8113
8114 PR lto/61868
8115 * toplev.c (init_random_seed): Move piece of code never called to
8116 set_random_seed.
8117 (set_random_seed): see above.
8118
8119 2014-07-31 Tom de Vries <tom@codesourcery.com>
8120
8121 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8122
8123 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8124
8125 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8126 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8127
8128 2014-07-31 Richard Biener <rguenther@suse.de>
8129
8130 * data-streamer.h (streamer_write_data_stream): Declare here,
8131 renamed from ...
8132 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8133 * lto-cgraph.c (lto_output_node): Adjust.
8134 (lto_output_varpool_node): Likewise.
8135 * data-streamer-out.c (streamer_string_index): Likewise.
8136 (streamer_write_data_stream, lto_append_block): Move from ...
8137 * lto-section-out.c (lto_output_data_stream,
8138 lto_append_block): ... here.
8139
8140 2014-07-30 Mike Stump <mikestump@comcast.net>
8141
8142 * configure.ac: Also check for popen.
8143 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8144 * configure: Regenerate.
8145 * config.in: Regenerate.
8146
8147 2014-07-30 Martin Jambor <mjambor@suse.cz>
8148
8149 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8150 parameter to gimple.
8151
8152 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8153
8154 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8155 address as second parameter to __tpf_eh_return routine.
8156
8157 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8158
8159 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8160 Thumb2.
8161
8162 2014-07-30 Tom Tromey <tromey@redhat.com>
8163
8164 PR c/59855
8165 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8166 * doc/extend.texi (Type Attributes): Document designated_init
8167 attribute.
8168
8169 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8170
8171 * graphite-isl-ast-to-gimple.c:
8172 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8173 (gcc_expression_from_isl_expression): Pass type to
8174 gcc_expression_from_isl_ast_expr_id.
8175
8176 2014-07-30 Richard Biener <rguenther@suse.de>
8177
8178 * lto-streamer.h (lto_write_data): New function.
8179 * langhooks.c (lhd_append_data): Do not free block.
8180 * lto-section-out.c (lto_write_data): New function writing
8181 raw data to the current section.
8182 (lto_write_stream): Adjust for langhook semantic change.
8183 (lto_destroy_simple_output_block): Write header directly.
8184 * lto-opts.c (lto_write_options): Write options directly.
8185 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8186 (lto_output_toplevel_asms): Likewise.
8187 (copy_function_or_variable): Copy data directly.
8188 (write_global_references): Output index table directly.
8189 (lto_output_decl_state_refs): Likewise.
8190 (write_symbol): Write data directly.
8191 (produce_symtab): Adjust.
8192 (produce_asm_for_decls): Output header and refs directly.
8193
8194 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8195
8196 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8197 to speculative_targets
8198 (get_class_context): Fix handling of contextes without outer type;
8199 avoid matching non-polymorphic types in LTO.
8200 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8201 parameter to speculative_targetsp; handle speculation.
8202 (dump_possible_polymorphic_call_targets): Update dumping.
8203
8204 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8205
8206 * common.opt (Wodr): Enable by default.
8207
8208 2014-07-29 Olivier Hainque <hainque@adacore.com>
8209
8210 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8211
8212 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8213
8214 PR bootstrap/61914
8215 * gengtype.c (strtoken): New function.
8216 (create_user_defined_type): Replace strtok with strtoken.
8217
8218 2014-07-29 Nathan Sidwell <nathan@acm.org>
8219
8220 * gcov-io.c (gcov_var): Make hidden.
8221 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8222 (gcov_do_dump): Declare.
8223 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8224
8225 2014-07-29 Martin Jambor <mjambor@suse.cz>
8226
8227 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8228 parameter to gimple.
8229 (sra_modify_assign): Likewise.
8230
8231 2014-07-29 Richard Biener <rguenther@suse.de>
8232
8233 PR middle-end/52478
8234 * expr.c (expand_expr_real_2): Revert last change.
8235
8236 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8237
8238 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8239 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8240 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8241 call.
8242 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8243 (contains_type_p): Forward declare.
8244 (polymorphic_call_target_hasher::hash): Hash speculative info.
8245 (polymorphic_call_target_hasher::equal): Compare speculative info.
8246 (get_class_context): Handle speuclation.
8247 (contains_type_p): Update.
8248 (get_polymorphic_call_info_for_decl): Update.
8249 (walk_ssa_copies): Break out from ...
8250 (get_polymorphic_call_info): ... here; set speculative context
8251 before giving up.
8252 * ipa-prop.c (ipa_write_indirect_edge_info,
8253 ipa_read_indirect_edge_info): Stream speculative context.
8254 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8255 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8256 SPECULATIVE_MAYBE_DERIVED_TYPE).
8257 (possible_polymorphic_call_targets overriders): Update.
8258 (dump_possible_polymorphic_call_targets overriders): Update.
8259 (dump_possible_polymorphic_call_target_p overriders): Update.
8260
8261 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8262
8263 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8264 ipa-devirt path; fix thinko there.
8265
8266 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8267
8268 * config/i386/i386.c (ix86_return_in_memory): Replace one
8269 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8270
8271 2014-07-28 Marek Polacek <polacek@redhat.com>
8272
8273 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8274
8275 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8276
8277 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8278 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8279 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8280 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8281 (USE_LD_AS_NEEDED): Likewise.
8282 (ASM_APP_ON): Likewise.
8283 (ASM_APP_OFF): Likewise.
8284 (TARGET_POSIX_IO): Likewise.
8285 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8286 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8287 (USE_LD_AS_NEEDED): Likewise.
8288 (ASM_APP_ON): Likewise.
8289 (ASM_APP_OFF): Likewise.
8290 (TARGET_POSIX_IO): Likewise.
8291
8292 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8293
8294 PR middle-end/61734
8295 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8296 operators other than the equality operators.
8297
8298 2014-07-28 Richard Biener <rguenther@suse.de>
8299
8300 PR middle-end/52478
8301 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8302 sure to register SImode ones, not only >= word_mode ones.
8303 * expr.c (expand_expr_real_2): When expanding -ftrapv
8304 binops do not use OPTAB_LIB_WIDEN.
8305
8306 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8307
8308 PR middle-end/61919
8309 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8310 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8311 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8312 inserting them in the insn stream.
8313
8314 2014-07-28 Marek Polacek <polacek@redhat.com>
8315
8316 PR middle-end/61913
8317 * common.opt (Wodr): Add Var.
8318
8319 2014-07-28 Richard Biener <rguenther@suse.de>
8320
8321 PR tree-optimization/61921
8322 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8323 if there is a varpool node before dereferencing it.
8324
8325 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8326
8327 * graphite-sese-to-poly.c:
8328 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8329 id of the pbb), which contains pointer to the pbb1.
8330
8331 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8332
8333 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8334
8335 * graphite-isl-ast-to-gimple.c:
8336 (graphite_create_new_guard): New function.
8337 (translate_isl_ast_node_if): New function.
8338 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8339
8340 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8341
8342 2014-07-27 Anthony Green <green@moxielogic.com>
8343
8344 * config.gcc: Add moxie-*-moxiebox* configuration.
8345 * config/moxie/moxiebox.h: New file.
8346
8347 2014-07-26 Andrew Pinski <apinski@cavium.com>
8348
8349 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8350 from the read only register.
8351
8352 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8353
8354 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8355 as the allocation class if it isn't likely to be spilled.
8356
8357 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8358
8359 * rtl.h (tls_referenced_p): Declare.
8360 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8361 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8362 (mips_cannot_force_const_mem): Use tls_referenced_p.
8363 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8364 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8365 instead of pa_tls_referenced_p.
8366 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8367 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8368 (pa_legitimate_constant_p): Likewise.
8369 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8370 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8371 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8372 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8373 rs6000_tls_referenced_p.
8374 (rs6000_tls_symbol_ref_1): Delete.
8375
8376 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8377
8378 PR target/44551
8379 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8380 Optimize inverse of a VEC_CONCAT.
8381
8382 2014-07-25 Xinliang David Li <davidxl@google.com>
8383
8384 * params.def: New parameter.
8385 * coverage.c (get_coverage_counts): Check new flag.
8386 (coverage_compute_profile_id): Check new flag.
8387 (coverage_begin_function): Check new flag.
8388 (coverage_end_function): Check new flag.
8389 * value-prof.c (coverage_node_map_initialized_p): New function.
8390 (init_node_map): Populate map with all functions.
8391 * doc/invoke.texi: Document new parameter.
8392
8393 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8394 Richard Biener <rguenther@suse.de>
8395
8396 * lto-streamer-out.c (struct sccs): Turn to ...
8397 (class DFS): ... this one; refactor the DFS walk so it can
8398 be re-done on per-SCC basis.
8399 (DFS::DFS): New constructor.
8400 (DFS::~DFS): New destructor.
8401 (hash_tree): Add new MAP argument holding in-SCC hash values;
8402 remove POINTER_TYPE hashing hack.
8403 (scc_entry_compare): Rename to ...
8404 (DFS::scc_entry_compare): ... this one.
8405 (hash_scc): Rename to ...
8406 (DFS::hash_scc): ... this one; pass output_block instead
8407 of streamer_cache; work harder to get unique and stable SCC
8408 hashes.
8409 (DFS_write_tree): Rename to ...
8410 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8411 (lto_output_tree): Update.
8412
8413 2014-07-25 Andi Kleen <ak@linux.intel.com>
8414
8415 * lto-streamer-out.c (hash_tree): Convert to inchash.
8416
8417 2014-07-25 Andi Kleen <ak@linux.intel.com>
8418
8419 * tree.c (build_type_attribute_qual_variant): Use inchash.
8420 (type_hash_list): Dito.
8421 (attribute_hash_list): Dito
8422 (iterative_hstate_expr): Dito.
8423 (iterative_hash_expr): Dito.
8424 (build_range_type_1): Dito.
8425 (build_array_type_1): Dito.
8426 (build_function_type): Dito.
8427 (build_method_type_directly): Dito.
8428 (build_offset_type): Dito.
8429 (build_complex_type): Dito.
8430 (make_vector_type): Dito.
8431 * tree.h (iterative_hash_expr): Add compat wrapper.
8432 (iterative_hstate_expr): Add.
8433
8434 2014-07-25 Andi Kleen <ak@linux.intel.com>
8435
8436 * Makefile.in (OBJS): Add inchash.o.
8437 (PLUGIN_HEADERS): Add inchash.h.
8438 * ipa-devirt.c: Include inchash.h.
8439 * lto-streamer-out.c: Dito.
8440 * tree-ssa-dom.c: Dito.
8441 * tree-ssa-pre.c: Dito.
8442 * tree-ssa-sccvn.c: Dito.
8443 * tree-ssa-tail-merge.c: Dito.
8444 * asan.c: Dito.
8445 * tree.c (iterative_hash_hashval_t): Move to ...
8446 (iterative_hash_host_wide_int): Move to ...
8447 * inchash.c: Here. New file.
8448 * tree.h (iterative_hash_hashval_t): Move to ...
8449 (iterative_hash_host_wide_int): Move to ...
8450 * inchash.h: Here. New file.
8451
8452 2014-07-25 Richard Biener <rguenther@suse.de>
8453
8454 PR middle-end/61762
8455 PR middle-end/61894
8456 * fold-const.c (native_encode_int): Add and handle offset
8457 parameter to do partial encodings of expr.
8458 (native_encode_fixed): Likewise.
8459 (native_encode_real): Likewise.
8460 (native_encode_complex): Likewise.
8461 (native_encode_vector): Likewise.
8462 (native_encode_string): Likewise.
8463 (native_encode_expr): Likewise.
8464 * fold-const.c (native_encode_expr): Add offset parameter
8465 defaulting to -1.
8466 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8467 (fold_ctor_reference): Handle all reads from tcc_constant
8468 ctors.
8469
8470 2014-07-25 Richard Biener <rguenther@suse.de>
8471
8472 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8473 as possibly unused.
8474
8475 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8476
8477 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8478
8479 2014-07-24 Kyle McMartin <kyle@redhat.com>
8480
8481 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8482
8483 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8484
8485 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8486 Add prototype.
8487 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8488 function.
8489 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8490 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8491 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8492
8493 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8494
8495 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8496 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8497 aggregate types. Instead, *all* aggregate types, except for single-
8498 element or homogeneous float/vector aggregates, are quadword-aligned
8499 if required by their type alignment. Issue -Wpsabi note when a type
8500 is now treated differently than before.
8501
8502 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8503
8504 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8505 does not fit fully into floating-point registers, and there is still
8506 space in the register parameter area, use GPRs to pass those parts
8507 of the argument. Issue -Wpsabi note if any parameter is now treated
8508 differently than before.
8509 (rs6000_arg_partial_bytes): Update.
8510
8511 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8512
8513 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8514
8515 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8516
8517 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8518 * toplev.c (initialize_rtl): Don't use it. Move previously
8519 "language-dependent" calls to...
8520 (backend_init): ...here.
8521 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8522 Assert that RTL initialization hasn't happend yet.
8523
8524 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8525
8526 PR rtl-optimization/61629
8527 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8528 they have already been initialized.
8529
8530 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8531
8532 PR middle-end/61268
8533 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8534 DECL_INCOMING_RTL and entry_parm.
8535 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8536 * calls.c (load_register_parameters): Likewise argument values.
8537 (emit_library_call_value_1, store_one_arg): Likewise argument
8538 save areas.
8539 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8540 stack slot.
8541 * explow.c (validize_mem): Modify the argument in-place.
8542
8543 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8544
8545 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8546 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8547
8548 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8549
8550 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8551 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8552
8553 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8554
8555 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8556 (aarch64_save_callee_saves): New parameter "skip_wb".
8557 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8558
8559 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8560
8561 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8562 "wb_candidate2".
8563 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8564
8565 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8566
8567 * graphite-isl-ast-to-gimple.c:
8568 (graphite_create_new_loop): Add calling of isl_id_free to properly
8569 decrement reference counts.
8570
8571 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8572
8573 2014-07-24 Martin Liska <mliska@suse.cz>
8574 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8575 function used.
8576 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8577 (rs6000_code_end): Likewise.
8578
8579 2014-07-24 Martin Liska <mliska@suse.cz>
8580
8581 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8582 symtab_node funtion used.
8583 (rs6000_xcoff_declare_object_name): Likewise.
8584
8585 2014-07-24 Martin Liska <mliska@suse.cz>
8586
8587 * cgraphunit.c (compile): Correct function used.
8588
8589 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8590
8591 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8592 as non-indexable.
8593
8594 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8595
8596 PR lto/61802
8597 * varasm.c (bss_initializer_p): Handle offlined ctors.
8598 (align_variable, get_variable_align): Likewise.
8599 (make_decl_one_only): Likewise.
8600 (default_binds_local_p_1): Likewise.
8601 (decl_binds_to_current_def_p): Likewise.
8602 (get_variable_section): Get constructor if it is offlined.
8603 (assemble_variable_contents): Sanity check that the caller
8604 streamed in the ctor in LTO.
8605
8606 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8607
8608 * graphite-isl-ast-to-gimple.c:
8609 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8610 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8611 isl_ast_op_pdiv_r to the different case.
8612
8613 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8614
8615 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8616
8617 PR middle-end/61876
8618 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8619 when flag_errno_math is on.
8620
8621 2014-07-24 Martin Liska <mliska@suse.cz>
8622
8623 * cgraph.h (varpool_node):
8624 (availability get_availability (void)):
8625 created from cgraph_variable_initializer_availability
8626 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8627 created from: cgraph_variable_initializer_availability
8628 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8629 (void finalize_named_section_flags (void)):
8630 created from varpool_finalize_named_section_flags
8631 (bool assemble_decl (void)): created from varpool_assemble_decl
8632 (void analyze (void)): created from varpool_analyze_node
8633 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8634 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8635 (void remove_initializer (void)): created from varpool_remove_initializer
8636 (tree get_constructor (void)): created from varpool_get_constructor
8637 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8638 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8639 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8640 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8641 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8642 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8643 (static bool output_variables (void)): created from varpool_output_variables
8644 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8645 created from varpool_extra_name_alias
8646 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8647 (static void dump_varpool (FILE *f)): created from dump_varpool
8648 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8649 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8650 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8651 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8652 (void assemble_aliases (void)): created from assemble_aliases
8653
8654 2014-07-24 Martin Liska <mliska@suse.cz>
8655
8656 * cgraph.h (symtab_node):
8657 (void register_symbol (void)): created from symtab_register_node
8658 (void remove (void)): created from symtab_remove_node
8659 (void dump (FILE *f)): created from dump_symtab_node
8660 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8661 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8662 (struct ipa_ref *add_reference (symtab_node *referred_node,
8663 enum ipa_ref_use use_type)): created from add_reference
8664 (struct ipa_ref *add_reference (symtab_node *referred_node,
8665 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8666 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8667 gimple stmt)): created from maybe_add_reference
8668 (bool semantically_equivalent_p (symtab_node *target)): created from
8669 symtab_semantically_equivalent_p
8670 (void remove_from_same_comdat_group (void)): created from
8671 remove_from_same_comdat_group
8672 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8673 symtab_add_to_same_comdat_group
8674 (void dissolve_same_comdat_group_list (void)): created from
8675 symtab_dissolve_same_comdat_group_list
8676 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8677 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8678 created from symtab_alias_ultimate_target
8679 (inline symtab_node *next_defined_symbol (void)): created from
8680 symtab_next_defined_symbol
8681 (bool resolve_alias (symtab_node *target)): created from
8682 symtab_resolve_alias
8683 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8684 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8685 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8686 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8687 (void set_section (const char *section)): created from set_section_1
8688 (enum availability get_availability (void)): created from symtab_node_availability
8689 (void make_decl_local (void)): created from symtab_make_decl_local
8690 (bool real_symbol_p (void)): created from symtab_read_node
8691 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8692 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8693 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8694 symtab_in_same_comdat_p;
8695 (bool address_taken_from_non_vtable_p (void)): created from
8696 address_taken_from_non_vtable_p
8697 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8698 (static void dump_table (FILE *)): created from dump_symtab
8699 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8700 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8701 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8702 symtab_used_from_object_file_p
8703 (void dump_base (FILE *)): created from dump_symtab_base
8704 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8705 (void unregister (void)): created from symtab_unregister_node
8706 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8707 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8708 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8709 symtab_nonoverwritable_alias_1
8710 * cgraph.h (cgraph_node):
8711 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8712 created from cgraph_remove_node_and_inline_clones
8713 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8714 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8715 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8716 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8717 created from cgraph_function_node
8718 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8719 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8720 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8721 created from cgraph_create_clone
8722 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8723 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8724 created from cgraph_create_virtual_clone
8725 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8726 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8727 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8728 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8729 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8730 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8731 created from cgraph_function_version_info
8732 (struct cgraph_function_version_info *insert_new_function_version (void)):
8733 created from insert_new_cgraph_node_version
8734 (struct cgraph_function_version_info *function_version (void)): created from
8735 get_cgraph_node_version
8736 (void analyze (void)): created from analyze_function
8737 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8738 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8739 tree real_alias) cgraph_add_thunk
8740 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8741 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8742 created from cgraph_function_or_thunk_node
8743 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8744 created from expand_thunk
8745 (void reset (void)): created from cgraph_reset_node
8746 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8747 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8748 (void remove (void)): created from cgraph_remove_node
8749 (void dump (FILE *f)): created from dump_cgraph_node
8750 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8751 (bool get_body (void)): created from cgraph_get_body
8752 (void release_body (void)): created from cgraph_release_function_body
8753 (void unnest (void)): created from cgraph_unnest_node
8754 (void make_local (void)): created from cgraph_make_node_local
8755 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8756 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8757 gcov_type count, int freq)): created from cgraph_create_edge
8758 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8759 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8760 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8761 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8762 created from cgraph_create_edge_including_clones
8763 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8764 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8765 (void remove_callers (void)): created from cgraph_node_remove_callers
8766 (void remove_callees (void)): created from cgraph_node_remove_callees
8767 (enum availability get_availability (void)): created from cgraph_function_body_availability
8768 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8769 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8770 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8771 (void call_duplication_hooks (cgraph_node *node2)): created from
8772 cgraph_call_node_duplication_hooks
8773 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8774 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8775 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8776 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8777 (void call_function_insertion_hooks (void)):
8778 created from cgraph_call_function_insertion_hooks
8779 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8780 (bool local_p (void)): created from cgraph_local_node
8781 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8782 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8783 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8784 (inline bool only_called_directly_or_aliased_p (void)):
8785 created from cgraph_only_called_directly_or_aliased_p
8786 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8787 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8788 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8789 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8790 (bool can_remove_if_no_direct_calls_p (void)):
8791 created from cgraph_can_remove_if_no_direct_calls_p
8792 (inline bool has_gimple_body_p (void)):
8793 created from cgraph_function_with_gimple_body_p
8794 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8795 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8796 (static inline void debug_cgraph (void)): created from debug_cgraph
8797 (static void record_function_versions (tree decl1, tree decl2)):
8798 created from record_function_versions
8799 (static void delete_function_version (tree decl)):
8800 created from delete_function_version
8801 (static void add_new_function (tree fndecl, bool lowered)):
8802 created from cgraph_add_new_function
8803 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8804 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8805 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8806 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8807 (static cgraph_node *get_for_asmname (tree asmname)):
8808 created from cgraph_node_for_asm
8809 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8810 created from cgraph_same_body_alias
8811 (static bool used_from_object_file_p_worker (cgraph_node *node,
8812 void *): new function
8813 (static bool non_local_p (cgraph_node *node, void *)):
8814 created from cgraph_non_local_node_p_1
8815 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8816 created from verify_cgraph
8817 (static bool make_local (cgraph_node *node, void *)):
8818 created from cgraph_make_node_local
8819 (static cgraph_node *create_alias (tree alias, tree target)):
8820 created from cgraph_create_function_alias
8821 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8822 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8823 created from cgraph_create_edge_1
8824 * cgraph.h (varpool_node):
8825 (void remove (void)): created from varpool_remove_node
8826 (void dump (FILE *f)): created from dump_varpool_node
8827
8828 2014-07-24 Richard Biener <rguenther@suse.de>
8829
8830 PR ipa/61823
8831 * tree-ssa-structalias.c (create_variable_info_for_1):
8832 Use varpool_get_constructor.
8833 (create_variable_info_for): Likewise.
8834
8835 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8836
8837 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8838 subtract outgoing area size when restoring stack_pointer_rtx.
8839
8840 2014-07-24 Nick Clifton <nickc@redhat.com>
8841
8842 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8843 that operations are taking place in parallel.
8844 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8845
8846 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8847
8848 * omp-low.c (extract_omp_for_data): Add missing break statement.
8849
8850 2014-07-24 Richard Biener <rguenther@suse.de>
8851
8852 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8853 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8854 and adjust MOVE_RATIO query accordingly.
8855 (estimate_num_insns): Adjust callers.
8856 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8857 * ipa-cp.c (gather_context_independent_values,
8858 estimate_local_effects): Likewise.
8859 * ipa-split.c (consider_split): Likewise.
8860
8861 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8862
8863 * config/i386/driver-i386.c: Remove names of unused arguments and
8864 unnecessary unused attributes.
8865 * config/i386/host-mingw32.c: Likewise.
8866 * config/i386/i386.c: Likewise.
8867 * config/i386/winnt-stubs.c: Likewise.
8868 * config/i386/winnt.c: Likewise.
8869
8870 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8871
8872 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8873 (aarch64_gen_loadwb_pair): New helper function.
8874 (aarch64_expand_epilogue): Simplify code using new helper functions.
8875 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8876
8877 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8878
8879 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8880 (aarch64_gen_storewb_pair): New helper function.
8881 (aarch64_expand_prologue): Simplify code using new helper functions.
8882 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8883
8884 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8885
8886 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8887 Rename to aarch64_save_callee_saves, remove restore code.
8888 (aarch64_restore_callee_saves): New function.
8889
8890 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8891
8892 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8893 (aarch64_save_callee_saves): New function to handle reg save
8894 for both core and vectore regs.
8895
8896 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8897
8898 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8899 (aarch64_gen_store_pair): New helper function.
8900 (aarch64_save_or_restore_callee_save_registers)
8901 (aarch64_save_or_restore_fprs): Use new helper functions.
8902
8903 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8904
8905 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8906 (aarch64_save_or_restore_callee_save_registers)
8907 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8908
8909 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8910
8911 * config/aarch64/aarch64.c
8912 (aarch64_save_or_restore_callee_save_registers)
8913 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8914
8915 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8916
8917 * config/aarch64/aarch64.c
8918 (aarch64_save_or_restore_callee_save_registers)
8919 (aarch64_save_or_restore_fprs): Remove 'increment'.
8920
8921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8922
8923 * config/aarch64/aarch64.c
8924 (aarch64_save_or_restore_callee_save_registers)
8925 (aarch64_save_or_restore_fprs): Use register offset in
8926 cfun->machine->frame.reg_offset.
8927
8928 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8929
8930 * config/aarch64/aarch64.c
8931 (aarch64_save_or_restore_callee_save_registers)
8932 (aarch64_save_or_restore_fprs): Remove base_rtx.
8933
8934 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8935
8936 * config/aarch64/aarch64.c
8937 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8938 to 'start_offset'. Remove local variable 'start_offset'.
8939
8940 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8941
8942 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8943 type to HOST_WIDE_INT.
8944
8945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8946
8947 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8948 (aarch64_save_or_restore_fprs)
8949 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8950
8951 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8952
8953 * config/arm/t-rtems-eabi: Add
8954 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8955 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8956 mbig-endian/mthumb/march=armv7-r, and
8957 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8958 multilibs.
8959
8960 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8961 Chris Johns <chrisj@rtems.org>
8962 Joel Sherrill <joel.sherrill@oarcorp.com>
8963
8964 * config.gcc: Add nios2-*-rtems*.
8965 * config/nios2/rtems.h: New file.
8966 * gcc/config/nios2/t-rtems: New file.
8967
8968 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8969
8970 PR target/61396
8971 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8972 constant numbers, not general constants.
8973 (rs6000_expand_vector_init): Ditto.
8974
8975 2014-07-23 Nathan Sidwell <nathan@acm.org>
8976
8977 * gcov-tool.c (gcov_list): Declare here.
8978 (set_gcov_list): Remove.
8979 (gcov_output_files): Set gcov_list directly.
8980
8981 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8982
8983 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8984
8985 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8986
8987 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8988 callee-saved registers are available for padding purpose
8989 and r3 is not mandatory, then prefer use those callee-saved
8990 instead of r3.
8991
8992 2014-07-23 Richard Biener <rguenther@suse.de>
8993
8994 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8995 * combine.c: Include statistics.h and params.h.
8996 (combine_instructions): Guard three and four insn combines
8997 with max-combine-insns value. Record statistics for combines
8998 performed.
8999 * doc/invoke.texi (max-combine-insns): Document new param.
9000
9001 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9002
9003 * graphite-isl-ast-to-gimple.c:
9004 (translate_isl_ast_node_block): New function.
9005 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9006
9007 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9008 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9009
9010 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9011
9012 * graphite-isl-ast-to-gimple.c:
9013 (get_max_schedule_dimensions): New function.
9014 (extend_schedule): Likewise.
9015 (generate_isl_schedule): Add calling of extend_schedule and
9016 get_max_schedule_dimensions.
9017
9018 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9019
9020 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9021 (case UNSPEC): Handle UNSPEC_RBIT.
9022
9023 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9024
9025 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9026 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9027
9028 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9029
9030 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9031
9032 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9033
9034 * graphite-isl-ast-to-gimple.c:
9035 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9036 (ivs_params_clear):
9037 (build_iv_mapping): New function.
9038 (translate_isl_ast_node_user): Likewise.
9039 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9040
9041 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9042 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9043 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9044
9045 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9046
9047 PR target/55701
9048 * config/arm/arm.md (setmem): New pattern.
9049 * config/arm/arm-protos.h (struct tune_params): New fields.
9050 (arm_gen_setmem): New prototype.
9051 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9052 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9053 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9054 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9055 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9056 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9057 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9058 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9059 (arm_const_inline_cost): New function.
9060 (arm_block_set_max_insns): New function.
9061 (arm_block_set_non_vect_profit_p): New function.
9062 (arm_block_set_vect_profit_p): New function.
9063 (arm_block_set_unaligned_vect): New function.
9064 (arm_block_set_aligned_vect): New function.
9065 (arm_block_set_unaligned_non_vect): New function.
9066 (arm_block_set_aligned_non_vect): New function.
9067 (arm_block_set_vect, arm_gen_setmem): New functions.
9068
9069 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9070
9071 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9072
9073 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9074
9075 PR target/61855
9076 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9077 out of #ifdef __OPTIMIZE__.
9078
9079 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9080
9081 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9082 different trapping status if -fnon-call-exceptions is enabled.
9083
9084 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9085
9086 * expr.c (store_field): Handle VOIDmode for calls that return values
9087 in multiple locations.
9088
9089 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9090
9091 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9092 (altivec_vsldoi_<mode>): Likewise.
9093
9094 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9095
9096 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9097 to the number of characters in the line.
9098
9099 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9100
9101 * graphite-isl-ast-to-gimple.c: Add using of
9102 build_nonstandard_integer_type instead of int128_integer_type_node.
9103
9104 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9105
9106 * toplev.c (output_stack_usage): Adjust the location of the warning.
9107
9108 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9109
9110 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9111 (*membar_storeload): Disable for LEON3.
9112
9113 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9114
9115 PR rtl-optimization/61461
9116 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9117
9118 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9119
9120 PR target/61794
9121 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9122 Fix instruction constraint.
9123 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9124
9125 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9126
9127 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9128
9129 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9130
9131 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9132 GNU coding standards.
9133 (nds32_register_move_cost): Likewise.
9134 (nds32_memory_move_cost): Likewise.
9135 (nds32_address_cost): Likewise.
9136
9137 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9138
9139 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9140
9141 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9142
9143 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9144 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9145 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9146 (HAVE_sync_compare_and_swapqi): Define.
9147 (HAVE_sync_compare_and_swaphi): Likewise.
9148 (HAVE_sync_compare_and_swapsi): Likewise.
9149
9150 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9151
9152 * config/mips/p5600.md: Add missing cpu tests.
9153
9154 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9155
9156 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9157 (vmla_f64): Likewise.
9158 (vfms_f64): Likewise.
9159 (vmls_f64): Likewise.
9160
9161 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9162
9163 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9164 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9165
9166 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9167
9168 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9169 (vmlal_high_lane_s32): Likewise.
9170 (vmlal_high_lane_u16): Likewise.
9171 (vmlal_high_lane_u32): Likewise.
9172 (vmlsl_high_lane_s16): Likewise.
9173 (vmlsl_high_lane_s32): Likewise.
9174 (vmlsl_high_lane_u16): Likewise.
9175 (vmlsl_high_lane_u32): Likewise.
9176
9177 2014-07-17 Terry Guo <terry.guo@arm.com>
9178
9179 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9180 (alus_reg): Renamed to alus_sreg.
9181 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9182 from alu_reg to alu_sreg. Change type of dsp instructions from
9183 alu_reg to alu_dsp_reg.
9184 * config/arm/thumb1.md: Likewise.
9185 * config/arm/thumb2.md: Likewise.
9186 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9187 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9188 with alu_sreg and alus_sreg.
9189 * config/arm/arm1026ejs.md (alu_op): Likewise.
9190 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9191 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9192 * config/arm/fa526.md (526_alu_op): Likewise.
9193 * config/arm/fa606te.md (606te_alu_op): Likewise.
9194 * config/arm/fa626te.md (626te_alu_op): Likewise.
9195 * config/arm/fa726te.md (726te_alu_op): Likewise.
9196 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9197 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9198 alu_sreg, alu_dsp_reg and alus_sreg.
9199 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9200 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9201 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9202 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9203 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9204 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9205 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9206 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9207 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9208 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9209 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9210 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9211 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9212 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9213 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9214 alus_reg to alus_sreg.
9215
9216 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9217
9218 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9219 infinity format.
9220
9221 2014-07-17 Richard Biener <rguenther@suse.de>
9222
9223 PR rtl-optimization/61801
9224 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9225 don't set reg_pending_barrier if it appears in a debug-insn.
9226
9227 2014-07-16 DJ Delorie <dj@redhat.com>
9228
9229 * config/rx/rx.c (rx_option_override): Fix alignment values.
9230 (rx_align_for_label): Likewise.
9231
9232 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9233
9234 PR target/61737.
9235 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9236 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9237 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9238 functions.
9239 (cris_print_index, cris_print_operand, cris_constant_index_p)
9240 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9241 (cris_address_cost): Ditto last CONSTANT_P.
9242 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9243 callers changed. Yield cris_offsettable_symbol for non-PIC
9244 constant symbolic expressions including labels. Yield cris_unspec
9245 for all unspecs.
9246 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9247 target to pic_offset_table_rtx for calls that will likely go
9248 through PLT, const0_rtx when they can't. All callers changed.
9249 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9250 symbolic expressions to be PICified. Remove second, redundant,
9251 assert on can_create_pseudo_p returning non-zero. Use
9252 replace_equiv_address_nv, not replace_equiv_address, for final
9253 operand update.
9254 * config/cris/cris.md ("movsi"): Move variable t to pattern
9255 toplevel. Adjust assert for new cris_symbol_type member. Use
9256 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9257 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9258 for lapc stricter.
9259 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9260 ("call", "call_value"): Use second incoming operand as a marker
9261 for pic-offset-table-register being used.
9262 ("*expanded_call_non_v32", "*expanded_call_v32")
9263 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9264 second incoming operand to CALL, match cris_call_type_marker.
9265 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9266 ("*expanded_call_side"): Ditto. Fix typo in comment.
9267 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9268 CONSTANT_P.
9269 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9270 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9271 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9272 users changed. Add members cris_offsettable_symbol and cris_unspec.
9273 (cris_symbol_type): Rename from cris_pic_symbol_type.
9274 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9275 just CONSTANT_P.
9276 * config/cris/cris-protos.h (cris_symbol_type_of,
9277 cris_expand_pic_call_address): Adjust prototypes.
9278 (cris_legitimate_constant_p): New prototype.
9279
9280 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9281 an existing tmake_file. Don't add t-slibgcc and t-linux.
9282
9283 2014-07-17 Jason Merrill <jason@redhat.com>
9284
9285 PR c++/61623
9286 * symtab.c (symtab_remove_from_same_comdat_group): Also
9287 set_comdat_group to NULL_TREE.
9288 (verify_symtab): Fix diagnostic.
9289
9290 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9291
9292 PR target/61662
9293 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9294
9295 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9296
9297 Support location tracking for built-in macro tokens
9298 * input.h (is_location_from_builtin_token): New function declaration.
9299 * input.c (is_location_from_builtin_token): New function definition.
9300 * toplev.c (general_init): Tell libcpp what the pre-defined
9301 spelling location for built-in tokens is.
9302
9303 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9304
9305 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9306 on the FUNCTION_DECL.
9307
9308 2014-07-16 Richard Biener <rguenther@suse.de>
9309
9310 PR other/61782
9311 * doc/extend.texi (always_inline): Clarify.
9312
9313 2014-07-15 Eric Christopher <echristo@gmail.com>
9314
9315 * doc/invoke.texi (Link Options): Document -z option.
9316
9317 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9318
9319 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9320 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9321
9322 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9323
9324 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9325
9326 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9327
9328 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9329 varpool_assemble_decl.
9330 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9331 true.
9332
9333 2014-07-15 Michael Matz <matz@suse.de>
9334
9335 PR rtl-optimization/61772
9336 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9337
9338 2014-07-15 Richard Biener <rguenther@suse.de>
9339
9340 * opts.c (default_options_table): Disable bit-ccp at -Og.
9341
9342 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9343
9344 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9345
9346 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9347
9348 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9349 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9350 call langhook for unknown declaration.
9351 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9352 * tree.h (DECL_ARGUMENTS): Update.
9353 * print-tree.c (print_node): Update.
9354 * tree-core.h (tree_decl_non_common): Remove arguments.
9355 (tree_function_decl): Add arguments.
9356
9357 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9358
9359 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9360
9361 2014-07-14 Richard Biener <rguenther@suse.de>
9362
9363 PR tree-optimization/61779
9364 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9365 simplifying a condition.
9366
9367 2014-07-14 Richard Biener <rguenther@suse.de>
9368
9369 * builtins.c (c_strlen): Make only_value == 2 really only
9370 affect warning generation.
9371
9372 2014-07-14 Richard Biener <rguenther@suse.de>
9373
9374 PR tree-optimization/61757
9375 PR tree-optimization/61783
9376 PR tree-optimization/61787
9377 * tree-ssa-dom.c (record_equality): Revert canonicalization
9378 change and add comment.
9379 (propagate_rhs_into_lhs): Revert previous fix, removing
9380 loop depth restriction again.
9381
9382 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9383
9384 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9385 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9386 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9387 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9388 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9389 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9390 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9391
9392 2014-07-14 Richard Biener <rguenther@suse.de>
9393
9394 * cgraph.h (decl_in_symtab_p): Make inline.
9395
9396 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9397
9398 PR middle-end/61294
9399 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9400
9401 PR target/61656
9402 * config/i386/i386.c (classify_argument): Don't merge classes above
9403 number of words.
9404
9405 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9406
9407 * cgraph.h (symtab_node): Add nonzero_address.
9408 (decl_in_symtab_p): Break out from ...
9409 (symtab_get_node): ... here.
9410 * fold-const.c: Include cgraph.h
9411 (tree_single_nonzero_warnv_p): Use symtab to determine
9412 if symbol is non-zero.
9413 * symtab.c (symtab_node::nonzero_address): New method.
9414
9415 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9416
9417 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9418 forgotten in previous commit.
9419
9420 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9421
9422 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9423 on builtin types.
9424 * ipa-devirt.c: Include stor-layout.h and intl.h
9425 (odr_subtypes_equivalent_p): New function.
9426 (warn_odr): New function.
9427 (warn_type_mismatch): New function.
9428 (odr_types_equivalent_p): New function.
9429 (add_type_duplicate): Use it.
9430 * common.opt (Wodr): New flag.
9431 * doc/invoke.texi (Wodr): Document new warning.
9432
9433 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9434
9435 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9436 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9437 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9438 (varpool_get_constructor): Push CTORS_IN timevar.
9439 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9440
9441 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9442
9443 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9444 Remove VOID_FTYPE_PUSHORT.
9445 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9446 Change code to USHORT_FTYPE_VOID.
9447 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9448 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9449 (ix86_atomic_assign_expand_fenv): Update for
9450 __builtin_ia32_fnstsw changes.
9451 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9452 (fnstsw): Change operand 0 to nonimmediate operand.
9453
9454 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9455
9456 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9457 (varpool_get_constructor): New function.
9458 (varpool_ctor_useable_for_folding_p): Break out from ...
9459 (ctor_for_folding): ... here; use varpool_get_constructor.
9460 (varpool_assemble_decl): Likewise.
9461 * lto-streamer.h (struct output_block): Turn cgraph_node
9462 to symbol filed.
9463 (lto_input_variable_constructor): Declare.
9464 * ipa-visibility.c (function_and_variable_visibility): Use
9465 varpool_get_constructor.
9466 * cgraph.h (varpool_get_constructor): Declare.
9467 (varpool_ctor_useable_for_folding_p): New function.
9468 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9469 parameter; return error_mark_node for non-trivial constructors.
9470 (lto_write_tree_1, DFS_write_tree): Update use of
9471 get_symbol_initial_value.
9472 (output_function): Update initialization of symbol.
9473 (output_constructor): New function.
9474 (copy_function): Rename to ..
9475 (copy_function_or_variable): ... this one; handle vars too.
9476 (lto_output): Output variable sections.
9477 * lto-streamer-in.c (input_constructor): New function.
9478 (lto_read_body): Rename from ...
9479 (lto_read_body_or_constructor): ... this one; handle vars too.
9480 (lto_input_variable_constructor): New function.
9481 * ipa-prop.c (ipa_prop_write_jump_functions,
9482 ipa_prop_write_all_agg_replacement): Update.
9483 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9484 (output_cgraph_opt_summary): Set symbol to NULL.
9485
9486 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9487
9488 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9489 non-polymorphic types.
9490 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9491 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9492 of types is not polymorphic.
9493
9494 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9495
9496 * lra-constraints.c (remove_inheritance_pseudos): Process
9497 destination pseudo too.
9498
9499 2014-07-11 Rong Xu <xur@google.com>
9500
9501 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9502 commit r212448.
9503
9504 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9505
9506 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9507 * config/avr/avr-devices.c (AVR_MCU): Same.
9508 (avr_mcu_types): add text start value to end of device list.
9509 * config/avr/avr-mcus.def: Add text section start for all devices.
9510 (ata5782): Add new avr5 device.
9511 (ata5831): Same.
9512 * config/avr/avr-tables.opt: Regenerate.
9513 * config/avr/avr.h: Add declaration for text section start handler.
9514 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9515 SPEC functions.
9516 (LINK_SPEC): Include text section start handler to linker spec.
9517 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9518 pass -Ttext option to linker if the text section start for the device
9519 is not zero.
9520 * config/avr/t-multilib: Regenerate.
9521 * doc/avr-mmcu.texi: Regenerate.
9522
9523 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9524
9525 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9526 * config/rs6000/aix52.h (LINK_SPEC): Same.
9527 * config/rs6000/aix53.h (LINK_SPEC): Same.
9528 * config/rs6000/aix61.h (LINK_SPEC): Same.
9529 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9530
9531 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9532
9533 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9534 (graphite_verify): New function.
9535 (ivs_params_clear): New function.
9536 (gcc_expression_from_isl_ast_expr_id): New function.
9537 (gcc_expression_from_isl_expr_int): New function.
9538 (binary_op_to_tree): New function.
9539 (ternary_op_to_tree): New function.
9540 (unary_op_to_tree): New function.
9541 (nary_op_to_tree): New function.
9542 (gcc_expression_from_isl_expr_op): New function.
9543 (gcc_expression_from_isl_expression): New function.
9544 (graphite_create_new_loop): New function.
9545 (translate_isl_ast_for_loop): New function.
9546 (get_upper_bound): New function.
9547 (graphite_create_new_loop_guard): New function.
9548 (translate_isl_ast_node_for): New function.
9549 (translate_isl_ast): New function.
9550 (add_parameters_to_ivs_params): New function.
9551 (scop_to_isl_ast): New parameter ip.
9552 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9553
9554 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9555
9556 * config/xtensa/predicates.md (call expander): Update for
9557 DECL_SECTION_NAME being string.
9558
9559 2014-07-11 Richard Biener <rguenther@suse.de>
9560
9561 PR middle-end/61473
9562 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9563 can be implemented with a single load followed by a single store.
9564 (c_strlen): Only warn when only_value is not 2.
9565
9566 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9567
9568 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9569
9570 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9571
9572 PR target/61561
9573 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9574 (*movhi_bytes): Likewise.
9575 (*arm_movqi_insn): Likewise.
9576
9577 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9578
9579 PR target/56858
9580 * config/alpha/alpha.c: Include tree-pass.h, context.h
9581 and pass_manager.h.
9582 (pass_data_handle_trap_shadows): New pass.
9583 (pass_handle_trap_shadows::gate): New pass gate function.
9584 (make_pass_handle_trap_shadows): New function.
9585 (rest_of_handle_trap_shadows): Ditto.
9586
9587 (alpha_align_insns_1): Rename from alpha_align_insns.
9588 (pass_data_align_insns): New pass.
9589 (pass_align_insns::gate): New pass gate function.
9590 (make_pass_aling_insns): New function.
9591 (rest_of_align_insns): Ditto.
9592 (alpha_align_insns): Ditto.
9593
9594 (alpha_option_override): Declare handle_trap_shadows info
9595 and align_insns_info. Register handle_trap_shadows and align_insns
9596 passes here.
9597 (alpha_reorg): Do not call alpha_trap_shadows and
9598 alpha_align_insn from here.
9599
9600 (alpha_pad_function_end): Do not skip BARRIERs.
9601
9602 2014-07-10 Rong Xu <xur@google.com>
9603
9604 Add gcov-tool: an offline gcda profile processing tool support.
9605 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9606 (gcov_is_error): Ditto.
9607 (gcov_read_string): Ditto.
9608 (gcov_read_sync): Ditto.
9609 * gcov-io.h: Move counter defines to gcov-counter.def.
9610 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9611 * coverage.c: Ditto.
9612 * gcov-tool.c: Offline gcda profile processing tool.
9613 (unlink_gcda_file): Remove one gcda file.
9614 (unlink_profile_dir): Remove gcda files from the profile path.
9615 (gcov_output_files): Output gcda files to an output dir.
9616 (profile_merge): Merge two profiles in directory.
9617 (print_merge_usage_message): Print merge usage.
9618 (merge_usage): Print merge usage and exit.
9619 (do_merge): Driver for profile merge sub-command.
9620 (profile_rewrite): Rewrite profile.
9621 (print_rewrite_usage_message): Print rewrite usage.
9622 (rewrite_usage): Print rewrite usage and exit.
9623 (do_rewrite): Driver for profile rewrite sub-command.
9624 (print_usage): Print gcov-info usage and exit.
9625 (print_version): Print gcov-info version.
9626 (process_args): Process arguments.
9627 (main): Main routine for gcov-tool.
9628 * Makefile.in: Build and install gcov-tool.
9629 * gcov-counter.def: New file split from gcov-io.h.
9630 * doc/gcc.texi: Include gcov-tool.texi.
9631 * doc/gcov-tool.texi: Document for gcov-tool.
9632
9633 2014-07-10 Richard Biener <rguenther@suse.de>
9634
9635 PR tree-optimization/61757
9636 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9637 (propagate_rhs_into_lhs): Revert part of last change.
9638
9639 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9640
9641 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9642 FUNCTION_DECLs.
9643
9644 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 PR middle-end/53590
9647 * function.c (allocate_struct_function): Revert r188667 change.
9648
9649 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9650
9651 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9652
9653 * doc/install.texi: Remove links to defunct package providers for
9654 Solaris.
9655
9656 2014-07-09 Tom de Vries <tom@codesourcery.com>
9657
9658 * final.c (get_call_fndecl): Declare.
9659 (self_recursive_call_p): New function.
9660 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9661
9662 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9663
9664 * ipa-devirt.c (record_node): Walk through aliases.
9665
9666 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9667
9668 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9669
9670 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9671
9672 Revert:
9673 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9674
9675 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9676
9677 * ipa-visibility.c (function_and_variable_visibility): Remove
9678 temporary hack disabling local aliases on AIX.
9679
9680 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9681
9682 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9683 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9684
9685 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9686
9687 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9688 * rs6000/rs6000.c: Inline output of .set instruction.
9689 (declare_alias_data): New struct.
9690 (rs6000_declare_alias): New function.
9691 (rs6000_xcoff_declare_function_name): Use it.
9692 (rs6000_xcoff_declare_object_name): New function.
9693 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9694 (ASM_OUTPUT_DEF): Turn to empty definition.
9695
9696 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9697
9698 PR bootstrap/61679
9699 * hash-table.h: use hash_table::value_type instead of
9700 Descriptor::value_type in the return types of several methods.
9701
9702 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9703
9704 * tree-pass.h (pass_data): Remove has_execute member.
9705 * passes.c (execute_one_pass): Don't check pass->has_execute.
9706 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9707 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9708 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9709 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9710 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9711 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9712 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9713 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9714 gimple-low.c, gimple-ssa-isolate-paths.c,
9715 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9716 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9717 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9718 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9719 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9720 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9721 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9722 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9723 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9724 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9725 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9726 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9727 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9728 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9729 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9730 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9731 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9732 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9733 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9734 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9735 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9736 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9737 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9738 web.c: Remove initializer for pass_data::has_execute.
9739
9740 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9741
9742 * graphite-htab.h: Use hash_map instead of hash_table.
9743 * graphite-clast-to-gimple.c: Adjust.
9744 * passes.c: Use hash_map instead of hash_table.
9745 * sese.c: Likewise.
9746 * sese.h: Remove now unused code.
9747
9748 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9749
9750 PR target/61599
9751 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9752 than zero.
9753
9754 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9755
9756 PR rtl-optimization/61673
9757 * combine.c (simplify_comparison): Test just mode's sign bit
9758 in tmode rather than the sign bit and any bits above it.
9759
9760 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9761
9762 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9763 Add __isl_give to the declaration.
9764 (generate_isl_schedule): Likewise.
9765 (scop_to_isl_ast): Likewise.
9766
9767 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9768
9769 * config/arm/arm.c (cortexa5_extra_costs): New table.
9770 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9771
9772 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9773
9774 PR tree-optimization/61725
9775 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9776 range, use range_includes_zerop_p instead of integer_zerop on
9777 vr0->min, only use log2 of max if min is not negative.
9778
9779 2014-07-08 Richard Biener <rguenther@suse.de>
9780
9781 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9782 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9783 restriction on loop depth difference.
9784 (record_equality): Likewise.
9785 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9786 (loop_depth_of_name): Remove.
9787 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9788 restriction on loop depth difference.
9789 (init_copy_prop): Likewise.
9790
9791 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9792
9793 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9794 parameter.
9795 (walk_aliased_vdefs): Likewise.
9796 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9797 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9798 (detect_type_change_from_memory_writes): Check if entry was reached.
9799
9800 2014-07-08 Richard Biener <rguenther@suse.de>
9801
9802 PR tree-optimization/61681
9803 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9804 NONLOCAL inside ESCAPED.
9805
9806 2014-07-08 Richard Biener <rguenther@suse.de>
9807
9808 PR tree-optimization/61680
9809 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9810 Handle properly all read-write dependences with group accesses.
9811
9812 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9813
9814 PR tree-optimization/61576
9815 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9816 block containing reduction statement is predecessor of phi basi block.
9817
9818 2014-07-08 Marek Polacek <polacek@redhat.com>
9819
9820 PR c/60226
9821 * fold-const.c (round_up_loc): Change the parameter type.
9822 Remove assert.
9823 * fold-const.h (round_up_loc): Adjust declaration.
9824 * stor-layout.c (finalize_record_size): Check for too large types.
9825
9826 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9827
9828 * symtab.c: Include calls.h.
9829 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9830
9831 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9832
9833 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9834 little-endian code generation.
9835 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9836 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9837 (spe_evmergehilo): Rename to...
9838 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9839 (spe_evmergelo): Rename to...
9840 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9841 (spe_evmergelohi): Rename to...
9842 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9843 (spe_evmergehi, spe_evmergehilo): New expanders.
9844 (spe_evmergelo, spe_evmergelohi): Likewise.
9845 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9846 (*frob_tf_ti): Likewise.
9847 (*frob_<mode>_di_2): Likewise.
9848 (*frob_tf_di_8_2): Likewise.
9849 (*frob_di_<mode>): Likewise.
9850 (*frob_ti_tf): Likewise.
9851 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9852 (*frob_ti_<mode>_8_2): Likewise.
9853 (*frob_ti_tf_2): Likewise.
9854 (mov_si<mode>_e500_subreg0): Rename to...
9855 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9856 endianness only.
9857 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9858 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9859 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9860 the big endianness only.
9861 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9862 (*mov_si<mode>_e500_subreg0_2): Rename to...
9863 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9864 big big endianness only.
9865 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9866 (*mov_si<mode>_e500_subreg4): Rename to...
9867 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9868 endianness only.
9869 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9870 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9871 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9872 the big endianness only.
9873 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9874 pattern.
9875 (*mov_si<mode>_e500_subreg4_2): Rename to...
9876 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9877 endianness only.
9878 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9879 (*mov_sitf_e500_subreg8): Rename to...
9880 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9881 endianness only.
9882 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9883 (*mov_sitf_e500_subreg8_2): Rename to...
9884 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9885 endianness only.
9886 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9887 (*mov_sitf_e500_subreg12): Rename to...
9888 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9889 endianness only.
9890 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9891 (*mov_sitf_e500_subreg12_2): Rename to...
9892 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9893 endianness only.
9894 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9895
9896 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9897
9898 * asan.c (instrument_strlen_call): Do not instrument first byte
9899 in strlen if already instrumented.
9900
9901 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9902
9903 * config/arm/arm.opt (mwords-little-endian): Delete.
9904 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9905 of TARGET_LITTLE_WORDS.
9906 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9907 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9908 warning.
9909 * doc/invoke.texi: Remove references to -mwords-little-endian.
9910
9911 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9912
9913 * expmed.c (struct init_expmed_rtl): Change all fields but
9914 pow2 and cint from struct rtx_def to rtx.
9915 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9916 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9917 at the end again.
9918
9919 2014-07-06 Marek Polacek <polacek@redhat.com>
9920
9921 PR c/6940
9922 * doc/invoke.texi: Document -Wsizeof-array-argument.
9923
9924 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9925
9926 * wide-int.h (wide_int_storage): Change declaration from struct
9927 to class.
9928
9929 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9930
9931 * cgraph.c (cgraph_create_indirect_edge): Update call of
9932 get_polymorphic_call_info.
9933 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9934 (possible_polymorphic_call_targets): Add parameter call.
9935 (decl_maybe_in_construction_p): New predicate.
9936 (get_polymorphic_call_info): Add parameter call;
9937 use decl_maybe_in_construction_p.
9938 * gimple-fold.c (fold_gimple_assign): Update use of
9939 possible_polymorphic_call_targets.
9940 (gimple_fold_call): Likewise.
9941 * ipa-prop.c: Inlcude calls.h
9942 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9943 (param_type_may_change_p): New predicate.
9944 (detect_type_change_from_memory_writes): Break out from ...
9945 (detect_type_change): ... this one; use param_type_may_change_p.
9946 (detect_type_change_ssa): Use param_type_may_change_p.
9947 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9948
9949 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9950
9951 PR target/49423
9952 * config/arm/arm-protos.h (arm_legitimate_address_p,
9953 arm_is_constant_pool_ref): Add prototypes.
9954 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9955 (arm_is_constant_pool_ref) New function.
9956 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9957 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9958 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9959 operand. Remove pool_range and neg_pool_range attributes.
9960 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9961 pool_range and neg_pool_range attributes.
9962 * config/arm/constraints.md (Uh): New constraint.
9963 (Uq): Don't allow constant pool references.
9964
9965 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9966
9967 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9968 (move_lo_quad_internal_be_<mode>): Likewise.
9969 (move_lo_quad_<mode>): Convert to define_expand.
9970 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9971 (aarch64_simd_move_hi_quad_be_<mode>): New.
9972 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9973 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9974 (aarch64_combinez_be<mode>): New.
9975 (aarch64_combine<mode>): Convert to define_expand.
9976 (aarch64_combine_internal<mode>): New.
9977 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9978
9979 2014-07-04 Tom de Vries <tom@codesourcery.com>
9980
9981 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9982 combination of earlyclobber and read/write modifiers.
9983
9984 2014-07-04 Tom de Vries <tom@codesourcery.com>
9985
9986 * config/aarch64/aarch64-simd.md
9987 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9988
9989 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9990
9991 PR target/61714
9992 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9993
9994 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9995
9996 PR middle-end/61654
9997 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9998
9999 PR tree-optimization/61684
10000 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10001 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10002
10003 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10004 Kito Cheng <kito@0xlab.org>
10005 Monk Chiang <sh.chiang04@gmail.com>
10006
10007 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10008 (nds32_symbol_load_store_p): Move to ...
10009 (nds32_fp_as_gp_check_available): Move to ...
10010 * config/nds32/nds32-fp-as-gp.c: ... here.
10011 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10012 extern declaration.
10013
10014 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10015 Kito Cheng <kito@0xlab.org>
10016 Monk Chiang <sh.chiang04@gmail.com>
10017
10018 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10019 (nds32_expand_store_multiple): Move to ...
10020 (nds32_expand_movmemqi): Move to ...
10021 * config/nds32/nds32-memory-manipulation.c: ... here.
10022
10023 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10024 Kito Cheng <kito@0xlab.org>
10025 Monk Chiang <sh.chiang04@gmail.com>
10026
10027 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10028 (nds32_output_casesi_pc_relative): Move to ...
10029 (nds32_output_casesi): Move to ...
10030 (nds32_mem_format): Move to ...
10031 (nds32_output_16bit_store): Move to ...
10032 (nds32_output_16bit_load): Move to ...
10033 (nds32_output_32bit_store): Move to ...
10034 (nds32_output_32bit_load): Move to ...
10035 (nds32_output_32bit_load_s): Move to ...
10036 (nds32_output_stack_push): Move to ...
10037 (nds32_output_stack_pop): Move to ...
10038 * config/nds32/nds32-md-auxiliary.c: ... here.
10039
10040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10041 Ling-Hua Tseng <uranus@tinlans.org>
10042
10043 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10044 the purpose of this file.
10045
10046 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10047 Kito Cheng <kito@0xlab.org>
10048 Monk Chiang <sh.chiang04@gmail.com>
10049
10050 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10051 (nds32_address_cost): Move implementation to ...
10052 * config/nds32/nds32-cost.c: ... here.
10053 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10054 (nds32_address_cost_impl): Declare.
10055
10056 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10057 Kito Cheng <kito@0xlab.org>
10058 Monk Chiang <sh.chiang04@gmail.com>
10059
10060 * config/nds32/nds32.c
10061 (nds32_consecutive_registers_load_store_p): Move to ...
10062 (nds32_valid_multiple_load_store): Move to ...
10063 (nds32_valid_stack_push_pop): Move to ...
10064 (nds32_can_use_bclr_p): Move to ...
10065 (nds32_can_use_bset_p): Move to ...
10066 (nds32_can_use_btgl_p): Move to ...
10067 (nds32_can_use_bitci_p): Move to ...
10068 * config/nds32/nds32-predicates.c: ... here.
10069
10070 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10071 Kito Cheng <kito@0xlab.org>
10072 Monk Chiang <sh.chiang04@gmail.com>
10073
10074 * config/nds32/nds32.c
10075 (nds32_expand_builtin_null_ftype_reg): Move to ...
10076 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10077 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10078 (nds32_init_builtins): Move implementation to ...
10079 (nds32_expand_builtin): Move implementation to ...
10080 * config/nds32/nds32-intrinsic.c: ... here.
10081 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10082 (nds32_expand_builtin_impl): Declare.
10083
10084 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10085 Kito Cheng <kito@0xlab.org>
10086 Monk Chiang <sh.chiang04@gmail.com>
10087
10088 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10089 (nds32_emit_section_tail_template): Move to ...
10090 (nds32_emit_isr_jmptbl_section): Move to ...
10091 (nds32_emit_isr_vector_section): Move to ...
10092 (nds32_emit_isr_reset_conten): Move to ...
10093 (nds32_check_isr_attrs_conflict): Move to ...
10094 (nds32_construct_isr_vectors_information): Move to ...
10095 (nds32_asm_file_start): Move implementation to ...
10096 (nds32_asm_file_end): Move implementation to ...
10097 * config/nds32/nds32-isr.c: ... here.
10098 * config/nds32/nds32-protos.h
10099 (nds32_check_isr_attrs_conflict): Declare.
10100 (nds32_construct_isr_vectors_information): Declare.
10101 (nds32_asm_file_start_for_isr): Declare.
10102 (nds32_asm_file_end_for_isr): Declare.
10103
10104 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10105 Kito Cheng <kito@0xlab.org>
10106 Monk Chiang <sh.chiang04@gmail.com>
10107
10108 * config.gcc (nds32*): Add new modules to extra_objs.
10109 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10110 (nds32be-*-*): Likewise.
10111 * config/nds32/nds32-cost.c: New file.
10112 * config/nds32/nds32-fp-as-gp.c: New file.
10113 * config/nds32/nds32-intrinsic.c: New file.
10114 * config/nds32/nds32-isr.c: New file.
10115 * config/nds32/nds32-md-auxiliary.c: New file.
10116 * config/nds32/nds32-memory-manipulation.c: New file.
10117 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10118 * config/nds32/nds32-predicates.c: New file.
10119 * config/nds32/t-nds32: New file.
10120
10121 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10122
10123 PR tree-optimization/61682
10124 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10125 using cases and when one of the operands is equal to 1.
10126
10127 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10128
10129 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10130 ashr<mode>3): Correct mode of operands[2].
10131 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10132 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10133 Correct mode of operands[2]. Fix split condition.
10134
10135 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10136
10137 * arm.md (arch): Add armv6_or_vfpv3.
10138 (arch_enabled): Add test for the above.
10139 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10140 on VFP9.
10141 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10142
10143 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10144
10145 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10146 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10147 HWI 1 and negate the unsigned value.
10148 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10149 use AND instead of shift.
10150 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10151
10152 2014-07-03 Marek Polacek <polacek@redhat.com>
10153
10154 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10155 (-fsanitize=float-divide-by-zero): Move to the table with
10156 -fsanitize=undefined suboptions.
10157 (-fsanitize=float-cast-overflow): Likewise.
10158
10159 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10160
10161 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10162 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10163 endianness.
10164
10165 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10166
10167 * loop-invariant.c (struct invariant): Add a new member: eqno;
10168 (find_identical_invariants): Update eqno;
10169 (create_new_invariant): Init eqno;
10170 (get_inv_cost): Compute comp_cost with eqno;
10171
10172 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10173
10174 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10175 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10176 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10177 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10178 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10179
10180 2014-07-02 Christian Bruel <christian.bruel@st.com>
10181
10182 PR target/29349
10183 PR target/53513
10184 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10185 (make_preds_opaque): Delete.
10186 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10187 (commit_mode_sets): New function.
10188 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10189 Process all modes at once.
10190 * basic-block.h (pre_edge_lcm_avs): Declare.
10191 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10192 Call clear_aux_for_edges. Fix comments.
10193 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10194 (pre_edge_rev_lcm): Idem.
10195 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10196 parameter.
10197 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10198 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10199 Idem.
10200 * config/i386/i386.c (x96_emit_mode_set): Idem.
10201 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10202 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10203 (fpscr_toggle) Disallow from delay slot.
10204 * target.def (emit_mode_set): Add prev_mode parameter.
10205 * doc/tm.texi: Regenerate.
10206
10207 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10208
10209 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10210 variable i.
10211
10212 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10213
10214 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10215 vtable_pointer_value_to_vtable): Constify.
10216 (contains_polymorphic_type_p): Declare.
10217 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10218 vtable_pointer_value_to_vtable): Constify.
10219 (contains_polymorphic_type_p): New predicate.
10220 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10221 polymorphic types.
10222 (ipa_set_ancestor_jf): Likewise.
10223 (detect_type_change): Return false in easy cases.
10224 (compute_complex_assign_jump_func): Require type to contain
10225 polymorphic type.
10226 (compute_known_type_jump_func): Likewise.
10227
10228 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10229
10230 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10231 Remove.
10232 (type_in_anonymous_namespace_p): Constify argument.
10233 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10234 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10235 (main_odr_variant): New function.
10236 (hash_type_name): Make static; update assert; do not ICE on
10237 non-records.
10238 (types_same_for_odr): Bring here from tree.c; simplify and remove
10239 old structural comparing code that doesn't work for templates.
10240 (odr_hasher::equal): Update assert.
10241 (add_type_duplicate): Return true when bases should be computed;
10242 replace incomplete loader by complete; do not output duplicated
10243 warnings; do not ICE on non-records; set odr_violated flag.
10244 (get_odr_type): Be ready to replace incomplete type by complete
10245 one; work on ODR variants instead of main variants; reorder item
10246 in array so bases have still smaller indexes.
10247 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10248 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10249
10250 2014-07-01 Cary Coutant <ccoutant@google.com>
10251
10252 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10253 lookup.
10254 (resolve_addr_in_expr): When replacing the rtx in a location list
10255 entry, get a new address table entry.
10256 (dwarf2out_finish): Call index_location_lists even if there are no
10257 addr_index_table entries yet.
10258
10259 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10260
10261 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10262 change for not being obvious.
10263
10264 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10265
10266 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10267 unused argument.
10268
10269 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10270
10271 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10272 (vcagt_f64): Likewise.
10273 (vcale_f64): Likewise.
10274 (vcaled_f64): Likewise.
10275 (vcales_f32): Likewise.
10276 (vcalt_f64): Likewise.
10277 (vcaltd_f64): Likewise.
10278 (vcalts_f32): Likewise.
10279
10280 2014-07-01 Marek Polacek <polacek@redhat.com>
10281
10282 * doc/invoke.texi: Document -Wint-conversion.
10283
10284 2014-07-01 Marek Polacek <polacek@redhat.com>
10285
10286 PR c/58286
10287 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10288
10289 2014-07-01 Martin Liska <mliska@suse.cz>
10290
10291 IPA REF alias refactoring
10292 * cgraph.h (iterate_direct_aliases): New function.
10293 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10294 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10295 FOR_EACH_ALIAS added.
10296 (cgraph_for_node_and_aliases): Likewise.
10297 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10298 * ipa-inline.c (reset_edge_caches): Likewise.
10299 (update_caller_keys): Likewise.
10300 * trans-mem.c (ipa_tm_execute): Likewise.
10301 *varpool.c (varpool_analyze_node): Likewise.
10302 (varpool_for_node_and_aliases): Likewise.
10303 * ipa-ref.h (first_alias): New function.
10304 (last_alias): Likewise.
10305 (has_aliases_p): Likewise.
10306 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10307 is sensitive to IPA_REF_ALIASes.
10308 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10309 are put at the beginning of the list.
10310 (symtab_node::iterate_direct_aliases): New function.
10311
10312 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10313
10314 Revert:
10315 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10316 type is complete.
10317 (write_ts_type_common_tree_pointers): Do not stream fields not set
10318 for incomplete types; do not stream duplicated fields for variants;
10319 sanity check that variant and type match.
10320 (write_ts_type_non_common_tree_pointers): Likewise.
10321 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10322 TYPE_SIZE whether type is complete.
10323 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10324 write_ts_type_common_tree_pointers
10325 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10326
10327 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10328
10329 * var-tracking.c (add_stores): Return instead of asserting if old
10330 and new values for conditional store are the same.
10331
10332 2014-06-30 Richard Henderson <rth@redhat.com>
10333
10334 PR rtl-opt/61608
10335 PR target/39284
10336 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10337 the cfg if there were any changes.
10338 * passes.def: Revert move of peephole2 after reorder_blocks;
10339 move duplicate_computed_gotos before peephole2.
10340
10341 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10342
10343 * except.c (emit_note_eh_region_end): New helper function.
10344 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10345 emit EH_REGION_END note.
10346 * jump.c (cleanup_barriers): Do not split a call and its
10347 corresponding CALL_ARG_LOCATION note.
10348
10349 2014-06-30 Jeff Law <law@redhat.com>
10350
10351 PR tree-optimization/61607
10352 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10353 deeper into the SSA_NAME_VALUE chain.
10354
10355 2014-06-30 Marek Polacek <polacek@redhat.com>
10356
10357 * convert.c (convert_to_integer): Don't instrument conversions if the
10358 function has no_sanitize_undefined attribute.
10359 * ubsan.c: Don't run the ubsan pass if the function has
10360 no_sanitize_undefined attribute.
10361
10362 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10363
10364 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10365 -fsanitize=undefined suboptions.
10366
10367 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10368
10369 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10370 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10371 against bigendian and adjust indices.
10372
10373 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10374
10375 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10376
10377 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10378
10379 PR target/61633
10380 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10381 Add alternative; make early clobber. Adjust both split patterns
10382 to use operand 0 as the working register.
10383
10384 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10385
10386 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10387 as ira_object_id_map might be NULL, or 1.
10388
10389 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10390
10391 * loop-invariant.c (get_inv_cost): Handle register class.
10392 (gain_for_invariant): Check the register pressure of the inv
10393 and its overlapped register class, other than all.
10394
10395 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10396
10397 * doc/invoke.texi (Optimize Options): Fix descriptions of
10398 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10399
10400 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10401
10402 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10403 documentation.
10404
10405 2014-06-29 Tobias Grosser <tobias@grosser.es>
10406
10407 PR bootstrap/61650
10408 * graphite-isl-ast-to-gimple.c: Add missing guards.
10409
10410 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10411
10412 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10413 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10414 * flag-types.h: Add new enum fgraphite_generator.
10415 * graphite-isl-ast-to-gimple.c: New.
10416 * graphite-isl-ast-to-gimple.h: New.
10417 * graphite.c (graphite_transform_loops): Add choice of Graphite
10418 code generator, which depends on flag_graphite_code_gen.
10419
10420 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10421
10422 * graphite-dependences.c (subtract_commutative_associative_deps):
10423 Add NULL checking of the following variables: must_raw_no_source,
10424 may_raw_no_source, must_war_no_source, may_war_no_source,
10425 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10426 must_war, may_war, must_waw, may_waw.
10427
10428 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10429
10430 * graphite-clast-to-gimple.c: gloog is renamed to
10431 graphite_regenerate_ast_cloog. gloog_error is renamed to
10432 graphite_regenerate_error.
10433 * graphite-clast-to-gimple.h: The definition of the struct
10434 bb_pbb_def is moved to graphite-htab.h.
10435 Add inclusion of the hash-table.h.
10436 * graphite-htab.h: The declaration of the function gloog is moved
10437 to graphite-clast-to-gimple.h and renamed to
10438 graphite_regenerate_ast_cloog.
10439 * graphite.c (graphite_transform_loops): gloog is renamed
10440 to graphite_regenerate_ast_cloog.
10441
10442 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10443
10444 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10445 type is complete.
10446 (write_ts_type_common_tree_pointers): Do not stream fields not set
10447 for incomplete types; do not stream duplicated fields for variants;
10448 sanity check that variant and type match.
10449 (write_ts_type_non_common_tree_pointers): Likewise.
10450 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10451 TYPE_SIZE whether type is complete.
10452 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10453 write_ts_type_common_tree_pointers
10454 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10455
10456 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10457
10458 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10459
10460 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10461
10462 * tree-inline.c (remap_type_1): Do not duplicate fields
10463 that are shared in between type and its main variant.
10464
10465 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10466
10467 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10468 of the type.
10469 (ipa_set_ancestor_jf) Likewise.
10470 (check_stmt_for_type_change): Check that we work on main variant.
10471 (detect_type_change): Look into main variant.
10472 (compute_known_type_jump_func): Check that main variant has BINFO.
10473
10474 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10475
10476 * ipa-devirt.c (set_type_binfo): New function.
10477 (add_type_duplicate): Use it.
10478 (get_odr_type): Sanity check that binfos points to main variants.
10479 (get_class_context): Be sure the context's outer_type is main variant.
10480 (contains_type_p): Walk main variant.
10481 (get_polymorphic_call_info_for_decl): Set outer_type to be
10482 main variant.
10483 (get_polymorphic_call_info): Likewise.
10484 (possible_polymorphic_call_targets): Sanity check that we operate
10485 on main variant.
10486
10487 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10488
10489 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10490
10491 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10492
10493 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10494 accidental change due to wide-int branch merge.
10495
10496 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10497
10498 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10499 compressed debug support.
10500 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10501 * configure: Regenerate.
10502 * config.in: Regenerate.
10503 * common.opt (compressed_debug_sections): New enum.
10504 (gz, gz=): New options.
10505 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10506 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10507 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10508 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10509 LINK_COMPRESS_DEBUG_SPEC.
10510 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10511 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10512 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10513 (Debugging Options): Document -gz[=type].
10514
10515 2014-06-27 Martin Jambor <mjambor@suse.cz>
10516
10517 PR ipa/61160
10518 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10519 args_to_skip, use those from node instead. Copy args_to_skip and
10520 combined_args_to_skip from node to the new thunk.
10521 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10522 (cgraph_create_virtual_clone): Moved computation of
10523 combined_args_to_skip...
10524 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10525
10526 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10527
10528 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10529 redundant diagnostic machinary.
10530
10531 2014-06-27 Richard Biener <rguenther@suse.de>
10532
10533 * tree-ssa-math-opts.c (bswap_replace): Fix
10534 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10535
10536 2014-06-27 Martin Liska <mliska@suse.cz>
10537
10538 * gimple.h (gimple_location_safe): New function introduced.
10539 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10540 of gimple_location_safe replaces gimple_location.
10541 (gimple_fold_call): Likewise.
10542 * ipa-devirt.c (ipa_devirt): Likewise.
10543 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10544 * ipa.c (walk_polymorphic_call_targets): Likewise.
10545 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10546
10547 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10548
10549 PR tree-optimization/57233
10550 PR tree-optimization/61299
10551 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10552 functions.
10553 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10554 would be lowered to scalar shifts, check if corresponding
10555 shifts and vector BIT_IOR_EXPR are supported and don't lower
10556 or lower just to narrower vector type in that case.
10557 * expmed.c (expand_shift_1): Fix up handling of vector
10558 shifts and rotates.
10559
10560 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10561
10562 PR target/61586
10563 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10564
10565 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10566
10567 * doc/invoke.texi (-fsemantic-interposition): Document.
10568 * common.opt (fsemantic-interposition): New flag.
10569 * varasm.c (decl_replaceable_p): Use it.
10570
10571 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10572
10573 PR target/61542
10574 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10575 extraction other than index 3.
10576
10577 2014-06-26 Teresa Johnson <tejohnson@google.com>
10578
10579 * doc/invoke.texi: Fix typo.
10580 * dumpfile.c: Add support for documented -fdump-* options
10581 optimized/missed/note/optall.
10582
10583 2014-06-26 Martin Jambor <mjambor@suse.cz>
10584
10585 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10586 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10587 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10588 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10589 * opts.c (default_options_optimization): Set
10590 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10591 * doc/invoke.texi (allow-load-data-races)
10592 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10593 (allow-store-data-races): Document the new default.
10594
10595 2014-06-26 Martin Jambor <mjambor@suse.cz>
10596
10597 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10598 renamed to ipa_impossible_devirt_target. Fix typo.
10599 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10600 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10601 ipa_impossible_devirt_target.
10602
10603 2014-06-26 Richard Biener <rguenther@suse.de>
10604
10605 PR tree-optimization/61607
10606 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10607 explaining why we restrict copies on loop depth.
10608 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10609 on loop depth.
10610 (record_equivalences_from_phis): Instead add it here.
10611
10612 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10613
10614 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10615 (LTO_WRAPPER_OBJS): New variable.
10616 (lto-wrapper$(exeext)): Use it.
10617 * collect2.c: Include "collect-utils.h".
10618 (verbose, debug): Remove variables.
10619 (at_file_supplied): No longer static.
10620 (tool_name): New variable.
10621 (do_wait, fork_execute, maybe_unlink): Don't declare.
10622 (tool_cleanup): No longer static.
10623 (notice): Remove function.
10624 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10625 fork_execute calls.
10626 (collect_wait, do_wait, collect_execute): Remove functions.
10627 (maybe_unlink): No longer static.
10628 * collect2.h (verbose, debug): Don't declare.
10629 (at_file_supplied): Declare.
10630 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10631 changed.
10632 (collect_execute): Replace with implementation from collect2, plus a
10633 new arg use_atfile. All callers changed.
10634 (collect_wait): Replace with implementation from collect2.
10635 (maybe_unlink_file): Remove function.
10636 (fork_execute): Replace with implementation from collect2, plus a
10637 new arg use_atfile. All callers changed.
10638 (do_wait): Add call to utils_cleanup to the error path.
10639 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10640 (tool_cleanup): Adjust declarations.
10641 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10642 * tlink.c: Include "collect-utils.h".
10643 (tlink_execute): New arg use_atfile. All callers changed.
10644 (tlink_init, tlink_execute): Remove declarations.
10645
10646 * collect-utils.c (save_temps): New variable.
10647 (do_wait): Use it instead of debug. Use fatal_error.
10648 * collect-utils.h (save_temps): Declare.
10649 * collect2.c (verbose): Rename from vflag. All uses changed.
10650 (tool_cleanup): New function, copied from collect_atexit.
10651 (collect_atexit, handler): Just call it.
10652 * collect2.h (verbose): Declaration renamed from vflag.
10653 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10654 debug.
10655
10656 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10657 (lto-wrapper$(exeext)): Link with collect-utils.o.
10658 * collect-utils.c: New file.
10659 * collect-utils.h: New file.
10660 * lto-wrapper.c: Include "collect-utils.h".
10661 (args_name): Delete variable.
10662 (tool_name): New variable.
10663 (tool_cleanup): New function.
10664 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10665 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10666 (fork_execute): Remove functions.
10667
10668 2014-06-26 Nick Clifton <nickc@redhat.com>
10669
10670 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10671
10672 * doc/extend.texi (Function Attributes): Fix typo in description
10673 of RX vector attribute.
10674
10675 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10676
10677 * config.gcc (supported_defaults): Error when passing either
10678 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10679
10680 2014-06-26 Richard Biener <rguenther@suse.de>
10681
10682 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10683 propagating volatile pointers.
10684
10685 2014-06-26 Richard Biener <rguenther@suse.de>
10686
10687 PR tree-optimization/61607
10688 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10689 loop if we redirected its latch edge.
10690 (thread_block_1): Do not cancel loops prematurely.
10691
10692 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10693
10694 * toplev.c (backend_init_target): Move init_emit_regs and
10695 init_regs to...
10696 (backend_init) ... here; skip ira_init_once and backend_init_target.
10697 (target_reinit) ... and here; clear
10698 this_target_rtl->lang_dependent_initialized.
10699 (lang_dependent_init_target): Clear
10700 this_target_rtl->lang_dependent_initialized;
10701 break out rtl initialization to ...
10702 (initialize_rtl): ... here; call also backend_init_target
10703 and ira_init_once.
10704 * toplev.h (initialize_rtl): New function.
10705 * function.c: Include toplev.h
10706 (init_function_start): Call initialize_rtl.
10707 * rtl.h (target_rtl): Add target_specific_initialized,
10708 lang_dependent_initialized.
10709
10710 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10711 Jakub Jelinek <jakub@redhat.com>
10712
10713 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10714
10715 2014-06-25 Tom de Vries <tom@codesourcery.com>
10716
10717 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10718
10719 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10720
10721 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10722 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10723 Issue a strict overflow warning if appropriate.
10724
10725 2014-06-25 Martin Liska <mliska@suse.cz>
10726
10727 IPA REF refactoring
10728 * Makefile.in: Removed header file (ipa-ref-inline.h).
10729 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10730 called.
10731 (cgraph_speculative_call_info): Likewise.
10732 (cgraph_for_node_thunks_and_aliases): Likewise.
10733 (cgraph_for_node_and_aliases): Likewise.
10734 (verify_cgraph_node): Likewise.
10735 * cgraph.h: Batch of IPA REF functions become member functions of
10736 symtab_node: add_reference, maybe_add_reference, clone_references,
10737 clone_referring, clone_reference, find_reference,
10738 remove_stmt_references, remove_all_references,
10739 remove_all_referring, dump_references, dump_referring,
10740 has_alias_p, iterate_reference, iterate_referring.
10741 * cgraphbuild.c (record_reference): New IPA REF function used.
10742 (record_type_list): Likewise.
10743 (record_eh_tables): Likewise.
10744 (mark_address): Likewise.
10745 (mark_load): Likewise.
10746 (mark_store): Likewise.
10747 (pass_build_cgraph_edges): Likewise.
10748 (rebuild_cgraph_edge): Likewise.
10749 (cgraph_rebuild_references): Likewise.
10750 (pass_remove_cgraph_callee_edges): Likewise.
10751 * cgraphclones.c (cgraph_clone_node): Likewise.
10752 (cgraph_create_virtual_clone): Likewise.
10753 (cgraph_materialize_clone): Likewise.
10754 (cgraph_materialize_all_clones): Likewise.
10755 * cgraphunit.c (cgraph_reset_node): Likewise.
10756 (cgraph_reset_node): Likewise.
10757 (analyze_function): Likewise.
10758 (assemble_thunks_and_aliases): Likewise.
10759 (expand_function): Likewise.
10760 * ipa-comdats.c (propagate_comdat_group): Likewise.
10761 (enqueue_references): Likewise.
10762 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10763 (create_specialized_node): Likewise.
10764 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10765 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10766 * ipa-inline.c (reset_edge_caches): Likewise.
10767 (update_caller_keys): Likewise.
10768 (execute): Likewise.
10769 * ipa-prop.c (remove_described_reference): Likewise.
10770 (propagate_controlled_uses): Likewise.
10771 (ipa_edge_duplication_hook): Likewise.
10772 (ipa_modify_call_arguments): Likewise.
10773 * ipa-pure-const.c (propagate_pure_const): Likewise.
10774 * ipa-ref-inline.h: Header file removed, functions moved
10775 to symtab_node class.
10776 * ipa-ref.c (remove_reference): New class member function.
10777 (cannot_lead_to_return): New class member function.
10778 (referring_ref_list): Likewise.
10779 (referred_ref_list): Likewise.
10780 Rest of functions moved to symtab_node class.
10781 * ipa-ref.h: New member functions remove_reference,
10782 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10783 to ipa_ref class.
10784 ipa_ref_list class has new member functions: first_reference,
10785 first_referring, clear, nreferences.
10786 * ipa-reference.c (analyze_function): New IPA REF function used.
10787 (write_node_summary_p): Likewise.
10788 (ipa_reference_write_optimization_summary): Likewise.
10789 * ipa-split.c (split_function): Likewise.
10790 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10791 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10792 (function_and_variable_visibility): Likewise.
10793 * ipa.c (has_addr_references_p): Likewise.
10794 (process_references): Argument type changed.
10795 (symtab_remove_unreachable_nodes): New IPA REF function used.
10796 (process_references): Likewise.
10797 (set_writeonly_bit): Likewise.
10798 * lto-cgraph.c: Implementation of new symtab_node member functions
10799 that uses new IPA REF functions.
10800 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10801 function used.
10802 * lto-streamer-out.c (output_symbol_p): Likewise.
10803 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10804 changed.
10805 * symtab.c: Implementation of new IPA REF API.
10806 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10807 (ipa_tm_create_version): Likewise.
10808 (ipa_tm_execute): Likewise.
10809 * tree-emutls.c (gen_emutls_addr): Likewise.
10810 * tree-inline.c (copy_bb): Likewise.
10811 (delete_unreachable_blocks_update_callgraph): Likewise.
10812 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10813 (varpool_for_node_and_aliases): Likewise.
10814
10815 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10816
10817 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10818
10819 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10820
10821 PR bootstrap/61598
10822 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10823 tree_node * instead of tree_node *.
10824 (fold): Adjust.
10825 (print_fold_checksum): Likewise.
10826 (fold_check_failed): Likewise.
10827 (debug_fold_checksum): Likewise.
10828 (fold_build1_stat_loc): Likewise.
10829 (fold_build2_stat_loc): Likewise.
10830 (fold_build3_stat_loc): Likewise.
10831 (fold_build_call_array_loc): Likewise.
10832
10833 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10834
10835 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10836 implementation with call to...
10837 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10838 function.
10839 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10840 Declare.
10841
10842 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10843
10844 PR tree-optimization/57742
10845 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10846 after replacing the statement.
10847
10848 2014-06-25 Nick Clifton <nickc@redhat.com>
10849
10850 * config/v850/v850.c (GHS_default_section_names): Change to const
10851 char * type.
10852 (GHS_current_section_names): Likewise.
10853 (v850_insert_attributes): Do not build strings, just assign the
10854 names directly. Change the type of 'chosen_section' to const
10855 char*.
10856 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10857 directly to the array entry.
10858 * config/v850/v850.h (GHS_default_section_names): Change to const
10859 char * type.
10860 (GHS_current_section_names): Likewise.
10861
10862 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10863
10864 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10865 (LANG_HOOKS_DECLS): Add it.
10866 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10867 has correct type.
10868 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10869 * langhooks.h (struct lang_hooks_for_decls): Add
10870 omp_clause_linear_ctor hook.
10871 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10872 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10873 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10874 combined simd loop use omp_clause_linear_ctor hook.
10875
10876 2014-06-24 Cong Hou <congh@google.com>
10877
10878 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10879 pattern recognition.
10880 (type_conversion_p): PROMOTION is true if it's a type promotion
10881 conversion, and false otherwise. Return true if the given expression
10882 is a type conversion one.
10883 * tree-vectorizer.h: Adjust the number of patterns.
10884 * tree.def: Add SAD_EXPR.
10885 * optabs.def: Add sad_optab.
10886 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10887 * expr.c (expand_expr_real_2): Likewise.
10888 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10889 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10890 * optabs.c (optab_for_tree_code): Likewise.
10891 * tree-cfg.c (estimate_operator_cost): Likewise.
10892 * tree-ssa-operands.c (get_expr_operands): Likewise.
10893 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10894 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10895 * doc/generic.texi: Add document for SAD_EXPR.
10896 * doc/md.texi: Add document for ssad and usad.
10897
10898 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10899
10900 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10901 qualification in cast.
10902
10903 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10904
10905 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10906 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10907 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10908 (tree_function_decl): ... here.
10909 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10910 streaming of vindex to ...
10911 (write_ts_function_decl_tree_pointers): ... here.
10912 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10913 Do not stream DECL_VINDEX.
10914 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10915
10916 2014-06-24 Catherine Moore <clm@codesourcery.com>
10917 Sandra Loosemore <sandra@codesourcery.com>
10918
10919 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10920 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10921 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10922
10923 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10924
10925 * doc/invoke.texi (Warning Options): Remove duplicated
10926 -Wmaybe-uninitialized.
10927
10928 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10929
10930 PR tree-optimization/57742
10931 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10932 (handle_builtin_malloc, handle_builtin_memset): New functions.
10933 (strlen_optimize_stmt): Call them.
10934 * passes.def: Move strlen after loop+dom but before vrp.
10935
10936 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10937
10938 PR target/61570
10939 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10940 model family 6 CPU with has_longmode never use a CPU without
10941 64-bit support.
10942
10943 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10944
10945 PR target/61570
10946 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10947 the last change.
10948
10949 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10950
10951 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10952 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10953 pointer_map.
10954 * hash-map.h: New file.
10955 * ipa-comdats.c: Use hash_map instead of pointer_map.
10956 * ipa.c: Likewise.
10957 * lto-section-out.c: Adjust.
10958 * lto-streamer.h: Replace pointer_map with hash_map.
10959 * symtab.c (verify_symtab): Likewise.
10960 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10961 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10962 * tree-streamer.h: Likewise.
10963 * tree-streamer.c: Adjust.
10964 * pointer-set.h: Remove pointer_map.
10965
10966 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10967
10968 * hash-table.h: Add a template arg to choose between storing values
10969 and storing pointers to values, and then provide partial
10970 specializations for both.
10971 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10972 should store, not the type values should point to.
10973 * tree-into-ssa.c (var_info_hasher): Likewise.
10974 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10975 * tree-complex.c: Adjust.
10976 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10977 table instead of int_tree_map *.
10978 * tree-parloops.c: Adjust.
10979 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10980 type is being stored.
10981 * tree-vectorizer.c: Adjust.
10982
10983 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10984
10985 * hash-table.h: Remove a layer of indirection from hash_table so that
10986 it contains the hash table's data instead of a pointer to the data.
10987 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10988 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10989 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10990 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10991 fold-const.c, gcse.c, ggc-common.c,
10992 gimple-ssa-strength-reduction.c, gimplify.c,
10993 graphite-clast-to-gimple.c, graphite-dependences.c,
10994 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10995 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10996 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10997 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10998 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10999 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11000 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11001 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11002 tree-ssa-live.c, tree-ssa-loop-im.c,
11003 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11004 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11005 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11006 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11007 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11008 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11009 vtable-verify.c, vtable-verify.h: Adjust.
11010
11011 2014-06-24 Richard Biener <rguenther@suse.de>
11012
11013 PR tree-optimization/61572
11014 * tree-ssa-sink.c (statement_sink_location): Do not sink
11015 loads from hard registers.
11016
11017 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11018
11019 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11020 not mentioned in clauses use private clause if the iterator is
11021 declared in #pragma omp for simd, and when adding lastprivate
11022 instead, add it to the outer #pragma omp for too. Diagnose
11023 if the variable is private in outer context. For simd collapse > 1
11024 loops, replace all iterators with temporaries.
11025 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11026 same even in collapse > 1 loops.
11027
11028 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11029 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11030 non-NULL.
11031 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11032 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11033 non-NULL.
11034 (gimplify_adjust_omp_clauses): Likewise.
11035 * omp-low.c (lower_rec_simd_input_clauses,
11036 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11037 safelen the same as safelen(1).
11038 * tree-nested.c (convert_nonlocal_omp_clauses,
11039 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11040 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11041 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11042 Fixup handling of GIMPLE_OMP_TARGET.
11043 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11044 GIMPLE_OMP_TARGET.
11045
11046 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11047
11048 PR tree-optimization/61554
11049 * tree-ssa-propagate.c: Include "bitmap.h".
11050 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11051 properly update constructor/destructor.
11052 (substitute_and_fold_dom_walker::before_dom_children):
11053 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11054 need_eh_cleaup instead.
11055 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11056 need_eh_cleanup.
11057
11058 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11059
11060 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11061 * tree-pass.h (make_pass_ipa_single_use): New pass.
11062 * cgraph.h (used_by_single_function): New flag.
11063 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11064 Stream it.
11065 * passes.def (pass_ipa_single_use): Scedule.
11066 * ipa.c (BOTTOM): New macro.
11067 (meet): New function
11068 (propagate_single_user): New function.
11069 (ipa_single_use): New function.
11070 (pass_data_ipa_single_use): New pass.
11071 (pass_ipa_single_use): New pass.
11072 (pass_ipa_single_use::gate): New gate.
11073 (make_pass_ipa_single_use): New function.
11074
11075 2014-06-23 Kai Tietz <ktietz@redhat.com>
11076
11077 PR target/39284
11078 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11079 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11080
11081 2014-06-23 Richard Biener <rguenther@suse.de>
11082
11083 * tree-ssa-loop.c (gate_loop): New function.
11084 (pass_tree_loop::gate): Call it.
11085 (pass_data_tree_no_loop, pass_tree_no_loop,
11086 make_pass_tree_no_loop): New.
11087 * tree-vectorizer.c: Include tree-scalar-evolution.c
11088 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11089 required.
11090 (pass_slp_vectorize::clone): New method.
11091 * timevar.def (TV_TREE_NOLOOP): New.
11092 * tree-pass.h (make_pass_tree_no_loop): Declare.
11093 * passes.def (pass_tree_no_loop): New pass group with
11094 SLP vectorizer.
11095
11096 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11097
11098 PR target/61570
11099 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11100 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11101
11102 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11103
11104 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11105 "yes" where needed.
11106
11107 2014-06-23 Alan Modra <amodra@gmail.com>
11108
11109 PR bootstrap/61583
11110 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11111 to zero on debug statements.
11112
11113 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11114
11115 PR target/60825
11116 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11117 Ignore third operand if present by marking qualifier_internal.
11118
11119 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11120
11121 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11122 vector extension.
11123 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11124 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11125 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11126 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11127 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11128 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11129 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11130 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11131 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11132 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11133 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11134 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11135 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11136 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11137 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11138 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11139 logic in GCC vector extensions
11140
11141 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11142 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11143 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11144 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11145 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11146 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11147 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11148 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11149 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11150 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11151
11152 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11153
11154 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11155 extensions.
11156
11157 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11158 (vget_low_s64): Use __GET_LOW macro.
11159 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11160 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11161 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11162 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11163 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11164
11165 (vcombine_s64): Use GCC vector extensions; remove cast.
11166 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11167 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11168 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11169 Fix type signature; remove cast.
11170
11171 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11172
11173 PR target/60825
11174 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11175 V1DFmode.
11176 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11177 add V1DFmode
11178 (BUILTIN_VD1): New.
11179 (BUILTIN_VD_RE): Remove.
11180 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11181 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11182 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11183 variant but not df.
11184 (vreinterpretv1df*, vreinterpret*v1df): New.
11185 (vreinterpretdf*, vreinterpret*df): Remove.
11186 * config/aarch64/aarch64-simd.md (aarch64_create,
11187 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11188 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11189 (VD1): New.
11190 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11191 (vcreate_f64): Remove cast, use v1df builtin.
11192 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11193 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11194 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11195 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11196 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11197 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11198 add range check using __builtin_aarch64_im_lane_boundsi.
11199 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11200 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11201 type signature, use gcc vector extensions.
11202 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11203 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11204 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11205 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11206 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11207 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11208 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11209 vreinterpret_u64_f64): Use v1df builtin not df.
11210
11211 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11212
11213 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11214 vector registers.
11215
11216 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11217
11218 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11219 priority directly.
11220
11221 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11222
11223 * loop-invariant.c (pre_check_invariant_p): New function.
11224 (find_invariant_insn): Call pre_check_invariant_p.
11225
11226 2014-06-22 Richard Henderson <rth@redhat.com>
11227
11228 PR target/61565
11229 * compare-elim.c (struct comparison): Add eh_note.
11230 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11231 a redundant comparison in a different EH region. Purge EH edges if
11232 necessary.
11233
11234 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11235
11236 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11237 (var_shift): Use it.
11238 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11239 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11240 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11241 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11242 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11243 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11244 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11245 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11246 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11247 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11248 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11249 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11250 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11251 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11252 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11253 *rotldi3_internal15be): Use the new attribute. Merge register and
11254 integer alternatives.
11255
11256 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11257
11258 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11259 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11260 split, *ashrdi3_internal3 and split): Delete, merge into...
11261 (ashr<mode>3): New expander.
11262 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11263 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11264
11265 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11266
11267 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11268 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11269 *rotldi3_internal3 and split): Delete, merge into...
11270 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11271 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11272 Use "rotlw" extended mnemonic.
11273
11274 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11275
11276 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11277 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11278 and split, *ashldi3_internal3 and split): Delete, merge into...
11279 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11280 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11281
11282 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11283
11284 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11285 (lshrsi3, two anonymous define_insns and define_splits,
11286 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11287 *lshrdi3_internal3 and split): Delete, merge into...
11288 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11289 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11290
11291 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11292
11293 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11294 Remove "O" alternative.
11295
11296 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11297
11298 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11299 (mips_move_from_gpr_cost): Likewise.
11300 (mips_register_move_cost): Update accordingly.
11301 (mips_secondary_reload_class): Remove name of in_p.
11302
11303 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11304
11305 PR target/61503
11306 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11307 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11308
11309 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11310
11311 * config/nios2/nios2.c: Include "builtins.h".
11312
11313 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11314
11315 * cgraph.h (tls_model_names): New variable.
11316 * print-tree.c (print_node): Simplify.
11317 * varpool.c (tls_model_names): New variable.
11318 (dump_varpool_node): Output tls model.
11319
11320 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11321
11322 * ipa-visibility.c (function_and_variable_visibility): Disable
11323 temporarily local aliases for some targets.
11324
11325 2014-06-20 Marek Polacek <polacek@redhat.com>
11326
11327 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11328 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11329 into SANITIZE_UNDEFINED.
11330 * doc/invoke.texi: Describe -fsanitize=bounds.
11331 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11332 functions created in the FEs.
11333 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11334 (expand_UBSAN_BOUNDS): New function.
11335 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11336 * internal-fn.h: Don't define internal functions here.
11337 * opts.c (common_handle_option): Add -fsanitize=bounds.
11338 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11339 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11340 * tree-core.h: Define internal functions here.
11341 (struct tree_base): Add ifn field.
11342 * tree-pretty-print.c: Include "internal-fn.h".
11343 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11344 * tree.c (get_callee_fndecl): Likewise.
11345 (build_call_expr_internal_loc): New function.
11346 * tree.def (CALL_EXPR): Update description.
11347 * tree.h (CALL_EXPR_IFN): Define.
11348 (build_call_expr_internal_loc): Declare.
11349 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11350 types.
11351 (ubsan_type_descriptor): Change bool parameter to enum
11352 ubsan_print_style. Adjust the code. Add handling of
11353 UBSAN_PRINT_ARRAY.
11354 (ubsan_expand_bounds_ifn): New function.
11355 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11356 (ubsan_build_overflow_builtin): Likewise.
11357 (instrument_bool_enum_load): Likewise.
11358 (ubsan_instrument_float_cast): Likewise.
11359 * ubsan.h (enum ubsan_print_style): New enum.
11360 (ubsan_expand_bounds_ifn): Declare.
11361 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11362
11363 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11364
11365 * config/rs6000/rs6000.md: Append `DONE' to preparation
11366 statements of `bswap' pattern splitters.
11367
11368 2014-06-20 Tom de Vries <tom@codesourcery.com>
11369
11370 * target.def (call_fusage_contains_non_callee_clobbers): Update
11371 definition.
11372 * doc/tm.texi: Regenerate.
11373
11374 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11375 Max Ostapenko <m.ostapenko@partner.samsung.com>
11376
11377 PR sanitizer/61547
11378 * asan.c (instrument_strlen_call): Fixed instrumentation of
11379 trailing byte.
11380
11381 2014-06-20 Martin Jambor <mjambor@suse.cz>
11382
11383 PR ipa/61540
11384 * ipa-prop.c (impossible_devirt_target): New function.
11385 (try_make_edge_direct_virtual_call): Use it, also instead of
11386 asserting.
11387
11388 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11389 Max Ostapenko <m.ostapenko@partner.samsung.com>
11390
11391 PR sanitizer/61530
11392 * asan.c (build_check_stmt): Add condition.
11393
11394 2014-06-20 Martin Jambor <mjambor@suse.cz>
11395
11396 PR ipa/61211
11397 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11398 expanded clones.
11399
11400 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11401
11402 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11403 Update comments.
11404 (VCONQ): Make comment more helpful.
11405 (VCON): Delete.
11406 * config/aarch64/aarch64-simd.md
11407 (aarch64_sqdmulh_lane<mode>):
11408 Use VCOND for operands 2. Update lane checking and flipping logic.
11409 (aarch64_sqrdmulh_lane<mode>): Likewise.
11410 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11411 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11412 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11413 attribute of operand 3 to VCOND.
11414 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11415 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11416 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11417 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11418 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11419 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11420 define_insn.
11421 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11422 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11423 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11424 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11425 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11426 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11427 operand to VCOND. Update lane flipping and bounds checking logic.
11428 (aarch64_sqdmlal2_lane<mode>): Likewise.
11429 (aarch64_sqdmlsl_lane<mode>): Likewise.
11430 (aarch64_sqdmull_lane<mode>): Likewise.
11431 (aarch64_sqdmull2_lane<mode>): Likewise.
11432 (aarch64_sqdmlal_laneq<mode>):
11433 Replace VCON usage with VCONQ.
11434 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11435 (aarch64_sqdmlal2_laneq<mode>): Emit
11436 aarch64_sqdmlal2_laneq<mode>_internal insn.
11437 Replace VCON with VCONQ.
11438 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11439 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11440 (aarch64_sqdmull_laneq<mode>): Emit
11441 aarch64_sqdmull_laneq<mode>_internal insn.
11442 Replace VCON with VCONQ.
11443 (aarch64_sqdmull2_laneq<mode>): Emit
11444 aarch64_sqdmull2_laneq<mode>_internal insn.
11445 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11446 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11447 of 3rd argument to int16x4_t.
11448 (vqdmlalh_lane_s16): Likewise.
11449 (vqdmlslh_lane_s16): Likewise.
11450 (vqdmull_high_lane_s16): Likewise.
11451 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11452 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11453 (vqdmlsl_lane_s16): Likewise.
11454 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11455 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11456 (vqdmlals_lane_s32): Likewise.
11457 (vqdmlsls_lane_s32): Likewise.
11458 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11459 (vqdmulls_lane_s32): Likewise.
11460 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11461 (vqdmlsl_lane_s32): Likewise.
11462 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11463 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11464 (vqrdmulhh_lane_s16): Likewise.
11465 (vqdmlsl_high_lane_s16): Likewise.
11466 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11467 (vqdmlsl_high_lane_s32): Likewise.
11468 (vqrdmulhs_lane_s32): Likewise.
11469
11470 2014-06-20 Tom de Vries <tom@codesourcery.com>
11471
11472 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11473 get_call_reg_set_usage.
11474
11475 2014-06-20 Tom de Vries <tom@codesourcery.com>
11476
11477 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11478 it contains all call_used_regs.
11479
11480 2014-06-20 Tom de Vries <tom@codesourcery.com>
11481
11482 * final.c (collect_fn_hard_reg_usage): Add and use variable
11483 function_used_regs.
11484
11485 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11486
11487 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11488 (set_init_priority, get_init_priority, set_fini_priority,
11489 get_fini_priority): New methods.
11490 * tree.c (init_priority_for_decl): Remove.
11491 (init_ttree): Do not initialize init priority.
11492 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11493 (decl_priority_info): Remove.
11494 (decl_init_priority_insert): Rewrite.
11495 (decl_fini_priority_insert): Rewrite.
11496 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11497 tree_priority_map_marked_p): Remove.
11498 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11499 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11500 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11501 not output priorities.
11502 (pack_ts_function_decl_value_fields): Likewise.
11503 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11504 not input priorities.
11505 (unpack_ts_function_decl_value_fields): Likewise.
11506 * symtab.c (symbol_priority_map): Declare.
11507 (init_priority_hash): Declare.
11508 (symtab_unregister_node): Unregister from priority hash, too.
11509 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11510 New methods.
11511 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11512 (symbol_priority_info): New function.
11513 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11514 New methods.
11515 * tree-core.h (tree_priority_map): Remove.
11516
11517 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11518
11519 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11520 0xff to uint64_t before shifting it up.
11521
11522 2014-06-20 Julian Brown <julian@codesourcery.com>
11523 Chung-Lin Tang <cltang@codesourcery.com>
11524
11525 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11526 TARGET_THUMB1_ONLY. Add comments.
11527
11528 2014-06-19 Tom de Vries <tom@codesourcery.com>
11529
11530 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11531 return type to void.
11532 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11533
11534 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11535
11536 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11537 as "move", from depends_on.
11538
11539 2014-06-19 Terry Guo <terry.guo@arm.com>
11540
11541 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11542 stage.
11543
11544 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11545
11546 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11547 Remove cr5.
11548 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11549
11550 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11551
11552 PR target/61550
11553 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11554 addresses here if reload in progress or completed.
11555
11556 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11557
11558 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11559 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11560 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11561 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11562 (mips_register_priority): New function that implements the target
11563 hook TARGET_REGISTER_PRIORITY.
11564 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11565 (mips_lra_p): Likewise for TARGET_LRA_P.
11566 (TARGET_REGISTER_PRIORITY): Define macro.
11567 (TARGET_SPILL_CLASS): Likewise.
11568 (TARGET_LRA_P): Likewise.
11569 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11570 classes.
11571 (REG_CLASS_NAMES): Likewise.
11572 (REG_CLASS_CONTENTS): Likewise.
11573 (BASE_REG_CLASS): Use M16_SP_REGS.
11574 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11575 New set attribute to enable alternatives depending on the register
11576 allocator used.
11577 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11578 (*lea64): Disable pattern for MIPS16.
11579 * config/mips/mips.opt (mlra): New option.
11580
11581 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11582
11583 * lra-constraints.c (base_to_reg): New function.
11584 (process_address): Use new function.
11585
11586 2014-06-18 Tom de Vries <tom@codesourcery.com>
11587
11588 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11589 * config/aarch64/aarch64.c
11590 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11591 (aarch64_emit_call_insn): New function.
11592 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11593 of emit_call_insn.
11594 * config/aarch64/aarch64.md (define_expand "call_internal")
11595 (define_expand "call_value_internal", define_expand "sibcall_internal")
11596 (define_expand "sibcall_value_internal"): New.
11597 (define_expand "call", define_expand "call_value")
11598 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11599 expand variant and aarch64_emit_call_insn.
11600
11601 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11602 Tom de Vries <tom@codesourcery.com>
11603
11604 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11605 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11606 Redefine to true.
11607 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11608 clobbers to CALL_INSN_FUNCTION_USAGE.
11609 (define_expand "sibcall_internal")
11610 (define_expand "sibcall_value_internal"): New.
11611 (define_expand "call", define_expand "call_value"): Add argument to
11612 arm_emit_call_insn.
11613 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11614 (define_expand "sibcall_value"): Use sibcall_value_internal and
11615 arm_emit_call_insn.
11616
11617 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11618
11619 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11620
11621 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11622
11623 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11624 __udivmoddi4.
11625
11626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11627
11628 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11629 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11630 annotations. Fix DWARF information.
11631
11632 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11633
11634 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11635 __udivmoddi4, and fixups for negative operands.
11636
11637 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11638
11639 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11640
11641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11642
11643 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11644 to __udivmoddi4.
11645
11646 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11647
11648 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11649 manipulation.
11650
11651 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11652
11653 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11654 describing register usage on function entry and exit.
11655
11656 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11657
11658 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11659 (__aeabi_ldivmod): Fix whitespace.
11660
11661 2014-06-18 Andreas Schwab <schwab@suse.de>
11662
11663 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11664 Remove blank line after @item.
11665
11666 2014-06-18 Richard Henderson <rth@redhat.com>
11667
11668 PR target/61545
11669 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11670
11671 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11672
11673 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11674 POST_MODIFY for neon loads and stores.
11675 (arm_print_operand): Output post-index register for neon loads and
11676 stores.
11677
11678 2014-06-18 Richard Biener <rguenther@suse.de>
11679
11680 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11681
11682 2014-06-18 Richard Biener <rguenther@suse.de>
11683
11684 * tree-pass.h (make_pass_dce_loop): Remove.
11685 * passes.def: Replace pass_dce_loop with pass_dce.
11686 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11687 changed free niter estimates and reset the scev cache.
11688 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11689 make_pass_dce_loop): Remove.
11690 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11691 (fini_copy_prop): Return whether something changed. Always
11692 let substitute_and_fold perform DCE and free niter estimates
11693 and reset the scev cache if so.
11694 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11695 (pass_data_copy_prop): Do not unconditionally schedule
11696 cleanup-cfg or update-ssa.
11697
11698 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11699
11700 PR tree-optimization/61518
11701 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11702 reduction var is used in reduction stmt or phi-function only.
11703
11704 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11705
11706 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11707
11708 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11709
11710 PR tree-optimization/61517
11711 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11712 whose rhs's first tree is the source expression instead of the
11713 expression itself.
11714 (find_bswap_or_nop): Likewise.
11715 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11716 gimple stmt whose rhs's first tree is the source. In the memory source
11717 case, move the stmt to be replaced close to one of the original load to
11718 avoid the problem of a store between the load and the stmt's original
11719 location.
11720 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11721 signature.
11722
11723 2014-06-18 Andreas Schwab <schwab@suse.de>
11724
11725 PR rtl-optimization/54555
11726 * postreload.c (move2add_use_add2_insn): Substitute
11727 STRICT_LOW_PART only if it is cheaper.
11728
11729 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11730
11731 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11732 Do not use unspec as call operand. Use memory_operand instead of
11733 memory_nox32_operand and add "m" operand constraint. Disable
11734 pattern for TARGET_X32.
11735 (*sibcall_pop_memory): Ditto.
11736 (*sibcall_value_memory): Ditto.
11737 (*sibcall_value_pop_memory): Ditto.
11738 (sibcall peepholes): Merge SImode and DImode patterns using
11739 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11740 Disable pattern for TARGET_X32. Check if eliminated register is
11741 really dead after call insn. Generate call RTX without unspec operand.
11742 (sibcall_value peepholes): Ditto.
11743 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11744 instead of memory_nox32_operand. Check if eliminated register is
11745 really dead after call insn. Generate call RTX without unspec operand.
11746 (sibcall_value_pop peepholes): Ditto.
11747 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11748
11749 2014-06-18 Terry Guo <terry.guo@arm.com>
11750
11751 PR target/61544
11752 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11753 reach the head.
11754
11755 2014-06-18 Olivier Hainque <hainque@adacore.com>
11756
11757 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11758 memorization of the end of block source location.
11759 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11760 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11761 end source location info we have on the block entry/exit code we
11762 generate.
11763
11764 2014-06-18 Richard Biener <rguenther@suse.de>
11765
11766 * common.opt (fssa-phiopt): New option.
11767 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11768 but not with -Og.
11769 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11770 * doc/invoke.texi (-fssa-phiopt): Document.
11771
11772 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11773
11774 * genattrtab.c (n_bypassed): New variable.
11775 (process_bypasses): Initialise n_bypassed.
11776 Count number of bypassed reservations.
11777 (make_automaton_attrs): Allocate space for bypassed reservations
11778 rather than number of bypasses.
11779
11780 2014-06-18 Richard Biener <rguenther@suse.de>
11781
11782 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11783 we propagated anything.
11784 (substitute_and_fold_dom_walker::before_dom_children): Something
11785 changed if we propagated into PHI arguments.
11786 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11787 we removed a stmt.
11788
11789 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11790
11791 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11792 vector case.
11793 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11794 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11795 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11796 Introduces alternative way of loads group permutaions.
11797 (vect_transform_grouped_load): Try alternative way of permutations.
11798
11799 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11800
11801 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11802 changed in ORT_TARGET region, don't jump to do_outer.
11803 (struct gimplify_adjust_omp_clauses_data): New type.
11804 (gimplify_adjust_omp_clauses_1): Adjust for data being
11805 a struct gimplify_adjust_omp_clauses_data pointer instead
11806 of tree *. Pass pre_p as a new argument to
11807 lang_hooks.decls.omp_finish_clause hook.
11808 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11809 splay_tree_foreach to pass both list_p and pre_p.
11810 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11811 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11812 gimplify_adjust_omp_clauses callers.
11813 * langhooks.c (lhd_omp_finish_clause): New function.
11814 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11815 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11816 * langhooks.h (struct lang_hooks_for_decls): Add a new
11817 gimple_seq * argument to omp_finish_clause hook.
11818 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11819 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11820 (scan_omp_parallel, lower_omp_for): When adding
11821 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11822 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11823 * tree-nested.c (convert_nonlocal_omp_clauses,
11824 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11825 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11826
11827 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11828
11829 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11830 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11831
11832 2014-06-17 Xinliang David Li <davidxl@google.com>
11833
11834 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11835 * passes.c (pass_init_dump_file): Do not set initialize
11836 flag to false unconditionally.
11837
11838 2014-06-17 Richard Biener <rguenther@suse.de>
11839
11840 * genopinit.c (main): Use vec<>::qsort method.
11841 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11842 Likewise.
11843 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11844
11845 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11846
11847 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11848 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11849 (mips_move_to_gpr_cost): Remove ST_REGS case.
11850 (mips_move_from_gpr_cost): Likewise.
11851 (mips_register_move_cost): Likewise.
11852 (mips_secondary_reload_class): Likewise.
11853
11854 2014-06-17 Richard Biener <rguenther@suse.de>
11855
11856 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11857 (pass_all_optimizations): Move 3rd copy-prop pass from after
11858 fre to before ifcombine/phiopt.
11859
11860 2014-06-17 Richard Biener <rguenther@suse.de>
11861
11862 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11863 and allow all blocks to be forwarders.
11864
11865 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11866
11867 PR target/61483
11868 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11869 variable 'size'; calculate 'size' right in the front; use
11870 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11871 pcum->aapcs_stack_words.
11872
11873 2014-06-17 Nick Clifton <nickc@redhat.com>
11874
11875 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11876 (umulhi3, mulsidi3, umulsidi3): Likewise.
11877
11878 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11879
11880 PR middle-end/61508
11881 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11882 check for section name.
11883
11884 2014-06-17 Richard Biener <rguenther@suse.de>
11885
11886 * tree-ssa-propagate.c: Include domwalk.h.
11887 (substitute_and_fold): Outline main worker into a domwalker ...
11888 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11889 Schedule stmts we can fully propagate for removal. Remove
11890 poor-mans DCE.
11891 (substitute_and_fold): Apply a dominator walk to perform
11892 substitution. Process stmts scheduled for removal here.
11893
11894 2014-06-17 Richard Biener <rguenther@suse.de>
11895
11896 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11897 of PHI node moving.
11898
11899 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11900
11901 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11902 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11903 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11904 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11905 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11906 TARGET_HARD_FLOAT.
11907 (get_fpscr) : Likewise.
11908
11909 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11910
11911 PR rtl-optimization/61325
11912 * lra-constraints.c (valid_address_p): Add forward declaration.
11913 (simplify_operand_subreg): Check address validity before and after
11914 alter_reg of memory subreg.
11915
11916 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11917
11918 * config/i386/i386.c (decide_alg): Correctly handle
11919 maximum size of stringop algorithm.
11920
11921 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11922
11923 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11924
11925 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11926
11927 PR rtl-optimization/61522
11928 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11929
11930 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11931
11932 Revert:
11933 * symtab.c (symtab_node::reset_section): New method.
11934 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11935 for localization.
11936 * cgraph.h (reset_section): Declare.
11937 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11938 do not consider comdat locals.
11939 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11940 for new symbol.
11941 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11942 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11943 reset sections of symbols dragged out of the comdats.
11944 (function_and_variable_visibility): Reset sections of
11945 localized symbols.
11946
11947 2014-06-16 Richard Biener <rguenther@suse.de>
11948
11949 PR tree-optimization/61482
11950 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11951 [-INF(OVF), +INF(OVF)] range.
11952
11953 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11954
11955 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11956 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11957 handling 32-bit multiplication.
11958
11959 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11960
11961 PR middle-end/61430
11962 * lra-lives.c (process_bb_lives): Skip creating copy during
11963 insn scan when src/dest has constrained to same regno.
11964
11965 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11966
11967 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11968 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11969
11970 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11971
11972 * asan.c (check_func): New function.
11973 (maybe_create_ssa_name): Likewise.
11974 (build_check_stmt_with_calls): Likewise.
11975 (use_calls_p): Likewise.
11976 (report_error_func): Change interface.
11977 (build_check_stmt): Allow non-integer lengths; add support
11978 for new parameter.
11979 (asan_instrument): Likewise.
11980 (instrument_mem_region_access): Moved code to build_check_stmt.
11981 (instrument_derefs): Likewise.
11982 (instrument_strlen_call): Likewise.
11983 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11984 * doc/invoke.texi: Describe new parameter.
11985 * params.def: Define new parameter.
11986 * params.h: Likewise.
11987 * sanitizer.def: Describe new builtins.
11988
11989 2014-06-16 Richard Biener <rguenther@suse.de>
11990
11991 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11992 Make all defs available at the end.
11993 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11994
11995 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11996
11997 PR plugins/45078
11998 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11999
12000 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12001
12002 PR bootstrap/61516
12003 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12004 initialization. Replace remaining use of uid.
12005
12006 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12007
12008 * c-family/c-common.c (handle_tls_model_attribute): Use
12009 set_decl_tls_model.
12010 * c-family/c-common.c (handle_tls_model_attribute): Use
12011 set_decl_tls_model.
12012 * cgraph.h (struct varpool_node): Add tls_model.
12013 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12014 * tree.h (DECL_TLS_MODEL): Update.
12015 (DECL_THREAD_LOCAL_P): Check that variable is static.
12016 (decl_tls_model): Declare.
12017 (set_decl_tls_model): Declare.
12018 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12019 set symbol prorperties.
12020 (get_emutls_init_templ_addr): Cleanup.
12021 (new_emutls_decl): Update.
12022 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12023 (lto_input_varpool_node): Likewise.
12024 * lto-streamer-out.c (hash_tree): Likewise.
12025 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12026 not stream DECL_TLS_MODEL.
12027 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12028 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12029
12030 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12031
12032 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12033
12034 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12035
12036 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12037 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12038 lists.
12039 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12040 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12041 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12042 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12043 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12044 (df_get_artificial_defs, df_get_artificial_uses)
12045 (df_single_def, df_single_use): Update accordingly.
12046 (df_refs_chain_dump): Take the first element in a linked list as
12047 parameter, rather than a pointer to an array of pointers.
12048 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12049 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12050 (df_chain_create_bb_process_use): Likewise.
12051 (df_md_bb_local_compute_process_def): Likewise.
12052 * fwprop.c (process_defs, process_uses): Likewise.
12053 (register_active_defs, update_uses): Likewise.
12054 (forward_propagate_asm): Update for new df_ref linking.
12055 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12056 (df_null_ref_rec, df_null_mw_rec): Likewise.
12057 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12058 explicitly.
12059 (df_scan_free_bb_info): Remove check for null artificial_defs.
12060 (df_install_ref_incremental): Adjust for new df_ref linking.
12061 Use a single-element insertion rather than a full sort.
12062 (df_ref_chain_delete_du_chain): Take the first element
12063 in a linked list as parameter, rather than a pointer to an array of
12064 pointers.
12065 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12066 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12067 (df_insn_info_delete): Remove check for null defs and call to
12068 df_scan_free_mws_vec.
12069 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12070 null rather than df_null_*_rec.
12071 (df_insn_rescan_debug_internal): Likewise, and update null
12072 checks in the same way. Remove check for null defs.
12073 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12074 Move a single element rather doing a full sort.
12075 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12076 linking.
12077 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12078 Initialize df_ref and df_mw_hardreg lists to null rather than
12079 df_null_*_rec.
12080 (df_ref_compare): Take df_refs as parameter, transferring the
12081 old interface to...
12082 (df_ref_ptr_compare): ...this new function.
12083 (df_sort_and_compress_refs): Update accordingly.
12084 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12085 old interface to...
12086 (df_mw_ptr_compare): ...this new function.
12087 (df_sort_and_compress_mws): Update accordingly.
12088 (df_install_refs, df_install_mws): Return a linked list rather than
12089 an array of pointers.
12090 (df_refs_add_to_chains): Assert that old lists are empty rather
12091 than freeing them.
12092 (df_insn_refs_verify): Don't handle null defs speciailly.
12093 * web.c (union_match_dups): Update for new df_ref linking.
12094
12095 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12096
12097 * df.h (df_ref_create, df_ref_remove): Delete.
12098 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12099 (df_ref_remove): Likewise.
12100
12101 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12102
12103 * df.h (df_single_def, df_single_use): New functions.
12104 * ira.c (find_moveable_pseudos): Use them.
12105
12106 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12107
12108 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12109 * df-problems.c (df_note_bb_compute): Use it.
12110 * regstat.c (regstat_bb_compute_ri): Likewise.
12111
12112 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12113
12114 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12115 * cse.c (cse_extended_basic_block): Use them.
12116 * dce.c (mark_artificial_use): Likewise.
12117 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12118 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12119 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12120 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12121 (df_simulate_initialize_backwards): Likewise.
12122 (df_simulate_finalize_backwards): Likewise.
12123 (df_simulate_initialize_forwards): Likewise.
12124 (df_md_simulate_artificial_defs_at_top): Likewise.
12125 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12126 * regrename.c (init_rename_info): Likewise.
12127 * regstat.c (regstat_bb_compute_ri): Likewise.
12128 (regstat_bb_compute_calls_crossed): Likewise.
12129
12130 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12131
12132 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12133 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12134 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12135 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12136 * combine.c (create_log_links): Likewise.
12137 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12138 (try_eliminate_compare): Likewise.
12139 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12140 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12141 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12142 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12143 (word_dce_process_block, dce_process_block): Likewise.
12144 * ddg.c (def_has_ccmode_p): Likewise.
12145 * df-core.c (df_bb_regno_first_def_find): Likewise.
12146 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12147 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12148 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12149 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12150 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12151 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12152 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12153 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12154 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12155 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12156 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12157 * fwprop.c (local_ref_killed_between_p): Likewise.
12158 (all_uses_available_at, free_load_extend): Likewise.
12159 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12160 * hw-doloop.c (scan_loop): Likewise.
12161 * ifcvt.c (dead_or_predicable): Likewise.
12162 * init-regs.c (initialize_uninitialized_regs): Likewise.
12163 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12164 (process_bb_node_lives): Likewise.
12165 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12166 (find_moveable_pseudos): Likewise.
12167 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12168 * recog.c (peep2_find_free_register): Likewise.
12169 * ree.c (get_defs): Likewise.
12170 * regstat.c (regstat_bb_compute_ri): Likewise.
12171 (regstat_bb_compute_calls_crossed): Likewise.
12172 * sched-deps.c (find_inc, find_mem): Likewise.
12173 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12174 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12175 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12176 (prepare_shrink_wrap): Likewise.
12177 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12178 * web.c (union_defs, pass_web::execute): Likewise.
12179 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12180 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12181
12182 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12183
12184 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12185 to inheritance pseudos.
12186 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12187
12188 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12189
12190 PR target/61415
12191 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12192 (BU_MISC_2): Rename to ...
12193 (BU_LDBL128_2): ... this.
12194 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12195 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12196 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12197 RS6000_BTM_LDBL128.
12198 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12199 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12200 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12201 (unpacktf_1): Likewise.
12202 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12203 (__builtin_longdouble_dw1): Likewise.
12204 * doc/sourcebuild.texi (longdouble128): Document.
12205
12206 2014-06-13 Jeff Law <law@redhat.com>
12207
12208 PR rtl-optimization/61094
12209 PR rtl-optimization/61446
12210 * ree.c (combine_reaching_defs): Get the mode for the copy from
12211 the extension insn rather than the defining insn.
12212
12213 2014-06-13 Dehao Chen <dehao@google.com>
12214
12215 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12216
12217 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12218
12219 * doc/install.texi (--enable-linker-plugin-configure-flags)
12220 (--enable-linker-plugin-flags): Document new flags.
12221
12222 2014-06-13 Martin Jambor <mjambor@suse.cz>
12223
12224 PR ipa/61186
12225 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12226 cache_token if returning early.
12227
12228 2014-06-13 Nick Clifton <nickc@redhat.com>
12229
12230 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12231 requested alignment is active.
12232 (LABEL_ALIGN): Likewise.
12233 (LOOP_ALIGN): Likewise.
12234
12235 2014-06-13 Richard Biener <rguenther@suse.de>
12236
12237 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12238 Rewrite to propagate the VN result into all uses where
12239 possible and to remove stmts becoming dead because of that.
12240 (eliminate): Generalize stmt removal handling, remove in
12241 reverse dominator order to support proper debug stmt
12242 generation. Update stmts before removing stmts.
12243 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12244
12245 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12246
12247 PR tree-optimization/61375
12248 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12249 symbolic number cannot be represented in an uint64_t.
12250 (find_bswap_or_nop_1): Likewise.
12251
12252 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12253
12254 * symtab.c (symtab_node::reset_section): New method.
12255 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12256 for localization.
12257 * cgraph.h (reset_section): Declare.
12258 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12259 do not consider comdat locals.
12260 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12261 for new symbol.
12262 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12263 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12264 reset sections of symbols dragged out of the comdats.
12265 (function_and_variable_visibility): Reset sections of
12266 localized symbols.
12267
12268 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12269
12270 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12271 to use symtab and decl_binds_to_current_def_p
12272 * tree-vectorizer.c (increase_alignment): Increase alignment
12273 of alias target, too.
12274
12275 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12276
12277 PR middle-end/61486
12278 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12279 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12280 if outer combined construct is distribute.
12281 (gimplify_omp_for): For OMP_DISTRIBUTE set
12282 gimplify_omp_ctxp->distribute.
12283 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12284 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12285 mapping into decl map.
12286
12287 2014-06-12 Jason Merrill <jason@redhat.com>
12288
12289 * common.opt (fabi-version): Change default to 0.
12290
12291 2014-06-12 Jason Merrill <jason@redhat.com>
12292
12293 * toplev.c (process_options): Reject -fabi-version=1.
12294
12295 2014-06-12 Jeff Law <law@redhat.com>
12296
12297 PR tree-optimization/61009
12298 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12299 value when we stop processing a block due to problematic PHIs.
12300
12301 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12302
12303 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12304 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12305 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12306 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12307 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12308 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12309 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12310 are not in the spec.
12311
12312 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12313
12314 PR target/59843
12315 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12316 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12317 Support V1DFmode.
12318
12319 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12320
12321 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12322
12323 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12324
12325 PR target/61443
12326 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12327 loading from address spaces.
12328
12329 2014-06-12 Martin Liska <mliska@suse.cz>
12330
12331 PR ipa/61462
12332 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12333 statement is reachable.
12334
12335 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12336
12337 * symtab.c (section_hash): New hash.
12338 (symtab_unregister_node): Clear section before freeing.
12339 (hash_section_hash_entry): New haser.
12340 (eq_sections): New function.
12341 (symtab_node::set_section_for_node): New method.
12342 (set_section_1): Update.
12343 (symtab_node::set_section): Take string instead of tree as parameter.
12344 (symtab_resolve_alias): Update.
12345 * cgraph.h (section_hash_entry_d): New structure.
12346 (section_hash_entry): New typedef.
12347 (cgraph_node): Change comdat_group_ to x_comdat_group,
12348 change section_ to x_section and turn into section_hash_entry;
12349 update accestors; put set_section_for_node offline.
12350 * tree.c (decl_section_name): Turn into string.
12351 (set_decl_section_name): Change parameter to be string.
12352 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12353 * sdbout.c (sdbout_one_type): Update.
12354 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12355 * varasm.c (IN_NAMED_SECTION, get_named_section,
12356 resolve_unique_section, hot_function_section, get_named_text_section,
12357 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12358 make_decl_rtl, default_unique_section): Update.
12359 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12360 (c6x_elf_unique_section): Update.
12361 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12362 * config/pa/pa.c (pa_function_section): Update.
12363 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12364 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12365 * config/arc/arc.c (arc_in_small_data_p): Update.
12366 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12367 * config/mcore/mcore.c (mcore_unique_section): Update.
12368 * config/mips/mips.c (mips16_build_function_stub): Update.
12369 (mips16_build_call_stub): Update.
12370 (mips_function_rodata_section): Update.
12371 (mips_in_small_data_p): Update.
12372 * config/score/score.c (score_in_small_data_p): Update.
12373 * config/rx/rx.c (rx_in_small_data): Update.
12374 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12375 (rs6000_xcoff_asm_named_section): Update.
12376 (rs6000_xcoff_unique_section): Update.
12377 * config/frv/frv.c (frv_string_begins_with): Update.
12378 (frv_in_small_data_p): Update.
12379 * config/v850/v850.c (v850_encode_data_area): Update.
12380 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12381 (bfin_handle_l1_data_attribute): Update.
12382 (bfin_handle_l2_attribute): Update.
12383 * config/mep/mep.c (mep_unique_section): Update.
12384 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12385 Update.
12386 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12387 (h8300_handle_tiny_data_attribute): Update.
12388 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12389 (m32r_in_small_data_p): Update.
12390 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12391 * config/i386/i386.c (ix86_in_large_data_p): Update.
12392 * config/i386/winnt.c (i386_pe_unique_section): Update.
12393 * config/darwin.c (darwin_function_section): Update.
12394 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12395 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12396 (new_emutls_decl): Update.
12397 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12398 input_varpool_node): Update.
12399 (ead_string_cst): Turn to ...
12400 (read_string): ... this one.
12401 * dwarf2out.c (secname_for_decl): Update.
12402 * asan.c (asan_protect_global): Update.
12403
12404 2014-06-11 DJ Delorie <dj@redhat.com>
12405
12406 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12407 cache lines.
12408 * config/rx/rx.c (rx_option_override): Likewise.
12409 (rx_align_for_label): Likewise.
12410
12411 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12412
12413 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12414
12415 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12416 prototype.
12417
12418 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12419
12420 * common.md: New file.
12421 * doc/md.texi: Update description of generic, machine-independent
12422 constraints.
12423 * config/s390/constraints.md (e): Delete.
12424 * Makefile.in (md_file): Include common.md.
12425 * config/m32c/t-m32c (md_file): Likewise.
12426 * genpreds.c (general_mem): New array.
12427 (generic_constraint_letters): Remove constraints now defined by
12428 common.md.
12429 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12430 Allow the first character to be '<' or '>' as well.
12431 * genoutput.c (general_mem): New array.
12432 (indep_constraints): Remove constraints now defined by common.md.
12433 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12434 Remove special handling of 'm'.
12435 * ira-costs.c (record_reg_classes): Remove special handling of
12436 constraints now defined by common.md.
12437 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12438 * ira-lives.c (single_reg_class): Likewise.
12439 (ira_implicitly_set_insn_hard_regs): Likewise.
12440 * lra-constraints.c (reg_class_from_constraints): Likewise.
12441 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12442 * postreload.c (reload_cse_simplify_operands): Likewise.
12443 * reload.c (push_secondary_reload, scratch_reload_class)
12444 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12445 * reload1.c (maybe_fix_stack_asms): Likewise.
12446 * targhooks.c (default_secondary_reload): Likewise.
12447 * stmt.c (parse_output_constraint): Likewise.
12448 * recog.c (preprocess_constraints): Likewise.
12449 (constrain_operands, peep2_find_free_register): Likewise.
12450 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12451 must be handled specially.
12452
12453 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12454
12455 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12456 * genpreds.c (have_const_dbl_constraints): Delete.
12457 (add_constraint): Don't set it.
12458 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12459 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12460 constraints using the lookup_constraint logic.
12461 * ira-lives.c (single_reg_class): Likewise.
12462 * ira.c (ira_setup_alts): Likewise.
12463 * lra-constraints.c (process_alt_operands): Likewise.
12464 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12465 * reload.c (find_reloads): Likewise.
12466
12467 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12468
12469 * genpreds.c (const_int_start, const_int_end): New variables.
12470 (choose_enum_order): Output CONST_INT constraints before memory
12471 constraints.
12472 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12473 Add CT_CONST_INT.
12474 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12475 * ira.c (ira_setup_alts): Likewise.
12476 * lra-constraints.c (process_alt_operands): Likewise.
12477 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12478 * reload.c (find_reloads): Likewise.
12479
12480 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12481
12482 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12483 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12484 * recog.c (preprocess_constraints): Update accordingly.
12485
12486 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12487
12488 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12489 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12490 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12491 * genpreds.c (print_type_tree): New function.
12492 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12493 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12494 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12495 Write out enum constraint_type and get_constraint_type.
12496 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12497 constraint_num rather than a constraint string.
12498 (satisfies_address_constraint_p): Likewise.
12499 (reg_class_from_constraints): Avoid old constraint macros.
12500 (process_alt_operands, process_address_1): Likewise.
12501 (curr_insn_transform): Likewise.
12502 * ira-costs.c (record_reg_classes): Likewise.
12503 (record_operand_costs): Likewise.
12504 * ira-lives.c (single_reg_class): Likewise.
12505 (ira_implicitly_set_insn_hard_regs): Likewise.
12506 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12507 * postreload.c (reload_cse_simplify_operands): Likewise.
12508 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12509 (constrain_operands, peep2_find_free_register): Likewise.
12510 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12511 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12512 * reload1.c (maybe_fix_stack_asms): Likewise.
12513 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12514 * targhooks.c (default_secondary_reload): Likewise.
12515 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12516 to EXTRA_CONSTRAINT_STR.
12517 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12518
12519 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12520
12521 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12522 (write_constraint_satisfied_p_array): ...this new function.
12523 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12524 an array.
12525 (write_insn_preds_c): Update accordingly.
12526
12527 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12528
12529 * genpreds.c (write_lookup_constraint): Rename to...
12530 (write_lookup_constraint_1): ...this.
12531 (write_lookup_constraint_array): New function.
12532 (write_tm_preds_h): Define lookup_constraint as an inline function
12533 that uses write_lookup_constraint_array where possible.
12534 (write_insn_preds_c): Update for the changes above.
12535
12536 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12537
12538 * doc/md.texi (regclass_for_constraint): Rename to...
12539 (reg_class_for_constraint): ...this.
12540 * genpreds.c (num_constraints, enum_order, register_start)
12541 (register_end, satisfied_start, memory_start, memory_end)
12542 (address_start, address_end): New variables.
12543 (add_constraint): Count the number of constraints.
12544 (choose_enum_order): New function.
12545 (write_enum_constraint_num): Iterate over enum_order.
12546 (write_regclass_for_constraint): Rename to...
12547 (write_reg_class_for_constraint_1): ...this and update output
12548 accordingly.
12549 (write_constraint_satisfied_p): Rename to...
12550 (write_constraint_satisfied_p_1): ...this and update output
12551 accordingly. Do nothing if all extra constraints are register
12552 constraints.
12553 (write_insn_extra_memory_constraint): Delete.
12554 (write_insn_extra_address_constraint): Delete.
12555 (write_range_function): New function.
12556 (write_tm_preds_h): Define constraint_satisfied_p and
12557 reg_class_for_constraint as inline functions that do a range check
12558 before calling the out-of-line function. Use write_range_function
12559 to implement insn_extra_{register,memory,address}_constraint,
12560 the first of which is new.
12561 (write_insn_preds_c): Update after above changes to write_* functions.
12562 (main): Call choose_enum_order.
12563
12564 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12565
12566 PR tree-optimization/61306
12567 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12568 expression instead of its size.
12569 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12570 false to prevent optimization when the result is unpredictable due to
12571 arithmetic right shift of signed type with highest byte is set.
12572 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12573 (init_symbolic_number): Likewise.
12574 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12575 when the result is unpredictable due to sign extension.
12576
12577 2014-06-11 Terry Guo <terry.guo@arm.com>
12578
12579 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12580 (*thumb1_addsi3): Ditto.
12581 (*thumb_subdi3): Ditto.
12582 (thumb1_subsi3_insn): Ditto.
12583 (*thumb_mulsi3): Ditto.
12584 (*thumb_mulsi3_v6): Ditto.
12585 (*thumb1_andsi3_insn): Ditto.
12586 (thumb1_bicsi3): Ditto.
12587 (*thumb1_iorsi3_insn): Ditto.
12588 (*thumb1_xorsi3_insn): Ditto.
12589 (*thumb1_ashlsi3): Ditto.
12590 (*thumb1_ashrsi3): Ditto.
12591 (*thumb1_lshrsi3): Ditto.
12592 (*thumb1_rotrsi3): Ditto.
12593 (*thumb1_negdi2): Ditto.
12594 (*thumb1_negsi2): Ditto.
12595 (*thumb1_abssi2): Ditto.
12596 (*thumb1_neg_abssi2): Ditto.
12597 (*thumb1_one_cmplsi2): Ditto.
12598 (*thumb1_zero_extendhisi2): Ditto.
12599 (*thumb1_zero_extendqisi2): Ditto.
12600 (*thumb1_zero_extendqisi2_v6): Ditto.
12601 (thumb1_extendhisi2): Ditto.
12602 (thumb1_extendqisi2): Ditto.
12603 (*thumb1_movdi_insn): Ditto.
12604 (*thumb1_movsi_insn): Ditto.
12605 (*thumb1_movhi_insn): Ditto.
12606 (thumb_movhi_clobber): Ditto.
12607 (*thumb1_movqi_insn): Ditto.
12608 (*thumb1_movhf): Ditto.
12609 (*thumb1_movsf_insn): Ditto.
12610 (*thumb_movdf_insn): Ditto.
12611 (movmem12b): Ditto.
12612 (movmem8b): Ditto.
12613 (cbranchqi4): Ditto.
12614 (cbranchsi4_insn): Ditto.
12615 (cbranchsi4_scratch): Ditto.
12616 (*negated_cbranchsi4): Ditto.
12617 (*tbit_cbranch): Ditto.
12618 (*tlobits_cbranch): Ditto.
12619 (*tstsi3_cbranch): Ditto.
12620 (*cbranchne_decr1): Ditto.
12621 (*addsi3_cbranch): Ditto.
12622 (*addsi3_cbranch_scratch): Ditto.
12623 (*thumb_cmpdi_zero): Ditto.
12624 (cstoresi_eq0_thumb1): Ditto.
12625 (cstoresi_ne0_thumb1): Ditto.
12626 (*cstoresi_eq0_thumb1_insn): Ditto.
12627 (*cstoresi_ne0_thumb1_insn): Ditto.
12628 (cstoresi_nltu_thumb1): Ditto.
12629 (cstoresi_ltu_thumb1): Ditto.
12630 (thumb1_addsi3_addgeu): Ditto.
12631 (*thumb_jump): Ditto.
12632 (*call_reg_thumb1_v5): Ditto.
12633 (*call_reg_thumb1): Ditto.
12634 (*call_value_reg_thumb1_v5): Ditto.
12635 (*call_value_reg_thumb1): Ditto.
12636 (*call_insn): Ditto.
12637 (*call_value_insn): Ditto.
12638 (thumb1_casesi_internal_pic): Ditto.
12639 (thumb1_casesi_dispatch): Ditto.
12640 (*thumb1_indirect_jump): Ditto.
12641 (prologue_thumb1_interwork): Ditto.
12642 (*epilogue_insns): Ditto.
12643 (consttable_1): Ditto.
12644 (consttable_2): Ditto.
12645 (tablejump): Ditto.
12646 (*thumb1_tablejump): Ditto.
12647 (thumb_eh_return): Ditto.
12648 (define_peephole2): Two of them are thumb1 only and got moved into
12649 new file thumb1.md.
12650 (define_split): Six of them are thumb1 only and got moved into new
12651 file thumb1.md.
12652 * config/arm/thumb1.md: New file comprised of above thumb1 only
12653 patterns.
12654
12655 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12656
12657 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12658 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12659 dependencies.
12660 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12661 (aarch64_crc_builtin_datum): New struct.
12662 (aarch64_crc_builtin_data): New.
12663 (aarch64_init_crc32_builtins): New function.
12664 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12665 (aarch64_crc32_expand_builtin): New.
12666 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12667 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12668 __ARM_FEATURE_CRC32 when appropriate.
12669 (TARGET_CRC32): Define.
12670 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12671 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12672 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12673 (aarch64_<crc_variant>): New pattern.
12674 * config/aarch64/arm_acle.h: New file.
12675 * config/aarch64/iterators.md (CRC): New int iterator.
12676 (crc_variant, crc_mode): New int attributes.
12677 * doc/aarch64-acle-intrinsics.texi: New file.
12678 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12679 Include aarch64-acle-intrinsics.texi.
12680
12681 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12682
12683 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12684 check for stores group of length 3.
12685 (vect_permute_store_chain): New permutations for stores group of
12686 length 3.
12687 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12688 of vec_perm_shuffle for the new permutations.
12689
12690 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12691
12692 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12693 table rewriting temporarily on targets not supporting ONE_ONLY.
12694
12695 2014-06-11 Richard Biener <rguenther@suse.de>
12696
12697 PR middle-end/61437
12698 Revert
12699 2014-06-04 Richard Biener <rguenther@suse.de>
12700
12701 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12702 TREE_PUBLIC and DECL_EXTERNAL decls.
12703
12704 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12705
12706 * varasm.c (set_implicit_section): New function.
12707 (resolve_unique_section): Use it to set implicit section
12708 for aliases, too.
12709 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12710 (default_function_section): Likewise.
12711 (decl_binds_to_current_def_p): Constify argument.
12712 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12713 * asan.c (asan_protect_global): Use
12714 symtab_get_node (decl)->implicit_section.
12715 * symtab.c (dump_symtab_base): Dump implicit sections.
12716 (verify_symtab_base): Verify sanity of sectoins and comdats.
12717 (symtab_resolve_alias): Alias share the section of its target.
12718 (set_section_1): New function.
12719 (symtab_node::set_section): Move here, recurse to aliases.
12720 (verify_symtab): Check for duplicated symtab lists.
12721 * tree-core.h (implicit_section_name_p): Remove.
12722 * tree-vect-data-refs.c: Include varasm.h.
12723 (vect_can_force_dr_alignment_p): Fix conditional on when
12724 decl bints to current definition; use
12725 symtab_get_node (decl)->implicit_section.
12726 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12727 * cgraph.h (struct symtab_node): Add implicit_section.
12728 (set_section): Rename to ...
12729 (set_section_for_node): ... this one.
12730 (set_section): Declare.
12731 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12732 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12733 input_overwrite_node, input_varpool_node): Stream implicit_section.
12734 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12735 removal; it will fail in LTO.
12736
12737 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12738
12739 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12740 Change second alternative type to f_mcr.
12741 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12742 and 12th alternatives' types to f_mcr and f_mrc.
12743 (*movdi_aarch64): Same for 12th and 13th alternatives.
12744 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12745 (aarch64_movtilow_tilow): Change type to fmov.
12746
12747 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12748
12749 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12750 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12751
12752 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12753
12754 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12755 New expander.
12756 (aarch64_sqrdmulh_lane<mode>): Likewise.
12757 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12758 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12759 (aarch64_sqdmulh_laneq<mode>): New expander.
12760 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12761 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12762 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12763 (aarch64_sqdmulh_lane<mode>): New expander.
12764 (aarch64_sqrdmulh_lane<mode>): Likewise.
12765 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12766 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12767 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12768 (aarch64_sqdmlal_laneq<mode>): Likewise.
12769 (aarch64_sqdmlsl_lane<mode>): Likewise.
12770 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12771 (aarch64_sqdmlal2_lane<mode>): Likewise.
12772 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12773 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12774 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12775 (aarch64_sqdmull_lane<mode>): Likewise.
12776 (aarch64_sqdmull_laneq<mode>): Likewise.
12777 (aarch64_sqdmull2_lane<mode>): Likewise.
12778 (aarch64_sqdmull2_laneq<mode>): Likewise.
12779
12780 2014-06-10 Richard Biener <rguenther@suse.de>
12781
12782 PR tree-optimization/61438
12783 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12784 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12785 insertion of IVs if running PRE.
12786 (eliminate): Adjust.
12787 (pass_pre::execute): Likewise.
12788 (pass_fre::execute): Likewise.
12789
12790 2014-06-10 Richard Biener <rguenther@suse.de>
12791
12792 PR middle-end/61456
12793 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12794 Do not use the main variant for the type comparison.
12795 (ncr_compar): Likewise.
12796 (nonoverlapping_component_refs_p): Likewise.
12797
12798 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12799
12800 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12801 REG_CFA_RESTORE mode.
12802
12803 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12804
12805 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12806 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12807 expand_vec_perm_pblendv.
12808
12809 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12810
12811 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12812 available.
12813 Simplify description of __crc32d and __crc32cd intrinsics.
12814 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12815 availability.
12816
12817 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12818
12819 PR lto/61334
12820 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12821 * config.in: Regenerate.
12822 * configure: Likewise.
12823
12824 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12825
12826 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12827 and public vars.
12828 (intersect_static_var_sets): Remove.
12829 (propagate): Do not prune local statics.
12830
12831 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12832
12833 PR fortran/60928
12834 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12835 Set lastprivate_firstprivate even if omp_private_outer_ref
12836 langhook returns true.
12837 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12838 langhook, call unshare_expr on new_var and call
12839 build_outer_var_ref to get the last argument.
12840
12841 2014-06-10 Marek Polacek <polacek@redhat.com>
12842
12843 PR c/60988
12844 * doc/extend.texi: Add cindex for transparent_union.
12845
12846 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12847
12848 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12849 init_symbolic_number ().
12850
12851 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12852
12853 PR middle-end/61141
12854 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12855 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12856 (verify_rtl_sharing): Likewise.
12857
12858 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12859
12860 PR c++/54442
12861 * tree.c (build_qualified_type): Use a canonical type for
12862 TYPE_CANONICAL.
12863
12864 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12865
12866 * config/arm/arm-modes.def: Remove XFmode.
12867
12868 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12869
12870 PR target/61062
12871 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12872 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12873 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12874 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12875 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12876 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12877 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12878 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12879 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12880
12881 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12882
12883 * tree-core.h (tree_decl_with_vis): Remove section_name.
12884
12885 2014-06-09 Kito Cheng <kito@0xlab.org>
12886
12887 * ira.c (ira): Don't call init_caller_save if LRA enabled
12888 since LRA use its own infrastructure to handle that.
12889
12890 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12891
12892 * symtab.c (dump_symtab_base): Update dumping.
12893 (symtab_make_decl_local): Clear only DECL_COMDAT.
12894 * tree-vect-data-refs.c (Check that variable is static before
12895 tampering with sections.
12896 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12897 (cgraph_create_virtual_clone): Likewise.
12898 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12899 (decl_section_name, set_decl_section_name): New accessors.
12900 (find_decls_types_r): Do not walk section name
12901 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12902 (decl_comdat_group, decl_comdat_group_id): Constify.
12903 (decl_section_name, set_decl_section_name): Update.
12904 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12905 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12906 (cgraph_make_node_local_1): Clear section and comdat group.
12907 * cgraph.h (set_comdat_group): Sanity check.
12908 (get_section, set_section): New.
12909 * ipa-comdats.c (ipa_comdats): Use get_section.
12910 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12911 * lto-streamer-out.c: Do not follow section names.
12912 * c-family/c-common.c (handle_section_attribute): Update.
12913 * lto-cgraph.c (lto_output_node): Output section.
12914 (lto_output_varpool_node): Likewise.
12915 (read_comdat_group): Rename to ...
12916 (read_identifier): ... this one.
12917 (read_string_cst): New function.
12918 (input_node, input_varpool_node): Input section names.
12919 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12920 (new_emutls_decl): Update.
12921 (secname_for_decl): Check section names only of static vars.
12922 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12923 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12924 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12925 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12926 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12927 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12928 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12929 * config/v850/v850.c (v850_insert_attributes): Likewise.
12930 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12931 Likewise.
12932 (h8300_handle_tiny_data_attribute): Likewise.
12933 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12934 (bfin_handle_l2_attribute): Likewise.
12935
12936 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12937
12938 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12939 remove static initializer.
12940
12941 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12942
12943 * varasm.c (use_blocks_for_decl_p): Check symbol table
12944 instead of alias attribute.
12945 (place_block_symbol): Recurse on aliases.
12946
12947 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12948
12949 * ipa-visibility.c: Include varasm.h
12950 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12951
12952 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12953
12954 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12955 outputting aliases.
12956
12957 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12958
12959 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12960 from test_insn into GGC space escape via SET_SRC.
12961
12962 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12963
12964 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12965 call statement, if any.
12966 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12967 statements, if any. Tidy up.
12968
12969 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12970
12971 PR target/61431
12972 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12973 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12974 handles swapping the two 64-bit double words on little endian
12975 systems. Include V1TImode and optionally TImode in VSX_LE so that
12976 these types are properly swapped. Change all of the insns and
12977 splits that do the 64-bit swaps to use VSX_LE.
12978 (vsx_le_perm_load_<mode>): Likewise.
12979 (vsx_le_perm_store_<mode>): Likewise.
12980 (splitters for little endian memory operations): Likewise.
12981 (vsx_xxpermdi2_le_<mode>): Likewise.
12982 (vsx_lxvd2x2_le_<mode>): Likewise.
12983 (vsx_stxvd2x2_le_<mode>): Likewise.
12984
12985 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12986
12987 PR target/61423
12988 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12989 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12990 and corresponding splitters. Zero extend general register
12991 or memory input operand to XMM temporary. Enable for
12992 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12993 (floatunssi<mode>2): Update expander predicate.
12994
12995 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12996
12997 PR rtl-optimization/61325
12998 * lra-constraints.c (process_address_1): Check scale equal to one
12999 to prevent transformation: base + scale * index => base + new_reg.
13000
13001 2014-06-06 Richard Biener <rguenther@suse.de>
13002
13003 PR tree-optimization/59299
13004 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13005 a def operand.
13006 (nearest_common_dominator_of_uses): Likewise.
13007 (statement_sink_location): Adjust. Support sinking loads.
13008
13009 2014-06-06 Martin Jambor <mjambor@suse.cz>
13010
13011 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13012 (build_agg_jump_func_from_list): Likewise.
13013 (determine_known_aggregate_parts): Renamed to
13014 determine_locally_known_aggregate_parts. Moved some functionality
13015 to the two functions above, removed bound checks.
13016
13017 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13018
13019 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13020 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13021 (aarch64_progress_pointer): Likewise.
13022 (aarch64_copy_one_part_and_move_pointers): Likewise.
13023 (aarch64_expand_movmen): Likewise.
13024 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13025 * config/aarch64/aarch64.md (movmem<mode>): New.
13026
13027 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13028
13029 * targhooks.c (default_add_stmt_cost): Call target specific
13030 hook instead of default one.
13031
13032 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13033
13034 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13035 endianness instead of host endianness.
13036 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13037 comments.
13038
13039 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13040
13041 PR debug/53927
13042 * function.c (instantiate_decls): Process the saved static chain.
13043 (expand_function_start): If not optimizing, save the static chain
13044 onto the stack.
13045 * tree-nested.c (convert_all_function_calls): Always create the static
13046 chain for nested functions if not optimizing.
13047
13048 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13049
13050 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13051
13052 2014-06-06 Richard Biener <rguenther@suse.de>
13053
13054 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13055 (construct_init_block): Likewise.
13056 (construct_exit_block): Likewise.
13057 (pass_expand::execute): Likewise.
13058 * graphite.c (graphite_transforms): Replace check for current_loops
13059 with a check for > 1 loops.
13060 (pass_graphite_transforms::execute): Adjust.
13061 * ipa-split.c (split_function): Remove check for current_loops.
13062 * omp-low.c (expand_parallel_call): Likewise.
13063 (expand_omp_for_init_counts): Likewise.
13064 (extract_omp_for_update_vars): Likewise.
13065 (expand_omp_for_generic): Likewise.
13066 (expand_omp_sections): Likewise.
13067 (expand_omp_target): Likewise.
13068 * tracer.c (tail_duplicate): Likewise.
13069 (pass_tracer::execute): Likewise.
13070 * trans-mem.c (expand_transaction): Likewise.
13071 * tree-complex.c (expand_complex_div_wide): Likewise.
13072 * tree-eh.c (lower_resx): Likewise.
13073 (cleanup_empty_eh_merge_phis): Likewise.
13074 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13075 current_loops with a check for > 1 loops.
13076 (pass_predcom::execute): Adjust.
13077 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13078 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13079 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13080 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13081 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13082 * tree-switch-conversion.c (process_switch): Likewise.
13083 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13084 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13085 (execute_vrp): Likewise.
13086 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13087
13088 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13089
13090 * rtl.h (insn_location): Declare.
13091 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13092 with UNKNOWN_LOCATION.
13093 * emit-rtl.c (insn_location): New function.
13094 * final.c (notice_source_line): Check that the instruction has a
13095 location before retrieving it and use insn_location.
13096 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13097 * print-rtl.c (print_rtx): Likewise.
13098
13099 2014-06-06 Richard Biener <rguenther@suse.de>
13100
13101 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13102
13103 2014-06-06 Christian Bruel <christian.bruel@st.com>
13104
13105 PR tree-optimization/43934
13106 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13107 cost.
13108
13109 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13110
13111 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13112 return NO_REGS for extra address and memory constraints. Handle
13113 operands that match (or are equivalent to something that matches)
13114 extra constant constraints. Ignore other non-register operands.
13115
13116 2014-06-06 Alan Modra <amodra@gmail.com>
13117
13118 PR target/61300
13119 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13120 * doc/tm.texi: Regenerate.
13121 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13122 Use throughout in place of REG_PARM_STACK_SPACE.
13123 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13124 "incoming" param. Pass to rs6000_function_parms_need_stack.
13125 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13126 prototype_p when incoming. Use function decl when incoming
13127 to handle K&R style functions.
13128 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13129 (INCOMING_REG_PARM_STACK_SPACE): Define.
13130
13131 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13132
13133 PR target/52472
13134 * cfgexpand.c (expand_debug_expr): Use address space of nested
13135 TREE_TYPE for ADDR_EXPR and MEM_REF.
13136
13137 2014-06-05 Jeff Law <law@redhat.com>
13138
13139 PR tree-optimization/61289
13140 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13141 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13142 looking for those which match LHS. All callers changed.
13143 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13144 parameters and code which manipulated them. All callers changed.
13145 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13146 and DST_MAP parameters. Simplify invalidation code by just calling
13147 invalidate_equivalences. All callers changed.
13148 (thread_across_edge): Simplify now that we don't need to maintain
13149 the map of equivalences to invalidate.
13150
13151 2014-06-05 Kai Tietz <ktietz@redhat.com>
13152 Richard Henderson <rth@redhat.com>
13153
13154 PR target/46219
13155 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13156 checking for !TARGET_X32.
13157 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13158 (sibcall_intern): New define_insn, plus required peepholes.
13159 (sibcall_pop_intern): Likewise.
13160 (sibcall_value_intern): Likewise.
13161 (sibcall_value_pop_intern): Likewise.
13162
13163 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13164
13165 * tree-inline.c (tree_function_versioning): Check DF info existence
13166 before accessing it.
13167
13168 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13169
13170 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13171 frame_size.
13172 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13173 aarch64_frame hard_fp_offset and frame_size.
13174 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13175 frame_size; remove original_frame_size.
13176 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13177 (aarch64_initial_elimination_offset): Remove frame_size and
13178 offset. Use aarch64_frame frame_size.
13179
13180 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13181 Jiong Wang <jiong.wang@arm.com>
13182 Renlin <renlin.li@arm.com>
13183
13184 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13185 initialization of R30 offset. Update offset. Iterate core
13186 regisers upto X30. Remove X29, X30 specific code.
13187
13188 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13189 Jiong Wang <jiong.wang@arm.com>
13190
13191 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13192 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13193 (aarch64_register_saved_on_entry): Adjust test.
13194
13195 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13196
13197 * config/aarch64/aarch64.h (machine_function): Move
13198 saved_varargs_size from here...
13199 (aarch64_frame): ... to here.
13200
13201 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13202 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13203 (aarch64_initial_elimination_offset)
13204 (aarch64_setup_incoming_varargs): Adjust location of
13205 saved_varargs_size.
13206
13207 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13208
13209 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13210 layout comment.
13211
13212 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13213 Prachi Godbole <Prachi.Godbole@imgtec.com>
13214
13215 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13216 mips32r5 entry to use PROCESSOR_P5600.
13217 * config/mips/mips-tables.opt: Regenerate.
13218 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13219 * config/mips/mips.c (mips_fmadd_bypass): New function.
13220 (mips_rtx_cost_data): Add costs for p5600.
13221 (mips_issue_rate): Add support for p5600.
13222 (mips_multipass_dfa_lookahead): Likewise.
13223 * config/mips/mips.h (TUNE_P5600): New define.
13224 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13225 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13226 * config/mips/mips.md: Include p5600.md.
13227 (processor): Add p5600.
13228 * config/mips/p5600.md: New file.
13229
13230 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13231
13232 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13233 * config/i386/predicates.md (palignr_operand): New.
13234 Indicates if permutation is suitable for palignr instruction.
13235
13236 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13237
13238 PR tree-optimization/61319
13239 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13240 stmt belongs to loop.
13241
13242 2014-06-05 Richard Biener <rguenther@suse.de>
13243
13244 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13245 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13246 (lookup_tmp_var): Adjust.
13247 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13248
13249 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13250
13251 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13252
13253 2014-06-05 Marek Polacek <polacek@redhat.com>
13254
13255 PR c/49706
13256 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13257
13258 2014-06-04 Tom de Vries <tom@codesourcery.com>
13259
13260 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13261 CONST_INT.
13262
13263 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13264
13265 PR tree-optimization/61385
13266 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13267
13268 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13269
13270 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13271 changed to use fatal_error.
13272 (main): Ensure lto_wrapper_cleanup is run atexit.
13273
13274 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13275
13276 * lra-constraints.c (valid_address_p): Move earlier in file.
13277 (address_eliminator): New structure.
13278 (satisfies_memory_constraint_p): New function.
13279 (satisfies_address_constraint_p): Likewise.
13280 (process_alt_operands, process_address, curr_insn_transform): Use them.
13281
13282 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13283
13284 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13285 const pointer.
13286 (target_lra_int, default_target_lra_int, this_target_lra_int)
13287 (op_alt_data): Delete.
13288 * lra.h (lra_init): Delete.
13289 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13290 (init_insn_code_data_once): Remove op_alt_data handling.
13291 (finish_insn_code_data_once): Likewise.
13292 (init_op_alt_data): Delete.
13293 (get_static_insn_data): Initialize operand_alternative to null.
13294 (free_insn_recog_data): Cast operand_alternative before freeing it.
13295 (setup_operand_alternative): Take the operand_alternative as
13296 parameter and assume it isn't already cached in the static
13297 insn data.
13298 (lra_set_insn_recog_data): Update accordingly.
13299 (lra_init): Delete.
13300 * ira.c (ira_init): Don't call lra_init.
13301 * target-globals.h (this_target_lra_int): Declare.
13302 (target_globals): Remove lra_int.
13303 (restore_target_globals): Update accordingly.
13304 * target-globals.c: Don't include lra-int.h.
13305 (default_target_globals, save_target_globals): Remove lra_int.
13306
13307 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13308
13309 * recog.h (operand_alternative): Convert reg_class, reject,
13310 matched and matches into bitfields.
13311 (preprocess_constraints): New overload.
13312 (preprocess_insn_constraints): New function.
13313 (preprocess_constraints): Take the insn as parameter.
13314 (recog_op_alt): Change into a pointer.
13315 (target_recog): Add x_op_alt.
13316 * recog.c (asm_op_alt): New variable.
13317 (recog_op_alt): Change into a pointer.
13318 (preprocess_constraints): New overload, replacing the old function
13319 definition with one that doesn't use global state.
13320 (preprocess_insn_constraints): New function.
13321 (preprocess_constraints): Use them. Take the insn as parameter.
13322 Use asm_op_alt for asms.
13323 (recog_init): Free existing x_op_alt entries.
13324 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13325 pointer const.
13326 (make_early_clobber_and_input_conflicts): Likewise.
13327 (process_bb_node_lives): Pass the insn to process_constraints.
13328 * reg-stack.c (check_asm_stack_operands): Likewise.
13329 (subst_asm_stack_regs): Likewise.
13330 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13331 * regrename.c (build_def_use): Likewise.
13332 * sched-deps.c (sched_analyze_insn): Likewise.
13333 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13334 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13335 (note_invalid_constants): Likewise.
13336 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13337 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13338 const.
13339
13340 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13341
13342 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13343 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13344 alternatives.
13345 (make_early_clobber_and_input_conflicts): Likewise.
13346 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13347
13348 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13349
13350 * recog.h (alternative_class): New function.
13351 (which_op_alt): Return a const recog_op_alt.
13352 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13353 (subst_asm_stack_regs): Likewise.
13354 * config/arm/arm.c (note_invalid_constants): Likewise.
13355 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13356 the operand_alternative; use alternative class instead.
13357 * sel-sched.c (get_reg_class): Likewise.
13358 * regrename.c (build_def_use): Likewise.
13359 (hide_operands, restore_operands, record_out_operands): Update type
13360 accordingly.
13361
13362 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13363
13364 * recog.h (recog_op_alt): Convert to a flat array.
13365 (which_op_alt): New function.
13366 * recog.c (recog_op_alt): Convert to a flat array.
13367 (preprocess_constraints): Update accordingly, grouping all
13368 operands of the same alternative together, rather than the
13369 other way around.
13370 * ira-lives.c (check_and_make_def_conflict): Likewise.
13371 (make_early_clobber_and_input_conflicts): Likewise.
13372 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13373 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13374 (subst_asm_stack_regs): Likewise.
13375 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13376 * regrename.c (hide_operands, record_out_operands): Likewise.
13377 (build_def_use): Likewise.
13378 * sel-sched.c (get_reg_class): Likewise.
13379 * config/arm/arm.c (note_invalid_constants): Likewise.
13380
13381 2014-06-04 Jason Merrill <jason@redhat.com>
13382
13383 PR c++/51253
13384 PR c++/61382
13385 * gimplify.c (gimplify_arg): Non-static.
13386 * gimplify.h: Declare it.
13387
13388 2014-06-04 Richard Biener <rguenther@suse.de>
13389
13390 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13391 TREE_PUBLIC and DECL_EXTERNAL decls.
13392
13393 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13394
13395 * regcprop.c (copyprop_hardreg_forward_1): Account for
13396 HARD_REGNO_CALL_PART_CLOBBERED.
13397
13398 2014-06-04 Richard Biener <rguenther@suse.de>
13399
13400 * configure.ac: Check whether the underlying type of int64_t
13401 is long or long long.
13402 * configure: Regenerate.
13403 * config.in: Likewise.
13404 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13405 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13406
13407 2014-06-04 Richard Biener <rguenther@suse.de>
13408
13409 PR tree-optimization/60098
13410 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13411 we hit a kill.
13412 (dse_optimize_stmt): Simplify, now that we found a kill
13413 earlier.
13414
13415 2014-06-04 Richard Biener <rguenther@suse.de>
13416
13417 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13418 of accesses with non-invariant address.
13419
13420 2014-06-04 Martin Liska <mliska@suse.cz>
13421
13422 * cgraph.h (cgraph_make_wrapper): New function introduced.
13423 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13424 * ipa-inline.h (inline_analyze_function): The function is global.
13425 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13426
13427 2014-06-04 Martin Liska <mliska@suse.cz>
13428
13429 * tree.h (private_lookup_attribute_starting): New function.
13430 (lookup_attribute_starting): Likewise.
13431 * tree.c (private_lookup_attribute_starting): Likewise.
13432
13433 2014-06-04 Martin Liska <mliska@suse.cz>
13434
13435 * cgraph.h (expand_thunk): New argument added.
13436 (address_taken_from_non_vtable_p): New global function.
13437 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13438 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13439 * cgraphunit.c (analyze_function): Likewise.
13440 (assemble_thunks_and_aliases): Argument added to call.
13441 (expand_thunk): New argument forces to produce GIMPLE thunk.
13442
13443 2014-06-04 Martin Liska <mliska@suse.cz>
13444
13445 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13446 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13447 * profile.c (branch_prob): Likewise.
13448
13449 2014-06-04 Martin Jambor <mjambor@suse.cz>
13450
13451 PR ipa/61340
13452 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13453 handler for switch on an ipa_ref_use enum.
13454 * ipa-reference.c (analyze_function): Likewise.
13455
13456 2014-06-04 Kai Tietz <ktietz@redhat.com>
13457
13458 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13459 from old call-instruction.
13460
13461 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13462
13463 * config/aarch64/aarch64.c (aarch64_classify_address)
13464 (aarch64_legitimize_reload_address): Support full addressing modes
13465 for vector modes.
13466 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13467 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13468
13469 2014-06-03 Andrew Pinski <apinski@cavium.com>
13470
13471 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13472 for OP0.
13473
13474 2014-06-03 Andrew Pinski <apinski@cavium.com>
13475
13476 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13477 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13478
13479 2014-06-03 Kai Tietz <ktietz@redhat.com>
13480
13481 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13482 for 64-bit ms-abi.
13483
13484 2014-06-03 Dehao Chen <dehao@google.com>
13485
13486 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13487 the same loop.
13488
13489 2014-06-03 Marek Polacek <polacek@redhat.com>
13490
13491 PR c/60439
13492 * doc/invoke.texi: Document -Wswitch-bool.
13493 * function.c (stack_protect_epilogue): Cast controlling expression of
13494 the switch to int.
13495 * gengtype.c (walk_type): Generate switch expression with its
13496 controlling expression cast to int.
13497
13498 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13499
13500 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13501 and attiny841.
13502 * config/avr/avr-tables.opt: Regenerate.
13503 * config/avr/t-multilib: Regenerate.
13504 * doc/avr-mmcu.texi: Regenerate.
13505
13506 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13507 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13508
13509 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13510 (ata6617c, ata664251): Add new avr35 devices.
13511 (ata6612c): Add new avr4 device.
13512 (ata6613c, ata6614q): Add new avr5 devices.
13513 * config/avr/avr-tables.opt: Regenerate.
13514 * config/avr/t-multilib: Regenerate.
13515 * doc/avr-mmcu.texi: Regenerate.
13516
13517 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13518
13519 * gcc/config/aarch64/aarch64-builtins.c
13520 (aarch64_types_binop_ssu_qualifiers): New static data.
13521 (TYPES_BINOP_SSU): Define.
13522 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13523 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13524 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13525 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13526 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13527 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13528 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13529 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13530 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13531 suffix to builtin function name, remove cast.
13532 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13533 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13534 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13535
13536 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13537
13538 * gcc/config/aarch64/aarch64-builtins.c
13539 (aarch64_types_binop_uus_qualifiers,
13540 aarch64_types_shift_to_unsigned_qualifiers,
13541 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13542 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13543 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13544 sqshlu_n, uqshl_n): Update qualifiers.
13545 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13546 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13547 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13548 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13549 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13550 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13551 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13552 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13553 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13554 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13555 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13556 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13557 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13558 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13559 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13560 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13561 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13562 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13563 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13564 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13565 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13566 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13567 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13568 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13569 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13570 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13571 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13572
13573 2014-06-03 Teresa Johnson <tejohnson@google.com>
13574
13575 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13576
13577 2014-06-02 Jason Merrill <jason@redhat.com>
13578
13579 PR c++/61020
13580 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13581
13582 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13583
13584 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13585 location == 0.
13586
13587 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13588
13589 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13590 New pattern.
13591 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13592 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13593 * config/aarch64/iterators.md (REVERSE): New iterator.
13594 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13595 (rev_op): New int_attribute.
13596 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13597 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13598 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13599 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13600 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13601 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13602 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13603 Replace temporary __asm__ with __builtin_shuffle.
13604
13605 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13606
13607 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13608 mips64r5.
13609 * config/mips/mips-tables.opt: Regenerate.
13610 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13611 to use mips_isa_rev rather than ISA_MIPS32R2.
13612 * config/mips/mips.h (ISA_MIPS32R3): New define.
13613 (ISA_MIPS32R5): New define.
13614 (ISA_MIPS64R3): New define.
13615 (ISA_MIPS64R5): New define.
13616 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13617 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13618 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13619 and mips64r5.
13620 (MIPS_ISA_SYNCI_SPEC): Likewise.
13621 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13622 (LINK_SPEC): Added mips32r3 and mips32r5.
13623 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13624 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13625 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13626 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13627 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13628 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13629 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13630
13631 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13632
13633 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13634 options.
13635 * config/mips/mips.opt (mxpa): New option.
13636 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13637 assembler.
13638
13639 2014-06-03 Martin Jambor <mjambor@suse.cz>
13640
13641 PR ipa/61160
13642 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13643 thunks.
13644
13645 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13646
13647 PR tree-optimization/61328
13648 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13649 initialization from find_bswap_or_nop_1.
13650 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13651 in source_expr2 before using the size value the function sets. Also
13652 make use of init_symbolic_number () in both the old place and
13653 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13654 doing recursion in the GIMPLE_BINARY_RHS case.
13655
13656 2014-06-03 Richard Biener <rguenther@suse.de>
13657
13658 PR tree-optimization/61383
13659 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13660 stmts can't trap.
13661
13662 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13663
13664 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13665 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13666 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13667 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13668 in this file.
13669 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13670 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13671 * system.h: ...here and make it unconditional.
13672 * target.def (conditional_register_usage): Mention
13673 define_register_constraint instead of old-style constraint macros.
13674 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13675 * doc/tm.texi: Regenerate.
13676 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13677 protected by !USE_MD_CONSTRAINTS.
13678 * config/frv/frv.md: Remove quote from old version of documentation.
13679 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13680 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13681 CONST_DOUBLE_OK_FOR_LETTER.
13682 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13683
13684 2014-06-02 Andrew Pinski <apinski@cavium.com>
13685
13686 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13687 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13688 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13689 file whose name depends on -mabi= and -mbig-endian.
13690 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13691 Handle LP64 better and handle ilp32 too.
13692 (MULTILIB_OPTIONS): Delete.
13693 (MULTILIB_DIRNAMES): Delete.
13694
13695 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13696
13697 * expr.h: Remove prototypes of functions defined in builtins.c.
13698 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13699 Remove prototypes of functions defined in builtins.c.
13700 * builtins.h: Update prototype list to include all exported functions.
13701 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13702 no_c99_libc_has_function): Move to targhooks.c
13703 (build_string_literal, build_call_expr_loc_array,
13704 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13705 to tree.c.
13706 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13707 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13708 no_c99_libc_has_function): Relocate from builtins.c.
13709 * tree.c: Include builtins.h.
13710 (build_call_expr_loc_array, build_call_expr_loc_vec,
13711 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13712 from builtins.c.
13713 * fold-const.h (fold_fma): Move prototype to builtins.h.
13714 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13715 * asan.c: Include builtins.h.
13716 * cfgexpand.c: Likewise.
13717 * convert.c: Likewise.
13718 * emit-rtl.c: Likewise.
13719 * except.c: Likewise.
13720 * expr.c: Likewise.
13721 * fold-const.c: Likewise.
13722 * gimple-fold.c: Likewise.
13723 * gimple-ssa-strength-reduction.c: Likewise.
13724 * gimplify.c: Likewise.
13725 * ipa-inline.c: Likewise.
13726 * ipa-prop.c: Likewise.
13727 * lto-streamer-out.c: Likewise.
13728 * stmt.c: Likewise.
13729 * tree-inline.c: Likewise.
13730 * tree-object-size.c: Likewise.
13731 * tree-sra.c: Likewise.
13732 * tree-ssa-ccp.c: Likewise.
13733 * tree-ssa-forwprop.c: Likewise.
13734 * tree-ssa-loop-ivcanon.c: Likewise.
13735 * tree-ssa-loop-ivopts.c: Likewise.
13736 * tree-ssa-math-opts.c: Likewise.
13737 * tree-ssa-reassoc.c: Likewise.
13738 * tree-ssa-threadedge.c: Likewise.
13739 * tree-streamer-in.c: Likewise.
13740 * tree-vect-data-refs.c: Likewise.
13741 * tree-vect-patterns.c: Likewise.
13742 * tree-vect-stmts.c: Likewise.
13743 * config/aarch64/aarch64.c: Likewise.
13744 * config/alpha/alpha.c: Likewise.
13745 * config/arc/arc.c: Likewise.
13746 * config/arm/arm.c: Likewise.
13747 * config/avr/avr.c: Likewise.
13748 * config/bfin/bfin.c: Likewise.
13749 * config/c6x/c6x.c: Likewise.
13750 * config/cr16/cr16.c: Likewise.
13751 * config/cris/cris.c: Likewise.
13752 * config/epiphany/epiphany.c: Likewise.
13753 * config/fr30/fr30.c: Likewise.
13754 * config/frv/frv.c: Likewise.
13755 * config/h8300/h8300.c: Likewise.
13756 * config/i386/i386.c: Likewise.
13757 * config/i386/winnt.c: Likewise.
13758 * config/ia64/ia64.c: Likewise.
13759 * config/iq2000/iq2000.c: Likewise.
13760 * config/lm32/lm32.c: Likewise.
13761 * config/m32c/m32c.c: Likewise.
13762 * config/m32r/m32r.c: Likewise.
13763 * config/m68k/m68k.c: Likewise.
13764 * config/mcore/mcore.c: Likewise.
13765 * config/mep/mep.c: Likewise.
13766 * config/microblaze/microblaze.c: Likewise.
13767 * config/mips/mips.c: Likewise.
13768 * config/mmix/mmix.c: Likewise.
13769 * config/mn10300/mn10300.c: Likewise.
13770 * config/moxie/moxie.c: Likewise.
13771 * config/msp430/msp430.c: Likewise.
13772 * config/nds32/nds32.c: Likewise.
13773 * config/pa/pa.c: Likewise.
13774 * config/pdp11/pdp11.c: Likewise.
13775 * config/picochip/picochip.c: Likewise.
13776 * config/rl78/rl78.c: Likewise.
13777 * config/rs6000/rs6000.c: Likewise.
13778 * config/rx/rx.c: Likewise.
13779 * config/s390/s390.c: Likewise.
13780 * config/score/score.c: Likewise.
13781 * config/sh/sh.c: Likewise.
13782 * config/sparc/sparc.c: Likewise.
13783 * config/spu/spu.c: Likewise.
13784 * config/stormy16/stormy16.c: Likewise.
13785 * config/tilegx/tilegx.c: Likewise.
13786 * config/tilepro/tilepro.c: Likewise.
13787 * config/v850/v850.c: Likewise.
13788 * config/vax/vax.c: Likewise.
13789 * config/xtensa/xtensa.c: Likewise.
13790
13791 2014-06-02 Jeff Law <law@redhat.com>
13792
13793 PR rtl-optimization/61094
13794 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13795 was marked as do_no_reextend. If a copy is needed to eliminate
13796 an extension, then mark it as do_not_reextend.
13797
13798 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13799
13800 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13801
13802 2014-06-02 Richard Henderson <rth@redhat.com>
13803
13804 PR target/61336
13805 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13806 addresses inside asms. Use output_operand_lossage instead of
13807 gcc_unreachable.
13808
13809 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13810
13811 PR target/61239
13812 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13813 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13814
13815 2014-06-02 Tom de Vries <tom@codesourcery.com>
13816
13817 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13818 case that x has VOIDmode.
13819
13820 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13821
13822 * varasm.c (copy_constant): Delete function.
13823 (build_constant_desc): Don't call it.
13824
13825 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13826
13827 PR target/61154
13828 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13829 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13830 with immediate_operand.
13831
13832 2014-06-02 Andreas Schwab <schwab@suse.de>
13833
13834 * config/ia64/ia64.c
13835 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13836 pending_data_specs first.
13837
13838 2014-06-02 Richard Biener <rguenther@suse.de>
13839
13840 PR tree-optimization/61378
13841 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13842 valueized_anything.
13843
13844 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13845
13846 * config/i386/constraints.md (Bw): Rename from 'w'.
13847 (Bz): Rename from 'z'.
13848 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13849
13850 2014-06-01 Kai Tietz <ktietz@redhat.com>
13851
13852 PR target/61377
13853 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13854 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13855 instead of m constraint.
13856
13857 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13858
13859 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13860 a separate alternative where the scratch operand 2 is marked as
13861 early clobber.
13862
13863 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13864
13865 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13866 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13867 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13868 and __builtins_arm_get_fpscr.
13869 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13870 __builtins_arm_get_fpscr.
13871 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13872 __builtins_arm_ldfpscr.
13873 (arm_atomic_assign_expand_fenv): New function.
13874 * config/arm/vfp.md (set_fpscr): New pattern.
13875 (get_fpscr) : Likewise.
13876 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13877 VUNSPEC_SET_FPSCR.
13878 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13879 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13880
13881 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13882
13883 * asan.c (report_error_func): Add SLOW_P argument, use
13884 BUILT_IN_ASAN_*_N if set.
13885 (build_check_stmt): Likewise.
13886 (instrument_derefs): If T has insufficient alignment,
13887 force same handling as for odd sizes.
13888
13889 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13890 BUILT_IN_ASAN_REPORT_STORE_N): New.
13891 * asan.c (struct asan_mem_ref): Change access_size type to
13892 HOST_WIDE_INT.
13893 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13894 update_mem_ref_hash_table): Likewise.
13895 (asan_mem_ref_hasher::hash): Hash in a HWI.
13896 (report_error_func): Change size_in_bytes argument to HWI.
13897 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13898 two.
13899 (build_shadow_mem_access): New function.
13900 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13901 Handle size_in_bytes not power of two or larger than 16.
13902 (instrument_derefs): Don't give up if size_in_bytes is not
13903 power of two or is larger than 16.
13904
13905 2014-05-30 Kai Tietz <ktietz@redhat.com>
13906
13907 PR target/60104
13908 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13909 for sibling-tail-calls.
13910 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13911 to its use.
13912 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13913 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13914
13915 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13916
13917 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13918 * config/avr/avr-tables.opt: Regenerate.
13919 * config/avr/t-multilib: Regenerate.
13920 * doc/avr-mmcu.texi: Regenerate.
13921
13922 2014-05-30 Ian Lance Taylor <iant@google.com>
13923
13924 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13925 target("sse").
13926
13927 2014-05-30 Tom de Vries <tom@codesourcery.com>
13928
13929 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13930 Redefine as true.
13931
13932 2014-05-30 Tom de Vries <tom@codesourcery.com>
13933
13934 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13935 * lra.c (initialize_lra_reg_info_element): Add init of
13936 actual_call_used_reg_set field.
13937 (lra): Call lra_create_live_ranges before lra_inheritance for
13938 -fuse-caller-save.
13939 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13940 -fuse-caller-save.
13941 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13942 instead of call_used_reg_set for -fuse-caller-save.
13943 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13944
13945 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13946
13947 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13948 to mov_imm.
13949 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13950
13951 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13952
13953 * ira.c (ira_get_dup_out_num): Check for output operands at
13954 the start of the loop. Handle cases where an included alternative
13955 follows an excluded one.
13956
13957 2014-05-29 Mike Stump <mikestump@comcast.net>
13958
13959 PR debug/61352
13960 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13961 post ld passes when lto is used.
13962
13963 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13964
13965 PR rtl-optimization/61325
13966 * lra-constraints.c (process_address): Rename to process_address_1.
13967 (process_address): New function.
13968
13969 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13970
13971 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13972 TYPES_BINOPV): New static data.
13973 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13974 New builtin.
13975 * config/aarch64/aarch64-simd.md (aarch64_ext,
13976 aarch64_im_lane_boundsi): New patterns.
13977 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13978 patterns for EXT.
13979 (aarch64_evpc_ext): New function.
13980
13981 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13982
13983 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13984 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13985 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13986 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13987 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13988
13989 2014-05-29 Tom de Vries <tom@codesourcery.com>
13990
13991 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13992
13993 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13994 Richard Sandiford <rdsandiford@googlemail.com>
13995
13996 * arm/iterators.md (shiftable_ops): New code iterator.
13997 (t2_binop0, arith_shift_insn): New code attributes.
13998 * arm/predicates.md (shift_nomul_operator): New predicate.
13999 * arm/arm.md (insn_enabled): Delete.
14000 (enabled): Remove insn_enabled test.
14001 (*arith_shiftsi): Delete. Replace with ...
14002 (*<arith_shift_insn>_multsi): ... new pattern.
14003 (*<arith_shift_insn>_shiftsi): ... new pattern.
14004 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14005
14006 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14007 Tom de Vries <tom@codesourcery.com>
14008
14009 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14010 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14011 clobber.
14012 (mips_split_call): Use POST_CALL_TMP_REG.
14013 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14014
14015 2014-05-29 Tom de Vries <tom@codesourcery.com>
14016
14017 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14018 with #ifdef STACK_REGS.
14019
14020 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14021
14022 * varasm.c (get_variable_section): Walk aliases.
14023 (place_block_symbol): Walk aliases.
14024
14025 2014-05-28 Tom de Vries <tom@codesourcery.com>
14026
14027 Revert:
14028 2014-05-28 Tom de Vries <tom@codesourcery.com>
14029
14030 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14031 * lra.c (initialize_lra_reg_info_element): Add init of
14032 actual_call_used_reg_set field.
14033 (lra): Call lra_create_live_ranges before lra_inheritance for
14034 -fuse-caller-save.
14035 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14036 -fuse-caller-save.
14037 * lra-constraints.c (need_for_call_save_p): Use
14038 actual_call_used_reg_set instead of call_used_reg_set for
14039 -fuse-caller-save.
14040 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14041
14042 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14043
14044 * doc/md.texi: Document that the % constraint character must
14045 be at the beginning of the string.
14046 * genoutput.c (validate_insn_alternatives): Check that '=',
14047 '+' and '%' only appear at the beginning of a constraint.
14048 * ira.c (commutative_constraint_p): Delete.
14049 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14050 at the start of the string.
14051 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14052 duplicate '='s.
14053 * config/arm/neon.md (bicdi3_neon): Likewise.
14054 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14055 (slt_si, sltu_si): Likewise.
14056 * config/vax/vax.md (sbcdi3): Likewise.
14057 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14058 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14059 (mul64): Move '%' to beginning of constraint.
14060 * config/arm/arm.md (*xordi3_insn): Likewise.
14061 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14062 (xorsi3): Likewise.
14063
14064 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14065
14066 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14067
14068 2014-05-28 Jason Merrill <jason@redhat.com>
14069
14070 PR c++/47202
14071 * cgraph.h (symtab_node::get_comdat_group_id): New.
14072 * cgraphunit.c (analyze_functions): Call it.
14073 * symtab.c (dump_symtab_node): Likewise.
14074 * tree.c (decl_comdat_group_id): New.
14075 * tree.h: Declare it.
14076 * lto-streamer-out.c (write_symbol): Use it.
14077 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14078
14079 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14080
14081 PR bootstrap/PR61146
14082 * wide-int.cc: Do not include longlong.h when compiling with clang.
14083
14084 2014-05-28 Richard Biener <rguenther@suse.de>
14085
14086 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14087 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14088 (vrp_visit_assignment_or_call): Print less vertical space.
14089 (vrp_visit_stmt): Likewise.
14090 (vrp_visit_phi_node): Likewise. For a PHI argument with
14091 VR_VARYING range consider recording it as copy.
14092
14093 2014-05-28 Richard Biener <rguenther@suse.de>
14094
14095 Revert
14096 2014-05-28 Richard Biener <rguenther@suse.de>
14097
14098 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14099
14100 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14101
14102 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14103 sufficiently aligned and an offset is used at the same time.
14104 (expand_expr_real_1): Likewise.
14105
14106 2014-05-28 Richard Biener <rguenther@suse.de>
14107
14108 PR middle-end/61045
14109 * fold-const.c (fold_comparison): When folding
14110 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14111 the sign of the remaining constant operand stays the same.
14112
14113 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14114
14115 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14116 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14117 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14118 to the assembler.
14119 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14120 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14121 (m32bit-doubles) Likewise.
14122 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14123 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14124 option for RL78.
14125
14126 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14127
14128 * configure.ac ($gcc_cv_ld_clearcap): New test.
14129 * configure: Regenerate.
14130 * config.in: Regenerate.
14131 * config/sol2.opt (mclear-hwcap): New option.
14132 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14133 * config/sol2-clearcap.map: Moved here from
14134 testsuite/gcc.target/i386/clearcap.map.
14135 * config/sol2-clearcapv2.map: Move here from
14136 gcc.target/i386/clearcapv2.map.
14137 * config/t-sol2 (install): Depend on install-clearcap-map.
14138 (install-clearcap-map): New target.
14139 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14140 -mclear-hwcap.
14141
14142 2014-05-28 Richard Biener <rguenther@suse.de>
14143
14144 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14145 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14146 ... here and remove the rest.
14147 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14148
14149 2014-05-28 Richard Biener <rguenther@suse.de>
14150
14151 PR tree-optimization/61335
14152 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14153 new range fails, drop to varying.
14154
14155 2014-05-28 Olivier Hainque <hainque@adacore.com>
14156
14157 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14158 (CPP_SPEC): Add entry for -mcpu=8548.
14159 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14160 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14161
14162 2014-05-28 Tom de Vries <tom@codesourcery.com>
14163
14164 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14165 * lra.c (initialize_lra_reg_info_element): Add init of
14166 actual_call_used_reg_set field.
14167 (lra): Call lra_create_live_ranges before lra_inheritance for
14168 -fuse-caller-save.
14169 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14170 -fuse-caller-save.
14171 * lra-constraints.c (need_for_call_save_p): Use
14172 actual_call_used_reg_set instead of call_used_reg_set for
14173 -fuse-caller-save.
14174 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14175
14176 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14177 Tom de Vries <tom@codesourcery.com>
14178
14179 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14180 to gccoptlist.
14181 (@item -fuse-caller-save): New item.
14182
14183 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14184 Tom de Vries <tom@codesourcery.com>
14185
14186 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14187 OPT_fuse_caller_save.
14188
14189 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14190 Tom de Vries <tom@codesourcery.com>
14191
14192 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14193 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14194 get_call_reg_set_usage.
14195 * resource.c (mark_set_resources, mark_target_live_regs): Use
14196 get_call_reg_set_usage.
14197 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14198 field.
14199 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14200 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14201 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14202 * ira-build.c (ira_create_allocno): Init
14203 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14204 (create_cap_allocno, propagate_allocno_info)
14205 (propagate_some_info_from_allocno)
14206 (copy_info_to_removed_store_destinations): Handle
14207 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14208 * ira-costs.c (ira_tune_allocno_costs): Use
14209 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14210
14211 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14212 Tom de Vries <tom@codesourcery.com>
14213
14214 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14215 and function_used_regs_valid fields.
14216 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14217 find_all_hard_reg_sets.
14218 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14219 (get_call_reg_set_usage): New function.
14220 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14221 * regs.h (get_call_reg_set_usage): Declare.
14222
14223 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14224
14225 PR libgcc/61152
14226 * config/dbx.h (License): Add Runtime Library Exception.
14227 * config/newlib-stdint.h (License): Same.
14228 * config/rtems.h (License): Same
14229 * config/initfini-array.h (License): Same
14230 * config/v850/v850.h (License): Same.
14231 * config/v850/v850-opts.h (License): Same
14232 * config/v850/rtems.h (License): Same.
14233
14234 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14235
14236 PR target/61044
14237 * doc/extend.texi (Local Labels): Note that label differences are
14238 not supported for AVR.
14239
14240 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14241 Olivier Hainque <hainque@adacore.com>
14242
14243 * rtl.h (set_for_reg_notes): Declare.
14244 * emit-rtl.c (set_for_reg_notes): New function.
14245 (set_unique_reg_note): Use it.
14246 * optabs.c (add_equal_note): Likewise
14247
14248 2014-05-27 Andrew Pinski <apinski@cavium.com>
14249
14250 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14251 Use <w> for the register in assembly template.
14252 (stack_protect_test): Use the mode of operands[0] for the result.
14253 (stack_protect_test_<mode>): Use <w> for the register
14254 in assembly template.
14255
14256 2014-05-27 DJ Delorie <dj@redhat.com>
14257
14258 * config/rx/rx.c (add_vector_labels): New.
14259 (rx_output_function_prologue): Call it.
14260 (rx_handle_func_attribute): Don't require empty arguments.
14261 (rx_handle_vector_attribute): New.
14262 (rx_attribute_table): Add "vector" attribute.
14263 * doc/extend.texi (interrupt, vector): Document new/changed
14264 RX-specific attributes.
14265
14266 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14267
14268 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14269
14270 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14271 predicate to detect a negative quotient.
14272
14273 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14274
14275 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14276 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14277 Add X - Y CMP 0 to X CMP Y transformation.
14278 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14279
14280 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14281
14282 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14283 before printing.
14284
14285 2014-05-27 Steve Ellcey <sellcey@mips.com>
14286
14287 * config/mips/mips.c: Add include of cgraph.h.
14288
14289 2014-05-27 Richard Biener <rguenther@suse.de>
14290
14291 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14292
14293 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14294
14295 PR libgcc/61152
14296 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14297 * config/arm/arm-cores.def (License): Same.
14298 * config/arm/arm-opts.h (License): Same.
14299 * config/arm/aout.h (License): Same.
14300 * config/arm/bpabi.h (License): Same.
14301 * config/arm/elf.h (License): Same.
14302 * config/arm/linux-elf.h (License): Same.
14303 * config/arm/linux-gas.h (License): Same.
14304 * config/arm/netbsd-elf.h (License): Same.
14305 * config/arm/uclinux-eabi.h (License): Same.
14306 * config/arm/uclinux-elf.h (License): Same.
14307 * config/arm/vxworks.h (License): Same.
14308
14309 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14310
14311 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14312 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14313 (arm_init_neon_builtins): Handle NEON_BSWAP.
14314 Define required type nodes.
14315 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14316 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14317 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14318 * config/arm/iterators.md (VDQHSD): New mode iterator.
14319
14320 2014-05-27 Richard Biener <rguenther@suse.de>
14321
14322 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14323 Try using literal operands when comparing value-ranges failed.
14324
14325 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14326
14327 * ira.c (commutative_operand): Adjust for change to recog_data.
14328 [Missing from previous commit.]
14329
14330 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14331
14332 * system.h (TEST_BIT): New macro.
14333 * recog.h (alternative_mask): New type.
14334 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14335 (recog_data_d): Replace alternative_enabled_p array with
14336 enabled_alternatives.
14337 (target_recog): New structure.
14338 (default_target_recog, this_target_recog): Declare.
14339 (get_enabled_alternatives, recog_init): Likewise.
14340 * recog.c (default_target_recog, this_target_recog): New variables.
14341 (get_enabled_alternatives): New function.
14342 (extract_insn): Use it.
14343 (recog_init): New function.
14344 (preprocess_constraints, constrain_operands): Adjust for change to
14345 recog_data.
14346 * postreload.c (reload_cse_simplify_operands): Likewise.
14347 * reload.c (find_reloads): Likewise.
14348 * ira-costs.c (record_reg_classes): Likewise.
14349 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14350 all alternatives after a disabled one would be skipped.
14351 (ira_implicitly_set_insn_hard_regs): Likewise.
14352 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14353 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14354 with enabled_alternatives.
14355 * lra.c (free_insn_recog_data): Update accordingly.
14356 (lra_update_insn_recog_data): Likewise.
14357 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14358 * lra-constraints.c (process_alt_operands): Likewise. Handle
14359 only_alternative as part of the enabled mask.
14360 * target-globals.h (this_target_recog): Declare.
14361 (target_globals): Add a recog field.
14362 (restore_target_globals): Restore this_target_recog.
14363 * target-globals.c: Include recog.h.
14364 (default_target_globals): Initialize recog field.
14365 (save_target_globals): Likewise.
14366 * reginfo.c (reinit_regs): Call recog_init.
14367 * toplev.c (backend_init_target): Likewise.
14368
14369 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14370
14371 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14372 rather than any named insn's code.
14373
14374 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14375
14376 PR libgcc/61152
14377 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14378 * config/arm/arm-cores.def (License): Same.
14379
14380 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14381
14382 * tree.h (decl_comdat_group): Declare.
14383 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14384 * tree.c (decl_comdat_group): Here.
14385
14386 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14387
14388 PR rtl-optimization/61222
14389 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14390 the shift, truncate the PLUS operand to the result mode.
14391
14392 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14393
14394 PR target/61271
14395 * config/i386/i386.c (ix86_rtx_costs)
14396 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14397 Fix condition.
14398
14399 2014-05-26 Martin Jambor <mjambor@suse.cz>
14400
14401 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14402 subreg uses.
14403
14404 2014-05-26 Richard Biener <rguenther@suse.de>
14405
14406 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14407 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14408 Provide specializations.
14409 (wi::int_traits <HOST_WIDE_INT>,
14410 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14411
14412 2014-05-26 Alan Modra <amodra@gmail.com>
14413
14414 PR target/61098
14415 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14416 params and return a bool. Remove dead code. Update comment.
14417 Assert we have a const_int source. Remove bogus code from
14418 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14419 handling of constants > 2G and reg_equal note, from..
14420 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14421 return value. Update comment. If we can, use a new pseudo
14422 for intermediate calculations.
14423 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14424 prototype.
14425 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14426 call to rs6000_emit_set_const in splitter.
14427 (movdi_internal64+2, +3): Likewise.
14428
14429 2014-05-26 Richard Biener <rguenther@suse.de>
14430
14431 * system.h: Define __STDC_FORMAT_MACROS before
14432 including inttypes.h.
14433 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14434 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14435 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14436 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14437 HOST_WIDEST_INT_C): Remove.
14438 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14439 if C99 inttypes.h is not available.
14440 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14441 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14442 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14443 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14444 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14445 (struct output_info): Likewise.
14446 (print_statistics): Adjust.
14447 (dump_bitmap_statistics): Likewise.
14448 * bt-load.c (migrate_btr_defs): Print with PRId64.
14449 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14450 (MAX_SAFE_MULTIPLIER): Adjust.
14451 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14452 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14453 dump_cgraph_node): Likewise.
14454 * final.c (dump_basic_block_info): Likewise.
14455 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14456 * gcov.c (format_gcov): Likewise.
14457 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14458 for calculation.
14459 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14460 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14461 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14462 Use PRId64 for dumping.
14463 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14464 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14465 (add_allocno_hard_regs): Adjust.
14466 * loop-doloop.c (doloop_modify): Print using PRId64.
14467 * loop-iv.c (inverse): Compute in uint64_t.
14468 (determine_max_iter, iv_number_of_iterations): Likewise.
14469 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14470 Print using PRId64.
14471 * lto-streamer-out.c (write_symbol): Use uint64_t.
14472 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14473 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14474 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14475 * modulo-sched.c (const_iteration_count): Use int64_t.
14476 (sms_schedule): Dump using PRId64.
14477 * predict.c (dump_prediction): Likewise.
14478 * pretty-print.h (pp_widest_integer): Remove.
14479 * profile.c (get_working_sets, is_edge_inconsistent,
14480 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14481 * tree-pretty-print.c (pp_double_int): Remove case handling
14482 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14483 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14484 and adjust users.
14485 (pass_optimize_bswap::execute): Remove restriction on hosts.
14486 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14487 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14488 * tree.c (widest_int_cst_value): Remove.
14489 * tree.h (widest_int_cst_value): Likewise.
14490 * value-prof.c (dump_histogram_value): Print using PRId64.
14491 * gengtype.c (main): Also inject int64_t.
14492 * ggc-page.c (struct max_alignment): Use int64_t.
14493 * alloc-pool.c (struct allocation_object_def): Likewise.
14494 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14495 for computation.
14496 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14497 * doc/tm.texi: Regenerated.
14498 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14499 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14500 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14501 mmix_output_register_setting): Use [u]int64_t in prototypes.
14502 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14503 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14504 mmix_output_octa, mmix_output_shifted_value): Adjust.
14505 (mmix_intval): Adjust. Remove unreachable case.
14506 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14507
14508 2014-05-26 Richard Biener <rguenther@suse.de>
14509
14510 * configure.ac: Drop __int64 type check. Insist that we
14511 found uint64_t and int64_t.
14512 * hwint.h (HOST_BITS_PER___INT64): Remove.
14513 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14514 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14515 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14516 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14517 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14518 for dst_q_src_df_rms_cdt.
14519 * configure: Regenerate.
14520 * config.in: Likewise.
14521
14522 2014-05-26 Michael Tautschnig <mt@debian.org>
14523
14524 PR target/61249
14525 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14526 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14527
14528 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14529
14530 PR rtl-optimization/61278
14531 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14532
14533 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14534
14535 PR rtl-optimization/61220
14536 Part of PR rtl-optimization/61225
14537 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14538 insn; skip split_edge for a block with only one successor.
14539
14540 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14541
14542 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14543 for variables.
14544
14545 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14546
14547 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14548 (update_vtable_references): New function.
14549 (function_and_variable_visibility): Rewrite also vtable initializers.
14550 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14551
14552 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14553
14554 * ggc.h (ggc_grow): New function.
14555 * ggc-none.c (ggc_grow): New function.
14556 * ggc-page.c (ggc_grow): Likewise.
14557
14558 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14559
14560 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14561 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14562 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14563 varpool_externally_visible_p, can_replace_by_local_alias,
14564 update_visibility_by_resolution_info, function_and_variable_visibility,
14565 pass_data_ipa_function_and_variable_visibility,
14566 make_pass_ipa_function_and_variable_visibility,
14567 whole_program_function_and_variable_visibility,
14568 pass_data_ipa_whole_program_visibility,
14569 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14570 * cgraph.h (cgraph_local_node_p): Declare.
14571 * ipa-visibility.c: New file.
14572 * Makefile.in (OBJS): Add ipa-visiblity.o
14573
14574 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14575
14576 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14577 that var decl is available.
14578
14579 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14580
14581 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14582 symtab_node pointer.
14583 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14584 (find_decls_types_r): Do not walk COMDAT_GROUP.
14585 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14586 * varasm.c (make_decl_one_only): Use set_comdat_group;
14587 create node if needed.
14588 * ipa-inline-transform.c (save_inline_function_body): Update
14589 way we decl->symtab mapping.
14590 * symtab.c (symtab_hash, hash_node, eq_node
14591 symtab_insert_node_to_hashtable): Remove.
14592 (symtab_register_node): Update.
14593 (symtab_unregister_node): Update.
14594 (symtab_get_node): Reimplement as inline function.
14595 (symtab_add_to_same_comdat_group): Update.
14596 (symtab_dissolve_same_comdat_group_list): Update.
14597 (dump_symtab_base): Update.
14598 (verify_symtab_base): Update.
14599 (symtab_make_decl_local): Update.
14600 (fixup_same_cpp_alias_visibility): Update.
14601 (symtab_nonoverwritable_alias): Update.
14602 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14603 * ipa.c (update_visibility_by_resolution_info): UPdate.
14604 * bb-reorder.c: Include cgraph.h
14605 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14606 with comdat groups.
14607 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14608 * cgraph.c (cgraph_get_create_node): Update.
14609 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14610 and comdat_group_.
14611 (symtab_get_node): Make inline.
14612 (symtab_insert_node_to_hashtable): Remove.
14613 (symtab_can_be_discarded): Update.
14614 (decl_comdat_group): New function.
14615 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14616 Update.
14617 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14618 comdat group name.
14619 (read_comdat_group): New function.
14620 (input_node, input_varpool_node): Use it.
14621 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14622 comdat groups.
14623 * mips.c (mips_start_unique_function): Likewise.
14624 (ix86_code_end): Likewise.
14625 (rs6000_code_end): Likweise.
14626 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14627
14628 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14629
14630 * gengtype-state.c (fatal_reading_state): Bring offline.
14631 * optabs.c (widening_optab_handler): Bring offline.
14632 * optabs.h (widening_optab_handler): Likewise.
14633 * final.c (get_attr_length_1): Likewise.
14634
14635 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14636
14637 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14638
14639 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14640
14641 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14642 (ppc440-compare): Include shift with dot.
14643 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14644 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14645 without dot.
14646 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14647 without dot.
14648 (e6500_sfx2): Include it.
14649 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14650 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14651 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14652 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14653 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14654 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14655 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14656 *lshiftrt_internal1le, *lshiftrt_internal1be,
14657 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14658 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14659 *rotldi3_internal10le, *rotldi3_internal10be,
14660 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14661 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14662 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14663 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14664 define_insns): Use type "shift" in the appropriate alternatives.
14665
14666 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14667
14668 * config/rs6000/rs6000.md (type): Add "logical". Delete
14669 "fast_compare".
14670 (dot): Adjust comment.
14671 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14672 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14673 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14674 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14675 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14676 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14677 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14678 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14679
14680 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14681 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14682 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14683 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14684 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14685 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14686 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14687 * config/rs6000/8540.md (ppc8540_su): Adjust.
14688 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14689 cell-cmp-microcoded): Adjust.
14690 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14691 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14692 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14693 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14694 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14695 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14696 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14697 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14698 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14699 Adjust.
14700 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14701 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14702 Adjust. Adjust comment.
14703 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14704 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14705
14706 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14707
14708 * config/rs6000/rs6000.md (type): Add "add".
14709 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14710 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14711 define_insns): Use it.
14712 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14713
14714 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14715 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14716 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14717 * config/rs6000/601.md (ppc601-integer): Adjust.
14718 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14719 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14720 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14721 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14722 * config/rs6000/8540.md (ppc8540_su): Adjust.
14723 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14724 cell-cmp-microcoded): Adjust.
14725 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14726 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14727 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14728 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14729 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14730 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14731 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14732 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14733 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14734 Adjust.
14735 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14736 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14737 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14738 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14739
14740 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14741
14742 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14743 "delayed_compare", "var_delayed_compare".
14744 (var_shift): New attribute.
14745 (cell_micro): Adjust.
14746 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14747 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14748 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14749 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14750 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14751 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14752 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14753 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14754 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14755 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14756 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14757 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14758 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14759 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14760 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14761 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14762 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14763 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14764 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14765 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14766 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14767 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14768 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14769 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14770 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14771
14772 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14773 * config/rs6000/440.md (ppc440-integer): Adjust.
14774 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14775 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14776 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14777 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14778 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14779 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14780 * config/rs6000/8540.md (ppc8540_su): Adjust.
14781 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14782 cell-cmp-microcoded): Adjust.
14783 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14784 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14785 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14786 e500mc64_delayed): Adjust.
14787 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14788 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14789 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14790 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14791 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14792 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14793 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14794 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14795 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14796 Adjust comment.
14797 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14798 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14799
14800 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14801
14802 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14803 (bits): New mode_attr.
14804 (idiv_ldiv): Delete mode_attr.
14805 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14806 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14807 rs6000_adjust_priority, is_nonpipeline_insn,
14808 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14809
14810 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14811 * config/rs6000/440.md (ppc440-idiv): Adjust.
14812 * config/rs6000/476.md (ppc476-idiv): Adjust.
14813 * config/rs6000/601.md (ppc601-idiv): Adjust.
14814 * config/rs6000/603.md (ppc603-idiv): Adjust.
14815 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14816 ppc620-ldiv): Adjust.
14817 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14818 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14819 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14820 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14821 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14822 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14823 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14824 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14825 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14826 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14827 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14828 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14829 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14830 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14831 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14832 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14833 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14834 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14835
14836 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14837
14838 * config/rs6000/rs6000.md (type): Delete "insert_word",
14839 "insert_dword". Add "insert".
14840 (size): Update comment.
14841 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14842 insn_must_be_first_in_group): Adjust.
14843 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14844 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14845 *insvsi_internal6, insvdi_internal): Adjust.
14846
14847 * config/rs6000/40x.md (ppc403-integer): Adjust.
14848 * config/rs6000/440.md (ppc440-integer): Adjust.
14849 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14850 * config/rs6000/601.md (ppc601-integer): Adjust.
14851 * config/rs6000/603.md (ppc603-integer): Adjust.
14852 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14853 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14854 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14855 * config/rs6000/8540.md (ppc8540_su): Adjust.
14856 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14857 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14858 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14859 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14860 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14861 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14862 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14863 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14864 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14865 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14866 * config/rs6000/power7.md (power7-integer): Adjust.
14867 * config/rs6000/power8.md (power8-1cyc): Adjust.
14868 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14869 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14870
14871 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14872
14873 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14874 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14875 (size): New attribute.
14876 (dot): New attribute.
14877 (cell_micro): Adjust.
14878 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14879 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14880 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14881 umuldi3_highpart): Adjust.
14882 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14883 rs6000_adjust_priority, is_nonpipeline_insn,
14884 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14885
14886 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14887 ppc405-imul3): Adjust.
14888 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14889 * config/rs6000/476.md (ppc476-imul): Adjust.
14890 * config/rs6000/601.md (ppc601-imul): Adjust.
14891 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14892 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14893 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14894 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14895 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14896 Adjust.
14897 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14898 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14899 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14900 cell-imul): Adjust.
14901 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14902 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14903 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14904 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14905 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14906 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14907 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14908 power4-lmul, power4-imul, power4-imul3): Adjust.
14909 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14910 power5-lmul, power5-imul, power5-imul3): Adjust.
14911 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14912 power6-lmul, power6-imul, power6-imul3): Adjust.
14913 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14914 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14915
14916 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14917 rs64a-lmul): Adjust.
14918 * config/rs6000/titan.md (titan_imul): Adjust.
14919
14920 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14921
14922 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14923 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14924 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14925 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14926 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14927 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14928 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14929 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14930 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14931 * config/rs6000/titan.md: Delete nonsensical comment.
14932 (titan_imul): Add type imul3.
14933 (titan_mulhw): Remove type imul3; add type halfmul.
14934
14935 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14936
14937 * config/rs6000/rs6000.md (type): Reorder, reformat.
14938
14939 2014-05-23 Martin Jambor <mjambor@suse.cz>
14940
14941 PR tree-optimization/53787
14942 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14943 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14944 analysis_done, update all uses.
14945 * ipa-prop.c: Include domwalk.h
14946 (param_analysis_info): Removed.
14947 (param_aa_status): New type.
14948 (ipa_bb_info): Likewise.
14949 (func_body_info): Likewise.
14950 (ipa_get_bb_info): New function.
14951 (aa_overwalked): Likewise.
14952 (find_dominating_aa_status): Likewise.
14953 (parm_bb_aa_status_for_bb): Likewise.
14954 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14955 (load_from_unmodified_param): Accept func_body_info as a parameter
14956 instead of parms_ainfo.
14957 (parm_ref_data_preserved_p): Changed to use new param AA info.
14958 (parm_ref_data_pass_through_p): Likewise.
14959 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14960 (compute_complex_assign_jump_func): Changed to use new param AA info.
14961 (compute_complex_ancestor_jump_func): Likewise.
14962 (ipa_compute_jump_functions_for_edge): Likewise.
14963 (ipa_compute_jump_functions): Removed.
14964 (ipa_compute_jump_functions_for_bb): New function.
14965 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14966 declarations down.
14967 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14968 and info, moved variable declarations down.
14969 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14970 node and info.
14971 (ipa_analyze_stmt_uses): Likewise.
14972 (ipa_analyze_params_uses): Removed.
14973 (ipa_analyze_params_uses_in_bb): New function.
14974 (ipa_analyze_controlled_uses): Likewise.
14975 (free_ipa_bb_info): Likewise.
14976 (analysis_dom_walker): New class.
14977 (ipa_analyze_node): Handle node-specific forbidden analysis,
14978 initialize and free func_body_info, use dominator walker.
14979 (ipcp_modif_dom_walker): New class.
14980 (ipcp_transform_function): Create and free func_body_info, use
14981 ipcp_modif_dom_walker, moved a lot of functionality there.
14982
14983 2014-05-23 Marek Polacek <polacek@redhat.com>
14984 Jakub Jelinek <jakub@redhat.com>
14985
14986 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14987 * gcc.c (sanitize_spec_function): Likewise.
14988 * convert.c (convert_to_integer): Include "ubsan.h". Add
14989 floating-point to integer instrumentation.
14990 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14991 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14992 SANITIZE_NONDEFAULT.
14993 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14994 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14995 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14996 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14997 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14998 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14999 float/double/long double.
15000 (ubsan_instrument_float_cast): New function.
15001 * ubsan.h (ubsan_instrument_float_cast): Declare.
15002
15003 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15004
15005 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15006 predicate.
15007 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15008 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15009 Adjust for tailcalling through registers.
15010 * config/aarch64/aarch64.h (enum reg_class): New caller save
15011 register class.
15012 (REG_CLASS_NAMES): Likewise.
15013 (REG_CLASS_CONTENTS): Likewise.
15014 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15015 Allow tailcalling without decls.
15016
15017 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15018
15019 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15020 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15021
15022 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15023 gsi, and variables v_* to v*.
15024
15025 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15026
15027 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15028
15029 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15030
15031 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15032 * omp-low.c: Update accordingly.
15033
15034 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15035 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15036 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15037 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15038 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15039 GF_OMP_TARGET_KIND_UPDATE.
15040
15041 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15042 Explicitly enumerate the expected region types.
15043
15044 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15045
15046 PR other/56955
15047 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15048 documentation; the old documentation didn't clearly state the
15049 constraints on the contents of the pointed-to storage.
15050
15051 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15052
15053 Fix bootstrap error on ia64
15054 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15055 Return default value.
15056
15057 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15058
15059 PR tree-optimization/54733
15060 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15061 (CMPNOP): Define.
15062 (find_bswap_or_nop_load): New.
15063 (find_bswap_1): Renamed to ...
15064 (find_bswap_or_nop_1): This. Also add support for memory source.
15065 (find_bswap): Renamed to ...
15066 (find_bswap_or_nop): This. Also add support for memory source and
15067 detection of bitwise operations equivalent to load in target
15068 endianness.
15069 (execute_optimize_bswap): Likewise. Also move its leading comment back
15070 in place and split statement transformation into ...
15071 (bswap_replace): This.
15072
15073 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15074
15075 PR rtl-optimization/61215
15076 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15077 simplify_gen_subreg until final substitution.
15078
15079 2014-05-23 Alan Modra <amodra@gmail.com>
15080
15081 PR target/61231
15082 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15083 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15084 Use "Y" constraint rather than "m".
15085
15086 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15087
15088 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15089 define.
15090 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15091 New function declaration.
15092 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15093 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15094 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15095 (aarch64_init_builtins) : Initialize builtins
15096 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15097 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15098 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15099 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15100 and __builtins_aarch64_set_fpsr.
15101 (aarch64_atomic_assign_expand_fenv): New function.
15102 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15103 (get_fpcr) : Likewise.
15104 (set_fpsr) : Likewise.
15105 (get_fpsr) : Likewise.
15106 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15107 and UNSPECV_SET_FPSR.
15108 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15109 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15110 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15111
15112 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15113
15114 PR rtl-optimization/60969
15115 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15116 constraints. Set up mem cost for NO_REGS case.
15117
15118 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15119
15120 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15121
15122 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15123
15124 * config/darwin.c: Include "lto-section-names.h".
15125 (LTO_SEGMENT_NAME): Don't define.
15126 * config/i386/winnt.c: Include "lto-section-names.h".
15127 * lto-streamer.c: Include "lto-section-names.h".
15128 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15129 * lto-wrapper.c: Include "lto-section-names.h".
15130 (LTO_SECTION_NAME_PREFIX): Don't define.
15131 * lto-section-names.h: New file.
15132 * cgraphunit.c: Include "lto-section-names.h".
15133
15134 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15135
15136 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15137
15138 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15139
15140 PR target/61208
15141 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15142
15143 2014-05-22 Nick Clifton <nickc@redhat.com>
15144
15145 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15146
15147 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15148
15149 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15150 -> (T)A transformation to integer types.
15151
15152 2014-05-22 Teresa Johnson <tejohnson@google.com>
15153
15154 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15155 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15156 (gcov_rewrite): Use gcov_nonruntime_assert.
15157 (gcov_open): Ditto.
15158 (gcov_write_words): Ditto.
15159 (gcov_write_length): Ditto.
15160 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15161 gcc_assert from IN_LIBGCOV code.
15162 (gcov_read_summary): Use gcov_error to flag profile corruption.
15163 (gcov_sync): Use gcov_nonruntime_assert.
15164 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15165 (gcov_histo_index): Use gcov_nonruntime_assert.
15166 (static void gcov_histogram_merge): Ditto.
15167 (compute_working_sets): Ditto.
15168 * gcov-io.h (gcov_nonruntime_assert): Define.
15169 (gcov_error): Define for !IN_LIBGCOV
15170
15171 2014-05-22 Richard Biener <rguenther@suse.de>
15172
15173 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15174 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15175 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15176 and deallocation site.
15177 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15178 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15179 passing through the incoming points-to set.
15180 (handle_lhs_call): Use flags argument instead of recomputing it.
15181 (find_func_aliases_for_call): Call handle_lhs_call with proper
15182 call return flags.
15183
15184 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15185
15186 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15187 all padding bits in REAL_VALUE_TYPE are cleared.
15188
15189 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15190
15191 Cleanup and improve multipass_dfa_lookahead_guard
15192 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15193 (core2i7_first_cycle_multipass_begin,)
15194 (core2i7_first_cycle_multipass_issue,)
15195 (core2i7_first_cycle_multipass_backtrack): Update signature.
15196 * config/ia64/ia64.c
15197 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15198 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15199 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15200 hook definition.
15201 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15202 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15203 values.
15204 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15205 return values.
15206 * doc/tm.texi: Regenerate.
15207 * doc/tm.texi.in
15208 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15209 * haifa-sched.c (ready_try): Make signed to allow negative values.
15210 (rebug_ready_list_1): Update.
15211 (choose_ready): Simplify.
15212 (sched_extend_ready_list): Update.
15213
15214 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15215
15216 Remove IA64 speculation tweaking flags
15217 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15218 speculation tuning flags.
15219 (msched-prefer-non-data-spec-insns,)
15220 (msched-prefer-non-control-spec-insns): Obsolete options.
15221 * haifa-sched.c (choose_ready): Remove handling of
15222 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15223 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15224 and PREFER_NON_DATA_SPEC.
15225 * sel-sched.c (process_spec_exprs): Remove handling of
15226 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15227
15228 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15229
15230 Improve scheduling debug output
15231 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15232 (advance_one_cycle): Update.
15233 (schedule_insn, queue_to_ready): Add debug printouts.
15234 (debug_ready_list_1): New static function.
15235 (debug_ready_list): Update.
15236 (max_issue): Add debug printouts.
15237 (dump_insn_stream): New static function.
15238 (schedule_block): Use it. Also better indent printouts.
15239
15240 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15241
15242 Fix sched_insn debug counter
15243 * haifa-sched.c (schedule_insn): Update.
15244 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15245 (save_backtrack_point, restore_backtrack_point): Update.
15246 (first_nonscheduled_insn): New static function.
15247 (queue_to_ready, choose_ready): Use it.
15248 (schedule_block): Init nonscheduled_insns_begin.
15249 (sched_emit_insn): Update.
15250
15251
15252 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15253
15254 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15255 to GENERAL_REGS.
15256 (aarch64_secondary_reload) : LikeWise.
15257 (aarch64_class_max_nregs) : Remove CORE_REGS.
15258 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15259 (REG_CLASS_NAMES) : Likewise.
15260 (REG_CLASS_CONTENTS) : LikeWise.
15261 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15262
15263 2014-05-21 Guozhi Wei <carrot@google.com>
15264
15265 PR target/61202
15266 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15267 constraint.
15268 (vqdmulhq_n_s16): Likewise.
15269
15270 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15271
15272 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15273
15274 2014-05-21 Marek Polacek <polacek@redhat.com>
15275
15276 PR sanitizer/61272
15277 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15278
15279 2014-05-21 Martin Jambor <mjambor@suse.cz>
15280
15281 * doc/invoke.texi (Optimize Options): Document parameters
15282 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15283 ipa-cp-array-index-hint-bonus.
15284
15285 2014-05-21 Mark Wielaard <mjw@redhat.com>
15286
15287 PR debug/16063
15288 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15289 version >= 3 or not strict DWARF.
15290 * langhooks.h (struct lang_hooks_for_types): Add
15291 enum_underlying_base_type.
15292 * langhooks.c (lhd_enum_underlying_base_type): New function.
15293 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15294 enum_underlying_base_type.
15295 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15296 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15297 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15298
15299 2014-05-21 Richard Biener <rguenther@suse.de>
15300
15301 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15302
15303 2014-05-21 John Marino <gnugcc@marino.st>
15304
15305 * config.gcc (*-*-dragonfly*): New target.
15306 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15307 * configure: Regenerate.
15308 * config/dragonfly-stdint.h: New.
15309 * config/dragonfly.h: New.
15310 * config/dragonfly.opt: New.
15311 * config/i386/dragonfly.h: New.
15312 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15313
15314 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15315
15316 * tree.def (VOID_CST): New.
15317 * tree-core.h (TI_VOID): New.
15318 * tree.h (void_node): New.
15319 * tree.c (tree_node_structure_for_code, tree_code_size)
15320 (iterative_hash_expr): Handle VOID_CST.
15321 (build_common_tree_nodes): Initialize void_node.
15322
15323 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15324
15325 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15326 functions.
15327 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15328
15329 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15330 more places.
15331
15332 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15333 flag_reorder_blocks_and_partition.
15334 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15335
15336 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15337
15338 PR target/54236
15339 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15340 constraints.
15341 (*addc_r_t): Add new insn_and_split.
15342
15343 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15344
15345 PR middle-end/61252
15346 * omp-low.c (handle_simd_reference): New function.
15347 (lower_rec_input_clauses): Use it. Defer adding reference
15348 initialization even for reduction without placeholder if in simd,
15349 handle it properly later on.
15350
15351 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15352
15353 PR tree-optimization/60899
15354 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15355 assume all static symbols will have definition wile parsing and
15356 check the do have definition later in compilation; check that
15357 variable referring symbol will be output before concluding that
15358 reference is safe; be conservative for referring local statics;
15359 be more precise about when comdat is output in other partition.
15360
15361 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15362
15363 PR bootstrap/60984
15364 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15365 parameter.
15366 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15367 (ipa_inline): Loop inline_to_all_callers until no more aliases
15368 are removed.
15369
15370 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15371
15372 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15373 set writeonly flag only for vars actually written to.
15374
15375 2014-05-20 Dehao Chen <dehao@google.com>
15376
15377 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15378 and callee count to get clone count.
15379 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15380 count in copy_body.
15381
15382 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15383
15384 PR rtl-optimization/61243
15385 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15386
15387 2014-05-20 Xinliang David Li <davidxl@google.com>
15388
15389 * cgraphunit.c (walk_polymorphic_call_targets): Add
15390 dbgcnt and fopt-info support.
15391 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15392 * ipa-devirt.c (ipa_devirt): Ditto.
15393 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15394 * ipa.c (walk_polymorphic_call_targets): Ditto.
15395 * gimple-fold.c (fold_gimple_assign): Ditto.
15396 (gimple_fold_call): Ditto.
15397 * dbgcnt.def: New counter.
15398
15399 2014-05-20 DJ Delorie <dj@redhat.com>
15400
15401 * config/msp430/msp430.md (split): Don't allow subregs when
15402 splitting SImode adds.
15403 (andneghi): Fix subtraction logic.
15404 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15405
15406 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15407
15408 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15409 symbols.
15410 * except.c (switch_to_exception_section, resolve_unique_section,
15411 get_named_text_section, default_function_rodata_section,
15412 align_variable, get_block_for_decl, default_section_type_flags):
15413 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15414 * symtab.c (symtab_add_to_same_comdat_group,
15415 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15416 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15417 Likewise.
15418 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15419 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15420 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15421 (c6x_function_in_section_p): Likewise.
15422 * config/darwin.c (machopic_select_section): Likewise.
15423 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15424 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15425 * config/mep/mep.c (mep_select_section): LIkewise.
15426 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15427
15428 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15429
15430 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15431 EH region of calls to pure functions that can throw an exception.
15432 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15433 (copy_reference_ops_from_call): Also copy the EH region of the call if
15434 it can throw an exception.
15435
15436 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15437
15438 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15439 nested VEC_SELECTs that are inverses of each other.
15440
15441 2014-05-20 Richard Biener <rguenther@suse.de>
15442
15443 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15444 (extract_and_process_scc_for_name): not here.
15445 (cond_dom_walker::before_dom_children): Only process
15446 stmts that end the BB in interesting ways.
15447 (run_scc_vn): Mark param uses as visited.
15448
15449 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15450
15451 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15452 arm_restrict_it.
15453
15454 2014-05-20 Nick Clifton <nickc@redhat.com>
15455
15456 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15457 (msp430_gimplify_va_arg_expr): New function.
15458 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15459
15460 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15461 operand 0 in order to prevent confusion about the number of
15462 registers involved.
15463
15464 2014-05-20 Richard Biener <rguenther@suse.de>
15465
15466 PR tree-optimization/61221
15467 * tree-ssa-pre.c (el_to_update): Remove.
15468 (eliminate_dom_walker::before_dom_children): Handle released
15469 VDEFs by value-numbering them to the associated VUSE. Update
15470 stmt immediately for substituted call address.
15471 (eliminate): Remove delayed stmt updating code.
15472 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15473 possibly late re-numbered vuses.
15474 (vn_reference_lookup_2): Adjust.
15475 (vn_reference_lookup_pieces): Likewise.
15476 (vn_reference_lookup): Likewise.
15477
15478 2014-05-20 Richard Biener <rguenther@suse.de>
15479
15480 * config.gcc: Remove need_64bit_hwint.
15481 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15482 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15483 it to be true.
15484 * config.in: Regenerate.
15485 * configure: Likewise.
15486
15487 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15488
15489 * doc/extend.texi: Create Label Attributes section,
15490 move all label attributes into it and reference it.
15491
15492 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15493
15494 * arm.c (thumb1_reorg): When scanning backwards skip anything
15495 that's not a proper insn.
15496
15497 2014-05-19 Richard Biener <rguenther@suse.de>
15498
15499 PR tree-optimization/61221
15500 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15501 Do nothing for unreachable blocks.
15502 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15503 Improve unreachability detection.
15504
15505 2014-05-19 Richard Biener <rguenther@suse.de>
15506
15507 PR tree-optimization/61209
15508 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15509
15510 2014-05-19 Nick Clifton <nickc@redhat.com>
15511
15512 * except.c (init_eh): Fix computation of builtin setjmp buffer
15513 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15514
15515 2014-05-19 Richard Biener <rguenther@suse.de>
15516
15517 PR tree-optimization/61184
15518 * tree-vrp.c (is_negative_overflow_infinity): Use
15519 TREE_OVERFLOW_P and do that check first.
15520 (is_positive_overflow_infinity): Likewise.
15521 (is_overflow_infinity): Likewise.
15522 (vrp_operand_equal_p): Properly treat operands with
15523 differing overflow as not equal.
15524
15525 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15526
15527 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15528 shift simplification where it was intended.
15529
15530 2014-05-19 Christian Bruel <christian.bruel@st.com>
15531
15532 PR target/61195
15533 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15534
15535 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15536
15537 PR target/61084
15538 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15539 than wide_int.
15540
15541 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15542
15543 * reg-notes.def (CROSSING_JUMP): Likewise.
15544 * rtl.h (rtx_def): Update comment for jump flag.
15545 (CROSSING_JUMP_P): Define.
15546 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15547 of a REG_CROSSING_JUMP note.
15548 * cfghooks.c (tidy_fallthru_edges): Likewise.
15549 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15550 * emit-rtl.c (try_split): Likewise.
15551 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15552 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15553 * jump.c (redirect_jump_2): Likewise.
15554 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15555 (relax_delay_slots): Likewise.
15556 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15557 (bbit_di): Likewise.
15558 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15559 * config/sh/sh.md (jump_compact): Likewise.
15560 * bb-reorder.c (rotate_loop): Likewise.
15561 (pass_duplicate_computed_gotos::execute): Likewise.
15562 (add_reg_crossing_jump_notes): Rename to...
15563 (update_crossing_jump_flags): ...this.
15564 (pass_partition_blocks::execute): Update accordingly.
15565
15566 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15567
15568 * tree.h: Remove extraneous template <>.
15569
15570 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15571
15572 * ipa.c (symtab_remove_unreachable_nodes): Remove
15573 symbol from comdat group if its body was eliminated.
15574 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15575 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15576 (symtab_unregister_node): ... this one.
15577 (verify_symtab_base): More strict checking of comdats.
15578 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15579
15580 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15581
15582 * tree-pass.h (make_pass_ipa_comdats): New pass.
15583 * timevar.def (TV_IPA_COMDATS): New timevar.
15584 * passes.def (pass_ipa_comdats): Add.
15585 * Makefile.in (OBJS): Add ipa-comdats.o
15586 * ipa-comdats.c: New file.
15587
15588 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15589
15590 * ipa.c (update_visibility_by_resolution_info): New function.
15591 (function_and_variable_visibility): Use it.
15592
15593 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15594
15595 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15596 New functions.
15597 (FOR_EACH_DEFINED_SYMBOL): New macro.
15598 (varpool_first_static_initializer, varpool_next_static_initializer,
15599 varpool_first_defined_variable, varpool_next_defined_variable):
15600 Fix comments.
15601 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15602
15603 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15604
15605 * ggc-page.c (ggc_handle_finalizers): Add comment.
15606
15607 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15608
15609 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15610 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15611 (ggc_internal_cleared_alloc): Likewise.
15612 * ggc-page.c (finalizer): New class.
15613 (vec_finalizer): Likewise.
15614 (globals::finalizers): New member.
15615 (globals::vec_finalizers): Likewise.
15616 (ggc_internal_alloc): Record the finalizer if any for the block being
15617 allocated.
15618 (ggc_handle_finalizers): New function.
15619 (ggc_collect): Call ggc_handle_finalizers.
15620 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15621 finalizer.
15622 (ggc_internal_cleared_alloc): Likewise.
15623 (finalize): New function.
15624 (need_finalization_p): Likewise.
15625 (ggc_alloc): Install the type's destructor as the finalizer if it
15626 might do something.
15627 (ggc_cleared_alloc): Likewise.
15628 (ggc_vec_alloc): Likewise.
15629 (ggc_cleared_vec_alloc): Likewise.
15630
15631 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15632
15633 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15634
15635 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15636
15637 * alias.c (record_alias_subset): Adjust.
15638 * bitmap.c (bitmap_element_allocate): Likewise.
15639 (bitmap_gc_alloc_stat): Likewise.
15640 * cfg.c (init_flow): Likewise.
15641 (alloc_block): Likewise.
15642 (unchecked_make_edge): Likewise.
15643 * cfgloop.c (alloc_loop): Likewise.
15644 (flow_loops_find): Likewise.
15645 (rescan_loop_exit): Likewise.
15646 * cfgrtl.c (init_rtl_bb_info): Likewise.
15647 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15648 (cgraph_allocate_node): Likewise.
15649 (cgraph_create_edge_1): Likewise.
15650 (cgraph_allocate_init_indirect_info): Likewise.
15651 * cgraphclones.c (cgraph_clone_edge): Likewise.
15652 * cgraphunit.c (add_asm_node): Likewise.
15653 (init_lowered_empty_function): Likewise.
15654 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15655 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15656 (alpha_use_linkage): Likewise.
15657 * config/arc/arc.c (arc_init_machine_status): Likewise.
15658 * config/arm/arm.c (arm_init_machine_status): Likewise.
15659 * config/avr/avr.c (avr_init_machine_status): Likewise.
15660 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15661 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15662 * config/cris/cris.c (cris_init_machine_status): Likewise.
15663 * config/darwin.c (machopic_indirection_name): Likewise.
15664 (darwin_build_constant_cfstring): Likewise.
15665 (darwin_enter_string_into_cfstring_table): Likewise.
15666 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15667 * config/frv/frv.c (frv_init_machine_status): Likewise.
15668 * config/i386/i386.c (get_dllimport_decl): Likewise.
15669 (ix86_init_machine_status): Likewise.
15670 (assign_386_stack_local): Likewise.
15671 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15672 (i386_pe_maybe_record_exported_symbol): Likewise.
15673 (i386_pe_record_stub): Likewise.
15674 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15675 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15676 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15677 (m32c_note_pragma_address): Likewise.
15678 * config/mep/mep.c (mep_init_machine_status): Likewise.
15679 (mep_note_pragma_flag): Likewise.
15680 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15681 (mips16_local_alias): Likewise.
15682 (mips_init_machine_status): Likewise.
15683 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15684 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15685 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15686 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15687 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15688 * config/pa/pa.c (pa_init_machine_status): Likewise.
15689 (pa_get_deferred_plabel): Likewise.
15690 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15691 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15692 (rs6000_init_machine_status): Likewise.
15693 (output_toc): Likewise.
15694 * config/s390/s390.c (s390_init_machine_status): Likewise.
15695 * config/score/score.c (score_output_external): Likewise.
15696 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15697 * config/spu/spu.c (spu_init_machine_status): Likewise.
15698 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15699 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15700 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15701 * coverage.c (coverage_end_function): Likewise.
15702 * dbxout.c (dbxout_init): Likewise.
15703 * doc/gty.texi: Don't mention variable_size attribute.
15704 * dwarf2cfi.c (new_cfi): Adjust.
15705 (new_cfi_row): Likewise.
15706 (copy_cfi_row): Likewise.
15707 (create_cie_data): Likewise.
15708 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15709 (new_loc_descr): Likewise.
15710 (find_AT_string_in_table): Likewise.
15711 (add_addr_table_entry): Likewise.
15712 (new_die): Likewise.
15713 (add_var_loc_to_decl): Likewise.
15714 (clone_die): Likewise.
15715 (clone_as_declaration): Likewise.
15716 (break_out_comdat_types): Likewise.
15717 (new_loc_list): Likewise.
15718 (add_loc_descr_to_each): Likewise.
15719 (add_location_or_const_value_attribute): Likewise.
15720 (add_linkage_name): Likewise.
15721 (lookup_filename): Likewise.
15722 (dwarf2out_var_location): Likewise.
15723 (new_line_info_table): Likewise.
15724 (dwarf2out_init): Likewise.
15725 (mem_loc_descriptor): Likewise.
15726 (loc_descriptor): Likewise.
15727 (add_const_value_attribute): Likewise.
15728 (tree_add_const_value_attribute): Likewise.
15729 (comp_dir_string): Likewise.
15730 (dwarf2out_vms_debug_main_pointer): Likewise.
15731 (string_cst_pool_decl): Likewise.
15732 * emit-rtl.c (set_mem_attrs): Likewise.
15733 (get_reg_attrs): Likewise.
15734 (start_sequence): Likewise.
15735 (init_emit): Likewise.
15736 (init_emit_regs): Likewise.
15737 * except.c (init_eh_for_function): Likewise.
15738 (gen_eh_region): Likewise.
15739 (gen_eh_region_catch): Likewise.
15740 (gen_eh_landing_pad): Likewise.
15741 (add_call_site): Likewise.
15742 * function.c (add_frame_space): Likewise.
15743 (insert_temp_slot_address): Likewise.
15744 (assign_stack_temp_for_type): Likewise.
15745 (get_hard_reg_initial_val): Likewise.
15746 (allocate_struct_function): Likewise.
15747 (prepare_function_start): Likewise.
15748 (types_used_by_var_decl_insert): Likewise.
15749 * gengtype.c (variable_size_p): Remove function.
15750 (enum alloc_quantity): Remove enum.
15751 (write_typed_alloc_def): Remove function.
15752 (write_typed_struct_alloc_def): Likewise.
15753 (write_typed_typedef_alloc_def): Likewise.
15754 (write_typed_alloc_defns): Likewise.
15755 (main): Adjust.
15756 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15757 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15758 * ggc.h (ggc_alloc): new function.
15759 (ggc_cleared_alloc): Likewise.
15760 (ggc_vec_alloc): Template on type of vector element, and remove
15761 element size argument.
15762 (ggc_cleared_vec_alloc): Likewise.
15763 * gimple.c (gimple_build_omp_for): Adjust.
15764 (gimple_copy): Likewise.
15765 * ipa-cp.c (get_replacement_map): Likewise.
15766 (find_aggregate_values_for_callers_subset): Likewise.
15767 (known_aggs_to_agg_replacement_list): Likewise.
15768 * ipa-devirt.c (get_odr_type): Likewise.
15769 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15770 (read_agg_replacement_chain): Likewise.
15771 * loop-iv.c (get_simple_loop_desc): Likewise.
15772 * lto-cgraph.c (input_node_opt_summary): Likewise.
15773 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15774 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15775 (input_eh_region): Likewise.
15776 (input_eh_lp): Likewise.
15777 (input_cfg): Likewise.
15778 * optabs.c (set_optab_libfunc): Likewise.
15779 (init_tree_optimization_optabs): Likewise.
15780 (set_conv_libfunc): Likewise.
15781 * passes.c (do_per_function_toporder): Likewise.
15782 * rtl.h: Don't use variable_size gty attribute.
15783 * sese.c (if_region_set_false_region): Adjust.
15784 * stringpool.c (gt_pch_save_stringpool): Likewise.
15785 * target-globals.c (save_target_globals): Likewise.
15786 * toplev.c (general_init): Likewise.
15787 * trans-mem.c (record_tm_replacement): Likewise.
15788 (split_bb_make_tm_edge): Likewise.
15789 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15790 * tree-data-ref.h (lambda_vector_new): Likewise.
15791 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15792 * tree-iterator.c (tsi_link_before): Likewise.
15793 (tsi_link_after): Likewise.
15794 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15795 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15796 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15797 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15798 * tree-ssa.c (init_tree_ssa): Adjust.
15799 * tree-ssanames.c (set_range_info): Likewise.
15800 (get_ptr_info): Likewise.
15801 (duplicate_ssa_name_ptr_info): Likewise.
15802 (duplicate_ssa_name_range_info): Likewise.
15803 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15804 (unpack_ts_fixed_cst_value_fields): Likewise.
15805 * tree.c (build_fixed): Likewise.
15806 (build_real): Likewise.
15807 (build_string): Likewise.
15808 (decl_priority_info): Likewise.
15809 (decl_debug_expr_insert): Likewise.
15810 (decl_value_expr_insert): Likewise.
15811 (decl_debug_args_insert): Likewise.
15812 (type_hash_add): Likewise.
15813 (build_omp_clause): Likewise.
15814 * ubsan.c (decl_for_type_insert): Likewise.
15815 * varasm.c (get_unnamed_section): Likewise.
15816 (get_noswitch_section): Likewise.
15817 (get_section): Likewise.
15818 (get_block_for_section): Likewise.
15819 (create_block_symbol): Likewise.
15820 (build_constant_desc): Likewise.
15821 (create_constant_pool): Likewise.
15822 (force_const_mem): Likewise.
15823 (record_tm_clone_pair): Likewise.
15824 * varpool.c (varpool_create_empty_node): Likewise.
15825
15826 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15827
15828 * dwarf2out.c (tree_add_const_value_attribute): Call
15829 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15830 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15831 instead of ggc_internal_<x>alloc_stat.
15832 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15833 (ggc_realloc): Likewise.
15834 * ggc-none.c (ggc_internal_alloc): Likewise.
15835 (ggc_internal_cleared_alloc): Likewise.
15836 * ggc-page.c: Likewise.
15837 * ggc.h (ggc_internal_alloc_stat): Likewise.
15838 (ggc_internal_alloc): Remove macro.
15839 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15840 (ggc_internal_cleared_alloc): Remove macro.
15841 (GGC_RESIZEVEC): Adjust.
15842 (ggc_resizevar): Remove macro.
15843 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15844 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15845 (ggc_internal_vec_cleared_alloc): Remove macro.
15846 (ggc_alloc_atomic_stat): Drop _stat suffix.
15847 (ggc_alloc_atomic): Remove macro.
15848 (ggc_alloc_cleared_atomic): Remove macro.
15849 (ggc_alloc_string_stat): Drop _stat suffix.
15850 (ggc_alloc_string): Remove macro.
15851 (ggc_alloc_rtx_def_stat): Adjust.
15852 (ggc_alloc_tree_node_stat): Likewise.
15853 (ggc_alloc_cleared_tree_node_stat): Likewise.
15854 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15855 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15856 * gimple.c (gimple_build_omp_for): Likewise.
15857 (gimple_copy): Likewise.
15858 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15859 * toplev.c (realloc_for_line_map): Adjust.
15860 * tree-data-ref.h (lambda_vector_new): Likewise.
15861 * tree-phinodes.c (allocate_phi_node): Likewise.
15862 * tree.c (grow_tree_vec_stat): Likewise.
15863 * vec.h (va_gc::reserve): Adjust.
15864
15865 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15866
15867 * config/microblaze/microblaze.c (break_handler): New Declaration.
15868 (microblaze_break_function_p,microblaze_is_break_handler): New.
15869 (compute_frame_size): Use microblaze_break_function_p.
15870 Add the test of break_handler.
15871 (microblaze_function_prologue) : Add the test of variable
15872 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15873 (microblaze_function_epilogue) : Add the test of break_handler.
15874 (microblaze_globalize_label) : Add the test of break_handler.
15875 Check the name by BREAK_HANDLER_NAME.
15876
15877 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15878
15879 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15880 microblaze_is_break_handler test.
15881 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15882 Use SYMBOL_REF_DECL.
15883
15884 * config/microblaze/microblaze-protos.h
15885 (microblaze_break_function_p,microblaze_is_break_handler):
15886 New Declaration.
15887
15888 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15889 new MicroBlaze break_handler functions.
15890
15891 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15892
15893 * doc/extend.texi (Size of an asm): Move node text according
15894 to its @menu entry position.
15895
15896 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15897
15898 PR tree-optimization/61140
15899 PR tree-optimization/61150
15900 PR tree-optimization/61197
15901 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15902
15903 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15904
15905 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15906
15907 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15908
15909 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15910 __SIZEOF_INT128__ is defined.
15911
15912 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15913
15914 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15915 (rs6000_delegitimize_address): Use it.
15916
15917 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15918
15919 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15920 inplace argument. Store the new address in the original MEM when true.
15921 * emit-rtl.c (change_address_1): Likewise.
15922 (adjust_address_1, adjust_automodify_address_1, offset_address):
15923 Update accordingly.
15924 * rtl.h (plus_constant): Add an inplace argument.
15925 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15926 when true. Avoid generating (plus X (const_int 0)).
15927 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15928 in-place. Pass true to plus_constant.
15929 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15930
15931 2014-05-16 Dehao Chen <dehao@google.com>
15932
15933 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15934
15935 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15936
15937 PR target/54089
15938 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15939 patterns.
15940 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15941
15942 2014-05-16 Dehao Chen <dehao@google.com>
15943
15944 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15945 optimize_function_for_size_p.
15946 * regs.h (REG_FREQ_FROM_BB): Likewise.
15947
15948 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15949
15950 PR target/51244
15951 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15952 negt_reg_operand cases.
15953 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15954 predicate.
15955 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15956
15957 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15958
15959 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15960 target variants.
15961
15962 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15963
15964 Revert:
15965 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15966
15967 * tree-cfg.c (dump_function_to_file): Dump the return type of
15968 functions, in a line to itself before the function body, mimicking
15969 the layout of a C function.
15970
15971 2014-05-16 Dehao Chen <dehao@google.com>
15972
15973 * cfghooks.c (make_forwarder_block): Use direct computation to
15974 get fall-through edge's count and frequency.
15975
15976 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15977
15978 * config/arc/arc.c (arc_init): Fix typo in error message.
15979 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15980 (split_stack_prologue_scratch_regno): Likewise.
15981 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15982 word from error message.
15983
15984 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15985
15986 * ira-costs.c: Fix typo in comment.
15987
15988 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15989
15990 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15991
15992 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15993
15994 * varpool.c (dump_varpool_node): Dump write-only flag.
15995 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15996 write-only flag.
15997 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15998 write-only variables.
15999 * ipa.c (process_references): New function.
16000 (set_readonly_bit): New function.
16001 (set_writeonly_bit): New function.
16002 (clear_addressable_bit): New function.
16003 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16004 fix handling of aliases.
16005 * cgraph.h (struct varpool_node): Add writeonly flag.
16006
16007 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16008
16009 PR rtl-optimization/60969
16010 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16011 Calculate costs for this case.
16012
16013 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16014
16015 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16016 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16017
16018 2014-05-16 Richard Biener <rguenther@suse.de>
16019
16020 PR tree-optimization/61194
16021 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16022 bool patterns ending in a COND_EXPR.
16023
16024 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16025
16026 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16027
16028 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16029
16030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16031 where we were unable to cost an RTX.
16032
16033 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16034
16035 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16036 HIGH, LO_SUM.
16037
16038 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16039 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16040
16041 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16042
16043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16044 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16045
16046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16047 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16048
16049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16051
16052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16053 operators.
16054
16055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16056 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16057
16058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16059 DIV/MOD.
16060
16061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16062 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16063
16064 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16065 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16066
16067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16068 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16069
16070 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16071 rotates and shifts.
16072
16073 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16074 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16075
16076 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16077 ZERO_EXTEND and SIGN_EXTEND better.
16078
16079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16080 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16081
16082 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16083 logical operations.
16084
16085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16086 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16087
16088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16089 costs when costing loads and stores to memory.
16090
16091 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16092 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16093
16094 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16095 for SET RTX.
16096
16097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16098
16099 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16100
16101 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16102 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16103
16104 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16105 to...
16106 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16107 well formed.
16108 (aarch64_rtx_mult_cost): New.
16109 (aarch64_rtx_costs): Use it, refactor as appropriate.
16110
16111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16112 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16113
16114 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16115 emit instructions, return number of instructions which would
16116 be emitted.
16117 (aarch64_add_constant): Update call to aarch64_build_constant.
16118 (aarch64_output_mi_thunk): Likewise.
16119 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16120 a CONST_DOUBLE.
16121
16122 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16123
16124 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16125 (TARGET_RTX_COSTS): Call it.
16126
16127 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16128
16129 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16130 (cortexa57_vector_cost): Likewise.
16131 (cortexa57_tunings): Use them.
16132
16133 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16134
16135 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16136 (cpu_addrcost_table): Use it.
16137 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16138 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16139 move it.
16140
16141 2014-05-16 Richard Biener <rguenther@suse.de>
16142
16143 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16144 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16145 (visit_phi): Ignore edges marked as not executable.
16146 (class cond_dom_walker): New.
16147 (cond_dom_walker::before_dom_children): Value-number
16148 control statements and mark successor edges as not
16149 executable if possible.
16150 (run_scc_vn): First walk all control statements in
16151 dominator order, marking edges as not executable.
16152 * tree-inline.c (copy_edges_for_bb): Be not confused
16153 about random edge flags.
16154
16155 2014-05-16 Richard Biener <rguenther@suse.de>
16156
16157 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16158
16159 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16160
16161 PR target/61193
16162 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16163 (__TM_simple_begin): Use it.
16164 (__TM_begin): Likewise.
16165
16166 2014-05-15 Martin Jambor <mjambor@suse.cz>
16167
16168 PR ipa/61085
16169 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16170 type_preserved flag when the indirect edge is polymorphic.
16171
16172 2014-05-15 Martin Jambor <mjambor@suse.cz>
16173
16174 PR tree-optimization/61090
16175 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16176 build_ref_for_model.
16177
16178 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16179
16180 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16181 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16182
16183 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16184
16185 PR tree-optimization/61158
16186 * fold-const.c (fold_binary_loc): If X is zero-extended and
16187 shiftc >= prec, make sure zerobits is all ones instead of
16188 invoking undefined behavior.
16189
16190 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16191
16192 * regcprop.h: New file.
16193 * regcprop.c (skip_debug_insn_p): New decl.
16194 (replace_oldest_value_reg): Check skip_debug_insn_p.
16195 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16196 * shrink-wrap.c: Include regcprop.h.
16197 (prepare_shrink_wrap): Call
16198 copyprop_hardreg_forward_bb_without_debug_insn.
16199
16200 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16201
16202 * shrink-wrap.h: Update comment.
16203 * shrink-wrap.c: Update comment.
16204 (next_block_for_reg): Rename to live_edge_for_reg.
16205 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16206 (move_insn_for_shrink_wrap): Split live_edge.
16207 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16208
16209 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16210
16211 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16212 Delete.
16213 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16214 * config/sparc/sparc.md (fptype_ut699): New attribute.
16215 (in_branch_delay): Return false if -mfix-ut699 is specified and
16216 fptype_ut699 is set to single.
16217 (truncdfsf2): Add fptype_ut699 attribute.
16218 (fix_truncdfsi2): Likewise.
16219 (floatsisf2): Change fptype attribute.
16220 (fix_truncsfsi2): Likewise.
16221 (negtf2_notv9): Delete.
16222 (negtf2_v9): Likewise.
16223 (negtf2_hq): New instruction.
16224 (negtf2): New instruction and splitter.
16225 (negdf2_notv9): Rewrite.
16226 (abstf2_notv9): Delete.
16227 (abstf2_hq_v9): Likewise.
16228 (abstf2_v9): Likewise.
16229 (abstf2_hq): New instruction.
16230 (abstf2): New instruction and splitter.
16231 (absdf2_notv9): Rewrite.
16232
16233 2014-05-14 Cary Coutant <ccoutant@google.com>
16234
16235 PR debug/61013
16236 * opts.c (common_handle_option): Don't special-case "-g".
16237 (set_debug_level): Default to at least level 2 with "-g".
16238
16239 2014-05-14 DJ Delorie <dj@redhat.com>
16240
16241 * config/msp430/msp430.c (msp430_builtin): Add
16242 MSP430_BUILTIN_DELAY_CYCLES.
16243 (msp430_init_builtins): Register void __delay_cycles(long long).
16244 (msp430_builtin_decl): Add it.
16245 (cg_magic_constant): New.
16246 (msp430_expand_delay_cycles): New.
16247 (msp430_expand_builtin): Call it.
16248 (msp430_print_operand_raw): Change integer printing from "int" to
16249 HOST_WIDE_INT.
16250 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16251 (delay_cycles_start): New.
16252 (delay_cycles_end): New.
16253 (delay_cycles_32): New.
16254 (delay_cycles_32x): New.
16255 (delay_cycles_16): New.
16256 (delay_cycles_16x): New.
16257 (delay_cycles_2): New.
16258 (delay_cycles_1): New.
16259 * doc/extend.texi: Document __delay_cycles().
16260
16261 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16262
16263 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16264 length attribute computation.
16265
16266 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16267
16268 PR debug/61188
16269 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16270
16271 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16272
16273 PR target/61084
16274 * config/sparc/sparc.md: Fix types of low and high in DI constant
16275 splitter. Use gen_int_mode in some other splitters.
16276
16277 2014-05-14 Martin Jambor <mjambor@suse.cz>
16278
16279 PR ipa/60897
16280 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16281
16282 2014-05-14 James Norris <jnorris@codesourcery.com>
16283
16284 * omp-low.c (expand_parallel_call): Remove shadow variable.
16285 (expand_omp_taskreg): Likewise.
16286
16287 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16288
16289 * common/config/i386/i386-common.c
16290 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16291 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16292 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16293 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16294 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16295 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16296 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16297 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16298 xsavecintrin.h, xsavesintrin.h.
16299 (x86_64-*-*): Ditto.
16300 * config/i386/clflushoptintrin.h: New.
16301 * config/i386/xsavecintrin.h: Ditto.
16302 * config/i386/xsavesintrin.h: Ditto.
16303 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16304 (bit_XSAVES): Ditto.
16305 (bit_XSAVES): Ditto.
16306 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16307 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16308 -mno-clflushopt.
16309 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16310 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16311 OPTION_MASK_ISA_XSAVES.
16312 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16313 -mxsavec, -mxsaves.
16314 (PTA_CLFLUSHOPT) Define.
16315 (PTA_XSAVEC): Ditto.
16316 (PTA_XSAVES): Ditto.
16317 (ix86_option_override_internal): Handle new options.
16318 (ix86_valid_target_attribute_inner_p): Ditto.
16319 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16320 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16321 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16322 (bdesc_special_args): Add __builtin_ia32_xsaves,
16323 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16324 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16325 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16326 (ix86_expand_builtin): Handle new builtins.
16327 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16328 (TARGET_CLFLUSHOPT_P): Ditto.
16329 (TARGET_XSAVEC): Ditto.
16330 (TARGET_XSAVEC_P): Ditto.
16331 (TARGET_XSAVES): Ditto.
16332 (TARGET_XSAVES_P): Ditto.
16333 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16334 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16335 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16336 (ANY_XRSTOR): New.
16337 (ANY_XRSTOR64): Ditto.
16338 (xrstor): Ditto.
16339 (xrstor): Change into <xrstor>.
16340 (xrstor_rex64): Change into <xrstor>_rex64.
16341 (xrstor64): Change into <xrstor>64
16342 (clflushopt): New.
16343 * config/i386/i386.opt (mclflushopt): New.
16344 (mxsavec): Ditto.
16345 (mxsaves): Ditto.
16346 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16347 xsavecintrin.h.
16348 * doc/invoke.texi: Document new options.
16349
16350 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16351
16352 PR rtl-optimization/60866
16353 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16354 Default it to -1. Pass it down to init_simplejump_data.
16355 (init_simplejump_data): New parameter old_seqno. Pass it down
16356 to get_seqno_for_a_jump.
16357 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16358 initializing new jump seqno as a last resort. Add comment.
16359 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16360 jump and pass it down to sel_init_new_insn.
16361 (sel_redirect_edge_and_branch_force): Likewise.
16362
16363 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16364
16365 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16366 shifted values to avoid build warning.
16367
16368 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16369
16370 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16371 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16372 (cfg_layout_merge_blocks): Likewise.
16373 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16374
16375 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16376
16377 PR rtl-optimization/60901
16378 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16379 bb predecessor belongs to the same scheduling region. Adjust comment.
16380
16381 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16382
16383 * doc/sourcebuild.texi: (dfp_hw): Document.
16384 (p8vector_hw): Likewise.
16385 (powerpc_eabi_ok): Likewise.
16386 (powerpc_elfv2): Likewise.
16387 (powerpc_htm_ok): Likewise.
16388 (ppc_recip_hw): Likewise.
16389 (vsx_hw): Likewise.
16390
16391 2014-05-13 Cary Coutant <ccoutant@google.com>
16392
16393 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16394
16395 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16396
16397 * gengtype-parse.c (require3): Eliminate in favor of...
16398 (require4): New.
16399 (require_template_declaration): Update to support optional single *
16400 on a type.
16401
16402 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16403 (create_user_defined_type): Handle a single level of explicit
16404 pointerness within template arguments.
16405 (struct write_types_data): Add field "kind".
16406 (filter_type_name): Handle "*" character.
16407 (write_user_func_for_structure_ptr): Require a write_types_data
16408 rather than just a prefix string, so that we can look up the kind
16409 of the wtd and use it as an index into wrote_user_func_for_ptr,
16410 ensuring that such functions are written at most once. Support
16411 subclasses by invoking the marking function of the ultimate base class.
16412 (write_user_func_for_structure_body): Require a write_types_data
16413 rather than just a prefix string, so that we can pass this to
16414 write_user_func_for_structure_ptr.
16415 (write_func_for_structure): Likewise.
16416 (ggc_wtd): Add initializer of new "kind" field.
16417 (pch_wtd): Likewise.
16418
16419 * gengtype.h (enum write_types_kinds): New.
16420 (struct type): Add field wrote_user_func_for_ptr to the "s"
16421 union member.
16422
16423 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16424
16425 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16426 instead of const_binop.
16427 (fold_binary_loc): Likewise.
16428
16429 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16430
16431 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16432 calculation to match get_ref_base_and_extent.
16433
16434 2014-05-13 Catherine Moore <clm@codesourcery.com>
16435 Sandra Loosemore <sandra@codesourcery.com>
16436
16437 * configure.ac: Fix assembly for explicit JALR relocation check.
16438 * configure: Regenerate.
16439
16440 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16441
16442 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16443 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16444 Remove associated type declarations and initialisations.
16445 (arm_expand_neon_builtin): Likewise.
16446 (neon_emit_pair_result_insn): Delete.
16447 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16448 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16449 (neon_vzip<mode>): Likewise.
16450 (neon_vuzp<mode>): Likewise.
16451
16452 2014-05-13 Richard Biener <rguenther@suse.de>
16453
16454 PR ipa/60973
16455 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16456 it needs revisiting whether the call still may be tail-called.
16457
16458 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16459
16460 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16461 * rtl.h (block_symbol): Reduce number of fields to 2.
16462 (rtx_def): Add u2.symbol_ref_flags.
16463 (SYMBOL_REF_FLAGS): Use it.
16464 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16465 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16466 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16467 Lower index of SYMBOL_REF_DATA.
16468 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16469 Print SYMBOL_REF_FLAGS at the same time.
16470 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16471
16472 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16473
16474 * rtl.def (VAR_LOCATION): Remove "i" field.
16475 * rtl.h (rtx_def): Add u2.var_location_status.
16476 (PAT_VAR_LOCATION_STATUS): Use it.
16477 (gen_rtx_VAR_LOCATION): Declare.
16478 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16479 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16480 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16481
16482 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16483
16484 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16485 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16486
16487 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16488
16489 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16490 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16491 * rtl.h (rtx_def): Add insn_uid to u2 field.
16492 (RTX_FLAG_CHECK8): Delete in favor of...
16493 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16494 (INSN_DELETED_P): Update accordingly.
16495 (INSN_UID): Use u2.insn_uid.
16496 (INSN_CHAIN_CODE_P): Define.
16497 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16498 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16499 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16500 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16501 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16502 indices accordingly.
16503 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16504 Update indices for insn-chain rtxes.
16505 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16506 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16507 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16508 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16509 * combine.c (try_combine): Likewise.
16510 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16511
16512 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16513
16514 * rtl.def (REG): Remove middle field.
16515 * rtl.h (rtx_def): Add orignal_regno to u2.
16516 (ORIGINAL_REGNO): Use it instead of field 1.
16517 (REG_ATTRS): Lower field index accordingly.
16518 * gengtype.c (adjust_field_rtx_def): Remove handling of
16519 ORIGINAL_REGNO. Move REG_ATTRS index down.
16520 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16521 code that prints the REGNO.
16522
16523 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16524
16525 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16526 GENERATOR_FILE.
16527
16528 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16529
16530 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16531
16532 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16533
16534 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16535 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16536
16537 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16538
16539 * config/aarch64/aarch64-protos.h
16540 (aarch64_hard_regno_caller_save_mode): New prototype.
16541 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16542 New function.
16543 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16544
16545 2014-05-13 Christian Bruel <christian.bruel@st.com>
16546
16547 * target.def (mode_switching): New hook vector.
16548 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16549 (mode_exit, modepriority_to_mode): Likewise.
16550 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16551 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16552 * target.h: Include tm.h and hard-reg-set.h.
16553 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16554 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16555 * doc/tm.texi Regenerate.
16556 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16557 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16558 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16559 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16560 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16561 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16562 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16563 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16564 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16565 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16566 (ix86_emit_mode_set): Hookify.
16567 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16568 Delete.
16569 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16570 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16571 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16572 (epiphany_mode_priority_to_mode): Remove declaration.
16573 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16574 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16575 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16576 Likewise.
16577 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16578 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16579 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16580
16581 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16582
16583 PR target/61060
16584 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16585 is const0_rtx, return immediately. Don't test count == 0 when
16586 it is always true.
16587
16588 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16589
16590 * Makefile.in: add shrink-wrap.o.
16591 * config/i386/i386.c: include "shrink-wrap.h"
16592 * function.c: Likewise.
16593 (requires_stack_frame_p, next_block_for_reg,
16594 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16595 dup_block_and_redirect): Move to shrink-wrap.c
16596 (thread_prologue_and_epilogue_insns): Extract three code segments
16597 as functions in shrink-wrap.c
16598 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16599 shrink-wrap.h
16600 * shrink-wrap.c: New file.
16601 * shrink-wrap.h: New file.
16602
16603 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16604
16605 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16606 reference to Solaris.
16607
16608 2014-05-12 Mike Stump <mikestump@comcast.net>
16609
16610 PR other/31778
16611 * genattrtab.c (filename): Add.
16612 (convert_set_attr_alternative): Improve error message.
16613 (check_defs): Restore read_md_filename for error messages.
16614 (gen_insn): Save filename.
16615
16616 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16617
16618 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16619 -fno-local-ivars and -fivar-visibility.
16620 * c-family/c.opt: Make -Wshadow also implicitly enable
16621 -Wshadow-ivar.
16622
16623 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16624
16625 * doc/tm.texi: Remove reference to deleted macro.
16626 * doc/tm.texi.in: Likewise.
16627
16628 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16629
16630 PR target/60991
16631 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16632 to restore Y.
16633
16634 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16635
16636 PR libgcc/61152
16637 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16638 * config/arm/aout.h (License): Same.
16639 * config/arm/bpabi.h (License): Same.
16640 * config/arm/elf.h (License): Same.
16641 * config/arm/linux-elf.h (License): Same.
16642 * config/arm/linux-gas.h (License): Same.
16643 * config/arm/netbsd-elf.h (License): Same.
16644 * config/arm/uclinux-eabi.h (License): Same.
16645 * config/arm/uclinux-elf.h (License): Same.
16646 * config/arm/vxworks.h (License): Same.
16647
16648 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16649
16650 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16651 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16652 number of operands to 3.
16653 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16654 * tree-nested.c (convert_nonlocal_omp_clauses,
16655 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16656 * gimplify.c (gimplify_scan_omp_clauses): Handle
16657 OMP_CLAUSE_LINEAR_STMT.
16658 * omp-low.c (lower_rec_input_clauses): Fix typo.
16659 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16660 cast between Fortran boolean_type_node and C _Bool if
16661 needed.
16662
16663 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16664
16665 PR tree-optimization/61136
16666 * wide-int.h (multiple_of_p): Define a version that doesn't return
16667 the quotient.
16668 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16669 integer_zerop/const_binop pair.
16670 (multiple_of_p): Likewise, converting both operands to widest_int
16671 precision.
16672
16673 2014-05-09 Teresa Johnson <tejohnson@google.com>
16674
16675 * cgraphunit.c (analyze_functions): Use correct dump file.
16676
16677 2014-05-09 Florian Weimer <fweimer@redhat.com>
16678
16679 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16680 expand_used_vars.
16681 (stack_protect_return_slot_p): New function.
16682 (expand_used_vars): Call stack_protect_decl_p and
16683 stack_protect_return_slot_p for -fstack-protector-strong.
16684
16685 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16686 Andrew Haley <aph@redhat.com>
16687 Richard Sandiford <rdsandiford@googlemail.com>
16688
16689 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16690 pages.
16691
16692 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16693
16694 PR middle-end/61111
16695 * fold-const.c (fold_binary_loc): Changed width of mask.
16696
16697 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16698
16699 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16700 unsigned int initializers for regno_in, regno_out.
16701
16702 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16703
16704 PR target/61055
16705 * config/avr/avr.md (cc): Add new attribute set_vzn.
16706 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16707 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16708 with INC, DEC or NEG.
16709 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16710 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16711 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16712
16713 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16714
16715 Revert:
16716 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16717
16718 * wide-int.cc (UTItype): Define.
16719 (UDWtype): Define for appropriate W_TYPE_SIZE.
16720
16721 2014-05-09 Richard Biener <rguenther@suse.de>
16722
16723 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16724 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16725 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16726 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16727 ssa_propagate): Adjust.
16728
16729 2014-05-08 Jeff Law <law@redhat.com>
16730
16731 PR tree-optimization/61009
16732 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16733 tri-state rather than a boolean. When a block is too big to
16734 thread through, inform caller via negative return value.
16735 (thread_across_edge): If a block was too big for normal threading,
16736 then it's too big for a joiner too, so remove temporary equivalences
16737 and return immediately.
16738
16739 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16740 Matthias Klose <doko@ubuntu.com>
16741
16742 PR driver/61106
16743 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16744
16745 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16746
16747 PR target/59952
16748 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16749
16750 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16751
16752 PR target/61092
16753 * config/alpha/alpha.c: Include gimple-iterator.h.
16754 (alpha_gimple_fold_builtin): New function. Move
16755 ALPHA_BUILTIN_UMULH folding from ...
16756 (alpha_fold_builtin): ... here.
16757 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16758
16759 2014-05-08 Wei Mi <wmi@google.com>
16760
16761 PR target/58066
16762 * config/i386/i386.c (ix86_compute_frame_layout): Update
16763 preferred_stack_boundary for call, expanded from tls descriptor.
16764 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16765 to depend on SP register.
16766 (*tls_local_dynamic_base_32_gnu): Ditto.
16767 (*tls_local_dynamic_32_once): Ditto.
16768 (tls_global_dynamic_64_<mode>): Set
16769 ix86_tls_descriptor_calls_expanded_in_cfun.
16770 (tls_local_dynamic_base_64_<mode>): Ditto.
16771 (tls_global_dynamic_32): Set
16772 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16773 to depend on SP register.
16774 (tls_local_dynamic_base_32): Ditto.
16775
16776 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16777
16778 * config/arm/arm_neon.h: Update comment.
16779 * config/arm/neon-docgen.ml: Delete.
16780 * config/arm/neon-gen.ml: Delete.
16781 * doc/arm-neon-intrinsics.texi: Update comment.
16782
16783 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16784
16785 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16786 and v4sf versions.
16787 (vand, vorr, veor, vorn, vbic): Remove.
16788 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16789 iterator.
16790 (neon_vsub_unspec): Likewise.
16791 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16792
16793 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16794
16795 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16796 (vadd_s16): Likewise.
16797 (vadd_s32): Likewise.
16798 (vadd_f32): Likewise.
16799 (vadd_u8): Likewise.
16800 (vadd_u16): Likewise.
16801 (vadd_u32): Likewise.
16802 (vadd_s64): Likewise.
16803 (vadd_u64): Likewise.
16804 (vaddq_s8): Likewise.
16805 (vaddq_s16): Likewise.
16806 (vaddq_s32): Likewise.
16807 (vaddq_s64): Likewise.
16808 (vaddq_f32): Likewise.
16809 (vaddq_u8): Likewise.
16810 (vaddq_u16): Likewise.
16811 (vaddq_u32): Likewise.
16812 (vaddq_u64): Likewise.
16813 (vmul_s8): Likewise.
16814 (vmul_s16): Likewise.
16815 (vmul_s32): Likewise.
16816 (vmul_f32): Likewise.
16817 (vmul_u8): Likewise.
16818 (vmul_u16): Likewise.
16819 (vmul_u32): Likewise.
16820 (vmul_p8): Likewise.
16821 (vmulq_s8): Likewise.
16822 (vmulq_s16): Likewise.
16823 (vmulq_s32): Likewise.
16824 (vmulq_f32): Likewise.
16825 (vmulq_u8): Likewise.
16826 (vmulq_u16): Likewise.
16827 (vmulq_u32): Likewise.
16828 (vsub_s8): Likewise.
16829 (vsub_s16): Likewise.
16830 (vsub_s32): Likewise.
16831 (vsub_f32): Likewise.
16832 (vsub_u8): Likewise.
16833 (vsub_u16): Likewise.
16834 (vsub_u32): Likewise.
16835 (vsub_s64): Likewise.
16836 (vsub_u64): Likewise.
16837 (vsubq_s8): Likewise.
16838 (vsubq_s16): Likewise.
16839 (vsubq_s32): Likewise.
16840 (vsubq_s64): Likewise.
16841 (vsubq_f32): Likewise.
16842 (vsubq_u8): Likewise.
16843 (vsubq_u16): Likewise.
16844 (vsubq_u32): Likewise.
16845 (vsubq_u64): Likewise.
16846 (vand_s8): Likewise.
16847 (vand_s16): Likewise.
16848 (vand_s32): Likewise.
16849 (vand_u8): Likewise.
16850 (vand_u16): Likewise.
16851 (vand_u32): Likewise.
16852 (vand_s64): Likewise.
16853 (vand_u64): Likewise.
16854 (vandq_s8): Likewise.
16855 (vandq_s16): Likewise.
16856 (vandq_s32): Likewise.
16857 (vandq_s64): Likewise.
16858 (vandq_u8): Likewise.
16859 (vandq_u16): Likewise.
16860 (vandq_u32): Likewise.
16861 (vandq_u64): Likewise.
16862 (vorr_s8): Likewise.
16863 (vorr_s16): Likewise.
16864 (vorr_s32): Likewise.
16865 (vorr_u8): Likewise.
16866 (vorr_u16): Likewise.
16867 (vorr_u32): Likewise.
16868 (vorr_s64): Likewise.
16869 (vorr_u64): Likewise.
16870 (vorrq_s8): Likewise.
16871 (vorrq_s16): Likewise.
16872 (vorrq_s32): Likewise.
16873 (vorrq_s64): Likewise.
16874 (vorrq_u8): Likewise.
16875 (vorrq_u16): Likewise.
16876 (vorrq_u32): Likewise.
16877 (vorrq_u64): Likewise.
16878 (veor_s8): Likewise.
16879 (veor_s16): Likewise.
16880 (veor_s32): Likewise.
16881 (veor_u8): Likewise.
16882 (veor_u16): Likewise.
16883 (veor_u32): Likewise.
16884 (veor_s64): Likewise.
16885 (veor_u64): Likewise.
16886 (veorq_s8): Likewise.
16887 (veorq_s16): Likewise.
16888 (veorq_s32): Likewise.
16889 (veorq_s64): Likewise.
16890 (veorq_u8): Likewise.
16891 (veorq_u16): Likewise.
16892 (veorq_u32): Likewise.
16893 (veorq_u64): Likewise.
16894 (vbic_s8): Likewise.
16895 (vbic_s16): Likewise.
16896 (vbic_s32): Likewise.
16897 (vbic_u8): Likewise.
16898 (vbic_u16): Likewise.
16899 (vbic_u32): Likewise.
16900 (vbic_s64): Likewise.
16901 (vbic_u64): Likewise.
16902 (vbicq_s8): Likewise.
16903 (vbicq_s16): Likewise.
16904 (vbicq_s32): Likewise.
16905 (vbicq_s64): Likewise.
16906 (vbicq_u8): Likewise.
16907 (vbicq_u16): Likewise.
16908 (vbicq_u32): Likewise.
16909 (vbicq_u64): Likewise.
16910 (vorn_s8): Likewise.
16911 (vorn_s16): Likewise.
16912 (vorn_s32): Likewise.
16913 (vorn_u8): Likewise.
16914 (vorn_u16): Likewise.
16915 (vorn_u32): Likewise.
16916 (vorn_s64): Likewise.
16917 (vorn_u64): Likewise.
16918 (vornq_s8): Likewise.
16919 (vornq_s16): Likewise.
16920 (vornq_s32): Likewise.
16921 (vornq_s64): Likewise.
16922 (vornq_u8): Likewise.
16923 (vornq_u16): Likewise.
16924 (vornq_u32): Likewise.
16925 (vornq_u64): Likewise.
16926
16927 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16928
16929 * wide-int.cc (UTItype): Define.
16930 (UDWtype): Define for appropriate W_TYPE_SIZE.
16931
16932 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16933
16934 PR tree-optimization/59100
16935 * tree-ssa-phiopt.c: Include tree-inline.h.
16936 (neutral_element_p, absorbing_element_p): New functions.
16937 (value_replacement): Handle conditional binary operations with a
16938 neutral or absorbing element.
16939
16940 2014-05-08 Richard Biener <rguenther@suse.de>
16941
16942 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16943 folding the expression.
16944 (valueize_expr): Remove.
16945 (visit_reference_op_load): Do not valueize the result of
16946 vn_get_expr_for.
16947 (simplify_binary_expression): Likewise.
16948 (simplify_unary_expression): Likewise.
16949
16950 2014-05-08 Richard Biener <rguenther@suse.de>
16951
16952 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16953 looking at TYPE_ARG_TYPES.
16954
16955 2014-05-08 Richard Biener <rguenther@suse.de>
16956
16957 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16958 pointer propagation special-case.
16959
16960 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16961
16962 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16963 core part of address expressions.
16964
16965 2014-05-08 Alan Modra <amodra@gmail.com>
16966
16967 PR target/60737
16968 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16969 loads and stores when -mno-strict-align at any alignment.
16970 (expand_block_clear): Similarly. Also correct calculation of
16971 instruction count.
16972
16973 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16974
16975 PR middle-end/39246
16976 * tree-complex.c (expand_complex_move): Keep line info when expanding
16977 complex move.
16978 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16979 of complex expression. Use new argument to display correct location
16980 for values coming from phi statement.
16981 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16982 (warn_uninitialized_phi): Pass location of phi argument to
16983 warn_uninit.
16984 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16985 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16986
16987 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16988
16989 * config/rs6000/predicates.md (indexed_address_mem): New.
16990 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16991 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16992 fpstore_ux, fpstore_u.
16993 (sign_extend, indexed, update): New.
16994 (cell_micro): Adjust.
16995 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16996 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16997 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16998 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16999 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17000 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17001 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17002 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17003 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17004 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17005 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17006 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17007 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17008 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17009 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17010
17011 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17012 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17013 *vsx_extract_<mode>_store): Adjust.
17014 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17015 is_cracked_insn, insn_must_be_first_in_group,
17016 insn_must_be_last_in_group): Adjust.
17017
17018 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17019 Adjust.
17020 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17021 ppc440-fpstore): Adjust.
17022 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17023 ppc476-fpstore): Adjust.
17024 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17025 ppc601-fpstore): Adjust.
17026 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17027 Adjust.
17028 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17029 Adjust.
17030 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17031 ppc7450-fpstore): Adjust.
17032 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17033 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17034 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17035 Adjust.
17036 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17037 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17038 cell-fpstore, cell-fpstore-update): Adjust.
17039 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17040 ppce300c3_store, ppce300c3_fpstore): Adjust.
17041 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17042 e500mc_fpstore): Adjust.
17043 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17044 e500mc64_store, e500mc64_fpstore): Adjust.
17045 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17046 e5500_fpstore): Adjust.
17047 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17048 e6500_fpstore): Adjust.
17049 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17050 Adjust.
17051 * config/rs6000/power4.md (power4-load, power4-load-ext,
17052 power4-load-ext-update, power4-load-ext-update-indexed,
17053 power4-load-update-indexed, power4-load-update, power4-fpload,
17054 power4-fpload-update, power4-store, power4-store-update,
17055 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17056 Adjust.
17057 * config/rs6000/power5.md (power5-load, power5-load-ext,
17058 power5-load-ext-update, power5-load-ext-update-indexed,
17059 power5-load-update-indexed, power5-load-update, power5-fpload,
17060 power5-fpload-update, power5-store, power5-store-update,
17061 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17062 Adjust.
17063 * config/rs6000/power6.md (power6-load, power6-load-ext,
17064 power6-load-update, power6-load-update-indexed,
17065 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17066 power6-fpload-update, power6-store, power6-store-update,
17067 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17068 Adjust.
17069 * config/rs6000/power7.md (power7-load, power7-load-ext,
17070 power7-load-update, power7-load-update-indexed,
17071 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17072 power7-fpload-update, power7-store, power7-store-update,
17073 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17074 Adjust.
17075 * config/rs6000/power8.md (power8-load, power8-load-update,
17076 power8-load-ext, power8-load-ext-update, power8-fpload,
17077 power8-fpload-update, power8-store, power8-store-update-indexed,
17078 power8-fpstore, power8-fpstore-update): Adjust.
17079 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17080 Adjust.
17081 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17082 titan_lsu_store, titan_lsu_fpstore): Adjust.
17083 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17084
17085 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17086
17087 PR target/60884
17088 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17089 unrolled byte insns. Emit address increments after move insns.
17090
17091 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17092
17093 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17094 const_gimple, rather than a gimple.
17095 (gimple_call_builtin_p): Likewise, for the three variants.
17096
17097 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17098 (gimple_call_builtin_p): Likewise, for the three variants.
17099
17100 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17101
17102 PR tree-optimization/61095
17103 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17104
17105 2014-05-07 Richard Biener <rguenther@suse.de>
17106
17107 PR tree-optimization/61034
17108 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17109 (maybe_skip_until): Use translate to take into account
17110 lattices when trying to do disambiguations.
17111 (get_continuation_for_phi_1): Likewise.
17112 (get_continuation_for_phi): Adjust for added translate arguments.
17113 (walk_non_aliased_vuses): Likewise.
17114 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17115 (walk_non_aliased_vuses): Likewise.
17116 (call_may_clobber_ref_p_1): Declare.
17117 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17118 calls. Stop early if we are only supposed to disambiguate.
17119 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17120
17121 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17122
17123 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17124 Emit an error when the function has arguments.
17125
17126 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17127
17128 * cfgloop.h (unswitch_loops): Remove.
17129 * doc/passes.texi: Remove references to loop-unswitch.c
17130 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17131
17132 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17133
17134 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17135 check for loads group of length 3.
17136 (vect_permute_load_chain): New permutations for loads group of
17137 length 3.
17138 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17139 of vec_perm_shuffle for the new permutations.
17140
17141 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17142
17143 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17144 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17145 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17146 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17147 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17148 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17149 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17150 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17151
17152 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17153
17154 * loop-unswitch.c: Delete.
17155
17156 2014-05-07 Richard Biener <rguenther@suse.de>
17157
17158 * config.gcc: Always set need_64bit_hwint to yes.
17159
17160 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17161
17162 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17163 of using optimize_size.
17164
17165 2014-05-06 Mike Stump <mikestump@comcast.net>
17166
17167 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17168
17169 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17170
17171 * config/i386/sse.md (*mov<mode>_internal)
17172 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17173 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17174 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17175 (*<code><mode>3, *andnot<mode>3<mask_name>)
17176 (<mask_codefor><code><mode>3<mask_name>): Only consider
17177 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17178
17179 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17180
17181 Revert:
17182 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17183
17184 * lra-constraints.c (valid_address_p): Move earlier in file.
17185 Add a constraint argument to the address_info version.
17186 (satisfies_memory_constraint_p): New function.
17187 (satisfies_address_constraint_p): Likewise.
17188 (process_alt_operands, curr_insn_transform): Use them.
17189 (process_address): Pass the constraint to valid_address_p when
17190 checking address operands.
17191
17192 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17193
17194 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17195 to their respective blocks. Fix inadvertent use of "node".
17196
17197 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17198
17199 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17200 out from...
17201 (init_emit_once): ...here.
17202 * rtl.h (init_derived_machine_modes): Declare.
17203 * toplev.c (do_compile): Call it even if no_backend.
17204
17205 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17206 Mike Stump <mikestump@comcast.net>
17207 Richard Sandiford <rdsandiford@googlemail.com>
17208 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17209
17210 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17211 (rtx_equal_for_memref_p): Update comment.
17212 (adjust_offset_for_component_ref): Use wide-int interfaces.
17213 * builtins.c (get_object_alignment_2): Likewise.
17214 (c_readstr): Likewise.
17215 (target_char_cast): Add comment.
17216 (determine_block_size): Use wide-int interfaces.
17217 (expand_builtin_signbit): Likewise.
17218 (fold_builtin_int_roundingfn): Likewise.
17219 (fold_builtin_bitop): Likewise.
17220 (fold_builtin_bswap): Likewise.
17221 (fold_builtin_logarithm): Use signop.
17222 (fold_builtin_pow): Likewise.
17223 (fold_builtin_memory_op): Use wide-int interfaces.
17224 (fold_builtin_object_size): Likewise.
17225 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17226 nb_iterations_estimate.
17227 (record_niter_bound): Use wide-int interfaces.
17228 (get_estimated_loop_iterations_int): Likewise.
17229 (get_estimated_loop_iterations): Likewise.
17230 (get_max_loop_iterations): Likewise.
17231 * cfgloop.h: Include wide-int.h.
17232 (struct nb_iter_bound): Change bound to widest_int.
17233 (struct loop): Change nb_iterations_upper_bound and
17234 nb_iterations_estimate to widest_int.
17235 (record_niter_bound): Switch to use widest_int.
17236 (get_estimated_loop_iterations): Likewise.
17237 (get_max_loop_iterations): Likewise.
17238 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17239 update for wide-int.
17240 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17241 * combine.c (try_combine): Likewise.
17242 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17243 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17244 interfaces.
17245 (aarch64_float_const_representable_p): Likewise.
17246 * config/arc/arc.c: Include wide-int.h.
17247 (arc_can_use_doloop_p): Use wide-int interfaces.
17248 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17249 (vfp3_const_double_index): Likewise.
17250 * config/avr/avr.c (avr_out_round): Likewise.
17251 (avr_fold_builtin): Likewise.
17252 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17253 (bfin_can_use_doloop_p): Likewise.
17254 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17255 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17256 * config/i386/i386.c: Include wide-int.h.
17257 (ix86_data_alignment): Use wide-int interfaces.
17258 (ix86_local_alignment): Likewise.
17259 (ix86_emit_swsqrtsf): Update real_from_integer.
17260 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17261 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17262 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17263 (zero_constant): Likewise.
17264 (input_operand): Likewise.
17265 (splat_input_operand): Likewise.
17266 (non_logical_cint_operand): Change const_double to const_wide_int.
17267 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17268 (easy_altivec_constant): Remove comment.
17269 (paired_expand_vector_init): Use CONSTANT_P.
17270 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17271 (rs6000_emit_move): Update checks.
17272 (rs6000_aggregate_candidate): Use wide-int interfaces.
17273 (rs6000_expand_ternop_builtin): Likewise.
17274 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17275 (rs6000_assemble_integer): Likewise.
17276 (rs6000_hash_constant): Likewise.
17277 (output_toc): Likewise.
17278 (rs6000_rtx_costs): Likewise.
17279 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17280 * config/rs6000/rs6000-c.c: Include wide-int.h.
17281 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17282 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17283 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17284 Handle CONST_WIDE_INT.
17285 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17286 Use tree_fits_uhwi_p.
17287 * config/sparc/sparc.c: Include wide-int.h.
17288 (sparc_fold_builtin): Use wide-int interfaces.
17289 * config/vax/vax.c: Include wide-int.h.
17290 (vax_float_literal): Use real_from_integer.
17291 * coretypes.h (struct hwivec_def): New.
17292 (hwivec): New.
17293 (const_hwivec): New.
17294 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17295 (equiv_constant): Handle CONST_WIDE_INT.
17296 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17297 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17298 * dbxout.c (stabstr_U): Use wide-int interfaces.
17299 (dbxout_type): Update to use cst_fits_shwi_p.
17300 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17301 (TARGET_SUPPORTS_WIDE_INT): Add default.
17302 * dfp.c: Include wide-int.h.
17303 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17304 decimal_real_to_integer.
17305 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17306 decimal_real_to_integer.
17307 * doc/generic.texi (Constant expressions): Update for wide_int.
17308 * doc/rtl.texi (const_double): Likewise.
17309 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17310 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17311 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17312 (REAL_VALUE_FROM_INT): Remove.
17313 (TARGET_SUPPORTS_WIDE_INT): New.
17314 * doc/tm.texi: Regenerate.
17315 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17316 * double-int.h: Include wide-int.h.
17317 (struct wi::int_traits): New.
17318 * dwarf2out.c (get_full_len): New.
17319 (dw_val_equal_p): Add case dw_val_class_wide_int.
17320 (size_of_loc_descr): Likewise.
17321 (output_loc_operands): Likewise.
17322 (insert_double): Remove.
17323 (insert_wide_int): New.
17324 (add_AT_wide): New.
17325 (print_die): Add case dw_val_class_wide_int.
17326 (attr_checksum): Likewise.
17327 (attr_checksum_ordered): Likewise.
17328 (same_dw_val_p): Likewise.
17329 (size_of_die): Likewise.
17330 (value_format): Likewise.
17331 (output_die): Likewise.
17332 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17333 Use wide-int.
17334 (clz_loc_descriptor): Use wide-int interfaces.
17335 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17336 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17337 (round_up_to_align): Use wide-int interfaces.
17338 (field_byte_offset): Likewise.
17339 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17340 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17341 CONST_DOUBLE handling. Use wide-int interfaces.
17342 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17343 (gen_enumeration_type_die): Use add_AT_wide.
17344 (hash_loc_operands): Add case dw_val_class_wide_int.
17345 (compare_loc_operands): Likewise.
17346 * dwarf2out.h: Include wide-int.h.
17347 (wide_int_ptr): New.
17348 (enum dw_val_class): Add dw_val_class_wide_int.
17349 (struct dw_val_struct): Add val_wide.
17350 * emit-rtl.c (const_wide_int_htab): New.
17351 (const_wide_int_htab_hash): New.
17352 (const_wide_int_htab_eq): New.
17353 (lookup_const_wide_int): New.
17354 (const_double_htab_hash): Use wide-int interfaces.
17355 (const_double_htab_eq): Likewise.
17356 (rtx_to_double_int): Conditionally compile for wide-int.
17357 (immed_double_int_const): Rename to immed_wide_int_const and
17358 update for wide-int.
17359 (immed_double_const): Conditionally compile for wide-int.
17360 (init_emit_once): Use wide-int interfaces.
17361 * explow.c (plus_constant): Likewise.
17362 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17363 (lshift_value): Use wide-int interfaces.
17364 (expand_mult): Likewise.
17365 (choose_multiplier): Likewise.
17366 (expand_smod_pow2): Likewise.
17367 (make_tree): Likewise.
17368 * expr.c (convert_modes): Consolidate handling of constants.
17369 Use wide-int interfaces.
17370 (emit_group_load_1): Add note.
17371 (store_expr): Update comment.
17372 (get_inner_reference): Use wide-int interfaces.
17373 (expand_constructor): Update comment.
17374 (expand_expr_real_2): Use wide-int interfaces.
17375 (expand_expr_real_1): Likewise.
17376 (reduce_to_bit_field_precision): Likewise.
17377 (const_vector_from_tree): Likewise.
17378 * final.c: Include wide-int-print.h.
17379 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17380 * fixed-value.c: Include wide-int.h.
17381 (fixed_from_string): Use wide-int interfaces.
17382 (fixed_to_decimal): Likewise.
17383 (fixed_convert_from_real): Likewise.
17384 (real_convert_from_fixed): Likewise.
17385 * fold-const.h (mem_ref_offset): Return an offset_int.
17386 (div_if_zero_remainder): Remove code parameter.
17387 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17388 Use wide-int interfaces.
17389 (may_negate_without_overflow_p): Use wide-int interfaces.
17390 (negate_expr_p): Likewise.
17391 (fold_negate_expr): Likewise.
17392 (int_const_binop_1): Likewise.
17393 (const_binop): Likewise.
17394 (fold_convert_const_int_from_int): Likewise.
17395 (fold_convert_const_int_from_real): Likewise.
17396 (fold_convert_const_int_from_fixed): Likewise.
17397 (fold_convert_const_fixed_from_int): Likewise.
17398 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17399 (sign_bit_p): Use wide-int interfaces.
17400 (make_range_step): Likewise.
17401 (build_range_check): Likewise. Pass an integer of the correct type
17402 instead of using integer_one_node.
17403 (range_predecessor): Pass an integer of the correct type instead
17404 of using integer_one_node.
17405 (range_successor): Likewise.
17406 (merge_ranges): Likewise.
17407 (unextend): Use wide-int interfaces.
17408 (extract_muldiv_1): Likewise.
17409 (fold_div_compare): Likewise.
17410 (fold_single_bit_test): Likewise.
17411 (fold_sign_changed_comparison): Likewise.
17412 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17413 (fold_plusminus_mult_expr): Use wide-int interfaces.
17414 (native_encode_int): Likewise.
17415 (native_interpret_int): Likewise.
17416 (fold_unary_loc): Likewise.
17417 (pointer_may_wrap_p): Likewise.
17418 (size_low_cst): Likewise.
17419 (mask_with_tz): Likewise.
17420 (fold_binary_loc): Likewise.
17421 (fold_ternary_loc): Likewise.
17422 (multiple_of_p): Likewise.
17423 (tree_call_nonnegative_warnv_p): Update calls to
17424 tree_int_cst_min_precision and real_from_integer.
17425 (fold_negate_const): Use wide-int interfaces.
17426 (fold_abs_const): Likewise.
17427 (fold_relational_const): Use tree_int_cst_lt.
17428 (round_up_loc): Use wide-int interfaces.
17429 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17430 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17431 * gengtype.c: Remove include of double-int.h.
17432 (do_typedef): Use wide-int interfaces.
17433 (open_base_files): Add wide-int.h.
17434 (main): Add offset_int and widest_int typedefs.
17435 * gengtype-lex.l: Handle "^".
17436 (CXX_KEYWORD): Add "static".
17437 * gengtype-parse.c (require3): New.
17438 (require_template_declaration): Handle constant template arguments
17439 and nested templates.
17440 * gengtype-state.c: Don't include "double-int.h".
17441 * genpreds.c (write_one_predicate_function): Update comment.
17442 (write_tm_constrs_h): Add check for hval and lval use in
17443 CONST_WIDE_INT.
17444 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17445 (add_to_sequence): Likewise.
17446 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17447 and const_double_operand.
17448 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17449 interfaces.
17450 * gimple-fold.c (get_base_constructor): Likewise.
17451 (fold_array_ctor_reference): Likewise.
17452 (fold_nonarray_ctor_reference): Likewise.
17453 (fold_const_aggregate_ref_1): Likewise.
17454 (gimple_val_nonnegative_real_p): Likewise.
17455 (gimple_fold_indirect_ref): Likewise.
17456 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17457 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17458 (struct slsr_cand_d): Change index to be widest_int.
17459 (struct incr_info_d): Change incr to be widest_int.
17460 (alloc_cand_and_find_basis): Use wide-int interfaces.
17461 (slsr_process_phi): Likewise.
17462 (backtrace_base_for_ref): Likewise. Return a widest_int.
17463 (restructure_reference): Take a widest_int instead of a double_int.
17464 (slsr_process_ref): Use wide-int interfaces.
17465 (create_mul_ssa_cand): Likewise.
17466 (create_mul_imm_cand): Likewise.
17467 (create_add_ssa_cand): Likewise.
17468 (create_add_imm_cand): Take a widest_int instead of a double_int.
17469 (slsr_process_add): Use wide-int interfaces.
17470 (slsr_process_cast): Likewise.
17471 (slsr_process_copy): Likewise.
17472 (dump_candidate): Likewise.
17473 (dump_incr_vec): Likewise.
17474 (replace_ref): Likewise.
17475 (cand_increment): Likewise. Return a widest_int.
17476 (cand_abs_increment): Likewise.
17477 (replace_mult_candidate): Take a widest_int instead of a double_int.
17478 (replace_unconditional_candidate): Use wide-int interfaces.
17479 (incr_vec_index): Take a widest_int instead of a double_int.
17480 (create_add_on_incoming_edge): Likewise.
17481 (create_phi_basis): Use wide-int interfaces.
17482 (replace_conditional_candidate): Likewise.
17483 (record_increment): Take a widest_int instead of a double_int.
17484 (record_phi_increments): Use wide-int interfaces.
17485 (phi_incr_cost): Take a widest_int instead of a double_int.
17486 (lowest_cost_path): Likewise.
17487 (total_savings): Likewise.
17488 (analyze_increments): Use wide-int interfaces.
17489 (ncd_with_phi): Take a widest_int instead of a double_int.
17490 (ncd_of_cand_and_phis): Likewise.
17491 (nearest_common_dominator_for_cands): Likewise.
17492 (insert_initializers): Use wide-int interfaces.
17493 (all_phi_incrs_profitable): Likewise.
17494 (replace_one_candidate): Likewise.
17495 (replace_profitable_candidates): Likewise.
17496 * godump.c: Include wide-int-print.h.
17497 (go_output_typedef): Use wide-int interfaces.
17498 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17499 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17500 (build_loop_iteration_domains): Likewise.
17501 * hooks.h: Include wide-int.h rather than double-int.h.
17502 (hook_bool_dint_dint_uint_bool_true): Delete.
17503 (hook_bool_wint_wint_uint_bool_true): Declare.
17504 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17505 (hook_bool_wint_wint_uint_bool_true): New.
17506 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17507 interfaces.
17508 (ubsan_expand_si_overflow_mul_check): Likewise.
17509 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17510 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17511 (get_ancestor_addr_info): Likewise.
17512 (ipa_modify_call_arguments): Likewise.
17513 * loop-doloop.c (doloop_modify): Likewise.
17514 (doloop_optimize): Likewise.
17515 * loop-iv.c (iv_number_of_iterations): Likewise.
17516 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17517 (unroll_loop_constant_iterations): Likewise.
17518 (decide_unroll_runtime_iterations): Likewise.
17519 (unroll_loop_runtime_iterations): Likewise.
17520 (decide_peel_simple): Likewise.
17521 (decide_unroll_stupid): Likewise.
17522 * lto-streamer-in.c (streamer_read_wi): Add.
17523 (input_cfg): Use wide-int interfaces.
17524 (lto_input_tree_1): Likewise.
17525 * lto-streamer-out.c (streamer_write_wi): Add.
17526 (hash_tree): Use wide-int interfaces.
17527 (output_cfg): Likewise.
17528 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17529 (GTFILES): Add wide-int.h and signop.h.
17530 (TAGS): Look for .cc files too.
17531 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17532 * optabs.c (expand_subword_shift): Likewise.
17533 (expand_doubleword_shift): Likewise.
17534 (expand_absneg_bit): Likewise.
17535 (expand_copysign_absneg): Likewise.
17536 (expand_copysign_bit): Likewise.
17537 * postreload.c (reload_cse_simplify_set): Likewise.
17538 * predict.c (predict_iv_comparison): Likewise.
17539 * pretty-print.h: Include wide-int-print.h.
17540 (pp_wide_int) New.
17541 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17542 * print-tree.c: Include wide-int-print.h.
17543 (print_node_brief): Use wide-int interfaces.
17544 (print_node): Likewise.
17545 * read-rtl.c (validate_const_wide_int): New.
17546 (read_rtx_code): Add CONST_WIDE_INT case.
17547 * real.c: Include wide-int.h.
17548 (real_to_integer2): Delete.
17549 (real_to_integer): New function, returning a wide_int.
17550 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17551 (ten_to_ptwo): Update call to real_from_integer.
17552 (real_digit): Likewise.
17553 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17554 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17555 (REAL_VALUE_TO_INT): Delete.
17556 (real_to_integer): Declare a wide-int form.
17557 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17558 * recog.c (const_int_operand): Improve comment.
17559 (const_scalar_int_operand): New.
17560 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17561 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17562 (split_double): Likewise.
17563 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17564 (rtx_size): Likewise.
17565 (rtx_alloc_stat_v): New.
17566 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17567 (cwi_output_hex): New.
17568 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17569 (cwi_check_failed_bounds): New.
17570 * rtl.def (CONST_WIDE_INT): New.
17571 * rtl.h: Include <utility> and wide-int.h.
17572 (struct hwivec_def): New.
17573 (CWI_GET_NUM_ELEM): New.
17574 (CWI_PUT_NUM_ELEM): New.
17575 (struct rtx_def): Add num_elem and hwiv.
17576 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17577 (CASE_CONST_UNIQUE): Likewise.
17578 (CASE_CONST_ANY): Likewise.
17579 (CONST_SCALAR_INT_P): Likewise.
17580 (CONST_WIDE_INT_P): New.
17581 (CWI_ELT): New.
17582 (HWIVEC_CHECK): New.
17583 (cwi_check_failed_bounds): New.
17584 (CWI_ELT): New.
17585 (HWIVEC_CHECK): New.
17586 (CONST_WIDE_INT_VEC) New.
17587 (CONST_WIDE_INT_NUNITS) New.
17588 (CONST_WIDE_INT_ELT) New.
17589 (rtx_mode_t): New type.
17590 (wi::int_traits <rtx_mode_t>): New.
17591 (wi::shwi): New.
17592 (wi::min_value): New.
17593 (wi::max_value): New.
17594 (rtx_alloc_v) New.
17595 (const_wide_int_alloc): New.
17596 (immed_wide_int_const): New.
17597 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17598 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17599 * signop.h: New file.
17600 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17601 (simplify_const_unary_operation): Use wide-int interfaces.
17602 (simplify_binary_operation_1): Likewise.
17603 (simplify_const_binary_operation): Likewise.
17604 (simplify_const_relational_operation): Likewise.
17605 (simplify_immed_subreg): Likewise.
17606 * stmt.c (expand_case): Likewise.
17607 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17608 signop rather than a bool.
17609 * stor-layout.c (layout_type): Use wide-int interfaces.
17610 (initialize_sizetypes): Update calls to
17611 set_min_and_max_values_for_integral_type.
17612 (set_min_and_max_values_for_integral_type): Take a signop rather
17613 than a bool. Use wide-int interfaces.
17614 (fixup_signed_type): Update accordingly. Remove
17615 HOST_BITS_PER_DOUBLE_INT limit.
17616 (fixup_unsigned_type): Likewise.
17617 * system.h (STATIC_CONSTANT_P): New.
17618 (STATIC_ASSERT): New.
17619 * target.def (can_use_doloop_p): Take widest_ints rather than
17620 double_ints.
17621 * target.h: Include wide-int.h rather than double-int.h.
17622 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17623 than double_ints.
17624 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17625 rather than INT_CST_LT_UNSIGNED.
17626 (can_use_doloop_if_innermost): Take widest_ints rather than
17627 double_ints.
17628 * tree-affine.c: Include wide-int-print.h.
17629 (double_int_ext_for_comb): Delete.
17630 (wide_int_ext_for_comb): New.
17631 (aff_combination_zero): Use wide-int interfaces.
17632 (aff_combination_const): Take a widest_int instead of a double_int.
17633 (aff_combination_elt): Use wide-int interfaces.
17634 (aff_combination_scale): Take a widest_int instead of a double_int.
17635 (aff_combination_add_elt): Likewise.
17636 (aff_combination_add_cst): Likewise.
17637 (aff_combination_add): Use wide-int interfaces.
17638 (aff_combination_convert): Likewise.
17639 (tree_to_aff_combination): Likewise.
17640 (add_elt_to_tree): Take a widest_int instead of a double_int.
17641 (aff_combination_to_tree): Use wide-int interfaces.
17642 (aff_combination_remove_elt): Likewise.
17643 (aff_combination_add_product): Take a widest_int instead of
17644 a double_int.
17645 (aff_combination_mult): Use wide-int interfaces.
17646 (aff_combination_expand): Likewise.
17647 (double_int_constant_multiple_p): Delete.
17648 (wide_int_constant_multiple_p): New.
17649 (aff_combination_constant_multiple_p): Take a widest_int pointer
17650 instead of a double_int pointer.
17651 (print_aff): Use wide-int interfaces.
17652 (get_inner_reference_aff): Take a widest_int pointer
17653 instead of a double_int pointer.
17654 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17655 * tree-affine.h: Include wide-int.h.
17656 (struct aff_comb_elt): Change type of coef to widest_int.
17657 (struct affine_tree_combination): Change type of offset to widest_int.
17658 (double_int_ext_for_comb): Delete.
17659 (wide_int_ext_for_comb): New.
17660 (aff_combination_const): Use widest_int instead of double_int.
17661 (aff_combination_scale): Likewise.
17662 (aff_combination_add_elt): Likewise.
17663 (aff_combination_constant_multiple_p): Likewise.
17664 (get_inner_reference_aff): Likewise.
17665 (aff_comb_cannot_overlap_p): Likewise.
17666 (aff_combination_zero_p): Use wide-int interfaces.
17667 * tree.c: Include tree.h.
17668 (init_ttree): Use make_int_cst.
17669 (tree_code_size): Removed code for INTEGER_CST case.
17670 (tree_size): Add INTEGER_CST case.
17671 (make_node_stat): Update comment.
17672 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17673 (build_int_cst_type): Use wide-int interfaces.
17674 (double_int_to_tree): Likewise.
17675 (double_int_fits_to_tree_p): Delete.
17676 (force_fit_type_double): Delete.
17677 (force_fit_type): New.
17678 (int_cst_hash_hash): Use wide-int interfaces.
17679 (int_cst_hash_eq): Likewise.
17680 (build_int_cst_wide): Delete.
17681 (wide_int_to_tree): New.
17682 (cache_integer_cst): Use wide-int interfaces.
17683 (build_low_bits_mask): Likewise.
17684 (cst_and_fits_in_hwi): Likewise.
17685 (real_value_from_int_cst): Likewise.
17686 (make_int_cst_stat): New.
17687 (integer_zerop): Use wide_int interfaces.
17688 (integer_onep): Likewise.
17689 (integer_all_onesp): Likewise.
17690 (integer_pow2p): Likewise.
17691 (integer_nonzerop): Likewise.
17692 (tree_log2): Likewise.
17693 (tree_floor_log2): Likewise.
17694 (tree_ctz): Likewise.
17695 (int_size_in_bytes): Likewise.
17696 (mem_ref_offset): Return an offset_int rather than a double_int.
17697 (build_type_attribute_qual_variant): Use wide_int interfaces.
17698 (type_hash_eq): Likewise
17699 (tree_int_cst_equal): Likewise.
17700 (tree_int_cst_lt): Delete.
17701 (tree_int_cst_compare): Likewise.
17702 (tree_fits_shwi_p): Use wide_int interfaces.
17703 (tree_fits_uhwi_p): Likewise.
17704 (tree_int_cst_sign_bit): Likewise.
17705 (tree_int_cst_sgn): Likewise.
17706 (tree_int_cst_min_precision): Take a signop rather than a bool.
17707 (simple_cst_equal): Use wide_int interfaces.
17708 (compare_tree_int): Likewise.
17709 (iterative_hash_expr): Likewise.
17710 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17711 INT_CST_LT.
17712 (get_type_static_bounds): Use wide_int interfaces.
17713 (tree_int_cst_elt_check_failed): New.
17714 (build_common_tree_nodes): Reordered to set prec before filling in
17715 value.
17716 (int_cst_value): Check cst_and_fits_in_hwi.
17717 (widest_int_cst_value): Use wide_int interfaces.
17718 (upper_bound_in_type): Likewise.
17719 (lower_bound_in_type): Likewise.
17720 (num_ending_zeros): Likewise.
17721 (drop_tree_overflow): Likewise.
17722 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17723 (gen_conditions_for_pow_cst_base): Likewise.
17724 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17725 (group_case_labels_stmt): Use wide-int interfaces.
17726 (verify_gimple_assign_binary): Likewise.
17727 (print_loop): Likewise.
17728 * tree-chrec.c (tree_fold_binomial): Likewise.
17729 * tree-core.h (struct tree_base): Add int_length.
17730 (struct tree_int_cst): Change rep of value.
17731 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17732 (dr_may_alias_p): Likewise.
17733 (max_stmt_executions_tree): Likewise.
17734 * tree.def (INTEGER_CST): Update comment.
17735 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17736 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17737 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17738 (dequeue_and_dump): Use wide-int interfaces.
17739 * tree.h: Include wide-int.h.
17740 (NULL_TREE): Moved to earlier loc in file.
17741 (TREE_INT_CST_ELT_CHECK): New.
17742 (tree_int_cst_elt_check_failed): New.
17743 (TYPE_SIGN): New.
17744 (TREE_INT_CST): Delete.
17745 (TREE_INT_CST_LOW): Use wide-int interfaces.
17746 (TREE_INT_CST_HIGH): Delete.
17747 (TREE_INT_CST_NUNITS): New.
17748 (TREE_INT_CST_EXT_NUNITS): Likewise.
17749 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17750 (TREE_INT_CST_ELT): Likewise.
17751 (INT_CST_LT): Delete.
17752 (tree_int_cst_elt_check): New (two forms).
17753 (type_code_size): Update comment.
17754 (make_int_cst_stat, make_int_cst): New.
17755 (tree_to_double_int): Delete.
17756 (double_int_fits_to_tree_p): Delete.
17757 (force_fit_type_double): Delete.
17758 (build_int_cstu): Replace with out-of-line function.
17759 (build_int_cst_wide): Delete.
17760 (tree_int_cst_lt): Define inline.
17761 (tree_int_cst_le): New.
17762 (tree_int_cst_compare): Define inline.
17763 (tree_int_cst_min_precision): Take a signop rather than a bool.
17764 (wi::int_traits <const_tree>): New.
17765 (wi::int_traits <tree>): New.
17766 (wi::extended_tree): New.
17767 (wi::int_traits <wi::extended_tree>): New.
17768 (wi::to_widest): New.
17769 (wi::to_offset): New.
17770 (wi::fits_to_tree_p): New.
17771 (wi::min_value): New.
17772 (wi::max_value): New.
17773 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17774 (copy_tree_body_r): Likewise.
17775 * tree-object-size.c (compute_object_offset): Likewise.
17776 (addr_object_size): Likewise.
17777 * tree-predcom.c: Include wide-int-print.h.
17778 (struct dref_d): Change type of offset to widest_int.
17779 (dump_dref): Call wide-int printer.
17780 (aff_combination_dr_offset): Use wide-int interfaces.
17781 (determine_offset): Take a widest_int pointer rather than a
17782 double_int pointer.
17783 (split_data_refs_to_components): Use wide-int interfaces.
17784 (suitable_component_p): Likewise.
17785 (order_drefs): Likewise.
17786 (add_ref_to_chain): Likewise.
17787 (valid_initializer_p): Likewise.
17788 (determine_roots_comp): Likewise.
17789 * tree-pretty-print.c: Include wide-int-print.h.
17790 (dump_generic_node): Use wide-int interfaces.
17791 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17792 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17793 (move_fixed_address_to_symbol): Likewise.
17794 (move_hint_to_base): Likewise.
17795 (move_pointer_to_base): Likewise.
17796 (move_variant_to_index): Likewise.
17797 (most_expensive_mult_to_index): Likewise.
17798 (addr_to_parts): Likewise.
17799 (copy_ref_info): Likewise.
17800 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17801 (indirect_refs_may_alias_p): Likewise.
17802 (stmt_kills_ref_p_1): Likewise.
17803 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17804 * tree-ssa-ccp.c: Update comment at top of file. Include
17805 wide-int-print.h.
17806 (struct prop_value_d): Change type of mask to widest_int.
17807 (extend_mask): New function.
17808 (dump_lattice_value): Use wide-int interfaces.
17809 (get_default_value): Likewise.
17810 (set_constant_value): Likewise.
17811 (set_value_varying): Likewise.
17812 (valid_lattice_transition): Likewise.
17813 (set_lattice_value): Likewise.
17814 (value_to_double_int): Delete.
17815 (value_to_wide_int): New.
17816 (get_value_from_alignment): Use wide-int interfaces.
17817 (get_value_for_expr): Likewise.
17818 (do_dbg_cnt): Likewise.
17819 (ccp_finalize): Likewise.
17820 (ccp_lattice_meet): Likewise.
17821 (bit_value_unop_1): Use widest_ints rather than double_ints.
17822 (bit_value_binop_1): Likewise.
17823 (bit_value_unop): Use wide-int interfaces.
17824 (bit_value_binop): Likewise.
17825 (bit_value_assume_aligned): Likewise.
17826 (evaluate_stmt): Likewise.
17827 (ccp_fold_stmt): Likewise.
17828 (visit_cond_stmt): Likewise.
17829 (ccp_visit_stmt): Likewise.
17830 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17831 (constant_pointer_difference): Likewise.
17832 (associate_pointerplus): Likewise.
17833 (combine_conversions): Likewise.
17834 * tree-ssa-loop.h: Include wide-int.h.
17835 (struct tree_niter_desc): Change type of max to widest_int.
17836 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17837 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17838 (remove_redundant_iv_tests): Likewise.
17839 (canonicalize_loop_induction_variables): Likewise.
17840 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17841 (constant_multiple_of): Take a widest_int pointer instead of
17842 a double_int pointer.
17843 (get_computation_aff): Use wide-int interfaces.
17844 (ptr_difference_cost): Likewise.
17845 (difference_cost): Likewise.
17846 (get_loop_invariant_expr_id): Likewise.
17847 (get_computation_cost_at): Likewise.
17848 (iv_elimination_compare_lt): Likewise.
17849 (may_eliminate_iv): Likewise.
17850 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17851 instead of double_int.
17852 (max_loop_iterations): Likewise.
17853 (max_stmt_executions): Likewise.
17854 (estimated_stmt_executions): Likewise.
17855 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17856 (split_to_var_and_offset): Use wide-int interfaces.
17857 (determine_value_range): Likewise.
17858 (bound_difference_of_offsetted_base): Likewise.
17859 (bounds_add): Take a widest_int instead of a double_int.
17860 (number_of_iterations_ne_max): Use wide-int interfaces.
17861 (number_of_iterations_ne): Likewise.
17862 (number_of_iterations_lt_to_ne): Likewise.
17863 (assert_loop_rolls_lt): Likewise.
17864 (number_of_iterations_lt): Likewise.
17865 (number_of_iterations_le): Likewise.
17866 (number_of_iterations_cond): Likewise.
17867 (number_of_iterations_exit): Likewise.
17868 (finite_loop_p): Likewise.
17869 (derive_constant_upper_bound_assign): Likewise.
17870 (derive_constant_upper_bound): Return a widest_int.
17871 (derive_constant_upper_bound_ops): Likewise.
17872 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17873 (record_estimate): Take a widest_int rather than a double_int.
17874 (record_nonwrapping_iv): Use wide-int interfaces.
17875 (double_int_cmp): Delete.
17876 (wide_int_cmp): New.
17877 (bound_index): Take a widest_int rather than a double_int.
17878 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17879 (maybe_lower_iteration_bound): Likewise.
17880 (estimate_numbers_of_iterations_loop): Likewise.
17881 (estimated_loop_iterations): Take a widest_int pointer than than
17882 a double_int pointer.
17883 (estimated_loop_iterations_int): Use wide-int interfaces.
17884 (max_loop_iterations): Take a widest_int pointer than than
17885 a double_int pointer.
17886 (max_loop_iterations_int): Use wide-int interfaces.
17887 (max_stmt_executions): Take a widest_int pointer than than
17888 a double_int pointer.
17889 (estimated_stmt_executions): Likewise.
17890 (n_of_executions_at_most): Use wide-int interfaces.
17891 (scev_probably_wraps_p): Likewise.
17892 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17893 to real_to_integer.
17894 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17895 interfaces.
17896 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17897 double_ints. Adjust for trailing_wide_ints <3> representation.
17898 (set_nonzero_bits): Likewise.
17899 (get_range_info): Return wide_ints rather than double_ints.
17900 Adjust for trailing_wide_ints <3> representation.
17901 (get_nonzero_bits): Likewise.
17902 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17903 representation.
17904 * tree-ssanames.h (struct range_info_def): Replace min, max and
17905 nonzero_bits with a trailing_wide_ints <3>.
17906 (set_range_info): Use wide_int_refs rather than double_ints.
17907 (set_nonzero_bits): Likewise.
17908 (get_range_info): Return wide_ints rather than double_ints.
17909 (get_nonzero_bits): Likewise.
17910 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17911 * tree-ssa-pre.c (phi_translate_1): Likewise.
17912 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17913 (acceptable_pow_call): Likewise.
17914 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17915 interfaces.
17916 (vn_reference_fold_indirect): Likewise.
17917 (vn_reference_maybe_forwprop_address): Likewise.
17918 (valueize_refs_1): Likewise.
17919 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17920 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17921 tree_int_cst_lt and tree_int_cst_le.
17922 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17923 interfaces.
17924 (streamer_alloc_tree): Likewise.
17925 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17926 (streamer_write_tree_header): Likewise.
17927 (streamer_write_integer_cst): Likewise.
17928 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17929 (build_constructors): Likewise.
17930 (array_value_type): Likewise.
17931 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17932 (vect_check_gather): Likewise.
17933 * tree-vect-generic.c (build_replicated_const): Likewise.
17934 (expand_vector_divmod): Likewise.
17935 * tree-vect-loop.c (vect_transform_loop): Likewise.
17936 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17937 (vect_do_peeling_for_alignment): Likewise.
17938 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17939 * tree-vrp.c: Include wide-int.h.
17940 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17941 (extract_range_from_assert): Use wide-int interfaces.
17942 (vrp_int_const_binop): Likewise.
17943 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17944 double_int pointers.
17945 (ranges_from_anti_range): Use wide-int interfaces.
17946 (quad_int_cmp): Delete.
17947 (quad_int_pair_sort): Likewise.
17948 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17949 (extract_range_from_unary_expr_1): Likewise.
17950 (adjust_range_with_scev): Likewise.
17951 (masked_increment): Take and return wide_ints rather than double_ints.
17952 (register_edge_assert_for_2): Use wide-int interfaces.
17953 (check_array_ref): Likewise.
17954 (search_for_addr_array): Likewise.
17955 (maybe_set_nonzero_bits): Likewise.
17956 (union_ranges): Pass an integer of the correct type instead of
17957 using integer_one_node.
17958 (intersect_ranges): Likewise.
17959 (simplify_truth_ops_using_ranges): Likewise.
17960 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17961 (range_fits_type_p): Likewise.
17962 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17963 a bool.
17964 (simplify_conversion_using_ranges): Use wide-int interfaces.
17965 (simplify_float_conversion_using_ranges): Likewise.
17966 (vrp_finalize): Likewise.
17967 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17968 (gimple_stringops_transform): Likewise.
17969 * varasm.c (decode_addr_const): Likewise.
17970 (const_hash_1): Likewise.
17971 (const_rtx_hash_1): Likewise
17972 (output_constant): Likewise.
17973 (array_size_for_constructor): Likewise.
17974 (output_constructor_regular_field): Likewise.
17975 (output_constructor_bitfield): Likewise.
17976 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17977 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17978 GENERATOR_FILEs.
17979 * gencheck.c: Define BITS_PER_UNIT.
17980 * wide-int.cc: New.
17981 * wide-int.h: New.
17982 * wide-int-print.cc: New.
17983 * wide-int-print.h: New.
17984
17985 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17986
17987 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17988
17989 2014-05-06 Richard Biener <rguenther@suse.de>
17990
17991 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17992 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17993 (TODO_verify_all): Adjust.
17994 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17995 TODO_verify_stmts and TODO_verify_rtl_sharing.
17996 * bb-reorder.c: Likewise.
17997 * cfgexpand.c: Likewise.
17998 * cprop.c: Likewise.
17999 * cse.c: Likewise.
18000 * function.c: Likewise.
18001 * fwprop.c: Likewise.
18002 * gcse.c: Likewise.
18003 * gimple-ssa-isolate-paths.c: Likewise.
18004 * gimple-ssa-strength-reduction.c: Likewise.
18005 * ipa-split.c: Likewise.
18006 * loop-init.c: Likewise.
18007 * loop-unroll.c: Likewise.
18008 * lower-subreg.c: Likewise.
18009 * modulo-sched.c: Likewise.
18010 * postreload-gcse.c: Likewise.
18011 * predict.c: Likewise.
18012 * recog.c: Likewise.
18013 * sched-rgn.c: Likewise.
18014 * store-motion.c: Likewise.
18015 * tracer.c: Likewise.
18016 * trans-mem.c: Likewise.
18017 * tree-call-cdce.c: Likewise.
18018 * tree-cfg.c: Likewise.
18019 * tree-cfgcleanup.c: Likewise.
18020 * tree-complex.c: Likewise.
18021 * tree-eh.c: Likewise.
18022 * tree-emutls.c: Likewise.
18023 * tree-if-conv.c: Likewise.
18024 * tree-into-ssa.c: Likewise.
18025 * tree-loop-distribution.c: Likewise.
18026 * tree-object-size.c: Likewise.
18027 * tree-parloops.c: Likewise.
18028 * tree-pass.h: Likewise.
18029 * tree-sra.c: Likewise.
18030 * tree-ssa-ccp.c: Likewise.
18031 * tree-ssa-copy.c: Likewise.
18032 * tree-ssa-copyrename.c: Likewise.
18033 * tree-ssa-dce.c: Likewise.
18034 * tree-ssa-dom.c: Likewise.
18035 * tree-ssa-dse.c: Likewise.
18036 * tree-ssa-forwprop.c: Likewise.
18037 * tree-ssa-ifcombine.c: Likewise.
18038 * tree-ssa-loop-ch.c: Likewise.
18039 * tree-ssa-loop-ivcanon.c: Likewise.
18040 * tree-ssa-loop.c: Likewise.
18041 * tree-ssa-math-opts.c: Likewise.
18042 * tree-ssa-phiopt.c: Likewise.
18043 * tree-ssa-phiprop.c: Likewise.
18044 * tree-ssa-pre.c: Likewise.
18045 * tree-ssa-reassoc.c: Likewise.
18046 * tree-ssa-sink.c: Likewise.
18047 * tree-ssa-strlen.c: Likewise.
18048 * tree-ssa-tail-merge.c: Likewise.
18049 * tree-ssa-uncprop.c: Likewise.
18050 * tree-switch-conversion.c: Likewise.
18051 * tree-tailcall.c: Likewise.
18052 * tree-vect-generic.c: Likewise.
18053 * tree-vectorizer.c: Likewise.
18054 * tree-vrp.c: Likewise.
18055 * tsan.c: Likewise.
18056 * var-tracking.c: Likewise.
18057 * bt-load.c: Likewise.
18058 * cfgcleanup.c: Likewise.
18059 * combine-stack-adj.c: Likewise.
18060 * combine.c: Likewise.
18061 * compare-elim.c: Likewise.
18062 * config/epiphany/resolve-sw-modes.c: Likewise.
18063 * config/i386/i386.c: Likewise.
18064 * config/mips/mips.c: Likewise.
18065 * config/s390/s390.c: Likewise.
18066 * config/sh/sh_treg_combine.cc: Likewise.
18067 * config/sparc/sparc.c: Likewise.
18068 * dce.c: Likewise.
18069 * dse.c: Likewise.
18070 * final.c: Likewise.
18071 * ifcvt.c: Likewise.
18072 * mode-switching.c: Likewise.
18073 * passes.c: Likewise.
18074 * postreload.c: Likewise.
18075 * ree.c: Likewise.
18076 * reg-stack.c: Likewise.
18077 * regcprop.c: Likewise.
18078 * regrename.c: Likewise.
18079 * web.c: Likewise.
18080
18081 2014-05-06 Richard Biener <rguenther@suse.de>
18082
18083 PR middle-end/61070
18084 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18085 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18086
18087 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18088
18089 PR ipa/60965
18090 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18091
18092 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18093 Tom de Vries <tom@codesourcery.com>
18094
18095 * target.def (call_fusage_contains_non_callee_clobbers): New
18096 DEFHOOKPOD.
18097 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18098 Hooks to @menu.
18099 (@node Miscellaneous Register Hooks): New node.
18100 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18101 * doc/tm.texi: Regenerate.
18102
18103 2014-05-05 Marek Polacek <polacek@redhat.com>
18104
18105 PR driver/61065
18106 * opts.c (common_handle_option): Call error_at instead of warning_at.
18107
18108 2014-05-05 Richard Biener <rguenther@suse.de>
18109
18110 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18111 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18112 under the TODO_verify_il umbrella.
18113
18114 2014-05-05 Richard Biener <rguenther@suse.de>
18115
18116 * passes.c (execute_function_todo): Move TODO_verify_flow under
18117 the TODO_verify_ul umbrella.
18118
18119 2014-05-05 Richard Biener <rguenther@suse.de>
18120
18121 PR middle-end/61010
18122 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18123 X & CST away from a CST that is the mask of a mode.
18124
18125 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18126
18127 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18128 int argument to enum machine_mode.
18129 (picochip_class_max_nregs): Ditto.
18130 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18131 (picochip_class_max_nregs): Ditto.
18132
18133 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18134
18135 * target.def: Add new target hook.
18136 * doc/tm.texi: Regenerate.
18137 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18138 * targhooks.c (default_keep_leaf_when_profiled): New function.
18139
18140 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18141 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18142
18143 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18144
18145 PR tree-optimization/60363
18146 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18147 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18148 (update_destination_phis): New parameter.
18149 (create_edge_and_update_destination_phis): Ditto.
18150 (ssa_fix_duplicate_block_edges): Pass new arguments.
18151 (thread_single_edge): Ditto.
18152
18153 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18154
18155 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18156 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18157 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18158 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18159 Use RS6000_BTM_HARD_FLOAT.
18160 (BU_MISC_2): Likewise.
18161 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18162 RS6000_BTM_HARD_FLOAT.
18163 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18164 is explicitly used.
18165 (rs6000_invalid_builtin): Add hard floating builtin support.
18166 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18167 hard float builtins.
18168 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18169
18170 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18171
18172 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18173 Add missing function* argument.
18174
18175 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18176
18177 * lra-constraints.c (valid_address_p): Move earlier in file.
18178 Add a constraint argument to the address_info version.
18179 (satisfies_memory_constraint_p): New function.
18180 (satisfies_address_constraint_p): Likewise.
18181 (process_alt_operands, curr_insn_transform): Use them.
18182 (process_address): Pass the constraint to valid_address_p when
18183 checking address operands.
18184
18185 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18186
18187 * config/mips/mips.c (mips_isa_rev): New variable.
18188 (mips_set_architecture): Set it.
18189 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18190 from mips_isa_rev.
18191 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18192 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18193 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18194 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18195 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18196 conditions in terms of mips_isa_rev.
18197 (mips_isa_rev): Declare.
18198
18199 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18200
18201 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18202 (prob_unlikely, prob_likely): Make variables const.
18203
18204 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18205
18206 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18207
18208 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18209
18210 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18211
18212 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18213
18214 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18215 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18216 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18217 functions.
18218 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18219 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18220 sh_pass_in_reg_p.
18221 Replace usage of ROUND_REG with sh_round_reg.
18222 Use CEIL instead of ROUND_ADVANCE.
18223
18224 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18225
18226 PR target/61026
18227 * config/sh/sh.c: Include stdlib headers before everything else.
18228
18229 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18230
18231 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18232 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18233 (gimplify_adjust_omp_clauses): Simd region is never
18234 directly nested in combined parallel. Instead, for linear
18235 with copyin/copyout, if in combined for simd loop, make decl
18236 firstprivate/lastprivate on OMP_FOR.
18237 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18238 expand_omp_for_static_chunk): When setting endvar, also set
18239 fd->loop.v to the same value.
18240
18241 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18242
18243 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18244
18245 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18246
18247 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18248 expression.
18249
18250 2014-05-02 Marek Polacek <polacek@redhat.com>
18251
18252 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18253
18254 2014-05-02 Kito Cheng <kito@0xlab.org>
18255
18256 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18257 to a C expression marco.
18258 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18259 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18260 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18261 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18262 HONOR_REG_ALLOC_ORDER.
18263 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18264
18265 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18266
18267 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18268
18269 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18270
18271 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18272
18273 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18274
18275 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18276 (convert_scalar_cond_reduction): Likewise.
18277 (predicate_scalar_phi): Add recognition and transformation
18278 of simple conditioanl reduction to be vectorizable.
18279
18280 2014-05-01 Marek Polacek <polacek@redhat.com>
18281
18282 PR c/43245
18283 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18284
18285 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18286
18287 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18288 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18289 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18290 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18291 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18292 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18293 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18294 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18295
18296 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18297
18298 * config/arc/arc.opt (mlra): Move comment above option name
18299 to avoid mis-parsing as language options.
18300
18301 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18302
18303 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18304 * config/sol2.h: ... here.
18305 * config/sol2-10.h: Remove.
18306
18307 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18308 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18309 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18310 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18311 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18312 * config/sol2.h: ... here.
18313 (SECTION_NAME_FORMAT): Don't redefine.
18314 (STARTFILE_ARCH32_SPEC): Rename to ...
18315 (STARTFILE_ARCH_SPEC): ... this.
18316 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18317 * config/sparc/sol2.h: ... here.
18318 (SECTION_NAME_FORMAT): Don't undef.
18319 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18320 (SUBTARGET_EXTRA_SPECS): Remove.
18321 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18322
18323 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18324 (MD_STARTFILE_PREFIX): Remove.
18325 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18326 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18327 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18328 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18329 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18330 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18331 * config/i386/sol2.h: ... here.
18332 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18333 * config/i386/sol2-bi.h: Remove.
18334 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18335 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18336
18337 * config/i386/t-sol2-64: Rename to ...
18338 * config/i386/t-sol2: ... this.
18339 * config/sparc/t-sol2-64: Rename to ...
18340 * config/sparc/t-sol2: ... this.
18341
18342 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18343 sol2_tm_file_head, sol2_tm_file_tail.
18344 Include ${cpu_type}/sol2.h before sol2.h.
18345 Remove sol2-10.h.
18346 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18347 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18348 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18349 Reflect i386/t-sol2-64 renaming.
18350 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18351 Reflect sparc/t-sol2-64 renaming.
18352
18353 2014-04-30 Richard Biener <rguenther@suse.de>
18354
18355 * passes.c (execute_function_todo): Move TODO_verify_stmts
18356 and TODO_verify_ssa under the TODO_verify_il umbrella.
18357 * tree-ssa.h (verify_ssa): Adjust prototype.
18358 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18359 we should verify SSA operands.
18360 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18361 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18362 whether we should verify whether not throwing stmts have EH info.
18363 * graphite-scop-detection.c (create_sese_edges): Adjust.
18364 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18365 * tree-eh.c (lower_try_finally_switch): Do not add the
18366 default case label twice.
18367
18368 2014-04-30 Marek Polacek <polacek@redhat.com>
18369
18370 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18371 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18372 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18373 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18374
18375 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18376
18377 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18378 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18379 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18380 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18381 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18382 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18383 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18384 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18385
18386 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18387
18388 * tree-cfg.c (dump_function_to_file): Dump the return type of
18389 functions, in a line to itself before the function body, mimicking
18390 the layout of a C function.
18391
18392 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18393
18394 PR tree-optimization/60971
18395 * tree-tailcall.c (process_assignment): Reject conversions which
18396 reduce precision.
18397
18398 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18399
18400 * calls.c (initialize_argument_information): Always treat
18401 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18402 (expand_call): Likewise.
18403 (emit_library_call_calue_1): Likewise.
18404 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18405 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18406 code accordingly.
18407
18408 2014-04-29 Nick Clifton <nickc@redhat.com>
18409
18410 * config/msp430/msp430.md (umulsidi): Fix typo.
18411 (mulhisi3): Enable even inside interrupt handlers.
18412 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18413 bigger return address pushed in large mode.
18414
18415 2014-04-29 Nick Clifton <nickc@redhat.com>
18416
18417 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18418 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18419 available modes.
18420 * config/m32r/m32r.c (init_reg_tables): Likewise.
18421 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18422 enum to hold the modes.
18423
18424 2014-04-29 Richard Biener <rguenther@suse.de>
18425
18426 * dominance.c (free_dominance_info): Add overload with
18427 function parameter.
18428 (dom_info_state): Likewise.
18429 (dom_info_available_p): Likewise.
18430 * basic-block.h (free_dominance_info, dom_info_state,
18431 dom_info_available_p): Declare overloads.
18432 * passes.c (execute_function_todo): Verify that verifiers
18433 don't change dominator info state. Drop dominator info
18434 for IPA pass invocations.
18435 * cgraph.c (release_function_body): Restore asserts that
18436 dominator information is released.
18437
18438 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18439
18440 * doc/invoke.texi: Fix typo.
18441 * tree-vrp.c: Fix typos.
18442 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18443
18444 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18445
18446 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18447
18448 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18449
18450 * config/aarch64/aarch64-builtins.c
18451 (aarch64_types_storestruct_lane_qualifiers): New.
18452 (TYPES_STORESTRUCT_LANE): Likewise.
18453 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18454 (st3_lane): Likewise.
18455 (st4_lane): Likewise.
18456 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18457 (vec_store_lanesci_lane<mode>): Likewise.
18458 (vec_store_lanesxi_lane<mode>): Likewise.
18459 (aarch64_st2_lane<VQ:mode>): Likewise.
18460 (aarch64_st3_lane<VQ:mode>): Likewise.
18461 (aarch64_st4_lane<VQ:mode>): Likewise.
18462 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18463 * config/aarch64/arm_neon.h
18464 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18465 use new macro arguments.
18466 (__ST3_LANE_FUNC): Likewise.
18467 (__ST4_LANE_FUNC): Likewise.
18468 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18469 (V_THREE_ELEM): Likewise.
18470 (V_FOUR_ELEM): Likewise.
18471
18472 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18473
18474 * doc/gimple.texi: Replace the description of the now-defunct
18475 union gimple_statement_d with a diagram showing the
18476 gimple_statement_base class hierarchy and its relationships to
18477 the GSS_ and GIMPLE_ enums.
18478
18479 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18480
18481 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18482 * config/aarch64/aarch64.c
18483 (aarch64_cannot_change_mode_class): Weaken conditions.
18484 (aarch64_modes_tieable_p): New.
18485 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18486
18487 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18488
18489 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18490 (loadsync_<mode>): Change mode.
18491 (load_quadpti, store_quadpti): New.
18492 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18493 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18494
18495 2014-04-28 Martin Jambor <mjambor@suse.cz>
18496
18497 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18498 same alias type as the original statement.
18499 (subreplacement_assignment_data): New type.
18500 (handle_unscalarized_data_in_subtree): New type of parameter,
18501 generate new memory accesses with same alias type as the original
18502 statement.
18503 (load_assign_lhs_subreplacements): Likewise.
18504 (sra_modify_constructor_assign): Generate new memory accesses with
18505 same alias type as the original statement.
18506
18507 2014-04-28 Richard Biener <rguenther@suse.de>
18508
18509 * tree-pass.h (TODO_verify_il): Define.
18510 (TODO_verify_all): Complete properly.
18511 * passes.c (execute_function_todo): Move existing loop-closed
18512 SSA verification under TODO_verify_il.
18513 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18514 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18515 Fix tree sharing issue.
18516
18517 2014-04-28 Richard Biener <rguenther@suse.de>
18518
18519 PR middle-end/60092
18520 * builtins.def (DEF_C11_BUILTIN): Add.
18521 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18522 * coretypes.h (enum function_class): Add function_c11_misc.
18523 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18524 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18525 (call_may_clobber_ref_p_1): Likewise.
18526 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18527 (mark_all_reaching_defs_necessary_1): Likewise.
18528 (propagate_necessity): Likewise.
18529 (eliminate_unnecessary_stmts): Likewise.
18530 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18531
18532 2014-04-28 Richard Biener <rguenther@suse.de>
18533
18534 * tree-vrp.c (vrp_var_may_overflow): Remove.
18535 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18536 with overflow immediately bump to one before that value and
18537 let iteration figure out overflow status.
18538
18539 2014-04-28 Richard Biener <rguenther@suse.de>
18540
18541 * configure.ac: Do valgrind header checks unconditionally.
18542 Add --enable-valgrind-annotations.
18543 * system.h: Guard valgrind header inclusion with
18544 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18545 * alloc-pool.c (pool_alloc, pool_free): Use
18546 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18547 to guard possibly dead code.
18548 * config.in: Regenerated.
18549 * configure: Likewise.
18550
18551 2014-04-28 Jeff Law <law@redhat.com>
18552
18553 PR tree-optimization/60902
18554 * tree-ssa-threadedge.c
18555 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18556 over real defs when invalidating outputs from statements that do not
18557 produce useful outputs for threading.
18558
18559 2014-04-28 Richard Biener <rguenther@suse.de>
18560
18561 PR tree-optimization/60979
18562 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18563 SCOPs that end in a block with a successor with abnormal
18564 predecessors.
18565
18566 2014-04-28 Richard Biener <rguenther@suse.de>
18567
18568 * tree-pass.h (execute_pass_list): Adjust prototype.
18569 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18570 (do_per_function): Change callback signature, push all actual
18571 work to the callbals.
18572 (do_per_function_toporder): Likewise.
18573 (execute_function_dump): Adjust.
18574 (execute_function_todo): Likewise.
18575 (clear_last_verified): Likewise.
18576 (verify_curr_properties): Likewise.
18577 (update_properties_after_pass): Likewise.
18578 (execute_pass_list_1): Split out from ...
18579 (execute_pass_list): ... here. Adjust.
18580 (execute_ipa_pass_list): Likewise.
18581 * cgraphunit.c (cgraph_add_new_function): Adjust.
18582 (analyze_function): Likewise.
18583 (expand_function): Likewise.
18584 * cgraph.c (release_function_body): Free dominance info
18585 here instead of asserting it was magically freed elsewhere.
18586
18587 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18588
18589 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18590 * configure: Regenerate.
18591 * config/sparc/sparc.opt (muser-mode): New option.
18592 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18593 for LEON3.
18594 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18595 * doc/invoke.texi (SPARC options): Document -muser-mode.
18596
18597 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18598
18599 * cselib.c (find_slot_memmode): Delete.
18600 (cselib_hasher): Change compare_type to a struct.
18601 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18602 constants.
18603 (preserve_constants_and_equivs): Adjust for new compare_type.
18604 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18605 (wrap_constant): Delete.
18606 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18607
18608 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18609
18610 * doc/install.texi (Building with profile feedback): Remove
18611 outdated sentence.
18612
18613 2014-04-26 Tom de Vries <tom@codesourcery.com>
18614
18615 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18616 array accesses.
18617
18618 2014-04-25 Cary Coutant <ccoutant@google.com>
18619
18620 PR debug/60929
18621 * dwarf2out.c (should_move_die_to_comdat): A type definition
18622 can contain a subprogram definition, but don't move it to a
18623 comdat unit.
18624 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18625 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18626 from original DIE.
18627 (clone_tree_hash): Rename to...
18628 (clone_tree_partial): ...this; change callers. Copy
18629 DW_TAG_subprogram DIEs as declarations.
18630 (copy_decls_walk): Don't copy children of a declaration into a
18631 type unit.
18632
18633 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18634
18635 PR target/60969
18636 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18637 alternative 12.
18638
18639 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18640
18641 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18642 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18643 reg for long_call.
18644 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18645 restriction.
18646
18647 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18648
18649 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18650
18651 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18652
18653 PR tree-optimization/60930
18654 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18655 creating a multiply candidate by folding two constant
18656 multiplicands when the result overflows.
18657
18658 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18659
18660 PR tree-optimization/60960
18661 * tree-vect-generic.c (expand_vector_operation): Only call
18662 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18663
18664 2014-04-25 Tom de Vries <tom@codesourcery.com>
18665
18666 * expr.c (clobber_reg_mode): New function.
18667 * expr.h (clobber_reg): New function.
18668
18669 2014-04-25 Tom de Vries <tom@codesourcery.com>
18670
18671 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18672 clobbers.
18673
18674 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18675 Tom de Vries <tom@codesourcery.com>
18676
18677 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18678 handle.
18679 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18680 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18681 new argument to find_all_hard_reg_sets call.
18682
18683 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18684
18685 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18686 Use HOST_WIDE_INT_C for mask literal.
18687 (aarch_rev16_shleft_mask_imm_p): Likewise.
18688
18689 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18690
18691 PR target/60941
18692 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18693
18694 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18695
18696 PR preprocessor/56540
18697 * config/i386/i386-c.c (ix86_target_macros): Define
18698 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18699
18700 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18701
18702 * configure.ac (tga_func): Remove.
18703 (LIB_TLS_SPEC): Remove.
18704 * configure: Regenerate.
18705 * config.in: Regenerate.
18706 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18707
18708 2014-04-25 Richard Biener <rguenther@suse.de>
18709
18710 PR ipa/60912
18711 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18712 call stmt use/clobber sets during stmt walk instead of
18713 walking the possibly incomplete set of caller edges.
18714
18715 2014-04-25 Richard Biener <rguenther@suse.de>
18716
18717 PR ipa/60911
18718 * passes.c (apply_ipa_transforms): Inline into only caller ...
18719 (execute_one_pass): ... here. Properly bring in function
18720 bodies for nodes we want to apply IPA transforms to.
18721
18722 2014-04-24 Cong Hou <congh@google.com>
18723
18724 PR tree-optimization/60896
18725 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18726 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18727 (vect_mark_pattern_stmts): Set the def type of all statements in
18728 PATTERN_DEF_SEQ as vect_internal_def.
18729
18730 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18731
18732 * doc/extend.texi (PowerPC Built-in Functions): Document new
18733 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18734 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18735
18736 * config/rs6000/predicates.md (const_0_to_3_operand): New
18737 predicate to match 0..3 integer constants.
18738
18739 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18740 to support adding miscellaneous builtin functions.
18741 (BU_DFP_MISC_2): Likewise.
18742 (BU_P7_MISC_1): Likewise.
18743 (BU_P7_MISC_2): Likewise.
18744 (BU_P8V_MISC_3): Likewise.
18745 (BU_MISC_1): Likewise.
18746 (BU_MISC_2): Likewise.
18747 (DIVWE): Add extended divide builtin functions.
18748 (DIVWEO): Likewise.
18749 (DIVWEU): Likewise.
18750 (DIVWEUO): Likewise.
18751 (DIVDE): Likewise.
18752 (DIVDEO): Likewise.
18753 (DIVDEU): Likewise.
18754 (DIVDEUO): Likewise.
18755 (DXEX): Add decimal floating-point builtin functions.
18756 (DXEXQ): Likewise.
18757 (DDEDPD): Likewise.
18758 (DDEDPDQ): Likewise.
18759 (DENBCD): Likewise.
18760 (DENBCDQ): Likewise.
18761 (DIEX): Likewise.
18762 (DIEXQ): Likewise.
18763 (DSCLI): Likewise.
18764 (DSCLIQ): Likewise.
18765 (DSCRI): Likewise.
18766 (DSCRIQ): Likewise.
18767 (CDTBCD): Add new BCD builtin functions.
18768 (CBCDTD): Likewise.
18769 (ADDG6S): Likewise.
18770 (BCDADD): Likewise.
18771 (BCDADD_LT): Likewise.
18772 (BCDADD_EQ): Likewise.
18773 (BCDADD_GT): Likewise.
18774 (BCDADD_OV): Likewise.
18775 (BCDSUB): Likewise.
18776 (BCDSUB_LT): Likewise.
18777 (BCDSUB_EQ): Likewise.
18778 (BCDSUB_GT): Likewise.
18779 (BCDSUB_OV): Likewise.
18780 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18781 (UNPACK_TD): Likewise.
18782 (PACK_TF): Likewise.
18783 (UNPACK_TF): Likewise.
18784 (UNPACK_TF_0): Likewise.
18785 (UNPACK_TF_1): Likewise.
18786 (PACK_V1TI): Likewise.
18787 (UNPACK_V1TI): Likewise.
18788
18789 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18790 support for decimal floating point builtin functions.
18791 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18792 functions that take constant arguments.
18793 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18794 (rs6000_init_builtins): Setup long double, _Decimal64, and
18795 _Decimal128 types for new builtin functions.
18796 (builtin_function_type): Set the unsigned flags appropriately for
18797 the new builtin functions.
18798 (rs6000_opt_masks): Add support for decimal floating point builtin
18799 functions.
18800
18801 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18802 floating point builtin functions.
18803 (RS6000_BTM_COMMON): Likewise.
18804 (RS6000_BTI_long_double): Likewise.
18805 (RS6000_BTI_dfloat64): Likewise.
18806 (RS6000_BTI_dfloat128): Likewise.
18807 (long_double_type_internal_node): Likewise.
18808 (dfloat64_type_internal_node): Likewise.
18809 (dfloat128_type_internal_node): Likewise.
18810
18811 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18812 2.07 bcd arithmetic instructions.
18813 (UNSPEC_BCDSUB): Likewise.
18814 (UNSPEC_BCD_OVERFLOW): Likewise.
18815 (UNSPEC_BCD_ADD_SUB): Likewise.
18816 (bcd_add_sub): Likewise.
18817 (BCD_TEST): Likewise.
18818 (bcd<bcd_add_sub>): Likewise.
18819 (bcd<bcd_add_sub>_test): Likewise.
18820 (bcd<bcd_add_sub>_test2): Likewise.
18821 (bcd<bcd_add_sub>_<code>): Likewise.
18822 (peephole2 for combined bcd ops): Likewise.
18823
18824 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18825 decimal floating point builtin functions.
18826 (UNSPEC_DENBCD): Likewise.
18827 (UNSPEC_DXEX): Likewise.
18828 (UNSPEC_DIEX): Likewise.
18829 (UNSPEC_DSCLI): Likewise.
18830 (UNSPEC_DSCRI): Likewise.
18831 (D64_D128): Likewise.
18832 (dfp_suffix): Likewise.
18833 (dfp_ddedpd_<mode>): Likewise.
18834 (dfp_denbcd_<mode>): Likewise.
18835 (dfp_dxex_<mode>): Likewise.
18836 (dfp_diex_<mode>): Likewise.
18837 (dfp_dscli_<mode>): Likewise.
18838 (dfp_dscri_<mode>): Likewise.
18839
18840 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18841 builtin functions.
18842 (UNSPEC_CDTBCD): Likewise.
18843 (UNSPEC_CBCDTD): Likewise.
18844 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18845 (UNSPEC_DIVEO): Likewise.
18846 (UNSPEC_DIVEU): Likewise.
18847 (UNSPEC_DIVEUO): Likewise.
18848 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18849 pack/unpack 128-bit types.
18850 (UNSPEC_PACK_128BIT): Likewise.
18851 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18852 (udiv<mode>3): Use idiv_ldiv mode attribute.
18853 (div<mode>3): Likewise.
18854 (addg6s): Add new BCD builtin functions.
18855 (cdtbcd): Likewise.
18856 (cbcdtd): Likewise.
18857 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18858 (div_extend): Likewise.
18859 (div<div_extend>_<mode>"): Likewise.
18860 (FP128_64): Add support for new builtin functions to pack/unpack
18861 128-bit types.
18862 (unpack<mode>): Likewise.
18863 (unpacktf_0): Likewise.
18864 (unpacktf_1): Likewise.
18865 (unpack<mode>_dm): Likewise.
18866 (unpack<mode>_nodm): Likewise.
18867 (pack<mode>): Likewise.
18868 (unpackv1ti): Likewise.
18869 (packv1ti): Likewise.
18870
18871 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18872
18873 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18874 is disabled.
18875
18876 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18877
18878 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18879 * gimplify.c (omp_is_private): Change last argument's type to int.
18880 Only diagnose lastprivate if the simd argument is 1, only diagnose
18881 linear if the simd argument is 2.
18882 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18883 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18884 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18885 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18886 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18887 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18888 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18889 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18890 * tree-nested.c (convert_nonlocal_omp_clauses,
18891 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18892
18893 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18894
18895 PR target/60822
18896 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18897 operand 1.
18898
18899 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18900
18901 * flag-types.h (enum ivar_visibility): Add.
18902
18903 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18904
18905 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18906 function * argument.
18907
18908 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18909
18910 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18911
18912 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18913 Tom de Vries <tom@codesourcery.com>
18914
18915 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18916 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18917 reg-note.
18918 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18919 * emit-rtl.c (try_split): Same.
18920
18921 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18922 Tom de Vries <tom@codesourcery.com>
18923
18924 * common.opt (fuse-caller-save): New option.
18925
18926 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18927
18928 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18929 elements for big-endian.
18930
18931 2014-04-24 Richard Biener <rguenther@suse.de>
18932
18933 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18934 during TER and instead use the sepops interface for expanding
18935 non-GIMPLE_SINGLE_RHS.
18936
18937 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18938
18939 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18940 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18941
18942 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18943
18944 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18945 assembler 64-bit option.
18946 * configure: Regenerate.
18947
18948 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18949
18950 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18951 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18952 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18953 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18954 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18955
18956 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18957
18958 * config/aarch64/aarch64-builtins.c
18959 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18960 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18961 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18962 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18963 builtins.
18964 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18965 (Vrevsuff): New mode attribute.
18966
18967 2014-04-24 Terry Guo <terry.guo@arm.com>
18968
18969 * config/arm/arm.h (machine_function): Define variable
18970 after_arm_reorg here.
18971 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18972 (arm_split_constant): Update the way to access variable
18973 after_arm_reorg.
18974 (arm_reorg): Ditto.
18975 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18976
18977 2014-04-23 Tom de Vries <tom@codesourcery.com>
18978
18979 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18980
18981 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18982
18983 * is-a.h: Update comments to reflect the following changes to the
18984 "pointerness" of the API, making the template parameter match the
18985 return type, allowing use of is-a.h with typedefs of pointers.
18986 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18987 that the return type matches the parameter to the is_a_helper.
18988 (as_a): Likewise.
18989 (dyn_cast): Likewise.
18990
18991 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18992 pointer from the is-a.h API.
18993
18994 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18995 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18996 is-a.h API.
18997 (is_a_helper <varpool_node>::test): Likewise, convert to...
18998 (is_a_helper <varpool_node *>::test): ...this.
18999
19000 (varpool_first_variable): Update for removal of implicit pointer
19001 from the is-a.h API.
19002 (varpool_next_variable): Likewise.
19003 (varpool_first_static_initializer): Likewise.
19004 (varpool_next_static_initializer): Likewise.
19005 (varpool_first_defined_variable): Likewise.
19006 (varpool_next_defined_variable): Likewise.
19007 (cgraph_first_defined_function): Likewise.
19008 (cgraph_next_defined_function): Likewise.
19009 (cgraph_first_function): Likewise.
19010 (cgraph_next_function): Likewise.
19011 (cgraph_first_function_with_gimple_body): Likewise.
19012 (cgraph_next_function_with_gimple_body): Likewise.
19013 (cgraph_alias_target): Likewise.
19014 (varpool_alias_target): Likewise.
19015 (cgraph_function_or_thunk_node): Likewise.
19016 (varpool_variable_node): Likewise.
19017 (symtab_real_symbol_p): Likewise.
19018 * cgraphunit.c (referred_to_p): Likewise.
19019 (analyze_functions): Likewise.
19020 (handle_alias_pairs): Likewise.
19021 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19022 * gimple-ssa.h (gimple_vuse_op): Likewise.
19023 (gimple_vdef_op): Likewise.
19024 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19025 * gimple.c (gimple_build_asm_1): Likewise.
19026 (gimple_build_try): Likewise.
19027 (gimple_build_resx): Likewise.
19028 (gimple_build_eh_dispatch): Likewise.
19029 (gimple_build_omp_for): Likewise.
19030 (gimple_omp_for_set_clauses): Likewise.
19031
19032 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19033 (is_a_helper <gimple_statement_asm *>::test): ...this.
19034 (is_a_helper <gimple_statement_bind>::test): Convert to...
19035 (is_a_helper <gimple_statement_bind *>::test): ...this.
19036 (is_a_helper <gimple_statement_call>::test): Convert to...
19037 (is_a_helper <gimple_statement_call *>::test): ...this.
19038 (is_a_helper <gimple_statement_catch>::test): Convert to...
19039 (is_a_helper <gimple_statement_catch *>::test): ...this.
19040 (is_a_helper <gimple_statement_resx>::test): Convert to...
19041 (is_a_helper <gimple_statement_resx *>::test): ...this.
19042 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19043 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19044 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19045 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19046 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19047 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19048 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19049 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19050 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19051 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19052 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19053 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19054 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19055 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19056 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19057 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19058 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19059 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19060 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19061 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19062 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19063 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19064 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19065 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19066 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19067 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19068 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19069 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19070 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19071 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19072 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19073 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19074 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19075 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19076 (is_a_helper <gimple_statement_phi>::test): Convert to...
19077 (is_a_helper <gimple_statement_phi *>::test): ...this.
19078 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19079 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19080 (is_a_helper <gimple_statement_try>::test): Convert to...
19081 (is_a_helper <gimple_statement_try *>::test): ...this.
19082 (is_a_helper <gimple_statement_wce>::test): Convert to...
19083 (is_a_helper <gimple_statement_wce *>::test): ...this.
19084 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19085 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19086 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19087 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19088 (is_a_helper <const gimple_statement_call>::test): Convert to...
19089 (is_a_helper <const gimple_statement_call *>::test): ...this.
19090 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19091 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19092 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19093 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19094 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19095 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19096 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19097 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19098 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19099 Convert to...
19100 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19101 ...this.
19102 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19103 Convert to...
19104 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19105 ...this.
19106 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19107 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19108 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19109 to...
19110 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19111 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19112 to...
19113 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19114 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19115 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19116 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19117 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19118 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19119 to...
19120 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19121 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19122 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19123 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19124 to...
19125 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19126 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19127 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19128 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19129 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19130 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19131 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19132 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19133 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19134 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19135 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19136 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19137 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19138 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19139 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19140 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19141 to...
19142 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19143 ...this.
19144 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19145 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19146
19147 (gimple_use_ops): Update for removal of implicit pointer from the
19148 is-a.h API.
19149 (gimple_set_use_ops): Likewise.
19150 (gimple_vuse): Likewise.
19151 (gimple_vdef): Likewise.
19152 (gimple_vuse_ptr): Likewise.
19153 (gimple_vdef_ptr): Likewise.
19154 (gimple_set_vuse): Likewise.
19155 (gimple_set_vdef): Likewise.
19156 (gimple_omp_return_set_lhs): Likewise.
19157 (gimple_omp_return_lhs): Likewise.
19158 (gimple_omp_return_lhs_ptr): Likewise.
19159 (gimple_call_fntype): Likewise.
19160 (gimple_call_set_fntype): Likewise.
19161 (gimple_call_set_internal_fn): Likewise.
19162 (gimple_call_use_set): Likewise.
19163 (gimple_call_clobber_set): Likewise.
19164 (gimple_bind_vars): Likewise.
19165 (gimple_bind_set_vars): Likewise.
19166 (gimple_bind_body_ptr): Likewise.
19167 (gimple_bind_set_body): Likewise.
19168 (gimple_bind_add_stmt): Likewise.
19169 (gimple_bind_block): Likewise.
19170 (gimple_bind_set_block): Likewise.
19171 (gimple_asm_ninputs): Likewise.
19172 (gimple_asm_noutputs): Likewise.
19173 (gimple_asm_nclobbers): Likewise.
19174 (gimple_asm_nlabels): Likewise.
19175 (gimple_asm_input_op): Likewise.
19176 (gimple_asm_input_op_ptr): Likewise.
19177 (gimple_asm_output_op): Likewise.
19178 (gimple_asm_output_op_ptr): Likewise.
19179 (gimple_asm_set_output_op): Likewise.
19180 (gimple_asm_clobber_op): Likewise.
19181 (gimple_asm_set_clobber_op): Likewise.
19182 (gimple_asm_label_op): Likewise.
19183 (gimple_asm_set_label_op): Likewise.
19184 (gimple_asm_string): Likewise.
19185 (gimple_catch_types): Likewise.
19186 (gimple_catch_types_ptr): Likewise.
19187 (gimple_catch_handler_ptr): Likewise.
19188 (gimple_catch_set_types): Likewise.
19189 (gimple_catch_set_handler): Likewise.
19190 (gimple_eh_filter_types): Likewise.
19191 (gimple_eh_filter_types_ptr): Likewise.
19192 (gimple_eh_filter_failure_ptr): Likewise.
19193 (gimple_eh_filter_set_types): Likewise.
19194 (gimple_eh_filter_set_failure): Likewise.
19195 (gimple_eh_must_not_throw_fndecl): Likewise.
19196 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19197 (gimple_eh_else_n_body_ptr): Likewise.
19198 (gimple_eh_else_e_body_ptr): Likewise.
19199 (gimple_eh_else_set_n_body): Likewise.
19200 (gimple_eh_else_set_e_body): Likewise.
19201 (gimple_try_eval_ptr): Likewise.
19202 (gimple_try_cleanup_ptr): Likewise.
19203 (gimple_try_set_eval): Likewise.
19204 (gimple_try_set_cleanup): Likewise.
19205 (gimple_wce_cleanup_ptr): Likewise.
19206 (gimple_wce_set_cleanup): Likewise.
19207 (gimple_phi_capacity): Likewise.
19208 (gimple_phi_num_args): Likewise.
19209 (gimple_phi_result): Likewise.
19210 (gimple_phi_result_ptr): Likewise.
19211 (gimple_phi_set_result): Likewise.
19212 (gimple_phi_arg): Likewise.
19213 (gimple_phi_set_arg): Likewise.
19214 (gimple_resx_region): Likewise.
19215 (gimple_resx_set_region): Likewise.
19216 (gimple_eh_dispatch_region): Likewise.
19217 (gimple_eh_dispatch_set_region): Likewise.
19218 (gimple_omp_critical_name): Likewise.
19219 (gimple_omp_critical_name_ptr): Likewise.
19220 (gimple_omp_critical_set_name): Likewise.
19221 (gimple_omp_for_clauses): Likewise.
19222 (gimple_omp_for_clauses_ptr): Likewise.
19223 (gimple_omp_for_set_clauses): Likewise.
19224 (gimple_omp_for_collapse): Likewise.
19225 (gimple_omp_for_index): Likewise.
19226 (gimple_omp_for_index_ptr): Likewise.
19227 (gimple_omp_for_set_index): Likewise.
19228 (gimple_omp_for_initial): Likewise.
19229 (gimple_omp_for_initial_ptr): Likewise.
19230 (gimple_omp_for_set_initial): Likewise.
19231 (gimple_omp_for_final): Likewise.
19232 (gimple_omp_for_final_ptr): Likewise.
19233 (gimple_omp_for_set_final): Likewise.
19234 (gimple_omp_for_incr): Likewise.
19235 (gimple_omp_for_incr_ptr): Likewise.
19236 (gimple_omp_for_set_incr): Likewise.
19237 (gimple_omp_for_pre_body_ptr): Likewise.
19238 (gimple_omp_for_set_pre_body): Likewise.
19239 (gimple_omp_parallel_clauses): Likewise.
19240 (gimple_omp_parallel_clauses_ptr): Likewise.
19241 (gimple_omp_parallel_set_clauses): Likewise.
19242 (gimple_omp_parallel_child_fn): Likewise.
19243 (gimple_omp_parallel_child_fn_ptr): Likewise.
19244 (gimple_omp_parallel_set_child_fn): Likewise.
19245 (gimple_omp_parallel_data_arg): Likewise.
19246 (gimple_omp_parallel_data_arg_ptr): Likewise.
19247 (gimple_omp_parallel_set_data_arg): Likewise.
19248 (gimple_omp_task_clauses): Likewise.
19249 (gimple_omp_task_clauses_ptr): Likewise.
19250 (gimple_omp_task_set_clauses): Likewise.
19251 (gimple_omp_task_child_fn): Likewise.
19252 (gimple_omp_task_child_fn_ptr): Likewise.
19253 (gimple_omp_task_set_child_fn): Likewise.
19254 (gimple_omp_task_data_arg): Likewise.
19255 (gimple_omp_task_data_arg_ptr): Likewise.
19256 (gimple_omp_task_set_data_arg): Likewise.
19257 (gimple_omp_taskreg_clauses): Likewise.
19258 (gimple_omp_taskreg_clauses_ptr): Likewise.
19259 (gimple_omp_taskreg_set_clauses): Likewise.
19260 (gimple_omp_taskreg_child_fn): Likewise.
19261 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19262 (gimple_omp_taskreg_set_child_fn): Likewise.
19263 (gimple_omp_taskreg_data_arg): Likewise.
19264 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19265 (gimple_omp_taskreg_set_data_arg): Likewise.
19266 (gimple_omp_task_copy_fn): Likewise.
19267 (gimple_omp_task_copy_fn_ptr): Likewise.
19268 (gimple_omp_task_set_copy_fn): Likewise.
19269 (gimple_omp_task_arg_size): Likewise.
19270 (gimple_omp_task_arg_size_ptr): Likewise.
19271 (gimple_omp_task_set_arg_size): Likewise.
19272 (gimple_omp_task_arg_align): Likewise.
19273 (gimple_omp_task_arg_align_ptr): Likewise.
19274 (gimple_omp_task_set_arg_align): Likewise.
19275 (gimple_omp_single_clauses): Likewise.
19276 (gimple_omp_single_clauses_ptr): Likewise.
19277 (gimple_omp_single_set_clauses): Likewise.
19278 (gimple_omp_target_clauses): Likewise.
19279 (gimple_omp_target_clauses_ptr): Likewise.
19280 (gimple_omp_target_set_clauses): Likewise.
19281 (gimple_omp_target_child_fn): Likewise.
19282 (gimple_omp_target_child_fn_ptr): Likewise.
19283 (gimple_omp_target_set_child_fn): Likewise.
19284 (gimple_omp_target_data_arg): Likewise.
19285 (gimple_omp_target_data_arg_ptr): Likewise.
19286 (gimple_omp_target_set_data_arg): Likewise.
19287 (gimple_omp_teams_clauses): Likewise.
19288 (gimple_omp_teams_clauses_ptr): Likewise.
19289 (gimple_omp_teams_set_clauses): Likewise.
19290 (gimple_omp_sections_clauses): Likewise.
19291 (gimple_omp_sections_clauses_ptr): Likewise.
19292 (gimple_omp_sections_set_clauses): Likewise.
19293 (gimple_omp_sections_control): Likewise.
19294 (gimple_omp_sections_control_ptr): Likewise.
19295 (gimple_omp_sections_set_control): Likewise.
19296 (gimple_omp_for_set_cond): Likewise.
19297 (gimple_omp_for_cond): Likewise.
19298 (gimple_omp_atomic_store_set_val): Likewise.
19299 (gimple_omp_atomic_store_val): Likewise.
19300 (gimple_omp_atomic_store_val_ptr): Likewise.
19301 (gimple_omp_atomic_load_set_lhs): Likewise.
19302 (gimple_omp_atomic_load_lhs): Likewise.
19303 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19304 (gimple_omp_atomic_load_set_rhs): Likewise.
19305 (gimple_omp_atomic_load_rhs): Likewise.
19306 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19307 (gimple_omp_continue_control_def): Likewise.
19308 (gimple_omp_continue_control_def_ptr): Likewise.
19309 (gimple_omp_continue_set_control_def): Likewise.
19310 (gimple_omp_continue_control_use): Likewise.
19311 (gimple_omp_continue_control_use_ptr): Likewise.
19312 (gimple_omp_continue_set_control_use): Likewise.
19313 (gimple_transaction_body_ptr): Likewise.
19314 (gimple_transaction_label): Likewise.
19315 (gimple_transaction_label_ptr): Likewise.
19316 (gimple_transaction_set_body): Likewise.
19317 (gimple_transaction_set_label): Likewise.
19318
19319 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19320 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19321 * ipa-ref.c (ipa_record_reference): Likewise.
19322 * ipa-reference.c (analyze_function): Likewise.
19323 (ipa_reference_write_optimization_summary): Likewise.
19324 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19325 (address_taken_from_non_vtable_p): Likewise.
19326 (comdat_can_be_unshared_p_1): Likewise.
19327 * lto-cgraph.c (lto_output_ref): Likewise.
19328 (add_references): Likewise.
19329 (compute_ltrans_boundary): Likewise.
19330 (output_symtab): Likewise.
19331 (input_ref): Likewise.
19332 (input_cgraph_1): Likewise.
19333 (output_cgraph_opt_summary): Likewise.
19334 * lto-streamer-out.c (lto_output): Likewise.
19335 (output_symbol_p): Likewise.
19336 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19337 (lsei_start_function_in_partition): Likewise.
19338 (lsei_next_variable_in_partition): Likewise.
19339 (lsei_start_variable_in_partition): Likewise.
19340 * symtab.c (insert_to_assembler_name_hash): Likewise.
19341 (unlink_from_assembler_name_hash): Likewise.
19342 (symtab_unregister_node): Likewise.
19343 (symtab_remove_node): Likewise.
19344 (dump_symtab_node): Likewise.
19345 (verify_symtab_base): Likewise.
19346 (verify_symtab_node): Likewise.
19347 (symtab_make_decl_local): Likewise.
19348 (symtab_alias_ultimate_target): Likewise.
19349 (symtab_resolve_alias): Likewise.
19350 (symtab_get_symbol_partitioning_class): Likewise.
19351 * tree-phinodes.c (allocate_phi_node): Likewise.
19352 (reserve_phi_args_for_new_edge): Likewise.
19353 (remove_phi_args): Likewise.
19354 * varpool.c (varpool_node_for_asm): Likewise.
19355 (varpool_remove_unreferenced_decls): Likewise.
19356
19357 2014-04-23 Jeff Law <law@redhat.com>
19358
19359 PR tree-optimization/60902
19360 * tree-ssa-threadedge.c
19361 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19362 invalidate outputs from statements that do not produce useful
19363 outputs for threading.
19364
19365 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19366
19367 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19368 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19369 machine descriptions for Stack Smashing Protector.
19370
19371 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19372
19373 * aarch64.md (<optab>_rol<mode>3): New pattern.
19374 (<optab>_rolsi3_uxtw): Likewise.
19375 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19376
19377 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19378
19379 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19380 (arm_cortex_a12_tune): Likewise.
19381
19382 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19383
19384 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19385
19386 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19387
19388 * config/arm/arm.md (arm_rev16si2): New pattern.
19389 (arm_rev16si2_alt): Likewise.
19390 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19391
19392 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19393
19394 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19395 (rev16<mode>2_alt): Likewise.
19396 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19397 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19398 (aarch_rev16_shleft_mask_imm_p): Likewise.
19399 (aarch_rev16_p_1): Likewise.
19400 (aarch_rev16_p): Likewise.
19401 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19402 (aarch_rev16_shright_mask_imm_p): Likewise.
19403 (aarch_rev16_shleft_mask_imm_p): Likewise.
19404
19405 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19406
19407 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19408 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19409 rev cost.
19410 (cortex_a53_extra_costs): Likewise.
19411 (cortex_a57_extra_costs): Likewise.
19412 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19413 (cortexa7_extra_costs): Likewise.
19414 (cortexa8_extra_costs): Likewise.
19415 (cortexa12_extra_costs): Likewise.
19416 (cortexa15_extra_costs): Likewise.
19417 (v7m_extra_costs): Likewise.
19418 (arm_new_rtx_costs): Handle BSWAP.
19419
19420 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19421
19422 * config/arm/arm.c (cortexa8_extra_costs): New table.
19423 (arm_cortex_a8_tune): New tuning struct.
19424 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19425
19426 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19427
19428 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19429
19430 2014-04-23 Richard Biener <rguenther@suse.de>
19431
19432 * Makefile.in (OBJS): Remove loop-unswitch.o.
19433 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19434 * passes.def (pass_rtl_unswitch): Likewise.
19435 * loop-init.c (gate_rtl_unswitch): Likewise.
19436 (rtl_unswitch): Likewise.
19437 (pass_data_rtl_unswitch): Likewise.
19438 (pass_rtl_unswitch): Likewise.
19439 (make_pass_rtl_unswitch): Likewise.
19440 * rtl.h (reversed_condition): Likewise.
19441 (compare_and_jump_seq): Likewise.
19442 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19443 and make static.
19444 * loop-unroll.c (compare_and_jump_seq): Likewise.
19445
19446 2014-04-23 Richard Biener <rguenther@suse.de>
19447
19448 PR tree-optimization/60903
19449 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19450 commented code block.
19451 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19452 loop flags to newly created BBs and edges.
19453
19454 2014-04-23 Nick Clifton <nickc@redhat.com>
19455
19456 * config/msp430/msp430.c (msp430_handle_option): Move function
19457 to msp430-common.c
19458 (msp430_option_override): Simplify mcu and mcpu option handling.
19459 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19460 support for -mhwmult command line option.
19461 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19462 -mhwmult command line option.
19463 (msp430_hwmult_enabled): Delete.
19464 (msp43o_output_labelref): Add support for -mhwmult command line option.
19465 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19466 (umulsidi3): Likewise.
19467 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19468 (mcpu, mlarge, msmall): Likewise.
19469 (mhwmult): New option.
19470 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19471 prototype.
19472 (msp430_is_f5_mcu): Remove prototype.
19473 (msp430_use_f5_series_hwmult): Add prototype.
19474 * config/msp430/msp430-opts.h: New file.
19475 * common/config/msp430: New directory.
19476 * common/config/msp430/msp430-common.c: New file.
19477 * config.gcc (msp430): Remove target_has_targetm_common.
19478 * doc/invoke.texi: Document -mhwmult command line option.
19479
19480 2014-04-23 Nick Clifton <nickc@redhat.com>
19481
19482 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19483 default-manifest.o if it can be found in the search path.
19484 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19485
19486 2014-04-23 Terry Guo <terry.guo@arm.com>
19487
19488 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19489
19490 2014-04-23 Richard Biener <rguenther@suse.de>
19491
19492 PR middle-end/60895
19493 * tree-inline.c (declare_return_variable): Use mark_addressable.
19494
19495 2014-04-23 Richard Biener <rguenther@suse.de>
19496
19497 PR middle-end/60891
19498 * loop-init.c (loop_optimizer_init): Make sure to apply
19499 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19500
19501 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19502
19503 PR sanitizer/60275
19504 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19505 New options.
19506 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19507 if flag_sanitize_undefined_trap_on_error.
19508 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19509 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19510 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19511 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19512 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19513 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19514 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19515 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19516 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19517 * ubsan.c (ubsan_instrument_unreachable): Return
19518 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19519 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19520 if flag_sanitize_undefined_trap_on_error and
19521 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19522 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19523 instrument_bool_enum_load): Emit __builtin_trap () if
19524 flag_sanitize_undefined_trap_on_error and
19525 __builtin_handle_*_abort () if !flag_sanitize_recover.
19526 * doc/invoke.texi (-fsanitize-recover,
19527 -fsanitize-undefined-trap-on-error): Document.
19528
19529 2014-04-22 Christian Bruel <christian.bruel@st.com>
19530
19531 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19532 Force immediates to SImode.
19533
19534 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19535
19536 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19537 (lroundsfsi2): New.
19538 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19539 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19540 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19541 (nios2_fpu_insn): Add entry for round.
19542 (N2FPU_NO_ERRNO_P): Define.
19543 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19544 flag_errno_math.
19545 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19546
19547 2014-04-22 Richard Henderson <rth@redhat.com>
19548
19549 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19550 (add<GPI>3_compare0): Remove leading * from name.
19551 (add<GPI>3_carryin): Likewise.
19552 (sub<GPI>3_compare0): Likewise.
19553 (sub<GPI>3_carryin): Likewise.
19554 (<su_optab>mulditi3): New expander.
19555 (multi3): New expander.
19556 (madd<GPI>): Remove leading * from name.
19557
19558 2014-04-22 Martin Jambor <mjambor@suse.cz>
19559
19560 * cgraphclones.c (cgraph_function_versioning): Copy
19561 ipa_transforms_to_apply instead of asserting it is empty.
19562
19563 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19564
19565 PR target/60868
19566 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19567 on count_exp to get mode.
19568
19569 2014-04-22 Andrew Pinski <apinski@cavium.com>
19570
19571 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19572 Handle TLS for ILP32.
19573 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19574 (tlsie_small_<mode>): this and handle PTR.
19575 (tlsie_small_sidi): New pattern.
19576 (tlsle_small): Change to an expand to handle ILP32.
19577 (tlsle_small_<mode>): New pattern.
19578 (tlsdesc_small): Rename to ...
19579 (tlsdesc_small_<mode>): this and handle PTR.
19580
19581 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19582
19583 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19584
19585 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19586
19587 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19588 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19589 (aarch64_types_signed_poly_qualifiers): Likewise.
19590 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19591 (aarch64_types_poly_signed_qualifiers): Likewise.
19592 (TYPES_REINTERP_SS): Type macro added.
19593 (TYPES_REINTERP_SU): Likewise.
19594 (TYPES_REINTERP_SP): Likewise.
19595 (TYPES_REINTERP_US): Likewise.
19596 (TYPES_REINTERP_PS): Likewise.
19597 (aarch64_fold_builtin): New expression folding added.
19598 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19599 Declarations removed.
19600 (REINTERP_SS): Declarations added.
19601 (REINTERP_US): Likewise.
19602 (REINTERP_PS): Likewise.
19603 (REINTERP_SU): Likewise.
19604 (REINTERP_SP): Likewise.
19605 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19606 (vreinterpretq_p8_f64): Likewise.
19607 (vreinterpret_p16_f64): Likewise.
19608 (vreinterpretq_p16_f64): Likewise.
19609 (vreinterpret_f32_f64): Likewise.
19610 (vreinterpretq_f32_f64): Likewise.
19611 (vreinterpret_f64_f32): Likewise.
19612 (vreinterpret_f64_p8): Likewise.
19613 (vreinterpret_f64_p16): Likewise.
19614 (vreinterpret_f64_s8): Likewise.
19615 (vreinterpret_f64_s16): Likewise.
19616 (vreinterpret_f64_s32): Likewise.
19617 (vreinterpret_f64_s64): Likewise.
19618 (vreinterpret_f64_u8): Likewise.
19619 (vreinterpret_f64_u16): Likewise.
19620 (vreinterpret_f64_u32): Likewise.
19621 (vreinterpret_f64_u64): Likewise.
19622 (vreinterpretq_f64_f32): Likewise.
19623 (vreinterpretq_f64_p8): Likewise.
19624 (vreinterpretq_f64_p16): Likewise.
19625 (vreinterpretq_f64_s8): Likewise.
19626 (vreinterpretq_f64_s16): Likewise.
19627 (vreinterpretq_f64_s32): Likewise.
19628 (vreinterpretq_f64_s64): Likewise.
19629 (vreinterpretq_f64_u8): Likewise.
19630 (vreinterpretq_f64_u16): Likewise.
19631 (vreinterpretq_f64_u32): Likewise.
19632 (vreinterpretq_f64_u64): Likewise.
19633 (vreinterpret_s64_f64): Likewise.
19634 (vreinterpretq_s64_f64): Likewise.
19635 (vreinterpret_u64_f64): Likewise.
19636 (vreinterpretq_u64_f64): Likewise.
19637 (vreinterpret_s8_f64): Likewise.
19638 (vreinterpretq_s8_f64): Likewise.
19639 (vreinterpret_s16_f64): Likewise.
19640 (vreinterpretq_s16_f64): Likewise.
19641 (vreinterpret_s32_f64): Likewise.
19642 (vreinterpretq_s32_f64): Likewise.
19643 (vreinterpret_u8_f64): Likewise.
19644 (vreinterpretq_u8_f64): Likewise.
19645 (vreinterpret_u16_f64): Likewise.
19646 (vreinterpretq_u16_f64): Likewise.
19647 (vreinterpret_u32_f64): Likewise.
19648 (vreinterpretq_u32_f64): Likewise.
19649
19650 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19651
19652 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19653 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19654 (vreinterpret_p8_s8): Likewise.
19655 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19656 (vreinterpret_p8_s16): Likewise.
19657 (vreinterpret_p8_s32): Likewise.
19658 (vreinterpret_p8_s64): Likewise.
19659 (vreinterpret_p8_f32): Likewise.
19660 (vreinterpret_p8_u8): Likewise.
19661 (vreinterpret_p8_u16): Likewise.
19662 (vreinterpret_p8_u32): Likewise.
19663 (vreinterpret_p8_u64): Likewise.
19664 (vreinterpret_p8_p16): Likewise.
19665 (vreinterpretq_p8_s8): Likewise.
19666 (vreinterpretq_p8_s16): Likewise.
19667 (vreinterpretq_p8_s32): Likewise.
19668 (vreinterpretq_p8_s64): Likewise.
19669 (vreinterpretq_p8_f32): Likewise.
19670 (vreinterpretq_p8_u8): Likewise.
19671 (vreinterpretq_p8_u16): Likewise.
19672 (vreinterpretq_p8_u32): Likewise.
19673 (vreinterpretq_p8_u64): Likewise.
19674 (vreinterpretq_p8_p16): Likewise.
19675 (vreinterpret_p16_s8): Likewise.
19676 (vreinterpret_p16_s16): Likewise.
19677 (vreinterpret_p16_s32): Likewise.
19678 (vreinterpret_p16_s64): Likewise.
19679 (vreinterpret_p16_f32): Likewise.
19680 (vreinterpret_p16_u8): Likewise.
19681 (vreinterpret_p16_u16): Likewise.
19682 (vreinterpret_p16_u32): Likewise.
19683 (vreinterpret_p16_u64): Likewise.
19684 (vreinterpret_p16_p8): Likewise.
19685 (vreinterpretq_p16_s8): Likewise.
19686 (vreinterpretq_p16_s16): Likewise.
19687 (vreinterpretq_p16_s32): Likewise.
19688 (vreinterpretq_p16_s64): Likewise.
19689 (vreinterpretq_p16_f32): Likewise.
19690 (vreinterpretq_p16_u8): Likewise.
19691 (vreinterpretq_p16_u16): Likewise.
19692 (vreinterpretq_p16_u32): Likewise.
19693 (vreinterpretq_p16_u64): Likewise.
19694 (vreinterpretq_p16_p8): Likewise.
19695 (vreinterpret_f32_s8): Likewise.
19696 (vreinterpret_f32_s16): Likewise.
19697 (vreinterpret_f32_s32): Likewise.
19698 (vreinterpret_f32_s64): Likewise.
19699 (vreinterpret_f32_u8): Likewise.
19700 (vreinterpret_f32_u16): Likewise.
19701 (vreinterpret_f32_u32): Likewise.
19702 (vreinterpret_f32_u64): Likewise.
19703 (vreinterpret_f32_p8): Likewise.
19704 (vreinterpret_f32_p16): Likewise.
19705 (vreinterpretq_f32_s8): Likewise.
19706 (vreinterpretq_f32_s16): Likewise.
19707 (vreinterpretq_f32_s32): Likewise.
19708 (vreinterpretq_f32_s64): Likewise.
19709 (vreinterpretq_f32_u8): Likewise.
19710 (vreinterpretq_f32_u16): Likewise.
19711 (vreinterpretq_f32_u32): Likewise.
19712 (vreinterpretq_f32_u64): Likewise.
19713 (vreinterpretq_f32_p8): Likewise.
19714 (vreinterpretq_f32_p16): Likewise.
19715 (vreinterpret_s64_s8): Likewise.
19716 (vreinterpret_s64_s16): Likewise.
19717 (vreinterpret_s64_s32): Likewise.
19718 (vreinterpret_s64_f32): Likewise.
19719 (vreinterpret_s64_u8): Likewise.
19720 (vreinterpret_s64_u16): Likewise.
19721 (vreinterpret_s64_u32): Likewise.
19722 (vreinterpret_s64_u64): Likewise.
19723 (vreinterpret_s64_p8): Likewise.
19724 (vreinterpret_s64_p16): Likewise.
19725 (vreinterpretq_s64_s8): Likewise.
19726 (vreinterpretq_s64_s16): Likewise.
19727 (vreinterpretq_s64_s32): Likewise.
19728 (vreinterpretq_s64_f32): Likewise.
19729 (vreinterpretq_s64_u8): Likewise.
19730 (vreinterpretq_s64_u16): Likewise.
19731 (vreinterpretq_s64_u32): Likewise.
19732 (vreinterpretq_s64_u64): Likewise.
19733 (vreinterpretq_s64_p8): Likewise.
19734 (vreinterpretq_s64_p16): Likewise.
19735 (vreinterpret_u64_s8): Likewise.
19736 (vreinterpret_u64_s16): Likewise.
19737 (vreinterpret_u64_s32): Likewise.
19738 (vreinterpret_u64_s64): Likewise.
19739 (vreinterpret_u64_f32): Likewise.
19740 (vreinterpret_u64_u8): Likewise.
19741 (vreinterpret_u64_u16): Likewise.
19742 (vreinterpret_u64_u32): Likewise.
19743 (vreinterpret_u64_p8): Likewise.
19744 (vreinterpret_u64_p16): Likewise.
19745 (vreinterpretq_u64_s8): Likewise.
19746 (vreinterpretq_u64_s16): Likewise.
19747 (vreinterpretq_u64_s32): Likewise.
19748 (vreinterpretq_u64_s64): Likewise.
19749 (vreinterpretq_u64_f32): Likewise.
19750 (vreinterpretq_u64_u8): Likewise.
19751 (vreinterpretq_u64_u16): Likewise.
19752 (vreinterpretq_u64_u32): Likewise.
19753 (vreinterpretq_u64_p8): Likewise.
19754 (vreinterpretq_u64_p16): Likewise.
19755 (vreinterpret_s8_s16): Likewise.
19756 (vreinterpret_s8_s32): Likewise.
19757 (vreinterpret_s8_s64): Likewise.
19758 (vreinterpret_s8_f32): Likewise.
19759 (vreinterpret_s8_u8): Likewise.
19760 (vreinterpret_s8_u16): Likewise.
19761 (vreinterpret_s8_u32): Likewise.
19762 (vreinterpret_s8_u64): Likewise.
19763 (vreinterpret_s8_p8): Likewise.
19764 (vreinterpret_s8_p16): Likewise.
19765 (vreinterpretq_s8_s16): Likewise.
19766 (vreinterpretq_s8_s32): Likewise.
19767 (vreinterpretq_s8_s64): Likewise.
19768 (vreinterpretq_s8_f32): Likewise.
19769 (vreinterpretq_s8_u8): Likewise.
19770 (vreinterpretq_s8_u16): Likewise.
19771 (vreinterpretq_s8_u32): Likewise.
19772 (vreinterpretq_s8_u64): Likewise.
19773 (vreinterpretq_s8_p8): Likewise.
19774 (vreinterpretq_s8_p16): Likewise.
19775 (vreinterpret_s16_s8): Likewise.
19776 (vreinterpret_s16_s32): Likewise.
19777 (vreinterpret_s16_s64): Likewise.
19778 (vreinterpret_s16_f32): Likewise.
19779 (vreinterpret_s16_u8): Likewise.
19780 (vreinterpret_s16_u16): Likewise.
19781 (vreinterpret_s16_u32): Likewise.
19782 (vreinterpret_s16_u64): Likewise.
19783 (vreinterpret_s16_p8): Likewise.
19784 (vreinterpret_s16_p16): Likewise.
19785 (vreinterpretq_s16_s8): Likewise.
19786 (vreinterpretq_s16_s32): Likewise.
19787 (vreinterpretq_s16_s64): Likewise.
19788 (vreinterpretq_s16_f32): Likewise.
19789 (vreinterpretq_s16_u8): Likewise.
19790 (vreinterpretq_s16_u16): Likewise.
19791 (vreinterpretq_s16_u32): Likewise.
19792 (vreinterpretq_s16_u64): Likewise.
19793 (vreinterpretq_s16_p8): Likewise.
19794 (vreinterpretq_s16_p16): Likewise.
19795 (vreinterpret_s32_s8): Likewise.
19796 (vreinterpret_s32_s16): Likewise.
19797 (vreinterpret_s32_s64): Likewise.
19798 (vreinterpret_s32_f32): Likewise.
19799 (vreinterpret_s32_u8): Likewise.
19800 (vreinterpret_s32_u16): Likewise.
19801 (vreinterpret_s32_u32): Likewise.
19802 (vreinterpret_s32_u64): Likewise.
19803 (vreinterpret_s32_p8): Likewise.
19804 (vreinterpret_s32_p16): Likewise.
19805 (vreinterpretq_s32_s8): Likewise.
19806 (vreinterpretq_s32_s16): Likewise.
19807 (vreinterpretq_s32_s64): Likewise.
19808 (vreinterpretq_s32_f32): Likewise.
19809 (vreinterpretq_s32_u8): Likewise.
19810 (vreinterpretq_s32_u16): Likewise.
19811 (vreinterpretq_s32_u32): Likewise.
19812 (vreinterpretq_s32_u64): Likewise.
19813 (vreinterpretq_s32_p8): Likewise.
19814 (vreinterpretq_s32_p16): Likewise.
19815 (vreinterpret_u8_s8): Likewise.
19816 (vreinterpret_u8_s16): Likewise.
19817 (vreinterpret_u8_s32): Likewise.
19818 (vreinterpret_u8_s64): Likewise.
19819 (vreinterpret_u8_f32): Likewise.
19820 (vreinterpret_u8_u16): Likewise.
19821 (vreinterpret_u8_u32): Likewise.
19822 (vreinterpret_u8_u64): Likewise.
19823 (vreinterpret_u8_p8): Likewise.
19824 (vreinterpret_u8_p16): Likewise.
19825 (vreinterpretq_u8_s8): Likewise.
19826 (vreinterpretq_u8_s16): Likewise.
19827 (vreinterpretq_u8_s32): Likewise.
19828 (vreinterpretq_u8_s64): Likewise.
19829 (vreinterpretq_u8_f32): Likewise.
19830 (vreinterpretq_u8_u16): Likewise.
19831 (vreinterpretq_u8_u32): Likewise.
19832 (vreinterpretq_u8_u64): Likewise.
19833 (vreinterpretq_u8_p8): Likewise.
19834 (vreinterpretq_u8_p16): Likewise.
19835 (vreinterpret_u16_s8): Likewise.
19836 (vreinterpret_u16_s16): Likewise.
19837 (vreinterpret_u16_s32): Likewise.
19838 (vreinterpret_u16_s64): Likewise.
19839 (vreinterpret_u16_f32): Likewise.
19840 (vreinterpret_u16_u8): Likewise.
19841 (vreinterpret_u16_u32): Likewise.
19842 (vreinterpret_u16_u64): Likewise.
19843 (vreinterpret_u16_p8): Likewise.
19844 (vreinterpret_u16_p16): Likewise.
19845 (vreinterpretq_u16_s8): Likewise.
19846 (vreinterpretq_u16_s16): Likewise.
19847 (vreinterpretq_u16_s32): Likewise.
19848 (vreinterpretq_u16_s64): Likewise.
19849 (vreinterpretq_u16_f32): Likewise.
19850 (vreinterpretq_u16_u8): Likewise.
19851 (vreinterpretq_u16_u32): Likewise.
19852 (vreinterpretq_u16_u64): Likewise.
19853 (vreinterpretq_u16_p8): Likewise.
19854 (vreinterpretq_u16_p16): Likewise.
19855 (vreinterpret_u32_s8): Likewise.
19856 (vreinterpret_u32_s16): Likewise.
19857 (vreinterpret_u32_s32): Likewise.
19858 (vreinterpret_u32_s64): Likewise.
19859 (vreinterpret_u32_f32): Likewise.
19860 (vreinterpret_u32_u8): Likewise.
19861 (vreinterpret_u32_u16): Likewise.
19862 (vreinterpret_u32_u64): Likewise.
19863 (vreinterpret_u32_p8): Likewise.
19864 (vreinterpret_u32_p16): Likewise.
19865 (vreinterpretq_u32_s8): Likewise.
19866 (vreinterpretq_u32_s16): Likewise.
19867 (vreinterpretq_u32_s32): Likewise.
19868 (vreinterpretq_u32_s64): Likewise.
19869 (vreinterpretq_u32_f32): Likewise.
19870 (vreinterpretq_u32_u8): Likewise.
19871 (vreinterpretq_u32_u16): Likewise.
19872 (vreinterpretq_u32_u64): Likewise.
19873 (vreinterpretq_u32_p8): Likewise.
19874 (vreinterpretq_u32_p16): Likewise.
19875
19876 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19877
19878 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19879 Pattern extended.
19880 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19881 (sqabs): Likewise.
19882 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19883 (vqnegd_s64): Likewise.
19884 (vqabs_s64): Likewise.
19885 (vqabsd_s64): Likewise.
19886
19887 2014-04-22 Richard Henderson <rth@redhat.com>
19888
19889 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19890 computation to the top of the loop.
19891
19892 2014-04-22 Renlin <renlin.li@arm.com>
19893 Jiong Wang <jiong.wang@arm.com>
19894
19895 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19896 * config/aarch64/aarch64.c (aarch64_layout_frame)
19897 (aarch64_initial_elimination_offset): Likewise.
19898
19899 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19900
19901 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19902 Fix indentation.
19903
19904 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19905
19906 * machmode.h (bitwise_mode_for_mode): Declare.
19907 * stor-layout.h (bitwise_type_for_mode): Likewise.
19908 * stor-layout.c (bitwise_mode_for_mode): New function.
19909 (bitwise_type_for_mode): Likewise.
19910 * builtins.c (fold_builtin_memory_op): Use it instead of
19911 int_mode_for_mode and build_nonstandard_integer_type.
19912
19913 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19914
19915 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19916 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19917 (*-*-solaris2*): Simplify.
19918 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19919 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19920 *-*-solaris2.9* handling.
19921
19922 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19923 as bug.
19924 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19925 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19926 handling, simplify.
19927 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19928 * configure: Regenerate.
19929
19930 * config/i386/sol2-9.h: Remove.
19931
19932 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19933 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19934 Remove Solaris 9 references.
19935
19936 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19937
19938 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19939 (floatuns<GPI:mode><GPF:mode>2): Remove.
19940 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19941 and floatuns conversions.
19942 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19943 and floatuns conversions.
19944 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19945 (w1,w2): New mode attributes for inequal width conversions.
19946
19947 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19948
19949 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19950 the output asm format.
19951
19952 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19953
19954 * config/aarch64/aarch64-simd.md
19955 (aarch64_cm<optab>di): Always split.
19956 (*aarch64_cm<optab>di): New.
19957 (aarch64_cmtstdi): Always split.
19958 (*aarch64_cmtstdi): New.
19959
19960 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19961
19962 PR tree-optimization/60823
19963 * omp-low.c (ipa_simd_modify_function_body): Go through
19964 all SSA_NAMEs and for those refering to vector arguments
19965 which are going to be replaced adjust SSA_NAME_VAR and,
19966 if it is a default definition, change it into a non-default
19967 definition assigned at the beginning of function from new_decl.
19968 (ipa_simd_modify_stmt_ops): Rewritten.
19969 * tree-dfa.c (set_ssa_default_def): When removing default def,
19970 check for NULL loc instead of NULL *loc.
19971
19972 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19973
19974 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19975 restrictions on core registers for DImode values in Thumb2.
19976
19977 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19978
19979 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19980 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19981
19982 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19983
19984 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19985 (*iordi_notzesidi_di): Likewise.
19986 (*iordi_notsesidi_di): Likewise.
19987
19988 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19989
19990 * config/arm/arm-protos.h (tune_params): New struct members.
19991 * config/arm/arm.c: Initialise tune_params per processor.
19992 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19993 for speed, based on new tune_params.
19994
19995 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19996
19997 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19998 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19999 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20000 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20001 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20002 (vrnda_f64): Likewise.
20003 (vrndi_f64): Likewise.
20004 (vrndm_f64): Likewise.
20005 (vrndn_f64): Likewise.
20006 (vrndp_f64): Likewise.
20007 (vrndx_f64): Likewise.
20008
20009 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20010
20011 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20012 GET_MODE_SIZE argument is enum machine_mode.
20013
20014 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20015
20016 PR target/60910
20017 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20018 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20019
20020 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20021
20022 PR middle-end/60281
20023 * asan.c (asan_emit_stack_protection): Force the base to align to
20024 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20025 appropriate bits if STRICT_ALIGNMENT.
20026 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20027 when asan is on.
20028 (expand_used_vars): Leave a space in the stack frame for alignment
20029 if STRICT_ALIGNMENT.
20030
20031 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20032
20033 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20034 than a gimple.
20035 (gimple_store_p): Likewise.
20036 (gimple_assign_load_p): Likewise.
20037 (gimple_assign_cast_p): Likewise.
20038 (gimple_clobber_p): Likewise.
20039
20040 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20041 rather than a gimple.
20042 (gimple_assign_cast_p): Likewise.
20043
20044 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20045
20046 PR target/60735
20047 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20048 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20049
20050 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20051 more debug information for E500 if -mdebug=reg.
20052
20053 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20054
20055 PR target/60909
20056 * config/i386/i386.c (ix86_expand_builtin)
20057 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20058 register for target RTX.
20059 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20060
20061 2014-04-18 Cong Hou <congh@google.com>
20062
20063 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20064 the widen-mult pattern by handling two operands with different sizes,
20065 and operands whose size is smaller than half of the result type.
20066
20067 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20068
20069 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20070 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20071 (do_estimate_edge_time): Compute it.
20072 * ipa-inline.c (want_inline_small_function_p): Bypass
20073 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20074
20075 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20076
20077 * ipa-inline.c (spec_rem): New static variable.
20078 (dump_overall_stats): New function.
20079 (dump_inline_stats): New function.
20080
20081 2014-04-18 Richard Henderson <rth@redhat.com>
20082
20083 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20084 to GET_MODE_SIZE, not a reg_class_t.
20085
20086 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20087
20088 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20089 (vsx_xxmrglw_<mode>): Likewise.
20090
20091 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20092
20093 PR target/60876
20094 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20095 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20096 (rs6000_init_hard_regno_mode_ok): Likewise.
20097
20098 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20099
20100 * ipa-inline.c (inline_small_functions): Account only non-cold
20101 functions.
20102 * doc/invoke.texi (inline-unit-growth): Update documentation.
20103
20104 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20105
20106 * config/rs6000/rs6000.md (addti3, subti3): New.
20107
20108 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20109
20110 PR target/60863
20111 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20112 comment. Check optimize_insn_for_size_p instead of
20113 optimize_insn_for_speed_p.
20114
20115 2014-04-17 Martin Jambor <mjambor@suse.cz>
20116
20117 * gimple-iterator.c (gsi_start_edge): New function.
20118 * gimple-iterator.h (gsi_start_edge): Declare.
20119 * tree-sra.c (single_non_eh_succ): New function.
20120 (disqualify_ops_if_throwing_stmt): Renamed to
20121 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20122 having one non-EH successor BB.
20123 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20124 generate loads into replacements.
20125 (sra_modify_assign): Likewise and and also use the simple path for
20126 such statements.
20127 (sra_modify_function_body): Commit statements on edges.
20128
20129 2014-04-17 Richard Biener <rguenther@suse.de>
20130
20131 PR middle-end/60849
20132 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20133 comparison results and add clarifying comment.
20134
20135 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20136
20137 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20138 (blank_mode): Initialize it.
20139 (emit_mode_size_inline, emit_mode_nunits_inline,
20140 emit_mode_inner_inline): New functions.
20141 (emit_insn_modes_h): Call them and surround their output with
20142 #if GCC_VERSION >= 4001 ... #endif.
20143 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20144 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20145 mode_* arrays if the argument is __builtin_constant_p.
20146 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20147 is enum machine_mode.
20148
20149 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20150
20151 * passes.c (opt_pass::execute): Adjust.
20152 (pass_manager::execute_pass_mode_switching): Likewise.
20153 (early_local_passes::execute): Likewise.
20154 (execute_one_pass): Pass cfun to the pass's execute method.
20155 * tree-pass.h (opt_pass::execute): Add function * argument.
20156 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20157 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20158 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20159 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20160 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20161 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20162 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20163 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20164 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20165 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20166 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20167 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20168 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20169 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20170 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20171 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20172 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20173 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20174 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20175 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20176 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20177 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20178 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20179 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20180 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20181 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20182 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20183 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20184 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20185 Adjust.
20186
20187 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20188
20189 * passes.c (opt_pass::gate): Take function * argument.
20190 (gate_all_early_local_passes): Merge into
20191 (early_local_passes::gate): this.
20192 (gate_all_early_optimizations): Merge into
20193 (all_early_optimizations::gate): this.
20194 (gate_all_optimizations): Mege into
20195 (all_optimizations::gate): this.
20196 (gate_all_optimizations_g): Merge into
20197 (all_optimizations_g::gate): this.
20198 (gate_rest_of_compilation): Mege into
20199 (rest_of_compilation::gate): this.
20200 (gate_postreload): Merge into
20201 (postreload::gate): this.
20202 (dump_one_pass): Pass cfun to the pass's gate method.
20203 (execute_ipa_summary_passes): Likewise.
20204 (execute_one_pass): Likewise.
20205 (ipa_write_summaries_2): Likewise.
20206 (ipa_write_optimization_summaries_1): Likewise.
20207 (ipa_read_summaries_1): Likewise.
20208 (ipa_read_optimization_summaries_1): Likewise.
20209 (execute_ipa_stmt_fixups): Likewise.
20210 * tree-pass.h (opt_pass::gate): Add function * argument.
20211 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20212 combine-stack-adj.c, combine.c, compare-elim.c,
20213 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20214 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20215 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20216 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20217 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20218 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20219 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20220 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20221 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20222 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20223 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20224 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20225 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20226 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20227 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20228 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20229 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20230 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20231 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20232 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20233 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20234 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20235 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20236 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20237 var-tracking.c, vtable-verify.c, web.c: Adjust.
20238
20239 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20240
20241 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20242 * configure: Regenerate.
20243
20244 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20245
20246 * passes.c (dump_one_pass): don't check pass->has_gate.
20247 (execute_ipa_summary_passes): Likewise.
20248 (execute_one_pass): Likewise.
20249 (ipa_write_summaries_2): Likewise.
20250 (ipa_write_optimization_summaries_1): Likewise.
20251 (ipa_read_optimization_summaries_1): Likewise.
20252 (execute_ipa_stmt_fixups): Likewise.
20253 * tree-pass.h (pass_data::has_gate): Remove.
20254 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20255 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20256 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20257 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20258 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20259 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20260 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20261 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20262 gimple-low.c, gimple-ssa-isolate-paths.c,
20263 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20264 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20265 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20266 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20267 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20268 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20269 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20270 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20271 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20272 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20273 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20274 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20275 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20276 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20277 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20278 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20279 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20280 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20281 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20282 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20283 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20284 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20285 Adjust.
20286
20287 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20288
20289 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20290 declaration.
20291 * passes.c (pass_manager::register_dump_files_1): Merge into
20292 (pass_manager::register_dump_files): this, and remove its handling of
20293 properties since the pass always has the properties anyway.
20294 (pass_manager::pass_manager): Adjust.
20295
20296 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20297
20298 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20299 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20300 dealing with properties.
20301 (pass_manager::register_dump_files): Adjust.
20302
20303 2014-03-20 Mark Wielaard <mjw@redhat.com>
20304
20305 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20306 then represent the bound as normal constant value.
20307
20308 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20309
20310 PR target/60847
20311 Forward port from 4.8 branch
20312 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20313
20314 * config/i386/bmiintrin.h (_blsi_u32): New.
20315 (_blsi_u64): Ditto.
20316 (_blsr_u32): Ditto.
20317 (_blsr_u64): Ditto.
20318 (_blsmsk_u32): Ditto.
20319 (_blsmsk_u64): Ditto.
20320 (_tzcnt_u32): Ditto.
20321 (_tzcnt_u64): Ditto.
20322
20323 2014-04-17 Kito Cheng <kito@0xlab.org>
20324
20325 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20326
20327 2014-04-17 Richard Biener <rguenther@suse.de>
20328
20329 PR middle-end/60849
20330 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20331 boolean results for comparisons.
20332
20333 2014-04-17 Richard Biener <rguenther@suse.de>
20334
20335 PR tree-optimization/60836
20336 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20337 initial PHI args to be gimple values.
20338
20339 2014-04-17 Richard Biener <rguenther@suse.de>
20340
20341 PR tree-optimization/60841
20342 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20343 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20344 of stmts to SLP build.
20345 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20346 (vect_analyze_slp): Likewise.
20347 (vect_analyze_slp_instance): Likewise.
20348 (vect_build_slp_tree): Limit overall SLP tree growth.
20349 * tree-vectorizer.h (vect_analyze_data_refs,
20350 vect_analyze_slp): Adjust prototypes.
20351
20352 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20353
20354 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20355 Silvermont.
20356
20357 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20358
20359 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20360 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20361 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20362 for TARGET_SLOW_PSHUFB
20363
20364 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20365
20366 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20367 * config/i386/i386.c (intel_cost): Ditto.
20368
20369 2014-04-17 Joey Ye <joey.ye@arm.com>
20370
20371 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20372
20373 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20374
20375 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20376 with -fuse-profile.
20377
20378 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20379
20380 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20381 (type_all_derivations_known_p): New predicate.
20382 (type_all_ctors_visible_p): New predicate.
20383 (type_possibly_instantiated_p): New predicate.
20384 (get_odr_type): Compute all_derivations_known.
20385 (dump_odr_type): Dump the flag.
20386 (maybe_record_type): Cleanup.
20387 (record_target_from_binfo): Add bases_to_consider array;
20388 record bases for types w/o instances and skip CXX destructor.
20389 (possible_polymorphic_call_targets_1): Add bases_to_consider
20390 and consider_construction parameters; check if type may have instance.
20391 (get_polymorphic_call_info): Set maybe_in_construction to true
20392 when we know nothing.
20393 (record_targets_from_bases): Skip CXX destructors; they are
20394 never called for types in construction.
20395 (possible_polymorphic_call_targets): Do not record target when
20396 type may not have instance.
20397
20398 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20399
20400 PR ipa/60854
20401 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20402 external aliases alive, too.
20403
20404 2014-04-16 Andrew Pinski <apinski@cavium.com>
20405
20406 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20407 definition.
20408
20409 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20410
20411 * final.c (compute_alignments): Do not apply loop alignment to a block
20412 falling through to the exit.
20413
20414 2014-04-16 Catherine Moore <clm@codesourcery.com>
20415
20416 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20417 Adjust constraints for microMIPS store patterns.
20418
20419 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20420
20421 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20422
20423 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20424
20425 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20426 (append_use): Run at -O0.
20427 (append_vdef): Likewise.
20428 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20429 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20430
20431 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20432
20433 PR tree-optimization/60844
20434 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20435 (propagate_op_to_single_use, remove_visited_stmt_chain,
20436 linearize_expr, repropagate_negates, reassociate_bb): Use it
20437 instead of gsi_remove.
20438
20439 2014-04-16 Martin Jambor <mjambor@suse.cz>
20440
20441 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20442 ipa_transforms_to_apply.
20443 (cgraph_function_versioning): Assert that old_node has empty
20444 ipa_transforms_to_apply.
20445 * trans-mem.c (ipa_tm_create_version): Likewise.
20446 * tree-inline.c (tree_function_versioning): Do not duplicate
20447 ipa_transforms_to_apply.
20448
20449 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20450
20451 PR target/60817
20452 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20453 x86_64-*-* cases.
20454 Pass necessary as flags on 64-bit Solaris/x86.
20455 Use lowercase relocs for x86_64-*-*.
20456 * configure: Regenerate.
20457
20458 2014-04-15 Jan Hubicka <jh@suse.cz>
20459
20460 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20461 (maybe_record_node, likely_target_p): Use it.
20462
20463 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20464
20465 PR target/60839
20466 Revert following patch
20467
20468 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20469
20470 PR target/60735
20471 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20472 software floating point or no floating point registers, do not
20473 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20474 in GPRs that occurs after we tested for GPRs that would never be
20475 true.
20476
20477 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20478 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20479 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20480 specifically allow DDmode, since that does not use the SPE SIMD
20481 instructions.
20482
20483 2014-03-21 Mark Wielaard <mjw@redhat.com>
20484
20485 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20486 as unsigned or int depending on type and value used.
20487
20488 2014-04-15 Richard Biener <rguenther@suse.de>
20489
20490 PR rtl-optimization/56965
20491 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20492 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20493 ... here.
20494 * alias.c (true_dependence_1): Do not call
20495 nonoverlapping_component_refs_p.
20496 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20497 nonoverlapping_component_refs_p.
20498 (indirect_refs_may_alias_p): Likewise.
20499
20500 2014-04-15 Teresa Johnson <tejohnson@google.com>
20501
20502 * cfg.c (dump_bb_info): Fix flags check.
20503 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20504
20505 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20506
20507 PR rtl-optimization/60663
20508 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20509 avoid 0 cost.
20510
20511 2014-04-15 Richard Biener <rguenther@suse.de>
20512
20513 * lto-streamer.h (LTO_major_version): Bump to 4.
20514
20515 2014-04-15 Richard Biener <rguenther@suse.de>
20516
20517 * common.opt (lto_partition_model): New enum.
20518 (flto-partition=): Merge separate options with a single with argument,
20519 add -flto-partition=one support.
20520 * flag-types.h (enum lto_partition_model): Declare.
20521 * opts.c (finish_options): Remove duplicate -flto-partition=
20522 option check.
20523 * lto-wrapper.c (run_gcc): Adjust.
20524
20525 2014-04-15 Richard Biener <rguenther@suse.de>
20526
20527 * alias.c (ncr_compar): New function.
20528 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20529
20530 2014-04-15 Richard Biener <rguenther@suse.de>
20531
20532 * alias.c (record_component_aliases): Do not walk BINFOs.
20533
20534 2014-04-15 Richard Biener <rguenther@suse.de>
20535
20536 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20537 Add struct function argument and adjust.
20538 (find_func_aliases_for_call): Likewise.
20539 (find_func_aliases): Likewise.
20540 (find_func_clobbers): Likewise.
20541 (intra_create_variable_infos): Likewise.
20542 (compute_points_to_sets): Likewise.
20543 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20544
20545 2014-04-15 Richard Biener <rguenther@suse.de>
20546
20547 * tree.c (iterative_hash_expr): Use enum tree_code_class
20548 to store TREE_CODE_CLASS.
20549 (tree_block): Likewise.
20550 (tree_set_block): Likewise.
20551 * tree.h (fold_build_pointer_plus_loc): Use
20552 convert_to_ptrofftype_loc.
20553
20554 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20555
20556 PR plugins/59335
20557 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20558 added in 4.9.
20559
20560 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20561
20562 * cfgloop.h (struct loop): Move force_vectorize down.
20563 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20564 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20565 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20566 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20567 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20568 * tree-core.h (enum annot_expr_kind): Add new kind values.
20569 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20570 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20571 kinds.
20572 * tree.def (ANNOTATE_EXPR): Tweak comment.
20573
20574 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20575
20576 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20577 cxa_pure_virtual).
20578
20579 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20580
20581 * tree.h (TYPE_IDENTIFIER): Declare.
20582 * tree.c (subrange_type_for_debug_p): Use it.
20583 * godump.c (go_format_type): Likewise.
20584 * dwarf2out.c (is_cxx_auto, modified_type_die,
20585 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20586 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20587
20588 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20589
20590 PR lto/60820
20591 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20592
20593 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20594
20595 * config/i386/i386.c (examine_argument): Return bool. Return true if
20596 parameter should be passed in memory.
20597 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20598 (construct_container): Update calls to examine_argument.
20599 (function_arg_advance_64): Ditto.
20600 (return_in_memory_32): Merge with ix86_return_in_memory.
20601 (return_in_memory_64): Ditto.
20602 (return_in_memory_ms_64): Ditto.
20603
20604 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20605
20606 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20607 * coverage.c (coverage_compute_profile_id): Handle externally visible
20608 symbols.
20609
20610 2014-04-14 Martin Jambor <mjambor@suse.cz>
20611
20612 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20613 DECL_DISREGARD_INLINE_LIMITS functions.
20614
20615 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20616
20617 PR target/60827
20618 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20619
20620 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20621
20622 PR target/60827
20623 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20624 optimize_insn_for_speed_p instead of
20625 optimize_function_for_speed_p.
20626
20627 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20628
20629 * doc/invoke.texi (free): Document AArch64.
20630
20631 2014-04-14 Richard Biener <rguenther@suse.de>
20632
20633 PR tree-optimization/60042
20634 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20635 (insert_into_preds_of_block): Do not prevent PHI insertion
20636 for REFERENCE exprs here ...
20637 (eliminate_dom_walker::before_dom_children): ... but prevent
20638 their use here under similar conditions when applied to the
20639 IL after PRE optimizations.
20640
20641 2014-04-14 Richard Biener <rguenther@suse.de>
20642
20643 * passes.def: Move early points-to after early SRA.
20644
20645 2014-04-14 Richard Biener <rguenther@suse.de>
20646
20647 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20648 check for which sign-changes we allow when forwarding
20649 a converted value into a switch.
20650
20651 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20652
20653 * stor-layout.c (place_field): Finalize non-constant offset for the
20654 field, if any.
20655
20656 2014-04-14 Richard Biener <rguenther@suse.de>
20657
20658 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20659 as argument.
20660 (expand_switch_using_bit_tests_p): Likewise.
20661 (process_switch): Compute and pass on speed_p based on the
20662 switch stmt.
20663 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20664 optimize_bb_for_speed_p.
20665
20666 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20667
20668 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20669 * function.h (struct function): Rename has_force_vect_loops into
20670 has_force_vectorize_loops.
20671 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20672 (input_struct_function_base): Likewise.
20673 * lto-streamer-out.c (output_cfg): Likewise.
20674 (output_struct_function_base): Likewise.
20675 * omp-low.c (expand_omp_simd): Likewise.
20676 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20677 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20678 (version_loop_for_if_conversion): Likewise.
20679 (tree_if_conversion): Likewise.
20680 (main_tree_if_conversion): Likewise.
20681 (gate_tree_if_conversion): Likewise.
20682 * tree-inline.c (copy_loops): Likewise.
20683 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20684 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20685 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20686 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20687 * tree-vectorizer.c (vectorize_loops): Likewise.
20688 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20689
20690 2014-04-14 Richard Biener <rguenther@suse.de>
20691
20692 PR lto/60720
20693 * lto-streamer-out.c (wrap_refs): New function.
20694 (lto_output): Wrap symbol references in global initializes in
20695 type-preserving MEM_REFs.
20696
20697 2014-04-14 Christian Bruel <christian.bruel@st.com>
20698
20699 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20700
20701 2014-04-14 Christian Bruel <christian.bruel@st.com>
20702
20703 * config/sh/sh.md (setmemqi): New expand pattern.
20704 * config/sh/sh.h (CLEAR_RATIO): Define.
20705 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20706 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20707
20708 2014-04-14 Richard Biener <rguenther@suse.de>
20709
20710 PR middle-end/55022
20711 * fold-const.c (negate_expr_p): Don't negate directional rounding
20712 division.
20713 (fold_negate_expr): Likewise.
20714
20715 2014-04-14 Richard Biener <rguenther@suse.de>
20716
20717 PR tree-optimization/59817
20718 PR tree-optimization/60453
20719 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20720 recursion to catch all CHRECs in the scalar evolution and restrict
20721 the predicate for the remains appropriately.
20722
20723 2014-04-12 Catherine Moore <clm@codesourcery.com>
20724
20725 * config/mips/constraints.md: Add new register constraint "kb".
20726 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20727 (*movhi_internal): Likewise.
20728 (*movqi_internal): Likewise.
20729 * config/mips/mips.h (M16_STORE_REGS): New register class.
20730 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20731 (REG_CLASS_CONTENTS): Likewise.
20732 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20733
20734 2014-04-11 Tobias Burnus <burnus@net-b.de>
20735
20736 PR c/60194
20737 * doc/invoke.texi (-Wformat-signedness): Document it.
20738 (Wformat=2): Mention that this enables -Wformat-signedness.
20739
20740 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20741
20742 * common/config/epiphany/epiphany-common.c
20743 (epiphany_option_optimization_table): Enable section anchors by
20744 default at -O1 or higher.
20745 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20746 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20747 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20748 carries no extra cost.
20749 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20750 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20751 * config/epiphany/predicates.md (memclob_operand): New predicate.
20752 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20753 Use memclob_operand predicate and X constraint for operand 3.
20754
20755 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20756
20757 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20758 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20759 its operands.
20760
20761 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20762
20763 PR rtl-optimization/60651
20764 * mode-switching.c (optimize_mode_switching): Make sure to emit
20765 sets of a lower numbered entity before sets of a higher numbered
20766 entity to a mode of the same or lower priority.
20767 When creating a seginfo for a basic block that starts with a code
20768 label, move the insertion point past the code label.
20769 (new_seginfo): Document and enforce requirement that
20770 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20771 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20772 * doc/tm.texi: Regenerate.
20773
20774 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20775
20776 PR target/60811
20777 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20778
20779 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20780
20781 * BASE-VER: Set to 4.10.0.
20782
20783 2014-04-11 Tobias Burnus <burnus@net-b.de>
20784
20785 PR other/59055
20786 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20787 * doc/gcc.texi (Service): Update description in the @menu
20788 * doc/invoke.texi (Option Summary): Remove misplaced and
20789 duplicated @menu.
20790
20791 2014-04-11 Steve Ellcey <sellcey@mips.com>
20792 Jakub Jelinek <jakub@redhat.com>
20793
20794 PR middle-end/60556
20795 * expr.c (convert_move): Use emit_store_flag_force instead of
20796 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20797 argument to it.
20798
20799 2014-04-11 Richard Biener <rguenther@suse.de>
20800
20801 PR middle-end/60797
20802 * varasm.c (assemble_alias): Avoid endless error reporting
20803 recursion by setting TREE_ASM_WRITTEN.
20804
20805 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20806
20807 * config/s390/s390.md: Add a splitter for NOT rtx.
20808
20809 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20810
20811 PR rtl-optimization/60663
20812 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20813
20814 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20815 Jakub Jelinek <jakub@redhat.com>
20816
20817 PR lto/60567
20818 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20819 flag from decl_node to node.
20820
20821 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20822
20823 PR debug/60655
20824 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20825 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20826 ameliorating the cases where it can be.
20827
20828 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20829
20830 Revert
20831 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20832
20833 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20834 (loadsync_<mode>): Change mode.
20835 (load_quadpti, store_quadpti): New.
20836 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20837 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20838 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20839
20840 2014-04-09 Cong Hou <congh@google.com>
20841
20842 PR testsuite/60773
20843 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20844 documentation.
20845
20846 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20847
20848 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20849 instead of vnor to exploit possible fusion opportunity in the
20850 future.
20851 (altivec_expand_vec_perm_const_le): Likewise.
20852
20853 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20854
20855 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20856 (loadsync_<mode>): Change mode.
20857 (load_quadpti, store_quadpti): New.
20858 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20859 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20860
20861 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20862
20863 PR target/60763
20864 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20865 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20866 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20867
20868 2014-04-08 Richard Biener <rguenther@suse.de>
20869
20870 PR middle-end/60706
20871 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20872 a 64bit widest int print double-int similar to on HWI64 hosts.
20873
20874 2014-04-08 Richard Biener <rguenther@suse.de>
20875
20876 PR tree-optimization/60785
20877 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20878 default defs properly.
20879
20880 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20881
20882 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20883 (Weffc++): Likewise.
20884
20885 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20886
20887 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20888 set completep to false rather than true.
20889
20890 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20891
20892 PR target/60504
20893 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20894 ARM_TARGET2_DWARF_FORMAT.
20895
20896 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20897
20898 PR target/60609
20899 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20900 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20901 ADDR_DIFF_VEC.
20902
20903 2014-04-07 Richard Biener <rguenther@suse.de>
20904
20905 PR tree-optimization/60766
20906 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20907 (may_eliminate_iv): Convert cand_value_at result to desired type.
20908
20909 2014-04-07 Jason Merrill <jason@redhat.com>
20910
20911 PR c++/60731
20912 * common.opt (-fno-gnu-unique): Add.
20913 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20914
20915 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20916
20917 * haifa-sched.c: Fix outdated function reference and minor
20918 grammar errors in introductory comment.
20919
20920 2014-04-07 Richard Biener <rguenther@suse.de>
20921
20922 PR middle-end/60750
20923 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20924 for noreturn calls.
20925 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20926
20927 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20928
20929 PR debug/55794
20930 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20931 size accounting for thunks.
20932 (pa_asm_output_mi_thunk): Use final_start_function() and
20933 final_end_function() to output function start and end directives.
20934
20935 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20936
20937 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20938 device specific ISA/ feature information. Remove short_sp and
20939 errata_skip ds. Add avr_device_specific_features enum to have device
20940 specific info.
20941 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20942 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20943 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20944 updated device specific info.
20945 * config/avr/avr-mcus.def: Merge device specific details to
20946 dev_attribute field.
20947 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20948 errata_skip.
20949 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20950 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20951 assembler if RMW isa supported by current device.
20952 * config/avr/genmultilib.awk: Update as device info structure changed.
20953 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20954
20955 2014-04-04 Cong Hou <congh@google.com>
20956
20957 PR tree-optimization/60656
20958 * tree-vect-stmts.c (supportable_widening_operation):
20959 Fix a bug that elements in a vector with vect_used_by_reduction
20960 property are incorrectly reordered when the operation on it is not
20961 consistant with the one in reduction operation.
20962
20963 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20964
20965 PR rtl-optimization/60155
20966 * gcse.c (record_set_data): New function.
20967 (single_set_gcse): New function.
20968 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20969 (hoist_code): Likewise.
20970 (get_pressure_class_and_nregs): Likewise.
20971
20972 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20973
20974 * explow.c (probe_stack_range): Emit a final optimization blockage.
20975
20976 2014-04-04 Anthony Green <green@moxielogic.com>
20977
20978 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20979 typos.
20980
20981 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20982
20983 PR ipa/59626
20984 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20985 flags are set only during streaming.
20986 * ipa.c (process_references, walk_polymorphic_call_targets,
20987 symtab_remove_unreachable_nodes): Drop bodies of always inline
20988 after early inlining.
20989 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20990
20991 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20992 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20993
20994 PR debug/60655
20995 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20996 containing a NOT.
20997
20998 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20999
21000 PR bootstrap/60743
21001 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21002 duration.
21003 (cortex_a53_fdivd): Likewise.
21004
21005 2014-04-04 Martin Jambor <mjambor@suse.cz>
21006
21007 PR ipa/60640
21008 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21009 Adjust all callers.
21010 * cgraph.c (clone_of_p): Also return true if thunks match.
21011 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21012 cgraph_function_or_thunk_node and an obsolete comment.
21013 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21014 file.
21015 (build_function_decl_skip_args): Likewise.
21016 (set_new_clone_decl_and_node_flags): New function.
21017 (duplicate_thunk_for_node): Likewise.
21018 (redirect_edge_duplicating_thunks): Likewise.
21019 (cgraph_clone_node): New parameter args_to_skip, pass it to
21020 redirect_edge_duplicating_thunks which is called instead of
21021 cgraph_redirect_edge_callee.
21022 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21023 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21024
21025 2014-04-04 Jeff Law <law@redhat.com>
21026
21027 PR target/60657
21028 * config/arm/predicates.md (const_int_I_operand): New predicate.
21029 (const_int_M_operand): Similarly.
21030 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21031 const_int_operand.
21032 (insv_t2, extv_reg, extzv_t2): Likewise.
21033 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21034 (pop_multiple_with_writeback_and_return): Likewise.
21035 (vfp_pop_multiple_with_writeback): Likewise
21036
21037 2014-04-04 Richard Biener <rguenther@suse.de>
21038
21039 PR ipa/60746
21040 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21041 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21042 non-GIMPLE_LABELs.
21043 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21044 * gimplify.c (gimple_add_tmp_var_fn): New function.
21045 * gimple-expr.h (create_tmp_reg_fn): Declare.
21046 * gimple-expr.c (create_tmp_reg_fn): New function.
21047 * gimple-low.c (record_vars_into): Don't change cfun.
21048 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21049 code generation without cfun.
21050
21051 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21052
21053 PR bootstrap/60719
21054 * Makefile.in (install-driver): Fix shell scripting.
21055
21056 2014-04-03 Cong Hou <congh@google.com>
21057
21058 PR tree-optimization/60505
21059 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21060 threshold of number of iterations below which no vectorization
21061 will be done.
21062 * tree-vect-loop.c (new_loop_vec_info):
21063 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21064 * tree-vect-loop.c (vect_analyze_loop_operations):
21065 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21066 * tree-vect-loop.c (vect_transform_loop):
21067 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21068 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21069 of iterations of the loop and see if we should build the epilogue.
21070
21071 2014-04-03 Richard Biener <rguenther@suse.de>
21072
21073 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21074 (streamer_tree_cache_create): Adjust.
21075 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21076 to allow optional nodes array.
21077 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21078 (streamer_tree_cache_append): Likewise.
21079 (streamer_tree_cache_create): Create nodes array optionally
21080 as specified by parameter.
21081 * lto-streamer-out.c (create_output_block): Avoid maintaining
21082 the node array in the writer cache.
21083 (DFS_write_tree): Remove assertion.
21084 (produce_asm_for_decls): Free the out decl state hash table early.
21085 * lto-streamer-in.c (lto_data_in_create): Adjust for
21086 streamer_tree_cache_create prototype change.
21087
21088 2014-04-03 Richard Biener <rguenther@suse.de>
21089
21090 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21091 set TREE_CHAIN to NULL_TREE.
21092
21093 2014-04-03 Richard Biener <rguenther@suse.de>
21094
21095 PR tree-optimization/60740
21096 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21097 over all GIMPLE_COND operands.
21098
21099 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21100
21101 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21102 (Weffc++): Remove Scott's numbering, merge lists and reference
21103 Wnon-virtual-dtor.
21104
21105 2014-04-03 Nick Clifton <nickc@redhat.com>
21106
21107 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21108 properly.
21109
21110 2014-04-03 Martin Jambor <mjambor@suse.cz>
21111
21112 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21113 mention gcc_unreachable before failing.
21114 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21115 removed symbols.
21116
21117 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21118
21119 PR ipa/60659
21120 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21121 inconsistent code and instead mark the context inconsistent.
21122 (possible_polymorphic_call_targets): For inconsistent contexts
21123 return empty complete list.
21124
21125 2014-04-02 Anthony Green <green@moxielogic.com>
21126
21127 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21128 (extendqisi2, extendhisi2): Define.
21129 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21130 (WCHAR_TYPE): Change to unsigned int.
21131
21132 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21133
21134 PR tree-optimization/60733
21135 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21136 insertion point for PHI candidates to be the end of the feeding
21137 block for the PHI argument.
21138
21139 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21140
21141 PR rtl-optimization/60650
21142 * lra-constraints.c (process_alt_operands): Decrease reject for
21143 earlyclobber matching.
21144
21145 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21146
21147 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21148
21149 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21150
21151 * config/spu/spu.c (pad_bb): Do not crash when the last
21152 insn is CODE_FOR_blockage.
21153
21154 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21155
21156 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21157 lies outside the target mode.
21158
21159 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21160
21161 PR target/60735
21162 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21163 software floating point or no floating point registers, do not
21164 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21165 in GPRs that occurs after we tested for GPRs that would never be
21166 true.
21167
21168 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21169 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21170 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21171 specifically allow DDmode, since that does not use the SPE SIMD
21172 instructions.
21173
21174 2014-04-02 Richard Biener <rguenther@suse.de>
21175
21176 PR middle-end/60729
21177 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21178 MODE_INTs. Properly use negv_optab.
21179 (expand_abs): Likewise.
21180
21181 2014-04-02 Richard Biener <rguenther@suse.de>
21182
21183 PR bootstrap/60719
21184 * Makefile.in (install-driver): Guard extra installs with special
21185 names properly.
21186
21187 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21188
21189 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21190 Document vec_vgbbd.
21191
21192 2014-04-01 Richard Henderson <rth@redhat.com>
21193
21194 PR target/60704
21195 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21196 alternative enabled before register allocation.
21197
21198 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21199
21200 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21201 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21202 typo.
21203 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21204 (nios2_got_address): Update nios2_large_got_address call site.
21205 (nios2_delegitimize_address): New function.
21206 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21207 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21208 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21209
21210 2014-04-01 Martin Husemann <martin@duskware.de>
21211
21212 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21213 for -mabi=32.
21214
21215 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21216
21217 PR rtl-optimization/60604
21218 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21219 check from register_operand.
21220 (register_operand): Redefine in terms of general_operand.
21221 (nonmemory_operand): Use register_operand for the non-constant cases.
21222
21223 2014-04-01 Richard Biener <rguenther@suse.de>
21224
21225 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21226
21227 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21228
21229 * doc/invoke.texi (mapp-regs): Clarify.
21230
21231 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21232
21233 * config/i386/avx512fintrin.h (__v32hi): Define type.
21234 (__v64qi): Likewise.
21235 (_mm512_set1_epi8): Define.
21236 (_mm512_set1_epi16): Define.
21237 (_mm512_set4_epi32): Define.
21238 (_mm512_set4_epi64): Define.
21239 (_mm512_set4_pd): Define.
21240 (_mm512_set4_ps): Define.
21241 (_mm512_setr4_epi64): Define.
21242 (_mm512_setr4_epi32): Define.
21243 (_mm512_setr4_pd): Define.
21244 (_mm512_setr4_ps): Define.
21245 (_mm512_setzero_epi32): Define.
21246
21247 2014-03-31 Martin Jambor <mjambor@suse.cz>
21248
21249 PR middle-end/60647
21250 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21251 callsite_arguments_match_p. Updated all callers. Also check types of
21252 corresponding formal parameters and actual arguments.
21253 (not_all_callers_have_enough_arguments_p) Renamed to
21254 some_callers_have_mismatched_arguments_p.
21255
21256 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21257
21258 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21259
21260 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21261
21262 PR target/60034
21263 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21264 section anchor.
21265
21266 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21267
21268 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21269 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21270 Split out
21271 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21272 Use FMAMODE_NOVF512 mode iterator.
21273 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21274 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21275 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21276 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21277 Split out
21278 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21279 Use VF_128_256 mode iterator.
21280 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21281 Ditto.
21282
21283 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21284
21285 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21286 static chain if needed.
21287
21288 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21289
21290 PR target/60697
21291 * lra-constraints.c (index_part_to_reg): New.
21292 (process_address): Use it.
21293
21294 2014-03-27 Jeff Law <law@redhat.com>
21295 Jakub Jelinek <jakub@redhat.com>
21296
21297 PR target/60648
21298 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21299 gen_rtx_{PLUS,MULT} to build up the address expression.
21300
21301 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21302 creating non-canonical RTL.
21303
21304 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21305
21306 PR ipa/60243
21307 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21308 functions; reorganize to make cheap checks first.
21309 (inline_small_functions): Do not estimate growth when dumping;
21310 it is expensive.
21311 * ipa-inline.h (inline_summary): Add min_size.
21312 (growth_likely_positive): New function.
21313 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21314 (set_cond_stmt_execution_predicate): Cleanup.
21315 (estimate_edge_size_and_time): Compute min_size.
21316 (estimate_calls_size_and_time): Likewise.
21317 (estimate_node_size_and_time): Likewise.
21318 (inline_update_overall_summary): Update min_size.
21319 (do_estimate_edge_time): Likewise.
21320 (do_estimate_edge_size): Update.
21321 (do_estimate_edge_hints): Update.
21322 (growth_likely_positive): New function.
21323
21324 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21325
21326 PR target/60693
21327 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21328 also if addr has VOIDmode.
21329
21330 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21331
21332 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21333 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21334 Declare extern.
21335 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21336 instructions as well as AdvancedSIMD loads.
21337
21338 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21339
21340 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21341 Use crypto_aese type.
21342 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21343 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21344 crypto_aese, crypto_aesmc. Move to types.md.
21345 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21346 crypto_aesmc.
21347 * config/arm/iterators.md (crypto_type): Likewise.
21348
21349 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21350
21351 * cgraph.c: Include expr.h and tree-dfa.h.
21352 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21353 remove LHS.
21354
21355 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21356
21357 PR target/60675
21358 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21359 regs from checking multi-reg pseudos.
21360
21361 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21362
21363 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21364
21365 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21366
21367 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21368 if it would clobber the stack pointer, even temporarily.
21369
21370 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21371
21372 * mode-switching.c: Make small adjustments to the top comment.
21373
21374 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21375
21376 * config/rs6000/constraints.md (wD constraint): New constraint to
21377 match the constant integer to get the top DImode/DFmode out of a
21378 vector in a VSX register.
21379
21380 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21381 match the constant integer to get the top DImode/DFmode out of a
21382 vector in a VSX register.
21383
21384 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21385 for ISA 2.07.
21386
21387 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21388 vbpermq builtins.
21389
21390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21391 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21392
21393 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21394 Optimize vec_extract of 64-bit values, where the value being
21395 extracted is in the top word, where we can use scalar
21396 instructions. Add direct move and store support. Combine the big
21397 endian/little endian vector select load support into a single insn.
21398 (vsx_extract_<mode>_internal1): Likewise.
21399 (vsx_extract_<mode>_internal2): Likewise.
21400 (vsx_extract_<mode>_load): Likewise.
21401 (vsx_extract_<mode>_store): Likewise.
21402 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21403 combined into vsx_extract_<mode>_load.
21404 (vsx_extract_<mode>_one_le): Likewise.
21405
21406 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21407 define the top 64-bit vector element.
21408
21409 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21410 constraint.
21411
21412 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21413 Document vec_vbpermq builtin.
21414
21415 PR target/60672
21416 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21417 enable use of xxsldwi and xxpermdi builtin functions.
21418 (vec_xxpermdi): Likewise.
21419
21420 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21421 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21422
21423 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21424
21425 PR rtl-optimization/60650
21426 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21427 first_p. Use it.
21428 (find_spills_for): New.
21429 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21430 Spill all pseudos on the second iteration.
21431
21432 2014-03-27 Marek Polacek <polacek@redhat.com>
21433
21434 PR c/50347
21435 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21436 types.
21437
21438 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21439
21440 * config/s390/s390.c (s390_can_use_return_insn): Check for
21441 call-saved FPRs on 31 bit.
21442
21443 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21444
21445 PR middle-end/60682
21446 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21447 if they need regimplification, just drop them instead of
21448 calling gimple_regimplify_operands on them.
21449
21450 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21451
21452 PR target/60580
21453 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21454 (aarch64_frame_pointer_required): Adjust logic.
21455 (aarch64_can_eliminate): Adjust logic.
21456 (aarch64_override_options_after_change): Adjust logic.
21457
21458 2014-03-27 Dehao Chen <dehao@google.com>
21459
21460 * ipa-inline.c (early_inliner): Update node's inline info.
21461
21462 2014-03-26 Dehao Chen <dehao@google.com>
21463
21464 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21465 compiler inserted conditional jumps for NAN float check.
21466
21467 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21468
21469 * ubsan.h (ubsan_create_data): Change second argument's type
21470 to const location_t *.
21471 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21472 _("<unknown>").
21473 (ubsan_create_data): Change second argument to const location_t *PLOC.
21474 Create Loc field whenever PLOC is non-NULL.
21475 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21476 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21477 callers.
21478
21479 PR other/59545
21480 * real.c (real_to_integer2): Change type of low to UHWI.
21481
21482 2014-03-26 Tobias Burnus <burnus@net-b.de>
21483
21484 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21485 (CILK_SELF_SPECS): New define.
21486 (driver_self_specs): Use it.
21487
21488 2014-03-26 Richard Biener <rguenther@suse.de>
21489
21490 * tree-pretty-print.c (percent_K_format): Implement special
21491 case for LTO and its stripped down BLOCK tree.
21492
21493 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21494
21495 PR sanitizer/60636
21496 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21497
21498 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21499 one range is range_int_cst_p, but not both, at least optimize
21500 addition/subtraction of 0 and multiplication by 0 or 1.
21501 * gimple-fold.c (gimple_fold_call): Fold
21502 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21503 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21504 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21505
21506 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21507
21508 PR rtl-optimization/60452
21509 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21510 <case REG>: Return 1 for invalid offsets from the frame pointer.
21511
21512 2014-03-26 Marek Polacek <polacek@redhat.com>
21513
21514 PR c/37428
21515 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21516 a structure/union.
21517
21518 2014-03-26 Marek Polacek <polacek@redhat.com>
21519
21520 PR c/39525
21521 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21522 field members.
21523
21524 2014-03-26 Marek Polacek <polacek@redhat.com>
21525
21526 PR other/59545
21527 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21528 multiplication in unsigned type.
21529
21530 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21531
21532 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21533
21534 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21535
21536 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21537
21538 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21539
21540 PR ipa/60315
21541 * cif-code.def (UNREACHABLE) New code.
21542 * ipa-inline.c (inline_small_functions): Skip edges to
21543 __builtlin_unreachable.
21544 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21545 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21546 predicate to __bulitin_unreachable.
21547 (set_cond_stmt_execution_predicate): Fix issue when
21548 invert_tree_comparison returns ERROR_MARK.
21549 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21550 propagate to inline clones.
21551 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21552 to unreachable.
21553 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21554 * cgraphclones.c (cgraph_clone_node): If call destination is already
21555 ureachable, do not redirect it back.
21556 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21557 unreachable.
21558
21559 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21560
21561 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21562 Do not modify inline clones.
21563
21564 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21565
21566 * config/i386/i386.md (general_sext_operand): New mode attr.
21567 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21568 don't generate (sign_extend (const_int)).
21569 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21570 operands[2]. Use We constraint instead of <i> and
21571 <general_sext_operand> predicate instead of <general_operand>.
21572 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21573 * config/i386/constraints.md (We): New constraint.
21574 * config/i386/predicates.md (x86_64_sext_operand,
21575 sext_operand): New predicates.
21576
21577 2014-03-25 Martin Jambor <mjambor@suse.cz>
21578
21579 PR ipa/60600
21580 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21581 inconsistent devirtualizations to __builtin_unreachable.
21582
21583 2014-03-25 Marek Polacek <polacek@redhat.com>
21584
21585 PR c/35449
21586 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21587
21588 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21589
21590 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21591 order of elements for big-endian.
21592
21593 2014-03-25 Richard Biener <rguenther@suse.de>
21594
21595 PR middle-end/60635
21596 * gimplify-me.c (gimple_regimplify_operands): Update the
21597 re-gimplifed stmt.
21598
21599 2014-03-25 Martin Jambor <mjambor@suse.cz>
21600
21601 PR ipa/59176
21602 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21603 (lto_output_varpool_node): Likewise.
21604 (input_overwrite_node): Likewise.
21605 (input_varpool_node): Likewise.
21606
21607 2014-03-25 Richard Biener <rguenther@suse.de>
21608
21609 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21610 (run_gcc): Likewise.
21611
21612 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21613
21614 * combine.c (simplify_compare_const): Add MODE argument.
21615 Handle mode_width 0 as very large mode_width.
21616 (try_combine, simplify_comparison): Adjust callers.
21617
21618 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21619 type to avoid signed integer overflow.
21620 * explow.c (plus_constant): Likewise.
21621
21622 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21623
21624 * doc/generic.texi: Correct typos.
21625
21626 2014-03-24 Tobias Burnus <burnus@net-b.de>
21627
21628 * doc/invoke.texi (-flto): Expand section about
21629 using static libraries with LTO.
21630
21631 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21632
21633 PR rtl-optimization/60501
21634 * optabs.def (addptr3_optab): New optab.
21635 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21636 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21637 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21638
21639 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21640
21641 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21642
21643 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21644
21645 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21646 _mm512_set1_pd.
21647
21648 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21649 (_mm256_undefined_ps): Define.
21650 (_mm256_undefined_pd): Define.
21651 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21652 (_mm_undefined_pd): Define.
21653 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21654 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21655 (_mm512_undefined_ps): Define.
21656 (_mm512_undefined_pd): Define.
21657 Use _mm*_undefined_*.
21658 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21659
21660 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21661
21662 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21663 (lshr_simd): DI mode added.
21664 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21665 (aarch64_ushr_simddi): Likewise.
21666 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21667 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21668 (vshrd_n_u64): Likewise.
21669
21670 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21671
21672 * Makefile.in (s-macro_list): Depend on cc1.
21673
21674 2014-03-23 Teresa Johnson <tejohnson@google.com>
21675
21676 * ipa-utils.c (ipa_print_order): Use specified dump file.
21677
21678 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21679
21680 PR rtl-optimization/60601
21681 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21682
21683 * gcc.c (eval_spec_function): Initialize save_growing_value.
21684
21685 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21686
21687 PR sanitizer/60613
21688 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21689 code == MINUS_EXPR, never swap op0 with op1.
21690
21691 * toplev.c (init_local_tick): Avoid signed integer multiplication
21692 overflow.
21693 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21694 shift by first operand's bitsize.
21695
21696 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21697
21698 PR target/60610
21699 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21700 redefine to 1 or 0.
21701 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21702 TARGET_ISA_64BIT_P(x).
21703
21704 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21705
21706 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21707 pattern for vector nor instead of subtract from splat(-1).
21708 (altivec_expand_vec_perm_const_le): Likewise.
21709
21710 2014-03-21 Richard Henderson <rth@twiddle.net>
21711
21712 PR target/60598
21713 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21714 related insns after epilogue_completed.
21715
21716 2014-03-21 Martin Jambor <mjambor@suse.cz>
21717
21718 PR ipa/59176
21719 * cgraph.h (symtab_node): New flag body_removed.
21720 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21721 when removing bodies.
21722 * symtab.c (dump_symtab_base): Dump body_removed flag.
21723 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21724 had their bodies removed.
21725
21726 2014-03-21 Martin Jambor <mjambor@suse.cz>
21727
21728 PR ipa/60419
21729 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21730 in the border.
21731
21732 2014-03-21 Richard Biener <rguenther@suse.de>
21733
21734 PR tree-optimization/60577
21735 * tree-core.h (struct tree_base): Document nothrow_flag use
21736 in DECL_NONALIASED.
21737 * tree.h (DECL_NONALIASED): New.
21738 (may_be_aliased): Adjust.
21739 * coverage.c (build_var): Set DECL_NONALIASED.
21740
21741 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21742
21743 * expr.c (expand_expr_real_1): Remove outdated comment.
21744
21745 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21746
21747 PR middle-end/60597
21748 * ira.c (adjust_cleared_regs): Call copy_rtx on
21749 *reg_equiv[REGNO (loc)].src_p before passing it to
21750 simplify_replace_fn_rtx.
21751
21752 PR target/60568
21753 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21754 into CONST, put pic register as first operand of PLUS. Use
21755 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21756
21757 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21758
21759 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21760
21761 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21762
21763 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21764 around for store forwarding issue in the FPU on the UT699.
21765 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21766 loads and operations if -mfix-ut699 is specified.
21767 (divtf3_hq): Tweak attribute.
21768 (sqrttf2_hq): Likewise.
21769
21770 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21771
21772 * calls.c (store_one_arg): Remove incorrect const qualification on the
21773 type of the temporary.
21774 * cfgexpand.c (expand_return): Likewise.
21775 * expr.c (expand_constructor): Likewise.
21776 (expand_expr_real_1): Likewise.
21777
21778 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21779
21780 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21781 of parts.
21782
21783 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21784
21785 PR target/60039
21786 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21787
21788 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21789
21790 * config/arm/aarch-common-protos.h
21791 (alu_cost_table): Fix spelling of "extend".
21792 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21793
21794 2014-03-19 Richard Biener <rguenther@suse.de>
21795
21796 PR middle-end/60553
21797 * tree-core.h (tree_type_common): Re-order pointer members
21798 to reduce recursion depth during GC walks.
21799
21800 2014-03-19 Marek Polacek <polacek@redhat.com>
21801
21802 PR sanitizer/60569
21803 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21804 before accessing it.
21805
21806 2014-03-19 Richard Biener <rguenther@suse.de>
21807
21808 PR lto/59543
21809 * lto-streamer-in.c (input_function): In WPA stage do not drop
21810 debug stmts.
21811
21812 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21813
21814 PR tree-optimization/60559
21815 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21816 with build_zero_cst assignment.
21817
21818 2014-03-18 Kai Tietz <ktietz@redhat.com>
21819
21820 PR rtl-optimization/56356
21821 * sdbout.c (sdbout_parms): Verify that parms'
21822 incoming argument is valid.
21823 (sdbout_reg_parms): Likewise.
21824
21825 2014-03-18 Richard Henderson <rth@redhat.com>
21826
21827 PR target/60562
21828 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21829 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21830 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21831
21832 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21833
21834 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21835 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21836 Italicize plugin event names in description. Explain that
21837 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21838 Remind that no GCC functions should be called after PLUGIN_FINISH.
21839 Explain what pragmas with expansion are.
21840
21841 2014-03-18 Martin Liska <mliska@suse.cz>
21842
21843 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21844 gimple call statement is update.
21845 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21846 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21847
21848 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21849
21850 PR sanitizer/60557
21851 * ubsan.c (ubsan_instrument_unreachable): Call
21852 initialize_sanitizer_builtins.
21853 (ubsan_pass): Likewise.
21854
21855 PR sanitizer/60535
21856 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21857 varpool_finalize_decl instead of rest_of_decl_compilation.
21858
21859 2014-03-18 Richard Biener <rguenther@suse.de>
21860
21861 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21862 by using bitmap_and_compl instead of bitmap_and_compl_into.
21863 (df_rd_transfer_function): Likewise.
21864
21865 2014-03-18 Richard Biener <rguenther@suse.de>
21866
21867 * doc/lto.texi (fresolution): Fix typo.
21868
21869 2014-03-18 Richard Biener <rguenther@suse.de>
21870
21871 * doc/invoke.texi (flto): Update for changes in 4.9.
21872
21873 2014-03-18 Richard Biener <rguenther@suse.de>
21874
21875 * doc/loop.texi: Remove section on the removed lambda framework.
21876 Update loop docs with recent changes in preserving loop structure.
21877
21878 2014-03-18 Richard Biener <rguenther@suse.de>
21879
21880 * doc/lto.texi (-fresolution): Document.
21881
21882 2014-03-18 Richard Biener <rguenther@suse.de>
21883
21884 * doc/contrib.texi: Adjust my name.
21885
21886 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21887
21888 PR ipa/58721
21889 * internal-fn.c: Include diagnostic-core.h.
21890 (expand_BUILTIN_EXPECT): New function.
21891 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21892 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21893 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21894 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21895 IFN_BUILTIN_EXPECT.
21896 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21897 Revert 3 argument __builtin_expect code.
21898 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21899 * gimple-fold.c (gimple_fold_call): Likewise.
21900 * tree.h (fold_builtin_expect): New prototype.
21901 * builtins.c (build_builtin_expect_predicate): Add predictor
21902 argument, if non-NULL, create 3 argument __builtin_expect.
21903 (fold_builtin_expect): No longer static. Add ARG2 argument,
21904 pass it through to build_builtin_expect_predicate.
21905 (fold_builtin_2): Adjust caller.
21906 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21907 * internal-fn.def (BUILTIN_EXPECT): New.
21908
21909 2014-03-18 Tobias Burnus <burnus@net-b.de>
21910
21911 PR ipa/58721
21912 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21913 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21914 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21915
21916 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21917
21918 PR ipa/58721
21919 * predict.c (combine_predictions_for_bb): Fix up formatting.
21920 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21921 fill what it points to if non-NULL.
21922 (tree_predict_by_opcode): Adjust caller, use the predictor.
21923 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21924
21925 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21926
21927 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21928 proper constant for the store mode.
21929
21930 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21931
21932 * symtab.c (change_decl_assembler_name): Fix transparent alias
21933 chain construction.
21934
21935 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21936
21937 * config/aarch64/aarch64.c: Correct the comments about the
21938 aarch64 stack layout.
21939
21940 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21941
21942 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21943 check for GF_OMP_FOR_KIND_FOR.
21944
21945 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21946
21947 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21948 ymm and zmm register names.
21949
21950 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21951
21952 PR target/60516
21953 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21954 note creation for the 2010-08-31 changes.
21955
21956 2014-03-17 Marek Polacek <polacek@redhat.com>
21957
21958 PR middle-end/60534
21959 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21960 as -fno-tree-loop-vectorize.
21961 (expand_omp_simd): Likewise.
21962
21963 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21964
21965 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21966 (eligible_for_call_delay): New prototype.
21967 * config/sparc/sparc.c (tls_call_delay): Rename into...
21968 (eligible_for_call_delay): ...this. Return false if the instruction
21969 cannot be put in the delay slot of a branch.
21970 (eligible_for_restore_insn): Simplify.
21971 (eligible_for_return_delay): Return false if the instruction cannot be
21972 put in the delay slot of a branch and simplify.
21973 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21974 put in the delay slot of a branch.
21975 * config/sparc/sparc.md (fix_ut699): New attribute.
21976 (tls_call_delay): Delete.
21977 (in_call_delay): Reimplement.
21978 (eligible_for_sibcall_delay): Rename into...
21979 (in_sibcall_delay): ...this.
21980 (eligible_for_return_delay): Rename into...
21981 (in_return_delay): ...this.
21982 (in_branch_delay): Reimplement.
21983 (in_uncond_branch_delay): Delete.
21984 (in_annul_branch_delay): Delete.
21985
21986 2014-03-14 Richard Henderson <rth@redhat.com>
21987
21988 PR target/60525
21989 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21990 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21991 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21992 (floathi splitters): Remove.
21993 (float<SWI48x>xf2): New pattern.
21994 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21995 code that tried to handle DImode for 32-bit, but which was excluded
21996 by the pattern's condition. Drop allocation of stack temporary.
21997 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21998 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21999 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22000 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22001 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22002 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22003 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22004 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22005 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22006 (*float<SWI48x><X87MODEF>2_i387): Remove.
22007 (all float _with_temp splitters): Remove.
22008 (*float<SWI48x><MODEF>2_i387): New pattern.
22009 (*float<SWI48><MODEF>2_sse): New pattern.
22010 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22011 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22012
22013 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22014 Marek Polacek <polacek@redhat.com>
22015
22016 PR middle-end/60484
22017 * common.opt (dump_base_name_prefixed): New Variable.
22018 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22019 if x_dump_base_name_prefixed is already set, set it at the end.
22020
22021 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22022
22023 PR rtl-optimization/60508
22024 * lra-constraints.c (get_reload_reg): Add new parameter
22025 in_subreg_p.
22026 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22027 Pass the new parameter values.
22028
22029 2014-03-14 Richard Biener <rguenther@suse.de>
22030
22031 * common.opt: Revert unintented changes from r205065.
22032 * opts.c: Likewise.
22033
22034 2014-03-14 Richard Biener <rguenther@suse.de>
22035
22036 PR middle-end/60518
22037 * cfghooks.c (split_block): Properly adjust all loops the
22038 block was a latch of.
22039
22040 2014-03-14 Martin Jambor <mjambor@suse.cz>
22041
22042 PR lto/60461
22043 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22044 and simplify it.
22045
22046 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22047
22048 PR target/59396
22049 * config/avr/avr.c (avr_set_current_function): Pass function name
22050 through default_strip_name_encoding before sanity checking instead
22051 of skipping the first char of the assembler name.
22052
22053 2014-03-13 Richard Henderson <rth@redhat.com>
22054
22055 PR debug/60438
22056 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22057 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22058 * config/i386/i386-protos.h: Likewise.
22059 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22060 in the expander instead of a splitter.
22061 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22062 any possibility of requiring a memory.
22063 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22064 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22065 (fp branch splitters): Update for ix86_split_fp_branch.
22066 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22067 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22068 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22069 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22070 (*fop_<MODEF>_3_i387): Likewise.
22071 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22072 (splitters for the fop_* register patterns): Remove.
22073 (fscalexf4_i387): Rename from *fscalexf4_i387.
22074 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22075
22076 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22077
22078 PR tree-optimization/59779
22079 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22080 type for bitsize and maxsize instead of HOST_WIDE_INT.
22081
22082 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22083
22084 PR rtl-optimization/57320
22085 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22086 the CFG after thread_prologue_and_epilogue_insns.
22087
22088 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22089
22090 PR rtl-optimization/57189
22091 * lra-constraints.c (process_alt_operands): Disfavor spilling
22092 vector pseudos.
22093
22094 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22095
22096 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22097
22098 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22099
22100 PR tree-optimization/59025
22101 PR middle-end/60418
22102 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22103 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22104
22105 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22106
22107 PR target/60486
22108 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22109 calls of avr_out_plus_1.
22110
22111 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22112
22113 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22114 BB's single pred and update the father loop's latch info later.
22115
22116 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22117
22118 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22119 (VEC_M): Likewise.
22120 (VEC_N): Likewise.
22121 (VEC_R): Likewise.
22122 (VEC_base): Likewise.
22123 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22124 registers, we need to swap double words in little endian mode.
22125
22126 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22127 to be a container mode for 128-bit integer operations added in ISA
22128 2.07. Unlike TImode and PTImode, the preferred register set is
22129 the Altivec/VMX registers for the 128-bit operations.
22130
22131 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22132 declarations.
22133 (rs6000_split_128bit_ok_p): Likewise.
22134
22135 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22136 macros for creating ISA 2.07 normal and overloaded builtin
22137 functions with 3 arguments.
22138 (BU_P8V_OVERLOAD_3): Likewise.
22139 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22140 for use as overloaded functions.
22141 (VPERM_1TI_UNS): Likewise.
22142 (VSEL_1TI): Likewise.
22143 (VSEL_1TI_UNS): Likewise.
22144 (ST_INTERNAL_1ti): Likewise.
22145 (LD_INTERNAL_1ti): Likewise.
22146 (XXSEL_1TI): Likewise.
22147 (XXSEL_1TI_UNS): Likewise.
22148 (VPERM_1TI): Likewise.
22149 (VPERM_1TI_UNS): Likewise.
22150 (XXPERMDI_1TI): Likewise.
22151 (SET_1TI): Likewise.
22152 (LXVD2X_V1TI): Likewise.
22153 (STXVD2X_V1TI): Likewise.
22154 (VEC_INIT_V1TI): Likewise.
22155 (VEC_SET_V1TI): Likewise.
22156 (VEC_EXT_V1TI): Likewise.
22157 (EQV_V1TI): Likewise.
22158 (NAND_V1TI): Likewise.
22159 (ORC_V1TI): Likewise.
22160 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22161 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22162 overloaded builtin.
22163 (VADDUQM): Likewise.
22164 (VSUBCUQ): Likewise.
22165 (VADDEUQM): Likewise.
22166 (VADDECUQ): Likewise.
22167 (VSUBEUQM): Likewise.
22168 (VSUBECUQ): Likewise.
22169
22170 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22171 __int128_t and __uint128_t types.
22172 (__uint128_type): Likewise.
22173 (altivec_categorize_keyword): Add support for vector __int128_t,
22174 vector __uint128_t, vector __int128, and vector unsigned __int128
22175 as a container type for TImode operations that need to be done in
22176 VSX/Altivec registers.
22177 (rs6000_macro_to_expand): Likewise.
22178 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22179 to support 128-bit integer instructions vaddcuq, vadduqm,
22180 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22181 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22182
22183 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22184 for V1TImode, and set up preferences to use VSX/Altivec registers.
22185 Setup VSX reload handlers.
22186 (rs6000_debug_reg_global): Likewise.
22187 (rs6000_init_hard_regno_mode_ok): Likewise.
22188 (rs6000_preferred_simd_mode): Likewise.
22189 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22190 (easy_altivec_constant): Likewise.
22191 (output_vec_const_move): Likewise.
22192 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22193 simple move.
22194 (rs6000_expand_vector_extract): Likewise.
22195 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22196 addressing.
22197 (rs6000_const_vec): Add support for V1TImode.
22198 (rs6000_emit_le_vsx_load): Swap double words when loading or
22199 storing TImode/V1TImode.
22200 (rs6000_emit_le_vsx_store): Likewise.
22201 (rs6000_emit_le_vsx_move): Likewise.
22202 (rs6000_emit_move): Add support for V1TImode.
22203 (altivec_expand_ld_builtin): Likewise.
22204 (altivec_expand_st_builtin): Likewise.
22205 (altivec_expand_vec_init_builtin): Likewise.
22206 (altivec_expand_builtin): Likewise.
22207 (rs6000_init_builtins): Add support for V1TImode type. Add
22208 support for ISA 2.07 128-bit integer builtins. Define type names
22209 for the VSX/Altivec vector types.
22210 (altivec_init_builtins): Add support for overloaded vector
22211 functions with V1TImode type.
22212 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22213 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22214 external function.
22215 (rs6000_split_128bit_ok_p): Likewise.
22216 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22217 __int128_t and vector __uint128_t.
22218
22219 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22220 and mode attributes.
22221 (VSX_M): Likewise.
22222 (VSX_M2): Likewise.
22223 (VSm): Likewise.
22224 (VSs): Likewise.
22225 (VSr): Likewise.
22226 (VSv): Likewise.
22227 (VS_scalar): Likewise.
22228 (VS_double): Likewise.
22229 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22230
22231 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22232 we support the ISA 2.07 128-bit integer arithmetic instructions.
22233 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22234 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22235 and TImode types for use with the builtin functions.
22236 (V1TI_type_node): Likewise.
22237 (unsigned_V1TI_type_node): Likewise.
22238 (intTI_type_internal_node): Likewise.
22239 (uintTI_type_internal_node): Likewise.
22240
22241 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22242 128-bit builtin functions.
22243 (UNSPEC_VADDEUQM): Likewise.
22244 (UNSPEC_VADDECUQ): Likewise.
22245 (UNSPEC_VSUBCUQ): Likewise.
22246 (UNSPEC_VSUBEUQM): Likewise.
22247 (UNSPEC_VSUBECUQ): Likewise.
22248 (VM): Add V1TImode to vector mode iterators.
22249 (VM2): Likewise.
22250 (VI_unit): Likewise.
22251 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22252 (altivec_vaddcuq): Likewise.
22253 (altivec_vsubuqm): Likewise.
22254 (altivec_vsubcuq): Likewise.
22255 (altivec_vaddeuqm): Likewise.
22256 (altivec_vaddecuq): Likewise.
22257 (altivec_vsubeuqm): Likewise.
22258 (altivec_vsubecuq): Likewise.
22259
22260 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22261 mode iterators.
22262 (BOOL_128): Likewise.
22263 (BOOL_REGS_OUTPUT): Likewise.
22264 (BOOL_REGS_OP1): Likewise.
22265 (BOOL_REGS_OP2): Likewise.
22266 (BOOL_REGS_UNARY): Likewise.
22267 (BOOL_REGS_AND_CR0): Likewise.
22268
22269 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22270 128-bit integer builtin support.
22271 (vec_vadduqm): Likewise.
22272 (vec_vaddecuq): Likewise.
22273 (vec_vaddeuqm): Likewise.
22274 (vec_vsubecuq): Likewise.
22275 (vec_vsubeuqm): Likewise.
22276 (vec_vsubcuq): Likewise.
22277 (vec_vsubuqm): Likewise.
22278
22279 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22280 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22281 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22282 128-bit integer add/subtract to ISA 2.07.
22283
22284 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22285
22286 * config/arc/arc.c (arc_predicate_delay_insns):
22287 Fix third argument passed to conditionalize_nonjump.
22288
22289 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22290
22291 * config/aarch64/aarch64-builtins.c
22292 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22293 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22294 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22295 instead of __builtin_lfloor.
22296 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22297
22298 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22299
22300 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22301 (tree_ssa_ifcombine_bb_1): New function.
22302 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22303 is an empty forwarder block to then_bb or vice versa and then_bb
22304 and else_bb are effectively swapped.
22305
22306 2014-03-12 Christian Bruel <christian.bruel@st.com>
22307
22308 PR target/60264
22309 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22310 REG_CFA_DEF_CFA note.
22311 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22312 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22313
22314 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22315
22316 PR tree-optimization/60454
22317 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22318
22319 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22320
22321 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22322 Do not define target_cpu_default2 to generic.
22323 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22324 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22325 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22326
22327 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22328 Marc Glisse <marc.glisse@inria.fr>
22329
22330 PR tree-optimization/60502
22331 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22332 instead of build_low_bits_mask.
22333
22334 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22335
22336 PR middle-end/60482
22337 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22338 if there are multiple uses, but op doesn't live on E edge.
22339 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22340 clobber stmts before __builtin_unreachable.
22341
22342 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22343
22344 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22345 hard_frame_pointer_rtx.
22346 * cse.c (cse_insn): Remove volatile check.
22347 * cselib.c (cselib_process_insn): Likewise.
22348 * dse.c (scan_insn): Likewise.
22349
22350 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22351
22352 * config/arc/arc.c (conditionalize_nonjump): New function,
22353 broken out of ...
22354 (arc_ifcvt): ... this.
22355 (arc_predicate_delay_insns): Use it.
22356
22357 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22358
22359 * config/arc/predicates.md (extend_operand): During/after reload,
22360 allow const_int_operand.
22361 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22362 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22363 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22364 to "i".
22365 (umulsi3_highpart_i): Likewise.
22366
22367 2014-03-11 Richard Biener <rguenther@suse.de>
22368
22369 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22370 Add asserts to guard possible wrong-code bugs.
22371
22372 2014-03-11 Richard Biener <rguenther@suse.de>
22373
22374 PR tree-optimization/60429
22375 PR tree-optimization/60485
22376 * tree-ssa-structalias.c (set_union_with_increment): Properly
22377 take into account all fields that overlap the shifted vars.
22378 (do_sd_constraint): Likewise.
22379 (do_ds_constraint): Likewise.
22380 (get_constraint_for_ptr_offset): Likewise.
22381
22382 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22383
22384 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22385 (nios2_compute_frame_layout):
22386 Add calculation of cfun->machine->fp_save_offset.
22387 (nios2_expand_prologue): Correct setting of frame pointer register
22388 in prologue.
22389 (nios2_expand_epilogue): Update recovery of stack pointer from
22390 frame pointer accordingly.
22391 (nios2_initial_elimination_offset): Update calculation of offset
22392 for eliminating to HARD_FRAME_POINTER_REGNUM.
22393
22394 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22395
22396 PR ipa/60457
22397 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22398 cgraph_get_create_node on VAR_DECLs.
22399
22400 2014-03-10 Richard Biener <rguenther@suse.de>
22401
22402 PR middle-end/60474
22403 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22404
22405 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22406
22407 * config/vms/vms.opt (vms_float_format): New variable.
22408
22409 2014-03-08 Tobias Burnus <burnus@net-b.de>
22410
22411 * doc/invoke.texi (-fcilkplus): Update implementation status.
22412
22413 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22414 Richard Biener <rguenther@suse.de>
22415
22416 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22417 consistently accross all TUs.
22418 (run_gcc): Enable -fshort-double automatically at link at link-time
22419 and disallow override.
22420
22421 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22422
22423 PR target/58271
22424 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22425 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22426 if they can't be used.
22427
22428 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22429
22430 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22431 for Solaris 11/x86 ld.
22432 * configure: Regenerate.
22433
22434 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22435
22436 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22437 (LIB_TLS_SPEC): Save as ld_tls_libs.
22438 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22439 (HAVE_AS_IX86_TLSLDM): New test.
22440 * configure, config.in: Regenerate.
22441 * config/i386/i386.c (legitimize_tls_address): Fall back to
22442 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22443 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22444 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22445 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22446
22447 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22448
22449 * common.opt (fira-loop-pressure): Mark as optimization.
22450
22451 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22452
22453 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22454 an OpenMP mappable type.
22455
22456 2014-03-06 Matthias Klose <doko@ubuntu.com>
22457
22458 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22459 MULTILIB_OSDIRNAMES is not defined.
22460
22461 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22462 Meador Inge <meadori@codesourcery.com>
22463
22464 PR target/58595
22465 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22466 (arm_legitimize_address): Call legitimize_tls_address for any
22467 arm_tls_referenced_p expression, handle constant addend. Call it
22468 before testing for !TARGET_ARM.
22469 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22470
22471 2014-03-06 Richard Biener <rguenther@suse.de>
22472
22473 PR middle-end/60445
22474 PR lto/60424
22475 PR lto/60427
22476 Revert
22477 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22478
22479 * tree-streamer.c (record_common_node): Assert we don't record
22480 nodes with type double.
22481 (preload_common_node): Skip type double, complex double and double
22482 pointer since it is now frontend dependent due to fshort-double option.
22483
22484 2014-03-06 Richard Biener <rguenther@suse.de>
22485
22486 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22487 or -fno-lto is specified and the linker has full plugin support.
22488 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22489 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22490 * lto-wrapper.c (merge_and_complain): Merge compile-time
22491 optimization levels.
22492 (run_gcc): And pass it through to the link options.
22493
22494 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22495
22496 PR debug/60381
22497 Revert:
22498 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22499 PR debug/59992
22500 * cselib.c (remove_useless_values): Skip to avoid quadratic
22501 behavior if the condition moved from...
22502 (cselib_process_insn): ... here holds.
22503
22504 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22505
22506 PR plugins/59335
22507 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22508 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22509
22510 PR plugins/59335
22511 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22512 (TM_H): Add x86-tune.def.
22513
22514 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22515
22516 * config/aarch64/aarch64.c (generic_tunings):
22517 Use cortexa57_extra_costs.
22518
22519 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22520
22521 PR lto/60404
22522 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22523 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22524 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22525 cost for in_lto_p.
22526
22527 2014-03-04 Heiher <r@hev.cc>
22528
22529 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22530 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22531
22532 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22533
22534 * config/i386/predicates.md (const2356_operand): Change to ...
22535 (const2367_operand): ... this.
22536 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22537 const2367_operand.
22538 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22539 (*avx512pf_scatterpf<mode>sf): Ditto.
22540 (avx512pf_scatterpf<mode>df): Ditto.
22541 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22542 (*avx512pf_scatterpf<mode>df): Ditto.
22543 * config/i386/i386.c (ix86_expand_builtin): Update
22544 incorrect hint operand error message.
22545
22546 2014-03-04 Richard Biener <rguenther@suse.de>
22547
22548 * lto-section-in.c (lto_get_section_data): Fix const cast.
22549
22550 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22551
22552 * tree-streamer.c (record_common_node): Assert we don't record
22553 nodes with type double.
22554 (preload_common_node): Skip type double, complex double and double
22555 pointer since it is now frontend dependent due to fshort-double option.
22556
22557 2014-03-04 Richard Biener <rguenther@suse.de>
22558
22559 PR lto/60405
22560 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22561 (lto_input_toplevel_asms): Likewise.
22562 * lto-section-in.c (lto_get_section_data): Instead do it here
22563 for every section.
22564
22565 2014-03-04 Richard Biener <rguenther@suse.de>
22566
22567 PR tree-optimization/60382
22568 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22569 dead PHIs a reduction.
22570
22571 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22572
22573 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22574 hint value.
22575 (_mm_prefetch): Move out of GCC target("sse") pragma.
22576 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22577 GCC target("prfchw") pragma.
22578 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22579 for locality <= 2.
22580 * config/i386/i386.c (ix86_option_override_internal): Enable
22581 -mprfchw with -mprefetchwt1.
22582
22583 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22584
22585 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22586 Mark as varying.
22587
22588 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22589
22590 * opts.h (CL_PCH_IGNORE): Define.
22591 * targhooks.c (option_affects_pch_p):
22592 Return false for options that have CL_PCH_IGNORE set.
22593 * opt-functions.awk: Process PchIgnore.
22594 * doc/options.texi: Document PchIgnore.
22595
22596 * config/arc/arc.opt (misize): Add PchIgnore property.
22597
22598 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22599
22600 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22601 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22602 constraint on constants to permit them being loaded into
22603 GENERAL_REGS or BASE_REGS.
22604
22605 2014-03-03 Nick Clifton <nickc@redhat.com>
22606
22607 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22608 anti-cacnonical alternatives.
22609 (negandhi3_real): New pattern.
22610 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22611
22612 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22613
22614 * config/avr/avr-mcus.def: Remove atxmega16x1.
22615 * config/avr/avr-tables.opt: Regenerate.
22616 * config/avr/t-multilib: Regenerate.
22617 * doc/avr-mmcu.texi: Regenerate.
22618
22619 2014-03-03 Tobias Grosser <tobias@grosser.es>
22620 Mircea Namolaru <mircea.namolaru@inria.fr>
22621
22622 PR tree-optimization/58028
22623 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22624 scalar dimensions.
22625
22626 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22627
22628 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22629 not handled by recognizers.
22630
22631 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22632
22633 PR middle-end/60175
22634 * function.c (expand_function_end): Don't emit
22635 clobber_return_register sequence if clobber_after is a BARRIER.
22636 * cfgexpand.c (construct_exit_block): Append instructions before
22637 return_label to prev_bb.
22638
22639 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22640
22641 * config/rs6000/constraints.md: Document reserved use of "wc".
22642
22643 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22644
22645 PR ipa/60150
22646 * ipa.c (function_and_variable_visibility): When dissolving comdat
22647 group, also set all symbols to local.
22648
22649 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22650
22651 PR ipa/60306
22652
22653 Revert:
22654 2013-12-14 Jan Hubicka <jh@suse.cz>
22655 PR middle-end/58477
22656 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22657
22658 2014-03-02 Jon Beniston <jon@beniston.com>
22659
22660 PR bootstrap/48230
22661 PR bootstrap/50927
22662 PR bootstrap/52466
22663 PR target/46898
22664 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22665 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22666 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22667 (simple_return, *simple_return): New patterns
22668 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22669 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22670
22671 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22672
22673 * dwarf2out.c (gen_subprogram_die): Tidy.
22674
22675 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22676
22677 PR target/60071
22678 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22679 (*mov_t_msb_neg_negc): ... this new insn.
22680
22681 2014-02-28 Jason Merrill <jason@redhat.com>
22682
22683 PR c++/58678
22684 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22685 function.
22686
22687 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22688
22689 PR c++/60314
22690 * dwarf2out.c (decltype_auto_die): New static.
22691 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22692 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22693 (is_cxx_auto): Likewise.
22694
22695 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22696
22697 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22698 we are not using general regs only.
22699
22700 2014-02-28 Richard Biener <rguenther@suse.de>
22701
22702 PR target/60280
22703 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22704 previous fix and only allow to remove trivial pre-headers
22705 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22706 (remove_forwarder_block): Properly update the latch of a loop.
22707
22708 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22709
22710 PR debug/59992
22711 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22712 (cselib_preserved_hash_table): New.
22713 (preserve_constants_and_equivs): Move preserved vals to it.
22714 (cselib_find_slot): Look it up first.
22715 (cselib_init): Initialize it.
22716 (cselib_finish): Release it.
22717 (dump_cselib_table): Dump it.
22718
22719 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22720
22721 PR debug/59992
22722 * cselib.c (remove_useless_values): Skip to avoid quadratic
22723 behavior if the condition moved from...
22724 (cselib_process_insn): ... here holds.
22725
22726 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22727
22728 PR debug/57232
22729 * var-tracking.c (vt_initialize): Apply the same condition to
22730 preserve the CFA base value.
22731
22732 2014-02-28 Joey Ye <joey.ye@arm.com>
22733
22734 PR target/PR60169
22735 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22736 if reload in progress or completed.
22737
22738 2014-02-28 Tobias Burnus <burnus@net-b.de>
22739
22740 PR middle-end/60147
22741 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22742 NAMELIST_DECL.
22743
22744 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22745
22746 * doc/tm.texi.in (Condition Code Status): Update documention for
22747 relative locations of cc0-setter and cc0-user.
22748
22749 2014-02-27 Jeff Law <law@redhat.com>
22750
22751 PR rtl-optimization/52714
22752 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22753 into two independent simple sets, if I3 is a jump, ensure the
22754 pattern we place into I3 is a (set (pc) ...).
22755
22756 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22757 Jeff Law <law@redhat.com>
22758
22759 PR rtl-optimization/49847
22760 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22761 are in different blocks.
22762 * doc/tm.texi (Condition Code Status): Update documention for
22763 relative locations of cc0-setter and cc0-user.
22764
22765 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22766
22767 PR target/59222
22768 * lra.c (lra_emit_add): Check SUBREG too.
22769
22770 2014-02-27 Andreas Schwab <schwab@suse.de>
22771
22772 * config/m68k/m68k.c (m68k_option_override): Disable
22773 -flive-range-shrinkage for classic m68k.
22774 (m68k_override_options_after_change): Likewise.
22775
22776 2014-02-27 Marek Polacek <polacek@redhat.com>
22777
22778 PR middle-end/59223
22779 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22780 -Wmaybe-uninitialized.
22781
22782 2014-02-27 Alan Modra <amodra@gmail.com>
22783
22784 PR target/57936
22785 * reload1.c (emit_input_reload_insns): When reload_override_in,
22786 set old to rl->in_reg when rl->in_reg is a subreg.
22787
22788 2014-02-26 Richard Biener <rguenther@suse.de>
22789
22790 PR bootstrap/60343
22791 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22792
22793 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22794
22795 * common/config/i386/predicates.md (const1256_operand): Remove.
22796 (const2356_operand): New.
22797 (const_1_to_2_operand): Remove.
22798 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22799 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22800 (*avx512pf_gatherpf<mode>sf): Ditto.
22801 (avx512pf_gatherpf<mode>df): Ditto.
22802 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22803 (*avx512pf_gatherpf<mode>df): Ditto.
22804 (avx512pf_scatterpf<mode>sf): Ditto.
22805 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22806 (*avx512pf_scatterpf<mode>sf): Ditto.
22807 (avx512pf_scatterpf<mode>df): Ditto.
22808 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22809 (*avx512pf_scatterpf<mode>df): Ditto.
22810 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22811
22812 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22813
22814 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22815 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22816 (_mm512_mask_testn_epi64_mask): Move to ...
22817 * config/i386/avx512cdintrin.h: Here.
22818 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22819 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22820 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22821 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22822 TARGET_AVX512F from TARGET_AVX512CD.
22823
22824 2014-02-26 Richard Biener <rguenther@suse.de>
22825
22826 PR ipa/60327
22827 * ipa.c (walk_polymorphic_call_targets): Properly guard
22828 call to inline_update_overall_summary.
22829
22830 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22831
22832 PR target/60280
22833 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22834 and latches only if requested. Fix latch if it is removed.
22835 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22836 LOOPS_HAVE_PREHEADERS.
22837
22838 2014-02-25 Andrew Pinski <apinski@cavium.com>
22839
22840 * builtins.c (expand_builtin_thread_pointer): Create a new target
22841 when the target is NULL.
22842
22843 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22844
22845 PR rtl-optimization/60317
22846 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22847 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22848 * lra-assigns.c: Include params.h.
22849 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22850 other reload pseudos considerations.
22851
22852 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22853
22854 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22855 to use canonical form for nor<mode>3.
22856
22857 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22858
22859 PR target/55426
22860 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22861 conversions.
22862
22863 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22864
22865 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22866 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22867 (ix86_handle_option): Handle OPT_mprefetchwt1.
22868 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22869 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22870 PREFETCHWT1 CPUID.
22871 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22872 OPTION_MASK_ISA_PREFETCHWT1.
22873 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22874 (PTA_PREFETCHWT1): New.
22875 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22876 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22877 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22878 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22879 (*prefetch_avx512pf_<mode>_: Change into ...
22880 (*prefetch_prefetchwt1_<mode>: This.
22881 * config/i386/i386.opt (mprefetchwt1): New.
22882 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22883 (_mm_prefetch): Handle intent to write.
22884 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22885
22886 2014-02-25 Richard Biener <rguenther@suse.de>
22887
22888 PR middle-end/60291
22889 * emit-rtl.c (mem_attrs_htab): Remove.
22890 (mem_attrs_htab_hash): Likewise.
22891 (mem_attrs_htab_eq): Likewise.
22892 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22893 (init_emit_once): Do not allocate mem_attrs_htab.
22894
22895 2014-02-25 Richard Biener <rguenther@suse.de>
22896
22897 PR lto/60319
22898 * lto-opts.c (lto_write_options): Output non-explicit conservative
22899 -fwrapv, -fno-trapv and -fno-strict-overflow.
22900 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22901 (run_gcc): And pass them through.
22902
22903 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22904
22905 * sel-sched.c (calculate_new_fences): New parameter ptime.
22906 Calculate it as a maximum over all fence cycles.
22907 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22908 Print the final schedule timing when sched_verbose.
22909
22910 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22911
22912 PR rtl-optimization/60292
22913 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22914 bit fot the fence instruction.
22915
22916 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22917
22918 * calls.h: Fix typo in comment.
22919
22920 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22921
22922 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22923 adjusting offsetable addresses.
22924
22925 2014-02-24 Guozhi Wei <carrot@google.com>
22926
22927 * sparseset.h (sparseset_pop): Fix the wrong index.
22928
22929 2014-02-24 Walter Lee <walt@tilera.com>
22930
22931 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22932 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22933 triplet.
22934 * common/config/tilegx/tilegx-common.c
22935 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22936 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22937 (LINK_SPEC): Ditto.
22938 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22939 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22940 (tilegx_gimplify_va_arg_expr): Handle big endian.
22941 (tilegx_expand_unaligned_load): Ditto.
22942 (tilegx_expand_unaligned_store): Ditto.
22943 (TARGET_RETURN_IN_MSB): New.
22944 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22945 (TARGET_ENDIAN_DEFAULT): New.
22946 (TARGET_BIG_ENDIAN): Handle big endian.
22947 (BYTES_BIG_ENDIAN): Ditto.
22948 (WORDS_BIG_ENDIAN): Ditto.
22949 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22950 (ENDIAN_SPEC): New.
22951 (EXTRA_SPECS): New.
22952 * config/tilegx/tilegx.md (extv): Handle big endian.
22953 (extzv): Ditto.
22954 (insn_st<n>): Ditto.
22955 (insn_st<n>_add<bitsuffix>): Ditto.
22956 (insn_stnt<n>): Ditto.
22957 (insn_stnt<n>_add<bitsuffix>):Ditto.
22958 (vec_interleave_highv8qi): Handle big endian.
22959 (vec_interleave_highv8qi_be): New.
22960 (vec_interleave_highv8qi_le): New.
22961 (insn_v1int_h): Handle big endian.
22962 (vec_interleave_lowv8qi): Handle big endian.
22963 (vec_interleave_lowv8qi_be): New.
22964 (vec_interleave_lowv8qi_le): New.
22965 (insn_v1int_l): Handle big endian.
22966 (vec_interleave_highv4hi): Handle big endian.
22967 (vec_interleave_highv4hi_be): New.
22968 (vec_interleave_highv4hi_le): New.
22969 (insn_v2int_h): Handle big endian.
22970 (vec_interleave_lowv4hi): Handle big endian.
22971 (vec_interleave_lowv4hi_be): New.
22972 (vec_interleave_lowv4hi_le): New.
22973 (insn_v2int_l): Handle big endian.
22974 (vec_interleave_highv2si): Handle big endian.
22975 (vec_interleave_highv2si_be): New.
22976 (vec_interleave_highv2si_le): New.
22977 (insn_v4int_h): Handle big endian.
22978 (vec_interleave_lowv2si): Handle big endian.
22979 (vec_interleave_lowv2si_be): New.
22980 (vec_interleave_lowv2si_le): New.
22981 (insn_v4int_l): Handle big endian.
22982 * config/tilegx/tilegx.opt (mbig-endian): New option.
22983 (mlittle-endian): New option.
22984 * doc/install.texi: Document tilegxbe-linux.
22985 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22986
22987 2014-02-24 Martin Jambor <mjambor@suse.cz>
22988
22989 PR ipa/60266
22990 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22991 there are no parameter descriptors.
22992
22993 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22994
22995 PR rtl-optimization/60268
22996 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22997 initialization to ...
22998 (sched_rgn_init): ... here.
22999 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23000
23001 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23002
23003 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23004 names.
23005
23006 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23007
23008 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23009 definition.
23010
23011 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23012
23013 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23014 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23015
23016 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23017
23018 * config/microblaze/predicates.md: Add cmp_op predicate.
23019 * config/microblaze/microblaze.md: Add branch_compare instruction
23020 which uses cmp_op predicate and emits cmp insn before branch.
23021 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23022 to microblaze_expand_conditional_branch and consolidate logic.
23023 (microblaze_expand_conditional_branch): emit branch_compare
23024 insn instead of handling cmp op separate from branch insn.
23025
23026 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23027
23028 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23029 to permit subregs.
23030
23031 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23032
23033 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23034 define_insn with define_expand and new define_insn
23035 *altivec_lve<VI_char>x_internal.
23036 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23037 and new define_insn *altivec_stve<VI_char>x_internal.
23038 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23039 prototype.
23040 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23041 lve*x built-ins.
23042 (altivec_expand_stvex_be): New function.
23043
23044 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23045
23046 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23047 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23048 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23049 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23050
23051 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23052
23053 PR target/60298
23054 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23055 instead of emit_move_insn.
23056
23057 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23058
23059 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23060 vspltw with vsldoi.
23061 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23062 gen_altivec_vsumsws.
23063
23064 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23065
23066 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23067 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23068 (altivec_lvxl_<mode>): New define_expand incorporating
23069 -maltivec=be semantics where needed.
23070 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23071 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23072 semantics where needed.
23073 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23074 (altivec_stvx_<mode>): New define_expand incorporating
23075 -maltivec=be semantics where needed.
23076 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23077 VM2 iterator instead of V4SI.
23078 (altivec_stvxl_<mode>): New define_expand incorporating
23079 -maltivec=be semantics where needed.
23080 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23081 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23082 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23083 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23084 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23085 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23086 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23087 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23088 ALTIVEC_BUILTIN_STVXL.
23089 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23090 (altivec_expand_stvx_be): Likewise.
23091 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23092 (altivec_expand_lvx_be): Likewise.
23093 (altivec_expand_stvx_be): Likewise.
23094 (altivec_expand_builtin): Add cases for
23095 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23096 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23097 (altivec_init_builtins): Add definitions for
23098 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23099 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23100
23101 2014-02-21 Catherine Moore <clm@codesourcery.com>
23102
23103 * doc/invoke.texi (mvirt, mno-virt): Document.
23104 * config/mips/mips.opt (mvirt): New option.
23105 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23106
23107 2014-02-21 Richard Biener <rguenther@suse.de>
23108
23109 PR tree-optimization/60276
23110 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23111 (STMT_VINFO_MIN_NEG_DIST): New macro.
23112 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23113 STMT_VINFO_MIN_NEG_DIST.
23114 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23115 made for negative dependence distances still hold.
23116
23117 2014-02-21 Richard Biener <rguenther@suse.de>
23118
23119 PR middle-end/60291
23120 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23121 DECL_INITIAL for globals not in the current function context.
23122
23123 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23124
23125 PR tree-optimization/56490
23126 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23127 * tree-ssa-uninit.c: Include params.h.
23128 (compute_control_dep_chain): Add num_calls argument, return false
23129 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23130 num_calls to recursive call.
23131 (find_predicates): Change dep_chain into normal array,
23132 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23133 variable and adjust compute_control_dep_chain caller.
23134 (find_def_preds): Likewise.
23135
23136 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23137
23138 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23139 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23140
23141 2014-02-21 Nick Clifton <nickc@redhat.com>
23142
23143 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23144 (pushhi1): Likewise.
23145 (popqi1): Add mode to pre_dec.
23146 (pophi1): Likewise.
23147
23148 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23149
23150 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23151 mode for mask of V8SFmode permutation.
23152
23153 2014-02-20 Richard Henderson <rth@redhat.com>
23154
23155 PR c++/60272
23156 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23157 a new pseudo for OLDVAL.
23158
23159 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23160
23161 PR target/57896
23162 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23163 gen_reg_rtx if d->testing_p.
23164 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23165 if d->testing_p and we will certainly return true.
23166 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23167 if d->testing_p.
23168
23169 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23170
23171 * emit-rtl.c (gen_reg_rtx): Assert that
23172 crtl->emit.regno_pointer_align_length is non-zero.
23173
23174 2014-02-20 Richard Henderson <rth@redhat.com>
23175
23176 PR c++/60272
23177 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23178 on failure the store back into EXPECT.
23179
23180 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23181 Sandra Loosemore <sandra@codesourcery.com>
23182
23183 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23184 * config/nios2/nios2.c (nios2_function_profiler): Add
23185 -fPIC (flag_pic == 2) support.
23186 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23187 (nios2_large_offset_p): New function.
23188 (nios2_unspec_reloc_p): Move up position, update to use
23189 nios2_large_offset_p.
23190 (nios2_unspec_address): Remove function.
23191 (nios2_unspec_offset): New function.
23192 (nios2_large_got_address): New function.
23193 (nios2_got_address): Add large offset support.
23194 (nios2_legitimize_tls_address): Update usage of removed and new
23195 functions.
23196 (nios2_symbol_binds_local_p): New function.
23197 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23198 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23199 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23200 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23201 processing for (const (unspec ...)).
23202 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23203
23204 2014-02-20 Richard Biener <rguenther@suse.de>
23205
23206 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23207 doing the substitution.
23208 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23209
23210 2014-02-20 Martin Jambor <mjambor@suse.cz>
23211
23212 PR ipa/55260
23213 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23214 info when checking whether lattices are bottom.
23215
23216 2014-02-20 Richard Biener <rguenther@suse.de>
23217
23218 PR middle-end/60221
23219 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23220 regions at -O0.
23221
23222 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23223
23224 PR ipa/58555
23225 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23226 parameter specifying the scaling.
23227 (inline_call): Update.
23228 (want_inline_recursively): Guard division by zero.
23229 (recursive_inlining): Update.
23230 * ipa-inline.h (clone_inlined_nodes): Update.
23231
23232 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23233
23234 PR target/60204
23235 * config/i386/i386.c (classify_argument): Pass structures of size
23236 64 bytes or less in register.
23237
23238 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23239 Kirill Yukhin <kirill.yukhin@intel.com>
23240
23241 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23242 (_mm_rcp28_round_ss): Ditto.
23243 (_mm_rsqrt28_round_sd): Ditto.
23244 (_mm_rsqrt28_round_ss): Ditto.
23245 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23246 (_mm_rcp14_round_ss): Ditto.
23247 (_mm_rsqrt14_round_sd): Ditto.
23248 (_mm_rsqrt14_round_ss): Ditto.
23249 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23250 the first input operand, get rid of match_dup.
23251 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23252 attribute to sse.
23253 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23254 Ditto.
23255 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23256 operand as the first input operand, set type attribute.
23257 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23258 Set type attribute.
23259 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23260 operand as the first input operand, set type attribute.
23261
23262 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23263
23264 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23265 bit of zero.
23266
23267 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23268
23269 PR target/60207
23270 * config/i386/i386.c (construct_container): Remove TFmode check
23271 for X86_64_INTEGER_CLASS.
23272
23273 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23274
23275 PR target/59794
23276 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23277 only when -Wpsabi is enabled.
23278
23279 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23280
23281 PR target/59799
23282 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23283 passing arrays in registers are the same as for structs, so remove the
23284 special case for them.
23285
23286 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23287
23288 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23289 destination type, extract only the valid bits if the source type is not
23290 integral and has a different mode.
23291
23292 2014-02-19 Richard Biener <rguenther@suse.de>
23293
23294 PR ipa/60243
23295 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23296 for all calls.
23297
23298 2014-02-19 Richard Biener <rguenther@suse.de>
23299
23300 PR ipa/60243
23301 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23302 (ipa_modify_call_arguments): Emit an argument load explicitely and
23303 preserve virtual SSA form there and for the replacement call.
23304 Do not update SSA form nor free dominance info.
23305
23306 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23307
23308 * ipa.c (function_and_variable_visibility): Also clear WEAK
23309 flag when disolving COMDAT_GROUP.
23310
23311 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23312
23313 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23314 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23315 not devirtualizing.
23316 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23317 do more sanity checks.
23318 (detect_type_change): Return true when giving up early.
23319 (compute_complex_assign_jump_func): Fix type parameter of
23320 ipa_set_ancestor_jf.
23321 (compute_complex_ancestor_jump_func): Likewise.
23322 (update_jump_functions_after_inlining): Fix updating of
23323 ancestor function.
23324 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23325
23326 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23327
23328 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23329 inline clones when edge disappears.
23330
23331 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23332
23333 PR target/60203
23334 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23335 Split 64-bit moves into 2 patterns. Do not allow the use of
23336 direct move for TDmode in little endian, since the decimal value
23337 has little endian bytes within a word, but the 64-bit pieces are
23338 ordered in a big endian fashion, and normal subreg's of TDmode are
23339 not allowed.
23340 (mov<mode>_64bit_dm): Likewise.
23341 (movtd_64bit_nodm): Likewise.
23342
23343 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23344
23345 PR tree-optimization/60174
23346 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23347 statement of an SSA_NAME that occurs in an abnormal PHI node.
23348
23349 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23350
23351 PR sanitizer/60142
23352 * final.c (SEEN_BB): Remove.
23353 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23354 (final_scan_insn): Don't force_source_line on second
23355 NOTE_INSN_BASIC_BLOCK.
23356
23357 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23358
23359 PR target/60205
23360 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23361 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23362 (type_natural_mode): Warn ABI change when %zmm register is not
23363 available for AVX512F vector value passing.
23364
23365 2014-02-18 Kai Tietz <ktietz@redhat.com>
23366
23367 PR target/60193
23368 * config/i386/i386.c (ix86_expand_prologue): Use value in
23369 rax register as displacement when restoring %r10 or %rax.
23370 Fix wrong offset when restoring both registers.
23371
23372 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23373
23374 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23375 assertion with conditional return.
23376
23377 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23378 Uros Bizjak <ubizjak@gmail.com>
23379
23380 PR driver/60233
23381 * config/i386/driver-i386.c (host_detect_local_cpu): If
23382 YMM state is not saved by the OS, also clear has_f16c. Move
23383 CPUID 0x80000001 handling before YMM state saving checking.
23384
23385 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23386
23387 PR rtl-optimization/58960
23388 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23389 factored out from ...
23390 (sched_init): ... here.
23391 (free_global_sched_pressure_data): New, factored out from ...
23392 (sched_finish): ... here.
23393 * sched-int.h (free_global_sched_pressure_data): Declare.
23394 * sched-rgn.c (nr_regions_initial): New static global.
23395 (haifa_find_rgns): Initialize it.
23396 (schedule_region): Disable sched-pressure for the newly
23397 generated regions.
23398
23399 2014-02-17 Richard Biener <rguenther@suse.de>
23400
23401 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23402 release SSA defs of pattern stmts.
23403
23404 2014-02-17 Richard Biener <rguenther@suse.de>
23405
23406 * tree-inline.c (expand_call_inline): Release the virtual
23407 operand defined by the call we are about to inline.
23408
23409 2014-02-17 Richard Biener <rguenther@suse.de>
23410
23411 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23412
23413 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23414 Ilya Tocar <ilya.tocar@intel.com>
23415
23416 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23417 arguments order in builtin.
23418 (_mm512_permutexvar_epi64): Ditto.
23419 (_mm512_mask_permutexvar_epi64): Ditto
23420 (_mm512_maskz_permutexvar_epi32): Ditto
23421 (_mm512_permutexvar_epi32): Ditto
23422 (_mm512_mask_permutexvar_epi32): Ditto
23423
23424 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23425
23426 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23427 (p8_vmrgow): Likewise.
23428
23429 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23430
23431 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23432 endian targets.
23433
23434 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23435
23436 PR target/60203
23437 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23438 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23439 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23440 using direct move instructions on ISA 2.07. Also adjust
23441 instruction length for 64-bit.
23442 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23443 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23444
23445 2014-02-15 Alan Modra <amodra@gmail.com>
23446
23447 PR target/58675
23448 PR target/57935
23449 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23450 find_replacement on parts of insn rtl that might be reloaded.
23451
23452 2014-02-15 Richard Biener <rguenther@suse.de>
23453
23454 PR tree-optimization/60183
23455 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23456 (tree_ssa_phiprop): Calculate and free post-dominators.
23457
23458 2014-02-14 Jeff Law <law@redhat.com>
23459
23460 PR rtl-optimization/60131
23461 * ree.c (get_extended_src_reg): New function.
23462 (combine_reaching_defs): Use it rather than assuming location of REG.
23463 (find_and_remove_re): Verify first operand of extension is
23464 a REG before adding the insns to the copy list.
23465
23466 2014-02-14 Roland McGrath <mcgrathr@google.com>
23467
23468 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23469 * configure: Regenerated.
23470 * config.in: Regenerated.
23471 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23472 instead of ASM_SHORT.
23473
23474 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23475 Richard Earnshaw <rearnsha@arm.com>
23476
23477 PR rtl-optimization/59535
23478 * lra-constraints.c (process_alt_operands): Encourage alternative
23479 when unassigned pseudo class is superset of the alternative class.
23480 (inherit_reload_reg): Don't inherit when optimizing for code size.
23481 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23482 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23483 modes not less than 4 for Thumb1.
23484
23485 2014-02-14 Kyle McMartin <kyle@redhat.com>
23486
23487 PR pch/60010
23488 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23489
23490 2014-02-14 Richard Biener <rguenther@suse.de>
23491
23492 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23493 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23494 Do not strip INDIRECT_REFs.
23495
23496 2014-02-14 Richard Biener <rguenther@suse.de>
23497
23498 PR lto/60179
23499 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23500 DECL_FUNCTION_SPECIFIC_TARGET.
23501 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23502 * tree-streamer-out.c (pack_ts_target_option): Remove.
23503 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23504 (write_ts_function_decl_tree_pointers): Do not stream
23505 DECL_FUNCTION_SPECIFIC_TARGET.
23506 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23507 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23508 (lto_input_ts_function_decl_tree_pointers): Do not stream
23509 DECL_FUNCTION_SPECIFIC_TARGET.
23510
23511 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23512
23513 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23514 (get_initial_def_for_induction, vectorizable_induction): Ignore
23515 debug stmts when looking for exit_phi.
23516 (vectorizable_live_operation): Fix up condition.
23517
23518 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23519
23520 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23521 nreverse() because it changes the content of original tree list.
23522
23523 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23524
23525 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23526 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23527
23528 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23529
23530 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23531 GNU coding standards.
23532
23533 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23534
23535 PR debug/60152
23536 * dwarf2out.c (gen_subprogram_die): Don't call
23537 add_calling_convention_attribute if subr_die is old_die.
23538
23539 2014-02-13 Sharad Singhai <singhai@google.com>
23540
23541 * doc/optinfo.texi: Fix order of nodes.
23542
23543 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23544
23545 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23546 operands[2], not operands[3].
23547
23548 2014-02-13 Richard Biener <rguenther@suse.de>
23549
23550 PR bootstrap/59878
23551 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23552 mention the possibility of an in-tree build.
23553 (CLooG): Update recommended version to 0.18.1, mention the
23554 possibility of an in-tree build and clarify that the ISL
23555 bundled with CLooG does not work.
23556
23557 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23558
23559 PR target/43546
23560 * expr.c (compress_float_constant): If x is a hard register,
23561 extend into a pseudo and then move to x.
23562
23563 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23564
23565 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23566 caused by bad second argument to warning_at() with -mhotpatch and
23567 nested functions (e.g. with gfortran).
23568
23569 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23570
23571 * opts.c (option_name): Remove "enabled by default" rider.
23572
23573 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23574
23575 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23576
23577 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23578 Uros Bizjak <ubizjak@gmail.com>
23579
23580 PR target/60151
23581 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23582 * configure: Regenerated.
23583
23584 2014-02-12 Richard Biener <rguenther@suse.de>
23585
23586 * vec.c (vec_prefix::calculate_allocation): Move as
23587 inline variant to vec.h.
23588 (vec_prefix::calculate_allocation_1): New out-of-line version.
23589 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23590 (vec_prefix::m_has_auto_buf): Rename to ...
23591 (vec_prefix::m_using_auto_storage): ... this.
23592 (vec_prefix::calculate_allocation): Inline the easy cases
23593 and dispatch to calculate_allocation_1 which doesn't need the
23594 prefix address.
23595 (va_heap::reserve): Use gcc_checking_assert.
23596 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23597 m_using_auto_storage.
23598 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23599 member and adjust.
23600 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23601 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23602 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23603
23604 2014-02-12 Richard Biener <rguenther@suse.de>
23605
23606 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23607 when we found a dependence.
23608
23609 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23610
23611 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23612 common code...
23613 (maybe_fold_stmt): ... into this new function.
23614 * omp-low.c (lower_omp): Update comment.
23615
23616 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23617 last use.
23618
23619 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23620 dereference.
23621
23622 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23623
23624 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23625 identifiers in comments.
23626 (cortexa53_extra_costs): Likewise.
23627 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23628 (cortexa7_extra_costs): Likewise.
23629 (cortexa12_extra_costs): Likewise.
23630 (cortexa15_extra_costs): Likewise.
23631 (v7m_extra_costs): Likewise.
23632
23633 2014-02-12 Richard Biener <rguenther@suse.de>
23634
23635 PR middle-end/60092
23636 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23637 of posix_memalign being successful.
23638 (lower_stmt): Restrict lowering of posix_memalign to when
23639 -ftree-bit-ccp is enabled.
23640
23641 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23642
23643 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23644 arg_loc.
23645 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23646
23647 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23648
23649 PR rtl-optimization/60116
23650 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23651 other_insn once the combination has been validated.
23652
23653 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23654
23655 PR lto/59468
23656 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23657 and wrapper.
23658 * ipa-devirt.c: Include demangle.h
23659 (odr_violation_reported): New static variable.
23660 (add_type_duplicate): Update odr_violations.
23661 (maybe_record_node): Add completep parameter; update it.
23662 (record_target_from_binfo): Add COMPLETEP parameter;
23663 update it as needed.
23664 (possible_polymorphic_call_targets_1): Likewise.
23665 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23666 rename FINAL to COMPLETE.
23667 (record_targets_from_bases): Sanity check we found the binfo;
23668 fix COMPLETEP updating.
23669 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23670 parameter, fix computing of COMPLETEP.
23671 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23672 at LTO time do demangling.
23673 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23674 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23675 parameter.
23676 (gimple_get_virt_method_for_binfo): Likewise.
23677 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23678 gimple_get_virt_method_for_vtable): Update prototypes.
23679
23680 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23681
23682 PR target/49008
23683 * genautomata.c (add_presence_absence): Fix typo with
23684 {final_}presence_list.
23685
23686 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23687
23688 PR target/60137
23689 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23690 for VSX/Altivec vectors that land in GPR registers.
23691
23692 2014-02-11 Richard Henderson <rth@redhat.com>
23693 Jakub Jelinek <jakub@redhat.com>
23694
23695 PR debug/59776
23696 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23697 around drhs if type conversion to lacc->type is not useless.
23698
23699 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23700
23701 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23702 tuning struct.
23703 (cortex-a57.cortex-a53): Likewise.
23704 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23705
23706 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23707
23708 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23709 arm_restrict_it.
23710
23711 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23712
23713 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23714 add_options_for_arm_vfp3.
23715
23716 2014-02-11 Jeff Law <law@redhat.com>
23717
23718 PR middle-end/54041
23719 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23720 object with an undesirable mode.
23721
23722 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23723
23724 PR libgomp/60107
23725 * config/i386/sol2-9.h: New file.
23726 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23727 *-*-solaris2.9*): Use it.
23728
23729 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23730
23731 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23732 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23733
23734 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23735
23736 * config/microblaze/microblaze.c: Extend mcpu version format
23737
23738 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23739
23740 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23741
23742 2014-02-10 Richard Henderson <rth@redhat.com>
23743
23744 PR target/59927
23745 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23746 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23747 ms-abi vs -mno-accumulate-outgoing-args.
23748 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23749 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23750 respect to ms-abi.
23751
23752 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23753
23754 PR middle-end/60080
23755 * cfgexpand.c (expand_asm_operands): Attach source location to
23756 ASM_INPUT rtx objects.
23757 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23758
23759 2014-02-10 Nick Clifton <nickc@redhat.com>
23760
23761 * config/mn10300/mn10300.c (popcount): New function.
23762 (mn10300_expand_prologue): Include saved registers in stack usage
23763 count.
23764
23765 2014-02-10 Jeff Law <law@redhat.com>
23766
23767 PR middle-end/52306
23768 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23769 when changing the SET_DEST of a prior insn to avoid an input reload.
23770
23771 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23772
23773 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23774 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23775 -mcall-openbsd, or -mcall-linux.
23776 (CC1_ENDIAN_BIG_SPEC): Remove.
23777 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23778 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23779 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23780 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23781 and %cc1_endian_default.
23782 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23783
23784 2014-02-10 Richard Biener <rguenther@suse.de>
23785
23786 PR tree-optimization/60115
23787 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23788 MEM_REF handling. Properly verify that the accesses are not
23789 out of the objects bound.
23790
23791 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23792
23793 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23794 coretex to cortex.
23795
23796 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23797
23798 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23799 proper constants and fix formatting.
23800 (possible_polymorphic_call_targets): Fix formatting.
23801
23802 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23803 Ilya Tocar <ilya.tocar@intel.com>
23804
23805 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23806 (_mm512_loadu_epi32): Renamed into...
23807 (_mm512_loadu_si512): This.
23808 (_mm512_storeu_epi32): Renamed into...
23809 (_mm512_storeu_si512): This.
23810 (_mm512_maskz_ceil_ps): Removed.
23811 (_mm512_maskz_ceil_pd): Ditto.
23812 (_mm512_maskz_floor_ps): Ditto.
23813 (_mm512_maskz_floor_pd): Ditto.
23814 (_mm512_floor_round_ps): Ditto.
23815 (_mm512_floor_round_pd): Ditto.
23816 (_mm512_ceil_round_ps): Ditto.
23817 (_mm512_ceil_round_pd): Ditto.
23818 (_mm512_mask_floor_round_ps): Ditto.
23819 (_mm512_mask_floor_round_pd): Ditto.
23820 (_mm512_mask_ceil_round_ps): Ditto.
23821 (_mm512_mask_ceil_round_pd): Ditto.
23822 (_mm512_maskz_floor_round_ps): Ditto.
23823 (_mm512_maskz_floor_round_pd): Ditto.
23824 (_mm512_maskz_ceil_round_ps): Ditto.
23825 (_mm512_maskz_ceil_round_pd): Ditto.
23826 (_mm512_expand_pd): Ditto.
23827 (_mm512_expand_ps): Ditto.
23828 * config/i386/i386.c (ix86_builtins): Remove
23829 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23830 (bdesc_args): Ditto.
23831 * config/i386/predicates.md (const1256_operand): New.
23832 (const_1_to_2_operand): Ditto.
23833 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23834 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23835 (*avx512pf_gatherpf<mode>sf): Ditto.
23836 (avx512pf_gatherpf<mode>df): Ditto.
23837 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23838 (*avx512pf_gatherpf<mode>df): Ditto.
23839 (avx512pf_scatterpf<mode>sf): Ditto.
23840 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23841 (*avx512pf_scatterpf<mode>sf): Ditto.
23842 (avx512pf_scatterpf<mode>df): Ditto.
23843 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23844 (*avx512pf_scatterpf<mode>df): Ditto.
23845 (avx512f_expand<mode>): Removed.
23846 (<shift_insn><mode>3<mask_name>): Change predicate type.
23847
23848 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23849
23850 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23851 not at the end of datarefs vector use ordered_remove to avoid
23852 reordering datarefs vector.
23853
23854 PR c/59984
23855 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23856 mark local addressable non-static vars as GOVD_PRIVATE
23857 instead of GOVD_LOCAL.
23858 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23859 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23860 than copying them.
23861
23862 PR middle-end/60092
23863 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23864 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23865 assume_aligned or alloc_align attributes.
23866 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23867 arguments. Handle also assume_aligned and alloc_align attributes.
23868 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23869 calls to functions with assume_aligned or alloc_align attributes.
23870 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23871
23872 2014-02-08 Terry Guo <terry.guo@arm.com>
23873
23874 * doc/invoke.texi: Document ARM -march=armv7e-m.
23875
23876 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23877
23878 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23879 flag on __cilkrts_rethrow builtin.
23880
23881 PR ipa/60026
23882 * ipa-cp.c (determine_versionability): Fail at -O0
23883 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23884 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23885
23886 Revert:
23887 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23888
23889 PR ipa/60026
23890 * tree-inline.c (copy_forbidden): Fail for
23891 __attribute__((optimize (0))) functions.
23892
23893 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23894
23895 * varpool.c: Include pointer-set.h.
23896 (varpool_remove_unreferenced_decls): Variables in other partitions
23897 will not be output; be however careful to not lose information
23898 about partitioning.
23899
23900 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23901
23902 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23903 lookup in the vtable constructor.
23904
23905 2014-02-07 Jeff Law <law@redhat.com>
23906
23907 PR target/40977
23908 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23909 define_insn_and_split.
23910
23911 * ipa-inline.c (inline_small_functions): Fix typos.
23912
23913 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23914
23915 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23916 (s390_can_use_return_insn): Declare.
23917 * config/s390/s390.h (EPILOGUE_USES): Define.
23918 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23919 instructions.
23920 (s390_chunkify_start): Handle return JUMP_LABELs.
23921 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23922 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23923 (s390_can_use_return_insn): New functions.
23924 (s390_fix_long_loop_prediction): Handle conditional returns.
23925 (TARGET_SET_UP_BY_PROLOGUE): Define.
23926 * config/s390/s390.md (ANY_RETURN): New code iterator.
23927 (*creturn, *csimple_return, return, simple_return): New patterns.
23928
23929 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23930
23931 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23932 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23933 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23934 REG_CFA_RESTORE list when deciding not to restore a register.
23935
23936 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23937
23938 * config/s390/s390.c: Include tree-pass.h and context.h.
23939 (s390_early_mach): New function, split out from...
23940 (s390_emit_prologue): ...here.
23941 (pass_data_s390_early_mach): New pass structure.
23942 (pass_s390_early_mach): New class.
23943 (s390_option_override): Create and register early_mach pass.
23944 Move to end of file.
23945
23946 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23947
23948 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23949 to match for the exit block.
23950
23951 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23952
23953 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23954 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23955 Reject misaligned operands.
23956
23957 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23958
23959 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23960
23961 2014-02-07 Richard Biener <rguenther@suse.de>
23962
23963 PR middle-end/60092
23964 * gimple-low.c (lower_builtin_posix_memalign): New function.
23965 (lower_stmt): Call it to lower posix_memalign in a way
23966 to make alignment info accessible.
23967
23968 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23969
23970 PR c++/60082
23971 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23972 __builtin_setjmp_receiver.
23973
23974 2014-02-07 Richard Biener <rguenther@suse.de>
23975
23976 PR middle-end/60092
23977 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23978 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23979 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23980 Handle BUILT_IN_POSIX_MEMALIGN.
23981 (find_func_clobbers): Likewise.
23982 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23983 (call_may_clobber_ref_p_1): Likewise.
23984
23985 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23986
23987 PR ipa/59918
23988 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23989 sanity check.
23990
23991 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23992
23993 PR ipa/59469
23994 * lto-cgraph.c (lto_output_node): Use
23995 symtab_get_symbol_partitioning_class.
23996 (lto_output_varpool_node): likewise.
23997 (symtab_get_symbol_partitioning_class): Move here from
23998 lto/lto-partition.c
23999 * cgraph.h (symbol_partitioning_class): Likewise.
24000 (symtab_get_symbol_partitioning_class): Declare.
24001
24002 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24003
24004 * ggc.h (ggc_internal_cleared_alloc): New macro.
24005 * vec.h (vec_safe_copy): Handle memory stats.
24006 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24007 * target-globals.c (save_target_globals): Likewise.
24008
24009 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24010
24011 PR target/60077
24012 * expr.c (emit_move_resolve_push): Export; be bit more selective
24013 on when to clear alias set.
24014 * expr.h (emit_move_resolve_push): Declare.
24015 * function.h (struct function): Add tail_call_marked.
24016 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24017 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24018 * config/i386/i386.md (TImode move expander): De not call
24019 ix86_expand_push.
24020 (FP push expanders): Preserve memory attributes.
24021 * config/i386/sse.md (push<mode>1): Remove.
24022 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24023 (ix86_expand_push): Remove.
24024 * config/i386/mmx.md (push<mode>1): Remove.
24025
24026 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24027
24028 PR rtl-optimization/60030
24029 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24030 lopart with paradoxical subreg before shifting it up by hprec.
24031
24032 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24033
24034 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24035 Remove extra newline at end of file.
24036 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24037 (arm_issue_rate): Handle cortexa57.
24038 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24039 (cortex-a57.cortex-a53): Likewise.
24040
24041 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24042
24043 PR target/59575
24044 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24045 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24046 bitmask.
24047 (arm_expand_prologue): Adjust all callers.
24048 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24049 info, registers also at the lowest numbered registers side. Use
24050 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24051 XEXP.
24052
24053 PR debug/59992
24054 * var-tracking.c (adjust_mems): Before adding a SET to
24055 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24056
24057 2014-02-06 Alan Modra <amodra@gmail.com>
24058
24059 PR target/60032
24060 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24061 change SDmode to DDmode when lra_in_progress.
24062
24063 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24064
24065 PR middle-end/59150
24066 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24067 free_data_ref on the dr first, and before goto again also set dr
24068 to the next dr. For simd_lane_access, free old datarefs[i] before
24069 overwriting it. For get_vectype_for_scalar_type failure, don't
24070 free_data_ref if simd_lane_access.
24071
24072 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24073
24074 PR target/60062
24075 * tree.h (opts_for_fn): New inline function.
24076 (opt_for_fn): Define.
24077 * config/i386/i386.c (ix86_function_regparm): Use
24078 opt_for_fn (decl, optimize) instead of optimize.
24079
24080 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24081
24082 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24083 for SYMBOL_REF in large memory model.
24084
24085 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24086
24087 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24088 and crypto support.
24089 (cortex-a57): Likewise.
24090 (cortex-a57.cortex-a53): Likewise.
24091
24092 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24093 Kugan Vivekanandarajah <kuganv@linaro.org>
24094
24095 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24096 unaligned_access.
24097 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24098
24099 2014-02-06 Richard Biener <rguenther@suse.de>
24100
24101 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24102 set_loop_copy and initialize_original_copy_tables.
24103
24104 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24105
24106 * config/aarch64/aarch64-simd.md
24107 (aarch64_ashr_simddi): Change QI to SI.
24108
24109 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24110 Jakub Jelinek <jakub@redhat.com>
24111
24112 PR middle-end/60013
24113 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24114 of the dataflow.
24115
24116 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24117
24118 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24119 CODE_FOR_altivec_vpku[hw]um to
24120 CODE_FOR_altivec_vpku[hw]um_direct.
24121 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24122 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24123 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24124 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24125
24126 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24127
24128 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24129 generation for -maltivec=be.
24130 (altivec_vsumsws): Simplify redundant test.
24131
24132 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24133
24134 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24135 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24136 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24137 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24138 gen_altivec_vpkuwum.
24139 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24140 BYTES_BIG_ENDIAN.
24141 (altivec_vpks<VI_char>ss): Likewise.
24142 (altivec_vpks<VI_char>us): Likewise.
24143 (altivec_vpku<VI_char>us): Likewise.
24144 (altivec_vpku<VI_char>um): Likewise.
24145 (altivec_vpku<VI_char>um_direct): New (copy of
24146 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24147 internal use).
24148 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24149 target is little endian and -maltivec=be is not specified.
24150 (*altivec_vupkhs<VU_char>_direct): New (copy of
24151 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24152 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24153 target is little endian and -maltivec=be is not specified.
24154 (*altivec_vupkls<VU_char>_direct): New (copy of
24155 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24156 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24157 little endian and -maltivec=be is not specified.
24158 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24159 little endian and -maltivec=be is not specified.
24160
24161 2014-02-05 Richard Henderson <rth@redhat.com>
24162
24163 PR debug/52727
24164 * combine-stack-adj.c: Revert r206943.
24165 * sched-int.h (struct deps_desc): Add last_args_size.
24166 * sched-deps.c (init_deps): Initialize it.
24167 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24168 contain REG_ARGS_SIZE notes.
24169
24170 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24171
24172 * lto-cgraph.c (asm_nodes_output): Make global.
24173 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24174 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24175 (driver_handle_option): Handle OPT_fwpa.
24176
24177 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24178
24179 PR ipa/59947
24180 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24181 a comment typo and formatting issue. If odr_hash hasn't been
24182 created, return vNULL and set *completep to false.
24183
24184 PR middle-end/57499
24185 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24186 bb with no successors.
24187
24188 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24189
24190 PR target/59718
24191 * doc/invoke.texi (-march): Clarify documentation for ARM.
24192 (-mtune): Likewise.
24193 (-mcpu): Likewise.
24194
24195 2014-02-05 Richard Biener <rguenther@suse.de>
24196
24197 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24198 when not vectorizing because of too many alias checks.
24199 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24200 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24201
24202 2014-02-05 Nick Clifton <nickc@redhat.com>
24203
24204 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24205 accept extended registers in any mode when compiling for the MN10300.
24206
24207 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24208
24209 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24210 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24211 sanitization attributes.
24212 (can_inline_edge_p): Likewise.
24213 (sanitize_attrs_match_for_inline_p): New function.
24214
24215 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24216
24217 * ipa-prop.c (detect_type_change): Shor circuit testing of
24218 type changes on THIS pointer.
24219
24220 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24221
24222 PR target/59777
24223 * config/pa/pa.c (legitimize_tls_address): Return original address
24224 if not passed a SYMBOL_REF rtx.
24225 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24226 addresses.
24227 (pa_emit_move_sequence): Simplify TLS source operands.
24228 (pa_legitimate_constant_p): Reject all TLS constants.
24229 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24230 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24231
24232 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24233
24234 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24235 groups when we know they are controlled by LTO.
24236 * varasm.c (default_binds_local_p_1): If object is in other partition,
24237 it will be resolved locally.
24238
24239 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24240
24241 * config/host-linux.c (linux_gt_pch_use_address): Don't
24242 use SSIZE_MAX because it is not always defined.
24243
24244 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24245
24246 PR bootstrap/59913
24247 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24248 threshold for pseudo splitting.
24249 (update_ebb_live_info): Process call argument hard registers and
24250 hard registers from insn definition too.
24251 (max_small_class_regs_num): New constant.
24252 (inherit_in_ebb): Update live hard regs through EBBs. Update
24253 reloads_num only for small register classes. Don't split for
24254 outputs of jumps.
24255
24256 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24257
24258 PR ipa/60058
24259 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24260 is non-null.
24261
24262 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24263
24264 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24265 visibility is safe.
24266
24267 2014-02-04 Marek Polacek <polacek@redhat.com>
24268
24269 * gdbinit.in (pel): Define.
24270
24271 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24272
24273 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24274 behavior.
24275
24276 2014-02-04 Richard Biener <rguenther@suse.de>
24277
24278 PR lto/59723
24279 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24280 in function context local.
24281 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24282 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24283 similar to LTO_imported_decl_ref.
24284
24285 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24286
24287 PR tree-optimization/60002
24288 * cgraphclones.c (build_function_decl_skip_args): Clear
24289 DECL_LANG_SPECIFIC.
24290
24291 PR tree-optimization/60023
24292 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24293 false to gsi_replace.
24294 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24295 has been in some EH region and vec_stmt could throw, add
24296 vec_stmt into the same EH region.
24297 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24298 has no lhs, ignore it.
24299 * internal-fn.c (expand_MASK_LOAD): Likewise.
24300
24301 PR ipa/60026
24302 * tree-inline.c (copy_forbidden): Fail for
24303 __attribute__((optimize (0))) functions.
24304
24305 PR other/58712
24306 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24307 is set, copy one less argument.
24308 (expand_simd_clones): Don't subtract clone_info->inbranch
24309 from simd_clone_struct_alloc argument.
24310
24311 PR rtl-optimization/57915
24312 * recog.c (simplify_while_replacing): If all unary/binary/relational
24313 operation arguments are constant, attempt to simplify those.
24314
24315 PR middle-end/59261
24316 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24317 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24318
24319 2014-02-04 Richard Biener <rguenther@suse.de>
24320
24321 PR tree-optimization/60012
24322 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24323 TBAA disambiguation to all DDRs.
24324
24325 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24326
24327 PR target/59788
24328 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24329 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24330
24331 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24332
24333 PR ipa/59882
24334 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24335
24336 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24337
24338 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24339 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24340
24341 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24342
24343 PR ipa/59831
24344 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24345 to figure out targets of polymorphic calls with known decl.
24346 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24347 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24348 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24349 (get_polymorphic_call_info): ... here.
24350 (get_polymorphic_call_info_from_invariant): New function.
24351
24352 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24353
24354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24355 lookup via vtable pointer; check for type consistency
24356 and turn inconsitent facts into UNREACHABLE.
24357 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24358 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24359 type inconsistent querries; return UNREACHABLE instead.
24360
24361 2014-02-03 Richard Henderson <rth@twiddle.net>
24362
24363 PR tree-opt/59924
24364 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24365 already processed this node.
24366 (normalize_one_pred_1): Pass along mark_set.
24367 (normalize_one_pred): Create and destroy a pointer_set_t.
24368 (normalize_one_pred_chain): Likewise.
24369
24370 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24371
24372 PR gcov-profile/58602
24373 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24374
24375 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24376
24377 PR ipa/59831
24378 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24379 -fno-devirtualize; try to devirtualize by the knowledge of
24380 virtual table pointer given by aggregate propagation.
24381 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24382 (ipa_print_node_jump_functions): Dump also offset that
24383 is relevant for polymorphic calls.
24384 (determine_known_aggregate_parts): Add arg_type parameter; use it
24385 instead of determining the type from pointer type.
24386 (ipa_compute_jump_functions_for_edge): Update call of
24387 determine_known_aggregate_parts.
24388 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24389 (gimple_get_virt_method_for_binfo): ... here; simplify using
24390 vtable_pointer_value_to_vtable.
24391 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24392 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24393 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24394 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24395 POINTER_PLUS_EXPR.
24396 (vtable_pointer_value_to_binfo): ... here.
24397 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24398
24399 2014-02-03 Teresa Johnson <tejohnson@google.com>
24400
24401 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24402 redef of outer loop index variable.
24403
24404 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24405
24406 PR c++/53017
24407 PR c++/59211
24408 * doc/extend.texi (Function Attributes): Typo.
24409
24410 2014-02-03 Cong Hou <congh@google.com>
24411
24412 PR tree-optimization/60000
24413 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24414 if the vectorized statement is a store. A store statement can only
24415 appear at the end of pattern statements.
24416
24417 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24418
24419 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24420 (ix86_option_override_internal): Default long double to 64-bit for
24421 32-bit Bionic and to 128-bit for 64-bit Bionic.
24422
24423 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24424 TARGET_LONG_DOUBLE_128 is true.
24425 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24426
24427 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24428 (mlong-double-64): Negate -mlong-double-128.
24429 (mlong-double-128): New option.
24430
24431 * config/i386/i386-c.c (ix86_target_macros): Define
24432 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24433
24434 * doc/invoke.texi: Document -mlong-double-128.
24435
24436 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24437
24438 PR rtl-optimization/60024
24439 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24440
24441 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24442
24443 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24444
24445 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24446
24447 PR rtl-optimization/57662
24448 * sel-sched.c (code_motion_path_driver): Do not mark already not
24449 existing blocks in the visiting bitmap.
24450
24451 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24452
24453 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24454 on the insn being emitted.
24455
24456 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24457 Will Deacon <will.deacon@arm.com>
24458
24459 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24460
24461 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24462
24463 * config/arm/arm-tables.opt: Regenerate.
24464
24465 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24466
24467 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24468 for vector types other than V16QImode.
24469 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24470 define_expand, and call altivec_expand_vec_perm_le when producing
24471 code with little endian element order.
24472 (*altivec_vperm_<mode>_internal): New insn having previous
24473 behavior of altivec_vperm_<mode>.
24474 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24475 altivec_expand_vec_perm_le when producing code with little endian
24476 element order.
24477 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24478 behavior of altivec_vperm_<mode>_uns.
24479
24480 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24481
24482 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24483 (altivec_vsumsws): Add handling for -maltivec=be with a little
24484 endian target.
24485 (altivec_vsumsws_direct): New.
24486 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24487 gen_altivec_vsumsws.
24488
24489 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24490
24491 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24492 vtable_pointer_value_to_binfo): New functions.
24493 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24494 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24495
24496 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24497
24498 * config/nios2/nios2.md (load_got_register): Initialize GOT
24499 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24500 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24501
24502 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24503
24504 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24505 preserverd by passthrough, do not propagate the type.
24506
24507 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24508
24509 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24510 (mips_atomic_assign_expand_fenv): New function.
24511 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24512
24513 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24514
24515 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24516 (__builtin_mips_set_fcsr): Likewise.
24517 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24518 MIPS_USI_FTYPE_VOID.
24519 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24520 (mips16_expand_set_fcsr): Likewise.
24521 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24522 (mips16_set_fcsr_stub): Likewise.
24523 (mips16_get_fcsr_one_only_stub): New class.
24524 (mips16_set_fcsr_one_only_stub): Likewise.
24525 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24526 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24527 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24528 (hard_float): New availability predicate.
24529 (mips_builtins): Add get_fcsr and set_fcsr.
24530 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24531 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24532 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24533 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24534 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24535 patterns.
24536
24537 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24538
24539 * config/mips/mips.c (mips_one_only_stub): New class.
24540 (mips_need_mips16_rdhwr_p): Replace with...
24541 (mips16_rdhwr_stub): ...this new variable.
24542 (mips16_stub_call_address): New function.
24543 (mips16_rdhwr_one_only_stub): New class.
24544 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24545 (mips_output_mips16_rdhwr): Delete.
24546 (mips_finish_stub): New function.
24547 (mips_code_end): Use it to handle rdhwr stubs.
24548
24549 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24550
24551 PR target/60017
24552 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24553 when calculating size of integer atomic types.
24554
24555 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24556
24557 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24558
24559 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24560
24561 PR tree-optimization/60003
24562 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24563 * profile.c (branch_prob): Use gimple_call_builtin_p
24564 to check for BUILT_IN_SETJMP_RECEIVER.
24565 * tree-inline.c (copy_bb): Call notice_special_calls.
24566
24567 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24568
24569 PR bootstrap/59985
24570 * lra-constraints.c (process_alt_operands): Update reload_sum only
24571 on the first pass.
24572
24573 2014-01-31 Richard Henderson <rth@redhat.com>
24574
24575 PR middle-end/60004
24576 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24577 until after else_eh is processed.
24578
24579 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24580
24581 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24582 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24583 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24584 in smmintrin.h, remove them.
24585 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24586 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24587 * config/i386/i386.md (ROUND_SAE): Fix value.
24588 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24589 (const48_operand): New.
24590 * config/i386/subst.md (round), (round_expand): Use
24591 const_4_or_8_to_11_operand.
24592 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24593
24594 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24595
24596 * config/i386/constraints.md (Yk): Swap meaning with k.
24597 * config/i386/i386.md (movhi_internal): Change Yk to k.
24598 (movqi_internal): Ditto.
24599 (*k<logic><mode>): Ditto.
24600 (*andhi_1): Ditto.
24601 (*andqi_1): Ditto.
24602 (kandn<mode>): Ditto.
24603 (*<code>hi_1): Ditto.
24604 (*<code>qi_1): Ditto.
24605 (kxnor<mode>): Ditto.
24606 (kortestzhi): Ditto.
24607 (kortestchi): Ditto.
24608 (kunpckhi): Ditto.
24609 (*one_cmplhi2_1): Ditto.
24610 (*one_cmplqi2_1): Ditto.
24611 * config/i386/sse.md (): Change k to Yk.
24612 (avx512f_load<mode>_mask): Ditto.
24613 (avx512f_blendm<mode>): Ditto.
24614 (avx512f_store<mode>_mask): Ditto.
24615 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24616 (avx512f_storedqu<mode>_mask): Ditto.
24617 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24618 Ditto.
24619 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24620 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24621 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24622 (avx512f_maskcmp<mode>3): Ditto.
24623 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24624 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24625 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24626 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24627 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24628 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24629 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24630 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24631 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24632 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24633 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24634 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24635 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24636 (vec_extract_lo_<mode>_maskm): Ditto.
24637 (vec_extract_hi_<mode>_maskm): Ditto.
24638 (avx512f_vternlog<mode>_mask): Ditto.
24639 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24640 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24641 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24642 (avx512f_<code>v8div16qi2_mask): Ditto.
24643 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24644 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24645 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24646 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24647 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24648 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24649 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24650 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24651 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24652 (avx512cd_maskb_vec_dupv8di): Ditto.
24653 (avx512cd_maskw_vec_dupv16si): Ditto.
24654 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24655 (avx512f_vpermi2var<mode>3_mask): Ditto.
24656 (avx512f_vpermi2var<mode>3_mask): Ditto.
24657 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24658 (*avx512f_gathersi<mode>): Ditto.
24659 (*avx512f_gathersi<mode>_2): Ditto.
24660 (*avx512f_gatherdi<mode>): Ditto.
24661 (*avx512f_gatherdi<mode>_2): Ditto.
24662 (*avx512f_scattersi<mode>): Ditto.
24663 (*avx512f_scatterdi<mode>): Ditto.
24664 (avx512f_compress<mode>_mask): Ditto.
24665 (avx512f_compressstore<mode>_mask): Ditto.
24666 (avx512f_expand<mode>_mask): Ditto.
24667 * config/i386/subst.md (mask): Change k to Yk.
24668 (mask_scalar_merge): Ditto.
24669 (sd): Ditto.
24670
24671 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24672
24673 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24674
24675 2014-01-31 Richard Biener <rguenther@suse.de>
24676
24677 PR middle-end/59990
24678 * builtins.c (fold_builtin_memory_op): Make sure to not
24679 use a floating-point mode or a boolean or enumeral type for
24680 the copy operation.
24681
24682 2014-01-30 DJ Delorie <dj@redhat.com>
24683
24684 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24685 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24686 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24687 whenever main() has an epilogue.
24688
24689 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24690
24691 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24692 unused variable "field".
24693 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24694 (vsx_mergeh_<mode>): Likewise.
24695 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24696 (altivec_vmrghh): Likewise.
24697 (altivec_vmrghw): Likewise.
24698 (altivec_vmrglb): Likewise.
24699 (altivec_vmrglh): Likewise.
24700 (altivec_vmrglw): Likewise.
24701 (altivec_vspltb): Add missing uses.
24702 (altivec_vsplth): Likewise.
24703 (altivec_vspltw): Likewise.
24704 (altivec_vspltsf): Likewise.
24705
24706 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24707
24708 PR target/59923
24709 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24710 frame related instructions.
24711
24712 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24713
24714 PR rtl-optimization/59959
24715 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24716 any reload of register whose subreg is invalid.
24717
24718 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24719
24720 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24721 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24722 Add missing return type - void.
24723
24724 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24725
24726 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24727 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24728 remove element index adjustment for endian (now handled in vsx.md
24729 and altivec.md).
24730 (altivec_expand_vec_perm_const): Use
24731 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24732 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24733 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24734 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24735 define_expand and a new define_insn *altivec_vspltb_internal;
24736 adjust for -maltivec=be on a little endian target.
24737 (altivec_vspltb_direct): New.
24738 (altivec_vsplth): Divide into a define_expand and a new
24739 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24740 little endian target.
24741 (altivec_vsplth_direct): New.
24742 (altivec_vspltw): Divide into a define_expand and a new
24743 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24744 little endian target.
24745 (altivec_vspltw_direct): New.
24746 (altivec_vspltsf): Divide into a define_expand and a new
24747 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24748 a little endian target.
24749
24750 2014-01-30 Richard Biener <rguenther@suse.de>
24751
24752 PR tree-optimization/59993
24753 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24754 can propagate form the earlier stmt and avoid the transform
24755 when the intermediate result is needed.
24756
24757 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24758
24759 * README.Portability: Fix typo.
24760
24761 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24762
24763 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24764 comparison_operator with ordered_comparison_operator.
24765
24766 2014-01-30 Nick Clifton <nickc@redhat.com>
24767
24768 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24769 Rename to mn10300_store_multiple_regs.
24770 * config/mn10300/mn10300.c: Likewise.
24771 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24772 store_multiple_regs.
24773 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24774 Call mn10300_store_multiple_regs.
24775
24776 2014-01-30 Nick Clifton <nickc@redhat.com>
24777 DJ Delorie <dj@redhat.com>
24778
24779 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24780 %fp 2 to keep registers after it properly word-aligned.
24781 (rl78_alloc_physical_registers_umul): Handle the case where both
24782 input operands are the same.
24783
24784 2014-01-30 Richard Biener <rguenther@suse.de>
24785
24786 PR tree-optimization/59903
24787 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24788 check properly.
24789
24790 2014-01-30 Jason Merrill <jason@redhat.com>
24791
24792 PR c++/59633
24793 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24794
24795 PR c++/59645
24796 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24797
24798 2014-01-30 Richard Biener <rguenther@suse.de>
24799
24800 PR tree-optimization/59951
24801 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24802
24803 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24804
24805 PR target/59784
24806 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24807 SFmode to DFmode case.
24808
24809 2014-01-29 DJ Delorie <dj@redhat.com>
24810
24811 * config/msp430/msp430.opt (-minrt): New.
24812 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24813 if -minrt given.
24814 (ENDFILE_SPEC): Likewise.
24815
24816 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24817
24818 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24819 (estimate_function_body_sizes): Use it.
24820
24821 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24822
24823 PR c++/58561
24824 * dwarf2out.c (is_cxx_auto): New.
24825 (is_base_type): Use it.
24826 (gen_type_die_with_usage): Likewise.
24827
24828 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24829
24830 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24831 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24832 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24833 -maltivec=be with LE targets.
24834 (vsx_mergeh_<mode>): Likewise.
24835 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24836 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24837 (altivec_vmrghb): Replace with define_expand and new
24838 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24839 (altivec_vmrghb_direct): New define_insn.
24840 (altivec_vmrghh): Replace with define_expand and new
24841 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24842 (altivec_vmrghh_direct): New define_insn.
24843 (altivec_vmrghw): Replace with define_expand and new
24844 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24845 (altivec_vmrghw_direct): New define_insn.
24846 (*altivec_vmrghsf): Adjust for endianness.
24847 (altivec_vmrglb): Replace with define_expand and new
24848 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24849 (altivec_vmrglb_direct): New define_insn.
24850 (altivec_vmrglh): Replace with define_expand and new
24851 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24852 (altivec_vmrglh_direct): New define_insn.
24853 (altivec_vmrglw): Replace with define_expand and new
24854 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24855 (altivec_vmrglw_direct): New define_insn.
24856 (*altivec_vmrglsf): Adjust for endianness.
24857 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24858 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24859 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24860 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24861 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24862 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24863 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24864 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24865
24866 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24867
24868 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24869 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24870 whitespace.
24871
24872 2014-01-29 Richard Biener <rguenther@suse.de>
24873
24874 PR tree-optimization/58742
24875 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24876 associate_pointerplus_align.
24877 (associate_pointerplus_diff): New function.
24878 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24879 and associate_pointerplus_diff.
24880
24881 2014-01-29 Richard Biener <rguenther@suse.de>
24882
24883 * lto-streamer.h (LTO_major_version): Bump to 3.
24884 (LTO_minor_version): Reset to 0.
24885
24886 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24887
24888 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24889 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24890 (arm_file_start): Generate correct asm header for armv7ve.
24891 * config/arm/bpabi.h: Add multilib support for armv7ve.
24892 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24893 and cortex-a15 to armv7ve.
24894 * config/arm/t-aprofile: Add multilib support for armv7ve.
24895 * doc/invoke.texi: Document -march=armv7ve.
24896
24897 2014-01-29 Richard Biener <rguenther@suse.de>
24898
24899 PR tree-optimization/58742
24900 * tree-ssa-forwprop.c (associate_plusminus): Return true
24901 if we changed sth, defer EH cleanup to ...
24902 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24903 (simplify_mult): New function.
24904
24905 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24906
24907 PR middle-end/59917
24908 PR tree-optimization/59920
24909 * tree.c (build_common_builtin_nodes): Remove
24910 __builtin_setjmp_dispatcher initialization.
24911 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24912 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24913 instead of gsi_after_labels + manually skipping debug stmts.
24914 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24915 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24916 * tree-inline.c (copy_edges_for_bb): Remove
24917 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24918 argument. Ignore computed_goto_p stmts. Don't call
24919 make_abnormal_goto_edges. If a call might need abnormal edges
24920 for non-local gotos, see if it already has an edge to
24921 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24922 with true argument, don't do anything then, otherwise add
24923 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24924 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24925 caller.
24926 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24927 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24928 (lower_stmt): Don't set data->calls_builtin_setjmp.
24929 (lower_builtin_setjmp): Adjust comment.
24930 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24931 * tree-cfg.c (found_computed_goto): Remove.
24932 (factor_computed_gotos): Remove.
24933 (make_goto_expr_edges): Return bool, true for computed gotos.
24934 Don't call make_abnormal_goto_edges.
24935 (build_gimple_cfg): Don't set found_computed_goto, don't call
24936 factor_computed_gotos.
24937 (computed_goto_p): No longer static.
24938 (make_blocks): Don't set found_computed_goto.
24939 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24940 (make_edges): If make_goto_expr_edges returns true, push bb
24941 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24942 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24943 vector. Record mapping between bbs and OpenMP regions if there
24944 are any, adjust make_gimple_omp_edges caller. Call
24945 handle_abnormal_edges.
24946 (make_abnormal_goto_edges): Remove.
24947 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24948 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24949 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24950 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24951 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24952 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24953 filling *region also set *region_idx to (*region)->entry->index.
24954
24955 PR other/58712
24956 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24957 For REGs set ORIGINAL_REGNO.
24958
24959 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24960
24961 * doc/md.texi: Mention that a target shouldn't implement
24962 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24963 than hi/lo pair.
24964
24965 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24966
24967 PR tree-optimization/59594
24968 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24969 a copy of the datarefs vector rather than the vector itself.
24970
24971 2014-01-28 Jason Merrill <jason@redhat.com>
24972
24973 PR c++/53756
24974 * dwarf2out.c (auto_die): New static.
24975 (gen_type_die_with_usage): Handle C++1y 'auto'.
24976 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24977 on definition.
24978
24979 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24980
24981 PR target/59672
24982 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24983 (SPEC_X32): Likewise.
24984 (SPEC_64): Likewise.
24985 * config/i386/i386.c (ix86_option_override_internal): Turn off
24986 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24987 for TARGET_16BIT.
24988 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24989 * config/i386/i386.h (TARGET_16BIT): New macro.
24990 (TARGET_16BIT_P): Likewise.
24991 * config/i386/i386.opt: Add m16.
24992 * doc/invoke.texi: Document -m16.
24993
24994 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24995
24996 PR preprocessor/59935
24997 * input.c (location_get_source_line): Bail out on when line number
24998 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24999
25000 2014-01-28 Richard Biener <rguenther@suse.de>
25001
25002 PR tree-optimization/58742
25003 * tree-ssa-forwprop.c (associate_plusminus): Handle
25004 pointer subtraction of the form (T)(P + A) - (T)P.
25005
25006 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25007
25008 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25009 at const_int_cost.
25010
25011 2014-01-28 Richard Biener <rguenther@suse.de>
25012
25013 Revert
25014 2014-01-28 Richard Biener <rguenther@suse.de>
25015
25016 PR rtl-optimization/45364
25017 PR rtl-optimization/59890
25018 * var-tracking.c (local_get_addr_clear_given_value): Handle
25019 already cleared slot.
25020 (val_reset): Handle not allocated local_get_addr_cache.
25021 (vt_find_locations): Use post-order on the inverted CFG.
25022
25023 2014-01-28 Richard Biener <rguenther@suse.de>
25024
25025 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25026
25027 2014-01-28 Richard Biener <rguenther@suse.de>
25028
25029 PR rtl-optimization/45364
25030 PR rtl-optimization/59890
25031 * var-tracking.c (local_get_addr_clear_given_value): Handle
25032 already cleared slot.
25033 (val_reset): Handle not allocated local_get_addr_cache.
25034 (vt_find_locations): Use post-order on the inverted CFG.
25035
25036 2014-01-28 Alan Modra <amodra@gmail.com>
25037
25038 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25039 * configure.ac <recursive call for build != host>: Define
25040 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25041 and LD_FOR_BUILD too.
25042 * configure: Regenerate.
25043
25044 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25045
25046 * config/i386/i386.c (get_builtin_code_for_version): Separate
25047 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25048 Broadwell from Haswell.
25049
25050 2014-01-27 Steve Ellcey <sellcey@mips.com>
25051
25052 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25053 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25054 * config/mips/mips.c (mips_option_override): Change setting
25055 of TARGET_DSP.
25056 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25057 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25058 Change from Mask to Var.
25059
25060 2014-01-27 Jeff Law <law@redhat.com>
25061
25062 * ipa-inline.c (inline_small_functions): Fix typo.
25063
25064 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25065
25066 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25067 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25068 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25069 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25070 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25071 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25072 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25073 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25074 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25075 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25076 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25077 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25078 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25079 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25080 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25081 (_mm512_storeu_epi64): Ditto.
25082 (_mm512_cmpge_epi32_mask): Ditto.
25083 (_mm512_cmpge_epu32_mask): Ditto.
25084 (_mm512_cmpge_epi64_mask): Ditto.
25085 (_mm512_cmpge_epu64_mask): Ditto.
25086 (_mm512_cmple_epi32_mask): Ditto.
25087 (_mm512_cmple_epu32_mask): Ditto.
25088 (_mm512_cmple_epi64_mask): Ditto.
25089 (_mm512_cmple_epu64_mask): Ditto.
25090 (_mm512_cmplt_epi32_mask): Ditto.
25091 (_mm512_cmplt_epu32_mask): Ditto.
25092 (_mm512_cmplt_epi64_mask): Ditto.
25093 (_mm512_cmplt_epu64_mask): Ditto.
25094 (_mm512_cmpneq_epi32_mask): Ditto.
25095 (_mm512_cmpneq_epu32_mask): Ditto.
25096 (_mm512_cmpneq_epi64_mask): Ditto.
25097 (_mm512_cmpneq_epu64_mask): Ditto.
25098 (_mm512_expand_pd): Ditto.
25099 (_mm512_expand_ps): Ditto.
25100 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25101 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25102 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25103 * config/i386/i386.c (ix86_builtins): Add
25104 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25105 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25106 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25107 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25108 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25109 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25110 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25111 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25112 IX86_BUILTIN_PMOVUSQW512_MEM.
25113 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25114 __builtin_ia32_pmovsqd512mem_mask,
25115 __builtin_ia32_pmovqd512mem_mask,
25116 __builtin_ia32_pmovusqw512mem_mask,
25117 __builtin_ia32_pmovsqw512mem_mask,
25118 __builtin_ia32_pmovqw512mem_mask,
25119 __builtin_ia32_pmovusdw512mem_mask,
25120 __builtin_ia32_pmovsdw512mem_mask,
25121 __builtin_ia32_pmovdw512mem_mask,
25122 __builtin_ia32_pmovqb512mem_mask,
25123 __builtin_ia32_pmovusqb512mem_mask,
25124 __builtin_ia32_pmovsqb512mem_mask,
25125 __builtin_ia32_pmovusdb512mem_mask,
25126 __builtin_ia32_pmovsdb512mem_mask,
25127 __builtin_ia32_pmovdb512mem_mask.
25128 (bdesc_args): Add __builtin_ia32_expanddf512,
25129 __builtin_ia32_expandsf512.
25130 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25131 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25132 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25133 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25134 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25135 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25136 (avx512f_<code>v8div16qi2_mask_store): This.
25137 (avx512f_expand<mode>): New.
25138
25139 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25140
25141 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25142 New.
25143 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25144 (_mm512_prefetch_i32scatter_pd): Ditto.
25145 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25146 (_mm512_prefetch_i64scatter_pd): Ditto.
25147 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25148 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25149 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25150 (_mm512_prefetch_i32scatter_ps): Ditto.
25151 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25152 (_mm512_prefetch_i64scatter_ps): Ditto.
25153 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25154 * config/i386/i386-builtin-types.def: Define
25155 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25156 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25157 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25158 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25159 IX86_BUILTIN_SCATTERPFQPD.
25160 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25161 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25162 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25163 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25164 __builtin_ia32_scatterpfqps.
25165 (ix86_expand_builtin): Expand new built-ins.
25166 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25167 fix memory access data type.
25168 (*avx512pf_gatherpf<mode>_mask): Ditto.
25169 (*avx512pf_gatherpf<mode>): Ditto.
25170 (avx512pf_scatterpf<mode>): Ditto.
25171 (*avx512pf_scatterpf<mode>_mask): Ditto.
25172 (*avx512pf_scatterpf<mode>): Ditto.
25173 (GATHER_SCATTER_SF_MEM_MODE): New.
25174 (avx512pf_gatherpf<mode>df): Ditto.
25175 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25176 (*avx512pf_scatterpf<mode>df): Ditto.
25177
25178 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25179
25180 PR bootstrap/59934
25181 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25182 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25183 reached.
25184
25185 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25186
25187 * common/config/arm/arm-common.c
25188 (arm_rewrite_mcpu): Handle multiple names.
25189 * config/arm/arm.h
25190 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25191
25192 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25193
25194 * gimple-builder.h (create_gimple_tmp): Delete.
25195
25196 2014-01-27 Christian Bruel <christian.bruel@st.com>
25197
25198 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25199 words comparisons.
25200
25201 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25202
25203 * config/pa/pa.md (call): Generate indirect long calls to non-local
25204 functions when outputing 32-bit code.
25205 (call_value): Likewise except for special call to buggy powf function.
25206
25207 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25208 portable runtime and PIC indirect calls.
25209 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25210 and PIC call sequences. Use ldo instead of blr to set return register
25211 in PIC call sequence.
25212
25213 2014-01-25 Walter Lee <walt@tilera.com>
25214
25215 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25216 avoid clobbering a live register.
25217
25218 2014-01-25 Walter Lee <walt@tilera.com>
25219
25220 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25221 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25222 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25223 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25224
25225 2014-01-25 Walter Lee <walt@tilera.com>
25226
25227 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25228 arguments on even registers.
25229 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25230 STACK_BOUNDARY.
25231 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25232 (BIGGEST_ALIGNMENT): Ditto.
25233 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25234
25235 2014-01-25 Walter Lee <walt@tilera.com>
25236
25237 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25238 insns before bundling.
25239 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25240
25241 2014-01-25 Walter Lee <walt@tilera.com>
25242
25243 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25244 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25245 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25246
25247 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25248
25249 * config/mips/constraints.md (kl): Delete.
25250 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25251 define expands, using...
25252 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25253 instructions for MIPS16.
25254 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25255 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25256
25257 2014-01-25 Walter Lee <walt@tilera.com>
25258
25259 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25260 (clzdi2): Ditto.
25261 (ffsdi2): Ditto.
25262
25263 2014-01-25 Walter Lee <walt@tilera.com>
25264
25265 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25266 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25267
25268 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25269
25270 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25271 Handle XOR.
25272
25273 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25274
25275 * print-rtl.c (in_call_function_usage): New var.
25276 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25277 EXPR_LIST mode as mode and not as reg note name.
25278
25279 PR middle-end/59561
25280 * cfgloopmanip.c (copy_loop_info): If
25281 loop->warned_aggressive_loop_optimizations, make sure
25282 the flag is set in target loop too.
25283
25284 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25285
25286 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25287 flag_cilkplus.
25288 * builtins.def: Likewise.
25289 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25290 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25291 * ira.c (ira_setup_eliminable_regset): Likewise.
25292 * omp-low.c (gate_expand_omp): Likewise.
25293 (execute_lower_omp): Likewise.
25294 (diagnose_sb_0): Likewise.
25295 (gate_diagnose_omp_blocks): Likewise.
25296 (simd_clone_clauses_extract): Likewise.
25297 (gate): Likewise.
25298
25299 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25300
25301 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25302 correction for little endian...
25303 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25304 here.
25305
25306 2014-01-24 Jeff Law <law@redhat.com>
25307
25308 PR tree-optimization/59919
25309 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25310 for non-returning calls.
25311
25312 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25313
25314 * common/config/aarch64/aarch64-common.c
25315 (aarch64_rewrite_mcpu): Handle multiple names.
25316 * config/aarch64/aarch64.h
25317 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25318
25319 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25320
25321 * input.c (add_file_to_cache_tab): Handle the case where fopen
25322 returns NULL.
25323
25324 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25325
25326 PR target/59929
25327 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25328 from push operand if code of push isn't PRE_DEC.
25329
25330 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25331
25332 PR target/59909
25333 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25334 -mquad-memory-atomic. Update -mquad-memory documentation to say
25335 it is only used for non-atomic loads/stores.
25336
25337 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25338 -mquad-memory or -mquad-memory-atomic switches.
25339
25340 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25341 -mquad-memory-atomic to ISA 2.07 support.
25342
25343 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25344 to separate support of normal quad word memory operations (ldq, stq)
25345 from the atomic quad word memory operations.
25346
25347 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25348 support to separate non-atomic quad word operations from atomic
25349 quad word operations. Disable non-atomic quad word operations in
25350 little endian mode so that we don't have to swap words after the
25351 load and before the store.
25352 (quad_load_store_p): Add comment about atomic quad word support.
25353 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25354 options printed with -mdebug=reg.
25355
25356 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25357 -mquad-memory-atomic as the test for whether we have quad word
25358 atomic instructions.
25359 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25360 or -mp8-vector are used, allow byte/half-word atomic operations.
25361
25362 * config/rs6000/sync.md (load_lockedti): Insure that the address
25363 is a proper indexed or indirect address for the lqarx instruction.
25364 On little endian systems, swap the hi/lo registers after the lqarx
25365 instruction.
25366 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25367 insure the address is valid for the lqarx instruction.
25368 (store_conditionalti): Insure that the address is a proper indexed
25369 or indirect address for the stqcrx. instruction. On little endian
25370 systems, swap the hi/lo registers before doing the stqcrx.
25371 instruction.
25372 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25373 insure the address is valid for the stqcrx. instruction.
25374
25375 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25376 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25377 type of quad memory support is available.
25378
25379 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25380
25381 PR regression/59915
25382 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25383 there is a danger of looping.
25384
25385 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25386
25387 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25388 force flag_ira_loop_pressure if set via command line.
25389
25390 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25391
25392 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25393 (ashr_simd): New builtin handling DI mode.
25394 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25395 (aarch64_sshr_simddi): New match pattern.
25396 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25397 (vshrd_n_s64): Likewise.
25398 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25399
25400 2014-01-23 Nick Clifton <nickc@redhat.com>
25401
25402 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25403 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25404 favour of mcu specific scripts.
25405 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25406 430x multilibs.
25407
25408 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25409 Alex Velenko <Alex.Velenko@arm.com>
25410
25411 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25412 (vaddv_s16): Likewise.
25413 (vaddv_s32): Likewise.
25414 (vaddv_u8): Likewise.
25415 (vaddv_u16): Likewise.
25416 (vaddv_u32): Likewise.
25417 (vaddvq_s8): Likewise.
25418 (vaddvq_s16): Likewise.
25419 (vaddvq_s32): Likewise.
25420 (vaddvq_s64): Likewise.
25421 (vaddvq_u8): Likewise.
25422 (vaddvq_u16): Likewise.
25423 (vaddvq_u32): Likewise.
25424 (vaddvq_u64): Likewise.
25425 (vaddv_f32): Likewise.
25426 (vaddvq_f32): Likewise.
25427 (vaddvq_f64): Likewise.
25428 (vmaxv_f32): Likewise.
25429 (vmaxv_s8): Likewise.
25430 (vmaxv_s16): Likewise.
25431 (vmaxv_s32): Likewise.
25432 (vmaxv_u8): Likewise.
25433 (vmaxv_u16): Likewise.
25434 (vmaxv_u32): Likewise.
25435 (vmaxvq_f32): Likewise.
25436 (vmaxvq_f64): Likewise.
25437 (vmaxvq_s8): Likewise.
25438 (vmaxvq_s16): Likewise.
25439 (vmaxvq_s32): Likewise.
25440 (vmaxvq_u8): Likewise.
25441 (vmaxvq_u16): Likewise.
25442 (vmaxvq_u32): Likewise.
25443 (vmaxnmv_f32): Likewise.
25444 (vmaxnmvq_f32): Likewise.
25445 (vmaxnmvq_f64): Likewise.
25446 (vminv_f32): Likewise.
25447 (vminv_s8): Likewise.
25448 (vminv_s16): Likewise.
25449 (vminv_s32): Likewise.
25450 (vminv_u8): Likewise.
25451 (vminv_u16): Likewise.
25452 (vminv_u32): Likewise.
25453 (vminvq_f32): Likewise.
25454 (vminvq_f64): Likewise.
25455 (vminvq_s8): Likewise.
25456 (vminvq_s16): Likewise.
25457 (vminvq_s32): Likewise.
25458 (vminvq_u8): Likewise.
25459 (vminvq_u16): Likewise.
25460 (vminvq_u32): Likewise.
25461 (vminnmv_f32): Likewise.
25462 (vminnmvq_f32): Likewise.
25463 (vminnmvq_f64): Likewise.
25464
25465 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25466
25467 * config/aarch64/aarch64-simd.md
25468 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25469 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25470 (*aarch64_mul3_elt<mode>): Likewise.
25471 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25472 (*aarch64_mul3_elt_to_64v2df): Likewise.
25473 (*aarch64_mla_elt<mode>): Likewise.
25474 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25475 (*aarch64_mls_elt<mode>): Likewise.
25476 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25477 (*aarch64_fma4_elt<mode>): Likewise.
25478 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25479 (*aarch64_fma4_elt_to_64v2df): Likewise.
25480 (*aarch64_fnma4_elt<mode>): Likewise.
25481 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25482 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25483 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25484 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25485 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25486 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25487 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25488 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25489 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25490
25491 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25492
25493 * config/aarch64/aarch64-simd.md
25494 (aarch64_be_checked_get_lane<mode>): New define_expand.
25495 * config/aarch64/aarch64-simd-builtins.def
25496 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25497 New builtin definition.
25498 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25499 Use new safe be builtin.
25500
25501 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25502
25503 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25504 New define_insn.
25505 (aarch64_be_st1<mode>): Likewise.
25506 (aarch_ld1<VALL:mode>): Define_expand modified.
25507 (aarch_st1<VALL:mode>): Likewise.
25508 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25509 (UNSPEC_ST1): Likewise.
25510
25511 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25512
25513 * config/microblaze/microblaze.md: Add trap insn and attribute
25514
25515 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25516
25517 PR preprocessor/58580
25518 * input.h (location_get_source_line): Take an additional line_size
25519 parameter.
25520 (void diagnostics_file_cache_fini): Declare new function.
25521 * input.c (struct fcache): New type.
25522 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25523 New static constants.
25524 (diagnostic_file_cache_init, total_lines_num)
25525 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25526 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25527 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25528 (get_next_line, read_next_line, goto_next_line, read_line_num):
25529 New static function definitions.
25530 (diagnostic_file_cache_fini): New function.
25531 (location_get_source_line): Take an additional output line_len
25532 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25533 read_line_num.
25534 * diagnostic.c (diagnostic_finish): Call
25535 diagnostic_file_cache_fini.
25536 (adjust_line): Take an additional input parameter for the length
25537 of the line, rather than calculating it with strlen.
25538 (diagnostic_show_locus): Adjust the use of
25539 location_get_source_line and adjust_line with respect to their new
25540 signature. While displaying a line now, do not stop at the first
25541 null byte. Rather, display the zero byte as a space and keep
25542 going until we reach the size of the line.
25543 * Makefile.in: Add vec.o to OBJS-libcommon
25544
25545 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25546 Ilya Tocar <ilya.tocar@intel.com>
25547
25548 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25549 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25550 (__builtin_ia32_kmov16): Ditto.
25551 * config/i386/i386.md (UNSPEC_KMOV): New.
25552 (kmovw): Ditto.
25553
25554 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25555
25556 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25557 (_mm512_storeu_si512): Ditto.
25558
25559 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25560
25561 PR target/52125
25562 * rtl.h (get_referenced_operands): Declare.
25563 * recog.c (get_referenced_operands): New function.
25564 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25565 operands have been referenced when recording LO_SUM references.
25566
25567 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25568
25569 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25570
25571 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25572
25573 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25574 Enable for generic and recent AMD targets.
25575
25576 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25577
25578 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25579 ARG_SIZE note when adjustment was eliminated.
25580
25581 2014-01-22 Jeff Law <law@redhat.com>
25582
25583 PR tree-optimization/59597
25584 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25585 in file. Accept new argument REGISTERING and use it to modify
25586 dump output appropriately.
25587 (register_jump_thread): Corresponding changes.
25588 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25589 thread paths involving joiner blocks. Add code to dump cancelled
25590 jump threading paths.
25591
25592 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25593
25594 PR rtl-optimization/59477
25595 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25596 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25597
25598 2014-01-22 Tom Tromey <tromey@redhat.com>
25599
25600 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25601 PARAMS.
25602 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25603
25604 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25605
25606 PR rtl-optimization/59896
25607 * lra-constraints.c (process_alt_operands): Check unused note for
25608 matched operands of insn with no output reloads.
25609
25610 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25611
25612 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25613 (mips_move_from_gpr_cost): Likewise.
25614
25615 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25616
25617 PR rtl-optimization/59858
25618 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25619 ira_class_hard_regs_num.
25620 (process_alt_operands): Increase reject for dying matched operand.
25621
25622 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25623
25624 PR target/59003
25625 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25626 smaller than size, perform several stores or loads and stores
25627 at dst + count - size to store or copy all of size bytes, rather
25628 than just last modesize bytes.
25629
25630 2014-01-20 DJ Delorie <dj@redhat.com>
25631
25632 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25633 that CLOBBERs are REGs before propogating their values.
25634
25635 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25636
25637 PR middle-end/59789
25638 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25639 (cgraph_inline_failed_type): New function.
25640 * cgraph.h (DEFCIFCODE): Add type.
25641 (cgraph_inline_failed_type_t): New enum.
25642 (cgraph_inline_failed_type): New prototype.
25643 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25644 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25645 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25646 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25647 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25648 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25649 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25650 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25651 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25652 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25653 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25654 OPTIMIZATION_MISMATCH.
25655 * tree-inline.c (expand_call_inline): Emit errors during
25656 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25657
25658 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25659
25660 PR target/59685
25661 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25662 mode attribute in insn output.
25663
25664 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25665
25666 * output.h (output_constant): Delete.
25667 * varasm.c (output_constant): Make private.
25668
25669 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25670
25671 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25672
25673 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25674
25675 PR middle-end/59860
25676 * tree.h (fold_builtin_strcat): New prototype.
25677 * builtins.c (fold_builtin_strcat): No longer static. Add len
25678 argument, if non-NULL, don't call c_strlen. Optimize
25679 directly into __builtin_memcpy instead of __builtin_strcpy.
25680 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25681 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25682
25683 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25684
25685 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25686 for SImode_address_operand operands, having only a REG argument.
25687
25688 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25689
25690 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25691 loader name using mbig-endian.
25692 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25693
25694 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25695
25696 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25697 (-mtune): Likewise.
25698 (-mcpu): Likewise.
25699
25700 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25701
25702 * config/aarch64/aarch64-protos.h
25703 (aarch64_cannot_change_mode_class_ptr): Declare.
25704 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25705 aarch64_cannot_change_mode_class_ptr): New.
25706 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25707 backend hook aarch64_cannot_change_mode_class.
25708
25709 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25710
25711 * common/config/aarch64/aarch64-common.c
25712 (aarch64_handle_option): Don't handle any option order logic here.
25713 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25714 selected_cpu, warn on architecture version mismatch.
25715 (aarch64_override_options): Fix parsing order for option strings.
25716
25717 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25718 Iain Sandoe <iain@codesourcery.com>
25719
25720 PR bootstrap/59496
25721 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25722 warning. Amend comment to reflect current functionality.
25723
25724 2014-01-20 Richard Biener <rguenther@suse.de>
25725
25726 PR middle-end/59860
25727 * builtins.c (fold_builtin_strcat): Remove case better handled
25728 by tree-ssa-strlen.c.
25729
25730 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25731
25732 * config/aarch64/aarch64.opt
25733 (mcpu, march, mtune): Make case-insensitive.
25734
25735 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25736
25737 PR target/59880
25738 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25739 if operands[1] is a REG or ZERO_EXTEND of a REG.
25740
25741 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25742
25743 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25744
25745 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25746
25747 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25748 long non-pic millicode calls.
25749
25750 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25751
25752 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25753
25754 2014-01-19 Kito Cheng <kito@0xlab.org>
25755
25756 * builtins.c (expand_movstr): Check movstr expand done or fail.
25757
25758 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25759 H.J. Lu <hongjiu.lu@intel.com>
25760
25761 PR target/59379
25762 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25763 to DImode for zero-extended addresses.
25764
25765 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25766
25767 PR rtl-optimization/57763
25768 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25769 on the new indirect jump_insn and increment LABEL_NUSES (label).
25770
25771 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25772
25773 PR bootstrap/59580
25774 PR bootstrap/59583
25775 * config.gcc (x86_archs): New variable.
25776 (x86_64_archs): Likewise.
25777 (x86_cpus): Likewise.
25778 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25779 --with-arch/--with-cpu= options.
25780 Support --with-arch=/--with-cpu={nehalem,westmere,
25781 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25782
25783 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25784
25785 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25786 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25787
25788 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25789
25790 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25791
25792 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25793
25794 PR target/58944
25795 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25796 clear cpp_get_options (parse_in)->warn_unused_macros for
25797 ix86_target_macros_internal with cpp_define.
25798
25799 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25800
25801 * jump.c (delete_related_insns): Keep (use (insn))s.
25802 * reorg.c (redundant_insn): Check for barriers too.
25803
25804 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25805
25806 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25807
25808 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25809
25810 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25811 call to $$dyncall when TARGET_LONG_CALLS is true.
25812
25813 2014-01-17 Jeff Law <law@redhat.com>
25814
25815 * ree.c (combine_set_extension): Temporarily disable test for
25816 changing number of hard registers.
25817
25818 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25819
25820 PR middle-end/58125
25821 * ipa-inline-analysis.c (inline_free_summary):
25822 Do not free summary of aliases.
25823
25824 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25825
25826 PR middle-end/59706
25827 * gimplify.c (gimplify_expr): Use create_tmp_var
25828 instead of create_tmp_var_raw. If cond doesn't have
25829 integral type, don't add the IFN_ANNOTATE builtin at all.
25830
25831 2014-01-17 Martin Jambor <mjambor@suse.cz>
25832
25833 PR ipa/59736
25834 * ipa-cp.c (prev_edge_clone): New variable.
25835 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25836 Also resize prev_edge_clone vector.
25837 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25838 (ipcp_edge_removal_hook): New function.
25839 (ipcp_driver): Register ipcp_edge_removal_hook.
25840
25841 2014-01-17 Andrew Pinski <apinski@cavium.com>
25842 Steve Ellcey <sellcey@mips.com>
25843
25844 PR target/59462
25845 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25846 of operator mode.
25847
25848 2014-01-17 Jeff Law <law@redhat.com>
25849
25850 PR middle-end/57904
25851 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25852 so that pass_ccp runs first.
25853
25854 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25855
25856 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25857 (ix86_adjust_cost): Use !TARGET_XXX.
25858 (do_reorder_for_imul): Likewise.
25859 (swap_top_of_ready_list): Likewise.
25860 (ix86_sched_reorder): Likewise.
25861
25862 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25863
25864 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25865 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25866 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25867 (intel_memset): New. Duplicate slm_memset.
25868 (intel_cost): New. Duplicate slm_cost.
25869 (m_INTEL): New macro.
25870 (processor_target_table): Add "intel".
25871 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25872 with PROCESSOR_INTEL for "intel".
25873 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25874 PROCESSOR_SILVERMONT.
25875 (ix86_issue_rate): Likewise.
25876 (ix86_adjust_cost): Likewise.
25877 (ia32_multipass_dfa_lookahead): Likewise.
25878 (swap_top_of_ready_list): Likewise.
25879 (ix86_sched_reorder): Likewise.
25880 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25881 instead of TARGET_OPT_AGU.
25882 * config/i386/i386.h (TARGET_INTEL): New.
25883 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25884 (processor_type): Add PROCESSOR_INTEL.
25885 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25886 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25887
25888 2014-01-17 Marek Polacek <polacek@redhat.com>
25889
25890 PR c/58346
25891 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25892 size is zero.
25893
25894 2014-01-17 Richard Biener <rguenther@suse.de>
25895
25896 PR tree-optimization/46590
25897 * opts.c (default_options_table): Add entries for
25898 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25899 all enabled at -O1 but not for -Og.
25900 * common.opt (fbranch-count-reg): Remove Init(1).
25901 (fmove-loop-invariants): Likewise.
25902 (ftree-pta): Likewise.
25903
25904 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25905
25906 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25907 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25908 decls to at least the GCC 4.8 used alignments.
25909
25910 PR fortran/59440
25911 * tree-nested.c (convert_nonlocal_reference_stmt,
25912 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25913 of GIMPLE_BIND stmts, adjust associated decls.
25914
25915 2014-01-17 Richard Biener <rguenther@suse.de>
25916
25917 PR tree-optimization/46590
25918 * vec.h (vec<>::bseach): New member function implementing
25919 binary search according to C89 bsearch.
25920 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25921 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25922 bitmap pointer again. Make accesses_in_loop a flat array.
25923 (mem_ref_obstack): New global.
25924 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25925 (mark_ref_stored): Likewise.
25926 (ref_indep_loop_p_2): Likewise.
25927 (set_ref_stored_in_loop): New helper function.
25928 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25929 (memref_free): Adjust.
25930 (record_mem_ref_loc): Simplify.
25931 (gather_mem_refs_stmt): Adjust.
25932 (sort_locs_in_loop_postorder_cmp): New function.
25933 (analyze_memory_references): Sort accesses_in_loop after
25934 loop postorder number.
25935 (find_ref_loc_in_loop_cmp): New function.
25936 (for_all_locs_in_loop): Find relevant cluster of locs in
25937 accesses_in_loop and iterate without recursion.
25938 (execute_sm): Avoid uninit warning.
25939 (struct ref_always_accessed): Simplify.
25940 (ref_always_accessed::operator ()): Likewise.
25941 (ref_always_accessed_p): Likewise.
25942 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25943 loop postorder numbers here.
25944 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25945 numbers.
25946
25947 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25948
25949 PR c++/57945
25950 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25951 on decls for which assemble_alias has been called.
25952
25953 2014-01-17 Nick Clifton <nickc@redhat.com>
25954
25955 * config/msp430/msp430.opt: (mcpu): New option.
25956 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25957 (msp430_option_override): Parse target_cpu. If the MCU name
25958 matches a generic string, clear target_mcu.
25959 (msp430_attr): Allow numeric interrupt values up to 63.
25960 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25961 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25962 option.
25963 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25964 Add mcpu matches.
25965 * config/msp430/msp430.md (popm): Use %J rather than %I.
25966 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25967 (addhi_cy_i): Use immediate_operand for operand 2.
25968 * doc/invoke.texi: Document -mcpu option.
25969
25970 2014-01-17 Richard Biener <rguenther@suse.de>
25971
25972 PR rtl-optimization/38518
25973 * df.h (df_analyze_loop): Declare.
25974 * df-core.c: Include cfgloop.h.
25975 (df_analyze_1): Split out main part of df_analyze.
25976 (df_analyze): Adjust.
25977 (loop_inverted_post_order_compute): New function.
25978 (loop_post_order_compute): Likewise.
25979 (df_analyze_loop): New function avoiding whole-function
25980 postorder computes.
25981 * loop-invariant.c (find_defs): Use df_analyze_loop.
25982 (find_invariants): Adjust.
25983 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25984
25985 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25986
25987 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25988 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25989
25990 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25991
25992 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25993 traversal when removing references.
25994
25995 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25996
25997 PR ipa/59775
25998 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25999
26000 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26001
26002 PR middle-end/56791
26003 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26004 pushing a reload for an autoinc when we had previously reloaded an
26005 inner part of the address.
26006
26007 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26008
26009 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26010 field.
26011 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26012 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26013 when not giving up or versioning for alias only because of
26014 loop->safelen.
26015 (vect_analyze_data_ref_dependences): Set to true.
26016 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26017 is a GIMPLE_PHI.
26018 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26019 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26020 to the condition.
26021
26022 PR middle-end/58344
26023 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26024
26025 PR target/59839
26026 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26027 operand 0 predicate for gathers, use a new pseudo as subtarget.
26028
26029 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26030
26031 PR middle-end/59609
26032 * lra-constraints.c (process_alt_operands): Add printing debug info.
26033 Check absence of input/output reloads for matched operands too.
26034
26035 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26036
26037 PR rtl-optimization/59835
26038 * ira.c (ira_init_register_move_cost): Increase cost for
26039 impossible modes.
26040
26041 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26042
26043 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26044
26045 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26046
26047 PR target/59780
26048 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26049 non-register objects. Use gen_(high/low)part more consistently.
26050 Fix assertions.
26051
26052 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26053
26054 PR target/59844
26055 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26056 endian support, remove tests for WORDS_BIG_ENDIAN.
26057 (p8_mfvsrd_3_<mode>): Likewise.
26058 (reload_gpr_from_vsx<mode>): Likewise.
26059 (reload_gpr_from_vsxsf): Likewise.
26060 (p8_mfvsrd_4_disf): Likewise.
26061
26062 2014-01-16 Richard Biener <rguenther@suse.de>
26063
26064 PR rtl-optimization/46590
26065 * lcm.c (compute_antinout_edge): Use postorder iteration.
26066 (compute_laterin): Use inverted postorder iteration.
26067
26068 2014-01-16 Nick Clifton <nickc@redhat.com>
26069
26070 PR middle-end/28865
26071 * varasm.c (output_constant): Return the number of bytes actually
26072 emitted.
26073 (output_constructor_array_range): Update the field size with the
26074 number of bytes emitted by output_constant.
26075 (output_constructor_regular_field): Likewise. Also do not
26076 complain if the total number of bytes emitted is now greater
26077 than the expected fieldpos.
26078 * output.h (output_constant): Update prototype and descriptive comment.
26079
26080 2014-01-16 Marek Polacek <polacek@redhat.com>
26081
26082 PR middle-end/59827
26083 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26084 it is error_mark_node.
26085
26086 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26087
26088 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26089 VALID_AVX256_REG_OR_OI_MODE.
26090
26091 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26092
26093 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26094 current procedure should be profiled.
26095
26096 2014-01-15 Andrew Pinski <apinski@cavium.com>
26097
26098 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26099 of moving from/to the STACK_REG register class.
26100
26101 2014-01-15 Richard Henderson <rth@redhat.com>
26102
26103 PR debug/54694
26104 * reginfo.c (global_regs_decl): Globalize.
26105 * rtl.h (global_regs_decl): Declare.
26106 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26107 reserved via global_regs.
26108
26109 2014-01-15 Teresa Johnson <tejohnson@google.com>
26110
26111 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26112
26113 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26114
26115 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26116 and vmulosh rather than call gen_vec_widen_smult_*.
26117 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26118 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26119 (vec_widen_smult_even_v16qi): Likewise.
26120 (vec_widen_umult_even_v8hi): Likewise.
26121 (vec_widen_smult_even_v8hi): Likewise.
26122 (vec_widen_umult_odd_v16qi): Likewise.
26123 (vec_widen_smult_odd_v16qi): Likewise.
26124 (vec_widen_umult_odd_v8hi): Likewise.
26125 (vec_widen_smult_odd_v8hi): Likewise.
26126 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26127 vmuloub rather than call gen_vec_widen_umult_*.
26128 (vec_widen_umult_lo_v16qi): Likewise.
26129 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26130 vmulosb rather than call gen_vec_widen_smult_*.
26131 (vec_widen_smult_lo_v16qi): Likewise.
26132 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26133 rather than call gen_vec_widen_umult_*.
26134 (vec_widen_umult_lo_v8hi): Likewise.
26135 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26136 rather than call gen_vec_widen_smult_*.
26137 (vec_widen_smult_lo_v8hi): Likewise.
26138
26139 2014-01-15 Jeff Law <law@redhat.com>
26140
26141 PR tree-optimization/59747
26142 * ree.c (find_and_remove_re): Properly handle case where a second
26143 eliminated extension requires widening a copy created for elimination
26144 of a prior extension.
26145 (combine_set_extension): Ensure that the number of hard regs needed
26146 for a destination register does not change when we widen it.
26147
26148 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26149
26150 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26151 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26152 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26153 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26154 (avr-*-rtems*): Likewise.
26155 (bfin*-rtems*): Likewise.
26156 (moxie-*-rtems*): Likewise.
26157 (h8300-*-rtems*): Likewise.
26158 (i[34567]86-*-rtems*): Likewise.
26159 (lm32-*-rtems*): Likewise.
26160 (m32r-*-rtems*): Likewise.
26161 (m68k-*-rtems*): Likewise.
26162 (microblaze*-*-rtems*): Likewise.
26163 (mips*-*-rtems*): Likewise.
26164 (powerpc-*-rtems*): Likewise.
26165 (sh-*-rtems*): Likewise.
26166 (sparc-*-rtems*): Likewise.
26167 (sparc64-*-rtems*): Likewise.
26168 (v850-*-rtems*): Likewise.
26169 (m32c-*-rtems*): Likewise.
26170
26171 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26172
26173 PR rtl-optimization/59511
26174 * ira.c (ira_init_register_move_cost): Use memory costs for some
26175 cases of register move cost calculations.
26176 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26177 instead of BB frequency.
26178 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26179 * lra-assigns.c (find_hard_regno_for): Ditto.
26180
26181 2014-01-15 Richard Biener <rguenther@suse.de>
26182
26183 PR tree-optimization/59822
26184 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26185 (vectorizable_load): Use it to hoist defs of uses of invariant
26186 loads out of the loop.
26187
26188 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26189 Kugan Vivekanandarajah <kuganv@linaro.org>
26190
26191 PR target/59695
26192 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26193 truncation.
26194
26195 2014-01-15 Richard Biener <rguenther@suse.de>
26196
26197 PR rtl-optimization/59802
26198 * lcm.c (compute_available): Use inverted postorder to seed
26199 the initial worklist.
26200
26201 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26202
26203 PR target/59803
26204 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26205 ADDR_REGS for invalid symrefs in non-PIC code.
26206
26207 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26208
26209 PR other/58712
26210 * builtins.c (determine_block_size): Initialize *probable_max_size
26211 even if len_rtx is CONST_INT.
26212
26213 2014-01-14 Andrew Pinski <apinski@cavium.com>
26214
26215 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26216 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26217 (cortexa53_tunings): Likewise.
26218 (aarch64_sched_issue_rate): New function.
26219 (TARGET_SCHED_ISSUE_RATE): Define.
26220
26221 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26222
26223 * ira-costs.c (find_costs_and_classes): Add missed
26224 ira_init_register_move_cost_if_necessary.
26225
26226 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26227
26228 PR target/59787
26229 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26230
26231 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26232
26233 PR target/59794
26234 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26235 to indicate if type is used for function return value. Warn ABI
26236 change if the vector mode isn't available for function return value.
26237 (ix86_function_arg_advance): Pass false to type_natural_mode.
26238 (ix86_function_arg): Likewise.
26239 (ix86_gimplify_va_arg): Likewise.
26240 (function_arg_32): Don't warn ABI change.
26241 (ix86_function_value): Pass true to type_natural_mode.
26242 (ix86_return_in_memory): Likewise.
26243 (ix86_struct_value_rtx): Removed.
26244 (TARGET_STRUCT_VALUE_RTX): Likewise.
26245
26246 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26247
26248 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26249 converting a conditional jump into a conditional return.
26250
26251 2014-01-14 Richard Biener <rguenther@suse.de>
26252
26253 PR tree-optimization/58921
26254 PR tree-optimization/59006
26255 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26256 hoisting invariant stmts.
26257 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26258 invariant loads on the preheader edge if possible.
26259
26260 2014-01-14 Joey Ye <joey.ye@arm.com>
26261
26262 * doc/plugin.texi (Building GCC plugins): Update to C++.
26263
26264 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26265
26266 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26267 (_mm_rcp28_round_ss): Ditto.
26268 (_mm_rsqrt28_round_sd): Ditto.
26269 (_mm_rsqrt28_round_ss): Ditto.
26270 (_mm_rcp28_sd): Ditto.
26271 (_mm_rcp28_ss): Ditto.
26272 (_mm_rsqrt28_sd): Ditto.
26273 (_mm_rsqrt28_ss): Ditto.
26274 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26275 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26276 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26277 (IX86_BUILTIN_RCP28SD): Ditto.
26278 (IX86_BUILTIN_RCP28SS): Ditto.
26279 (IX86_BUILTIN_RSQRT28SD): Ditto.
26280 (IX86_BUILTIN_RSQRT28SS): Ditto.
26281 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26282 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26283 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26284 (ix86_expand_special_args_builtin): Expand new FTYPE.
26285 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26286 (srcp14<mode>): Make insn unary.
26287 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26288 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26289 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26290 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26291 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26292 Fix rounding: make it SAE only.
26293 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26294 Ditto.
26295 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26296 Ditto.
26297 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26298 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26299 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26300 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26301 (round_saeonly_mask_scalar_operand4): Ditto.
26302 (round_saeonly_mask_scalar_op3): Ditto.
26303 (round_saeonly_mask_scalar_op4): Ditto.
26304
26305 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26306
26307 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26308 Implement -maltivec=be for vec_insert and vec_extract.
26309
26310 2014-01-10 DJ Delorie <dj@redhat.com>
26311
26312 * config/msp430/msp430.md (call_internal): Don't allow memory
26313 references with SP as the base register.
26314 (call_value_internal): Likewise.
26315 * config/msp430/constraints.md (Yc): New. For memory references
26316 that don't use SP as a base register.
26317
26318 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26319 "an integer without a # prefix"
26320 * config/msp430/msp430.md (epilogue_helper): Use it.
26321
26322 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26323
26324 PR target/59617
26325 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26326 AVX512F gather builtins.
26327 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26328 on gather decls with INTEGER_TYPE masktype.
26329 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26330 directly into the builtin rather than hoisting it before loop.
26331
26332 PR tree-optimization/59387
26333 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26334 (scev_const_prop): If folded_casts and type has undefined overflow,
26335 use force_gimple_operand instead of force_gimple_operand_gsi and
26336 for each added stmt if it is assign with
26337 arith_code_with_undefined_signed_overflow, call
26338 rewrite_to_defined_overflow.
26339 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26340 gimple-fold.h instead.
26341 (arith_code_with_undefined_signed_overflow,
26342 rewrite_to_defined_overflow): Moved to ...
26343 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26344 rewrite_to_defined_overflow): ... here. No longer static.
26345 Include gimplify-me.h.
26346 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26347 rewrite_to_defined_overflow): New prototypes.
26348
26349 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26350
26351 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26352
26353 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26354
26355 * builtins.c (get_object_alignment_2): Minor tweak.
26356 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26357
26358 2014-01-13 Christian Bruel <christian.bruel@st.com>
26359
26360 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26361 optimized non constant lengths.
26362
26363 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26364
26365 PR libgomp/59194
26366 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26367 load as __atomic_load_N if possible.
26368
26369 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26370
26371 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26372 target parameter.
26373 (rs6000_expand_builtin): Adjust call.
26374
26375 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26376
26377 PR target/58115
26378 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26379 * config/rs6000/rs6000.c: Include target-globals.h.
26380 (rs6000_set_current_function): Instead of doing target_reinit
26381 unconditionally, use save_target_globals_default_opts and
26382 restore_target_globals.
26383
26384 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26385 FPSCR.
26386 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26387 (rs6000_expand_builtin): Handle mffs and mtfsf.
26388 (rs6000_init_builtins): Define mffs and mtfsf.
26389 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26390 (rs6000_mffs): New pattern.
26391 (rs6000_mtfsf): New pattern.
26392
26393 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26394
26395 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26396 Start narrowing with START. Apply candidate-use pair
26397 and check overall cost in narrowing.
26398 (iv_ca_prune): Pass new argument.
26399
26400 2014-01-10 Jeff Law <law@redhat.com>
26401
26402 PR middle-end/59743
26403 * ree.c (combine_reaching_defs): Ensure the defining statement
26404 occurs before the extension when optimizing extensions with
26405 different source and destination hard registers.
26406
26407 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26408
26409 PR ipa/58585
26410 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26411 vtables into the type inheritance graph.
26412
26413 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26414
26415 PR rtl-optimization/59754
26416 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26417 modes in the REGNO != REGNO case.
26418
26419 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26420
26421 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26422
26423 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26424
26425 PR tree-optimization/59745
26426 * tree-predcom.c (tree_predictive_commoning_loop): Call
26427 free_affine_expand_cache if giving up because components is NULL.
26428
26429 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26430 GC in payload of target_globals struct instead of allocating them on
26431 the heap and the larger structs separately using GC.
26432 * target-globals.h (struct target_globals): Make regs, hard_regs,
26433 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26434 of GTY((skip)) and change type to void *.
26435 (reset_target_globals): Cast loads from those fields to corresponding
26436 types.
26437
26438 2014-01-10 Steve Ellcey <sellcey@mips.com>
26439
26440 PR plugins/59335
26441 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26442 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26443 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26444
26445 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26446
26447 PR target/59744
26448 * aarch64-modes.def (CC_Zmode): New flags mode.
26449 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26450 represents an equality.
26451 (aarch64_get_condition_code): Handle CC_Zmode.
26452 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26453
26454 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26455
26456 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26457 extraction in good case.
26458
26459 2014-01-10 Richard Biener <rguenther@suse.de>
26460
26461 PR tree-optimization/59374
26462 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26463 checking after SLP discovery. Mark stmts not participating
26464 in any SLP instance properly.
26465
26466 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26467
26468 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26469 when handling a SET rtx.
26470
26471 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26472
26473 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26474 (cortex-a57): Likewise.
26475 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26476
26477 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26478
26479 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26480 non-iwmmxt builtins.
26481
26482 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26483
26484 PR ipa/58252
26485 PR ipa/59226
26486 * ipa-devirt.c record_target_from_binfo): Take as argument
26487 stack of binfos and lookup matching one for virtual inheritance.
26488 (possible_polymorphic_call_targets_1): Update.
26489
26490 2014-01-10 Huacai Chen <chenhc@lemote.com>
26491
26492 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26493 kernel strings for Loongson-2E/2F/3A.
26494
26495 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26496
26497 PR middle-end/59670
26498 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26499 is_gimple_call before calling gimple_call_internal_p.
26500
26501 2014-01-09 Steve Ellcey <sellcey@mips.com>
26502
26503 * Makefile.in (TREE_FLOW_H): Remove.
26504 (TREE_SSA_H): Add file names from tree-flow.h.
26505 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26506 * tree.h: Remove tree-flow.h reference.
26507 * hash-table.h: Remove tree-flow.h reference.
26508 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26509 reference with tree-ssa-loop.h.
26510
26511 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26512
26513 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26514 default element-order behavior for -maltivec.
26515 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26516 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26517 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26518 when targeting big endian, at least for now.
26519 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26520
26521 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26522
26523 PR middle-end/47735
26524 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26525 var satisfies use_register_for_decl, just take into account type
26526 alignment, rather than decl alignment.
26527
26528 PR tree-optimization/59622
26529 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26530 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26531 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26532 Don't devirtualize for inplace at all. For targets.length () == 1,
26533 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26534
26535 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26536
26537 * config/i386/i386.md (cpu): Remove the unused btver1.
26538
26539 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26540
26541 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26542
26543 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26544
26545 PR target/58115
26546 * tree-core.h (struct target_globals): New forward declaration.
26547 (struct tree_target_option): Add globals field.
26548 * tree.h (TREE_TARGET_GLOBALS): Define.
26549 (prepare_target_option_nodes_for_pch): New prototype.
26550 * target-globals.h (struct target_globals): Define even if
26551 !SWITCHABLE_TARGET.
26552 * tree.c (prepare_target_option_node_for_pch,
26553 prepare_target_option_nodes_for_pch): New functions.
26554 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26555 * config/i386/i386.c: Include target-globals.h.
26556 (ix86_set_current_function): Instead of doing target_reinit
26557 unconditionally, use save_target_globals_default_opts and
26558 restore_target_globals.
26559
26560 2014-01-09 Richard Biener <rguenther@suse.de>
26561
26562 PR tree-optimization/59715
26563 * tree-cfg.h (split_critical_edges): Declare.
26564 * tree-cfg.c (split_critical_edges): Export.
26565 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26566
26567 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26568
26569 * cfgexpand.c (expand_stack_vars): Optionally disable
26570 asan stack protection.
26571 (expand_used_vars): Likewise.
26572 (partition_stack_vars): Likewise.
26573 * asan.c (asan_emit_stack_protection): Optionally disable
26574 after return stack usage.
26575 (instrument_derefs): Optionally disable memory access instrumentation.
26576 (instrument_builtin_call): Likewise.
26577 (instrument_strlen_call): Likewise.
26578 (asan_protect_global): Optionally disable global variables protection.
26579 * doc/invoke.texi: Added doc for new options.
26580 * params.def: Added new options.
26581 * params.h: Likewise.
26582
26583 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26584
26585 PR rtl-optimization/59724
26586 * ifcvt.c (cond_exec_process_if_block): Don't call
26587 flow_find_head_matching_sequence with 0 longest_match.
26588 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26589 non-active insns if !stop_after.
26590 (try_head_merge_bb): Revert 2014-01-07 changes.
26591
26592 2014-01-08 Jeff Law <law@redhat.com>
26593
26594 * ree.c (get_sub_rtx): New function, extracted from...
26595 (merge_def_and_ext): Here.
26596 (combine_reaching_defs): Use get_sub_rtx.
26597
26598 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26599
26600 * cgraph.h (varpool_variable_node): Do not choke on null node.
26601
26602 2014-01-08 Catherine Moore <clm@codesourcery.com>
26603
26604 * config/mips/mips.md (simple_return): Attempt to use JRC
26605 for microMIPS.
26606 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26607
26608 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26609
26610 PR rtl-optimization/59137
26611 * reorg.c (steal_delay_list_from_target): Call update_block for
26612 elided insns.
26613 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26614
26615 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26616
26617 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26618 two duplicate entries.
26619
26620 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26621
26622 Revert:
26623 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26624
26625 * config/mips/mips.c (mips_truncated_op_cost): New function.
26626 (mips_rtx_costs): Adjust test for BADDU.
26627 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26628
26629 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26630
26631 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26632 (*baddu_si): ...this new pattern.
26633
26634 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26635
26636 PR ipa/59722
26637 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26638
26639 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26640
26641 PR middle-end/57748
26642 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26643 inner_reference_p.
26644 (expand_expr, expand_normal): Adjust.
26645 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26646 inner_reference_p. Use inner_reference_p to expand inner references.
26647 (store_expr): Adjust.
26648 * cfgexpand.c (expand_call_stmt): Adjust.
26649
26650 2014-01-08 Rong Xu <xur@google.com>
26651
26652 * gcov-io.c (gcov_var): Move from gcov-io.h.
26653 (gcov_position): Ditto.
26654 (gcov_is_error): Ditto.
26655 (gcov_rewrite): Ditto.
26656 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26657 only part to libgcc/libgcov.h.
26658
26659 2014-01-08 Marek Polacek <polacek@redhat.com>
26660
26661 PR middle-end/59669
26662 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26663
26664 2014-01-08 Marek Polacek <polacek@redhat.com>
26665
26666 PR sanitizer/59667
26667 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26668
26669 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26670
26671 PR rtl-optimization/59649
26672 * stor-layout.c (get_mode_bounds): For BImode return
26673 0 and STORE_FLAG_VALUE.
26674
26675 2014-01-08 Richard Biener <rguenther@suse.de>
26676
26677 PR middle-end/59630
26678 * gimple.h (is_gimple_builtin_call): Remove.
26679 (gimple_builtin_call_types_compatible_p): New.
26680 (gimple_call_builtin_p): New overload.
26681 * gimple.c (is_gimple_builtin_call): Remove.
26682 (validate_call): Rename to ...
26683 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26684 check return types.
26685 (validate_type): New static function.
26686 (gimple_call_builtin_p): New overload and adjust.
26687 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26688 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26689 (gimple_fold_stmt_to_constant_1): Likewise.
26690 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26691
26692 2014-01-08 Richard Biener <rguenther@suse.de>
26693
26694 PR middle-end/59471
26695 * gimplify.c (gimplify_expr): Gimplify register-register type
26696 VIEW_CONVERT_EXPRs to separate stmts.
26697
26698 2014-01-07 Jeff Law <law@redhat.com>
26699
26700 PR middle-end/53623
26701 * ree.c (combine_set_extension): Handle case where source
26702 and destination registers in an extension insn are different.
26703 (combine_reaching_defs): Allow source and destination registers
26704 in extension to be different under limited circumstances.
26705 (add_removable_extension): Remove restriction that the
26706 source and destination registers in the extension are the same.
26707 (find_and_remove_re): Emit a copy from the extension's
26708 destination to its source after the defining insn if
26709 the source and destination registers are different.
26710
26711 PR middle-end/59285
26712 * ifcvt.c (merge_if_block): If we are merging a block with more than
26713 one successor with a block with no successors, remove any BARRIER
26714 after the second block.
26715
26716 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26717
26718 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26719
26720 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26721
26722 PR target/59652
26723 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26724 for 14-bit register offsets when INT14_OK_STRICT is false.
26725
26726 2014-01-07 Roland Stigge <stigge@antcom.de>
26727 Michael Meissner <meissner@linux.vnet.ibm.com>
26728
26729 PR 57386/target
26730 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26731 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26732
26733 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26734
26735 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26736 -mcpu.
26737
26738 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26739
26740 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26741 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26742 rtx is const0_rtx or not.
26743
26744 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26745
26746 PR target/58115
26747 * target-globals.c (save_target_globals): Remove this_fn_optab
26748 handling.
26749 * toplev.c: Include optabs.h.
26750 (target_reinit): Temporarily restore the global options if another
26751 set of options are in force.
26752
26753 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26754
26755 PR rtl-optimization/58668
26756 * cfgcleanup.c (flow_find_cross_jump): Don't count
26757 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26758 to determine what is counted.
26759 (flow_find_head_matching_sequence): Use active_insn_p to determine
26760 what is counted.
26761 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26762 counting change.
26763 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26764 determine what is counted.
26765
26766 PR tree-optimization/59643
26767 * tree-predcom.c (split_data_refs_to_components): If one dr is
26768 read and one write, determine_offset fails and the write isn't
26769 in the bad component, just put the read into the bad component.
26770
26771 2014-01-07 Mike Stump <mikestump@comcast.net>
26772 Jakub Jelinek <jakub@redhat.com>
26773
26774 PR pch/59436
26775 * tree-core.h (struct tree_optimization_option): Change optabs
26776 type from unsigned char * to void *.
26777 * optabs.c (init_tree_optimization_optabs): Adjust
26778 TREE_OPTIMIZATION_OPTABS initialization.
26779
26780 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26781
26782 PR target/59644
26783 * config/i386/i386.h (struct machine_function): Add
26784 no_drap_save_restore field.
26785 * config/i386/i386.c (ix86_save_reg): Use
26786 !cfun->machine->no_drap_save_restore instead of
26787 crtl->stack_realign_needed.
26788 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26789 this function clears frame_pointer_needed. Set
26790 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26791 and DRAP reg is needed.
26792
26793 2014-01-06 Marek Polacek <polacek@redhat.com>
26794
26795 PR c/57773
26796 * doc/implement-c.texi: Mention that other integer types are
26797 permitted as bit-field types in strictly conforming mode.
26798
26799 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26800
26801 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26802 is newly allocated.
26803
26804 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26805
26806 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26807
26808 2014-01-06 Martin Jambor <mjambor@suse.cz>
26809
26810 PR ipa/59008
26811 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26812 to int.
26813 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26814
26815 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26816
26817 PR debug/59350
26818 PR debug/59510
26819 * var-tracking.c (add_stores): Preserve the value of the source even if
26820 we don't record the store.
26821
26822 2014-01-06 Terry Guo <terry.guo@arm.com>
26823
26824 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26825
26826 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26827
26828 PR bootstrap/59541
26829 * config/darwin.c (darwin_function_section): Adjust return values to
26830 correspond to optimisation changes made in r206070.
26831
26832 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26833
26834 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26835 from prefetch_block tune setting.
26836 (nocona_cost): Correct size of prefetch block to 64.
26837
26838 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26839
26840 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26841 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26842 used to save the static chain register in the computation of the offset
26843 from which the FP registers need to be restored.
26844
26845 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26846
26847 PR tree-optimization/59519
26848 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26849 ICE if get_current_def (current_new_name) is already non-NULL, as long
26850 as it is a phi result of some other phi in *new_exit_bb that has
26851 the same argument.
26852
26853 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26854 or vmovdqu* for misaligned_operand.
26855 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26856 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26857 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26858 aligned_mem for AVX512F masked aligned load and store builtins and for
26859 non-temporal moves.
26860
26861 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26862
26863 PR tree-optimization/59651
26864 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26865 Address range for negative step should be added by TYPE_SIZE_UNIT.
26866
26867 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26868
26869 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26870 overlapping registers also for registers other than the stack pointer.
26871
26872 2014-01-03 Marek Polacek <polacek@redhat.com>
26873
26874 PR other/59661
26875 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26876 __builtin_FILE.
26877
26878 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26879
26880 PR target/59625
26881 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26882 asm goto as jump.
26883
26884 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26885 (push splitter): Use <P:MODE_SIZE> instead of
26886 GET_MODE_SIZE (<P:MODE>mode).
26887 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26888 (mov -1, reg peephole2): Likewise.
26889 * config/i386/sse.md (*mov<mode>_internal,
26890 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26891 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26892 *<code><mode>3, *andnot<mode>3<mask_name>,
26893 <mask_codefor><code><mode>3<mask_name>): Likewise.
26894 * config/i386/subst.md (mask_mode512bit_condition,
26895 sd_mask_mode512bit_condition): Likewise.
26896
26897 2014-01-02 Xinliang David Li <davidxl@google.com>
26898
26899 PR tree-optimization/59303
26900 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26901 (dump_predicates): Better output format.
26902 (pred_equal_p): New function.
26903 (is_neq_relop_p): Ditto.
26904 (is_neq_zero_form_p): Ditto.
26905 (pred_expr_equal_p): Ditto.
26906 (pred_neg_p): Ditto.
26907 (simplify_pred): Ditto.
26908 (simplify_preds_2): Ditto.
26909 (simplify_preds_3): Ditto.
26910 (simplify_preds_4): Ditto.
26911 (simplify_preds): Ditto.
26912 (push_pred): Ditto.
26913 (push_to_worklist): Ditto.
26914 (get_pred_info_from_cmp): Ditto.
26915 (is_degenerated_phi): Ditto.
26916 (normalize_one_pred_1): Ditto.
26917 (normalize_one_pred): Ditto.
26918 (normalize_one_pred_chain): Ditto.
26919 (normalize_preds): Ditto.
26920 (normalize_cond_1): Remove function.
26921 (normalize_cond): Ditto.
26922 (is_gcond_subset_of): Ditto.
26923 (is_subset_of_any): Ditto.
26924 (is_or_set_subset_of): Ditto.
26925 (is_and_set_subset_of): Ditto.
26926 (is_norm_cond_subset_of): Ditto.
26927 (pred_chain_length_cmp): Ditto.
26928 (convert_control_dep_chain_into_preds): Type change.
26929 (find_predicates): Ditto.
26930 (find_def_preds): Ditto.
26931 (destroy_predicates_vecs): Ditto.
26932 (find_matching_predicates_in_rest_chains): Ditto.
26933 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26934 (is_pred_expr_subset): Ditto.
26935 (is_pred_chain_subset_of): Ditto.
26936 (is_included_in): Ditto.
26937 (is_superset_of): Ditto.
26938
26939 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26940
26941 Update copyright years.
26942
26943 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26944
26945 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26946 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26947 config/arc/arc.md, config/arc/arc.opt,
26948 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26949 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26950 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26951 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26952 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26953 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26954 vtable-verify.c, vtable-verify.h: Use the standard form for the
26955 copyright notice.
26956
26957 2014-01-02 Tobias Burnus <burnus@net-b.de>
26958
26959 * gcc.c (process_command): Update copyright notice dates.
26960 * gcov-dump.c: Ditto.
26961 * gcov.c: Ditto.
26962 * doc/cpp.texi: Bump @copying's copyright year.
26963 * doc/cppinternals.texi: Ditto.
26964 * doc/gcc.texi: Ditto.
26965 * doc/gccint.texi: Ditto.
26966 * doc/gcov.texi: Ditto.
26967 * doc/install.texi: Ditto.
26968 * doc/invoke.texi: Ditto.
26969
26970 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26971
26972 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26973
26974 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26975
26976 * config/i386/sse.md (*mov<mode>_internal): Guard
26977 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26978
26979 PR rtl-optimization/59647
26980 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26981 new_rtx into UNSIGNED_FLOAT rtxes.
26982 \f
26983 Copyright (C) 2014 Free Software Foundation, Inc.
26984
26985 Copying and distribution of this file, with or without modification,
26986 are permitted in any medium without royalty provided the copyright
26987 notice and this notice are preserved.