ddg.c (walk_mems_2, [...]): Delete.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5 to iterate over subrtxes. Return a bool rather than an int.
6
7 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8
9 * ddg.c: Include rtl-iter.h.
10 (mark_mem_use_1): Rename to...
11 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
12 instead of for_each_rtx.
13 (mem_read_insn_p): Update accordingly.
14
15 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16
17 * cse.c (change_cc_mode_args): Delete.
18 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
19 a function that examines each subrtx itself. Take the fields of
20 change_cc_mode_args as argument and return void.
21 (cse_change_cc_mode_insn): Update calls accordingly.
22
23 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * cse.c (is_dead_reg): Change argument to const_rtx.
26 (dead_debug_insn_data): Delete.
27 (is_dead_debug_insn): Expand commentary. Turn from being a
28 for_each_rtx callback to being a function that examines
29 each subrtx itself. Take the fields of dead_debug_insn_data
30 as argument.
31 (delete_trivially_dead_insns): Update call accordingly.
32
33 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
34
35 * cse.c (check_for_label_ref): Move earlier in file. Turn from
36 being a for_each_rtx callback to being a function that examines
37 each subrtx itself.
38 (cse_extended_basic_block): Update call accordingly.
39
40 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
41
42 * cse.c (check_dependence_data): Delete.
43 (check_dependence): Change from being a for_each_rtx callback to being
44 a function that examines all subrtxes itself. Don't handle null rtxes.
45 (invalidate): Update call accordingly.
46
47 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
48
49 * cse.c: Include rtl-iter.h.
50 (approx_reg_cost_1): Delete.
51 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
52 Don't handle null rtxes.
53
54 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
55
56 * cfgcleanup.c: Include rtl-iter.h.
57 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
58 to being a function that examines each subrtx itself.
59 (thread_jump): Update accordingly.
60
61 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
62
63 * combine-stack-adj.c: Include rtl-iter.h.
64 (record_stack_refs_data): Delete.
65 (record_stack_refs): Turn from being a for_each_rtx callback
66 to being a function that examines each subrtx itself.
67 Take a pointer to the reflist. Invert sense of return value
68 so that true means success and false means failure. Don't
69 handle null rtxes.
70 (combine_stack_adjustments_for_block): Update accordingly.
71
72 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
73
74 * combine.c (record_truncated_value): Turn from being a for_each_rtx
75 callback to a function that takes an rtx and returns a bool
76 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
77 for_each_rtx.
78
79 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
80
81 * combine.c: Include rtl-iter.h.
82 (unmentioned_reg_p_1): Delete.
83 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
84 Don't handle null rtxes.
85
86 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
87
88 * calls.c: Include rtl-iter.h.
89 (internal_arg_pointer_based_exp_1): Delete.
90 (internal_arg_pointer_based_exp): Take a const_rtx.
91 Use FOR_EACH_SUBRTX to iterate over subrtxes.
92
93 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
94
95 * caller-save.c: Include rtl-iter.h.
96 (add_used_regs_1): Delete.
97 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
98 to iterate over subrtxes. Assert that any remaining pseudos
99 have been spilled.
100
101 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
102
103 * bt-load.c: Include rtl-iter.h.
104 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
105 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
106 to iterate over subrtxes.
107 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
108 find_btr_use rather than btr_referenced_p.
109
110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
111
112 * alias.c: Include rtl-iter.h.
113 (refs_newer_value_cb): Delete.
114 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
115
116 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
117
118 * rtl-iter.h: New file.
119 * rtlanal.c: Include it.
120 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
121 (generic_subrtx_iterator <T>::add_single_to_queue)
122 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
123 (generic_subrtx_iterator <T>::free_array): New functions.
124 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
125 (generic_subrtx_iterator <const_rtx_accessor>)
126 (generic_subrtx_iterator <rtx_var_accessor>
127 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
128 (setup_reg_subrtx_bounds): New function.
129 (init_rtlanal): Call it.
130
131 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
132
133 PR target/62261
134 * config/sh/sh.md (ashlsi3): Handle negative shift count for
135 TARGET_SHMEDIA.
136 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
137
138 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
139
140 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
141
142 2014-08-27 David Malcolm <dmalcolm@redhat.com>
143
144 * rtl.h (JUMP_LABEL_AS_INSN): New.
145
146 2014-08-27 David Malcolm <dmalcolm@redhat.com>
147
148 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
149 rtx_expr_list **.
150 (alloc_EXPR_LIST): Strengthen return type from rtx to
151 rtx_expr_list *.
152 (remove_free_EXPR_LIST_node): Likewise for param.
153 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
154 from rtx to rtx_expr_list *.
155 * sched-int.h (struct deps_desc): Strengthen fields
156 "pending_read_mems" and "pending_write_mems" from rtx to
157 rtx_expr_list *.
158
159 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
160 rtx to rtx_expr_list *.
161 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
162 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
163 rtx_expr_list **.
164 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
165 from rtx to rtx_expr_list *.
166 * loop-iv.c (simplify_using_initial_values): Strengthen local
167 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
168 "pnote_next" from rtx * to rtx_expr_list **.
169 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
170 param "exprp" from rtx * to rtx_expr_list **.
171 (add_insn_mem_dependence): Strengthen local "mem_list" from
172 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
173 to rtx_expr_list *.
174 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
175 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
176 param "old_mems_p" from rtx * to rtx_expr_list **.
177 * var-tracking.c (struct adjust_mem_data): Strengthen field
178 "side_effects" from rtx to rtx_expr_list *.
179 (adjust_insn): Replace NULL_RTX with NULL when assigning to
180 rtx_expr_list *.
181 (prepare_call_arguments): Likewise.
182
183 2014-08-27 David Malcolm <dmalcolm@redhat.com>
184
185 * function.h (struct rtl_data): Strengthen field
186 "x_stack_slot_list" from rtx to rtx_expr_list *.
187
188 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
189 when assigning to stack_slot_list.
190
191 2014-08-27 David Malcolm <dmalcolm@redhat.com>
192
193 * function.h (struct rtl_data): Strengthen field
194 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
195 * rtl.h (remove_node_from_expr_list): Strengthen second param from
196 rtx * to rtx_expr_list **.
197
198 * cfgbuild.c (make_edges): In loop over
199 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
200 rtx_expr_list *, and use methods of the latter class to clarify
201 the code.
202 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
203 rtx_expr_list *, and use methods of the latter class to clarify
204 the code.
205 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
206 * reload1.c (set_initial_label_offsets): Likewise for local "x".
207 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
208 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
209 to rtx_expr_list *. Use methods of the latter class to clarify
210 the code.
211
212 2014-08-27 David Malcolm <dmalcolm@redhat.com>
213
214 * function.h (struct expr_status): Strengthen field
215 "x_forced_labels" from rtx to rtx_expr_list *.
216
217 * cfgbuild.c (make_edges): Split local "x" into two locals,
218 strengthening one from rtx to rtx_expr_list *, and using methods
219 of said class.
220 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
221 loop over forced_labels, introduce strengthen it from rtx to
222 rtx_expr_list *, using methods to clarify the code.
223 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
224 to rtx_expr_list *, using methods of said class to clarify the
225 code.
226 * reload1.c (set_initial_label_offsets): Split local "x" into two
227 per-loop variables, strengthening the first from rtx to
228 rtx_expr_list * and using methods.
229
230 2014-08-27 David Malcolm <dmalcolm@redhat.com>
231
232 * coretypes.h (class rtx_expr_list): Add forward declaration.
233 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
234 * gengenrtl.c (special_rtx): Add EXPR_LIST.
235 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
236 invariant: GET_CODE (X) == EXPR_LIST.
237 (is_a_helper <rtx_expr_list *>::test): New.
238 (rtx_expr_list::next): New.
239 (rtx_expr_list::element): New.
240 (gen_rtx_EXPR_LIST): New.
241
242 2014-08-27 David Malcolm <dmalcolm@redhat.com>
243
244 * varasm.c (mark_constants): Convert a GET_CODE check into a
245 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
246 Use methods of rtx_sequence to clarify the code.
247
248 2014-08-27 David Malcolm <dmalcolm@redhat.com>
249
250 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
251 local "seq" via a checked cast, and use methods of rtx_sequence
252 to simplify the code.
253
254 2014-08-27 David Malcolm <dmalcolm@redhat.com>
255
256 * resource.c (mark_referenced_resources): Strengthen local
257 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
258 using methods of rtx_sequence to clarify the code.
259 (find_dead_or_set_registers): Within the switch statement, convert
260 a GET_CODE check to a dyn_cast, introducing local "seq". Within
261 the JUMP_P handling, introduce another local "seq", adding a
262 checked cast to rtx_sequence *. In both cases, use methods of
263 rtx_sequence to clarify the code.
264 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
265 via a checked cast, and use methods of rtx_sequence to simplify
266 the code.
267
268 2014-08-27 David Malcolm <dmalcolm@redhat.com>
269
270 * reorg.c (redundant_insn): In two places in the function, replace
271 a check of GET_CODE with a dyn_cast, introducing local "seq", and
272 usings methods of rtx_sequence to clarify the code.
273
274 2014-08-27 David Malcolm <dmalcolm@redhat.com>
275
276 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
277 local "seq" with a checked cast, and use methods of rtx_sequence
278 to clarify the code.
279
280 2014-08-27 David Malcolm <dmalcolm@redhat.com>
281
282 * function.c (contains): Introduce local "seq" for PATTERN (insn),
283 with a checked cast, in the region for where we know it's a
284 SEQUENCE. Use methods of rtx_sequence.
285
286 2014-08-27 David Malcolm <dmalcolm@redhat.com>
287
288 * final.c (get_attr_length_1): Replace GET_CODE check with a
289 dyn_cast, introducing local "seq" and the use of methods of
290 rtx_sequence.
291 (shorten_branches): Likewise, introducing local "body_seq".
292 Strengthen local "inner_insn" from rtx to rtx_insn *.
293 (reemit_insn_block_notes): Replace GET_CODE check with a
294 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
295 Use methods of rtx_sequence.
296 (final_scan_insn): Likewise, introducing local "seq" for when
297 "body" is known to be a SEQUENCE, using its methods.
298
299 2014-08-27 David Malcolm <dmalcolm@redhat.com>
300
301 * except.c (can_throw_external): Strengthen local "seq" from rtx
302 to rtx_sequence *. Use methods of rtx_sequence.
303 (insn_nothrow_p): Likewise.
304
305 2014-08-27 David Malcolm <dmalcolm@redhat.com>
306
307 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
308 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
309 Use methods of rtx_sequence.
310 (scan_trace): Likewise for local "pat".
311
312 2014-08-27 David Malcolm <dmalcolm@redhat.com>
313
314 * coretypes.h (class rtx_sequence): Add forward declaration.
315 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
316 invariant: GET_CODE (X) == SEQUENCE.
317 (is_a_helper <rtx_sequence *>::test): New.
318 (is_a_helper <const rtx_sequence *>::test): New.
319 (rtx_sequence::len): New.
320 (rtx_sequence::element): New.
321 (rtx_sequence::insn): New.
322
323 2014-08-27 David Malcolm <dmalcolm@redhat.com>
324
325 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
326 rtx_insn_list **.
327 (alloc_INSN_LIST): Strengthen return type from rtx to
328 rtx_insn_list *.
329 (copy_INSN_LIST): Likewise for return type and param.
330 (concat_INSN_LIST): Likewise for both params and return type.
331 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
332 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
333 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
334 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
335
336 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
337 "implicit_sets", "control_uses", "clobbers" from rtx to
338 rtx_insn_list *.
339 (struct deps_desc): Likewise for fields "pending_read_insns",
340 "pending_write_insns", "pending_jump_insns",
341 "last_pending_memory_flush", "last_function_call",
342 "last_function_call_may_noreturn", "sched_before_next_call",
343 "sched_before_next_jump".
344 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
345 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
346
347 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
348 from rtx to rtx_insn_list *.
349 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
350 rtx_insn_list *.
351
352 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
353 to rtx_insn_list **.
354 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
355 rtx_insn_list *.
356 (queue_insn): Likewise for local "link".
357 (struct haifa_saved_data): Strengthen field "insn_queue" from
358 rtx * to rtx_insn_list **.
359 (save_backtrack_point): Update allocation of save->insn_queue to
360 reflect the strengthening of elements from rtx to rtx_insn_list *.
361 (queue_to_ready): Strengthen local "link" from rtx to
362 rtx_insn_list *; use methods "next" and "insn" when traversing the
363 list.
364 (early_queue_to_ready): Likewise for locals "link", "next_link",
365 "prev_link".
366 (schedule_block): Update allocation of insn_queue to reflect the
367 strengthening of elements from rtx to rtx_insn_list *. Strengthen
368 local "link" from rtx to rtx_insn_list *, and use methods when
369 working it.
370 (add_to_speculative_block): Strengthen locals "twins" and
371 "next_node" from rtx to rtx_insn_list *, and use methods when
372 working with them. Strengthen local "twin" from rtx to
373 rtx_insn *, eliminating a checked cast.
374 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
375 from rtx to rtx_insn_list *, and use methods when working with
376 them.
377
378 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
379 from rtx to rtx_insn_list *, adding a checked cast.
380 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
381 rtx_insn_list **.
382 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
383 "newlink" from rtx to rtx_insn_list *. Strengthen local
384 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
385 from rtx to rtx_insn *.
386 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
387 from rtx to rtx_insn_list *. Use methods of the latter class.
388 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
389 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
390 (remove_free_INSN_LIST_node): Strengthen return type and local
391 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
392 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
393 rtx_insn_list *, using "insn" method.
394
395 * sched-deps.c (add_dependence_list): Strengthen param "list"
396 from rtx to rtx_insn_list *, and use methods when working with it.
397 (add_dependence_list_and_free): Strengthen param "listp" from
398 rtx * to rtx_insn_list **.
399 (remove_from_dependence_list): Strenghten param "listp" from rtx *
400 to rtx_insn_list **, and use methods when working with *listp.
401 (remove_from_both_dependence_lists): Strengthen param "listp" from
402 rtx * to rtx_insn_list **
403 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
404 to rtx_insn_list **. Eliminate local "link", in favor of two new
405 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
406 respectively.
407 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
408 by introducing local "cond_deps".
409 (remove_from_deps): Strengthen param "insn" from rtx to
410 rtx_insn *.
411
412 * sched-rgn.c (concat_insn_mem_list): Strengthen param
413 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
414 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
415 Use methods of rtx_insn_list.
416
417 * store-motion.c (struct st_expr): Strengthen fields
418 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
419 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
420 rtx_insn_list *.
421 (find_moveable_store): Split out "tmp" into multiple more-tightly
422 scoped locals. Use methods of rtx_insn_list *.
423 (compute_store_table): Strengthen local "tmp" from rtx to
424 rtx_insn *. Use methods of rtx_insn_list *.
425
426 2014-08-27 David Malcolm <dmalcolm@redhat.com>
427
428 * coretypes.h (class rtx_insn_list): Add forward declaration.
429 * rtl.h (class rtx_insn_list): New subclass of rtx_def
430 (is_a_helper <rtx_insn_list *>::test): New.
431 (rtx_insn_list::next): New.
432 (rtx_insn_list::insn): New.
433 (gen_rtx_INSN_LIST): Add prototype.
434 * emit-rtl.c (gen_rtx_INSN_LIST): New.
435 * gengenrtl.c (special_rtx): Add INSN_LIST.
436
437 2014-08-27 David Malcolm <dmalcolm@redhat.com>
438
439 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
440 "prev" from rtx to rtx_insn *.
441
442 2014-08-27 David Malcolm <dmalcolm@redhat.com>
443
444 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
445 functions. Require merely an rtx for now, not an rtx_insn *.
446 (BLOCK_FOR_INSN): Likewise.
447 (INSN_LOCATION): Likewise.
448 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
449
450 2014-08-27 David Malcolm <dmalcolm@redhat.com>
451
452 * rtl.h (PATTERN): Convert this macro into a pair of inline
453 functions, for now, requiring const_rtx and rtx.
454
455 2014-08-27 David Malcolm <dmalcolm@redhat.com>
456
457 * target.def (unwind_emit): Strengthen param "insn" from rtx to
458 rtx_insn *.
459 (final_postscan_insn): Likewise.
460 (adjust_cost): Likewise.
461 (adjust_priority): Likewise.
462 (variable_issue): Likewise.
463 (macro_fusion_pair_p): Likewise.
464 (dfa_post_cycle_insn): Likewise.
465 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
466 (first_cycle_multipass_issue): Likewise.
467 (dfa_new_cycle): Likewise.
468 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
469 (speculate_insn): Likewise for param "insn".
470 (gen_spec_check): Likewise for params "insn" and "label".
471 (get_insn_spec_ds): Likewise for param "insn".
472 (get_insn_checked_ds): Likewise.
473 (dispatch_do): Likewise.
474 (dispatch): Likewise.
475 (cannot_copy_insn_p): Likewise.
476 (invalid_within_doloop): Likewise.
477 (legitimate_combined_insn): Likewise.
478 (needed): Likewise.
479 (after): Likewise.
480
481 * doc/tm.texi: Automatically updated to reflect changes to
482 target.def.
483
484 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
485 working with insn.
486 (schedule_block): Likewise.
487 (sched_init): Likewise.
488 (sched_speculate_insn): Strengthen param "insn" from rtx to
489 rtx_insn *.
490 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
491 working with insn.
492 * hooks.c (hook_bool_rtx_true): Rename to...
493 hook_bool_rtx_insn_true): ...this, and strengthen first param from
494 rtx to rtx_insn *.
495 (hook_constcharptr_const_rtx_null): Rename to...
496 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
497 first param from const_rtx to const rtx_insn *.
498 (hook_bool_rtx_int_false): Rename to...
499 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
500 param from rtx to rtx_insn *.
501 (hook_void_rtx_int): Rename to...
502 (hook_void_rtx_insn_int): ...this, and strengthen first param from
503 rtx to rtx_insn *.
504
505 * hooks.h (hook_bool_rtx_true): Rename to...
506 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
507 rtx to rtx_insn *.
508 (hook_bool_rtx_int_false): Rename to...
509 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
510 param from rtx to rtx_insn *.
511 (hook_void_rtx_int): Rename to...
512 (hook_void_rtx_insn_int): ...this, and strengthen first param from
513 rtx to rtx_insn *.
514 (hook_constcharptr_const_rtx_null): Rename to...
515 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
516 first param from const_rtx to const rtx_insn *.
517
518 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
519 and local "prev" from rtx to rtx_insn *.
520
521 * sched-int.h (sched_speculate_insn): Strengthen first param from
522 rtx to rtx_insn *.
523
524 * sel-sched.c (create_speculation_check): Likewise for local "label".
525 * targhooks.c (default_invalid_within_doloop): Strengthen param
526 "insn" from const_rtx to const rtx_insn *.
527 * targhooks.h (default_invalid_within_doloop): Strengthen param
528 from const_rtx to const rtx_insn *.
529
530 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
531 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
532
533 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
534 "insn".
535 (arc_invalid_within_doloop): Likewise, with const.
536
537 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
538 (arm_cannot_copy_insn_p): Likewise for param "insn".
539 (arm_unwind_emit): Likewise.
540
541 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
542 "dep_insn".
543
544 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
545 (c6x_variable_issue): Likewise. Removed now-redundant checked
546 cast.
547 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
548
549 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
550 Likewise for param "insn".
551 (epiphany_mode_after): Likewise.
552 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
553 params "insn", "dep_insn".
554 (epiphany_mode_needed): Likewise for param "insn".
555 (epiphany_mode_after): Likewise.
556
557 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
558 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
559 (ix86_avx_u128_mode_needed): Likewise.
560 (ix86_i387_mode_needed): Likewise.
561 (ix86_mode_needed): Likewise.
562 (ix86_avx_u128_mode_after): Likewise.
563 (ix86_mode_after): Likewise.
564 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
565 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
566 (ix86_adjust_priority): Likewise for param "insn".
567 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
568 (do_dispatch): Likewise.
569 (has_dispatch): Likewise.
570 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
571
572 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
573 reflect renaming of default hook implementation from
574 hook_constcharptr_const_rtx_null to
575 hook_constcharptr_const_rtx_insn_null.
576 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
577 rtx to rtx_insn *.
578 (ia64_variable_issue): Likewise for param "insn".
579 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
580 (ia64_dfa_new_cycle): Likewise.
581 (ia64_get_insn_spec_ds): Likewise.
582 (ia64_get_insn_checked_ds): Likewise.
583 (ia64_speculate_insn): Likewise.
584 (ia64_gen_spec_check): Likewise for params "insn", "label".
585 (ia64_asm_unwind_emit): Likewise for param "insn".
586
587 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
588
589 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
590 "insn", "def_insn".
591 (m68k_sched_variable_issue): Likewise for param "insn".
592
593 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
594 "def_insn".
595
596 * config/microblaze/microblaze.c (microblaze_adjust_cost):
597 Likewise for params "insn", "dep".
598
599 * config/mips/mips.c (mips_adjust_cost): Likewise.
600 (mips_variable_issue): Likewise for param "insn".
601 (mips_final_postscan_insn): Likewise.
602
603 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
604 for params "insn", "dep".
605
606 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
607 "dep_insn".
608 (pa_adjust_priority): Likewise for param "insn".
609
610 * config/picochip/picochip.c (picochip_sched_adjust_cost):
611 Likewise for params "insn", "dep_insn".
612
613 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
614 param "insn".
615 (rs6000_variable_issue): Likewise.
616 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
617 (rs6000_debug_adjust_cost): Likewise.
618 (rs6000_adjust_priority): Likewise for param "insn".
619 (rs6000_use_sched_lookahead_guard): Likewise.
620 (get_next_active_insn): Likewise for return type and both params.
621 (redefine_groups): Likewise for params "prev_head_insn", "tail"
622 and locals "insn", "next_insn".
623 (pad_groups): Likewise.
624
625 * config/s390/s390.c (s390_adjust_priority): Likewise for param
626 "insn".
627 (s390_cannot_copy_insn_p): Likewise.
628 (s390_sched_variable_issue): Likewise for third param, eliminating
629 checked cast.
630 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
631 default hook implementation from hook_constcharptr_const_rtx_null
632 to hook_constcharptr_const_rtx_insn_null.
633
634 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
635 from rtx to rtx_insn *.
636 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
637 (sh_variable_issue): Likewise for param "insn".
638 (sh_dfa_new_cycle): Likewise.
639 (sh_mode_needed): Likewise.
640 (sh_mode_after): Likewise.
641
642 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
643 params "insn", "dep_insn".
644 (hypersparc_adjust_cost): Likewise.
645 (sparc_adjust_cost): Likewise.
646
647 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
648 param, eliminated checked cast.
649 (spu_sched_adjust_cost): Likewise for first and third params.
650
651 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
652 params "insn" and "dep_insn" from rtx to rtx_insn *.
653
654 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
655
656 2014-08-27 David Malcolm <dmalcolm@redhat.com>
657
658 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
659 (set_is_load_p): ...this, updating to work on a SET pattern rather
660 than an insn.
661 (is_store_insn): Rename to...
662 (set_is_store_p): ...this, updating to work on a SET pattern
663 rather than an insn.
664 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
665 top of function to where it is needed. Rewrite the bogus
666 condition that checks for "insn" and "dep" being PARALLEL to
667 instead use single_set, introducing locals "insn_set" and
668 "dep_set". Given that we only ever returned "cost" for a non-pair
669 of SETs, bail out early if we don't have a pair of SET.
670 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
671 use the new locals "insn_set" and "dep_set", and update calls to
672 is_load_insn and is_store_insn to be calls to set_is_load_p and
673 set_is_store_p.
674
675 2014-08-27 Guozhi Wei <carrot@google.com>
676
677 PR target/62262
678 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
679 amount before using it.
680
681 2014-08-27 Richard Biener <rguenther@suse.de>
682
683 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
684 get_maxval_strlen inside a more useful API.
685 (gimple_fold_builtin_with_strlen): Remove and fold into ...
686 (gimple_fold_builtin): ... caller.
687 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
688 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
689 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
690 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
691 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
692 gimple_fold_builtin_sprintf): Adjust to compute maxval
693 themselves.
694
695 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
696
697 PR other/62248
698 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
699
700 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
702 Anna Tikhonova <anna.tikhonova@intel.com>
703 Ilya Tocar <ilya.tocar@intel.com>
704 Andrey Turetskiy <andrey.turetskiy@intel.com>
705 Ilya Verbin <ilya.verbin@intel.com>
706 Kirill Yukhin <kirill.yukhin@intel.com>
707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
708
709 * config/i386/sse.md
710 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
711 Use `concat_tg_mode' attribute to determine asm register size.
712
713 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
715 Anna Tikhonova <anna.tikhonova@intel.com>
716 Ilya Tocar <ilya.tocar@intel.com>
717 Andrey Turetskiy <andrey.turetskiy@intel.com>
718 Ilya Verbin <ilya.verbin@intel.com>
719 Kirill Yukhin <kirill.yukhin@intel.com>
720 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
721
722 * config/i386/sse.md
723 (define_mode_iterator VI48_AVX512VL): New.
724 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
725 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
726 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
727 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
728 with VI1): Change mode iterator.
729 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
730 with VI_ULOADSTORE_BW_AVX512VL): New.
731 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
732 with VI_ULOADSTORE_F_AVX512VL): Ditto.
733 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
734 with VI1): Change mode iterator.
735 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
736 with VI_ULOADSTORE_BW_AVX512VL): New.
737 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
738 with VI_ULOADSTORE_F_AVX512VL): Ditto.
739 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
740 with VI1): Change mode iterator.
741 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
742 with VI_ULOADSTORE_BW_AVX512VL): New.
743 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
744 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
745 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
746 (define_insn "<avx512>_storedqu<mode>_mask" with
747 VI48_AVX512VL): New.
748 (define_insn "<avx512>_storedqu<mode>_mask" with
749 VI12_AVX512VL): Ditto.
750
751 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
753 Anna Tikhonova <anna.tikhonova@intel.com>
754 Ilya Tocar <ilya.tocar@intel.com>
755 Andrey Turetskiy <andrey.turetskiy@intel.com>
756 Ilya Verbin <ilya.verbin@intel.com>
757 Kirill Yukhin <kirill.yukhin@intel.com>
758 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
759
760 * config/i386/sse.md
761 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
762 (define_mode_iterator VI48_AVX512BW): New.
763 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
764 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
765 with VI48_AVX2_48_AVX512F): New.
766 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
767 with VI2_AVX512VL): Ditto.
768
769 2014-08-27 Richard Biener <rguenther@suse.de>
770
771 PR middle-end/62239
772 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
773 (fold_builtin_3): Do not fold strcat_chk here.
774 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
775 from builtins.c.
776 (gimple_fold_builtin): Fold strcat_chk here.
777
778 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
779
780 * dwarf2out.h (dwarf2out_decl): Remove prototype.
781 * dwarf2out.c (dwarf2out_decl): Make static.
782
783 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
784
785 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
786
787 2014-08-26 David Malcolm <dmalcolm@redhat.com>
788
789 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
790 from rtx to rtx_insn *.
791 (cselib_lookup_from_insn): Likewise for final param.
792 (cselib_subst_to_values_from_insn): Likewise.
793 (cselib_add_permanent_equiv): Likewise.
794
795 * cselib.c (cselib_current_insn): Likewise for this variable.
796 (cselib_subst_to_values_from_insn): Likewise for param "insn".
797 (cselib_lookup_from_insn): Likewise.
798 (cselib_add_permanent_equiv): Likewise for param "insn" and local
799 "save_cselib_current_insn".
800 (cselib_process_insn): Replace use of NULL_RTX with NULL.
801
802 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
803 from rtx to rtx_insn *.
804
805 2014-08-26 David Malcolm <dmalcolm@redhat.com>
806
807 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
808 rtx_insn *.
809
810 2014-08-26 David Malcolm <dmalcolm@redhat.com>
811
812 * df.h (df_dump_insn_problem_function): Strengthen first param of
813 this callback from const_rtx to const rtx_insn *.
814 (struct df_insn_info): Strengthen field "insn" from rtx to
815 rtx_insn *.
816 (DF_REF_INSN): Eliminate this function, reinstating the older
817 macro definition.
818 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
819 (df_reg_defined): Likewise.
820 (df_find_use): Likewise.
821 (df_reg_used): Likewise.
822 (df_dump_insn_top): Strengthen param 1 from const_rtx to
823 const rtx_insn *.
824 (df_dump_insn_bottom): Likewise.
825 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
826 (df_insn_debug_regno): Likewise.
827 (debug_df_insn): Likewise.
828 (df_rd_simulate_one_insn): Likewise for param 2.
829 (df_word_lr_simulate_defs): Likewise for param 1.
830 (df_word_lr_simulate_uses): Likewise.
831 (df_md_simulate_one_insn): Likewise for param 2.
832 (df_simulate_find_noclobber_defs): Likewise for param 1.
833 (df_simulate_find_defs): Likewise.
834 (df_simulate_defs): Likewise.
835 (df_simulate_uses): Likewise.
836 (df_simulate_one_insn_backwards): Likewise for param 2.
837 (df_simulate_one_insn_forwards): Likewise.
838 (df_uses_create): Likewise for param 2.
839 (df_insn_create_insn_record): Likewise for param 1.
840 (df_insn_delete): Likewise.
841 (df_insn_rescan): Likewise.
842 (df_insn_rescan_debug_internal): Likewise.
843 (df_insn_change_bb): Likewise.
844 (df_notes_rescan): Likewise.
845 * rtl.h (remove_death): Likewise for param 2.
846 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
847 const rtx_insn *.
848 * sched-int.h (reemit_notes): Strengthen param from rtx to
849 rtx_insn *.
850 * valtrack.h (propagate_for_debug): Likewise for param 1.
851
852 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
853 local "tmp_rtx" from const_rtx to const rtx_insn *.
854 * combine.c (remove_death): Strengthen param "insn" from rtx to
855 rtx_insn *.
856 (move_deaths): Likewise for local "where_dead".
857 * cse.c (delete_trivially_dead_insns): Introduce local
858 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
859 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
860 rtx_insn *.
861 (df_reg_defined): Likewise.
862 (df_find_use): Likewise.
863 (df_reg_used): Likewise.
864 (df_dump_insn_problem_data): Strengthen param "insn" from
865 const_rtx to const rtx_insn *.
866 (df_dump_insn_top): Likewise.
867 (df_dump_insn_bottom): Likewise.
868 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
869 (df_insn_debug_regno): Likewise.
870 (debug_df_insn): Likewise.
871 (DF_REF_INSN): Delete.
872 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
873 from rtx to rtx_insn *.
874 (df_chain_insn_top_dump): Strengthen param "insn" from
875 const_rtx to const rtx_insn *.
876 (df_chain_insn_bottom_dump): Likewise.
877 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
878 rtx_insn *.
879 (df_word_lr_simulate_uses): Likewise.
880 (df_print_note): Likewise.
881 (df_remove_dead_and_unused_notes): Likewise.
882 (df_set_unused_notes_for_mw): Likewise.
883 (df_set_dead_notes_for_mw): Likewise.
884 (df_create_unused_note): Likewise.
885 (df_simulate_find_defs): Likewise.
886 (df_simulate_find_uses): Likewise.
887 (df_simulate_find_noclobber_defs): Likewise.
888 (df_simulate_defs): Likewise.
889 (df_simulate_uses): Likewise.
890 (df_simulate_one_insn_backwards): Likewise.
891 (df_simulate_one_insn_forwards): Likewise.
892 (df_md_simulate_one_insn): Likewise.
893 * df-scan.c (df_uses_create): Likewise.
894 (df_insn_create_insn_record): Likewise.
895 (df_insn_delete): Likewise.
896 (df_insn_rescan): Likewise.
897 (df_insn_rescan_debug_internal): Likewise.
898 (df_insn_change_bb): Likewise.
899 (df_notes_rescan): Likewise.
900 (df_refs_add_to_chains): Likewise.
901 (df_insn_refs_verify): Likewise.
902 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
903 when invoking df_insn_delete.
904 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
905 (set_unique_reg_note): Add checked cast.
906 * final.c (cleanup_subreg_operands): Likewise.
907 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
908 "insn" from rtx to rtx_insn *.
909 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
910 "last" from rtx to rtx_insn *.
911 * ira-emit.c (change_regs_in_insn): New function.
912 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
913 Invoke change_regs_in_insn rather than change_regs.
914 * ira.c (update_equiv_regs): Strengthen locals "insn",
915 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
916 for_each_rtx_in_insn rather than for_each_rtx.
917 * recog.c (confirm_change_group): Add checked casts.
918 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
919 Add checked cast.
920 (peep2_fill_buffer): Add checked cast.
921 * rtlanal.c (remove_note): Likewise.
922 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
923 locals "next" "end" from rtx to rtx_insn *.
924
925 2014-08-26 David Malcolm <dmalcolm@redhat.com>
926
927 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
928 to rtx_insn *.
929 (struct reg_use_data): Likewise for field "insn".
930 (insn_cost): Likewise for param.
931 (real_insn_for_shadow): Likewise for return type and param.
932 (increase_insn_priority): Likewise for param 1.
933 (debug_dependencies): Likewise for both params.
934
935 * haifa-sched.c (insn_delay): Likewise for param "insn".
936 (real_insn_for_shadow): Likewise for return type and param "insn".
937 (update_insn_after_change): Likewise for param "insn".
938 (recompute_todo_spec): Likewise for param "next" and locals "pro",
939 "other".
940 (insn_cost): Likewise for param "insn".
941 (increase_insn_priority): Likewise.
942 (calculate_reg_deaths): Likewise.
943 (setup_insn_reg_pressure_info): Likewise.
944 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
945 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
946 (model_recompute): Likewise.
947 (must_restore_pattern_p): Likewise for param "next".
948 (model_excess_cost): Likewise for param "insn".
949 (queue_remove): Likewise.
950 (adjust_priority): Likewise for param "prev".
951 (update_register_pressure): Likewise for param "insn".
952 (setup_insn_max_reg_pressure): Likewise for local "insn".
953 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
954 (model_add_to_schedule): Likewise.
955 (model_reset_queue_indices): Likewise for local "insn".
956 (unschedule_insns_until): Strengthen local "recompute_vec" from
957 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
958 "con" from rtx to rtx_insn *.
959 (restore_last_backtrack_point): Likewise for both locals "x". Add
960 checked casts.
961 (estimate_insn_tick): Likewise for param "insn".
962 (commit_schedule): Likewise for params "prev_head", "tail" and
963 local "x".
964 (verify_shadows): Likewise for locals "i1", "i2".
965 (dump_insn_stream): Likewise for params "head", "tail" and locals
966 "next_tail", "insn".
967 (schedule_block): Likewise for locals "insn", "x". Add a checked
968 cast.
969 (fix_inter_tick): Likewise for params "head", "tail".
970 (create_check_block_twin): Likewise for local "jump".
971 (haifa_change_pattern): Likewise for param "insn".
972 (haifa_speculate_insn): Likewise.
973 (dump_new_block_header): Likewise for params "head", "tail".
974 (fix_jump_move): Likewise for param "jump".
975 (move_block_after_check): Likewise.
976 (sched_init_insn_luid): Likewise for param "insn".
977 (sched_init_luids): Likewise for local "insn".
978 (insn_luid): Likewise for param "insn".
979 (init_h_i_d): Likewise.
980 (haifa_init_h_i_d): Likewise for local "insn".
981 (haifa_init_insn): Likewise for param "insn".
982 * sched-deps.c (add_dependence): Likewise for local "real_pro",
983 "other".
984 (create_insn_reg_use): Likewise for param "insn".
985 (setup_insn_reg_uses): Likewise. Add a checked cast.
986 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
987 "tail" from rtx to rtx_insn *.
988 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
989 "insn", "next_tail".
990
991 2014-08-26 David Malcolm <dmalcolm@redhat.com>
992
993 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
994 from rtx to rtx_insn *.
995 (model_add_to_schedule): Likewise for locals "start", "end",
996 "iter".
997
998 2014-08-26 David Malcolm <dmalcolm@redhat.com>
999
1000 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1001 rtx_insn *.
1002 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1003 "to" and locals "insn", "next", "copy". Remove now-redundant
1004 checked cast.
1005
1006 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1007
1008 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1009 rtx_insn * and param 4 from rtx * to rtx_insn **.
1010 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1011 param 2 from rtx * to rtx_insn **.
1012
1013 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1014 rtx_insn * and final param from rtx * to rtx_insn **.
1015
1016 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1017 from rtx to rtx_insn *.
1018 (try_head_merge_bb): Likewise for both locals named "move_upto".
1019 * df-problems.c (can_move_insns_across): Likewise for params
1020 "from", "to", "across_from", "across_to" and locals "insn",
1021 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1022 rtx_insn **.
1023 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1024 from rtx to rtx_insn *.
1025 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1026 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1027 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1028 rtx_insn *.
1029 (noce_try_abs): Likewise.
1030 (noce_get_condition): Likewise for param "jump". Strengthen param
1031 "earliest" from rtx * to rtx_insn **.
1032 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1033 rtx_insn *.
1034 (find_cond_trap): Likewise.
1035 (dead_or_predicable): Likewise for local "earliest".
1036 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1037 checked cast.
1038 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1039 and local "prev". Strengthen param "earliest" from rtx * to
1040 rtx_insn **.
1041 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1042 Strengthen param "earliest" from rtx * to rtx_insn **.
1043
1044 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1045
1046 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1047 "to" and local "insn" from rtx to rtx_insn *.
1048
1049 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1050
1051 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1052 from rtx to rtx_insn *.
1053 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1054 (code_motion_path_driver): Likewise for local "last_insn".
1055 (simplify_changed_insns): Likewise for local "insn".
1056
1057 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1058
1059 * rtl.h (push_to_sequence): Strengthen param from rtx to
1060 rtx_insn *.
1061 (push_to_sequence2): Likewise for both params.
1062 (delete_insns_since): Likewise for param.
1063 (reorder_insns_nobb): Likewise for all three params.
1064 (set_new_first_and_last_insn): Likewise for both params.
1065
1066 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1067 rtx_insn *. Remove now-redundant cast.
1068 (set_last_insn): Likewise.
1069
1070 * builtins.c (expand_builtin_return): Strengthen local
1071 "call_fusage" from rtx to rtx_insn *.
1072 * cfgrtl.c (create_basic_block_structure): Likewise for local
1073 "after".
1074 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1075 "first", "last" and local "insn".
1076 (delete_insns_since): Likewise for param "from".
1077 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1078 and local "x".
1079 (push_to_sequence): Likewise for param "first" and local "last".
1080 (push_to_sequence2): Likewise for params "first" and "last".
1081 * lra.c (emit_add3_insn): Likewise for local "last".
1082 (lra_emit_add): Likewise.
1083 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1084 "last_insn".
1085 (process_address_1): Likewise for locals "insn", last".
1086 * modulo-sched.c (ps_first_note): Likewise for return type.
1087 * optabs.c (expand_binop_directly): Likewise for param "last".
1088
1089 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1090
1091 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1092 to rtx_insn*.
1093 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1094
1095 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1096
1097 * function.h (struct sequence_stack): Strengthen fields "first"
1098 and "last" from rtx to rtx_insn *.
1099 (struct emit_status): Likewise for fields "x_first_insn" and
1100 "x_last_insn".
1101
1102 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1103 (set_first_insn): Add checked cast.
1104 (get_last_insn): Remove now-redundant checked cast.
1105 (set_last_insn): Add checked cast.
1106
1107 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1108 "saved_first" and "saved_last" from rtx to rtx_insn *.
1109
1110 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1111
1112 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1113 (unlink_insn_chain): Strengthen both params from rtx to
1114 rtx_insn *.
1115
1116 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1117 variable.
1118 (unlink_insn_chain): Likewise for params "first" and "last".
1119 Remove now-redundant checked cast.
1120 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1121 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1122 rtx_insn *.
1123 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1124 params.
1125 (add_insn): Likewise for param "insn" and local "prev".
1126 (add_insn_after_nobb): Likewise for both params and local "next".
1127 (add_insn_before_nobb): Likewise for both params and local "prev".
1128 (add_insn_after): Rename param "after" to "uncast_after",
1129 introducing local "after" with another checked cast.
1130 (add_insn_before): Rename params "insn" and "before", giving them
1131 "uncast_" prefixes, adding the old names back using checked casts.
1132 (emit_note_after): Likewise for param "after".
1133 (emit_note_before): Likewise for param "before".
1134 (emit_label): Add a checked cast.
1135
1136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1137
1138 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1139 "insn" from rtx to rtx_insn *.
1140
1141 * cselib.c (cselib_record_sets_hook): Likewise.
1142
1143 * var-tracking.c (add_with_sets): Likewise, renaming back from
1144 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1145 to rtx_insn *.
1146
1147 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1148
1149 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1150 and "header_" from rtx to rtx_insn *.
1151 (struct basic_block_d): Likewise for field "head_" within "x"
1152 field of union basic_block_il_dependent.
1153 (BB_HEAD): Drop function...
1154 (SET_BB_HEAD): ...and this function in favor of...
1155 (BB_HEAD): ...reinstate macro.
1156 (BB_END): Drop function...
1157 (SET_BB_END): ...and this function in favor of...
1158 (BB_END): ...reinstate macro.
1159 (BB_HEADER): Drop function...
1160 (SET_BB_HEADER): ...and this function in favor of...
1161 (BB_HEADER): ...reinstate macro.
1162
1163 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1164 (fix_crossing_unconditional_branches): Likewise.
1165 * caller-save.c (save_call_clobbered_regs): Likewise.
1166 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1167 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1168 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1169 (merge_blocks_move_successor_nojumps): Likewise.
1170 (outgoing_edges_match): Update use of for_each_rtx to
1171 for_each_rtx_in_insn.
1172 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1173 (expand_gimple_cond): Likewise.
1174 (expand_gimple_tailcall): Likewise.
1175 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1176 SET_BB_END.
1177 (construct_exit_block): Drop use of SET_BB_END.
1178 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1179 rtx_insn *.
1180 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1181 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1182 SET_BB_HEAD and SET_BB_END.
1183 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1184 SET_BB_END.
1185 (rtl_delete_block): Drop use of SET_BB_HEAD.
1186 (rtl_split_block): Drop use of SET_BB_END.
1187 (emit_nop_for_unique_locus_between): Likewise.
1188 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1189 (block_label): Drop use of SET_BB_HEAD.
1190 (fixup_abnormal_edges): Drop use of SET_BB_END.
1191 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1192 (relink_block_chain): Likewise.
1193 (fixup_reorder_chain): Drop use of SET_BB_END.
1194 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1195 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1196 rtx_insn **. Drop use of SET_BB_HEADER.
1197 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1198 SET_BB_HEAD.
1199 (BB_HEAD): Delete this function.
1200 (SET_BB_HEAD): Likewise.
1201 (BB_END): Likewise.
1202 (SET_BB_END): Likewise.
1203 (BB_HEADER): Likewise.
1204 (SET_BB_HEADER): Likewise.
1205 * emit-rtl.c (add_insn_after): Rename param "insn" to
1206 "uncast_insn", adding a new local "insn" and a checked cast to
1207 rtx_insn *. Drop use of SET_BB_END.
1208 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1209 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1210 (reorder_insns): Drop use of SET_BB_END.
1211 (emit_insn_after_1): Strengthen param "first" and locals "last",
1212 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1213 (emit_pattern_after_noloc): Add checked cast.
1214 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1215 (restore_other_notes): Likewise.
1216 (move_insn): Likewise.
1217 (sched_extend_bb): Likewise.
1218 (fix_jump_move): Likewise.
1219 * ifcvt.c (noce_process_if_block): Likewise.
1220 (dead_or_predicable): Likewise.
1221 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1222 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1223 * sel-sched-ir.c (sel_move_insn): Likewise.
1224 * sel-sched.c (move_nop_to_previous_block): Likewise.
1225
1226 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1227 SET_BB_END.
1228 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1229
1230 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1231
1232 * basic-block.h (create_basic_block_structure): Strengthen params
1233 1 "head" and 2 "end" from rtx to rtx_insn *.
1234 * cfgrtl.c (create_basic_block_structure): Likewise.
1235 (rtl_create_basic_block): Update casts from void * to rtx to
1236 rtx_insn *, so that we can pass them as rtx_insn * to
1237 create_basic_block_structure.
1238 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1239
1240 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1241
1242 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1243 rtx_insn **.
1244 (check_for_inc_dec): Strengthen param "insn" from rtx to
1245 rtx_insn *.
1246
1247 * cselib.h (cselib_process_insn): Likewise.
1248
1249 * cselib.c (cselib_record_sets): Likewise.
1250 (cselib_process_insn): Likewise.
1251
1252 * dse.c (struct insn_info): Likewise for field "insn".
1253 (check_for_inc_dec_1): Likewise for local "insn".
1254 (check_for_inc_dec): Likewise for param "insn".
1255 (scan_insn): Likewise.
1256 (dse_step1): Likewise for local "insn".
1257
1258 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1259 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1260
1261 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1262
1263 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1264 from rtx to rtx_insn *.
1265 (DEP_PRO): Delete this function and...
1266 (SET_DEP_PRO): ...this function in favor of...
1267 (DEP_PRO): ...reinstate this macro.
1268 (DEP_CON): Delete this function and...
1269 (SET_DEP_CON): ...this function in favor of...
1270 (DEP_CON): ...reinstate this old macro.
1271 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1272 (init_dep): Likewise.
1273 (set_priorities): Likewise for both params.
1274 (sd_copy_back_deps): Likewise for params 1 and 2.
1275
1276 * haifa-sched.c (priority): Likewise for param "insn" and local
1277 "next".
1278 (set_priorities): Likewise for params "head" and "tail" and local
1279 "insn".
1280 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1281 local "consumer".
1282 (add_to_speculative_block): Add a checked cast.
1283 (create_check_block_twin): Drop use of SET_DEP_CON.
1284 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1285 rtx to rtx_insn *.
1286
1287 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1288 Drop use of SET_DEP_PRO
1289 (init_dep): Strengthen params "pro" and "con" from rtx to
1290 rtx_insn *.
1291 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1292 use of SET_DEP_CON.
1293 (DEP_PRO): Delete.
1294 (DEP_CON): Delete.
1295 (SET_DEP_PRO): Delete.
1296 (SET_DEP_CON): Delete.
1297
1298 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1299
1300 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1301 from rtx to rtx_insn *.
1302 (VINSN_INSN_RTX): Eliminate rvalue function and...
1303 (SET_VINSN_INSN): ...lvalue function in favor of...
1304 (VINSN_INSN_RTX): reinstate this old macro.
1305
1306 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1307 in favor of VINSN_INSN_RTX.
1308 (VINSN_INSN_RTX): Delete this function.
1309 (SET_VINSN_INSN_RTX): Likewise.
1310
1311 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1312
1313 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1314 (BND_TO): Delete this function and...
1315 (SET_BND_TO): ...this functions in favor of...
1316 (BND_TO): ...reinstating this macro.
1317 (struct _fence): Strengthen field "executing_insns" from
1318 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1319 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1320 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1321 and param "insn" from rtx to insn_t.
1322 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1323 rtx_insn *.
1324
1325 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1326 vec<rtx_insn *> .
1327 (rtx_vec_t): Likewise.
1328 (struct sched_deps_info_def): Strengthen param of "start_insn"
1329 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1330 "note_mem_dep" callback and first param of "note_dep" callback.
1331
1332 * haifa-sched.c (add_to_speculative_block): Strengthen param
1333 "insn" from rtx to rtx_insn *.
1334 (clear_priorities): Likewise.
1335 (calc_priorities): Likewise for local "insn".
1336
1337 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1338 Remove redundant checked cast.
1339 (haifa_note_mem_dep): Likewise for param "pending_insn".
1340 (haifa_note_dep): Likewise for param "elem".
1341 (note_mem_dep): Likewise for param "e".
1342 (sched_analyze_1): Add checked casts.
1343 (sched_analyze_2): Likewise.
1344
1345 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1346 from rtx to rtx_insn *.
1347 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1348 from vec<rtx> * to vec<rtx_insn *> *.
1349
1350 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1351 scaffolding.
1352 (flist_add): Strengthen param "executing_insns" from
1353 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1354 (advance_deps_context): Remove now-redundant checked cast.
1355 (init_fences): Replace uses of NULL_RTX with NULL.
1356 (merge_fences): Strengthen params "last_scheduled_insn" and
1357 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1358 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1359 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1360 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1361 an instruction, rather than doing double-duty as a pattern.
1362 (return_nop_to_pool): Update for change of insn_t.
1363 (deps_init_id): Remove now-redundant checked cast.
1364 (struct sched_scan_info_def): Strengthen param of "init_insn"
1365 callback from rtx to insn_t.
1366 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1367 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1368 NULL.
1369 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1370 "end" from rtx to rtx_insn *.
1371 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1372 (rtx insn_rtx, bool force_unique_p)
1373 (BND_TO): Delete function.
1374 (SET_BND_TO): Delete function.
1375
1376 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1377 rtx to rtx_insn *.
1378 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1379 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1380 rtx to rtx_insn *.
1381 (undo_transformations): Likewise for param "insn".
1382 (update_liveness_on_insn): Likewise.
1383 (compute_live_below_insn): Likewise for param "insn" and local
1384 "succ".
1385 (update_data_sets): Likewise for param "insn".
1386 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1387 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1388 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1389 rtx_insn *.
1390 (move_cond_jump): Likewise for param "insn".
1391 (move_cond_jump): Drop use of SET_BND_TO.
1392 (compute_av_set_on_boundaries): Likewise.
1393 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1394 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1395 from rtx to rtx_insn *.
1396 (maybe_emit_renaming_copy): Likewise for param "insn".
1397 (maybe_emit_speculative_check): Likewise.
1398 (handle_emitting_transformations): Likewise.
1399 (remove_insn_from_stream): Likewise.
1400 (code_motion_process_successors): Strengthen local "succ" from rtx
1401 to insn_t.
1402
1403 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1404
1405 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1406 ilist_t, not _xlist_t;
1407 (ILIST_INSN): Define in terms of new union field "insn".
1408 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1409 _XLIST_NEXT.
1410 (struct _list_node): Add new field "insn" to the union, of type
1411 insn_t.
1412 (ilist_add): Replace macro with an inline function, requiring an
1413 insn_t.
1414 (ilist_remove): Define this macro directly in terms of
1415 _list_remove, rather than indirectly via _xlist_remove.
1416 (ilist_clear): Likewise, in terms of _list_clear rather than
1417 _xlist_clear.
1418 (ilist_is_in_p): Replace macro with an inline function, requiring
1419 an insn_t.
1420 (_list_iter_cond_insn): New function.
1421 (ilist_iter_remove): Define this macro directly in terms of
1422 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1423 (ilist_iterator): Define directly in terms of _list_iterator
1424 rather than indirectly through _xlist_iterator.
1425 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1426 than in terms of _FOR_EACH_X.
1427 (FOR_EACH_INSN_1): Likewise.
1428
1429 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1430
1431 PR target/60606
1432 PR target/61330
1433 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1434 DECL_HARD_REGISTER and return for invalid register specifications.
1435 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1436 DECL_HARD_REGISTER, call expand_one_error_var.
1437 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1438 CC_REGNUM with non-MODE_CC modes.
1439 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1440
1441 2014-08-26 Marek Polacek <polacek@redhat.com>
1442
1443 PR c/61271
1444 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1445
1446 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1447
1448 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1449 qi cost; add di cost.
1450 (cortexa57_addrcost_table): Likewise.
1451
1452 2014-08-26 Marek Polacek <polacek@redhat.com>
1453
1454 PR c/61271
1455 * expr.c (is_aligning_offset): Remove logical not.
1456
1457 2014-08-26 Marek Polacek <polacek@redhat.com>
1458
1459 PR c/61271
1460 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1461 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1462
1463 2014-08-26 Richard Biener <rguenther@suse.de>
1464
1465 PR tree-optimization/62175
1466 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1467 expand possibly trapping operations.
1468
1469 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1470
1471 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1472 "insn" from rtx to rtx_insn *.
1473 (permute_load): Likewise for param "insn".
1474 (permute_store): Likewise.
1475 (handle_special_swappables): Likewise for local "insn".
1476 (replace_swap_with_copy): Likewise for locals "insn" and
1477 "new_insn".
1478 (rs6000_analyze_swaps): Likewise for local "insn".
1479
1480 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1481
1482 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1483 to rtx_insn *.
1484
1485 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1486
1487 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1488 "note_list" from rtx to rtx_insn *.
1489 (BB_NOTE_LIST): Replace this function and...
1490 (SET_BB_NOTE_LIST): ...this function with...
1491 (BB_NOTE_LIST): ...the former macro implementation.
1492
1493 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1494 local "from_start" from rtx to rtx_insn *. Strengthen param
1495 "to_endp" from rtx * to rtx_insn **.
1496
1497 * haifa-sched.c (concat_note_lists): Likewise.
1498 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1499 BB_NOTE_LIST.
1500 (sel_restore_notes): Likewise.
1501 (move_bb_info): Likewise.
1502 (BB_NOTE_LIST): Delete this function.
1503 (SET_BB_NOTE_LIST): Delete this function.
1504 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1505 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1506
1507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1508
1509 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1510 from rtx * to rtx_insn **.
1511 (reorder2): Likewise.
1512 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1513 from rtx to rtx_insn *.
1514
1515 * doc/tm.texi: Update mechanically for above change to target.def.
1516
1517 * sched-int.h (note_list): Strengthen this variable from rtx to
1518 rtx_insn *.
1519 (remove_notes): Likewise for both params.
1520 (restore_other_notes): Likewise for return type and first param.
1521 (struct ready_list): Strengthen field "vec" from rtx * to
1522 rtx_insn **.
1523 (struct dep_replacement): Strenghten field "insn" from rtx to
1524 rtx_insn *.
1525 (struct deps_desc): Likewise for fields "last_debug_insn",
1526 "last_args_size".
1527 (struct haifa_sched_info): Likewise for callback field
1528 "can_schedule_ready_p"'s param, for first param of "new_ready"
1529 callback field, for both params of "rank" callback field, for
1530 first field of "print_insn" callback field (with a const), for
1531 both params of "contributes_to_priority" callback, for param
1532 of "insn_finishes_block_p" callback, for fields "prev_head",
1533 "next_tail", "head", "tail", for first param of "add_remove_insn"
1534 callback, for first param of "begin_schedule_ready" callback, for
1535 both params of "begin_move_insn" callback, and for second param
1536 of "advance_target_bb" callback.
1537 (add_dependence): Likewise for params 1 and 2.
1538 (sched_analyze): Likewise for params 2 and 3.
1539 (deps_analyze_insn): Likewise for param 2.
1540 (ready_element): Likewise for return type.
1541 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1542 (try_ready): Strenghten param from rtx to rtx_insn *.
1543 (sched_emit_insn): Likewise for return type.
1544 (record_delay_slot_pair): Likewise for params 1 and 2.
1545 (add_delay_dependencies): Likewise for param.
1546 (contributes_to_priority): Likewise for both params.
1547 (find_modifiable_mems): Likewise.
1548
1549 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1550 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1551 "first_older_only_insn" from rtx to rtx_insn *.
1552 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1553 rtx_insn **.
1554
1555 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1556 "last_scheduled_iter0" from rtx to rtx_insn *.
1557 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1558 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1559 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1560 "insn" from rtx to rtx_insn *.
1561 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1562 rtx_insn **.
1563 (c6x_sched_reorder2): Strengthen param "ready" and locals
1564 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1565 "insn" from rtx to rtx_insn *.
1566 (c6x_variable_issue): Add a checked cast when assigning from insn
1567 to ss.last_scheduled_iter0.
1568 (split_delayed_branch): Strengthen param "insn" and local "i1"
1569 from rtx to rtx_insn *.
1570 (split_delayed_nonbranch): Likewise.
1571 (undo_split_delayed_nonbranch): Likewise for local "insn".
1572 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1573 "entry_after", "end_packet", "head_insn", "tail_insn",
1574 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1575 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1576 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1577 but add a checked cast on loop->start_label. Consolidate calls to
1578 avoid assigning result of gen_spkernel to "insn", now an
1579 rtx_insn *.
1580
1581 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1582 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1583 rtx to rtx_insn *.
1584 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1585 rtx_insn **. Strengthen locals "top", "next" from rtx to
1586 rtx_insn *.
1587 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1588 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1589 (add_parameter_dependencies): Strengthen params "call", "head" and
1590 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1591 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1592 (add_dependee_for_func_arg): Likewise for param "arg" and local
1593 "insn".
1594 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1595 "tail" and locals "insn", "first_arg".
1596
1597 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1598 for params "head", "tail" and locals "insn", "next", "next_tail".
1599 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1600 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1601 "insn", "lowest", "highest" from rtx to rtx_insn *.
1602 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1603 rtx_insn **.
1604 (ia64_sched_reorder2): Likewise.
1605
1606 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1607 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1608 from rtx * to rtx_insn **.
1609 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1610 rtx_insn **.
1611 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1612 rtx_insn *.
1613 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1614 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1615 to rtx_insn *.
1616
1617 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1618 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1619 to rtx_insn *.
1620 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1621 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1622 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1623 rtx_insn **.
1624 (vr4130_reorder): Likewise.
1625 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1626 rtx to rtx_insn *.
1627 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1628 rtx_insn **.
1629 (mips_sched_reorder): Likewise.
1630 (mips_sched_reorder2): Likewise.
1631
1632 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1633
1634 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1635 Strengthen local "tmp" from rtx to rtx_insn *.
1636 (rs6000_sched_reorder2): Likewise.
1637
1638 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1639 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1640 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1641 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1642
1643 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1644 "tmp2" from rtx to rtx_insn *.
1645 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1646 Strengthen local "insn" from rtx to rtx_insn *.
1647 (ready_reorder): Strengthen param "ready" from rtx * to
1648 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1649 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1650 (sh_reorder2): Likewise.
1651
1652 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1653 local "insn" from rtx to rtx_insn *.
1654
1655 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1656 rtx_insn *.
1657 (scheduled_insns): Strengthen this variable from vec<rtx> to
1658 vec<rtx_insn *>.
1659 (set_modulo_params): Likewise for locals "i1", "i2".
1660 (record_delay_slot_pair): Likewise for params "i1", "i2".
1661 (add_delay_dependencies): Likewise for param "insn".
1662 (cond_clobbered_p): Likewise.
1663 (recompute_todo_spec): Likewise for local "prev".
1664 (last_scheduled_insn): Likewise for this variable.
1665 (nonscheduled_insns_begin): Likewise.
1666 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1667 rtx_insn **.
1668 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1669 rtx_insn *.
1670 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1671 Strengthen local "insn" from rtx to rtx_insn *.
1672 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1673 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1674 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1675 (ready_remove_first): Likewise for return type and local "t".
1676 (ready_element): Likewise for return type.
1677 (ready_remove): Likewise for return type and local "t".
1678 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1679 (check_clobbered_conditions): Strengthen local "x" from rtx to
1680 rtx_insn *, adding a checked cast.
1681 (schedule_insn): Likewise for param "insn".
1682 (remove_notes): Likewise for params "head", "tail" and locals
1683 "next_tail", "insn", "next".
1684 (struct haifa_saved_data): Likewise for fields
1685 "last_scheduled_insn", "nonscheduled_insns_begin".
1686 (save_backtrack_point): Update for change to field "vec" of
1687 struct ready_list.
1688 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1689 rtx_insn **.
1690 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1691 from rtx to rtx_insn *
1692 (resolve_dependencies): Strengthen param "insn" from rtx to
1693 rtx_insn *
1694 (restore_other_notes): Likewise for return type, for param "head"
1695 and local "note_head".
1696 (undo_all_replacements): Likewise for local "insn".
1697 (first_nonscheduled_insn): Likewise for return type and local "insn".
1698 (queue_to_ready): Likewise for local "insn", adding checked casts.
1699 (early_queue_to_ready): Likewise for local "insn".
1700 (debug_ready_list_1): Strengthen local "p" from rtx * to
1701 rtx_insn **.
1702 (move_insn): Strengthen param "insn" and local "note" from rtx to
1703 rtx_insn *
1704 (insn_finishes_cycle_p): Likewise for param "insn".
1705 (max_issue): Likewise for local "insn".
1706 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1707 to rtx_insn **.
1708 (commit_schedule): Strengthen param "prev_head" and local "insn"
1709 from rtx to rtx_insn *
1710 (prune_ready_list): Likewise for local "insn".
1711 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1712 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1713 (set_priorities): Likewise for local "prev_head".
1714 (try_ready): Likewise for param "next".
1715 (fix_tick_ready): Likewise.
1716 (change_queue_index): Likewise.
1717 (sched_extend_ready_list): Update for change to field "vec" of
1718 struct ready_list.
1719 (generate_recovery_code): Strengthen param "insn" from rtx to
1720 rtx_insn *.
1721 (begin_speculative_block): Likewise.
1722 (create_check_block_twin): Likewise for param "insn" and locals
1723 "label", "check", "twin". Introduce local "check_pat" to avoid
1724 "check" being used as a plain rtx before being used as an insn.
1725 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1726 extracting elements from ready_list.
1727 (sched_remove_insn): Strengthen param "insn" from rtx to
1728 rtx_insn *.
1729 (sched_emit_insn): Likewise for return type.
1730 (ready_remove_first_dispatch): Likewise for return type and local
1731 "insn".
1732
1733 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1734
1735 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1736 const rtx_insn *.
1737
1738 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1739 from rtx to rtx_insn *.
1740 (add_dependence_list): Likewise for param "insn". Add a checked
1741 cast.
1742 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1743 to rtx_insn *. Strengthen param "list_p" from rtx * to
1744 rtx_insn **.
1745 (chain_to_prev_insn): Strengthen param "insn" and locals
1746 "prec_nonnote", "i" from rtx to rtx_insn *.
1747 (flush_pending_lists): Likewise for param "insn".
1748 (cur_insn): Likewise for this variable.
1749 (haifa_start_insn): Add a checked cast.
1750 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1751 (sched_analyze_reg): Likewise for param "insn".
1752 (sched_analyze_1): Likewise.
1753 (sched_analyze_2): Likewise. Add checked casts.
1754 (sched_analyze_insn): Likewise. Also for local "prev".
1755 (deps_analyze_insn): Likewise for param "insn".
1756 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1757 (add_dependence_1): Likewise for params "insn", "elem".
1758 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1759 (parse_add_or_inc): Likewise for param "insn".
1760 (find_inc): Likewise for local "inc_cand".
1761 (find_modifiable_mems): Likewise for params "head", "tail" and
1762 locals "insn", "next_tail".
1763
1764 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1765 (begin_schedule_ready): Likewise for param "insn".
1766 (begin_move_insn): Likewise for params "insn" and "last".
1767 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1768 const rtx_insn *.
1769 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1770 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1771 (ebb_add_remove_insn): Likewise for param "insn".
1772 (advance_target_bb): Likewise.
1773
1774 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1775 "insn".
1776 (check_live): Likewise for param "insn".
1777 (init_ready_list): Likewise for local "insn".
1778 (can_schedule_ready_p): Likewise for param "insn".
1779 (begin_schedule_ready): Likewise.
1780 (new_ready): Likewise for param "next".
1781 (rgn_print_insn): Likewise for param "insn".
1782 (rgn_rank): Likewise for params "insn1", "insn2".
1783 (contributes_to_priority): Likewise for params "next", "insn".
1784 (rgn_insn_finishes_block_p): Likewise for param "insn".
1785 (add_branch_dependences): Likewise for params "head", "tail" and
1786 locals "insn", "last".
1787 (rgn_add_remove_insn): Likewise for param "insn".
1788 (advance_target_bb): Likewise.
1789
1790 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1791 const_rtx to const rtx_insn *.
1792
1793 * sel-sched-dump.h (sel_print_insn): Likewise.
1794
1795 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1796 (deps_init_id): Likewise.
1797
1798 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1799 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1800 rtx_insn **.
1801
1802 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1803
1804 * output.h (final_start_function): Strengthen param 1 from rtx to
1805 rtx_insn *.
1806
1807 * final.c (final_start_function): Likewise, renaming back from
1808 "uncast_first" to "first", and dropping the checked cast from rtx
1809 to rtx_insn *.
1810
1811 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1812
1813 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1814 * final.c (final): Likewise. Rename param back from
1815 "uncast_first" to "first" and eliminate the checked cast from rtx
1816 to rtx_insn *.
1817
1818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1819
1820 * output.h (shorten_branches): Strengthen param from rtx to
1821 rtx_insn *.
1822
1823 * final.c (shorten_branches): Likewise, renaming param back from
1824 "uncast_first" to "first", and dropping the checked cast from rtx
1825 to rtx_insn *.
1826
1827 * genattr.c (gen_attr): Likewise when writing out the prototype of
1828 shorten_branches.
1829
1830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1831
1832 * sched-int.h (struct haifa_sched_info): Strengthen fields
1833 "prev_head" and "next_tail" from rtx to rtx_insn *.
1834
1835 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1836
1837 * rtl.h (rtx_jump_table_data::get_labels): New method.
1838 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1839 with use of the new rtx_jump_table_data::get_labels method.
1840 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1841 to rtx_jump_table_data *. Simplify by using get_labels method.
1842 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1843 a dyn_cast, introducing local "table", using it to replace
1844 label-lookup logic with a get_labels method call.
1845 (patch_jump_insn): Simplify using get_labels method.
1846 * dwarf2cfi.c (create_trace_edges): Likewise.
1847 * rtlanal.c (label_is_jump_target_p): Likewise.
1848
1849 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1850
1851 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1852 to rtx_insn *.
1853
1854 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1855 (unshare_all_rtl_again): Likewise, also for local "p".
1856
1857 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1858
1859 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1860 to rtx_insn *.
1861 * cfgrtl.c (delete_insn_and_edges): Likewise.
1862
1863 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1864
1865 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1866 from rtx to rtx_insn *.
1867
1868 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1869
1870 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1871
1872 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1873 locals "returnjump", "epilogue_end", "insn", "next".
1874
1875 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1876 "returnjump" from rtx * to rtx_insn **.
1877 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1878
1879 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1880
1881 * basic-block.h (struct edge_def). Strengthen "r" within
1882 union edge_def_insns from rtx to rtx_insn *.
1883
1884 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1885 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1886 rtx_insn *.
1887 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1888 from rtx to rtx_insn *.
1889 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1890 rtx_insn *.
1891 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1892 (reg_used_on_edge): Likewise.
1893 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1894 (gt_pch_nx): New overload for rtx_insn *&.
1895 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1896 from rtx to rtx_insn *.
1897
1898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1899
1900 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1901 from rtx to rtx_insn *.
1902 (BB_FOOTER): Replace function with access macro.
1903 (SET_BB_FOOTER): Delete.
1904
1905 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1906 with BB_FOOTER.
1907 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1908 (emit_barrier_after_bb): Likewise.
1909 (record_effective_endpoints): Likewise.
1910 (relink_block_chain): Likewise.
1911 (fixup_fallthru_exit_predecessor): Likewise.
1912 (cfg_layout_duplicate_bb): Likewise.
1913 (cfg_layout_split_block): Likewise.
1914 (cfg_layout_delete_block): Likewise.
1915 (cfg_layout_merge_blocks): Likewise.
1916 (BB_FOOTER): Delete function.
1917 (SET_BB_FOOTER): Delete function.
1918 * combine.c (update_cfg_for_uncondjump): Replace uses of
1919 SET_BB_FOOTER with BB_FOOTER.
1920
1921 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1922
1923 * except.h (struct eh_landing_pad_d): Strengthen field
1924 "landing_pad" from rtx to rtx_code_label *.
1925
1926 * except.c (sjlj_emit_dispatch_table): Likewise for param
1927 "dispatch_label"
1928 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1929
1930 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1931
1932 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1933 first param from rtx to rtx_insn *.
1934 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1935 field "set_frame_ptr_insn".
1936 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1937 "csend" from rtx to rtx_code_label *.
1938 (xtensa_expand_atomic): Likewise for local "csloop".
1939 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1940 rtx_insn *.
1941 (xtensa_call_tls_desc): Likewise for return type and locals
1942 "call_insn", "insns".
1943 (xtensa_legitimize_tls_address): Likewise for local "insns".
1944 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1945
1946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1947
1948 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1949 first param from rtx to rtx_insn *.
1950 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1951 "insn".
1952
1953 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1954
1955 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1956 Strengthen param 1 from rtx to rtx_insn *.
1957 (tilepro_output_cbranch): Likewise.
1958 (tilepro_adjust_insn_length): Likewise.
1959 (tilepro_final_prescan_insn): Likewise for sole param.
1960
1961 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1962 Likewise for local "last".
1963 (cbranch_predicted_p): Likewise for param "insn".
1964 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1965 (tilepro_output_cbranch_with_opcode): Likewise.
1966 (tilepro_output_cbranch): Likewise.
1967 (frame_emit_load): Likewise for return type and locals "seq",
1968 "insn".
1969 (emit_sp_adjust): Likewise for return type and local "insn".
1970 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1971 "insn".
1972 (tilepro_adjust_insn_length): Likewise for param "insn".
1973 (next_insn_to_bundle): Likewise for return type and params
1974 "r", "end".
1975 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1976 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1977 local "new_insns".
1978 (match_addli_pcrel): Likewise for param "insn".
1979 (replace_addli_pcrel): Likewise.
1980 (match_auli_pcrel): Likewise.
1981 (replace_auli_pcrel): Likewise.
1982 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1983 "next_insn".
1984 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1985 "queue", "next_queue", "prev".
1986 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1987 (tilepro_final_prescan_insn): Likewise for param "insn".
1988
1989 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1990
1991 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1992 Strengthen param 1 from rtx to rtx_insn *.
1993 (tilegx_output_cbranch): Likewise.
1994 (tilegx_adjust_insn_length): Likewise.
1995 (tilegx_final_prescan_insn): Likewise for sole param.
1996
1997 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1998 or local "last".
1999 (cbranch_predicted_p): Likewise for param "insn".
2000 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2001 (tilegx_output_cbranch_with_opcode): Likewise.
2002 (tilegx_output_cbranch): Likewise.
2003 (frame_emit_load): Likewise for return type.
2004 (set_frame_related_p): Likewise for locals "seq", "insn".
2005 (emit_sp_adjust): Likewise for return type, and for local "insn".
2006 Introduce local "pat" for use in place of "insn" where the latter
2007 isn't an instruction.
2008 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2009 from rtx to rtx_insn *.
2010 (tilegx_adjust_insn_length): Likewise for param "insn".
2011 (next_insn_to_bundle): Likewise for return type and params "r" and
2012 "end".
2013 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2014 "end".
2015 (replace_insns): Likewise for params "old_insn", "new_insns".
2016 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2017 "new_insns".
2018 (replace_mov_pcrel_step2): Likewise.
2019 (replace_mov_pcrel_step3): Likewise.
2020 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2021 "next_insn".
2022 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2023 "queue", "next_queue", "prev".
2024 (tilegx_output_mi_thunk): Likewise for local "insn".
2025 (tilegx_final_prescan_insn): Likewise for param "insn".
2026
2027 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2028
2029 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2030 rtx to rtx_insn *.
2031 (frame_emit_load): Likewise.
2032 (frame_emit_add_imm): Likewise, also for local "insn".
2033 (spu_expand_prologue): Likewise for local "insn".
2034 (struct spu_bb_info): Likewise for field "prop_jump".
2035 (emit_nop_for_insn): Likewise for param "insn" and local
2036 "new_insn".
2037 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2038 "hbr_insn".
2039 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2040 locals "hint", "insn".
2041 (get_branch_target): Likewise for param "branch".
2042 (insn_clobbers_hbr): Likewise for param "insn".
2043 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2044 locals "insn", "before_4", "before_16".
2045 (insert_hbrp): Likewise for local "insn".
2046 (spu_machine_dependent_reorg): Likewise for locals "branch",
2047 "insn", "next", "bbend".
2048 (uses_ls_unit): Likewise for param "insn".
2049 (get_pipe): Likewise.
2050 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2051 introducing a checked cast.
2052 (spu_sched_adjust_cost): Likewise for params "insn" and
2053 "dep_insn".
2054 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2055 (spu_sms_res_mii): Likewise.
2056
2057 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2058
2059 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2060 from rtx to rtx_insn *.
2061 (output_cbranch): Likewise for param 6.
2062 (output_return): Likewise for param 1.
2063 (output_sibcall): Likewise.
2064 (output_v8plus_shift): Likewise.
2065 (output_v8plus_mult): Likewise.
2066 (output_v9branch): Likewise for param 7.
2067 (output_cbcond): Likewise for param 3.
2068
2069 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2070 for local "insn".
2071 (sparc_legitimize_pic_address): Likewise.
2072 (sparc_emit_call_insn): Likewise.
2073 (emit_save_or_restore_regs): Likewise.
2074 (emit_window_save): Likewise for return type and local "insn".
2075 (sparc_expand_prologue): Likewise for local "insn".
2076 (sparc_flat_expand_prologue): Likewise.
2077 (output_return): Likewise for param "insn".
2078 (output_sibcall): Likewise for param "insn" and local "delay".
2079 (output_ubranch): Likewise for param "insn".
2080 (output_cbranch): Likewise.
2081 (output_cbcond): Likewise.
2082 (output_v9branch): Likewise.
2083 (output_v8plus_shift): Likewise.
2084 (sparc_output_mi_thunk): Likewise for local "insn".
2085 (get_some_local_dynamic_name): Likewise.
2086 (output_v8plus_mult): Likewise for param "insn".
2087
2088 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2089
2090 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2091 from rtx to rtx_insn *.
2092 (output_branchy_insn): Likewise for param 3.
2093 (output_far_jump): Likewise for param 1.
2094 (final_prescan_insn): Likewise.
2095 (sh_insn_length_adjustment): Likewise for sole param.
2096
2097 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2098 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2099 rtx_code_label *.
2100 (sh_emit_compare_and_set): Likewise for local "lab".
2101 (output_far_jump): Strengthen param "insn" and local "prev" from
2102 rtx to rtx_insn *.
2103 (output_branchy_insn): Likewise for param "insn" and local
2104 "next_insn".
2105 (output_ieee_ccmpeq): Likewise for param "insn".
2106 (struct label_ref_list_d): Strengthen field "label" from rtx to
2107 rtx_code_label *.
2108 (pool_node): Likewise.
2109 (pool_window_label): Likewise for this global.
2110 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2111 (dump_table): Strengthen params "start", "barrier" and local
2112 "scan" from rtx to rtx_insn *.
2113 (broken_move): Likewise for param "insn".
2114 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2115 Strengthen param "first_mova" from rtx * to rtx_insn **.
2116 (mova_p): Likewise for param "insn".
2117 (fixup_mova): Likewise for param "mova".
2118 (find_barrier): Likewise for return type, params "mova" and
2119 "from", and locals "barrier_before_mova", "found_barrier",
2120 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2121 "label" from rtx to rtx_code_label *.
2122 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2123 rtx to rtx_insn *.
2124 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2125 (split_branches): Likewise for param "first" and local "insn".
2126 (final_prescan_insn): Likewise for param "insn".
2127 (sequence_insn_p): Likewise for locals "prev", "next".
2128 (sh_insn_length_adjustment): Likewise for param "insn".
2129 (sh_can_redirect_branch): Likewise for local "insn".
2130 (find_r0_life_regions): Likewise for locals "end", "insn".
2131 (sh_output_mi_thunk): Likewise for local "insns".
2132
2133 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2134
2135 * config/score/score.c (score_output_mi_thunk): Strengthen local
2136 "insn" from rtx to rtx_insn *.
2137 (score_prologue): Likewise.
2138
2139 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2140
2141 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2142 1 from rtx to rtx_insn *.
2143 (s390_emit_jump): Likewise for return type.
2144 (s390_emit_call): Likewise.
2145 (s390_load_got): Likewise.
2146
2147 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2148 variable.
2149 (s390_match_ccmode): Likewise for param "insn".
2150 (s390_emit_jump): Likewise for return type.
2151 (s390_split_branches): Likewise for local "label".
2152 (struct constant): Strengthen field "label" from rtx to
2153 rtx_code_label *.
2154 (struct constant_pool): Likewise for field "label". Strengthen
2155 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2156 rtx_insn *.
2157 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2158 insns.
2159 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2160 (s390_end_pool): Likewise.
2161 (s390_dump_pool): Likewise for local "insn".
2162 (s390_mainpool_start): Likewise.
2163 (s390_chunkify_start): Likewise.
2164 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2165 with insns. Strengthen locals "label", "jump", "barrier", "next",
2166 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2167 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2168 rtx_insn *.
2169 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2170 "jump", "label", "next_insn".
2171 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2172 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2173 "tbegin_insn".
2174 (s390_load_got): Likewise for return type and local "insns".
2175 (s390_save_gprs_to_fprs): Likewise for local "insn".
2176 (s390_restore_gprs_from_fprs): Likewise.
2177 (pass_s390_early_mach::execute): Likewise.
2178 (s390_emit_prologue): Likewise for local "insns".
2179 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2180 rtx_code_label *.
2181 (s390_emit_call): Strengthen return type and local "insn" from
2182 rtx to rtx_insn *.
2183 (s390_emit_tpf_eh_return): Likewise for local "insn".
2184 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2185 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2186 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2187 local "cur_insn".
2188 (s390_non_addr_reg_read_p): Likewise for param "insn".
2189 (find_cond_jump): Likewise for return type and param "insn".
2190 (s390_swap_cmp): Likewise for param "insn".
2191 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2192 "prev_insn", "next_insn".
2193 (s390_reorg): Likewise for locals "insn", "target".
2194 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2195 (s390_sched_variable_issue): For now, rename param "insn" to
2196 "uncast_insn", introducing a checked cast.
2197 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2198 insn.
2199 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2200 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2201
2202 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2203
2204 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2205 param from rtx to rtx_insn *.
2206 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2207
2208 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2209
2210 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2211 4 from rtx to rtx_insn *.
2212 (rs6000_final_prescan_insn): Likewise for first param.
2213 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2214 local "insn".
2215 (rs6000_get_some_local_dynamic_name): Likewise.
2216 (output_cbranch): Likewise for param "insn".
2217 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2218 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2219 (rs6000_emit_allocate_stack): Likewise for local "insn".
2220 (load_cr_save): Likewise.
2221 (restore_saved_cr): Likewise.
2222 (restore_saved_lr): Likewise.
2223 (emit_cfa_restores): Likewise.
2224 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2225 "deleted_debug_label".
2226 (rs6000_output_mi_thunk): Likewise for local "insn".
2227 (rs6000_final_prescan_insn): Likewise for param "insn".
2228
2229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2230
2231 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2232 Strengthen param "insn" from rtx to rtx_insn *.
2233 * config/picochip/picochip.c (picochip_current_prescan_insn):
2234 Likewise for this variable.
2235 (picochip_final_prescan_insn): Likewise for param "insn".
2236
2237 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2238
2239 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2240 from rtx to rtx_insn *.
2241 (pa_output_indirect_call): Likewise.
2242 (pa_adjust_insn_length): Likewise.
2243 (pa_attr_length_millicode_call): Likewise.
2244 (pa_attr_length_call): Likewise.
2245 (pa_attr_length_indirect_call): Likewise.
2246
2247 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2248 "insn".
2249 (pa_attr_length_millicode_call): Likewise.
2250 (pa_attr_length_call): Likewise.
2251 (pa_output_call): Likewise.
2252 (pa_attr_length_indirect_call): Likewise.
2253 (pa_output_indirect_call): Likewise.
2254
2255 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2256
2257 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2258 Strengthen first param from rtx to rtx_insn *.
2259 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2260 param "insn".
2261
2262 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2263
2264 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2265 type from rtx to rtx_insn *.
2266 (mips_expand_call): Likewise.
2267 (mips_adjust_insn_length): Likewise for first param.
2268 (mips_output_conditional_branch): Likewise.
2269 (mips_output_order_conditional_branch): Likewise.
2270 (mips_final_prescan_insn): Likewise.
2271
2272 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2273 rtx_insn * for the SEQUENCE case.
2274 (SEQ_END): Likewise.
2275 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2276 (mips_emit_call_insn): Likewise, also for local "insn".
2277 (mips16_gp_pseudo_reg): Likewise for local "scan".
2278 (mips16_build_call_stub): Likewise for return type and for local
2279 "insn". Introduce a new local "pattern" so that "insn" can indeed
2280 be an insn.
2281 (mips_expand_call): Strengthen return type and local "insn" from
2282 rtx to rtx_insn *.
2283 (mips_block_move_loop): Strengthen local "label" from rtx to
2284 rtx_code_label *.
2285 (mips_expand_synci_loop): Likewise for locals "label",
2286 "end_label".
2287 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2288 rtx_insn *.
2289 (mips16e_collect_argument_saves): Likewise for locals "insn",
2290 "next".
2291 (mips_find_gp_ref): Likewise for param of callback for "pred"
2292 param, and for local "insn".
2293 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2294 (mips_insn_has_flexible_gp_ref_p): Likewise.
2295 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2296 local "insn".
2297 (mips_epilogue_set_cfa): Likewise for local "insn".
2298 (mips_expand_epilogue): Likewise.
2299 (mips_adjust_insn_length): Likewise for param "insn".
2300 (mips_output_conditional_branch): Likewise.
2301 (mips_output_order_conditional_branch): Likewise.
2302 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2303 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2304 "falu2_turn_enabled_insn".
2305 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2306 "done_label" from rtx to rtx_code_label *.
2307 (struct mips16_constant): Likewise for field "label".
2308 (mips16_add_constant): Likewise for return type.
2309 (mips16_emit_constants_1): Strengthen return type and param "insn"
2310 from rtx to rtx_insn *.
2311 (mips16_emit_constants): Likewise for param "insn".
2312 (mips16_insn_length): Likewise.
2313 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2314 to rtx_code_label *.
2315 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2316 from rtx to rtx_insn *.
2317 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2318 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2319 (r10k_simplify_address): Strengthen param "insn" and local
2320 "def_insn" from rtx to rtx_insn *.
2321 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2322 rtx_insn *.
2323 (r10k_needs_protection_p_1): Update target type of cast of data
2324 from to rtx to rtx_insn *.
2325 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2326 rtx * to rtx_insn **.
2327 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2328 rtx_insn *.
2329 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2330 (mips_call_expr_from_insn): Likewise for param "insn".
2331 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2332 (mips_find_pic_call_symbol): Likewise for param "insn".
2333 (mips_annotate_pic_calls): Likewise for local "insn".
2334 (mips_sim_insn): Likewise for this variable.
2335 (struct mips_sim): Likewise for field "insn" within elements of
2336 last_set array.
2337 (mips_sim_wait_reg): Likewise for param "insn".
2338 (mips_sim_wait_regs): Likewise.
2339 (mips_sim_wait_units): Likewise.
2340 (mips_sim_wait_insn): Likewise.
2341 (mips_sim_issue_insn): Likewise.
2342 (mips_sim_finish_insn): Likewise.
2343 (mips_seq_time): Likewise for param "seq" and local "insn".
2344 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2345 locals "first", "second".
2346 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2347 "last", "last2", "next".
2348 (mips_avoid_hazard): Likewise for params "after", "insn".
2349 (mips_reorg_process_insns): Likewise for locals "insn",
2350 "last_insn", "subinsn", "next_insn".
2351 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2352 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2353 "jump_sequence".
2354 (mips_output_mi_thunk): Likewise for local "insn".
2355 (mips_final_prescan_insn): Likewise for param "insn".
2356
2357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2358
2359 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2360 Strengthen return type and local "insns" from rtx to rtx_insn *.
2361 (microblaze_legitimize_tls_address): Likewise for local "insns".
2362 (microblaze_block_move_loop): Strengthen local "label" from rtx
2363 to rtx_code_label *.
2364 (microblaze_expand_prologue): Strengthen two locals named "insn"
2365 from rtx to rtx_insn *.
2366 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2367 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2368 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2369 to rtx_code_label *.
2370
2371 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2372
2373 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2374 param from rtx to rtx_insn *.
2375 (mep_reuse_lo): Likewise for third param.
2376 (mep_use_post_modify_p): Likewise for first param.
2377 (mep_core_address_length): Likewise.
2378 (mep_cop_address_length): Likewise.
2379 (mep_final_prescan_insn): Likewise.
2380 (mep_store_data_bypass_p): Likewise for both params.
2381 (mep_mul_hilo_bypass_p): Likewise.
2382 (mep_ipipe_ldc_p): Likewise for param.
2383
2384 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2385 (mep_rewrite_mult): Likewise.
2386 (mep_rewrite_mulsi3): Likewise.
2387 (mep_rewrite_maddsi3): Likewise.
2388 (mep_reuse_lo_p_1): Likewise.
2389 (mep_reuse_lo_p): Likewise.
2390 (mep_frame_expr): Likewise.
2391 (mep_make_parallel): Likewise for both params.
2392 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2393 local "insn".
2394 (mep_use_post_modify_p): Likewise for param "insn".
2395 (mep_core_address_length): Likewise.
2396 (mep_cop_address_length): Likewise.
2397 (mep_reg_set_in_function): Likewise for local "insn".
2398 (mep_asm_without_operands_p): Likewise.
2399 (F): Likewise for return type and param "x".
2400 (add_constant): Likewise for local "insn".
2401 (maybe_dead_move): Likewise for return type and local "insn".
2402 (mep_expand_prologue): Likewise for local "insn".
2403 (mep_final_prescan_insn): Likewise for param "insn".
2404 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2405 "next", "follow", "x".
2406 (mep_insert_repeat_label_last): Likewise for return type, param
2407 "last_insn", and locals "next", "prev". Strengthen param "label"
2408 from rtx to rtx_code_label *.
2409 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2410 rtx_insn *.
2411 (struct mep_doloop_end): Likewise for fields "insn" and
2412 "fallthrough".
2413 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2414 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2415 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2416 rtx_insn *.
2417 (mep_invert_branch): Likewise for params "insn" and "after".
2418 (mep_reorg_erepeat): Likewise for param "insns" and locals
2419 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2420 "l" from rtx to rtx_code_label *.
2421 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2422 from rtx to rtx_insn *.
2423 (mep_reorg_addcombine): Likewise for param "insns" and locals
2424 "i", "n".
2425 (add_sp_insn_p): Likewise for param "insn".
2426 (mep_reorg_noframe): Likewise for param "insns" and locals
2427 "start_frame_insn", "end_frame_insn", "next".
2428 (mep_reorg): Likewise for local "insns".
2429 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2430 cast.
2431 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2432 (mep_mul_hilo_bypass_p): Likewise.
2433 (mep_ipipe_ldc_p): Likewise for param "insn".
2434 (mep_make_bundle): Likewise for return type, param "cop" and local
2435 "insn", splitting out the latter into a new local "seq" for when it
2436 is a SEQUENCE rather than an insn.
2437 (core_insn_p): Likewise for param "insn".
2438 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2439 "last", "first", "note", "prev", "core_insn".
2440
2441 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2442
2443 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2444 rtx to rtx_insn *.
2445 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2446 (m68k_final_prescan_insn): Likewise for first param.
2447
2448 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2449 (m68k_set_frame_related): Likewise for param "insn".
2450 (output_btst): Likewise for param "insn".
2451 (m68k_final_prescan_insn): Likewise.
2452 (m68k_move_to_reg): Likewise for local "insn".
2453 (m68k_call_tls_get_addr): Likewise for local "insns".
2454 (m68k_call_m68k_read_tp): Likewise.
2455 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2456 (m68k_output_mi_thunk): Likewise for local "insn".
2457
2458 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2459
2460 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2461 first param from rtx to rtx_insn *.
2462 (iq2000_adjust_insn_length): Likewise.
2463 (iq2000_output_conditional_branch): Likewise.
2464 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2465 "insn" and local "nop_insn".
2466 (iq2000_annotate_frame_insn): Likewise for param "insn".
2467 (iq2000_expand_prologue): Likewise for both locals "insn".
2468 (iq2000_adjust_insn_length): Likewise for param "insn".
2469 (iq2000_output_conditional_branch): Likewise.
2470
2471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2472
2473 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2474 "insns" from rtx to rtx_insn *.
2475 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2476 (struct spill_fill_data): Likewise for field "init_after" and for
2477 elements of array field "prev_insn".
2478 (spill_restore_mem): Likewise for locals "insn", "first".
2479 (do_spill): Likewise for local "insn".
2480 (do_restore): Likewise.
2481 (ia64_expand_prologue): Likewise.
2482 (ia64_expand_epilogue): Likewise.
2483 (emit_insn_group_barriers): Likewise for locals "insn",
2484 "last_label".
2485 (emit_all_insn_group_barriers): Likewise for locals "insn",
2486 "last".
2487 (dfa_stop_insn): Likewise for this global.
2488 (dfa_pre_cycle_insn): Likewise.
2489 (ia64_nop): Likewise.
2490 (final_emit_insn_group_barriers): Likewise for locals "insn",
2491 "last".
2492 (emit_predicate_relation_info): Likewise for locals "head", "n",
2493 "insn", "b", "a".
2494 (ia64_reorg): Likewise for local "insn".
2495 (ia64_output_mi_thunk): Likewise.
2496 (expand_vec_perm_interleave_2): Likewise for local "seq".
2497
2498 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2499
2500 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2501 param 1 "insn" from rtx to rtx_insn *.
2502 (ix86_use_lea_for_mov): Likewise.
2503 (ix86_avoid_lea_for_addr): Likewise.
2504 (ix86_split_lea_for_addr): Likewise.
2505 (ix86_lea_for_add_ok): Likewise.
2506 (ix86_output_call_insn): Likewise.
2507
2508 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2509 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2510 (ix86_output_function_epilogue): Likewise for locals "insn",
2511 "deleted_debug_label".
2512 (legitimize_tls_address): Likewise for local "insn".
2513 (get_some_local_dynamic_name): Likewise.
2514 (increase_distance): Likewise for params "prev", "next".
2515 (distance_non_agu_define_in_bb): Likewise for params "insn",
2516 "start" and locals "prev", "next".
2517 (distance_non_agu_define): Likewise for param "insn".
2518 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2519 locals "next", "prev".
2520 (distance_agu_use): Likewise for param "insn".
2521 (ix86_lea_outperforms): Likewise.
2522 (ix86_ok_to_clobber_flags): Likewise.
2523 (ix86_avoid_lea_for_add): Likewise.
2524 (ix86_use_lea_for_mov): Likewise.
2525 (ix86_avoid_lea_for_addr): Likewise.
2526 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2527 (ix86_split_lea_for_addr): Likewise for param "insn".
2528 (ix86_lea_for_add_ok): Likewise for param "insn".
2529 (ix86_expand_carry_flag_compare): Likewise for local
2530 "compare_seq".
2531 (ix86_expand_int_movcc): Likewise.
2532 (ix86_output_call_insn): Likewise for param "insn".
2533 (ix86_output_call_insn): Likewise for local "i".
2534 (x86_output_mi_thunk): Introduce local "insn", using it in place
2535 of "tmp" when dealing with insns.
2536 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2537 "start".
2538 (ix86_pad_returns): Likewise for locals "ret", "prev".
2539 (ix86_count_insn_bb): Likewise for local "insn".
2540 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2541 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2542 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2543 (expand_vec_perm_interleave2): Likewise for local "seq".
2544 (expand_vec_perm_vperm2f128_vblend): Likewise.
2545 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2546 call to for_each_rtx with for_each_rtx_in_insn.
2547
2548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2549
2550 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2551 "label" from rtx to rtx_code_label *.
2552 (ix86_expand_prologue): Likewise.
2553 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2554 "varargs_label".
2555 (ix86_split_idivmod): Likewise for locals "end_label" and
2556 "qimode_label".
2557 (ix86_expand_branch): Likewise for local "label2".
2558 (ix86_expand_aligntest): Likewise for return type and local "label".
2559 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2560 "top_label".
2561 (expand_movmem_epilogue): Likewise for the various locals named
2562 "label".
2563 (expand_setmem_epilogue): Likewise.
2564 (expand_small_movmem_or_setmem): Likewise for local "label".
2565 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2566 Strengthen param "done_label" from rtx * to rtx_code_label **.
2567 Strengthen locals "loop_label" and "label" from rtx to
2568 rtx_code_label *.
2569 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2570 Likewise for locals "loop_label", "label".
2571 (ix86_expand_set_or_movmem): Likewise for locals "label",
2572 "jump_around_label", "hot_label".
2573 (ix86_expand_strlensi_unroll_1): Likewise for locals
2574 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2575 "end_2_label".
2576 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2577 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2578 "label2", "jump_label".
2579 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2580 local "label".
2581 (ix86_expand_lfloorceil): Likewise for local "label".
2582 (ix86_expand_rint): Likewise.
2583 (ix86_expand_floorceildf_32): Likewise.
2584 (ix86_expand_floorceil): Likewise.
2585 (ix86_expand_rounddf_32): Likewise.
2586 (ix86_expand_trunc): Likewise.
2587 (ix86_expand_truncdf_32): Likewise.
2588 (ix86_expand_round): Likewise.
2589
2590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2591
2592 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2593 first param from rtx to rtx_insn *.
2594 (h8300_insn_length_from_table): Likewise.
2595 * config/h8300/h8300.c (F): Likewise for return type and param
2596 "x".
2597 (Fpa): Add a checked cast to rtx_insn *.
2598 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2599 rtx_insn *.
2600 (final_prescan_insn): Likewise for param "insn".
2601 (h8300_binary_length): Likewise.
2602 (h8300_insn_length_from_table): Likewise.
2603
2604 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2605
2606 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2607 Strengthen first param "insn" from rtx to rtx_insn *.
2608
2609 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2610 Likewise.
2611 (frame_insn): Likewise for return type. Introduce local "insn"
2612 for use in place of local "x" for use as an rtx_insn *.
2613 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2614 (epiphany_expand_prologue): Likewise for local "insn".
2615 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2616 * config/epiphany/resolve-sw-modes.c
2617 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2618 "seq".
2619
2620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2621
2622 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2623 param from rtx to rtx_insn *.
2624 (c6x_final_prescan_insn): Likewise for first param.
2625
2626 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2627 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2628 (c6x_expand_compare): Strengthen local "insns" from rtx to
2629 rtx_insn *.
2630 (c6x_get_unit_specifier): Likewise for param "insn".
2631 (c6x_print_unit_specifier_field): Likewise.
2632 (c6x_final_prescan_insn): Likewise.
2633 (emit_add_sp_const): Likewise for local "insn".
2634 (c6x_expand_prologue): Likewise.
2635
2636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2637
2638 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2639 param 1 from rtx to rtx_insn *.
2640 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2641 the various locals named "insn".
2642 (expand_epilogue_reg_restore): Likewise.
2643 (frame_related_constant_load): Likewise.
2644 (add_to_reg): Likewise.
2645 (emit_link_insn): Likewise.
2646 (do_link): Likewise.
2647 (expand_interrupt_handler_prologue): Likewise.
2648 (branch_dest): Likewise for param "branch".
2649 (asm_conditional_branch): Likewise for param "insn".
2650 (gen_one_bundle): Likewise for elements of param "slot" and local
2651 "t".
2652 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2653 elements of local "slot".
2654 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2655 "queue", "next_queue", "prev".
2656 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2657 (add_sched_insns_for_speculation): Likewise for local "insn".
2658
2659 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2660
2661 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2662 from rtx to rtx_insn *.
2663 (output_movhi): Likewise.
2664 (output_movsisf): Likewise.
2665 (avr_out_tstsi): Likewise.
2666 (avr_out_tsthi): Likewise.
2667 (avr_out_tstpsi): Likewise.
2668 (avr_out_compare): Likewise.
2669 (avr_out_compare64): Likewise.
2670 (avr_out_movpsi): Likewise.
2671 (ashlqi3_out): Likewise.
2672 (ashlhi3_out): Likewise.
2673 (ashlsi3_out): Likewise.
2674 (ashrqi3_out): Likewise.
2675 (ashrhi3_out): Likewise.
2676 (ashrsi3_out): Likewise.
2677 (lshrqi3_out): Likewise.
2678 (lshrhi3_out): Likewise.
2679 (lshrsi3_out): Likewise.
2680 (avr_out_ashlpsi3): Likewise.
2681 (avr_out_ashrpsi3): Likewise.
2682 (avr_out_lshrpsi3): Likewise.
2683 (avr_out_fract): Likewise.
2684 (avr_out_sbxx_branch): Likewise.
2685 (avr_out_round): Likewise.
2686 (avr_out_xload): Likewise.
2687 (avr_out_movmem): Likewise.
2688 (adjust_insn_length): Likewise.
2689 (avr_out_lpm): Likewise.
2690 (reg_unused_after): Likewise.
2691 (_reg_unused_after): Likewise.
2692 (avr_jump_mode): Likewise for second param.
2693 (jump_over_one_insn): Likewise for first param.
2694 (avr_final_prescan_insn): Likewise.
2695 (out_shift_with_cnt): Likewise for second param.
2696
2697 * config/avr/avr.c (get_sequence_length): Likewise for param
2698 "insns" and local "insn".
2699 (emit_push_byte): Likewise for local "insn".
2700 (emit_push_sfr): Likewise.
2701 (avr_prologue_setup_frame): Likewise for locals "insn",
2702 "fp_plus_insns", "sp_plus_insns".
2703 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2704 "sp_plus_insns".
2705 (avr_jump_mode): Likewise for param "insn".
2706 (avr_final_prescan_insn): Likewise.
2707 (avr_find_unused_d_reg): Likewise.
2708 (avr_out_lpm_no_lpmx): Likewise.
2709 (avr_out_lpm): Likewise.
2710 (avr_out_xload): Likewise.
2711 (output_movqi): Likewise.
2712 (output_movhi): Likewise.
2713 (out_movqi_r_mr): Likewise.
2714 (out_movhi_r_mr): Likewise.
2715 (out_movsi_r_mr): Likewise.
2716 (out_movsi_mr_r): Likewise.
2717 (output_movsisf): Likewise.
2718 (avr_out_load_psi): Likewise.
2719 (avr_out_store_psi): Likewise.
2720 (avr_out_movpsi): Likewise.
2721 (out_movqi_mr_r): Likewise.
2722 (avr_out_movhi_mr_r_xmega): Likewise.
2723 (out_movhi_mr_r): Likewise.
2724 (compare_condition): Likewise for param "insn" and local "next".
2725 (compare_sign_p): Likewise for param "insn".
2726 (compare_diff_p): Likewise.
2727 (compare_eq_p): Likewise.
2728 (avr_out_compare): Likewise.
2729 (avr_out_compare64): Likewise.
2730 (avr_out_tsthi): Likewise.
2731 (avr_out_tstpsi): Likewise.
2732 (avr_out_tstsi): Likewise.
2733 (out_shift_with_cnt): Likewise.
2734 (ashlqi3_out): Likewise.
2735 (ashlhi3_out): Likewise.
2736 (avr_out_ashlpsi3): Likewise.
2737 (ashlsi3_out): Likewise.
2738 (ashrqi3_out): Likewise.
2739 (ashrhi3_out): Likewise.
2740 (avr_out_ashrpsi3): Likewise.
2741 (ashrsi3_out): Likewise.
2742 (lshrqi3_out): Likewise.
2743 (lshrhi3_out): Likewise.
2744 (avr_out_lshrpsi3): Likewise.
2745 (lshrsi3_out): Likewise.
2746 (avr_out_fract): Likewise.
2747 (avr_out_round): Likewise.
2748 (avr_adjust_insn_length): Likewise.
2749 (reg_unused_after): Likewise.
2750 (_reg_unused_after): Likewise.
2751 (avr_compare_pattern): Likewise.
2752 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2753 and locals "branch1", "branch2", "insn2", "jump".
2754 (avr_reorg): Likewise for local "insn".
2755 (avr_2word_insn_p): Likewise for param "insn".
2756 (jump_over_one_insn_p): Likewise.
2757 (avr_out_sbxx_branch): Likewise.
2758 (avr_out_movmem): Likewise.
2759
2760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2761
2762 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2763 param from rtx to rtx_insn *.
2764 (thumb1_final_prescan_insn): Likewise.
2765 (thumb2_final_prescan_insn): Likewise.
2766
2767 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2768 rtx to rtx_insn *.
2769 (struct minipool_node): Likewise for field "insn".
2770 (dump_minipool): Likewise for param "scan".
2771 (create_fix_barrier): Likewise for local "from". Strengthen local
2772 "label" from rtx to rtx_code_label *.
2773 (push_minipool_barrier): Strengthen param "insn" from rtx to
2774 rtx_insn *.
2775 (push_minipool_fix): Likewise.
2776 (note_invalid_constants): Likewise.
2777 (thumb2_reorg): Likewise for local "insn".
2778 (arm_reorg): Likewise.
2779 (thumb2_final_prescan_insn): Likewise for param
2780 "insn" and local "first_insn".
2781 (arm_final_prescan_insn): Likewise for param "insn" and locals
2782 "start_insn", "this_insn".
2783 (arm_debugger_arg_offset): Likewise for param "insn".
2784 (thumb1_emit_multi_reg_push): Likewise for return type and local
2785 "insn".
2786 (thumb1_final_prescan_insn): Likewise for param "insn".
2787 (thumb_far_jump_used_p): Likewise for local "insn".
2788 (thumb1_expand_prologue): Likewise.
2789 (arm_expand_epilogue_apcs_frame): Likewise.
2790 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2791 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2792 from rtx to rtx_code_label *.
2793 (arm_split_atomic_op): Likewise for local "label".
2794 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2795
2796 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2797
2798 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2799 first param from rtx to rtx_insn *.
2800 (arc_verify_short): Likewise.
2801 (arc_short_long): Likewise.
2802 (arc_need_delay): Likewise.
2803
2804 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2805 "target_insn".
2806 (arc_ccfsm_advance): Likewise for param "insn" and locals
2807 "start_insn", "this_insn".
2808 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2809 (arc_ccfsm_post_advance): Likewise for param "insn".
2810 (arc_next_active_insn): Likewise for return type and param "insn".
2811 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2812 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2813 (output_short_suffix): Likewise for local "insn".
2814 (arc_final_prescan_insn): Likewise for param "insn". Remove
2815 now-redundant checked cast.
2816 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2817 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2818 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2819 for use where lc_set became an insn.
2820 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2821 rtx to rtx_insn *.
2822 (arc_get_insn_variants): Likewise for local "prev".
2823 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2824 "next".
2825 (arc_predicate_delay_insns): Likewise for local "insn".
2826 (arc_pad_return): Likewise for local "prev". For now, add a
2827 checked cast when extracting the insn from "final_sequence".
2828 (arc_short_long): Likewise for param "insn".
2829 (arc_need_delay): Likewise for param "insn" and local "next".
2830 (arc_label_align): Likewise for locals "prev", "next".
2831
2832 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2833
2834 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2835 "insn" from rtx to rtx_insn *.
2836 (alpha_gp_save_rtx): Likewise for local "seq".
2837 (alpha_instantiate_decls): Likewise for local "top".
2838 (get_some_local_dynamic_name): Likewise for local "insn".
2839 (alpha_does_function_need_gp): Likewise.
2840 (set_frame_related_p): Likewise for return type and for locals
2841 "seq" and "insn".
2842 (emit_frame_store_1): Likewise for local "insn".
2843 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2844 (alpha_end_function): Likewise for local "insn".
2845 (alpha_output_mi_thunk_osf): Likewise.
2846 (alphaev4_insn_pipe): Likewise for param "insn".
2847 (alphaev5_insn_pipe): Likewise.
2848 (alphaev4_next_group): Likewise for return type and param 1
2849 "insn".
2850 (alphaev5_next_group): Likewise.
2851 (alpha_align_insns_1): Likewise for return type and param 1 of
2852 callback param "next_group", and for locals "i", "next", "prev",
2853 "where", "where2", "insn".
2854
2855 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2856
2857 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2858 rather than modifying the stmt.
2859
2860 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2861
2862 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2863 cgraph_state conversion.
2864
2865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2866
2867 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2868 Strengthen local "insns" from rtx to rtx_insn *.
2869 (aarch64_set_frame_expr): Likewise for local "insn".
2870 (aarch64_save_or_restore_fprs): Likewise.
2871 (aarch64_save_or_restore_callee_save_registers): Likewise.
2872 (aarch64_expand_prologue): Likewise.
2873 (aarch64_expand_epilogue): Likewise.
2874 (aarch64_output_mi_thunk): Likewise.
2875 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2876 "label2" from rtx to rtx_code_label *.
2877 (aarch64_split_atomic_op): Likewise for local "label".
2878
2879 2014-08-25 Martin Liska <mliska@suse.cz>
2880
2881 * cgraph.h (symtab_node):
2882 (bool needed_p (void)): created from decide_is_symbol_needed
2883 (bool referred_to_p (void)): created from referred_to_p
2884 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2885 * cgraph.h (cgraph_node):
2886 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2887 (void expand (void)): created from expand_function
2888 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2889 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2890 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2891 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2892 * cgraph.h (varpool_node):
2893 (static void add (tree decl): created from varpool_add_new_variable
2894 * cgraph.h (cgraph_edge):
2895 void remove (void);
2896 (void remove_caller (void)): created from cgraph_edge_remove_caller
2897 (void remove_callee (void)): created from cgraph_edge_remove_callee
2898 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2899 created from cgraph_set_call_stmt
2900 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2901 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2902 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2903 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2904 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2905 created from cgraph_speculative_call_info
2906 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2907 int freq_scale, bool update_original)): created from cgraph_clone_edge
2908 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2909 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2910 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2911 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2912 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2913 (static void rebuild_references (void)): created from cgraph_rebuild_references
2914 * cgraph.h (symbol_table):
2915 (create_reference): renamed from add_reference
2916 (maybe_create_reference): renamed from maybe_add_reference
2917 (void register_symbol (symtab_node *node)): new function
2918 (void clear_asm_symbols (void)): new function
2919 (void unregister (symtab_node *node)): new function
2920 (void release_symbol (cgraph_node *node, int uid)): new function
2921 (cgraph_node * allocate_cgraph_symbol (void)): new function
2922 (void initialize (void)): created from cgraph_init
2923 (symtab_node *first_symbol (void)):new function
2924 (asm_node *first_asm_symbol (void)):new function
2925 (symtab_node *first_defined_symbol (void)):new function
2926 (varpool_node *first_variable (void)):new function
2927 (varpool_node *next_variable (varpool_node *node)):new function
2928 (varpool_node *first_static_initializer (void)):new function
2929 (varpool_node *next_static_initializer (varpool_node *node)):new function
2930 (varpool_node *first_defined_variable (void)):new function
2931 (varpool_node *next_defined_variable (varpool_node *node)):new function
2932 (cgraph_node *first_defined_function (void)):new function
2933 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2934 (cgraph_node *first_function (void)):new function
2935 (cgraph_node *next_function (cgraph_node *node)):new function
2936 (cgraph_node *first_function_with_gimple_body (void)):new function
2937 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2938 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2939 created from symtab_remove_unreachable_nodes
2940 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2941 (void process_new_functions (void)): created from cgraph_process_new_functions
2942 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2943 (bool output_variables (void)): created from varpool_node::output_variables
2944 (void output_asm_statements (void)): created from output_asm_statements
2945 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2946 (void compile (void)): created from compile
2947 (void output_weakrefs (void)): created from output_weakrefs
2948 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2949 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2950 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2951 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2952 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2953 created from cgraph_next_function_with_gimple_body
2954 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2955 created from cgraph_remove_edge_removal_hook
2956 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2957 created from cgraph_add_node_removal_hook
2958 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2959 created from cgraph_remove_node_removal_hook
2960 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2961 created from varpool_add_node_removal_hook
2962 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2963 created from varpool_remove_node_removal_hook
2964 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2965 created from cgraph_add_function_insertion_hook
2966 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2967 created from cgraph_remove_function_insertion_hook
2968 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2969 created from varpool_add_variable_insertion_hook
2970 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2971 created from varpool_remove_variable_insertion_hook
2972 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2973 created from cgraph_add_edge_duplication_hook
2974 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2975 created from cgraph_remove_edge_duplication_hook
2976 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2977 created from cgraph_add_node_duplication_hook
2978 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2979 created from cgraph_remove_node_duplication_hook
2980 (void call_edge_removal_hooks (cgraph_edge *e)):
2981 created from cgraph_call_edge_removal_hooks
2982 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2983 created from call_function_insertion_hooks
2984 (void call_cgraph_removal_hooks (cgraph_node *node)):
2985 created from cgraph_call_node_removal_hooks
2986 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2987 created from cgraph_node::call_duplication_hooks
2988 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2989 created from cgraph_call_edge_duplication_hooks
2990 (void call_varpool_removal_hooks (varpool_node *node)):
2991 created from varpool_call_node_removal_hooks
2992 (void call_varpool_insertion_hooks (varpool_node *node)):
2993 created from varpool_call_variable_insertion_hooks
2994 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2995 created from insert_to_assembler_name_hash
2996 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2997 created from unlink_from_assembler_name_hash
2998 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2999 created from symtab_prevail_in_asm_name_hash
3000 (void symtab_initialize_asm_name_hash (void)):
3001 created from symtab_initialize_asm_name_hash
3002 (void change_decl_assembler_name (tree decl, tree name)):
3003 created from change_decl_assembler_name
3004 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3005 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3006 created from decl_assembler_name_hash
3007 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3008 created from decl_assembler_name_equal
3009 (static hashval_t hash_node_by_assembler_name (const void *p)):
3010 created from hash_node_by_assembler_name
3011 (static int eq_assembler_name (const void *p1, const void *p2)):
3012 created from eq_assembler_name
3013
3014 2014-08-25 Marek Polacek <polacek@redhat.com>
3015
3016 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3017
3018 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3019
3020 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3021 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3022 SWI1248_AVX512BW mode iterator.
3023
3024 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3025
3026 PR target/62111
3027 * config/sh/predicates.md (general_extend_operand): Disable
3028 TRUNCATE before reload completes.
3029
3030 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3031
3032 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3033
3034 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3035
3036 PR target/61996
3037 * config/sh/sh.opt (musermode): Allow negative form.
3038 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3039 targets that don't support it.
3040 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3041 Document -mno-usermode option.
3042
3043 2014-08-24 Kito Cheng <kito@0xlab.org>
3044
3045 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3046 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3047 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3048 * doc/tm.texi: Regenerate.
3049
3050 2014-08-24 Kito Cheng <kito@0xlab.org>
3051
3052 * ira.c: Fix typo in comment.
3053
3054 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3055
3056 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3057 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3058
3059 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3060
3061 PR target/62038
3062 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3063 last_address when the current function is a thunk.
3064 (pa_asm_output_mi_thunk): When we don't have named sections or they
3065 are not being used, check that thunk can reach the stub table with a
3066 short branch.
3067
3068 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3069
3070 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3071 rtx_insn *.
3072 (pass_web::execute): Likewise for local "insn".
3073
3074 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3075
3076 * var-tracking.c (struct micro_operation_def): Strengthen field
3077 "insn" from rtx to rtx_insn *.
3078 (struct emit_note_data_def): Likewise.
3079 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3080 (vt_stack_adjustments): Likewise for local "insn".
3081 (adjust_insn): Likewise for param "insn".
3082 (val_store): Likewise.
3083 (val_resolve): Likewise.
3084 (struct count_use_info): Likewise for field "insn".
3085 (log_op_type): Likewise for param "insn".
3086 (reverse_op): Likewise.
3087 (prepare_call_arguments): Likewise.
3088 (add_with_sets): The initial param takes an insn, but we can't
3089 yet strengthen it from rtx to rtx_insn * since it's used as a
3090 cselib_record_sets_hook callback. For now rename initial param
3091 from "insn" to "uncast_insn", and introduce a local "insn" of
3092 the stronger rtx_insn * type, with a checked cast.
3093 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3094 rtx_insn *.
3095 (emit_note_insn_var_location): Likewise.
3096 (emit_notes_for_changes): Likewise.
3097 (emit_notes_for_differences): Likewise.
3098 (next_non_note_insn_var_location): Likewise for return type and
3099 for param "insn".
3100 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3101 (vt_initialize): Likewise for local "insn".
3102 (delete_debug_insns): Likewise for locals "insn" and "next".
3103
3104 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3105
3106 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3107 rtx_insn *.
3108 (mark_constant_pool): Likewise for local "insn".
3109
3110 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3111
3112 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3113 rtx to rtx_insn *.
3114 (dead_debug_promote_uses): Likewise.
3115 (dead_debug_insert_temp): Likewise.
3116
3117 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3118
3119 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3120 from const_rtx to const rtx_insn *.
3121 (store_killed_after): Likewise. Strengthen locals "last", "act"
3122 from rtx to rtx_insn *.
3123 (store_killed_before): Strengthen param "insn" from const_rtx to
3124 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3125 (find_moveable_store): Strengthen param "insn" from rtx to
3126 rtx_insn *.
3127 (compute_store_table): Likewise for local "insn".
3128 (insert_insn_start_basic_block): Likewise for param "insn" and
3129 locals "prev", "before", "insn".
3130 (insert_store): For now, add a checked cast to rtx_insn * on the
3131 result of gen_move_insn.
3132 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3133 to rtx_insn *.
3134 (replace_store_insn): Likewise. For now, add a checked cast to
3135 rtx_insn * on the result of gen_move_insn.
3136
3137 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3138
3139 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3140 rtx_insn *.
3141 (expand_sjlj_dispatch_table): Likewise.
3142
3143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3144
3145 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3146 "insn" from rtx to rtx_insn *.
3147
3148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3149
3150 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3151 "insn" from rtx to rtx_insn *.
3152 (dup_block_and_redirect): Likewise for param 3 "before".
3153
3154 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3155 from rtx to rtx_insn *.
3156 (move_insn_for_shrink_wrap): Likewise.
3157 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3158 (dup_block_and_redirect): Likewise for param "before" and local
3159 "insn".
3160 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3161 "end".
3162 (convert_to_simple_return): Likewise for local "start".
3163
3164 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3165 Strengthen local "insn" from rtx to rtx_insn *, for use when
3166 invoking requires_stack_frame_p.
3167
3168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3169
3170 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3171 rtx_insn *.
3172 (speculate_expr): Likewise for locals "orig_insn_rtx",
3173 "spec_insn_rtx".
3174 (eq_transformed_insns): Likewise for locals "i1", "i2".
3175 (check_for_new_jump): Likewise for return type and local "end".
3176 (find_new_jump): Likewise for return type and local "jump".
3177 (sel_split_edge): Likewise for local "jump".
3178 (sel_create_recovery_block): Likewise.
3179 (sel_redirect_edge_and_branch_force): Likewise.
3180 (sel_redirect_edge_and_branch): Likewise.
3181
3182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3183
3184 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3185 "new_insn" from rtx to rtx_insn *.
3186 (create_insn_rtx_with_rhs): Likewise for return type and for local
3187 "insn_rtx".
3188 (create_insn_rtx_with_lhs): Likewise.
3189 (create_speculation_check): Likewise for local "insn_rtx".
3190 (implicit_clobber_conflict_p): Likewise for local "insn".
3191 (get_expr_cost): Likewise.
3192 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3193 (move_cond_jump): Likewise for locals "next", "prev", "link",
3194 "head", "from", "to".
3195
3196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3197
3198 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3199 "next" from rtx to rtx_insn *.
3200 (find_conditional_protection): Likewise for local "next".
3201 (is_conditionally_protected): Likewise for local "insn1".
3202 (is_pfree): Likewise for locals "insn1", "insn2".
3203
3204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3205
3206 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3207 from rtx to rtx_insn *.
3208
3209 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3210 locals "insn1", "insn2" from rtx to rtx_insn *.
3211 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3212 locals "insn", "prev", "last_jump", "next_tail".
3213 (schedule_ebb): Likewise for params "head", "tail".
3214 (schedule_ebbs): Likewise for locals "tail", "head".
3215
3216 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3217 to rtx_insn on "last_insn" in one of the invocations of
3218 schedule_ebb.
3219
3220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3221
3222 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3223 "elem", "insn" from rtx to rtx_insn *.
3224 (change_spec_dep_to_hard): Likewise.
3225 (get_back_and_forw_lists): Likewise for local "con".
3226 (sd_add_dep): Likewise for locals "elem", "insn".
3227 (sd_resolve_dep): Likewise for locals "pro", "con".
3228 (sd_unresolve_dep): Likewise.
3229 (sd_delete_dep): Likewise.
3230 (chain_to_prev_insn): Likewise for local "pro".
3231 (find_inc): Likewise for locals "pro", "con".
3232
3233 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3234
3235 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3236 to rtx_insn *.
3237 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3238 const rtx_insn *.
3239 (modified_between_p): Strengthen local "insn" from rtx to
3240 rtx_insn *.
3241 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3242 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3243 const rtx_insn *.
3244
3245 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3246
3247 * resource.c (next_insn_no_annul): Strengthen local "next" from
3248 rtx to rtx_insn *.
3249 (mark_referenced_resources): Likewise for local "insn".
3250
3251 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3252
3253 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3254 to rtx_insn *.
3255 (find_reloads): Likewise for param 1.
3256 (subst_reloads): Likewise for sole param.
3257 (find_equiv_reg): Likwise for param 2.
3258 (regno_clobbered_p): Likwise for param 2.
3259 (reload): Likewise for param 1.
3260
3261 * caller-save.c (save_call_clobbered_regs): Strengthen local
3262 "insn" from rtx to rtx_insn *.
3263 (insert_one_insn): Likewise for local "insn".
3264
3265 * reload.c (this_insn): Likewise for this global.
3266 (find_reloads): Likewise for param "insn".
3267 (find_reloads_toplev): Likewise.
3268 (find_reloads_address): Likewise.
3269 (subst_reg_equivs): Likewise.
3270 (update_auto_inc_notes): Likewise.
3271 (find_reloads_address_1): Likewise.
3272 (find_reloads_subreg_address): Likewise.
3273 (subst_reloads): Likewise.
3274 (find_equiv_reg): Likewise, also for local "p".
3275 (regno_clobbered_p): Likewise for param "insn".
3276
3277 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3278 array.
3279 (spill_reg_store): Likewise for the elements of this array.
3280 (remove_init_insns): Likewise for local "equiv_insn".
3281 (will_delete_init_insn_p): Likewise for param "insn".
3282 (reload): Likewise for param ""first" and local "insn".
3283 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3284 rtx_insn *.
3285 (calculate_elim_costs_all_insns): Likewise.
3286 (delete_caller_save_insns): Likewise.
3287 (spill_failure): Likewise for param "insn".
3288 (delete_dead_insn): Likewise.
3289 (set_label_offsets): Likewise.
3290 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3291 "prev_insn".
3292 (elimination_costs_in_insn): Likewise for param "insn".
3293 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3294 when referring to an insn.
3295 (set_initial_label_offsets): Likewise.
3296 (set_offsets_for_label): Strengthen param "insn" from rtx to
3297 rtx_insn *.
3298 (init_eliminable_invariants): Likewise for param "first" and local
3299 "insn".
3300 (fixup_eh_region_note): Likewise for param "insn".
3301 (reload_as_needed): Likewise for locals "prev", "insn",
3302 "old_next", "old_prev", "next".
3303 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3304 "last".
3305 (reload_inheritance_insn): Strengthen elements of this array from
3306 rtx to rtx_insn *.
3307 (failed_reload): Likewise for param "insn".
3308 (choose_reload_regs): Likewise for local "insn". Replace use of
3309 NULL_RTX with NULL when referring to an insn.
3310 (input_reload_insns): Strengthen elements of this array from rtx
3311 to rtx_insn *.
3312 (other_input_address_reload_insns): Likewise for this global.
3313 (other_input_reload_insns): Likewise for this global.
3314 (input_address_reload_insns): Likwise for the elements of this
3315 array.
3316 (inpaddr_address_reload_insns): Likwise for the elements of this
3317 array.
3318 (output_reload_insns): Likewise for the elements of this array.
3319 (output_address_reload_insns): Likewise for the elements of this
3320 array.
3321 (outaddr_address_reload_insns): Likewise for the elements of this
3322 array.
3323 (operand_reload_insns): Likewise for this global.
3324 (other_operand_reload_insns): Likewise for this global.
3325 (other_output_reload_insns): Likewise for the elements of this
3326 array.
3327 (new_spill_reg_store): Likewise for the elements of this
3328 array.
3329 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3330 Strengthen local "where" from rtx * to rtx_insn **.
3331 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3332 from rtx to rtx_insn *.
3333 (do_input_reload): Likewise for local "insn".
3334 (do_output_reload): Likewise for local "insn".
3335 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3336 (emit_insn_if_valid_for_reload): Likewise for return type and local
3337 "last". Add checked cast to rtx_insn when returning "insn" since
3338 this has been through emit_insn.
3339 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3340 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3341 returning "insn" since it's been through
3342 emit_insn_if_valid_for_reload at this point.
3343 (delete_output_reload): Strengthen param "insn" and locals
3344 "output_reload_insn", "i2" from rtx to rtx_insn *.
3345 (delete_address_reloads): Likewise for params "dead_insn",
3346 "current_insn" and locals "prev", "next".
3347 (delete_address_reloads_1): Likewise for params "dead_insn",
3348 "current_insn" and locals "prev", "i2".
3349 (inc_for_reload): Likewise for locals "last", "add_insn".
3350 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3351 rtx_insn *.
3352
3353 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3354 param of this duplicate of the prototype from reload.h
3355
3356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3357
3358 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3359 rtx to rtx_insn *.
3360 (regstat_bb_compute_calls_crossed): Likewise.
3361
3362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3363
3364 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3365 to rtx_insn *.
3366 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3367 with an insn.
3368 (regrename_analyze): Strengthen local "insn" from rtx to
3369 rtx_insn *.
3370 (scan_rtx_reg): Likewise for param "insn".
3371 (scan_rtx_address): Likewise.
3372 (scan_rtx): Likewise.
3373 (restore_operands): Likewise.
3374 (record_out_operands): Likewise.
3375 (build_def_use): Likewise for local "insn". Replace use of
3376 NULL_RTX with NULL when dealing with an insn.
3377
3378 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3379
3380 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3381 * reginfo.c (reg_scan): Likewise, also for local "insn".
3382 (reg_scan_mark_refs): Likewise for param "insn".
3383 (init_subregs_of_mode): Likewise for local "insn".
3384
3385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3386
3387 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3388 "insn" from rtx to rtx_insn *.
3389 (replace_oldest_value_reg): Likewise for param "insn".
3390 (replace_oldest_value_addr): Likewise.
3391 (replace_oldest_value_mem): Likewise.
3392 (apply_debug_insn_changes): Likewise for local "last_insn".
3393 (copyprop_hardreg_forward_1): Likewise for local "insn".
3394
3395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3396
3397 * reg-stack.c (next_flags_user): Strengthen return type and param
3398 "insn" from rtx to rtx_insn *.
3399 (straighten_stack): Likewise for param "insn".
3400 (check_asm_stack_operands): Likewise.
3401 (remove_regno_note): Likewise.
3402 (emit_pop_insn): Likewise for return type, param "insn", local
3403 "pop_insn".
3404 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3405 "limit" from rtx to rtx_insn *.
3406 (swap_to_top): Likewise for param "insn".
3407 (move_for_stack_reg): Likewise.
3408 (move_nan_for_stack_reg): Likewise.
3409 (swap_rtx_condition): Likewise.
3410 (compare_for_stack_reg): Likewise.
3411 (subst_all_stack_regs_in_debug_insn): Likewise.
3412 (subst_stack_regs_pat): Likewise, and local "insn2".
3413 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3414 rtx_insn *.
3415 (subst_stack_regs): Likewise.
3416 (change_stack): Likewise.
3417 (convert_regs_1): Likewise for locals "insn", "next".
3418
3419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3420
3421 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3422 rtx_insn *.
3423 (combine_set_extension): Likewise for param "curr_insn".
3424 (transform_ifelse): Likewise for param "def_insn".
3425 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3426 from vec<rtx> * to vec<rtx_insn *> *.
3427 (is_cond_copy_insn): Likewise for param "insn".
3428 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3429 to vec<rtx_insn *>.
3430 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3431 local "def_insn" from rtx to rtx_insn *.
3432 (get_sub_rtx): Likewise for param "def_insn".
3433 (merge_def_and_ext): Likewise.
3434 (combine_reaching_defs): Likewise.
3435 (add_removable_extension): Likewise for param "insn".
3436 (find_removable_extensions): Likewise for local "insn".
3437 (find_and_remove_re): Likewise for locals "curr_insn" and
3438 "def_insn". Strengthen locals "reinsn_del_list" and
3439 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3440
3441 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3442
3443 * recog.c (split_insn): Strengthen param "insn" and locals
3444 "first", "last" from rtx to rtx_insn *.
3445 (split_all_insns): Likewise for locals "insn", "next".
3446 (split_all_insns_noflow): Likewise.
3447
3448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3449
3450 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3451 const rtx_insn *.
3452 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3453 (debug_rtx_find): Likewise for param 1 "x".
3454
3455 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3456 const_rtx to const rtx_insn *. Likewise for local "insn".
3457 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3458 (debug_rtx_find): Likewise for param 1 "x".
3459 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3460 from const_rtx to const rtx_insn * within the appropriate cases of
3461 the switch statement.
3462
3463 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3464 Strengthen local "insns" from rtx to rtx_insn * since this is
3465 passed to a call to debug_rtx_list.
3466
3467 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3468
3469 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3470 to rtx_insn *.
3471
3472 * function.c (stack_protect_epilogue): Add checked cast to
3473 rtx_insn for now when invoking predict_insn_def.
3474
3475 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3476 rtx_insn *.
3477 (predict_insn_def): Likewise.
3478 (rtl_predict_edge): Likewise for local "last_insn".
3479 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3480 const rtx_insn *.
3481 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3482 to rtx_insn *.
3483 (bb_estimate_probability_locally): Likewise for local "last_insn".
3484 (expensive_function_p): Likewise for local "insn".
3485
3486 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3487 local "jmp", since this is used when invoking predict_insn_def.
3488
3489 2014-08-22 Marek Polacek <polacek@redhat.com>
3490
3491 PR c++/62199
3492 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3493
3494 2014-08-22 Marek Polacek <polacek@redhat.com>
3495
3496 PR c/61271
3497 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3498 a comparison in parens.
3499 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3500 in parens.
3501
3502 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3503
3504 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3505 rtx_insn *.
3506
3507 * cprop.c (fis_get_condition): Likewise.
3508
3509 * postreload.c (reload_cse_regs): Likewise for param "first".
3510 (reload_cse_simplify): Likewise for param "insn".
3511 (reload_cse_regs_1): Likewise for local "insn".
3512 (reload_cse_simplify_set): Likewise for param "insn".
3513 (reload_cse_simplify_operands): Likewise.
3514 (struct reg_use): Likewise for field "insn".
3515 (reload_combine_purge_insn_uses): Likewise for param "insn".
3516 (fixup_debug_insns): Likewise for params "from", "to" and local
3517 "insn".
3518 (try_replace_in_use): Likewise for local "use_insn".
3519 (reload_combine_recognize_const_pattern): Likewise for param
3520 "insn" and locals "add_moved_after_insn", "use_insn".
3521 (reload_combine_recognize_pattern): Likewise for param "insn" and
3522 local "prev".
3523 (reload_combine): Likewise for locals "insn", "prev".
3524 (reload_combine_note_use): Likewise for param "insn".
3525 (move2add_use_add2_insn): Likewise.
3526 (move2add_use_add3_insn): Likewise.
3527 (reload_cse_move2add): Likewise, also for local "next".
3528 (move2add_note_store): Likewise for local "insn".
3529
3530 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3531
3532 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3533 rtx to rtx_insn *.
3534 (struct unoccr): Likewise.
3535 (struct modifies_mem): Likewise.
3536 (alloc_mem): Likewise for local "insn".
3537 (insert_expr_in_table): Likewise for param "insn".
3538 (dump_expr_hash_table_entry): Likewise for local "insn".
3539 (oprs_unchanged_p): Likewise for param "insn".
3540 (load_killed_in_block_p): Likewise for local "setter".
3541 (record_last_reg_set_info): Likewise for param "insn".
3542 (record_last_reg_set_info_regno): Likewise.
3543 (record_last_mem_set_info): Likewise.
3544 (record_last_set_info): Likewise for local "last_set_insn".
3545 (record_opr_changes): Likewise for param "insn".
3546 (hash_scan_set): Likewise.
3547 (compute_hash_table): Likewise for local "insn".
3548 (get_avail_load_store_reg): Likewise for param "insn".
3549 (eliminate_partially_redundant_load): Likewise, also for locals
3550 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3551 RTX for insns.
3552 (eliminate_partially_redundant_loads): Likewise for local "insn".
3553
3554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3555
3556 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3557 rtx to rtx_insn *.
3558 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3559 (expand_twoval_unop): Likewise for locals entry_last", "last".
3560 (expand_twoval_binop): Likewise.
3561 (expand_twoval_binop_libfunc): Likewise for local "insns".
3562 (widen_leading): Likewise for local "last".
3563 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3564 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3565 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3566 (expand_parity): Likewise for locals "last" and "seq".
3567 (expand_ffs): Likewise for local "seq". Strengthen local
3568 "nonzero_label" from rtx to rtx_code_label *.
3569 (expand_absneg_bit): Strengthen local "insns" from rtx to
3570 rtx_insn *.
3571 (expand_unop_direct): Likewise for local "last".
3572 (expand_unop): Likewise for locals "last", "insns".
3573 (expand_abs_nojump): Likewise for local "last".
3574 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3575 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3576 rtx_insn *.
3577 (expand_copysign_absneg): Strengthen local "label" from rtx to
3578 rtx_code_label *.
3579 (expand_copysign_bit): Strengthen local "insns" from rtx to
3580 rtx_insn *.
3581 (struct no_conflict_data): Likewise for fields "first", "insn".
3582 (emit_libcall_block_1): Likewise for param "insns" and locals
3583 "next", "last", "insn".
3584 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3585 on "insns" when invoking emit_libcall_block_1. Ultimately we
3586 want to strengthen insns itself.
3587 (prepare_cmp_insn): Strengthen local "last" from rtx to
3588 rtx_insn *.
3589 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3590 (prepare_float_lib_cmp): Likewise for local "insns".
3591 (emit_conditional_move): Likewise for local "last".
3592 (emit_conditional_add): Likewise.
3593 (have_sub2_insn): Likewise for local "seq".
3594 (expand_float): Likewise for local "insns". Strengthen locals
3595 "label", "neglabel" from rtx to rtx_code_label *.
3596 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3597 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3598 (expand_fixed_convert): Likewise for local "insns" (to
3599 rtx_insn *).
3600 (expand_sfix_optab): Likewise for local "last".
3601 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3602 to rtx_code_label *.
3603 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3604 from rtx to rtx_insn *.
3605 (expand_atomic_fetch_op): Likewise for local "insn".
3606 (maybe_legitimize_operand_same_code): Likewise for local "last".
3607 (maybe_legitimize_operands): Likewise.
3608
3609 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3610
3611 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3612 "insn" from rtx to rtx_insn *.
3613 (ps_rtl_insn): Likewise for return type.
3614 (doloop_register_get): Likewise for params "head", "tail" and
3615 locals "insn", "first_insn_not_to_check".
3616 (schedule_reg_move): Likewise for local "this_insn".
3617 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3618 of gen_move_insn for now.
3619 (reset_sched_times): Strengthen local "insn" from rtx to
3620 rtx_insn *.
3621 (permute_partial_schedule): Likewise.
3622 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3623 (dump_insn_location): Likewise for param "insn".
3624 (loop_canon_p): Likewise for local "insn".
3625 (sms_schedule): Likewise.
3626 (print_partial_schedule): Likewise.
3627 (ps_has_conflicts): Likewise.
3628
3629 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3630
3631 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3632 "tailp" from rtx * to rtx_insn **.
3633
3634 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3635 from rtx to rtx_insn *.
3636 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3637 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3638 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3639 rtx to rtx_insn *.
3640 * modulo-sched.c (const_iteration_count): Strengthen return type
3641 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3642 use of NULL_RTX with NULL when working with insns.
3643 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3644 to rtx_insn *.
3645 (sms_schedule): Likewise.
3646 * sched-rgn.c (init_ready_list): Likewise, also for locals
3647 "src_head" and "src_next_tail".
3648 (compute_block_dependences): Likewise.
3649 (free_block_dependencies): Likewise.
3650 (debug_rgn_dependencies): Likewise.
3651 (free_rgn_deps): Likewise.
3652 (compute_priorities): Likewise.
3653 (schedule_region): Likewise.
3654 * sel-sched.c (find_ebb_boundaries): Likewise.
3655
3656 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3657 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3658
3659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3660
3661 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3662 from rtx to rtx_insn *.
3663 (new_seginfo): Likewise for param "insn".
3664 (create_pre_exit): Likewise for locals "last_insn",
3665 "before_return_copy", "return_copy".
3666 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3667 "mode_set".
3668
3669 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3670
3671 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3672 from rtx to rtx_insn *.
3673 (lra_push_insn): Likewise for 1st param.
3674 (lra_push_insn_and_update_insn_regno_info): Likewise.
3675 (lra_pop_insn): Likewise for return type.
3676 (lra_invalidate_insn_data): Likewise for 1st param.
3677 (lra_set_insn_deleted): Likewise.
3678 (lra_delete_dead_insn): Likewise.
3679 (lra_process_new_insns): Likewise for first 3 params.
3680 (lra_set_insn_recog_data): Likewise for 1st param.
3681 (lra_update_insn_recog_data): Likewise.
3682 (lra_set_used_insn_alternative): Likewise.
3683 (lra_invalidate_insn_regno_info): Likewise.
3684 (lra_update_insn_regno_info): Likewise.
3685 (lra_former_scratch_operand_p): Likewise.
3686 (lra_eliminate_regs_1): Likewise.
3687 (lra_get_insn_recog_data): Likewise.
3688
3689 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3690 rtx to rtx_insn *.
3691
3692 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3693 "mv1" and "mv2".
3694 (substitute_within_insn): New.
3695 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3696 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3697 Replace call to "substitute" with call to substitute_within_insn.
3698
3699 * lra-constraints.c (curr_insn): Strengthen from rtx to
3700 rtx_insn *.
3701 (get_equiv_with_elimination): Likewise for param "insn".
3702 (match_reload): Strengthen params "before" and "after" from rtx *
3703 to rtx_insn **.
3704 (emit_spill_move): Likewise for return type. Add a checked cast
3705 to rtx_insn * on result of gen_move_insn for now.
3706 (check_and_process_move): Likewise for local "before". Replace
3707 NULL_RTX with NULL when referring to insns.
3708 (process_addr_reg): Strengthen params "before" and "after" from
3709 rtx * to rtx_insn **.
3710 (insert_move_for_subreg): Likewise.
3711 (simplify_operand_subreg): Strengthen locals "before" and "after"
3712 from rtx to rtx_insn *.
3713 (process_address_1): Strengthen params "before" and "after" from
3714 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3715 rtx to rtx_insn *.
3716 (process_address): Strengthen params "before" and "after" from
3717 rtx * to rtx_insn **.
3718 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3719 (curr_insn_transform): Strengthen locals "before" and "after"
3720 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3721 to insns.
3722 (loc_equivalence_callback): Update cast of "data", changing
3723 resulting type from rtx to rtx_insn *.
3724 (substitute_pseudo_within_insn): New.
3725 (inherit_reload_reg): Strengthen param "insn" from rtx to
3726 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3727 NULL when referring to insns. Add a checked cast to rtx_insn *
3728 when using usage_insn to invoke lra_update_insn_regno_info.
3729 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3730 likewise for locals "restore", "save". Add checked casts to
3731 rtx_insn * when using usage_insn to invoke
3732 lra_update_insn_regno_info and lra_process_new_insns. Replace
3733 NULL_RTX with NULL when referring to insns.
3734 (split_if_necessary): Strengthen param "insn" from rtx to
3735 rtx_insn *.
3736 (update_ebb_live_info): Likewise for params "head", "tail" and local
3737 "prev_insn".
3738 (get_last_insertion_point): Likewise for return type and local "insn".
3739 (get_live_on_other_edges): Likewise for local "last".
3740 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3741 "prev_insn", "next_insn", "restore".
3742 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3743 (undo_optional_reloads): Likewise for local "insn".
3744
3745 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3746 "insn".
3747 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3748 insns.
3749 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3750 rtx_insn *.
3751 (spill_pseudos): Likewise for local "insn".
3752 (init_elimination): Likewise.
3753 (process_insn_for_elimination): Likewise for param "insn".
3754
3755 * lra-lives.c (curr_insn): Likewise.;
3756
3757 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3758 (remove_pseudos): Likewise for param "insn".
3759 (spill_pseudos): Likewise for local "insn".
3760 (lra_final_code_change): Likewise for locals "insn", "curr".
3761
3762 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3763 (lra_set_insn_deleted): Likewise.
3764 (lra_delete_dead_insn): Likewise, and for local "prev".
3765 (new_insn_reg): Likewise for param "insn".
3766 (lra_set_insn_recog_data): Likewise.
3767 (lra_update_insn_recog_data): Likewise.
3768 (lra_set_used_insn_alternative): Likewise.
3769 (get_insn_freq): Likewise.
3770 (invalidate_insn_data_regno_info): Likewise.
3771 (lra_invalidate_insn_regno_info): Likewise.
3772 (lra_update_insn_regno_info): Likewise.
3773 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3774 vec<rtx_insn *>.
3775 (lra_push_insn_1): Strengthen param "insn" from rtx to
3776 rtx_insn *.
3777 (lra_push_insn): Likewise.
3778 (lra_push_insn_and_update_insn_regno_info): Likewise.
3779 (lra_pop_insn): Likewise for return type and local "insn".
3780 (push_insns): Likewise for params "from", "to", and local "insn".
3781 (setup_sp_offset): Likewise for params "from", "last" and locals
3782 "before", "insn".
3783 (lra_process_new_insns): Likewise for params "insn", "before",
3784 "after" and local "last".
3785 (struct sloc): Likewise for field "insn".
3786 (lra_former_scratch_operand_p): Likewise for param "insn".
3787 (remove_scratches): Likewise for locals "insn", "last".
3788 (check_rtl): Likewise for local "insn".
3789 (add_auto_inc_notes): Likewise for param "insn".
3790 (update_inc_notes): Likewise for local "insn".
3791 (lra): Replace NULL_RTX with NULL when referring to insn.
3792
3793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3794
3795 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3796 to rtx_insn *.
3797 (resolve_reg_notes): Likewise.
3798 (resolve_simple_move): Likewise for return type, param "insn", and
3799 locals "insns", "minsn".
3800 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3801 (resolve_use): Likewise.
3802 (resolve_debug): Likewise.
3803 (find_decomposable_shift_zext): Likewise.
3804 (resolve_shift_zext): Likewise for return type, param "insn", and
3805 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3806 (decompose_multiword_subregs): Likewise for local "insn",
3807 "orig_insn", "decomposed_shift", "end".
3808
3809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3810
3811 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3812 param "insns" from rtx to rtx_insn *.
3813
3814 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3815 rtx to rtx_insn *.
3816 (struct iv_to_split): Likewise.
3817 (loop_exit_at_end_p): Likewise for local "insn".
3818 (split_edge_and_insert): Likewise for param "insns".
3819 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3820 and locals "seq", "jump".
3821 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3822 "branch_code"; update invocations of compare_and_jump_seq to
3823 eliminate NULL_RTX in favor of NULL.
3824 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3825 rtx to rtx_insn *.
3826 (reset_debug_uses_in_loop): Likewise.
3827 (analyze_insn_to_expand_var): Likewise for param "insn".
3828 (analyze_iv_to_split_insn): Likewise.
3829 (analyze_insns_in_loop): Likewise for local "insn".
3830 (insert_base_initialization): Likewise for param
3831 "insn" and local "seq".
3832 (split_iv): Likewise for param "insn" and local "seq".
3833 (expand_var_during_unrolling): Likewise for param "insn".
3834 (insert_var_expansion_initialization): Likewise for local "seq".
3835 (combine_var_copies_in_loop_exit): Likewise.
3836 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3837 "insn".
3838 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3839 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3840 "next".
3841
3842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3843
3844 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3845 rtx_insn *.
3846 (iv_analyze_result): Likewise.
3847 (iv_analyze_expr): Likewise.
3848 (biv_p): Likewise.
3849
3850 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3851 local "def_insn" from rtx to rtx_insn *.
3852 (get_biv_step_1): Likewise for local "insn".
3853 (iv_analyze_expr): Likewise for param "insn".
3854 (iv_analyze_def): Likewise for local "insn".
3855 (iv_analyze_op): Likewise for param "insn".
3856 (iv_analyze): Likewise.
3857 (iv_analyze_result): Likewise.
3858 (biv_p): Likewise.
3859 (suitable_set_for_replacement): Likewise.
3860 (simplify_using_initial_values): Likewise for local "insn".
3861 (iv_number_of_iterations): Likewise for param "insn".
3862 (check_simple_exit): Add checked cast to rtx_insn when invoking
3863 iv_number_of_iterations for now (until get_condition is
3864 strengthened).
3865
3866 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3867 "insn" from rtx to rtx_insn *.
3868 (analyze_insns_in_loop): Likewise for local "insn".
3869
3870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3871
3872 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3873 to rtx_insn *.
3874 (struct invariant): Likewise.
3875 (hash_invariant_expr_1): Likewise for param "insn".
3876 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3877 (find_exits): Likewise for local "insn".
3878 (create_new_invariant): Likewise for param "insn".
3879 (check_dependencies): Likewise.
3880 (find_invariant_insn): Likewise.
3881 (record_uses): Likewise.
3882 (find_invariants_insn): Likewise.
3883 (find_invariants_bb): Likewise for local "insn".
3884 (get_pressure_class_and_nregs): Likewise for param "insn".
3885 (calculate_loop_reg_pressure): Likewise for local "insn".
3886
3887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3888
3889 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3890 to rtx_insn *.
3891 (add_test): Likewise for locals "seq", "jump".
3892 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3893
3894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3895
3896 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3897 rtx_insn *.
3898 (rebuild_jump_labels_chain): Likewise for param "chain".
3899
3900 * cfgexpand.c (pass_expand::execute): Add checked cast to
3901 rtx_insn * when calling rebuild_jump_labels_chain in region where
3902 we know e->insns.r is non-NULL.
3903
3904 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3905 rtx_insn *.
3906 (rebuild_jump_labels): Likewise.
3907 (rebuild_jump_labels_chain): Likewise for param "chain".
3908 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3909 (init_label_info): Likewise for param "f".
3910 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3911 "prev_nonjump_insn".
3912 (mark_all_labels): Likewise for param "f" and locals "insn",
3913 "prev_nonjump_insn".
3914
3915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3916
3917 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3918 from rtx to rtx_insn *insn.
3919 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3920 (ira_add_allocno_copy): Likewise.
3921 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3922 rtx to rtx_insn *.
3923 (ira_create_copy): Likewise.
3924 (ira_add_allocno_copy): Likewise.
3925 (create_bb_allocnos): Likewise for local "insn".
3926 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3927 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3928 process_regs_for_copy for rtx_insn * param.
3929 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3930 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3931 process_regs_for_copy for rtx_insn * param.
3932 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3933 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3934 (record_operand_costs): Likewise.
3935 (scan_one_insn): Likewise for return type, and for param "insn".
3936 (process_bb_for_costs): Likewise for local "insn".
3937 (process_bb_node_for_hard_reg_moves): Likewise.
3938 * ira-emit.c (struct move): Likewise for field "insn".
3939 (create_move): Eliminate use of NULL_RTX when dealing with an
3940 rtx_insn *.
3941 (emit_move_list): Strengthen return type and locals "result",
3942 "insn" from rtx to rtx_insn *insn.
3943 (emit_moves): Likewise for locals "insns", "tmp".
3944 (ira_emit): Likewise for local "insn".
3945 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3946 "insn".
3947 (find_call_crossed_cheap_reg): Likewise.
3948 (process_bb_node_lives): Likewise for local "insn".
3949 * ira.c (decrease_live_ranges_number): Likewise.
3950 (compute_regs_asm_clobbered): Likewise.
3951 (build_insn_chain): Likewise.
3952 (find_moveable_pseudos): Likewise, also locals "def_insn",
3953 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3954 to rtx_insn **. Add a checked cast when assigning from
3955 "closest_use" into closest_uses array in a region where we know
3956 it's a non-NULL insn.
3957 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3958 to rtx_insn *.
3959 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3960 "last_interesting_insn", "uin".
3961 (move_unallocated_pseudos): Likewise for locals "def_insn",
3962 "move_insn", "newinsn".
3963
3964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3965
3966 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3967 Strengthen locals "done_label", "do_error" from rtx to
3968 rtx_code_label *.
3969 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3970 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3971 rtx_code_label *.
3972 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3973 "done_label", "do_error" to rtx_code_label * and local "last" to
3974 rtx_insn *.
3975 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3976 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3977 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3978 "after_lopart_neg", "do_overflow", "hipart_different" to
3979 rtx_code_label * and local "last" to rtx_insn *.
3980
3981 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3982
3983 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3984 "insn" and "move_insn" from rtx to rtx_insn *.
3985
3986 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3987
3988 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3989 rtx_insn *.
3990 (cheap_bb_rtx_cost_p): Likewise.
3991 (first_active_insn): Likewise for return type and local "insn".
3992 (last_active_insn): Likewise for return type and locals "insn",
3993 "head".
3994 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3995 "insn_b".
3996 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3997 "seq".
3998 (noce_try_move): Likewise for local "seq".
3999 (noce_try_store_flag): Likewise.
4000 (noce_try_store_flag_constants): Likewise.
4001 (noce_try_addcc): Likewise.
4002 (noce_try_store_flag_mask): Likewise.
4003 (noce_try_cmove): Likewise.
4004 (noce_try_minmax): Likewise.
4005 (noce_try_abs): Likewise.
4006 (noce_try_sign_mask): Likewise.
4007 (noce_try_bitop): Likewise.
4008 (noce_can_store_speculate_p): Likewise for local "insn".
4009 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4010 seq".
4011 (check_cond_move_block): Likewise for local "insn".
4012 (cond_move_convert_if_block): Likewise.
4013 (cond_move_process_if_block): Likewise for locals "seq",
4014 "loc_insn".
4015 (noce_find_if_block): Likewise for local "jump".
4016 (merge_if_block): Likewise for local "last".
4017 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4018 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4019 (block_has_only_trap): Likewise for return type and local "trap".
4020 (find_if_case_1): Likewise for local "jump".
4021 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4022 "insn".
4023
4024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4025
4026 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4027 "last_insn", "loop_end" from rtx to rtx_insn *.
4028
4029 * hw-doloop.c (scan_loop): Likewise for local "insn".
4030 (discover_loop): Likewise for param "tail_insn".
4031 (discover_loops): Likewise for local "tail".
4032
4033 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4034 cast to rtx_insn * when assigning from an rtx local to a
4035 hwloop_info's "last_insn" field.
4036
4037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4038
4039 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4040 (add_delay_dependencies): Strengthen local "pro" from rtx to
4041 rtx_insn *.
4042 (recompute_todo_spec): Likewise.
4043 (dep_cost_1): Likewise for locals "insn", "used".
4044 (schedule_insn): Likewise for local "dbg".
4045 (schedule_insn): Likewise for locals "pro", "next".
4046 (unschedule_insns_until): Likewise for local "con".
4047 (restore_pattern): Likewise for local "next".
4048 (estimate_insn_tick): Likewise for local "pro".
4049 (resolve_dependencies): Likewise for local "next".
4050 (fix_inter_tick): Likewise.
4051 (fix_tick_ready): Likewise for local "pro".
4052 (add_to_speculative_block): Likewise for locals "check", "twin",
4053 "pro".
4054 (sched_extend_bb): Likewise for locals "end", "insn".
4055 (init_before_recovery): Likewise for local "x".
4056 (sched_create_recovery_block): Likewise for local "barrier".
4057 (create_check_block_twin): Likewise for local "pro".
4058 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4059 "consumer".
4060 (unlink_bb_notes): Update for change to type of bb_header.
4061 Strengthen locals "prev", "label", "note", "next" from rtx to
4062 rtx_insn *.
4063 (clear_priorities): Likewise for local "pro".
4064
4065 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4066
4067 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4068 rtx_insn *.
4069 (test_insn): Likewise for this global.
4070 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4071 const rtx_insn *.
4072 (oprs_anticipatable_p): Likewise.
4073 (oprs_available_p): Likewise.
4074 (insert_expr_in_table): Strengthen param "insn" from rtx to
4075 rtx_insn *.
4076 (hash_scan_set): Likewise.
4077 (hash_scan_clobber): Likewise.
4078 (hash_scan_call): Likewise.
4079 (hash_scan_insn): Likewise.
4080 (compute_hash_table_work): Likewise for local "insn".
4081 (process_insert_insn): Likewise for return type and local "pat".
4082 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4083 "pat", "pat_end", "maybe_cc0_setter".
4084 (pre_edge_insert): Likewise for local "insn".
4085 (pre_insert_copy_insn): Likewise for param "insn".
4086 (pre_insert_copies): Likewise for local "insn".
4087 (struct set_data): Likewise for field "insn".
4088 (single_set_gcse): Likewise for param "insn".
4089 (gcse_emit_move_after): Likewise.
4090 (pre_delete): Likewise for local "insn".
4091 (update_bb_reg_pressure): Likewise for param "from" and local
4092 "insn".
4093 (should_hoist_expr_to_dom): Likewise for param "from".
4094 (hoist_code): Likewise for local "insn".
4095 (get_pressure_class_and_nregs): Likewise for param "insn".
4096 (calculate_bb_reg_pressure): Likewise for local "insn".
4097 (compute_ld_motion_mems): Likewise.
4098
4099 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4100
4101 * genpeep.c (main): Rename param back from "uncast_ins1" to
4102 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4103 checked cast.
4104
4105 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4106
4107 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4108
4109 PR target/62195
4110 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4111 documentation to state it is only for VSX operations.
4112
4113 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4114 constraint only active if VSX.
4115
4116 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4117 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4118 (lfiwzx): Likewise.
4119
4120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4121
4122 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4123 Strengthen local "insn" from rtx to rtx_insn *.
4124 (use_killed_between): Likewise for param "target_insn".
4125 (all_uses_available_at): Likewise for param "target_insn" and
4126 local "next".
4127 (update_df_init): Likewise for params "def_insn", "insn".
4128 (update_df): Likewise for param "insn".
4129 (try_fwprop_subst): Likewise for param "def_insn" and local
4130 "insn".
4131 (free_load_extend): Likewise for param "insn".
4132 (forward_propagate_subreg): Likewise for param "def_insn" and
4133 local "use_insn".
4134 (forward_propagate_asm): Likewise for param "def_insn" and local
4135 "use_insn".
4136 (forward_propagate_and_simplify): Likewise for param "def_insn"
4137 and local "use_insn".
4138 (forward_propagate_into): Likewise for locals "def_insn" and
4139 "use_insn".
4140
4141 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4142
4143 * function.c (emit_initial_value_sets): Strengthen local "seq"
4144 from rtx to rtx_insn *.
4145 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4146 local "seq".
4147 (instantiate_virtual_regs): Likewise for local "insn".
4148 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4149 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4150 (expand_function_end): Likewise for locals "insn" and "seq".
4151 (epilogue_done): Likewise for local "insn".
4152 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4153 "last", "trial".
4154 (reposition_prologue_and_epilogue_notes): Likewise for locals
4155 "insn", "last", "note", "first".
4156 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4157 (pass_match_asm_constraints::execute): Likewise for local "insn".
4158
4159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4160
4161 * output.h (final_scan_insn): Strengthen return type from rtx to
4162 rtx_insn *.
4163 (final_forward_branch_p): Likewise for param.
4164 (current_output_insn): Likewise for this global.
4165
4166 * final.c (rtx debug_insn): Likewise for this variable.
4167 (current_output_insn): Likewise.
4168 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4169 adding "insn" back in as an rtx_insn * with a checked cast, so
4170 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4171 first param.
4172 (compute_alignments): Strengthen local "label" from rtx to
4173 rtx_insn *.
4174 (shorten_branches): Rename param from "first" to "uncast_first",
4175 introducing a new local rtx_insn * "first" using a checked cast to
4176 effectively strengthen "first" from rtx to rtx_insn * without
4177 affecting the type signature. Strengthen locals "insn", "seq",
4178 "next", "label" from rtx to rtx_insn *.
4179 (change_scope): Strengthen param "orig_insn" and local "insn" from
4180 rtx to rtx_insn *.
4181 (final_start_function): Rename param from "first" to "uncast_first",
4182 introducing a new local rtx_insn * "first" using a checked cast to
4183 effectively strengthen "first" from rtx to rtx_insn * without
4184 affecting the type signature. Strengthen local "insn" from rtx to
4185 rtx_insn *.
4186 (dump_basic_block_info): Strengthen param "insn" from rtx to
4187 rtx_insn *.
4188 (final): Rename param from "first" to "uncast_first",
4189 introducing a new local rtx_insn * "first" using a checked cast to
4190 effectively strengthen "first" from rtx to rtx_insn * without
4191 affecting the type signature. Strengthen locals "insn", "next"
4192 from rtx to rtx_insn *.
4193 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4194 rtx_insn *.
4195 (call_from_call_insn): Strengthen param "insn" from rtx to
4196 rtx_call_insn *.
4197 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4198 introducing a new local rtx_insn * "insn" using a checked cast to
4199 effectively strengthen "insn" from rtx to rtx_insn * without
4200 affecting the type signature. Strengthen return type and locals
4201 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4202 now-redundant checked cast to rtx_insn * from both invocations of
4203 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4204 introducing a local "call_insn" for use when invoking
4205 call_from_call_insn.
4206 (notice_source_line): Strengthen param "insn" from rtx to
4207 rtx_insn *.
4208 (leaf_function_p): Likewise for local "insn".
4209 (final_forward_branch_p): Likewise.
4210 (leaf_renumber_regs): Likewise for param "first".
4211 (rest_of_clean_state): Likewise for locals "insn" and "next".
4212 (self_recursive_call_p): Likewise for param "insn".
4213 (collect_fn_hard_reg_usage): Likewise for local "insn".
4214 (get_call_fndecl): Likewise for param "insn".
4215 (get_call_cgraph_rtl_info): Likewise.
4216 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4217 introducing a new local rtx_insn * "insn" using a checked cast to
4218 effectively strengthen "insn" from rtx to rtx_insn * without
4219 affecting the type signature.
4220
4221 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4222 cast when assigning from param "insn" to current_output_insn.
4223 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4224 so that we can assign it back to current_output_insn.
4225
4226 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4227
4228 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4229 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4230 atmxt540s and atmxt540sreva devices.
4231 * config/avr/avr-tables.opt: Regenerate.
4232 * config/avr/t-multilib: Regenerate.
4233 * doc/avr-mmcu.texi: Regenerate.
4234
4235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4236
4237 * expr.c (convert_move): Strengthen local "insns" from rtx to
4238 rtx_insn *.
4239 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4240 "top_label" from rtx to rtx_code_label *.
4241 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4242 rtx_insn *.
4243 (emit_single_push_insn): Likewise for locals "prev", "last".
4244 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4245 to rtx_code_label *.
4246 (store_constructor): Likewise for locals "loop_start", "loop_end".
4247 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4248 rtx_insn *.
4249 (expand_expr_real_2): Likewise.
4250 (expand_expr_real_1): Strengthen local "label" from rtx to
4251 rtx_code_label *.
4252
4253 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4254
4255 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4256 from rtx to rtx_insn *.
4257 (store_bit_field_1): Likewise.
4258 (extract_bit_field_1): Likewise.
4259 (expand_mult_const): Likewise for local "insns".
4260 (expmed_mult_highpart): Strengthen local "label" from rtx to
4261 rtx_code_label *.
4262 (expand_smod_pow2): Likewise.
4263 (expand_sdiv_pow2): Likewise.
4264 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4265 rtx_insn *. Strengthen locals "label", "label1", "label2",
4266 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4267 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4268 (emit_store_flag): Likewise.
4269 (emit_store_flag_force): Strengthen local "label" from rtx to
4270 rtx_code_label *.
4271 (do_cmp_and_jump): Likewise for param "label".
4272
4273 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4274
4275 * explow.c (force_reg): Strengthen local "insn" from rtx to
4276 rtx_insn *.
4277 (adjust_stack_1): Likewise.
4278 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4279 "final_label", "available_label", "space_available" from rtx to
4280 rtx_code_label *.
4281 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4282 (anti_adjust_stack_and_probe): Likewise.
4283
4284 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4285
4286 * except.h (sjlj_emit_function_exit_after): Strengthen param
4287 "after" from rtx to rtx_insn *. This is only called with
4288 result of get_last_insn (in function.c) so type-change should be
4289 self-contained.
4290
4291 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4292 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4293 to rtx_insn *. These fields are only used from except.c so this
4294 type-change should be self-contained to this patch.
4295
4296 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4297 local "last" from rtx to rtx_insn *.
4298 (dw2_build_landing_pads): Likewise for local "seq".
4299 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4300 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4301 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4302 rtx to rtx_insn *.
4303 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4304 to rtx_insn *.
4305 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4306 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4307 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4308 referring to an insn. Strengthen local "dispatch_label" from
4309 rtx to rtx_code_label *.
4310 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4311 rtx_insn *.
4312 (expand_eh_return): Strengthen local "around_label" from
4313 rtx to rtx_code_label *.
4314 (convert_to_eh_region_ranges): Strengthen locals "iter",
4315 "last_action_insn", "first_no_action_insn",
4316 "first_no_action_insn_before_switch",
4317 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4318
4319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4320
4321 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4322 from rtx to rtx_insn *.
4323 (cached_next_real_insn): Likewise.
4324 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4325 working with insns.
4326 (dwarf2out_var_location): Strengthen locals "next_real",
4327 "next_note", "expected_next_loc_note", "last_start", "insn" from
4328 rtx to rtx_insn *.
4329
4330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4331
4332 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4333 from rtx to rtx_insn *.
4334 (create_pseudo_cfg): Likewise for local "insn".
4335
4336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4337
4338 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4339 from rtx to rtx_insn *.
4340 (df_bb_regno_last_def_find): Likewise.
4341
4342 * df-problems.c (df_rd_bb_local_compute): Likewise.
4343 (df_lr_bb_local_compute): Likewise.
4344 (df_live_bb_local_compute): Likewise.
4345 (df_chain_remove_problem): Likewise.
4346 (df_chain_create_bb): Likewise.
4347 (df_word_lr_bb_local_compute): Likewise.
4348 (df_remove_dead_eq_notes): Likewise for param "insn".
4349 (df_note_bb_compute): Likewise for local "insn".
4350 (simulate_backwards_to_point): Likewise.
4351 (df_md_bb_local_compute): Likewise.
4352
4353 * df-scan.c (df_scan_free_bb_info): Likewise.
4354 (df_scan_start_dump): Likewise.
4355 (df_scan_start_block): Likewise.
4356 (df_install_ref_incremental): Likewise for local "insn".
4357 (df_insn_rescan_all): Likewise.
4358 (df_reorganize_refs_by_reg_by_insn): Likewise.
4359 (df_reorganize_refs_by_insn_bb): Likewise.
4360 (df_recompute_luids): Likewise.
4361 (df_bb_refs_record): Likewise.
4362 (df_update_entry_exit_and_calls): Likewise.
4363 (df_bb_verify): Likewise.
4364
4365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4366
4367 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4368 "first_note" from rtx to rtx_insn *.
4369 (get_node_of_insn): Likewise for param 2 "insn".
4370 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4371
4372 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4373 rtx_insn *.
4374 (mem_write_insn_p): Likewise.
4375 (mem_access_insn_p): Likewise.
4376 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4377 (def_has_ccmode_p): Likewise for param "insn".
4378 (add_cross_iteration_register_deps): Likewise for locals
4379 "def_insn" and "use_insn".
4380 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4381 (build_intra_loop_deps): Likewise for local "src_insn".
4382 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4383 to rtx_insn *.
4384 (get_node_of_insn): Likewise for param "insn".
4385
4386 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4387
4388 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4389 (deletable_insn_p): Strengthen param "insn" from rtx to
4390 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4391 find_call_stack_args, since this is guarded by CALL_P (insn).
4392 (marked_insn_p): Strengthen param "insn" from rtx to
4393 rtx_insn *.
4394 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4395 invoking find_call_stack_args, since this is guarded by
4396 CALL_P (insn).
4397 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4398 rtx_insn *; we know this is an insn since this was called by
4399 mark_nonreg_stores.
4400 (mark_nonreg_stores_2): Likewise.
4401 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4402 rtx_insn *.
4403 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4404 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4405 to rtx_insn *.
4406 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4407 from rtx to rtx_insn *.
4408 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4409 "next", "ref_insn".
4410 (delete_unmarked_insns): Likewise for locals "insn", "next".
4411 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4412 (mark_reg_dependencies): Likewise for param "insn".
4413 (rest_of_handle_ud_dce): Likewise for local "insn".
4414 (word_dce_process_block): Likewise.
4415 (dce_process_block): Likewise.
4416
4417 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4418
4419 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4420 from rtx to rtx_insn *.
4421 (struct change_cc_mode_args): Likewise for field "insn".
4422 (this_insn): Strengthen from rtx to rtx_insn *.
4423 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4424 with insn.
4425 (validate_canon_reg): Strengthen param "insn" from rtx to
4426 rtx_insn *.
4427 (canon_reg): Likewise.
4428 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4429 dealing with insn.
4430 (record_jump_equiv): Strengthen param "insn" from rtx to
4431 rtx_insn *.
4432 (try_back_substitute_reg): Likewise, also for locals "prev",
4433 "bb_head".
4434 (find_sets_in_insn): Likewise for param "insn".
4435 (canonicalize_insn): Likewise.
4436 (cse_insn): Likewise. Add a checked cast.
4437 (invalidate_from_clobbers): Likewise for param "insn".
4438 (invalidate_from_sets_and_clobbers): Likewise.
4439 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4440 dealing with insn.
4441 (cse_prescan_path): Strengthen local "insn" from rtx to
4442 rtx_insn *.
4443 (cse_extended_basic_block): Likewise for locals "insn" and
4444 "prev_insn".
4445 (cse_main): Likewise for param "f".
4446 (check_for_label_ref): Likewise for local "insn".
4447 (set_live_p): Likewise for second param ("insn").
4448 (insn_live_p): Likewise for first param ("insn") and for local
4449 "next".
4450 (cse_change_cc_mode_insn): Likewise for first param "insn".
4451 (cse_change_cc_mode_insns): Likewise for first and second params
4452 "start" and "end".
4453 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4454 and "end".
4455 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4456 "cc_src_insn".
4457
4458 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4460 Anna Tikhonova <anna.tikhonova@intel.com>
4461 Ilya Tocar <ilya.tocar@intel.com>
4462 Andrey Turetskiy <andrey.turetskiy@intel.com>
4463 Ilya Verbin <ilya.verbin@intel.com>
4464 Kirill Yukhin <kirill.yukhin@intel.com>
4465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4466
4467 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4468 New.
4469 * config/i386/sse.md
4470 (define_mode_iterator VI248_AVX2): Delete.
4471 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4472 (define_mode_iterator VI48_AVX2): Ditto.
4473 (define_insn <shift_insn><mode>3): Delete.
4474 (define_insn "<shift_insn><mode>3<mask_name>" with
4475 VI2_AVX2_AVX512BW): New.
4476 (define_insn "<shift_insn><mode>3<mask_name>" with
4477 VI48_AVX2): Ditto.
4478
4479 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4481 Anna Tikhonova <anna.tikhonova@intel.com>
4482 Ilya Tocar <ilya.tocar@intel.com>
4483 Andrey Turetskiy <andrey.turetskiy@intel.com>
4484 Ilya Verbin <ilya.verbin@intel.com>
4485 Kirill Yukhin <kirill.yukhin@intel.com>
4486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4487
4488 * config/i386/sse.md
4489 (define_mode_iterator VI4F_BRCST32x2): New.
4490 (define_mode_attr 64x2_mode): Ditto.
4491 (define_mode_attr 32x2mode): Ditto.
4492 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4493 with VI4F_BRCST32x2): Ditto.
4494 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4495 with V16FI mode iterator): Ditto.
4496 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4497 with V16FI): Ditto.
4498 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4499 with VI8F_BRCST64x2): Ditto.
4500
4501 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4502 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4503 Anna Tikhonova <anna.tikhonova@intel.com>
4504 Ilya Tocar <ilya.tocar@intel.com>
4505 Andrey Turetskiy <andrey.turetskiy@intel.com>
4506 Ilya Verbin <ilya.verbin@intel.com>
4507 Kirill Yukhin <kirill.yukhin@intel.com>
4508 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4509
4510 * config/i386/sse.md
4511 (define_mode_iterator VI8_AVX512VL): New.
4512 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4513
4514 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4515
4516 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4517 (define_mode_iterator V48_AVX512VL): New.
4518 (define_mode_iterator V12_AVX512VL): Ditto.
4519 (define_insn <avx512>_load<mode>_mask): Split into two similar
4520 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4521 Refactor output template.
4522 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4523
4524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4525
4526 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4527 rtx_insn *.
4528 (reg_available_p): Likewise for param "insn".
4529 (insert_set_in_table): Likewise.
4530 (hash_scan_set): Likewise.
4531 (hash_scan_insn): Likewise.
4532 (make_set_regs_unavailable): Likewise.
4533 (compute_hash_table_work): Likewise for local "insn".
4534 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4535 const rtx_insn *.
4536 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4537 (try_replace_reg): Likewise.
4538 (find_avail_set): Likewise.
4539 (cprop_jump): Likewise for params "setcc", "jump".
4540 (constprop_register): Likewise for param "insn".
4541 (cprop_insn): Likewise.
4542 (do_local_cprop): Likewise.
4543 (local_cprop_pass): Likewise for local "insn".
4544 (bypass_block): Likewise for params "setcc" and "jump".
4545 (bypass_conditional_jumps): Likewise for locals "setcc" and
4546 "insn".
4547 (one_cprop_pass): Likewise for local "insn".
4548
4549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4550
4551 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4552 from rtx to rtx_insn *.
4553 (struct comparison): Likewise, also for field "prev_clobber".
4554 (conforming_compare): Likewise for param "insn".
4555 (arithmetic_flags_clobber_p): Likewise.
4556 (find_flags_uses_in_insn): Likewise.
4557 (find_comparison_dom_walker::before_dom_children): Likewise for
4558 locals "insn", "next", "last_clobber".
4559 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4560
4561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4562
4563 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4564 "insn" from rtx to rtx_insn *.
4565 (single_set_for_csa): Likewise for param "insn".
4566 (record_one_stack_ref): Likewise.
4567 (try_apply_stack_adjustment): Likewise.
4568 (struct record_stack_refs_data): Likewise for field "insn".
4569 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4570 (prev_active_insn_bb): Likewise for return type and param "insn".
4571 (next_active_insn_bb): Likewise.
4572 (force_move_args_size_note): Likewise for params "prev" and "last"
4573 and locals "test", "next_candidate", "prev_candidate".
4574 (combine_stack_adjustments_for_block): Strengthen locals
4575 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4576 rtx_insn *.
4577
4578 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4579
4580 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4581 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4582 (subst_insn): Likewise for this variable.
4583 (added_links_insn): Likewise.
4584 (struct insn_link): Likewise for field "insn".
4585 (alloc_insn_link): Likewise for param "insn".
4586 (struct undobuf): Likewise for field "other_insn".
4587 (find_single_use): Likewise for param "insn" and local "next".
4588 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4589 (delete_noop_moves): Likewise for locals "insn", "next".
4590 (create_log_links): Likewise for locals "insn", "use_insn".
4591 Strengthen local "next_use" from rtx * to rtx_insn **.
4592 (insn_a_feeds_b): Likewise for params "a", "b".
4593 (combine_instructions): Likewise for param "f" and locals "insn",
4594 "next", "prev", "first", "last_combined_insn", "link", "link1",
4595 "temp". Replace use of NULL_RTX with NULL when referring to
4596 insns.
4597 (setup_incoming_promotions): Likewise for param "first"
4598 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4599 (can_combine_p): Likewise for params "insn", "i3", "pred",
4600 "pred2", "succ", "succ2" and for local "p".
4601 (combinable_i3pat): Likewise for param "i3".
4602 (cant_combine_insn_p): Likewise for param "insn".
4603 (likely_spilled_retval_p): Likewise.
4604 (adjust_for_new_dest): Likewise.
4605 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4606 (try_combine): Likewise for return type and for params "i3", "i2",
4607 "i1", "i0", "last_combined_insn", and for locals "insn",
4608 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4609 "i0_insn". Eliminate local "tem" in favor of new locals
4610 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4611 checked cast for now to rtx_insn * on the return type of
4612 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4613 insns.
4614 (find_split_point): Strengthen param "insn" from rtx to
4615 rtx_insn *.
4616 (simplify_set): Likewise for local "other_insn".
4617 (recog_for_combine): Likewise for param "insn".
4618 (record_value_for_reg): Likewise.
4619 (record_dead_and_set_regs_1): Likewise for local
4620 "record_dead_insn".
4621 (record_dead_and_set_regs): Likewise for param "insn".
4622 (record_promoted_value): Likewise.
4623 (check_promoted_subreg): Likewise.
4624 (get_last_value_validate): Likewise.
4625 (reg_dead_at_p): Likewise.
4626 (move_deaths): Likewise for param "to_insn".
4627 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4628 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4629 in favor of new locals "tem_note" and "tem_insn", the latter being
4630 an rtx_insn *.
4631 (distribute_links): Strengthen locals "place", "insn" from rtx to
4632 rtx_insn *.
4633
4634 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4635
4636 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4637 than a const_rtx.
4638 (can_delete_label_p): Require a const rtx_code_label * rather than
4639 a const_rtx.
4640 (delete_insn): Add checked cast to rtx_code_label * when we know
4641 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4642 rtx to rtx_insn *.
4643 (delete_insn_chain): Strengthen locals "prev" and "current" from
4644 rtx to rtx_insn *. Add a checked cast when assigning from
4645 "finish" (strengthening the params will come later). Add a
4646 checked cast to rtx_note * in region where we know
4647 NOTE_P (current).
4648 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4649 rtx_insn *.
4650 (compute_bb_for_insn): Likewise.
4651 (free_bb_for_insn): Likewise for local "insn".
4652 (compute_bb_for_insn): Likewise.
4653 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4654 local "insn" from rtx to rtx_insn *
4655 (flow_active_insn_p): Require a const rtx_insn * rather than a
4656 const_rtx.
4657 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4658 rtx_insn *.
4659 (can_fallthru): Likewise for locals "insn" and "insn2".
4660 (bb_note): Likewise for local "note".
4661 (first_insn_after_basic_block_note): Likewise for local "note" and
4662 for return type.
4663 (rtl_split_block): Likewise for locals "insn" and "next".
4664 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4665 "end".
4666 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4667 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4668 "prev", "tmp".
4669 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4670 them), "kill_from", "barrier", "new_insn".
4671 (patch_jump_insn): Likewise for params "insn", "old_label".
4672 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4673 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4674 "old_label", "new_label".
4675 (rtl_tidy_fallthru_edge): Likewise for local "q".
4676 (rtl_split_edge): Likewise for locals "before", "last".
4677 (commit_one_edge_insertion): Likewise for locals "before",
4678 "after", "insns", "tmp", "last", adding a checked cast where
4679 currently necessary.
4680 (commit_edge_insertions): Likewise.
4681 (rtl_dump_bb): Likewise for locals "insn", "last".
4682 (print_rtl_with_bb): Likewise for local "x".
4683 (rtl_verify_bb_insns): Likewise for local "x".
4684 (rtl_verify_bb_pointers): Likewise for local "insn".
4685 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4686 "head", "end".
4687 (rtl_verify_fallthru): Likewise for local "insn".
4688 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4689 (purge_dead_edges): Likewise for local "insn".
4690 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4691 (skip_insns_after_block): Likewise for return type and for locals
4692 "insn", "last_insn", "next_head", "prev".
4693 (record_effective_endpoints): Likewise for locals "next_insn",
4694 "insn", "end".
4695 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4696 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4697 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4698 (duplicate_insn_chain): For now, add checked cast from rtx to
4699 rtx_insn * when returning insn.
4700 (cfg_layout_duplicate_bb): Likewise for local "insn".
4701 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4702 "prev", "remaints".
4703 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4704 (rtl_block_empty_p): Likewise.
4705 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4706 "split_point", "last".
4707 (rtl_block_ends_with_call_p): Likewise for local "insn".
4708 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4709 const rtx_insn *.
4710 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4711 "split_at_insn" from rtx to rtx_insn *.
4712 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4713 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4714 to const rtx_insn *.
4715 (rtl_account_profile_record): Likewise.
4716
4717 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4718
4719 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4720 rtx to rtx_insn *.
4721 (average_num_loop_insns): Likewise.
4722 (init_set_costs): Likewise for local "seq".
4723 (seq_cost): Likewise for param "seq", from const_rtx to const
4724 rtx_insn *.
4725
4726 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4727
4728 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4729 rtx to rtx_insn *.
4730
4731 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4732
4733 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4734 "f1" and "f2" from rtx * to rtx_insn **.
4735 (flow_find_head_matching_sequence): Likewise.
4736
4737 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4738 "cbranch_insn" from rtx to rtx_insn *.
4739 (thread_jump): Likewise for local "insn".
4740 (try_forward_edges): Likewise for local "last".
4741 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4742 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4743 "real_b_end".
4744 (can_replace_by): Likewise for params "i1", "i2".
4745 (old_insns_match_p): Likewise.
4746 (merge_notes): Likewise.
4747 (walk_to_nondebug_insn): Likewise for param "i1".
4748 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4749 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4750 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4751 (flow_find_head_matching_sequence): Strengthen params "f1" and
4752 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4753 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4754 rtx_insn *.
4755 (outgoing_edges_match): Likewise for locals "last1", "last2".
4756 (try_crossjump_to_edge): Likewise for local "insn".
4757 Replace call to for_each_rtx with for_each_rtx_in_insn.
4758
4759 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4760 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4761 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4762 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4763 (try_optimize_cfg): Strengthen local "last" from rtx to
4764 rtx_insn *.
4765 (delete_dead_jumptables): Likewise for locals "insn", "next",
4766 "label".
4767
4768 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4769 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4770 "rtx else_first_tail", to reflect the basic-block.h changes above.
4771
4772 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4773
4774 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4775 rtx_insn *.
4776 (purge_dead_tablejump_edges): Likewise.
4777 (find_bb_boundaries): Likewise for locals "insn", "end",
4778 "flow_transfer_insn".
4779
4780 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4781
4782 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4783 "ins" and "prev" from rtx to rtx_insn *.
4784
4785 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4786
4787 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4788 rtx_insn *.
4789 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4790 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4791 "scan_start".
4792 (load_register_parameters): Likewise for local "before_arg".
4793 (check_sibcall_argument_overlap): Likewise for param "insn".
4794 (expand_call): Likewise for locals "normal_call_insns",
4795 "tail_call_insns", "insns", "before_call", "after_args",
4796 "before_arg", "last", "prev". Strengthen one of the "last" from
4797 rtx to rtx_call_insn *.
4798 (fixup_tail_calls): Strengthen local "insn" from rtx to
4799 rtx_insn *.
4800 (emit_library_call_value_1): Likewise for locals "before_call" and
4801 "last".
4802
4803 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4804
4805 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4806 and "last" from rtx to rtx_insn *.
4807 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4808 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4809 rtx_call_insn *.
4810 (expand_errno_check): Strengthen local "lab" from rtx to
4811 rtx_code_label *.
4812 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4813 rtx_insn *.
4814 (expand_builtin_mathfn_2): Likewise.
4815 (expand_builtin_mathfn_ternary): Likewise.
4816 (expand_builtin_mathfn_3): Likewise.
4817 (expand_builtin_interclass_mathfn): Likewise for local "last".
4818 (expand_builtin_int_roundingfn): Likewise for local "insns".
4819 (expand_builtin_int_roundingfn_2): Likewise.
4820 (expand_builtin_strlen): Likewise for local "before_strlen".
4821 (expand_builtin_strncmp): Likewise for local "seq".
4822 (expand_builtin_signbit): Likewise for local "last".
4823 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4824 from rtx to rtx_code_label *.
4825 (expand_stack_restore): Strengthen local "prev" from rtx to
4826 rtx_insn *.
4827
4828 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4829
4830 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4831 to rtx_insn *.
4832 (struct btr_def_s): Likewise.
4833 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4834 const rtx_insn *.
4835 (add_btr_def): Likewise.
4836 (new_btr_user): Likewise.
4837 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4838 rtx to rtx_insn *.
4839 (link_btr_uses): Likewise.
4840 (move_btr_def): Likewise for locals "insp", "old_insn",
4841 "new_insn". Add checked cast to rtx_insn * for now on result of
4842 gen_move_insn.
4843 (can_move_up): Strengthen param "insn" from const_rtx to
4844 const rtx_insn *.
4845
4846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4847
4848 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4849 rtx_insn *.
4850 (get_uncond_jump_length): Likewise for locals "label", "jump".
4851 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4852 "jump", "insn".
4853 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4854 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4855 (find_jump_block): Likewise for local "insn".
4856 (fix_crossing_conditional_branches): Likewise for locals
4857 "old_jump", "new_jump".
4858 (fix_crossing_unconditional_branches): Likewise for locals
4859 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4860 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4861
4862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4863
4864 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4865 rtx to rtx_insn *.
4866 (struct mem_insn): Likewise for field "insn".
4867 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4868 (reg_next_inc_use): Likewise.
4869 (reg_next_def): Likewise.
4870 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4871 from rtx to rtx_insn *.
4872 (move_insn_before): Likewise for param "next_insn" and local "insns".
4873 (attempt_change): Likewise for local "mov_insn".
4874 (try_merge): Likewise for param "last_insn".
4875 (get_next_ref): Likewise for return type and local "insn".
4876 Strengthen param "next_array" from rtx * to rtx_insn **.
4877 (parse_add_or_inc): Strengthen param "insn" from rtx to
4878 rtx_insn *.
4879 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4880 the latter).
4881 (merge_in_block): Likewise for locals "insn", "curr",
4882 "other_insn".
4883 (pass_inc_dec::execute): Update allocations of the arrays to
4884 reflect the stronger types.
4885
4886 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4887
4888 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4889 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4890 from rtx to rtx_code_label *.
4891
4892 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4893
4894 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4895 to rtx_insn *.
4896
4897 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4898
4899 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4900 generated a warning and prevented bootstrapping the compiler.
4901
4902 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4903
4904 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4905 rtx_insn *.
4906
4907 * jump.c (delete_related_insns): Likewise, also for locals "next"
4908 and "prev".
4909
4910 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4911
4912 * genautomata.c (output_internal_insn_latency_func): When writing
4913 the function "internal_insn_latency" to insn-automata.c,
4914 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4915 allowing the optional guard function of (define_bypass) clauses to
4916 expect a pair of rtx_insn *, rather than a pair of rtx.
4917 (output_insn_latency_func): When writing the function
4918 "insn_latency", add an "uncast_" prefix to params "insn" and
4919 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4920 using checked casts from the params, thus enabling the above
4921 change to the generated "internal_insn_latency" function.
4922
4923 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4924
4925 PR tree-optimization/62091
4926 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4927 handle correctly arrays.
4928 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4929 inheritance binfos.
4930 (record_known_type): Walk into inner type.
4931 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4932 condition on no type changes.
4933
4934 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4935
4936 * genattrtab.c (write_attr_get): Within the generated get_attr_
4937 functions, rename param "insn" to "uncast_insn" and reintroduce
4938 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4939 is an rtx_insn * within insn-attrtab.c
4940
4941 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4942
4943 * output.h (peephole): Strengthen return type from rtx to
4944 rtx_insn *.
4945 * rtl.h (delete_for_peephole): Likewise for both params.
4946 * genpeep.c (main): In generated "peephole" function, strengthen
4947 return type and local "insn" from rtx to rtx_insn *. For now,
4948 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4949 rtx_insn *, with a checked cast.
4950 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4951 locals "insn", "next", "prev" from rtx to rtx_insn *.
4952
4953 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4954
4955 PR tree-optimization/62112
4956 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4957 * gimple-iterator.h (gsi_replace): Return bool.
4958 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4959 moved from ref_may_alias_global_p.
4960 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4961 New overloads.
4962 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4963 (stmt_kills_ref_p_1): Rename...
4964 (stmt_kills_ref_p): ... to this.
4965 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4966 stmt_kills_ref_p): Declare.
4967 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4968 Move the self-assignment case...
4969 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4970
4971 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4972
4973 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4974
4975 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4976 "after". For now, don't strengthen param "trial", which requires
4977 adding checked casts when returning it.
4978
4979 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4980
4981 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4982 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4983 "var_location" hook from rtx to rtx_insn *.
4984 (debug_nothing_rtx): Delete in favor of...
4985 (debug_nothing_rtx_code_label): New prototype.
4986 (debug_nothing_rtx_rtx): Delete unused prototype.
4987 (debug_nothing_rtx_insn): New prototype.
4988
4989 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4990 invoking debug_hooks->var_location (in two places, one in a NOTE
4991 case of a switch statement, the other guarded by a CALL_P
4992 conditional. Add checked cast to rtx_code_label * when invoking
4993 debug_hooks->label (within CODE_LABEL case of switch statement).
4994
4995 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4996 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4997 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4998 (xcoff_debug_hooks): Likewise.
4999 * debug.c (do_nothing_debug_hooks): Likewise.
5000 (debug_nothing_rtx): Delete in favor of...
5001 (debug_nothing_rtx_insn): New function.
5002 (debug_nothing_rtx_rtx): Delete unused function.
5003 (debug_nothing_rtx_code_label): New function.
5004 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5005 debug_nothing_rtx to debug_nothing_rtx_code_label.
5006 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5007 to rtx_insn *.
5008 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5009 debug_nothing_rtx to debug_nothing_rtx_insn.
5010 (sdbout_label): Strengthen param "insn" from rtx to
5011 rtx_code_label *.
5012 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5013 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5014 "var_location" hook from debug_nothing_rtx to
5015 debug_nothing_rtx_insn.
5016
5017 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5018
5019 * recog.h (insn_output_fn): Update this function typedef to match
5020 the changes below to the generated output functions, strengthening
5021 the 2nd param from rtx to rtx_insn *.
5022
5023 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5024 insn when invoking an output function, to match the new signature
5025 of insn_output_fn with a stronger second param.
5026
5027 * genconditions.c (write_header): In the generated code for
5028 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5029 to match the other changes in this patch.
5030
5031 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5032 the generated "gen_" functions from rtx to rtx_insn * within their
5033 implementations.
5034
5035 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5036 the subfunctions within the generated "recog_", "split", "peephole2"
5037 function trees from rtx to rtx_insn *. For now, the top-level
5038 generated functions ("recog", "split", "peephole2") continue to
5039 take a plain rtx for "insn", to avoid introducing dependencies on
5040 other patches. Rename this 2nd param from "insn" to
5041 "uncast_insn", and reintroduce "insn" as a local variable of type
5042 rtx_insn *, initialized at the top of the generated function with
5043 a checked cast on "uncast_insn".
5044 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5045 the generated "gen_" functions from rtx to rtx_insn * within their
5046 prototypes.
5047
5048 * genoutput.c (process_template): Strengthen the 2nd param within
5049 the generated "output_" functions "insn" from rtx to rtx_insn *.
5050
5051 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5052
5053 * tree-profile.c (tree_profiling): Skip external functions
5054 when doing coverage instrumentation.
5055 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5056
5057 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5058
5059 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5060 (vec_mergee): Likewise.
5061 (vec_mergeo): Likewise.
5062 (vec_cntlz): Likewise.
5063 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5064 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5065 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5066 VMRGEW, and VMRGOW.
5067 * doc/extend.texi: Document various forms of vec_cpsgn,
5068 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5069 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5070 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5071 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5072 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5073
5074 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5075
5076 * config/rs6000/rs6000.c (context.h): New include.
5077 (tree-pass.h): Likewise.
5078 (make_pass_analyze_swaps): New decl.
5079 (rs6000_option_override): Register pass_analyze_swaps.
5080 (swap_web_entry): New subsclass of web_entry_base (df.h).
5081 (special_handling_values): New enum.
5082 (union_defs): New function.
5083 (union_uses): Likewise.
5084 (insn_is_load_p): Likewise.
5085 (insn_is_store_p): Likewise.
5086 (insn_is_swap_p): Likewise.
5087 (rtx_is_swappable_p): Likewise.
5088 (insn_is_swappable_p): Likewise.
5089 (chain_purpose): New enum.
5090 (chain_contains_only_swaps): New function.
5091 (mark_swaps_for_removal): Likewise.
5092 (swap_const_vector_halves): Likewise.
5093 (adjust_subreg_index): Likewise.
5094 (permute_load): Likewise.
5095 (permute_store): Likewise.
5096 (handle_special_swappables): Likewise.
5097 (replace_swap_with_copy): Likewise.
5098 (dump_swap_insn_table): Likewise.
5099 (rs6000_analyze_swaps): Likewise.
5100 (pass_data_analyze_swaps): New pass_data.
5101 (pass_analyze_swaps): New rtl_opt_pass.
5102 (make_pass_analyze_swaps): New function.
5103 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5104
5105 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5106
5107 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5108 type from rtx to rtx_insn *.
5109 (create_copy_of_insn_rtx): Likewise.
5110 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5111 (create_copy_of_insn_rtx): Likewise, also for local "res".
5112
5113 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5114
5115 * rtl.h (find_first_parameter_load): Strengthen return type from
5116 rtx to rtx_insn *.
5117 * rtlanal.c (find_first_parameter_load): Strengthen return type
5118 from rtx to rtx_insn *. Add checked cast for now, to postpone
5119 strengthening the params.
5120
5121 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5122
5123 PR fortran/44054
5124 * diagnostic.c: Set default caret.
5125 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5126 line is needed.
5127 * diagnostic.h (struct diagnostic_context):
5128
5129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5130
5131 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5132 (sel_bb_head): Strengthen return type insn_t (currently just an
5133 rtx) to rtx_insn *.
5134 (sel_bb_end): Likewise.
5135
5136 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5137 (sel_bb_head): Strengthen return type and local "head" from
5138 insn_t (currently just an rtx) to rtx_insn *.
5139 (sel_bb_end): Likewise for return type.
5140 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5141 working with insn.
5142
5143 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5144
5145 * basic-block.h (get_last_bb_insn): Strengthen return type from
5146 rtx to rtx_insn *.
5147 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5148 end".
5149
5150 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5151
5152 PR fortran/44054
5153 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5154 to here ...
5155 (diagnostic_report_diagnostic): ... from here.
5156 * toplev.c (general_init): Move code to c-family.
5157
5158 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5159
5160 * df.h (web_entry_base): Replace existing struct web_entry with a
5161 new class web_entry_base with only the predecessor member.
5162 (unionfind_root): Remove declaration and move to class member.
5163 (unionfind_union): Remove declaration and move to friend
5164 function.
5165 (union_defs): Remove declaration.
5166 * web.c (web_entry_base::unionfind_root): Modify to be member
5167 function and adjust accessors.
5168 (unionfind_union): Modify to be friend function and adjust
5169 accessors.
5170 (web_entry): New subclass of web_entry_base containing the reg
5171 member.
5172 (union_match_dups): Modify for struct -> class changes.
5173 (union_defs): Likewise.
5174 (entry_register): Likewise.
5175 (pass_web::execute): Likewise.
5176
5177 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5178
5179 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5180 builtin define __VEC_ELEMENT_REG_ORDER__.
5181
5182 2014-08-20 Martin Jambor <mjambor@suse.cz>
5183 Wei Mi <wmi@google.com>
5184
5185 PR ipa/60449
5186 PR middle-end/61776
5187 * tree-ssa-operands.c (update_stmt_operands): Remove
5188 MODIFIED_NORETURN_CALLS.
5189 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5190 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5191 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5192 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5193 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5194 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5195 (gimple_call_set_ctrl_altering): New func.
5196 (gimple_call_ctrl_altering_p): Ditto.
5197 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5198 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5199 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5200 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5201 remove MODIFIED_NORETURN_CALLS.
5202
5203 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5204
5205 * coverage.c (coverage_compute_profile_id): Return non-0;
5206 also handle symbols with unique name.
5207 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5208
5209 2014-08-20 Steve Ellcey <sellcey@mips.com>
5210
5211 PR middle-end/49191
5212 * doc/sourcebuild.texi (non_strict_align): New.
5213
5214 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5215
5216 * cgraphunit.c (ipa_passes, compile): Reshedule
5217 symtab_remove_unreachable_nodes passes; update comments.
5218 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5219 TODO_remove_functions before the pass; the functions ought to be
5220 already removed.
5221 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5222 TODO_remove_functions.
5223 * passes.c (pass_data_early_local_passes): Do not schedule function
5224 removal.
5225 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5226
5227 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5228
5229 PR c/59304
5230 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5231 before setting the option.
5232 * diagnostic.c (diagnostic_classify_diagnostic): Record
5233 command-line status.
5234
5235 2014-08-20 Richard Biener <rguenther@suse.de>
5236
5237 PR lto/62190
5238 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5239 to build uint{16,32,64}_type_node.
5240
5241 2014-08-20 Terry Guo <terry.guo@arm.com>
5242
5243 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5244 with immediate_operand.
5245
5246 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5247
5248 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5249 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5250 NULL.
5251
5252 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5253
5254 PR preprocessor/51303
5255 * incpath.c (remove_duplicates): Use cpp_warning.
5256
5257 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5258
5259 PR c/60975
5260 PR c/53063
5261 * doc/options.texi (CPP): Document it.
5262 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5263 * optc-gen.awk: Handle CPP.
5264 * opth-gen.awk: Likewise.
5265
5266 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5267
5268 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5269 rtx_insn *.
5270 (duplicate_insn_chain): Likewise.
5271 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5272 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5273 checked cast for now (until we can strengthen the params in the
5274 same way).
5275 (duplicate_insn_chain): Likewise.
5276
5277 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5278
5279 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5280 rtx_insn *.
5281 (prev_cc0_setter): Likewise.
5282
5283 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5284 rtx_insn *, adding checked casts for now as necessary.
5285 (prev_cc0_setter): Likewise.
5286
5287 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5288
5289 * expr.h (emit_move_insn): Strengthen return type from rtx to
5290 rtx_insn *.
5291 (emit_move_insn_1): Likewise.
5292 (emit_move_complex_push): Likewise.
5293 (emit_move_complex_parts): Likewise.
5294
5295 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5296 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5297 with insns.
5298 (emit_move_complex_push): Strengthen return type from rtx to
5299 rtx_insn *.
5300 (emit_move_complex): Likewise, also for local "ret".
5301 (emit_move_ccmode): Likewise.
5302 (emit_move_multi_word): Likewise for return type and locals
5303 "last_insn", "seq".
5304 (emit_move_insn_1): Likewise for return type and locals "result",
5305 "ret".
5306 (emit_move_insn): Likewise for return type and local "last_insn".
5307 (compress_float_constant): Likewise.
5308
5309 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5310
5311 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5312 from rtx to rtx_insn *.
5313
5314 * rtl.h (emit_insn_before): Likewise.
5315 (emit_insn_before_noloc): Likewise.
5316 (emit_insn_before_setloc): Likewise.
5317 (emit_jump_insn_before): Likewise.
5318 (emit_jump_insn_before_noloc): Likewise.
5319 (emit_jump_insn_before_setloc): Likewise.
5320 (emit_call_insn_before): Likewise.
5321 (emit_call_insn_before_noloc): Likewise.
5322 (emit_call_insn_before_setloc): Likewise.
5323 (emit_debug_insn_before): Likewise.
5324 (emit_debug_insn_before_noloc): Likewise.
5325 (emit_debug_insn_before_setloc): Likewise.
5326 (emit_label_before): Likewise.
5327 (emit_insn_after): Likewise.
5328 (emit_insn_after_noloc): Likewise.
5329 (emit_insn_after_setloc): Likewise.
5330 (emit_jump_insn_after): Likewise.
5331 (emit_jump_insn_after_noloc): Likewise.
5332 (emit_jump_insn_after_setloc): Likewise.
5333 (emit_call_insn_after): Likewise.
5334 (emit_call_insn_after_noloc): Likewise.
5335 (emit_call_insn_after_setloc): Likewise.
5336 (emit_debug_insn_after): Likewise.
5337 (emit_debug_insn_after_noloc): Likewise.
5338 (emit_debug_insn_after_setloc): Likewise.
5339 (emit_label_after): Likewise.
5340 (emit_insn): Likewise.
5341 (emit_debug_insn): Likewise.
5342 (emit_jump_insn): Likewise.
5343 (emit_call_insn): Likewise.
5344 (emit_label): Likewise.
5345 (gen_clobber): Likewise.
5346 (emit_clobber): Likewise.
5347 (gen_use): Likewise.
5348 (emit_use): Likewise.
5349 (emit): Likewise.
5350
5351 (emit_barrier_before): Strengthen return type from rtx to
5352 rtx_barrier *.
5353 (emit_barrier_after): Likewise.
5354 (emit_barrier): Likewise.
5355
5356 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5357 from rtx to rtx_insn *. Add checked casts for now when converting
5358 "last" from rtx to rtx_insn *.
5359 (emit_insn_before_noloc): Likewise for return type.
5360 (emit_jump_insn_before_noloc): Likewise.
5361 (emit_call_insn_before_noloc): Likewise.
5362 (emit_debug_insn_before_noloc): Likewise.
5363 (emit_barrier_before): Strengthen return type and local "insn"
5364 from rtx to rtx_barrier *.
5365 (emit_label_before): Strengthen return type from rtx to
5366 rtx_insn *. Add checked cast for now when returning param
5367 (emit_pattern_after_noloc): Strengthen return type from rtx to
5368 rtx_insn *. Add checked casts for now when converting "last" from
5369 rtx to rtx_insn *.
5370 (emit_insn_after_noloc): Strengthen return type from rtx to
5371 rtx_insn *.
5372 (emit_jump_insn_after_noloc): Likewise.
5373 (emit_call_insn_after_noloc): Likewise.
5374 (emit_debug_insn_after_noloc): Likewise.
5375 (emit_barrier_after): Strengthen return type from rtx to
5376 rtx_barrier *.
5377 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5378 Add checked cast for now when converting "label" from rtx to
5379 rtx_insn *.
5380 (emit_pattern_after_setloc): Strengthen return type from rtx to
5381 rtx_insn *. Add checked casts for now when converting "last" from
5382 rtx to rtx_insn *.
5383 (emit_pattern_after): Strengthen return type from rtx to
5384 rtx_insn *.
5385 (emit_insn_after_setloc): Likewise.
5386 (emit_insn_after): Likewise.
5387 (emit_jump_insn_after_setloc): Likewise.
5388 (emit_jump_insn_after): Likewise.
5389 (emit_call_insn_after_setloc): Likewise.
5390 (emit_call_insn_after): Likewise.
5391 (emit_debug_insn_after_setloc): Likewise.
5392 (emit_debug_insn_after): Likewise.
5393 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5394 when converting "last" from rtx to rtx_insn *.
5395 (emit_pattern_before): Strengthen return type from rtx to
5396 rtx_insn *.
5397 (emit_insn_before_setloc): Likewise.
5398 (emit_insn_before): Likewise.
5399 (emit_jump_insn_before_setloc): Likewise.
5400 (emit_jump_insn_before): Likewise.
5401 (emit_call_insn_before_setloc): Likewise.
5402 (emit_call_insn_before): Likewise.
5403 (emit_debug_insn_before_setloc): Likewise.
5404 (emit_debug_insn_before): Likewise.
5405 (emit_insn): Strengthen return type and locals "last", "insn",
5406 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5407 within cases where we know we have an insn.
5408 (emit_debug_insn): Likewise.
5409 (emit_jump_insn): Likewise.
5410 (emit_call_insn): Strengthen return type and local "insn" from rtx
5411 to rtx_insn *.
5412 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5413 a checked cast to rtx_insn * for now on "label".
5414 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5415 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5416 (emit_use): Likewise.
5417 (gen_use): Likewise, also for local "seq".
5418 (emit): Likewise for return type and local "insn".
5419 (rtx_insn): Likewise for return type and local "new_rtx".
5420
5421 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5422 from rtx to rtx_barrier *.
5423
5424 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5425 changed return type from rtx to rtx_insn *, we must update
5426 "emit_fn" type, and this in turn means updating...
5427 (frame_insn): ...this. Strengthen return type from rtx to
5428 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5429
5430 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5431
5432 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5433 rtx to rtx_jump_table_data *. Also for local.
5434 * rtl.h (emit_jump_table_data): Likewise.
5435
5436 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5437
5438 * basic-block.h (create_basic_block_structure): Strengthen third
5439 param "bb_note" from rtx to rtx_note *.
5440 * rtl.h (emit_note_before): Strengthen return type from rtx to
5441 rtx_note *.
5442 (emit_note_after): Likewise.
5443 (emit_note): Likewise.
5444 (emit_note_copy): Likewise. Also, strengthen param similarly.
5445 * function.h (struct rtl_data): Strengthen field
5446 "x_stack_check_probe_note" from rtx to rtx_note *.
5447
5448 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5449 from rtx to rtx_note *.
5450 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5451 "bb_note" from rtx to rtx_note *.
5452 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5453 when calling emit_note_copy.
5454 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5455 rtx_note *.
5456 (emit_note_after): Likewise.
5457 (emit_note_before): Likewise.
5458 (emit_note_copy): Likewise. Also, strengthen param similarly.
5459 (emit_note): Likewise.
5460 * except.c (emit_note_eh_region_end): Likewise for return type.
5461 Strengthen local "next" from rtx to rtx_insn *.
5462 (convert_to_eh_region_ranges): Strengthen local "note"
5463 from rtx to rtx_note *.
5464 * final.c (change_scope): Likewise.
5465 (reemit_insn_block_notes): Likewise, for both locals named "note".
5466 Also, strengthen local "insn" from rtx to rtx_insn *.
5467 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5468 rtx to rtx_note *.
5469 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5470 strengthen local "seq" from rtx to rtx_insn *.
5471 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5472 to rtx_note *.
5473 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5474 vec<rtx_note *>.
5475 (get_bb_note_from_pool): Strengthen return type from rtx to
5476 rtx_note *.
5477 (sel_create_basic_block): Strengthen local "new_bb_note" from
5478 insn_t to rtx_note *.
5479 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5480 "note" from rtx to rtx_note *.
5481 (emit_notes_in_bb): Likewise.
5482
5483 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5484
5485 * function.h (struct rtl_data): Strengthen field
5486 "x_parm_birth_insn" from rtx to rtx_insn *.
5487 * function.c (struct assign_parm_data_all): Strengthen fields
5488 "first_conversion_insn" and "last_conversion_insn" from rtx to
5489 rtx_insn *.
5490
5491 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5492
5493 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5494 to rtx_insn *; also for local "var_end_seq".
5495 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5496 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5497 "insn".
5498 (expand_gimple_cond): Likewise for locals "last2" and "last".
5499 (mark_transaction_restart_calls): Likewise for local "insn".
5500 (expand_gimple_stmt): Likewise for return type and locals "last"
5501 and "insn".
5502 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5503 (avoid_complex_debug_insns): Likewise for param "insn".
5504 (expand_debug_locations): Likewise for locals "insn", "last",
5505 "prev_insn" and "insn2".
5506 (expand_gimple_basic_block): Likewise for local "last".
5507 (construct_exit_block): Likewise for locals "head", "end",
5508 "orig_end".
5509 (pass_expand::execute): Likewise for locals "var_seq",
5510 "var_ret_seq", "next".
5511
5512 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5513
5514 * asan.h (asan_emit_stack_protection): Strengthen return type from
5515 rtx to rtx_insn *.
5516 * asan.c (asan_emit_stack_protection): Likewise. Add local
5517 "insns" to hold the return value.
5518
5519 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5520
5521 * basic-block.h (bb_note): Strengthen return type from rtx to
5522 rtx_note *.
5523 * sched-int.h (bb_note): Likewise.
5524 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5525
5526 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5527
5528 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5529 rtx_insn *.
5530
5531 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5532 "insn" from rtx to rtx_insn *.
5533 (make_debug_insn_raw): Strengthen return type from rtx to
5534 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5535 (make_jump_insn_raw): Strengthen return type from rtx to
5536 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5537 (make_call_insn_raw): Strengthen return type from rtx to
5538 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5539 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5540 callback from rtx to rtx_insn *; likewise for local "insn" and
5541 "next", adding a checked cast to rtx_insn in the relevant cases of
5542 the switch statement.
5543 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5544 callback from rtx to rtx_insn *.
5545 (emit_pattern_after_setloc): Likewise.
5546 (emit_pattern_after): Likewise.
5547 (emit_pattern_before_setloc): Likewise.
5548 (emit_pattern_before): Likewise.
5549
5550 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5551
5552 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5553 rtx_call_insn *.
5554 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5555 accepting an rtx_insn *.
5556 (last_call_insn): Strengthen return type from rtx to
5557 rtx_call_insn *.
5558
5559 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5560
5561 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5562 "insns" from rtx to rtx_insn *.
5563 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5564 locals "insn" and "prev".
5565
5566 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5567
5568 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5569 rtx_jump_table_data **.
5570
5571 * cfgbuild.c (make_edges): Introduce local "table", using it in
5572 place of "tmp" for jump table data.
5573 (find_bb_boundaries): Strengthen local "table" from rtx to
5574 rtx_jump_table_data *.
5575 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5576 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5577 (try_crossjump_to_edge): Likewise.
5578 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5579 "table".
5580 (patch_jump_insn): Introduce local "table", using it in place of
5581 "tmp" for jump table data.
5582 (force_nonfallthru_and_redirect): Introduce local "table", so that
5583 call to tablejump_p can receive an rtx_jump_table_data **. Update
5584 logic around the call to overwrite "note" appropriately if
5585 tablejump_p returns non-zero.
5586 (get_last_bb_insn): Introduce local "table", using it in place of
5587 "tmp" for jump table data.
5588 * dwarf2cfi.c (create_trace_edges): Likewise.
5589
5590 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5591 from rtx to rtx_jump_table_data *.
5592 (create_fix_barrier): Strengthen local "tmp" from rtx to
5593 rtx_jump_table_data *.
5594 (arm_reorg): Likewise for local "table".
5595
5596 * config/s390/s390.c (s390_chunkify_start): Likewise.
5597
5598 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5599
5600 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5601 rtx to rtx_jump_table_data *.
5602
5603 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5604 rtx_jump_table_data **. Add a checked cast when writing through
5605 the pointer: we know there that local "table" is non-NULL and that
5606 JUMP_TABLE_DATA_P (table) holds.
5607 (label_is_jump_target_p): Introduce local "table", using it in
5608 place of "tmp" for jump table data.
5609
5610 2014-08-19 Marek Polacek <polacek@redhat.com>
5611
5612 PR c++/62153
5613 * doc/invoke.texi: Document -Wbool-compare.
5614
5615 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5616
5617 * rtl.h (entry_of_function): Strengthen return type from rtx to
5618 rtx_insn *.
5619 * cfgrtl.c (entry_of_function): Likewise.
5620
5621 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5622
5623 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5624 rtx_insn *, adding a checked cast for now.
5625 (get_last_insn): Likewise.
5626
5627 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5628
5629 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5630 rtx_code_label *.
5631
5632 * emit-rtl.c (gen_label_rtx): Likewise.
5633
5634 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5635
5636 * rtl.h (previous_insn): Strengthen return type from rtx to
5637 rtx_insn *.
5638 (next_insn): Likewise.
5639 (prev_nonnote_insn): Likewise.
5640 (prev_nonnote_insn_bb): Likewise.
5641 (next_nonnote_insn): Likewise.
5642 (next_nonnote_insn_bb): Likewise.
5643 (prev_nondebug_insn): Likewise.
5644 (next_nondebug_insn): Likewise.
5645 (prev_nonnote_nondebug_insn): Likewise.
5646 (next_nonnote_nondebug_insn): Likewise.
5647 (prev_real_insn): Likewise.
5648 (next_real_insn): Likewise.
5649 (prev_active_insn): Likewise.
5650 (next_active_insn): Likewise.
5651
5652 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5653 rtx_insn *, adding a checked cast.
5654 (previous_insn): Likewise.
5655 (next_nonnote_insn): Likewise.
5656 (next_nonnote_insn_bb): Likewise.
5657 (prev_nonnote_insn): Likewise.
5658 (prev_nonnote_insn_bb): Likewise.
5659 (next_nondebug_insn): Likewise.
5660 (prev_nondebug_insn): Likewise.
5661 (next_nonnote_nondebug_insn): Likewise.
5662 (prev_nonnote_nondebug_insn): Likewise.
5663 (next_real_insn): Likewise.
5664 (prev_real_insn): Likewise.
5665 (next_active_insn): Likewise.
5666 (prev_active_insn): Likewise.
5667
5668 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5669 param "stepfunc" so that it returns an rtx_insn * rather than an
5670 rtx, to track the change to prev_nonnote_insn_bb, which is the
5671 only function this is called with.
5672 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5673
5674 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5675
5676 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5677 assert.
5678
5679 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5680
5681 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5682 (class rtx_nonjump_insn): Likewise.
5683 (class rtx_jump_insn): Likewise.
5684 (class rtx_call_insn): Likewise.
5685 (class rtx_jump_table_data): Likewise.
5686 (class rtx_barrier): Likewise.
5687 (class rtx_code_label): Likewise.
5688 (class rtx_note): Likewise.
5689
5690 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5691 adding the invariant DEBUG_INSN_P (X).
5692 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5693 the invariant NONJUMP_INSN_P (X).
5694 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5695 the invariant JUMP_P (X).
5696 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5697 the invariant CALL_P (X).
5698 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5699 invariant JUMP_TABLE_DATA_P (X).
5700 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5701 invariant BARRIER_P (X).
5702 (class rtx_code_label): New, a subclass of rtx_insn, adding
5703 the invariant LABEL_P (X).
5704 (class rtx_note): New, a subclass of rtx_insn, adding
5705 the invariant NOTE_P(X).
5706 (is_a_helper <rtx_debug_insn *>::test): New.
5707 (is_a_helper <rtx_nonjump_insn *>::test): New.
5708 (is_a_helper <rtx_jump_insn *>::test): New.
5709 (is_a_helper <rtx_call_insn *>::test): New.
5710 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5711 overloaded for both rtx and rtx_insn *.
5712 (is_a_helper <rtx_barrier *>::test): New.
5713 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5714 for both rtx and rtx_insn *.
5715 (is_a_helper <rtx_note *>::test): New.
5716
5717 2014-08-19 Marek Polacek <polacek@redhat.com>
5718
5719 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5720 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5721 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5722 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5723
5724 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5725
5726 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5727 rtx_insn *. To help with transition, for now, convert from an
5728 access macro into a pair of functions: BND_TO, returning an
5729 rtx_insn *, and...
5730 (SET_BND_TO): New function, for use where BND_TO is used as an
5731 lvalue.
5732
5733 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5734 SET_BND_TO.
5735 (BND_TO): New function, adding a checked cast.
5736 (SET_BND_TO): New function.
5737
5738 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5739 SET_BND_TO.
5740 (compute_av_set_on_boundaries): Likewise.
5741
5742 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5743
5744 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5745 destination if it is used in source.
5746 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5747 (*popcount<mode>2_falsedep_1): Likewise.
5748
5749 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5750
5751 PR other/62168
5752 * configure.ac: Set install_gold_as_default to no first.
5753 * configure: Regenerated.
5754
5755 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5756
5757 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5758 "note_list" field will eventually be an rtx_insn *. To help with
5759 transition, for now, convert from an access macro into a pair of
5760 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5761 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5762 used as an lvalue.
5763
5764 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5765 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5766
5767 * sel-sched-ir.c (init_bb): Likewise.
5768 (sel_restore_notes): Likewise.
5769 (move_bb_info): Likewise.
5770 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5771 (SET_BB_NOTE_LIST): New function.
5772
5773 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5774
5775 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5776 field will eventually be an rtx_insn *. To help with transition,
5777 for now, convert from an access macro into a pair of functions:
5778 VINSN_INSN_RTX, returning an rtx_insn *, and...
5779 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5780 is used as an lvalue.
5781
5782 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5783 SET_VINSN_INSN_RTX where it's used as an lvalue.
5784 (VINSN_INSN_RTX): New function.
5785 (SET_VINSN_INSN_RTX): New function.
5786
5787 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5788
5789 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5790 eventually be rtx_insn *, but to help with transition, for now,
5791 convert from an access macro into a pair of functions: DEP_PRO
5792 returning an rtx_insn * and...
5793 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5794 lvalue, returning an rtx&.
5795 (DEP_CON): Analogous changes to DEP_PRO above.
5796 (SET_DEP_CON): Likewise.
5797
5798 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5799 an lvalue to SET_DEP_CON.
5800 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5801 (sd_copy_back_deps): Likewise for DEP_CON.
5802 (DEP_PRO): New function, adding a checked cast for now.
5803 (DEP_CON): Likewise.
5804 (SET_DEP_PRO): New function.
5805 (SET_DEP_CON): Likewise.
5806
5807 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5808
5809 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5810 (extra_options): Add i386/cygwin.opt.
5811 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5812 (CPP_SPEC): Accept -pthread.
5813 (LINK_SPEC): Ditto.
5814 (GOMP_SELF_SPECS): Update comment.
5815 * config/i386/cygwin.opt: New file for -pthread flag.
5816
5817 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5818
5819 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5820 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5821 that we can return an rtx_insn *.
5822
5823 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5824
5825 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5826 when building executables, not DLLs. Add --large-address-aware
5827 under the same conditions.
5828 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5829 when building executables, not DLLs. Add --large-address-aware
5830 under the same conditions when using -m32.
5831
5832 * config/i386/cygwin-stdint.h: Throughout, make type
5833 definitions dependent on target architecture, not host.
5834
5835 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5836
5837 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5838 the return type from rtx to rtx_insn *, which will enable various
5839 conversions in followup patches. For now this is is done by a
5840 checked cast.
5841 (NEXT_INSN): Likewise.
5842 (SET_PREV_INSN): Convert to an inline function. This is intended
5843 for use as an lvalue, and so returns an rtx& to allow in-place
5844 modification.
5845 (SET_NEXT_INSN): Likewise.
5846
5847 2014-07-08 Mark Wielaard <mjw@redhat.com>
5848
5849 PR debug/59051
5850 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5851
5852 2014-08-19 Marek Polacek <polacek@redhat.com>
5853
5854 PR c/61271
5855 * cgraphunit.c (handle_alias_pairs): Fix condition.
5856
5857 2014-08-19 Richard Biener <rguenther@suse.de>
5858
5859 * gimple-fold.c (fold_gimple_assign): Properly build a
5860 null-pointer constant when devirtualizing addresses.
5861
5862 2014-07-07 Mark Wielaard <mjw@redhat.com>
5863
5864 * dwarf2out.c (decl_quals): New function.
5865 (modified_type_die): Take one cv_quals argument instead of two,
5866 one for const and one for volatile.
5867 (add_type_attribute): Likewise.
5868 (generic_parameter_die): Call add_type_attribute with one modifier
5869 argument.
5870 (base_type_for_mode): Likewise.
5871 (add_bounds_info): Likewise.
5872 (add_subscript_info): Likewise.
5873 (gen_array_type_die): Likewise.
5874 (gen_descr_array_type_die): Likewise.
5875 (gen_entry_point_die): Likewise.
5876 (gen_enumeration_type_die): Likewise.
5877 (gen_formal_parameter_die): Likewise.
5878 (gen_subprogram_die): Likewise.
5879 (gen_variable_die): Likewise.
5880 (gen_const_die): Likewise.
5881 (gen_field_die): Likewise.
5882 (gen_pointer_type_die): Likewise.
5883 (gen_reference_type_die): Likewise.
5884 (gen_ptr_to_mbr_type_die): Likewise.
5885 (gen_inheritance_die): Likewise.
5886 (gen_subroutine_type_die): Likewise.
5887 (gen_typedef_die): Likewise.
5888 (force_type_die): Likewise.
5889
5890 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5891
5892 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5893 if unset.
5894 * configure: Regenerate.
5895
5896 2014-08-19 Richard Biener <rguenther@suse.de>
5897
5898 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5899 DECL_EXTERNALs in BLOCKs as non-references.
5900 * tree-streamer-out.c (streamer_write_chain): Likewise.
5901
5902 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5903 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5904 Anna Tikhonova <anna.tikhonova@intel.com>
5905 Ilya Tocar <ilya.tocar@intel.com>
5906 Andrey Turetskiy <andrey.turetskiy@intel.com>
5907 Ilya Verbin <ilya.verbin@intel.com>
5908 Kirill Yukhin <kirill.yukhin@intel.com>
5909 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5910
5911 * config/i386/sse.md
5912 (define_mode_iterator VI48_AVX512F): Delete.
5913 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5914 (define_mode_iterator VI2_AVX512VL): Ditto.
5915 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5916 Delete.
5917 (define_insn
5918 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5919 New.
5920 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5921 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5922 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5923 with VI48_AVX512F_AVX512VL): New.
5924 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5925 with VI2_AVX512VL): Ditto.
5926
5927 2014-08-19 Marek Polacek <polacek@redhat.com>
5928
5929 * doc/invoke.texi: Document -Wc99-c11-compat.
5930
5931 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5932
5933 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5934 for rvalues, and...
5935 (SET_PREV_INSN): New macro, for use as an lvalue.
5936 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5937
5938 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5939 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5940 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5941 (fixup_abnormal_edges): Likewise.
5942 (unlink_insn_chain): Likewise.
5943 (fixup_reorder_chain): Likewise.
5944 (cfg_layout_delete_block): Likewise.
5945 (cfg_layout_merge_blocks): Likewise.
5946 * combine.c (update_cfg_for_uncondjump): Likewise.
5947 * emit-rtl.c (link_insn_into_chain): Likewise.
5948 (remove_insn): Likewise.
5949 (delete_insns_since): Likewise.
5950 (reorder_insns_nobb): Likewise.
5951 (emit_insn_after_1): Likewise.
5952 * final.c (rest_of_clean_state): Likewise.
5953 (final_scan_insn): Likewise.
5954 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5955 * haifa-sched.c (concat_note_lists): Likewise.
5956 (remove_notes): Likewise.
5957 (restore_other_notes): Likewise.
5958 (move_insn): Likewise.
5959 (unlink_bb_notes): Likewise.
5960 (restore_bb_notes): Likewise.
5961 * jump.c (delete_for_peephole): Likewise.
5962 * optabs.c (emit_libcall_block_1): Likewise.
5963 * reorg.c (emit_delay_sequence): Likewise.
5964 (fill_simple_delay_slots): Likewise.
5965 * sel-sched-ir.c (sel_move_insn): Likewise.
5966 (sel_remove_insn): Likewise.
5967 (get_bb_note_from_pool): Likewise.
5968 * sel-sched.c (move_nop_to_previous_block): Likewise.
5969
5970 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5971 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5972 (c6x_gen_bundles): Likewise.
5973 (hwloop_optimize): Likewise.
5974 * config/frv/frv.c (frv_function_prologue): Likewise.
5975 (frv_register_nop): Likewise.
5976 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5977 (ia64_reorg): Likewise.
5978 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5979 (mep_make_bundle): Likewise.
5980 (mep_bundle_insns): Likewise.
5981 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5982 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5983 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5984
5985 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5986
5987 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5988 return type from rtx to rtx_insn *.
5989 (BB_END): Likewise.
5990 (BB_HEADER): Likewise.
5991 (BB_FOOTER): Likewise.
5992 (SET_BB_HEAD): Convert to a function.
5993 (SET_BB_END): Likewise.
5994 (SET_BB_HEADER): Likewise.
5995 (SET_BB_FOOTER): Likewise.
5996
5997 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5998 Strengthen the return type from rtx to rtx_insn *. For now, this
5999 is done by adding a checked cast, but this will eventually
6000 become a field lookup.
6001 (BB_END): Likewise.
6002 (BB_HEADER): Likewise.
6003 (BB_FOOTER): Likewise.
6004 (SET_BB_HEAD): New function, from macro of same name. This is
6005 intended for use as an lvalue, and so returns an rtx& to allow
6006 in-place modification.
6007 (SET_BB_END): Likewise.
6008 (SET_BB_HEADER): Likewise.
6009 (SET_BB_FOOTER): Likewise.
6010
6011 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6012
6013 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6014 for rvalues, and...
6015 (SET_BB_HEAD): New macro, for use as a lvalue.
6016 (BB_END, SET_BB_END): Likewise.
6017 (BB_HEADER, SET_BB_HEADER): Likewise.
6018 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6019
6020 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6021 of BB_* macros into SET_BB_* macros.
6022 (fix_crossing_unconditional_branches): Likewise.
6023 * caller-save.c (save_call_clobbered_regs): Likewise.
6024 (insert_one_insn): Likewise.
6025 * cfgbuild.c (find_bb_boundaries): Likewise.
6026 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6027 (outgoing_edges_match): Likewise.
6028 (try_optimize_cfg): Likewise.
6029 * cfgexpand.c (expand_gimple_cond): Likewise.
6030 (expand_gimple_tailcall): Likewise.
6031 (expand_gimple_basic_block): Likewise.
6032 (construct_exit_block): Likewise.
6033 * cfgrtl.c (delete_insn): Likewise.
6034 (create_basic_block_structure): Likewise.
6035 (rtl_delete_block): Likewise.
6036 (rtl_split_block): Likewise.
6037 (emit_nop_for_unique_locus_between): Likewise.
6038 (rtl_merge_blocks): Likewise.
6039 (block_label): Likewise.
6040 (try_redirect_by_replacing_jump): Likewise.
6041 (emit_barrier_after_bb): Likewise.
6042 (fixup_abnormal_edges): Likewise.
6043 (record_effective_endpoints): Likewise.
6044 (relink_block_chain): Likewise.
6045 (fixup_reorder_chain): Likewise.
6046 (fixup_fallthru_exit_predecessor): Likewise.
6047 (cfg_layout_duplicate_bb): Likewise.
6048 (cfg_layout_split_block): Likewise.
6049 (cfg_layout_delete_block): Likewise.
6050 (cfg_layout_merge_blocks): Likewise.
6051 * combine.c (update_cfg_for_uncondjump): Likewise.
6052 * emit-rtl.c (add_insn_after): Likewise.
6053 (remove_insn): Likewise.
6054 (reorder_insns): Likewise.
6055 (emit_insn_after_1): Likewise.
6056 * haifa-sched.c (get_ebb_head_tail): Likewise.
6057 (restore_other_notes): Likewise.
6058 (move_insn): Likewise.
6059 (sched_extend_bb): Likewise.
6060 (fix_jump_move): Likewise.
6061 * ifcvt.c (noce_process_if_block): Likewise.
6062 (dead_or_predicable): Likewise.
6063 * ira.c (update_equiv_regs): Likewise.
6064 * reg-stack.c (change_stack): Likewise.
6065 * sel-sched-ir.c (sel_move_insn): Likewise.
6066 * sel-sched.c (move_nop_to_previous_block): Likewise.
6067
6068 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6069 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6070
6071 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6072
6073 * rtl.h (for_each_rtx_in_insn): New function.
6074 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6075
6076 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6077
6078 * coretypes.h (class rtx_insn): Add forward declaration.
6079
6080 * rtl.h: Include is-a.h.
6081 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6082 workaround to ensure gengtype knows inheritance is occurring,
6083 whilst continuing to use the pre-existing special-casing for
6084 rtx_def.
6085 (class rtx_insn): New subclass of rtx_def, adding the
6086 invariant that we're dealing with something we can sanely use
6087 INSN_UID, NEXT_INSN, PREV_INSN on.
6088 (is_a_helper <rtx_insn *>::test): New.
6089 (is_a_helper <const rtx_insn *>::test): New.
6090
6091 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6092
6093 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6094
6095 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6096
6097 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6098 comdats as extern.
6099
6100 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6101
6102 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6103 to BUILT_IN_UNREACHABLE.
6104
6105 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6106
6107 PR target/62011
6108 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6109 New tune flag.
6110 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6111 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6112 (ffs<mode>2): Do not expand with tzcnt for
6113 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6114 (ffssi2_no_cmove): Ditto.
6115 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6116 (ctz<mode>2): New expander.
6117 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6118 (*ctz<mode>2_falsedep): New insn.
6119 (*ctz<mode>2): Rename from ctz<mode>2.
6120 (clz<mode>2_lzcnt): New expander.
6121 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6122 (*clz<mode>2_lzcnt_falsedep): New insn.
6123 (*clz<mode>2): Rename from ctz<mode>2.
6124 (popcount<mode>2): New expander.
6125 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6126 (*popcount<mode>2_falsedep): New insn.
6127 (*popcount<mode>2): Rename from ctz<mode>2.
6128 (*popcount<mode>2_cmp): Remove.
6129 (*popcountsi2_cmp_zext): Ditto.
6130
6131 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6132
6133 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6134 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6135 * config/microblaze/microblaze.h
6136 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6137
6138 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6139
6140 PR other/62168
6141 * configure.ac: Set install_gold_as_default to no for
6142 --enable-gold=no.
6143 * configure: Regenerated.
6144
6145 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6146
6147 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6148 * config.in: Add undef of HAVE_isl.
6149 * configure: Regenerate.
6150 * configure.ac: Add definition of HAVE_isl.
6151 * graphite-blocking.c: Add checking of HAVE_isl.
6152 * graphite-dependences.c: Likewise.
6153 * graphite-interchange.c: Likewise.
6154 * graphite-isl-ast-to-gimple.c: Likewise.
6155 * graphite-optimize-isl.c: Likewise.
6156 * graphite-poly.c: Likewise.
6157 * graphite-scop-detection.c: Likewise.
6158 * graphite-sese-to-poly.c: Likewise.
6159 * graphite.c: Likewise.
6160 * toplev.c: Replace the checking of HAVE_cloog with the checking
6161 of HAVE_isl.
6162
6163 2014-08-18 Richard Biener <rguenther@suse.de>
6164
6165 PR tree-optimization/62090
6166 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6167 (fold_builtin_3): Do not fold snprintf.
6168 (fold_builtin_4): Likewise.
6169 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6170 moved from builtins.c.
6171 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6172 (gimple_fold_builtin): Do not fold sprintf here.
6173
6174 2014-08-18 Richard Biener <rguenther@suse.de>
6175
6176 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6177 code to ...
6178 (maybe_canonicalize_mem_ref_addr): ... this function.
6179 (fold_stmt_1): Apply it here before all simplification.
6180
6181 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6182
6183 PR ipa/61800
6184 * cgraph.h (cgraph_node::create_indirect_edge): Add
6185 compute_indirect_info param.
6186 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6187 indirect_info only when it is required.
6188 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6189 indirect_info fore cloned indirect edge.
6190
6191 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6192 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6193 Anna Tikhonova <anna.tikhonova@intel.com>
6194 Ilya Tocar <ilya.tocar@intel.com>
6195 Andrey Turetskiy <andrey.turetskiy@intel.com>
6196 Ilya Verbin <ilya.verbin@intel.com>
6197 Kirill Yukhin <kirill.yukhin@intel.com>
6198 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6199
6200 * config/i386/sse.md
6201 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6202 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6203
6204 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6205 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6206 Anna Tikhonova <anna.tikhonova@intel.com>
6207 Ilya Tocar <ilya.tocar@intel.com>
6208 Andrey Turetskiy <andrey.turetskiy@intel.com>
6209 Ilya Verbin <ilya.verbin@intel.com>
6210 Kirill Yukhin <kirill.yukhin@intel.com>
6211 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6212
6213 * config/i386/sse.md
6214 (define_mode_iterator VF1_AVX512VL): New.
6215 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6216 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6217 New.
6218
6219 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6220 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6221 Anna Tikhonova <anna.tikhonova@intel.com>
6222 Ilya Tocar <ilya.tocar@intel.com>
6223 Andrey Turetskiy <andrey.turetskiy@intel.com>
6224 Ilya Verbin <ilya.verbin@intel.com>
6225 Kirill Yukhin <kirill.yukhin@intel.com>
6226 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6227
6228 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6229 * config/i386/i386.md
6230 (define_code_iterator any_float): New.
6231 (define_code_attr floatsuffix): New.
6232 * config/i386/sse.md
6233 (define_mode_iterator VF1_128_256VL): New.
6234 (define_mode_iterator VF2_512_256VL): New.
6235 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6236 TARGET check.
6237 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6238 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6239 New.
6240 (define_mode_attr qq2pssuff): New.
6241 (define_mode_attr sselongvecmode): New.
6242 (define_mode_attr sselongvecmodelower): New.
6243 (define_mode_attr sseintvecmode3): New.
6244 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6245 New.
6246 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6247 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6248 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6249 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6250
6251 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6252 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6253 Anna Tikhonova <anna.tikhonova@intel.com>
6254 Ilya Tocar <ilya.tocar@intel.com>
6255 Andrey Turetskiy <andrey.turetskiy@intel.com>
6256 Ilya Verbin <ilya.verbin@intel.com>
6257 Kirill Yukhin <kirill.yukhin@intel.com>
6258 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6259
6260 * config/i386/sse.md
6261 (define_mode_iterator VF2_AVX512VL): New.
6262 (define_mode_attr sseintvecmode2): New.
6263 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6264 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6265 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6266 (define_insn
6267 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6268 Ditto.
6269 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6270 Ditto.
6271 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6272 Ditto.
6273
6274 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6275 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6276 Anna Tikhonova <anna.tikhonova@intel.com>
6277 Ilya Tocar <ilya.tocar@intel.com>
6278 Andrey Turetskiy <andrey.turetskiy@intel.com>
6279 Ilya Verbin <ilya.verbin@intel.com>
6280 Kirill Yukhin <kirill.yukhin@intel.com>
6281 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6282
6283 * config/i386/i386.md
6284 (define_insn "*movoi_internal_avx"): Add evex version.
6285 (define_insn "*movti_internal"): Ditto.
6286
6287 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6288 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6289 Anna Tikhonova <anna.tikhonova@intel.com>
6290 Ilya Tocar <ilya.tocar@intel.com>
6291 Andrey Turetskiy <andrey.turetskiy@intel.com>
6292 Ilya Verbin <ilya.verbin@intel.com>
6293 Kirill Yukhin <kirill.yukhin@intel.com>
6294 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6295
6296 * config/i386/i386.md
6297 (define_attr "isa"): Add avx512dq, noavx512dq.
6298 (define_attr "enabled"): Ditto.
6299 * config/i386/sse.md
6300 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6301
6302 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6304 Anna Tikhonova <anna.tikhonova@intel.com>
6305 Ilya Tocar <ilya.tocar@intel.com>
6306 Andrey Turetskiy <andrey.turetskiy@intel.com>
6307 Ilya Verbin <ilya.verbin@intel.com>
6308 Kirill Yukhin <kirill.yukhin@intel.com>
6309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6310
6311 * config/i386/i386.c
6312 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6313 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6314 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6315 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6316 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6317 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6318 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6319 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6320 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6321 * config/i386/sse.md
6322 (define_mode_iterator VMOVE): Allow V4TI mode.
6323 (define_mode_iterator V_AVX512VL): New.
6324 (define_mode_iterator V): New handling for AVX512VL.
6325 (define_insn "avx512f_load<mode>_mask"): Delete.
6326 (define_insn "<avx512>_load<mode>_mask"): New.
6327 (define_insn "avx512f_store<mode>_mask"): Delete.
6328 (define_insn "<avx512>_store<mode>_mask"): New.
6329
6330
6331 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6332
6333 PR sanitizer/62089
6334 * asan.c (instrument_derefs): Fix bitfield check.
6335
6336 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6337
6338 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6339 * config/rs6000/htm.md (ttest): Remove clobber.
6340 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6341 (and_operand): Reformat.
6342 (and_2rld_operand): New predicate.
6343 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6344 parameter.
6345 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6346 parameter. Handle AND directly.
6347 (rs6000_split_logical_di): Remove last parameter.
6348 (rs6000_split_logical): Remove last parameter. Remove obsolete
6349 comment.
6350 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6351 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6352 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6353 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6354 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6355 and 5 anonymous splitters): Delete.
6356 (and<mode>3): New expander.
6357 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6358 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6359 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6360 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6361 (floatdisf2_internal1): Remove clobbers.
6362 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6363 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6364 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6365 (and<mode>3 for BOOL_128): Remove clobber.
6366 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6367 rs6000_split_logical.
6368 (*bool<mode>3_internal for BOOL_128): Adjust call of
6369 rs6000_split_logical.
6370 (*boolc<mode>3_internal1 for BOOL_128,
6371 *boolc<mode>3_internal2 for BOOL_128,
6372 *boolcc<mode>3_internal1 for BOOL_128,
6373 *boolcc<mode>3_internal2 for BOOL_128,
6374 *eqv<mode>3_internal1 for BOOL_128,
6375 *eqv<mode>3_internal2 for BOOL_128,
6376 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6377 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6378 clobber.
6379 (*vec_reload_and_reg_<mptrsize>): Delete.
6380
6381 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6382
6383 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6384 and split, *boolccsi3_internal3 and split): Delete.
6385 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6386 *boolccdi3_internal3 and split): Delete.
6387 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6388 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6389
6390 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6391
6392 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6393 and split, *boolcsi3_internal3 and split): Delete.
6394 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6395 *boolcdi3_internal3 and split): Delete.
6396 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6397
6398 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6399
6400 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6401 <'u'>: Also support printing the low-order 16 bits.
6402 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6403 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6404 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6405 *booldi3_internal3 and split): Delete.
6406 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6407 *bool<mode>3_dot2): New.
6408 (two anonymous define_splits for non_logical_cint_operand): Merge.
6409
6410 2014-08-17 Marek Polacek <polacek@redhat.com>
6411 Manuel López-Ibáñez <manu@gcc.gnu.org>
6412
6413 PR c/62059
6414 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6415 (diagnostic_show_locus): Don't print caret diagnostic
6416 if a column is larger than the line_width.
6417
6418 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6419
6420 * common.opt: Make the ISL AST generator to be the main code generator
6421 of Graphite.
6422
6423 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6424
6425 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6426
6427 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6428
6429 PR target/61641
6430 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6431 Declare.
6432 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6433 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6434 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6435 Define.
6436 * config/pa/pa.md (begin_brtab): Delete insn.
6437 (end_brtab): Likewise.
6438
6439 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6440
6441 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6442
6443 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6444
6445 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6446 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6447 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6448 (get_dynamic_type): Remove.
6449 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6450 (clear_speculation): Bring to ipa-deivrt.h
6451 (get_class_context): Rename to ...
6452 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6453 (contains_type_p): Update.
6454 (get_dynamic_type): Rename to ...
6455 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6456 (possible_polymorphic_call_targets): UPdate.
6457 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6458 * ipa-prop.c (ipa_analyze_call_uses): Update.
6459
6460 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6461
6462 * doc/invoke.texi (SH options): Document missing processor variant
6463 options. Remove references to Hitachi. Undocument deprecated mspace
6464 option.
6465
6466 2014-08-15 Jason Merrill <jason@redhat.com>
6467
6468 * tree.c (type_hash_canon): Uncomment assert.
6469
6470 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6471
6472 * input.h (in_system_header_at): Add comment.
6473
6474 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6475
6476 PR fortran/44054
6477 * diagnostic.c (build_message_string): Make it extern.
6478 * diagnostic.h (build_message_string): Make it extern.
6479
6480 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6481
6482 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6483 load/store from/to non-floating class pseudo.
6484
6485 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6486
6487 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6488
6489 2014-08-15 Richard Biener <rguenther@suse.de>
6490
6491 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6492 (get_constraint_for_ssa_var): Remove dead code.
6493 (get_constraint_for_1): Adjust.
6494 (find_what_var_points_to): Likewise.
6495 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6496
6497 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6498
6499 PR target/61878
6500 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6501 (_mm512_mask_cmpge_epu32_mask): Ditto.
6502 (_mm512_cmpge_epu32_mask): Ditto.
6503 (_mm512_mask_cmpge_epi64_mask): Ditto.
6504 (_mm512_cmpge_epi64_mask): Ditto.
6505 (_mm512_mask_cmpge_epu64_mask): Ditto.
6506 (_mm512_cmpge_epu64_mask): Ditto.
6507 (_mm512_mask_cmple_epi32_mask): Ditto.
6508 (_mm512_cmple_epi32_mask): Ditto.
6509 (_mm512_mask_cmple_epu32_mask): Ditto.
6510 (_mm512_cmple_epu32_mask): Ditto.
6511 (_mm512_mask_cmple_epi64_mask): Ditto.
6512 (_mm512_cmple_epi64_mask): Ditto.
6513 (_mm512_mask_cmple_epu64_mask): Ditto.
6514 (_mm512_cmple_epu64_mask): Ditto.
6515 (_mm512_mask_cmplt_epi32_mask): Ditto.
6516 (_mm512_cmplt_epi32_mask): Ditto.
6517 (_mm512_mask_cmplt_epu32_mask): Ditto.
6518 (_mm512_cmplt_epu32_mask): Ditto.
6519 (_mm512_mask_cmplt_epi64_mask): Ditto.
6520 (_mm512_cmplt_epi64_mask): Ditto.
6521 (_mm512_mask_cmplt_epu64_mask): Ditto.
6522 (_mm512_cmplt_epu64_mask): Ditto.
6523 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6524 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6525 (_mm512_cmpneq_epu32_mask): Ditto.
6526 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6527 (_mm512_cmpneq_epi64_mask): Ditto.
6528 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6529 (_mm512_cmpneq_epu64_mask): Ditto.
6530 (_mm512_castpd_ps): Ditto.
6531 (_mm512_castpd_si512): Ditto.
6532 (_mm512_castps_pd): Ditto.
6533 (_mm512_castps_si512): Ditto.
6534 (_mm512_castsi512_ps): Ditto.
6535 (_mm512_castsi512_pd): Ditto.
6536 (_mm512_castpd512_pd128): Ditto.
6537 (_mm512_castps512_ps128): Ditto.
6538 (_mm512_castsi512_si128): Ditto.
6539 (_mm512_castpd512_pd256): Ditto.
6540 (_mm512_castps512_ps256): Ditto.
6541 (_mm512_castsi512_si256): Ditto.
6542 (_mm512_castpd128_pd512): Ditto.
6543 (_mm512_castps128_ps512): Ditto.
6544 (_mm512_castsi128_si512): Ditto.
6545 (_mm512_castpd256_pd512): Ditto.
6546 (_mm512_castps256_ps512): Ditto.
6547 (_mm512_castsi256_si512): Ditto.
6548 (_mm512_cmpeq_epu32_mask): Ditto.
6549 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6550 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6551 (_mm512_cmpeq_epu64_mask): Ditto.
6552 (_mm512_cmpgt_epu32_mask): Ditto.
6553 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6554 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6555 (_mm512_cmpgt_epu64_mask): Ditto.
6556 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6557 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6558 * config/i386/i386.c (enum ix86_builtins): Add
6559 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6560 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6561 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6562 (bdesc_args): Add __builtin_ia32_si512_256si,
6563 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6564 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6565 __builtin_ia32_pd512_pd.
6566 (ix86_expand_args_builtin): Handle new FTYPEs.
6567 * config/i386/sse.md (castmode): Add 512-bit modes.
6568 (AVX512MODE2P): New.
6569 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6570 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6571
6572 2014-08-15 Richard Biener <rguenther@suse.de>
6573
6574 * fold-const.c (tree_swap_operands_p): Put all constants
6575 last, also strip sign-changing NOPs when considering further
6576 canonicalization. Canonicalize also when optimizing for size.
6577
6578 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6579
6580 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6581 one_match > zero_match case to just before simple_sequence.
6582
6583 2014-08-15 Richard Biener <rguenther@suse.de>
6584
6585 * data-streamer.h (streamer_string_index, string_for_index):
6586 Remove.
6587 * data-streamer-out.c (streamer_string_index): Make static.
6588 * data-streamer-in.c (string_for_index): Likewise.
6589 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6590 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6591
6592 2014-08-15 Richard Biener <rguenther@suse.de>
6593
6594 PR tree-optimization/62031
6595 * tree-data-ref.c (dr_analyze_indices): Do not set
6596 DR_UNCONSTRAINED_BASE.
6597 (dr_may_alias_p): All indirect accesses have to go the
6598 formerly DR_UNCONSTRAINED_BASE path.
6599 * tree-data-ref.h (struct indices): Remove
6600 unconstrained_base member.
6601 (DR_UNCONSTRAINED_BASE): Remove.
6602
6603 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6604
6605 PR middle-end/62092
6606 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6607 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6608 in OMP_CLAUSE_MAP in some outer target region.
6609
6610 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6611
6612 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6613 name_expansion_cache.
6614 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6615 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6616 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6617 (difference_cannot_overflow_p): New parameter. Use affine
6618 expansion for equality check.
6619 (iv_elimination_compare_lt): Pass new argument.
6620
6621 2014-08-14 DJ Delorie <dj@redhat.com>
6622
6623 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6624 variables to the accumulator.
6625
6626 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6627 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6628 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6629 with far-far moves.
6630
6631 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6632 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6633 (umulqihi3_virt): Likewise.
6634 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6635 (umulqihi3_real): Likewise.
6636
6637 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6638
6639 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6640
6641 PR tree-optimization/62091
6642 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6643 function_entry_reached.
6644 (walk_aliased_vdefs): Clear it here.
6645 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6646
6647 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6648
6649 * ipa-utils.h (compare_virtual_tables): Declare.
6650 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6651
6652 2014-08-14 Marek Polacek <polacek@redhat.com>
6653
6654 DR 458
6655 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6656 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6657
6658 2014-08-14 Tom de Vries <tom@codesourcery.com>
6659
6660 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6661
6662 2014-08-14 Tom de Vries <tom@codesourcery.com>
6663
6664 PR rtl-optimization/62004
6665 PR rtl-optimization/62030
6666 * ifcvt.c (rtx_interchangeable_p): New function.
6667 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6668 * emit-rtl.h (mem_attrs_eq_p): Declare.
6669
6670 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6671
6672 * graphite-scop-detection.c:
6673 Add inclusion of cp-tree.h.
6674 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6675 in case they are pointers to object types
6676
6677 2014-08-14 Richard Biener <rguenther@suse.de>
6678
6679 * BASE-VER: Change to 5.0.0
6680
6681 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6683 Anna Tikhonova <anna.tikhonova@intel.com>
6684 Ilya Tocar <ilya.tocar@intel.com>
6685 Andrey Turetskiy <andrey.turetskiy@intel.com>
6686 Ilya Verbin <ilya.verbin@intel.com>
6687 Kirill Yukhin <kirill.yukhin@intel.com>
6688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6689
6690 * config/i386/sse.md (define_mode_attr avx512): New.
6691 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6692 V4DI modes.
6693 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6694 (define_mode_attr ssse3_avx2): Ditto.
6695 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6696 (define_mode_attr avx2_avx512bw): New.
6697 (define_mode_attr ssedoublemodelower): New.
6698 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6699 V32HI, V64QI modes.
6700 (define_mode_attr ssebytemode): Allow V8DI modes.
6701 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6702 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6703 (define_mode_attr ssePSmode2): New.
6704 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6705 V16HI, V32HI modes.
6706 (define_mode_attr dbpsadbwmode): New.
6707 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6708 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6709 (vi8_sse4_1_avx2_avx512): New.
6710 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6711 mode attribute.
6712 (define_mode_attr blendbits): Move before its immediate use.
6713
6714 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6715 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6716 Anna Tikhonova <anna.tikhonova@intel.com>
6717 Ilya Tocar <ilya.tocar@intel.com>
6718 Andrey Turetskiy <andrey.turetskiy@intel.com>
6719 Ilya Verbin <ilya.verbin@intel.com>
6720 Kirill Yukhin <kirill.yukhin@intel.com>
6721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6722
6723 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6724 * config/i386/subst.md
6725 (define_mode_iterator SUBST_V): Update.
6726 (define_mode_iterator SUBST_A): Ditto.
6727 (define_subst_attr "mask_operand7"): New.
6728 (define_subst_attr "mask_operand10"): New.
6729 (define_subst_attr "mask_operand_arg34") : New.
6730 (define_subst_attr "mask_expand_op3"): New.
6731 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6732 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6733 (define_subst_attr "mask_avx512vl_condition"): New.
6734 (define_subst_attr "round_mask_operand4"): Ditto.
6735 (define_subst_attr "round_mask_scalar_op3"): Delete.
6736 (define_subst_attr "round_mask_op4"): New.
6737 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6738 V16SImode.
6739 (define_subst_attr "round_modev8sf_condition"): New.
6740 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6741 <MODE>mode.
6742 (define_subst_attr "round_saeonly_mask_operand4"): New.
6743 (define_subst_attr "round_saeonly_mask_op4"): New.
6744 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6745 V8DImode, V16SImode.
6746 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6747 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6748 (define_subst_attr "mask_expand4_args"): New.
6749 (define_subst "mask_expand4"): New.
6750
6751 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6753 Anna Tikhonova <anna.tikhonova@intel.com>
6754 Ilya Tocar <ilya.tocar@intel.com>
6755 Andrey Turetskiy <andrey.turetskiy@intel.com>
6756 Ilya Verbin <ilya.verbin@intel.com>
6757 Kirill Yukhin <kirill.yukhin@intel.com>
6758 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6759
6760 * config/i386/i386.md
6761 (define_attr "isa"): Add avx512bw,noavx512bw.
6762 (define_attr "enabled"): Ditto.
6763 (define_split): Add 32/64-bit mask logic.
6764 (define_insn "*k<logic>qi"): New.
6765 (define_insn "*k<logic>hi"): New.
6766 (define_insn "*anddi_1"): Add mask version.
6767 (define_insn "*andsi_1"): Ditto.
6768 (define_insn "*<code><mode>_1"): Ditto.
6769 (define_insn "*<code>hi_1"): Ditto.
6770 (define_insn "kxnor<mode>"): New.
6771 (define_insn "kunpcksi"): New.
6772 (define_insn "kunpckdi"): New.
6773 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6774 (define_insn "*one_cmplhi2_1"): Ditto.
6775
6776 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6777 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6778 Anna Tikhonova <anna.tikhonova@intel.com>
6779 Ilya Tocar <ilya.tocar@intel.com>
6780 Andrey Turetskiy <andrey.turetskiy@intel.com>
6781 Ilya Verbin <ilya.verbin@intel.com>
6782 Kirill Yukhin <kirill.yukhin@intel.com>
6783 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6784
6785 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6786 V32HImode.
6787
6788 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6790 Anna Tikhonova <anna.tikhonova@intel.com>
6791 Ilya Tocar <ilya.tocar@intel.com>
6792 Andrey Turetskiy <andrey.turetskiy@intel.com>
6793 Ilya Verbin <ilya.verbin@intel.com>
6794 Kirill Yukhin <kirill.yukhin@intel.com>
6795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6796
6797 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6798 registers.
6799 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6800 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6801 xmm/ymm16+ when availble.
6802 * config/i386/i386.h
6803 (HARD_REGNO_NREGS): Add mask regs.
6804 (VALID_AVX512F_REG_MODE): Ditto.
6805 (VALID_AVX512F_REG_MODE) : Define.
6806 (VALID_MASK_AVX512BW_MODE): Ditto.
6807 (reg_class) (MASK_REG_P(X)): Define.
6808 * config/i386/i386.md: Do not split long moves with mask register,
6809 use kmovb if avx512bw is availible.
6810 (movdi_internal): Handle mask registers.
6811
6812 2014-08-14 Richard Biener <rguenther@suse.de>
6813
6814 PR tree-optimization/62081
6815 * tree-ssa-loop.c (pass_fix_loops): New pass.
6816 (pass_tree_loop::gate): Do not fixup loops here.
6817 * tree-pass.h (make_pass_fix_loops): Declare.
6818 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6819
6820 2014-08-14 Richard Biener <rguenther@suse.de>
6821
6822 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6823 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6824
6825 2014-08-14 Richard Biener <rguenther@suse.de>
6826
6827 PR tree-optimization/62090
6828 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6829 (fold_builtin_2): Do not fold sprintf.
6830 (fold_builtin_3): Likewise.
6831 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6832 moved from builtins.c.
6833 (gimple_fold_builtin): Fold sprintf.
6834
6835 2014-08-14 Richard Biener <rguenther@suse.de>
6836
6837 PR rtl-optimization/62079
6838 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6839 run cleanup_cfg.
6840
6841 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6842
6843 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6844 current_function_decl.
6845
6846 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6847
6848 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6849 cgraph_function_node to cgraph_node::function_symbol
6850 refactoring.
6851
6852 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6853
6854 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6855 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6856
6857 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6858
6859 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6860 warning.
6861
6862 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6863
6864 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6865 generator.
6866
6867 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6868
6869 PR target/62025
6870 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6871 any registers that are used in mem_insn.
6872
6873 2014-08-12 Steve Ellcey <sellcey@mips.com>
6874
6875 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6876
6877 2014-08-12 Steve Ellcey <sellcey@mips.com>
6878
6879 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6880 (MULTILIB_DIRNAMES): Ditto.
6881 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6882 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6883 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6884 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6885 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6886 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6887
6888 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6889
6890 PR target/61413
6891 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6892 of __ARM_SIZEOF_WCHAR_T.
6893
6894 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6895
6896 PR target/62098
6897 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6898 Remove unnecessary attributes.
6899
6900 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6901
6902 * internal-fn.c (init_internal_fns): Fix off-by-one.
6903
6904 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6906 Anna Tikhonova <anna.tikhonova@intel.com>
6907 Ilya Tocar <ilya.tocar@intel.com>
6908 Andrey Turetskiy <andrey.turetskiy@intel.com>
6909 Ilya Verbin <ilya.verbin@intel.com>
6910 Kirill Yukhin <kirill.yukhin@intel.com>
6911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6912
6913 * config/i386/i386.c (standard_sse_constant_opcode): Use
6914 vpxord/vpternlog if avx512 is availible.
6915
6916 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6917
6918 PR middle-end/62103
6919 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6920 bitfields, that is when size doesn't match the size of type or the
6921 size of the constructor.
6922
6923 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6924
6925 * config/rs6000/constraints.md (wh constraint): New constraint,
6926 for FP registers if direct move is available.
6927 (wi constraint): New constraint, for VSX/FP registers that can
6928 handle 64-bit integers.
6929 (wj constraint): New constraint for VSX/FP registers that can
6930 handle 64-bit integers for direct moves.
6931 (wk constraint): New constraint for VSX/FP registers that can
6932 handle 64-bit doubles for direct moves.
6933 (wy constraint): Make documentation match implementation.
6934
6935 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6936 scalar_in_vmx_p field to simplify tests of whether SFmode or
6937 DFmode can go in the Altivec registers.
6938 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6939 (rs6000_setup_reg_addr_masks): Likewise.
6940 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6941 field, and wh/wi/wj/wk constraints.
6942 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6943 the wh/wi/wj/wk constraints.
6944 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6945 upper registers, prefer VSX registers unless the operation is a
6946 memory operation with REG+OFFSET addressing.
6947
6948 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6949 DImode. Change SFmode to use ww constraint instead of d to allow
6950 SF registers in the upper registers.
6951 (VSr2): Likewise.
6952 (VSr3): Likewise.
6953 (VSr5): Fix thinko in comment.
6954 (VSa): New mode attribute that is an alternative to wa, that
6955 returns the VSX register class that a mode can go in, but may not
6956 be the preferred register class.
6957 (VS_64dm): New mode attribute for appropriate register classes for
6958 referencing 64-bit elements of vectors for direct moves and normal
6959 moves.
6960 (VS_64reg): Likewise.
6961 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6962 register allocator to only registers the data type can handle.
6963 (vsx_le_perm_load_<mode>): Likewise.
6964 (vsx_le_perm_store_<mode>): Likewise.
6965 (vsx_xxpermdi2_le_<mode>): Likewise.
6966 (vsx_xxpermdi4_le_<mode>): Likewise.
6967 (vsx_lxvd2x2_le_<mode>): Likewise.
6968 (vsx_lxvd2x4_le_<mode>): Likewise.
6969 (vsx_stxvd2x2_le_<mode>): Likewise.
6970 (vsx_add<mode>3): Likewise.
6971 (vsx_sub<mode>3): Likewise.
6972 (vsx_mul<mode>3): Likewise.
6973 (vsx_div<mode>3): Likewise.
6974 (vsx_tdiv<mode>3_internal): Likewise.
6975 (vsx_fre<mode>2): Likewise.
6976 (vsx_neg<mode>2): Likewise.
6977 (vsx_abs<mode>2): Likewise.
6978 (vsx_nabs<mode>2): Likewise.
6979 (vsx_smax<mode>3): Likewise.
6980 (vsx_smin<mode>3): Likewise.
6981 (vsx_sqrt<mode>2): Likewise.
6982 (vsx_rsqrte<mode>2): Likewise.
6983 (vsx_tsqrt<mode>2_internal): Likewise.
6984 (vsx_fms<mode>4): Likewise.
6985 (vsx_nfma<mode>4): Likewise.
6986 (vsx_eq<mode>): Likewise.
6987 (vsx_gt<mode>): Likewise.
6988 (vsx_ge<mode>): Likewise.
6989 (vsx_eq<mode>_p): Likewise.
6990 (vsx_gt<mode>_p): Likewise.
6991 (vsx_ge<mode>_p): Likewise.
6992 (vsx_xxsel<mode>): Likewise.
6993 (vsx_xxsel<mode>_uns): Likewise.
6994 (vsx_copysign<mode>3): Likewise.
6995 (vsx_float<VSi><mode>2): Likewise.
6996 (vsx_floatuns<VSi><mode>2): Likewise.
6997 (vsx_fix_trunc<mode><VSi>2): Likewise.
6998 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6999 (vsx_x<VSv>r<VSs>i): Likewise.
7000 (vsx_x<VSv>r<VSs>ic): Likewise.
7001 (vsx_btrunc<mode>2): Likewise.
7002 (vsx_b2trunc<mode>2): Likewise.
7003 (vsx_floor<mode>2): Likewise.
7004 (vsx_ceil<mode>2): Likewise.
7005 (vsx_<VS_spdp_insn>): Likewise.
7006 (vsx_xscvspdp): Likewise.
7007 (vsx_xvcvspuxds): Likewise.
7008 (vsx_float_fix_<mode>2): Likewise.
7009 (vsx_set_<mode>): Likewise.
7010 (vsx_extract_<mode>_internal1): Likewise.
7011 (vsx_extract_<mode>_internal2): Likewise.
7012 (vsx_extract_<mode>_load): Likewise.
7013 (vsx_extract_<mode>_store): Likewise.
7014 (vsx_splat_<mode>): Likewise.
7015 (vsx_xxspltw_<mode>): Likewise.
7016 (vsx_xxspltw_<mode>_direct): Likewise.
7017 (vsx_xxmrghw_<mode>): Likewise.
7018 (vsx_xxmrglw_<mode>): Likewise.
7019 (vsx_xxsldwi_<mode>): Likewise.
7020 (vsx_xscvdpspn): Tighten constraints to only use register classes
7021 the types use.
7022 (vsx_xscvspdpn): Likewise.
7023 (vsx_xscvdpspn_scalar): Likewise.
7024
7025 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7026 wj, and wk constraints.
7027 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7028 general purpose registers.
7029
7030 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7031 direct moves.
7032 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7033 DImode instead of wm. Use wk constraint for direct move of DFmode
7034 instead of wm.
7035 (extendsidi2_lfiwax): Likewise.
7036 (lfiwax): Likewise.
7037 (lfiwzx): Likewise.
7038 (movdi_internal64): Likewise.
7039
7040 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7041 wk constraints. Make the wy constraint documentation match them
7042 implementation.
7043
7044 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7045
7046 Replacement of isl_int by isl_val
7047 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7048 (compute_bounds_for_param): use isl_val instead of isl_int
7049 (compute_bounds_for_loop): likewise
7050 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7051 (build_linearized_memory_access): use isl_val instead of isl_int
7052 (pdr_stride_in_loop): likewise
7053 * graphite-optimize-isl.c:
7054 (getPrevectorMap): use isl_val instead of isl_int
7055 * graphite-poly.c:
7056 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7057 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7058 (extern the_isl_ctx): declare
7059 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7060 (extract_affine_gmp): likewise
7061 (wrap): likewise
7062 (build_loop_iteration_domains): likewise
7063 (add_param_constraints): likewise
7064
7065 2014-08-11 Richard Biener <rguenther@suse.de>
7066
7067 PR tree-optimization/62075
7068 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7069 handle uses in patterns.
7070
7071 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7073 Anna Tikhonova <anna.tikhonova@intel.com>
7074 Ilya Tocar <ilya.tocar@intel.com>
7075 Andrey Turetskiy <andrey.turetskiy@intel.com>
7076 Ilya Verbin <ilya.verbin@intel.com>
7077 Kirill Yukhin <kirill.yukhin@intel.com>
7078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7079
7080 * common/config/i386/i386-common.c
7081 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7082 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7083 (ix86_handle_option): Handle OPT_mavx512vl.
7084 * config/i386/cpuid.h (bit_AVX512VL): Define.
7085 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7086 set -mavx512vl accordingly.
7087 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7088 OPTION_MASK_ISA_AVX512VL.
7089 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7090 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7091 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7092 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7093 * config/i386/i386.h (TARGET_AVX512VL): Define.
7094 (TARGET_AVX512VL_P(x)): Ditto.
7095 * config/i386/i386.opt: Add mavx512vl.
7096
7097 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7098
7099 PR tree-optimization/62073
7100 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7101 a basic block.
7102
7103 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7105 Anna Tikhonova <anna.tikhonova@intel.com>
7106 Ilya Tocar <ilya.tocar@intel.com>
7107 Andrey Turetskiy <andrey.turetskiy@intel.com>
7108 Ilya Verbin <ilya.verbin@intel.com>
7109 Kirill Yukhin <kirill.yukhin@intel.com>
7110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7111
7112 * common/config/i386/i386-common.c
7113 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7114 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7115 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7116 (ix86_handle_option): Handle OPT_mavx512bw.
7117 * config/i386/cpuid.h (bit_AVX512BW): Define.
7118 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7119 set -mavx512bw accordingly.
7120 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7121 OPTION_MASK_ISA_AVX512BW.
7122 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7123 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7124 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7125 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7126 * config/i386/i386.h (TARGET_AVX512BW): Define.
7127 (TARGET_AVX512BW_P(x)): Ditto.
7128 * config/i386/i386.opt: Add mavx512bw.
7129
7130 2014-08-11 Richard Biener <rguenther@suse.de>
7131
7132 PR tree-optimization/62070
7133 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7134 Remove SSA checking.
7135
7136 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7137
7138 * asan.c (asan_check_flags): New enum.
7139 (build_check_stmt_with_calls): Removed function.
7140 (build_check_stmt): Split inlining logic to
7141 asan_expand_check_ifn.
7142 (instrument_derefs): Rename parameter.
7143 (instrument_mem_region_access): Rename parameter.
7144 (instrument_strlen_call): Likewise.
7145 (asan_expand_check_ifn): New function.
7146 (asan_instrument): Remove old code.
7147 (pass_sanopt::execute): Change handling of
7148 asan-instrumentation-with-call-threshold.
7149 (asan_clear_shadow): Fix formatting.
7150 (asan_function_start): Likewise.
7151 (asan_emit_stack_protection): Likewise.
7152 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7153 Update description.
7154 * internal-fn.c (expand_ASAN_CHECK): New function.
7155 * internal-fn.def (ASAN_CHECK): New internal function.
7156 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7157 Update description.
7158 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7159 * tree.c: Small comment fix.
7160
7161 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7162
7163 * gimple.c (gimple_call_fnspec): Support internal functions.
7164 (gimple_call_return_flags): Use const.
7165 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7166 * internal-fn.def: Add fnspec information.
7167 * internal-fn.h (internal_fn_fnspec): New function.
7168 (init_internal_fns): Declare new function.
7169 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7170 (init_internal_fns): New function.
7171 * tree-core.h: Update macro call.
7172 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7173
7174 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7175
7176 * lto-streamer.h (struct output_block::symbol): Change from
7177 struct symtab_node to plain symtab_node.
7178 (referenced_from_this_partition_p): Change first parameter
7179 from struct symtab_node to plain symtab_node.
7180
7181 2014-08-10 Marek Polacek <polacek@redhat.com>
7182
7183 PR c/51849
7184 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7185
7186 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7187
7188 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7189 DECL correctly; do not give up on types in static storage.
7190
7191 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7192
7193 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7194
7195 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7196
7197 * graphite-isl-ast-to-gimple.c:
7198 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7199
7200 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7201
7202 2014-08-08 Guozhi Wei <carrot@google.com>
7203
7204 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7205
7206 2014-08-08 Cary Coutant <ccoutant@google.com>
7207
7208 * dwarf2out.c (get_skeleton_type_unit): Remove.
7209 (output_skeleton_debug_sections): Remove skeleton type units.
7210 (output_comdat_type_unit): Likewise.
7211 (dwarf2out_finish): Likewise.
7212
7213 2014-08-07 Yi Yang <ahyangyi@google.com>
7214
7215 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7216
7217 2014-08-08 Richard Biener <rguenther@suse.de>
7218
7219 * lto-streamer.h (struct lto_input_block): Make it a class
7220 with a constructor.
7221 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7222 (struct lto_function_header, struct lto_simple_header,
7223 struct lto_simple_header_with_strings,
7224 struct lto_decl_header, struct lto_function_header): Make
7225 a simple inheritance hieararchy. Remove unused fields.
7226 (struct lto_asm_header): Remove.
7227 * lto-streamer-out.c (produce_asm): Adjust.
7228 (lto_output_toplevel_asms): Likewise.
7229 (produce_asm_for_decls): Likewise.
7230 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7231 * data-streamer-in.c (string_for_index): Likewise.
7232 * ipa-inline-analysis.c (inline_read_section): Likewise.
7233 * ipa-prop.c (ipa_prop_read_section): Likewise.
7234 (read_replacements_section): Likewise.
7235 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7236 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7237 (lto_destroy_simple_input_block): Likewise.
7238 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7239 (lto_input_toplevel_asms): Likewise.
7240
7241 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7243 Anna Tikhonova <anna.tikhonova@intel.com>
7244 Ilya Tocar <ilya.tocar@intel.com>
7245 Andrey Turetskiy <andrey.turetskiy@intel.com>
7246 Ilya Verbin <ilya.verbin@intel.com>
7247 Kirill Yukhin <kirill.yukhin@intel.com>
7248 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7249
7250 * common/config/i386/i386-common.c
7251 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7252 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7253 (ix86_handle_option): Handle OPT_mavx512dq.
7254 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7255 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7256 set -mavx512dq accordingly.
7257 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7258 OPTION_MASK_ISA_AVX512DQ.
7259 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7260 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7261 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7262 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7263 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7264 (TARGET_AVX512DQ_P(x)): Ditto.
7265 * config/i386/i386.opt: Add mavx512dq.
7266
7267 2014-08-08 Richard Biener <rguenther@suse.de>
7268
7269 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7270 target_percent, target_percent_s): Export.
7271 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7272 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7273 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7274 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7275 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7276 Move to gimple-fold.c.
7277 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7278 strcat and strcpy.
7279 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7280 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7281 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7282 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7283 (rewrite_call_expr_array): Remove.
7284 (fold_builtin_sprintf_chk): Likewise.
7285 (fold_builtin_snprintf_chk): Likewise.
7286 (fold_builtin_varargs): Remove handling of sprintf_chk,
7287 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7288 (gimple_fold_builtin_sprintf_chk): Remove.
7289 (gimple_fold_builtin_snprintf_chk): Likewise.
7290 (gimple_fold_builtin_varargs): Likewise.
7291 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7292 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7293 * gimple.c (gimple_seq_add_seq_without_update): New function.
7294 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7295 * gimple-fold.c: Include output.h.
7296 (gsi_replace_with_seq_vops): New function, split out from ...
7297 (gimplify_and_update_call_from_tree): ... here.
7298 (replace_call_with_value): New function.
7299 (replace_call_with_call_and_fold): Likewise.
7300 (var_decl_component_p): Moved from builtins.c.
7301 (gimple_fold_builtin_memory_op): Moved from builtins.c
7302 fold_builtin_memory_op and rewritten to GIMPLE.
7303 (gimple_fold_builtin_memset): Likewise.
7304 (gimple_fold_builtin_strcpy): Likewise.
7305 (gimple_fold_builtin_strncpy): Likewise.
7306 (gimple_fold_builtin_strcat): Likewise.
7307 (gimple_fold_builtin_fputs): Likewise.
7308 (gimple_fold_builtin_memory_chk): Likewise.
7309 (gimple_fold_builtin_stxcpy_chk): Likewise.
7310 (gimple_fold_builtin_stxncpy_chk): Likewise.
7311 (gimple_fold_builtin_snprintf_chk): Likewise.
7312 (gimple_fold_builtin_sprintf_chk): Likewise.
7313 (gimple_fold_builtin_strlen): New function.
7314 (gimple_fold_builtin_with_strlen): New function split out from
7315 gimple_fold_builtin.
7316 (gimple_fold_builtin): Change signature and handle
7317 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7318 here. Call gimple_fold_builtin_with_strlen.
7319 (gimple_fold_call): Adjust.
7320
7321 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7322
7323 * calls.c (precompute_arguments): Check
7324 promoted_for_signed_and_unsigned_p and set the promoted mode.
7325 (promoted_for_signed_and_unsigned_p): New function.
7326 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7327 and set the promoted mode.
7328 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7329 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7330 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7331
7332
7333 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7334
7335 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7336 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7337 (expand_call): Likewise.
7338 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7339 to get promoted mode.
7340 * combine.c (record_promoted_value): Skip > 0 comparison with
7341 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7342 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7343 of SUBREG_PROMOTED_UNSIGNED_P.
7344 (convert_modes): Likewise.
7345 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7346 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7347 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7348 SUBREG_PROMOTED_UNSIGNED_SET.
7349 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7350 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7351 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7352 SUBREG_PROMOTED_SET.
7353 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7354 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7355 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7356 of SUBREG_PROMOTED_UNSIGNED_P.
7357 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7358 (SUBREG_PROMOTED_SET): New define.
7359 (SUBREG_PROMOTED_GET): Likewise.
7360 (SUBREG_PROMOTED_SIGN): Likewise.
7361 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7362 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7363 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7364 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7365 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7366 (nonzero_bits1): Skip > 0 comparison with the results as
7367 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7368 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7369 of !SUBREG_PROMOTED_UNSIGNED_P.
7370 * simplify-rtx.c (simplify_unary_operation_1): Use new
7371 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7372 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7373 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7374 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7375
7376 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7377
7378 * ipa-devirt.c: Include gimple-pretty-print.h
7379 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7380 further tests.
7381 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7382 (get_polymorphic_call_info): Fix return value
7383 (type_change_info): New sturcture based on ipa-prop
7384 variant.
7385 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7386 based on ipa-prop variant.
7387 (extr_type_from_vtbl_ptr_store): New function
7388 based on ipa-prop variant.
7389 (record_known_type): New function.
7390 (check_stmt_for_type_change): New function.
7391 (get_dynamic_type): New function.
7392 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7393 * tree-ssa-pre.c: ipa-utils.h
7394 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7395 machinery; sanity check with ipa-prop devirtualization.
7396 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7397 polymorphic flag.
7398
7399 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7400
7401 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7402 * alias.c, cfgexpand.c, cgraphbuild.c,
7403 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7404 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7405 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7406 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7407 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7408 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7409 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7410 dse.c, except.c, gengtype.c, gimple-expr.c,
7411 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7412 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7413 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7414 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7415 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7416 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7417 pointer-set.h.
7418 * pointer-set.c: Remove file.
7419 * pointer-set.h: Remove file.
7420
7421 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7422
7423 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7424 * config/arm/types.md (f_sels, f_seld): Delete.
7425
7426 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7427
7428 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7429 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7430 (aarch64_movdi_<mode>high): Likewise.
7431 (aarch64_mov<mode>high_di): Likewise.
7432 (aarch64_movdi_<mode>low): Likewise.
7433 (aarch64_mov<mode>low_di): Likewise.
7434 (aarch64_movtilow_tilow): Likewise.
7435 Add comment explaining usage of fp,simd attributes and of
7436 TARGET_FLOAT and TARGET_SIMD.
7437
7438 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7439 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7440
7441 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7442 Use MOVN when one of the half-words is 0xffff.
7443
7444 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7445
7446 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7447
7448 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7449
7450 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7451 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7452 (rfs_str): String corresponding to RFS_* constants.
7453 (rank_for_schedule_stats_t): New typedef.
7454 (rank_for_schedule_stats): New static variable.
7455 (rfs_result): New static function.
7456 (rank_for_schedule): Track statistics for deciding heuristics.
7457 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7458 static functions.
7459 (ready_sort): Use them for debug printouts.
7460 (schedule_block): Init statistics state. Print statistics on
7461 rank_for_schedule decisions.
7462
7463 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7464
7465 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7466
7467 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7468
7469 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7470 constraint.
7471
7472 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7473
7474 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7475 function to not conflict.
7476 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7477 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7478 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7479 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7480 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7481 of pointer_map.
7482
7483 2014-08-07 Marek Polacek <polacek@redhat.com>
7484
7485 * fold-const.c (fold_binary_loc): Add folding of
7486 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7487
7488 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7489
7490 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7491 instead of type size.
7492 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7493
7494 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7495
7496 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7497 (*thumb1_movqi_insn): Likewise.
7498 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7499
7500 2014-08-07 Tom de Vries <tom@codesourcery.com>
7501
7502 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7503 (glibc_2_11_or_earlier): Remove effective-target keywords.
7504
7505 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7506
7507 * config/arm/arm.c (bdesc_2arg): Fix typo.
7508 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7509
7510 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7511
7512 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7513
7514 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7515
7516 PR debug/61923
7517 * haifa-sched.c (advance_one_cycle): Fix dump.
7518 (schedule_block): Don't advance cycle if we are already at the
7519 beginning of the cycle.
7520
7521 2014-08-06 Martin Jambor <mjambor@suse.cz>
7522
7523 PR ipa/61393
7524 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7525
7526 2014-08-06 Richard Biener <rguenther@suse.de>
7527
7528 PR lto/62034
7529 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7530 SCCs here.
7531 (lto_input_tree): Pop SCCs here.
7532
7533 2014-08-06 Richard Biener <rguenther@suse.de>
7534
7535 PR tree-optimization/61320
7536 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7537 handle misaligned loads.
7538
7539 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7540
7541 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7542 (aarch64_expand_vec_perm_const): Check for dup before zip.
7543
7544 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7545
7546 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7547 CONST_INT_P instead of GET_CODE and compare.
7548 (aarch64_select_cc_mode): Likewise.
7549 (aarch64_print_operand): Likewise.
7550 (aarch64_rtx_costs): Likewise.
7551 (aarch64_simd_valid_immediate): Likewise.
7552 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7553 (aarch64_simd_emit_pair_result_insn): Likewise.
7554
7555 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7556
7557 * gdbhooks.py (find_gcc_source_dir): New helper function.
7558 (class PassNames): New class, locating and parsing passes.def.
7559 (class BreakOnPass): New command "break-on-pass".
7560
7561 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7562
7563 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7564 getting olde.
7565
7566 2014-08-05 Richard Biener <rguenther@suse.de>
7567
7568 PR rtl-optimization/61672
7569 * emit-rtl.h (mem_attrs_eq_p): Declare.
7570 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7571 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7572 * cfgcleanup.c (merge_memattrs): Likewise.
7573 Include emit-rtl.h.
7574
7575 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7576
7577 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7578 rather than singleton vectors.
7579 (vqdmlsls_lane_s32): Likewise.
7580
7581 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7582
7583 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7584 Use VSDQ_HSI mode iterator.
7585 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7586 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7587 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7588 Use BUILTIN_VDQHS macro.
7589 (sqrdmulh_laneq): Likewise.
7590 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7591 (vqdmlals_laneq_s32): Likewise.
7592 (vqdmlslh_laneq_s16): Likewise.
7593 (vqdmlsls_laneq_s32): Likewise.
7594 (vqdmulhh_laneq_s16): Likewise.
7595 (vqdmulhs_laneq_s32): Likewise.
7596 (vqrdmulhh_laneq_s16): Likewise.
7597 (vqrdmulhs_laneq_s32): Likewise.
7598
7599 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7600
7601 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7602 (vmuld_laneq_f64): Likewise.
7603 (vmuls_laneq_f32): Likewise.
7604 (vmul_n_f64): Likewise.
7605 (vmuld_lane_f64): Reimplement in C.
7606 (vmuls_lane_f32): Likewise.
7607
7608 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7609
7610 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7611 to reservation.
7612 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7613
7614 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7615
7616 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7617 (rbitsi2): Likewise.
7618 (*arm_rev): Set predicable and predicable_short_it attributes.
7619
7620 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7621
7622 * convert.c (convert_to_integer): Guard transformation to lrint by
7623 -fno-math-errno.
7624
7625 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7626
7627 * config/aarch64/aarch64-builtins.c
7628 (aarch64_simd_builtin_type_mode): Delete.
7629 (v8qi_UP): Remap to V8QImode.
7630 (v4hi_UP): Remap to V4HImode.
7631 (v2si_UP): Remap to V2SImode.
7632 (v2sf_UP): Remap to V2SFmode.
7633 (v1df_UP): Remap to V1DFmode.
7634 (di_UP): Remap to DImode.
7635 (df_UP): Remap to DFmode.
7636 (v16qi_UP):V16QImode.
7637 (v8hi_UP): Remap to V8HImode.
7638 (v4si_UP): Remap to V4SImode.
7639 (v4sf_UP): Remap to V4SFmode.
7640 (v2di_UP): Remap to V2DImode.
7641 (v2df_UP): Remap to V2DFmode.
7642 (ti_UP): Remap to TImode.
7643 (ei_UP): Remap to EImode.
7644 (oi_UP): Remap to OImode.
7645 (ci_UP): Map to CImode.
7646 (xi_UP): Remap to XImode.
7647 (si_UP): Remap to SImode.
7648 (sf_UP): Remap to SFmode.
7649 (hi_UP): Remap to HImode.
7650 (qi_UP): Remap to QImode.
7651 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7652 (VAR1): Build builtin name.
7653 (aarch64_init_simd_builtins): Remove dead code.
7654
7655 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7656
7657 * graphite-isl-ast-to-gimple.c:
7658 (set_options): New function.
7659 (scop_to_isl_ast): Add calling of set_options.
7660
7661 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7662
7663 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7664 (analyze_iv_to_split_insn): Don't initialize them.
7665 (get_ivts_expr): Removed.
7666 (allocate_basic_variable, insert_base_initialization): Use
7667 SET_SRC instead of *get_ivts_expr.
7668 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7669
7670 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7671
7672 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7673 (translate_isl_ast_for_loop): Add checking of the
7674 flag_loop_parallelize_all.
7675 (ast_build_before_for): New function.
7676 (scop_to_isl_ast): Add checking of the
7677 flag_loop_parallelize_all.
7678 * graphite-dependences.c: Move the defenition of the
7679 scop_get_dependences from graphite-optimize-isl.c to this file.
7680 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7681 (carries_deps): Add checking of the x's value.
7682 * graphite-optimize-isl.c: Move the defenition of the
7683 scop_get_dependences to graphite-dependences.c.
7684 * graphite-poly.h: Add declarations of scop_get_dependences
7685 and carries_deps.
7686
7687 2014-08-04 Rohit <rohitarulraj@freescale.com>
7688
7689 PR target/60102
7690 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7691 names.
7692 (alt_reg_names): Likewise.
7693 (rs6000_dwarf_register_span): For SPE high registers, replace
7694 dwarf register numbers with GCC hard register numbers.
7695 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7696 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7697 register number for the corresponding GCC hard register number.
7698 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7699 newly added GCC hard register numbers for SPE high registers.
7700 (DWARF_FRAME_REGISTERS): Likewise.
7701 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7702 (DWARF_FRAME_REGNUM): Likewise.
7703 (FIXED_REGISTERS): Likewise.
7704 (CALL_USED_REGISTERS): Likewise.
7705 (CALL_REALLY_USED_REGISTERS): Likewise.
7706 (REG_ALLOC_ORDER): Likewise.
7707 (enum reg_class): Likewise.
7708 (REG_CLASS_NAMES): Likewise.
7709 (REG_CLASS_CONTENTS): Likewise.
7710 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7711
7712 2014-08-04 Richard Biener <rguenther@suse.de>
7713
7714 * gimple-fold.h (gimple_fold_builtin): Remove.
7715 * gimple-fold.c (gimple_fold_builtin): Make static.
7716 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7717 fold_stmt, not gimple_fold_builtin.
7718
7719 2014-08-04 Martin Liska <mliska@suse.cz>
7720
7721 * cgraph.h (csi_end_p): Removed.
7722 (csi_next): Likewise.
7723 (csi_node): Likewise.
7724 (csi_start): Likewise.
7725 (cgraph_node_in_set_p): Likewise.
7726 (cgraph_node_set_size): Likewise.
7727 (vsi_end_p): Likewise.
7728 (vsi_next): Likewise.
7729 (vsi_node): Likewise.
7730 (vsi_start): Likewise.
7731 (varpool_node_set_size): Likewise.
7732 (cgraph_node_set_nonempty_p): Likewise.
7733 (varpool_node_set_nonempty_p): Likewise.
7734 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7735 cgraph_node_set.
7736 * ipa-inline-transform.c: Likewise.
7737 * ipa-utils.c (cgraph_node_set_new): Removed.
7738 (cgraph_node_set_add): Likewise.
7739 (cgraph_node_set_remove): Likewise.
7740 (cgraph_node_set_find): Likewise.
7741 (dump_cgraph_node_set): Likewise.
7742 (debug_cgraph_node_set): Likewise.
7743 (free_cgraph_node_set): Likewise.
7744 (varpool_node_set_new): Likewise.
7745 (varpool_node_set_add): Likewise.
7746 (varpool_node_set_remove): Likewise.
7747 (varpool_node_set_find): Likewise.
7748 (dump_varpool_node_set): Likewise.
7749 (free_varpool_node_set): Likewise.
7750 (debug_varpool_node_set): Likewise.
7751 * tree-emutls.c (struct tls_var_data):
7752 (emutls_index): Removed.
7753 (emutls_decl): Likewise.
7754 (gen_emutls_addr): Function implementation uses newly added
7755 hash_map<varpool_node *, tls_var_data>.
7756 (clear_access_vars): Likewise.
7757 (create_emultls_var): Likewise.
7758 (ipa_lower_emutls): Likewise.
7759 (reset_access): New function.
7760
7761 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7762
7763 * config/i386/i386.c (ix86_option_override_internal): Add
7764 PTA_RDRND and PTA_MOVBE for bdver4.
7765
7766 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7767 James Greenhalgh <james.greenhalgh@arm.com>
7768
7769 * doc/md.texi (clrsb): Document.
7770 (clz): Change reference to x into operand 1.
7771 (ctz): Likewise.
7772 (popcount): Likewise.
7773
7774 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7775
7776 PR target/61713
7777 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7778 move to subtarget in serial version if result is ignored.
7779
7780 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7781 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7782
7783 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7784 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7785 (sched_analyze_insn): Update use of try_group_insn to
7786 sched_macro_fuse_insns.
7787 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7788 arguments that are not conditional jumps.
7789
7790 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7791
7792 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7793 family information. Handle BTVER2 cpu with cpuid family value.
7794
7795 2014-08-04 Tom de Vries <tom@codesourcery.com>
7796
7797 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7798 (glibc_2_11_or_earlier): Document effective-target keywords.
7799
7800 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7801
7802 * ipa-devirt.c (odr_type_warn_count): Add type.
7803 (possible_polymorphic_call_targets): Set it.
7804 (ipa_devirt): Use it.
7805
7806 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7807
7808 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7809 Document.
7810 * ipa-devirt.c: Include hash-map.h
7811 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7812 (clear_speculation): Break out of ...
7813 (get_class_context): ... here; speed up handling obviously useless
7814 speculations.
7815 (odr_type_warn_count, decl_warn_count): New structures.
7816 (final_warning_record): New structure.
7817 (final_warning_records): New static variable.
7818 (possible_polymorphic_call_targets): Cleanup handling of
7819 speculative info; do not build speculation when user do not care;
7820 record info about warnings when asked for.
7821 (add_decl_warning): New function.
7822 (type_warning_cmp): New function.
7823 (decl_warning_cmp): New function.
7824 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7825 (gate): Enable pass when warnings are requested.
7826 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7827 options.
7828
7829 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7830
7831 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7832 Fix cast.
7833 (hash_map::remove): New method.
7834 (hash_map::traverse): New method.
7835 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7836 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7837 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7838 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7839 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7840 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7841 pointer_map.
7842
7843 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7844
7845 * hash-set.h: new File.
7846 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7847 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7848 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7849 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7850 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7851 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7852 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7853 varpool.c: Use hash_set instead of pointer_set.
7854
7855 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7856
7857 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7858
7859 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7860
7861 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7862 for frame access when strict_p is false.
7863
7864 2014-08-01 Renlin Li <renlin.li@arm.com>
7865 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7866
7867 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7868 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7869 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7870 Declaration.
7871 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7872 predicate.
7873 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7874 aarch64_mem_pair_offset.
7875
7876 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7877
7878 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7879 offset.
7880 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7881 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7882
7883 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7884
7885 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7886
7887 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7888
7889 PR regression/61510
7890 * cgraphunit.c (analyze_functions): Use get_create rather than get
7891 for decls which are clones of abstract functions.
7892
7893 2014-08-01 Martin Liska <mliska@suse.cz>
7894
7895 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7896 * ipa-prop.h (count_formal_params): Global function created from static.
7897 * ipa-prop.c (count_formal_params): Likewise.
7898 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7899 profiles for semantically equivalent functions.
7900 * passes.c (do_per_function): If we load body of a function
7901 during WPA, this condition should behave same.
7902 * varpool.c (ctor_for_folding): More tolerant assert for variable
7903 aliases created during WPA.
7904
7905 2014-08-01 Martin Liska <mliska@suse.cz>
7906
7907 * doc/invoke.texi (Options That Control Optimization): Documentation
7908 for -foptimize-strlen introduced. Optimization levels default options
7909 fixed.
7910
7911 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7912
7913 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7914 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7915 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7916 type to bool.
7917 * stor-layout.h (min_align_of_type): New prototype.
7918 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7919 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7920 check.
7921 * ubsan.c: Include builtins.h.
7922 (ubsan_expand_bounds_ifn): Change return type to bool,
7923 always return true.
7924 (ubsan_expand_null_ifn): Change return type to bool, change
7925 argument to gimple_stmt_iterator *. Handle both null and alignment
7926 sanitization, take type from ckind argument's type rather than
7927 first argument.
7928 (instrument_member_call): Removed.
7929 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7930 Handle both null and alignment sanitization, don't say whole
7931 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7932 call instead of 2 argument.
7933 (instrument_null): Adjust instrument_mem_ref caller. Don't
7934 instrument calls here.
7935 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7936 like SANITIZE_NULL.
7937 * stor-layout.c (min_align_of_type): New function.
7938 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7939 Or it into SANITIZE_UNDEFINED.
7940 * doc/invoke.texi (-fsanitize=alignment): Document.
7941
7942 2014-07-31 Andi Kleen <ak@linux.intel.com>
7943
7944 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7945
7946 2014-07-31 Andi Kleen <ak@linux.intel.com>
7947
7948 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7949 inchash.
7950 (vn_reference_compute_hash): Dito.
7951 (vn_nary_op_compute_hash): Dito.
7952 (vn_phi_compute_hash): Dito.
7953 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7954
7955 2014-07-31 Andi Kleen <ak@linux.intel.com>
7956
7957 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7958 Rename to inchash:add_expr_commutative. Convert to inchash.
7959 (iterative_hash_hashable_expr): Rename to
7960 inchash:add_hashable_expr. Convert to inchash.
7961 (avail_expr_hash): Dito.
7962
7963 2014-07-31 Andi Kleen <ak@linux.intel.com>
7964
7965 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7966 Convert to inchash.
7967
7968 2014-07-31 Andi Kleen <ak@linux.intel.com>
7969
7970 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7971
7972 2014-07-31 Andi Kleen <ak@linux.intel.com>
7973
7974 * Makefile.in (OBJS): Add rtlhash.o
7975 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7976 (loc_checksum): Dito.
7977 (loc_checksum_ordered): Dito.
7978 (hash_loc_operands): Dito.
7979 (hash_locs): Dito.
7980 (hash_loc_list): Dito.
7981 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7982 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7983 * rtlhash.c: New file.
7984 * rtlhash.h: New file.
7985
7986 2014-07-31 Andi Kleen <ak@linux.intel.com>
7987
7988 * inchash.h (inchash): Change inchash class to namespace.
7989 (class hash): ... Rename from inchash.
7990 (add_object): Move from macro to class template.
7991 * lto-streamer-out.c (hash_tree): Change inchash
7992 to inchash::hash.
7993 * tree.c (build_type_attribute_qual_variant): Dito.
7994 (type_hash_list): Dito.
7995 (attribute_hash_list): Dito.
7996 (iterative_hstate_expr): Rename to inchash::add_expr
7997 (build_range_type_1): Change inchash to inchash::hash
7998 and use hash::add_expr.
7999 (build_array_type_1): Dito.
8000 (build_function_type): Dito
8001 (build_method_type_directly): Dito.
8002 (build_offset_type): Dito.
8003 (build_complex_type): Dito.
8004 (make_vector_type): Dito.
8005 * tree.h (iterative_hash_expr): Dito.
8006
8007 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8008
8009 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8010
8011 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8012
8013 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8014 correct alphabetical position.
8015 (vpaddd_f64): Rewrite using builtins.
8016 (vpaddd_s64): Move to correct alphabetical position.
8017 (vpaddd_u64): New.
8018
8019 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8020
8021 PR target/61844
8022 * config/sh/sh.c (sh_legitimate_address_p,
8023 sh_legitimize_reload_address): Handle reg+reg address modes when
8024 ALLOW_INDEXED_ADDRESS is false.
8025 * config/sh/predicates.md (general_movsrc_operand,
8026 general_movdst_operand): Likewise.
8027
8028 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8029
8030 * config/aarch64/aarch64-builtins.c
8031 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8032 BYTES_BIG_ENDIAN.
8033
8034 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8035
8036 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8037 the generated mask based on BYTES_BIG_ENDIAN.
8038 (aarch64_simd_check_vect_par_cnst_half): New.
8039 * config/aarch64/aarch64-protos.h
8040 (aarch64_simd_check_vect_par_cnst_half): New.
8041 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8042 the check out to aarch64_simd_check_vect_par_cnst_half.
8043 (vect_par_cnst_lo_half): Likewise.
8044 * config/aarch64/aarch64-simd.md
8045 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8046 (move_hi_quad_<mode>): Always generate a low mask.
8047
8048 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8049
8050 * doc/invoke.texi (AVR Options): Add documentation about
8051 __AVR_DEVICE_NAME__ built-in macro.
8052
8053 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8054
8055 PR target/61948
8056 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8057 constraints are satisfied.
8058 (<shift>di3_neon): Likewise.
8059
8060 2014-07-31 Richard Biener <rguenther@suse.de>
8061
8062 PR tree-optimization/61964
8063 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8064 by structural equality.
8065
8066 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8067
8068 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8069 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8070 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8071 New enums.
8072 * gcc.c (sanitize_spec_function): Support new option.
8073 (SANITIZER_SPEC): Remove now redundant check.
8074 * opts.c (common_handle_option): Support new option.
8075 (finish_options): Check for incompatibilities.
8076 * toplev.c (process_options): Split userspace-specific checks.
8077
8078 2014-07-31 Richard Biener <rguenther@suse.de>
8079
8080 * lto-streamer.h (struct output_block): Remove global.
8081 (struct data_in): Remove labels, num_named_labels and
8082 num_unnamed_labels.
8083 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8084 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8085
8086 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8087
8088 PR c++/60517
8089 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8090 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8091 (isolate_path): New argument to avoid inserting a trap.
8092 (find_implicit_erroneous_behaviour): Handle returning the address
8093 of a local variable.
8094 (find_explicit_erroneous_behaviour): Likewise.
8095
8096 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8097
8098 PR lto/61868
8099 * toplev.c (init_random_seed): Move piece of code never called to
8100 set_random_seed.
8101 (set_random_seed): see above.
8102
8103 2014-07-31 Tom de Vries <tom@codesourcery.com>
8104
8105 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8106
8107 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8108
8109 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8110 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8111
8112 2014-07-31 Richard Biener <rguenther@suse.de>
8113
8114 * data-streamer.h (streamer_write_data_stream): Declare here,
8115 renamed from ...
8116 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8117 * lto-cgraph.c (lto_output_node): Adjust.
8118 (lto_output_varpool_node): Likewise.
8119 * data-streamer-out.c (streamer_string_index): Likewise.
8120 (streamer_write_data_stream, lto_append_block): Move from ...
8121 * lto-section-out.c (lto_output_data_stream,
8122 lto_append_block): ... here.
8123
8124 2014-07-30 Mike Stump <mikestump@comcast.net>
8125
8126 * configure.ac: Also check for popen.
8127 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8128 * configure: Regenerate.
8129 * config.in: Regenerate.
8130
8131 2014-07-30 Martin Jambor <mjambor@suse.cz>
8132
8133 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8134 parameter to gimple.
8135
8136 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8137
8138 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8139 address as second parameter to __tpf_eh_return routine.
8140
8141 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8142
8143 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8144 Thumb2.
8145
8146 2014-07-30 Tom Tromey <tromey@redhat.com>
8147
8148 PR c/59855
8149 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8150 * doc/extend.texi (Type Attributes): Document designated_init
8151 attribute.
8152
8153 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8154
8155 * graphite-isl-ast-to-gimple.c:
8156 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8157 (gcc_expression_from_isl_expression): Pass type to
8158 gcc_expression_from_isl_ast_expr_id.
8159
8160 2014-07-30 Richard Biener <rguenther@suse.de>
8161
8162 * lto-streamer.h (lto_write_data): New function.
8163 * langhooks.c (lhd_append_data): Do not free block.
8164 * lto-section-out.c (lto_write_data): New function writing
8165 raw data to the current section.
8166 (lto_write_stream): Adjust for langhook semantic change.
8167 (lto_destroy_simple_output_block): Write header directly.
8168 * lto-opts.c (lto_write_options): Write options directly.
8169 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8170 (lto_output_toplevel_asms): Likewise.
8171 (copy_function_or_variable): Copy data directly.
8172 (write_global_references): Output index table directly.
8173 (lto_output_decl_state_refs): Likewise.
8174 (write_symbol): Write data directly.
8175 (produce_symtab): Adjust.
8176 (produce_asm_for_decls): Output header and refs directly.
8177
8178 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8179
8180 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8181 to speculative_targets
8182 (get_class_context): Fix handling of contextes without outer type;
8183 avoid matching non-polymorphic types in LTO.
8184 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8185 parameter to speculative_targetsp; handle speculation.
8186 (dump_possible_polymorphic_call_targets): Update dumping.
8187
8188 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8189
8190 * common.opt (Wodr): Enable by default.
8191
8192 2014-07-29 Olivier Hainque <hainque@adacore.com>
8193
8194 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8195
8196 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8197
8198 PR bootstrap/61914
8199 * gengtype.c (strtoken): New function.
8200 (create_user_defined_type): Replace strtok with strtoken.
8201
8202 2014-07-29 Nathan Sidwell <nathan@acm.org>
8203
8204 * gcov-io.c (gcov_var): Make hidden.
8205 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8206 (gcov_do_dump): Declare.
8207 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8208
8209 2014-07-29 Martin Jambor <mjambor@suse.cz>
8210
8211 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8212 parameter to gimple.
8213 (sra_modify_assign): Likewise.
8214
8215 2014-07-29 Richard Biener <rguenther@suse.de>
8216
8217 PR middle-end/52478
8218 * expr.c (expand_expr_real_2): Revert last change.
8219
8220 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8221
8222 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8223 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8224 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8225 call.
8226 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8227 (contains_type_p): Forward declare.
8228 (polymorphic_call_target_hasher::hash): Hash speculative info.
8229 (polymorphic_call_target_hasher::equal): Compare speculative info.
8230 (get_class_context): Handle speuclation.
8231 (contains_type_p): Update.
8232 (get_polymorphic_call_info_for_decl): Update.
8233 (walk_ssa_copies): Break out from ...
8234 (get_polymorphic_call_info): ... here; set speculative context
8235 before giving up.
8236 * ipa-prop.c (ipa_write_indirect_edge_info,
8237 ipa_read_indirect_edge_info): Stream speculative context.
8238 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8239 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8240 SPECULATIVE_MAYBE_DERIVED_TYPE).
8241 (possible_polymorphic_call_targets overriders): Update.
8242 (dump_possible_polymorphic_call_targets overriders): Update.
8243 (dump_possible_polymorphic_call_target_p overriders): Update.
8244
8245 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8246
8247 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8248 ipa-devirt path; fix thinko there.
8249
8250 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8251
8252 * config/i386/i386.c (ix86_return_in_memory): Replace one
8253 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8254
8255 2014-07-28 Marek Polacek <polacek@redhat.com>
8256
8257 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8258
8259 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8260
8261 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8262 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8263 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8264 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8265 (USE_LD_AS_NEEDED): Likewise.
8266 (ASM_APP_ON): Likewise.
8267 (ASM_APP_OFF): Likewise.
8268 (TARGET_POSIX_IO): Likewise.
8269 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8270 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8271 (USE_LD_AS_NEEDED): Likewise.
8272 (ASM_APP_ON): Likewise.
8273 (ASM_APP_OFF): Likewise.
8274 (TARGET_POSIX_IO): Likewise.
8275
8276 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8277
8278 PR middle-end/61734
8279 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8280 operators other than the equality operators.
8281
8282 2014-07-28 Richard Biener <rguenther@suse.de>
8283
8284 PR middle-end/52478
8285 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8286 sure to register SImode ones, not only >= word_mode ones.
8287 * expr.c (expand_expr_real_2): When expanding -ftrapv
8288 binops do not use OPTAB_LIB_WIDEN.
8289
8290 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8291
8292 PR middle-end/61919
8293 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8294 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8295 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8296 inserting them in the insn stream.
8297
8298 2014-07-28 Marek Polacek <polacek@redhat.com>
8299
8300 PR middle-end/61913
8301 * common.opt (Wodr): Add Var.
8302
8303 2014-07-28 Richard Biener <rguenther@suse.de>
8304
8305 PR tree-optimization/61921
8306 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8307 if there is a varpool node before dereferencing it.
8308
8309 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8310
8311 * graphite-sese-to-poly.c:
8312 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8313 id of the pbb), which contains pointer to the pbb1.
8314
8315 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8316
8317 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8318
8319 * graphite-isl-ast-to-gimple.c:
8320 (graphite_create_new_guard): New function.
8321 (translate_isl_ast_node_if): New function.
8322 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8323
8324 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8325
8326 2014-07-27 Anthony Green <green@moxielogic.com>
8327
8328 * config.gcc: Add moxie-*-moxiebox* configuration.
8329 * config/moxie/moxiebox.h: New file.
8330
8331 2014-07-26 Andrew Pinski <apinski@cavium.com>
8332
8333 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8334 from the read only register.
8335
8336 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8337
8338 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8339 as the allocation class if it isn't likely to be spilled.
8340
8341 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8342
8343 * rtl.h (tls_referenced_p): Declare.
8344 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8345 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8346 (mips_cannot_force_const_mem): Use tls_referenced_p.
8347 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8348 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8349 instead of pa_tls_referenced_p.
8350 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8351 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8352 (pa_legitimate_constant_p): Likewise.
8353 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8354 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8355 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8356 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8357 rs6000_tls_referenced_p.
8358 (rs6000_tls_symbol_ref_1): Delete.
8359
8360 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8361
8362 PR target/44551
8363 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8364 Optimize inverse of a VEC_CONCAT.
8365
8366 2014-07-25 Xinliang David Li <davidxl@google.com>
8367
8368 * params.def: New parameter.
8369 * coverage.c (get_coverage_counts): Check new flag.
8370 (coverage_compute_profile_id): Check new flag.
8371 (coverage_begin_function): Check new flag.
8372 (coverage_end_function): Check new flag.
8373 * value-prof.c (coverage_node_map_initialized_p): New function.
8374 (init_node_map): Populate map with all functions.
8375 * doc/invoke.texi: Document new parameter.
8376
8377 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8378 Richard Biener <rguenther@suse.de>
8379
8380 * lto-streamer-out.c (struct sccs): Turn to ...
8381 (class DFS): ... this one; refactor the DFS walk so it can
8382 be re-done on per-SCC basis.
8383 (DFS::DFS): New constructor.
8384 (DFS::~DFS): New destructor.
8385 (hash_tree): Add new MAP argument holding in-SCC hash values;
8386 remove POINTER_TYPE hashing hack.
8387 (scc_entry_compare): Rename to ...
8388 (DFS::scc_entry_compare): ... this one.
8389 (hash_scc): Rename to ...
8390 (DFS::hash_scc): ... this one; pass output_block instead
8391 of streamer_cache; work harder to get unique and stable SCC
8392 hashes.
8393 (DFS_write_tree): Rename to ...
8394 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8395 (lto_output_tree): Update.
8396
8397 2014-07-25 Andi Kleen <ak@linux.intel.com>
8398
8399 * lto-streamer-out.c (hash_tree): Convert to inchash.
8400
8401 2014-07-25 Andi Kleen <ak@linux.intel.com>
8402
8403 * tree.c (build_type_attribute_qual_variant): Use inchash.
8404 (type_hash_list): Dito.
8405 (attribute_hash_list): Dito
8406 (iterative_hstate_expr): Dito.
8407 (iterative_hash_expr): Dito.
8408 (build_range_type_1): Dito.
8409 (build_array_type_1): Dito.
8410 (build_function_type): Dito.
8411 (build_method_type_directly): Dito.
8412 (build_offset_type): Dito.
8413 (build_complex_type): Dito.
8414 (make_vector_type): Dito.
8415 * tree.h (iterative_hash_expr): Add compat wrapper.
8416 (iterative_hstate_expr): Add.
8417
8418 2014-07-25 Andi Kleen <ak@linux.intel.com>
8419
8420 * Makefile.in (OBJS): Add inchash.o.
8421 (PLUGIN_HEADERS): Add inchash.h.
8422 * ipa-devirt.c: Include inchash.h.
8423 * lto-streamer-out.c: Dito.
8424 * tree-ssa-dom.c: Dito.
8425 * tree-ssa-pre.c: Dito.
8426 * tree-ssa-sccvn.c: Dito.
8427 * tree-ssa-tail-merge.c: Dito.
8428 * asan.c: Dito.
8429 * tree.c (iterative_hash_hashval_t): Move to ...
8430 (iterative_hash_host_wide_int): Move to ...
8431 * inchash.c: Here. New file.
8432 * tree.h (iterative_hash_hashval_t): Move to ...
8433 (iterative_hash_host_wide_int): Move to ...
8434 * inchash.h: Here. New file.
8435
8436 2014-07-25 Richard Biener <rguenther@suse.de>
8437
8438 PR middle-end/61762
8439 PR middle-end/61894
8440 * fold-const.c (native_encode_int): Add and handle offset
8441 parameter to do partial encodings of expr.
8442 (native_encode_fixed): Likewise.
8443 (native_encode_real): Likewise.
8444 (native_encode_complex): Likewise.
8445 (native_encode_vector): Likewise.
8446 (native_encode_string): Likewise.
8447 (native_encode_expr): Likewise.
8448 * fold-const.c (native_encode_expr): Add offset parameter
8449 defaulting to -1.
8450 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8451 (fold_ctor_reference): Handle all reads from tcc_constant
8452 ctors.
8453
8454 2014-07-25 Richard Biener <rguenther@suse.de>
8455
8456 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8457 as possibly unused.
8458
8459 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8460
8461 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8462
8463 2014-07-24 Kyle McMartin <kyle@redhat.com>
8464
8465 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8466
8467 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8468
8469 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8470 Add prototype.
8471 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8472 function.
8473 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8474 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8475 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8476
8477 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8478
8479 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8480 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8481 aggregate types. Instead, *all* aggregate types, except for single-
8482 element or homogeneous float/vector aggregates, are quadword-aligned
8483 if required by their type alignment. Issue -Wpsabi note when a type
8484 is now treated differently than before.
8485
8486 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8487
8488 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8489 does not fit fully into floating-point registers, and there is still
8490 space in the register parameter area, use GPRs to pass those parts
8491 of the argument. Issue -Wpsabi note if any parameter is now treated
8492 differently than before.
8493 (rs6000_arg_partial_bytes): Update.
8494
8495 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8496
8497 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8498
8499 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8500
8501 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8502 * toplev.c (initialize_rtl): Don't use it. Move previously
8503 "language-dependent" calls to...
8504 (backend_init): ...here.
8505 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8506 Assert that RTL initialization hasn't happend yet.
8507
8508 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8509
8510 PR rtl-optimization/61629
8511 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8512 they have already been initialized.
8513
8514 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8515
8516 PR middle-end/61268
8517 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8518 DECL_INCOMING_RTL and entry_parm.
8519 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8520 * calls.c (load_register_parameters): Likewise argument values.
8521 (emit_library_call_value_1, store_one_arg): Likewise argument
8522 save areas.
8523 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8524 stack slot.
8525 * explow.c (validize_mem): Modify the argument in-place.
8526
8527 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8528
8529 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8530 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8531
8532 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8533
8534 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8535 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8536
8537 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8538
8539 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8540 (aarch64_save_callee_saves): New parameter "skip_wb".
8541 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8542
8543 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8544
8545 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8546 "wb_candidate2".
8547 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8548
8549 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8550
8551 * graphite-isl-ast-to-gimple.c:
8552 (graphite_create_new_loop): Add calling of isl_id_free to properly
8553 decrement reference counts.
8554
8555 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8556
8557 2014-07-24 Martin Liska <mliska@suse.cz>
8558 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8559 function used.
8560 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8561 (rs6000_code_end): Likewise.
8562
8563 2014-07-24 Martin Liska <mliska@suse.cz>
8564
8565 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8566 symtab_node funtion used.
8567 (rs6000_xcoff_declare_object_name): Likewise.
8568
8569 2014-07-24 Martin Liska <mliska@suse.cz>
8570
8571 * cgraphunit.c (compile): Correct function used.
8572
8573 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8574
8575 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8576 as non-indexable.
8577
8578 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8579
8580 PR lto/61802
8581 * varasm.c (bss_initializer_p): Handle offlined ctors.
8582 (align_variable, get_variable_align): Likewise.
8583 (make_decl_one_only): Likewise.
8584 (default_binds_local_p_1): Likewise.
8585 (decl_binds_to_current_def_p): Likewise.
8586 (get_variable_section): Get constructor if it is offlined.
8587 (assemble_variable_contents): Sanity check that the caller
8588 streamed in the ctor in LTO.
8589
8590 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8591
8592 * graphite-isl-ast-to-gimple.c:
8593 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8594 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8595 isl_ast_op_pdiv_r to the different case.
8596
8597 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8598
8599 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8600
8601 PR middle-end/61876
8602 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8603 when flag_errno_math is on.
8604
8605 2014-07-24 Martin Liska <mliska@suse.cz>
8606
8607 * cgraph.h (varpool_node):
8608 (availability get_availability (void)):
8609 created from cgraph_variable_initializer_availability
8610 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8611 created from: cgraph_variable_initializer_availability
8612 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8613 (void finalize_named_section_flags (void)):
8614 created from varpool_finalize_named_section_flags
8615 (bool assemble_decl (void)): created from varpool_assemble_decl
8616 (void analyze (void)): created from varpool_analyze_node
8617 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8618 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8619 (void remove_initializer (void)): created from varpool_remove_initializer
8620 (tree get_constructor (void)): created from varpool_get_constructor
8621 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8622 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8623 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8624 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8625 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8626 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8627 (static bool output_variables (void)): created from varpool_output_variables
8628 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8629 created from varpool_extra_name_alias
8630 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8631 (static void dump_varpool (FILE *f)): created from dump_varpool
8632 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8633 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8634 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8635 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8636 (void assemble_aliases (void)): created from assemble_aliases
8637
8638 2014-07-24 Martin Liska <mliska@suse.cz>
8639
8640 * cgraph.h (symtab_node):
8641 (void register_symbol (void)): created from symtab_register_node
8642 (void remove (void)): created from symtab_remove_node
8643 (void dump (FILE *f)): created from dump_symtab_node
8644 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8645 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8646 (struct ipa_ref *add_reference (symtab_node *referred_node,
8647 enum ipa_ref_use use_type)): created from add_reference
8648 (struct ipa_ref *add_reference (symtab_node *referred_node,
8649 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8650 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8651 gimple stmt)): created from maybe_add_reference
8652 (bool semantically_equivalent_p (symtab_node *target)): created from
8653 symtab_semantically_equivalent_p
8654 (void remove_from_same_comdat_group (void)): created from
8655 remove_from_same_comdat_group
8656 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8657 symtab_add_to_same_comdat_group
8658 (void dissolve_same_comdat_group_list (void)): created from
8659 symtab_dissolve_same_comdat_group_list
8660 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8661 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8662 created from symtab_alias_ultimate_target
8663 (inline symtab_node *next_defined_symbol (void)): created from
8664 symtab_next_defined_symbol
8665 (bool resolve_alias (symtab_node *target)): created from
8666 symtab_resolve_alias
8667 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8668 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8669 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8670 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8671 (void set_section (const char *section)): created from set_section_1
8672 (enum availability get_availability (void)): created from symtab_node_availability
8673 (void make_decl_local (void)): created from symtab_make_decl_local
8674 (bool real_symbol_p (void)): created from symtab_read_node
8675 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8676 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8677 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8678 symtab_in_same_comdat_p;
8679 (bool address_taken_from_non_vtable_p (void)): created from
8680 address_taken_from_non_vtable_p
8681 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8682 (static void dump_table (FILE *)): created from dump_symtab
8683 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8684 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8685 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8686 symtab_used_from_object_file_p
8687 (void dump_base (FILE *)): created from dump_symtab_base
8688 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8689 (void unregister (void)): created from symtab_unregister_node
8690 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8691 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8692 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8693 symtab_nonoverwritable_alias_1
8694 * cgraph.h (cgraph_node):
8695 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8696 created from cgraph_remove_node_and_inline_clones
8697 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8698 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8699 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8700 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8701 created from cgraph_function_node
8702 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8703 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8704 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8705 created from cgraph_create_clone
8706 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8707 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8708 created from cgraph_create_virtual_clone
8709 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8710 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8711 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8712 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8713 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8714 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8715 created from cgraph_function_version_info
8716 (struct cgraph_function_version_info *insert_new_function_version (void)):
8717 created from insert_new_cgraph_node_version
8718 (struct cgraph_function_version_info *function_version (void)): created from
8719 get_cgraph_node_version
8720 (void analyze (void)): created from analyze_function
8721 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8722 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8723 tree real_alias) cgraph_add_thunk
8724 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8725 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8726 created from cgraph_function_or_thunk_node
8727 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8728 created from expand_thunk
8729 (void reset (void)): created from cgraph_reset_node
8730 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8731 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8732 (void remove (void)): created from cgraph_remove_node
8733 (void dump (FILE *f)): created from dump_cgraph_node
8734 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8735 (bool get_body (void)): created from cgraph_get_body
8736 (void release_body (void)): created from cgraph_release_function_body
8737 (void unnest (void)): created from cgraph_unnest_node
8738 (void make_local (void)): created from cgraph_make_node_local
8739 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8740 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8741 gcov_type count, int freq)): created from cgraph_create_edge
8742 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8743 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8744 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8745 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8746 created from cgraph_create_edge_including_clones
8747 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8748 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8749 (void remove_callers (void)): created from cgraph_node_remove_callers
8750 (void remove_callees (void)): created from cgraph_node_remove_callees
8751 (enum availability get_availability (void)): created from cgraph_function_body_availability
8752 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8753 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8754 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8755 (void call_duplication_hooks (cgraph_node *node2)): created from
8756 cgraph_call_node_duplication_hooks
8757 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8758 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8759 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8760 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8761 (void call_function_insertion_hooks (void)):
8762 created from cgraph_call_function_insertion_hooks
8763 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8764 (bool local_p (void)): created from cgraph_local_node
8765 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8766 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8767 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8768 (inline bool only_called_directly_or_aliased_p (void)):
8769 created from cgraph_only_called_directly_or_aliased_p
8770 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8771 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8772 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8773 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8774 (bool can_remove_if_no_direct_calls_p (void)):
8775 created from cgraph_can_remove_if_no_direct_calls_p
8776 (inline bool has_gimple_body_p (void)):
8777 created from cgraph_function_with_gimple_body_p
8778 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8779 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8780 (static inline void debug_cgraph (void)): created from debug_cgraph
8781 (static void record_function_versions (tree decl1, tree decl2)):
8782 created from record_function_versions
8783 (static void delete_function_version (tree decl)):
8784 created from delete_function_version
8785 (static void add_new_function (tree fndecl, bool lowered)):
8786 created from cgraph_add_new_function
8787 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8788 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8789 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8790 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8791 (static cgraph_node *get_for_asmname (tree asmname)):
8792 created from cgraph_node_for_asm
8793 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8794 created from cgraph_same_body_alias
8795 (static bool used_from_object_file_p_worker (cgraph_node *node,
8796 void *): new function
8797 (static bool non_local_p (cgraph_node *node, void *)):
8798 created from cgraph_non_local_node_p_1
8799 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8800 created from verify_cgraph
8801 (static bool make_local (cgraph_node *node, void *)):
8802 created from cgraph_make_node_local
8803 (static cgraph_node *create_alias (tree alias, tree target)):
8804 created from cgraph_create_function_alias
8805 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8806 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8807 created from cgraph_create_edge_1
8808 * cgraph.h (varpool_node):
8809 (void remove (void)): created from varpool_remove_node
8810 (void dump (FILE *f)): created from dump_varpool_node
8811
8812 2014-07-24 Richard Biener <rguenther@suse.de>
8813
8814 PR ipa/61823
8815 * tree-ssa-structalias.c (create_variable_info_for_1):
8816 Use varpool_get_constructor.
8817 (create_variable_info_for): Likewise.
8818
8819 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8820
8821 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8822 subtract outgoing area size when restoring stack_pointer_rtx.
8823
8824 2014-07-24 Nick Clifton <nickc@redhat.com>
8825
8826 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8827 that operations are taking place in parallel.
8828 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8829
8830 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8831
8832 * omp-low.c (extract_omp_for_data): Add missing break statement.
8833
8834 2014-07-24 Richard Biener <rguenther@suse.de>
8835
8836 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8837 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8838 and adjust MOVE_RATIO query accordingly.
8839 (estimate_num_insns): Adjust callers.
8840 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8841 * ipa-cp.c (gather_context_independent_values,
8842 estimate_local_effects): Likewise.
8843 * ipa-split.c (consider_split): Likewise.
8844
8845 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8846
8847 * config/i386/driver-i386.c: Remove names of unused arguments and
8848 unnecessary unused attributes.
8849 * config/i386/host-mingw32.c: Likewise.
8850 * config/i386/i386.c: Likewise.
8851 * config/i386/winnt-stubs.c: Likewise.
8852 * config/i386/winnt.c: Likewise.
8853
8854 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8855
8856 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8857 (aarch64_gen_loadwb_pair): New helper function.
8858 (aarch64_expand_epilogue): Simplify code using new helper functions.
8859 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8860
8861 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8862
8863 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8864 (aarch64_gen_storewb_pair): New helper function.
8865 (aarch64_expand_prologue): Simplify code using new helper functions.
8866 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8867
8868 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8869
8870 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8871 Rename to aarch64_save_callee_saves, remove restore code.
8872 (aarch64_restore_callee_saves): New function.
8873
8874 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8875
8876 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8877 (aarch64_save_callee_saves): New function to handle reg save
8878 for both core and vectore regs.
8879
8880 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8881
8882 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8883 (aarch64_gen_store_pair): New helper function.
8884 (aarch64_save_or_restore_callee_save_registers)
8885 (aarch64_save_or_restore_fprs): Use new helper functions.
8886
8887 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8888
8889 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8890 (aarch64_save_or_restore_callee_save_registers)
8891 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8892
8893 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8894
8895 * config/aarch64/aarch64.c
8896 (aarch64_save_or_restore_callee_save_registers)
8897 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8898
8899 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8900
8901 * config/aarch64/aarch64.c
8902 (aarch64_save_or_restore_callee_save_registers)
8903 (aarch64_save_or_restore_fprs): Remove 'increment'.
8904
8905 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8906
8907 * config/aarch64/aarch64.c
8908 (aarch64_save_or_restore_callee_save_registers)
8909 (aarch64_save_or_restore_fprs): Use register offset in
8910 cfun->machine->frame.reg_offset.
8911
8912 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8913
8914 * config/aarch64/aarch64.c
8915 (aarch64_save_or_restore_callee_save_registers)
8916 (aarch64_save_or_restore_fprs): Remove base_rtx.
8917
8918 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8919
8920 * config/aarch64/aarch64.c
8921 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8922 to 'start_offset'. Remove local variable 'start_offset'.
8923
8924 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8925
8926 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8927 type to HOST_WIDE_INT.
8928
8929 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8930
8931 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8932 (aarch64_save_or_restore_fprs)
8933 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8934
8935 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8936
8937 * config/arm/t-rtems-eabi: Add
8938 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8939 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8940 mbig-endian/mthumb/march=armv7-r, and
8941 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8942 multilibs.
8943
8944 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8945 Chris Johns <chrisj@rtems.org>
8946 Joel Sherrill <joel.sherrill@oarcorp.com>
8947
8948 * config.gcc: Add nios2-*-rtems*.
8949 * config/nios2/rtems.h: New file.
8950 * gcc/config/nios2/t-rtems: New file.
8951
8952 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8953
8954 PR target/61396
8955 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8956 constant numbers, not general constants.
8957 (rs6000_expand_vector_init): Ditto.
8958
8959 2014-07-23 Nathan Sidwell <nathan@acm.org>
8960
8961 * gcov-tool.c (gcov_list): Declare here.
8962 (set_gcov_list): Remove.
8963 (gcov_output_files): Set gcov_list directly.
8964
8965 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8966
8967 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8968
8969 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8970
8971 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8972 callee-saved registers are available for padding purpose
8973 and r3 is not mandatory, then prefer use those callee-saved
8974 instead of r3.
8975
8976 2014-07-23 Richard Biener <rguenther@suse.de>
8977
8978 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8979 * combine.c: Include statistics.h and params.h.
8980 (combine_instructions): Guard three and four insn combines
8981 with max-combine-insns value. Record statistics for combines
8982 performed.
8983 * doc/invoke.texi (max-combine-insns): Document new param.
8984
8985 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8986
8987 * graphite-isl-ast-to-gimple.c:
8988 (translate_isl_ast_node_block): New function.
8989 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8990
8991 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8992 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8993
8994 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8995
8996 * graphite-isl-ast-to-gimple.c:
8997 (get_max_schedule_dimensions): New function.
8998 (extend_schedule): Likewise.
8999 (generate_isl_schedule): Add calling of extend_schedule and
9000 get_max_schedule_dimensions.
9001
9002 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9003
9004 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9005 (case UNSPEC): Handle UNSPEC_RBIT.
9006
9007 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9008
9009 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9010 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9011
9012 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9013
9014 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9015
9016 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9017
9018 * graphite-isl-ast-to-gimple.c:
9019 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9020 (ivs_params_clear):
9021 (build_iv_mapping): New function.
9022 (translate_isl_ast_node_user): Likewise.
9023 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9024
9025 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9026 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9027 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9028
9029 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9030
9031 PR target/55701
9032 * config/arm/arm.md (setmem): New pattern.
9033 * config/arm/arm-protos.h (struct tune_params): New fields.
9034 (arm_gen_setmem): New prototype.
9035 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9036 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9037 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9038 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9039 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9040 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9041 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9042 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9043 (arm_const_inline_cost): New function.
9044 (arm_block_set_max_insns): New function.
9045 (arm_block_set_non_vect_profit_p): New function.
9046 (arm_block_set_vect_profit_p): New function.
9047 (arm_block_set_unaligned_vect): New function.
9048 (arm_block_set_aligned_vect): New function.
9049 (arm_block_set_unaligned_non_vect): New function.
9050 (arm_block_set_aligned_non_vect): New function.
9051 (arm_block_set_vect, arm_gen_setmem): New functions.
9052
9053 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9054
9055 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9056
9057 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9058
9059 PR target/61855
9060 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9061 out of #ifdef __OPTIMIZE__.
9062
9063 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9064
9065 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9066 different trapping status if -fnon-call-exceptions is enabled.
9067
9068 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9069
9070 * expr.c (store_field): Handle VOIDmode for calls that return values
9071 in multiple locations.
9072
9073 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9074
9075 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9076 (altivec_vsldoi_<mode>): Likewise.
9077
9078 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9079
9080 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9081 to the number of characters in the line.
9082
9083 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9084
9085 * graphite-isl-ast-to-gimple.c: Add using of
9086 build_nonstandard_integer_type instead of int128_integer_type_node.
9087
9088 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9089
9090 * toplev.c (output_stack_usage): Adjust the location of the warning.
9091
9092 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9093
9094 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9095 (*membar_storeload): Disable for LEON3.
9096
9097 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9098
9099 PR rtl-optimization/61461
9100 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9101
9102 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9103
9104 PR target/61794
9105 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9106 Fix instruction constraint.
9107 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9108
9109 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9110
9111 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9112
9113 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9114
9115 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9116 GNU coding standards.
9117 (nds32_register_move_cost): Likewise.
9118 (nds32_memory_move_cost): Likewise.
9119 (nds32_address_cost): Likewise.
9120
9121 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9122
9123 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9124
9125 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9126
9127 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9128 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9129 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9130 (HAVE_sync_compare_and_swapqi): Define.
9131 (HAVE_sync_compare_and_swaphi): Likewise.
9132 (HAVE_sync_compare_and_swapsi): Likewise.
9133
9134 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9135
9136 * config/mips/p5600.md: Add missing cpu tests.
9137
9138 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9139
9140 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9141 (vmla_f64): Likewise.
9142 (vfms_f64): Likewise.
9143 (vmls_f64): Likewise.
9144
9145 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9146
9147 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9148 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9149
9150 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9151
9152 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9153 (vmlal_high_lane_s32): Likewise.
9154 (vmlal_high_lane_u16): Likewise.
9155 (vmlal_high_lane_u32): Likewise.
9156 (vmlsl_high_lane_s16): Likewise.
9157 (vmlsl_high_lane_s32): Likewise.
9158 (vmlsl_high_lane_u16): Likewise.
9159 (vmlsl_high_lane_u32): Likewise.
9160
9161 2014-07-17 Terry Guo <terry.guo@arm.com>
9162
9163 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9164 (alus_reg): Renamed to alus_sreg.
9165 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9166 from alu_reg to alu_sreg. Change type of dsp instructions from
9167 alu_reg to alu_dsp_reg.
9168 * config/arm/thumb1.md: Likewise.
9169 * config/arm/thumb2.md: Likewise.
9170 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9171 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9172 with alu_sreg and alus_sreg.
9173 * config/arm/arm1026ejs.md (alu_op): Likewise.
9174 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9175 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9176 * config/arm/fa526.md (526_alu_op): Likewise.
9177 * config/arm/fa606te.md (606te_alu_op): Likewise.
9178 * config/arm/fa626te.md (626te_alu_op): Likewise.
9179 * config/arm/fa726te.md (726te_alu_op): Likewise.
9180 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9181 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9182 alu_sreg, alu_dsp_reg and alus_sreg.
9183 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9184 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9185 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9186 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9187 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9188 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9189 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9190 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9191 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9192 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9193 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9194 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9195 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9196 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9197 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9198 alus_reg to alus_sreg.
9199
9200 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9201
9202 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9203 infinity format.
9204
9205 2014-07-17 Richard Biener <rguenther@suse.de>
9206
9207 PR rtl-optimization/61801
9208 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9209 don't set reg_pending_barrier if it appears in a debug-insn.
9210
9211 2014-07-16 DJ Delorie <dj@redhat.com>
9212
9213 * config/rx/rx.c (rx_option_override): Fix alignment values.
9214 (rx_align_for_label): Likewise.
9215
9216 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9217
9218 PR target/61737.
9219 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9220 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9221 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9222 functions.
9223 (cris_print_index, cris_print_operand, cris_constant_index_p)
9224 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9225 (cris_address_cost): Ditto last CONSTANT_P.
9226 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9227 callers changed. Yield cris_offsettable_symbol for non-PIC
9228 constant symbolic expressions including labels. Yield cris_unspec
9229 for all unspecs.
9230 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9231 target to pic_offset_table_rtx for calls that will likely go
9232 through PLT, const0_rtx when they can't. All callers changed.
9233 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9234 symbolic expressions to be PICified. Remove second, redundant,
9235 assert on can_create_pseudo_p returning non-zero. Use
9236 replace_equiv_address_nv, not replace_equiv_address, for final
9237 operand update.
9238 * config/cris/cris.md ("movsi"): Move variable t to pattern
9239 toplevel. Adjust assert for new cris_symbol_type member. Use
9240 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9241 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9242 for lapc stricter.
9243 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9244 ("call", "call_value"): Use second incoming operand as a marker
9245 for pic-offset-table-register being used.
9246 ("*expanded_call_non_v32", "*expanded_call_v32")
9247 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9248 second incoming operand to CALL, match cris_call_type_marker.
9249 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9250 ("*expanded_call_side"): Ditto. Fix typo in comment.
9251 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9252 CONSTANT_P.
9253 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9254 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9255 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9256 users changed. Add members cris_offsettable_symbol and cris_unspec.
9257 (cris_symbol_type): Rename from cris_pic_symbol_type.
9258 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9259 just CONSTANT_P.
9260 * config/cris/cris-protos.h (cris_symbol_type_of,
9261 cris_expand_pic_call_address): Adjust prototypes.
9262 (cris_legitimate_constant_p): New prototype.
9263
9264 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9265 an existing tmake_file. Don't add t-slibgcc and t-linux.
9266
9267 2014-07-17 Jason Merrill <jason@redhat.com>
9268
9269 PR c++/61623
9270 * symtab.c (symtab_remove_from_same_comdat_group): Also
9271 set_comdat_group to NULL_TREE.
9272 (verify_symtab): Fix diagnostic.
9273
9274 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9275
9276 PR target/61662
9277 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9278
9279 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9280
9281 Support location tracking for built-in macro tokens
9282 * input.h (is_location_from_builtin_token): New function declaration.
9283 * input.c (is_location_from_builtin_token): New function definition.
9284 * toplev.c (general_init): Tell libcpp what the pre-defined
9285 spelling location for built-in tokens is.
9286
9287 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9288
9289 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9290 on the FUNCTION_DECL.
9291
9292 2014-07-16 Richard Biener <rguenther@suse.de>
9293
9294 PR other/61782
9295 * doc/extend.texi (always_inline): Clarify.
9296
9297 2014-07-15 Eric Christopher <echristo@gmail.com>
9298
9299 * doc/invoke.texi (Link Options): Document -z option.
9300
9301 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9302
9303 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9304 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9305
9306 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9307
9308 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9309
9310 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9311
9312 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9313 varpool_assemble_decl.
9314 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9315 true.
9316
9317 2014-07-15 Michael Matz <matz@suse.de>
9318
9319 PR rtl-optimization/61772
9320 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9321
9322 2014-07-15 Richard Biener <rguenther@suse.de>
9323
9324 * opts.c (default_options_table): Disable bit-ccp at -Og.
9325
9326 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9327
9328 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9329
9330 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9331
9332 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9333 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9334 call langhook for unknown declaration.
9335 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9336 * tree.h (DECL_ARGUMENTS): Update.
9337 * print-tree.c (print_node): Update.
9338 * tree-core.h (tree_decl_non_common): Remove arguments.
9339 (tree_function_decl): Add arguments.
9340
9341 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9342
9343 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9344
9345 2014-07-14 Richard Biener <rguenther@suse.de>
9346
9347 PR tree-optimization/61779
9348 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9349 simplifying a condition.
9350
9351 2014-07-14 Richard Biener <rguenther@suse.de>
9352
9353 * builtins.c (c_strlen): Make only_value == 2 really only
9354 affect warning generation.
9355
9356 2014-07-14 Richard Biener <rguenther@suse.de>
9357
9358 PR tree-optimization/61757
9359 PR tree-optimization/61783
9360 PR tree-optimization/61787
9361 * tree-ssa-dom.c (record_equality): Revert canonicalization
9362 change and add comment.
9363 (propagate_rhs_into_lhs): Revert previous fix, removing
9364 loop depth restriction again.
9365
9366 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9367
9368 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9369 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9370 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9371 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9372 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9373 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9374 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9375
9376 2014-07-14 Richard Biener <rguenther@suse.de>
9377
9378 * cgraph.h (decl_in_symtab_p): Make inline.
9379
9380 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9381
9382 PR middle-end/61294
9383 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9384
9385 PR target/61656
9386 * config/i386/i386.c (classify_argument): Don't merge classes above
9387 number of words.
9388
9389 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9390
9391 * cgraph.h (symtab_node): Add nonzero_address.
9392 (decl_in_symtab_p): Break out from ...
9393 (symtab_get_node): ... here.
9394 * fold-const.c: Include cgraph.h
9395 (tree_single_nonzero_warnv_p): Use symtab to determine
9396 if symbol is non-zero.
9397 * symtab.c (symtab_node::nonzero_address): New method.
9398
9399 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9400
9401 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9402 forgotten in previous commit.
9403
9404 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9405
9406 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9407 on builtin types.
9408 * ipa-devirt.c: Include stor-layout.h and intl.h
9409 (odr_subtypes_equivalent_p): New function.
9410 (warn_odr): New function.
9411 (warn_type_mismatch): New function.
9412 (odr_types_equivalent_p): New function.
9413 (add_type_duplicate): Use it.
9414 * common.opt (Wodr): New flag.
9415 * doc/invoke.texi (Wodr): Document new warning.
9416
9417 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9418
9419 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9420 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9421 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9422 (varpool_get_constructor): Push CTORS_IN timevar.
9423 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9424
9425 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9426
9427 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9428 Remove VOID_FTYPE_PUSHORT.
9429 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9430 Change code to USHORT_FTYPE_VOID.
9431 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9432 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9433 (ix86_atomic_assign_expand_fenv): Update for
9434 __builtin_ia32_fnstsw changes.
9435 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9436 (fnstsw): Change operand 0 to nonimmediate operand.
9437
9438 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9439
9440 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9441 (varpool_get_constructor): New function.
9442 (varpool_ctor_useable_for_folding_p): Break out from ...
9443 (ctor_for_folding): ... here; use varpool_get_constructor.
9444 (varpool_assemble_decl): Likewise.
9445 * lto-streamer.h (struct output_block): Turn cgraph_node
9446 to symbol filed.
9447 (lto_input_variable_constructor): Declare.
9448 * ipa-visibility.c (function_and_variable_visibility): Use
9449 varpool_get_constructor.
9450 * cgraph.h (varpool_get_constructor): Declare.
9451 (varpool_ctor_useable_for_folding_p): New function.
9452 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9453 parameter; return error_mark_node for non-trivial constructors.
9454 (lto_write_tree_1, DFS_write_tree): Update use of
9455 get_symbol_initial_value.
9456 (output_function): Update initialization of symbol.
9457 (output_constructor): New function.
9458 (copy_function): Rename to ..
9459 (copy_function_or_variable): ... this one; handle vars too.
9460 (lto_output): Output variable sections.
9461 * lto-streamer-in.c (input_constructor): New function.
9462 (lto_read_body): Rename from ...
9463 (lto_read_body_or_constructor): ... this one; handle vars too.
9464 (lto_input_variable_constructor): New function.
9465 * ipa-prop.c (ipa_prop_write_jump_functions,
9466 ipa_prop_write_all_agg_replacement): Update.
9467 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9468 (output_cgraph_opt_summary): Set symbol to NULL.
9469
9470 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9471
9472 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9473 non-polymorphic types.
9474 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9475 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9476 of types is not polymorphic.
9477
9478 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9479
9480 * lra-constraints.c (remove_inheritance_pseudos): Process
9481 destination pseudo too.
9482
9483 2014-07-11 Rong Xu <xur@google.com>
9484
9485 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9486 commit r212448.
9487
9488 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9489
9490 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9491 * config/avr/avr-devices.c (AVR_MCU): Same.
9492 (avr_mcu_types): add text start value to end of device list.
9493 * config/avr/avr-mcus.def: Add text section start for all devices.
9494 (ata5782): Add new avr5 device.
9495 (ata5831): Same.
9496 * config/avr/avr-tables.opt: Regenerate.
9497 * config/avr/avr.h: Add declaration for text section start handler.
9498 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9499 SPEC functions.
9500 (LINK_SPEC): Include text section start handler to linker spec.
9501 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9502 pass -Ttext option to linker if the text section start for the device
9503 is not zero.
9504 * config/avr/t-multilib: Regenerate.
9505 * doc/avr-mmcu.texi: Regenerate.
9506
9507 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9508
9509 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9510 * config/rs6000/aix52.h (LINK_SPEC): Same.
9511 * config/rs6000/aix53.h (LINK_SPEC): Same.
9512 * config/rs6000/aix61.h (LINK_SPEC): Same.
9513 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9514
9515 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9516
9517 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9518 (graphite_verify): New function.
9519 (ivs_params_clear): New function.
9520 (gcc_expression_from_isl_ast_expr_id): New function.
9521 (gcc_expression_from_isl_expr_int): New function.
9522 (binary_op_to_tree): New function.
9523 (ternary_op_to_tree): New function.
9524 (unary_op_to_tree): New function.
9525 (nary_op_to_tree): New function.
9526 (gcc_expression_from_isl_expr_op): New function.
9527 (gcc_expression_from_isl_expression): New function.
9528 (graphite_create_new_loop): New function.
9529 (translate_isl_ast_for_loop): New function.
9530 (get_upper_bound): New function.
9531 (graphite_create_new_loop_guard): New function.
9532 (translate_isl_ast_node_for): New function.
9533 (translate_isl_ast): New function.
9534 (add_parameters_to_ivs_params): New function.
9535 (scop_to_isl_ast): New parameter ip.
9536 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9537
9538 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9539
9540 * config/xtensa/predicates.md (call expander): Update for
9541 DECL_SECTION_NAME being string.
9542
9543 2014-07-11 Richard Biener <rguenther@suse.de>
9544
9545 PR middle-end/61473
9546 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9547 can be implemented with a single load followed by a single store.
9548 (c_strlen): Only warn when only_value is not 2.
9549
9550 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9551
9552 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9553
9554 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9555
9556 PR target/61561
9557 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9558 (*movhi_bytes): Likewise.
9559 (*arm_movqi_insn): Likewise.
9560
9561 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9562
9563 PR target/56858
9564 * config/alpha/alpha.c: Include tree-pass.h, context.h
9565 and pass_manager.h.
9566 (pass_data_handle_trap_shadows): New pass.
9567 (pass_handle_trap_shadows::gate): New pass gate function.
9568 (make_pass_handle_trap_shadows): New function.
9569 (rest_of_handle_trap_shadows): Ditto.
9570
9571 (alpha_align_insns_1): Rename from alpha_align_insns.
9572 (pass_data_align_insns): New pass.
9573 (pass_align_insns::gate): New pass gate function.
9574 (make_pass_aling_insns): New function.
9575 (rest_of_align_insns): Ditto.
9576 (alpha_align_insns): Ditto.
9577
9578 (alpha_option_override): Declare handle_trap_shadows info
9579 and align_insns_info. Register handle_trap_shadows and align_insns
9580 passes here.
9581 (alpha_reorg): Do not call alpha_trap_shadows and
9582 alpha_align_insn from here.
9583
9584 (alpha_pad_function_end): Do not skip BARRIERs.
9585
9586 2014-07-10 Rong Xu <xur@google.com>
9587
9588 Add gcov-tool: an offline gcda profile processing tool support.
9589 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9590 (gcov_is_error): Ditto.
9591 (gcov_read_string): Ditto.
9592 (gcov_read_sync): Ditto.
9593 * gcov-io.h: Move counter defines to gcov-counter.def.
9594 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9595 * coverage.c: Ditto.
9596 * gcov-tool.c: Offline gcda profile processing tool.
9597 (unlink_gcda_file): Remove one gcda file.
9598 (unlink_profile_dir): Remove gcda files from the profile path.
9599 (gcov_output_files): Output gcda files to an output dir.
9600 (profile_merge): Merge two profiles in directory.
9601 (print_merge_usage_message): Print merge usage.
9602 (merge_usage): Print merge usage and exit.
9603 (do_merge): Driver for profile merge sub-command.
9604 (profile_rewrite): Rewrite profile.
9605 (print_rewrite_usage_message): Print rewrite usage.
9606 (rewrite_usage): Print rewrite usage and exit.
9607 (do_rewrite): Driver for profile rewrite sub-command.
9608 (print_usage): Print gcov-info usage and exit.
9609 (print_version): Print gcov-info version.
9610 (process_args): Process arguments.
9611 (main): Main routine for gcov-tool.
9612 * Makefile.in: Build and install gcov-tool.
9613 * gcov-counter.def: New file split from gcov-io.h.
9614 * doc/gcc.texi: Include gcov-tool.texi.
9615 * doc/gcov-tool.texi: Document for gcov-tool.
9616
9617 2014-07-10 Richard Biener <rguenther@suse.de>
9618
9619 PR tree-optimization/61757
9620 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9621 (propagate_rhs_into_lhs): Revert part of last change.
9622
9623 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9624
9625 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9626 FUNCTION_DECLs.
9627
9628 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9629
9630 PR middle-end/53590
9631 * function.c (allocate_struct_function): Revert r188667 change.
9632
9633 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9634
9635 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9636
9637 * doc/install.texi: Remove links to defunct package providers for
9638 Solaris.
9639
9640 2014-07-09 Tom de Vries <tom@codesourcery.com>
9641
9642 * final.c (get_call_fndecl): Declare.
9643 (self_recursive_call_p): New function.
9644 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9645
9646 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9647
9648 * ipa-devirt.c (record_node): Walk through aliases.
9649
9650 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9651
9652 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9653
9654 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9655
9656 Revert:
9657 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9658
9659 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9660
9661 * ipa-visibility.c (function_and_variable_visibility): Remove
9662 temporary hack disabling local aliases on AIX.
9663
9664 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9665
9666 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9667 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9668
9669 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9670
9671 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9672 * rs6000/rs6000.c: Inline output of .set instruction.
9673 (declare_alias_data): New struct.
9674 (rs6000_declare_alias): New function.
9675 (rs6000_xcoff_declare_function_name): Use it.
9676 (rs6000_xcoff_declare_object_name): New function.
9677 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9678 (ASM_OUTPUT_DEF): Turn to empty definition.
9679
9680 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9681
9682 PR bootstrap/61679
9683 * hash-table.h: use hash_table::value_type instead of
9684 Descriptor::value_type in the return types of several methods.
9685
9686 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9687
9688 * tree-pass.h (pass_data): Remove has_execute member.
9689 * passes.c (execute_one_pass): Don't check pass->has_execute.
9690 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9691 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9692 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9693 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9694 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9695 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9696 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9697 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9698 gimple-low.c, gimple-ssa-isolate-paths.c,
9699 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9700 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9701 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9702 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9703 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9704 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9705 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9706 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9707 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9708 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9709 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9710 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9711 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9712 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9713 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9714 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9715 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9716 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9717 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9718 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9719 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9720 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9721 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9722 web.c: Remove initializer for pass_data::has_execute.
9723
9724 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9725
9726 * graphite-htab.h: Use hash_map instead of hash_table.
9727 * graphite-clast-to-gimple.c: Adjust.
9728 * passes.c: Use hash_map instead of hash_table.
9729 * sese.c: Likewise.
9730 * sese.h: Remove now unused code.
9731
9732 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9733
9734 PR target/61599
9735 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9736 than zero.
9737
9738 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR rtl-optimization/61673
9741 * combine.c (simplify_comparison): Test just mode's sign bit
9742 in tmode rather than the sign bit and any bits above it.
9743
9744 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9745
9746 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9747 Add __isl_give to the declaration.
9748 (generate_isl_schedule): Likewise.
9749 (scop_to_isl_ast): Likewise.
9750
9751 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9752
9753 * config/arm/arm.c (cortexa5_extra_costs): New table.
9754 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9755
9756 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9757
9758 PR tree-optimization/61725
9759 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9760 range, use range_includes_zerop_p instead of integer_zerop on
9761 vr0->min, only use log2 of max if min is not negative.
9762
9763 2014-07-08 Richard Biener <rguenther@suse.de>
9764
9765 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9766 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9767 restriction on loop depth difference.
9768 (record_equality): Likewise.
9769 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9770 (loop_depth_of_name): Remove.
9771 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9772 restriction on loop depth difference.
9773 (init_copy_prop): Likewise.
9774
9775 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9776
9777 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9778 parameter.
9779 (walk_aliased_vdefs): Likewise.
9780 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9781 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9782 (detect_type_change_from_memory_writes): Check if entry was reached.
9783
9784 2014-07-08 Richard Biener <rguenther@suse.de>
9785
9786 PR tree-optimization/61681
9787 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9788 NONLOCAL inside ESCAPED.
9789
9790 2014-07-08 Richard Biener <rguenther@suse.de>
9791
9792 PR tree-optimization/61680
9793 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9794 Handle properly all read-write dependences with group accesses.
9795
9796 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9797
9798 PR tree-optimization/61576
9799 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9800 block containing reduction statement is predecessor of phi basi block.
9801
9802 2014-07-08 Marek Polacek <polacek@redhat.com>
9803
9804 PR c/60226
9805 * fold-const.c (round_up_loc): Change the parameter type.
9806 Remove assert.
9807 * fold-const.h (round_up_loc): Adjust declaration.
9808 * stor-layout.c (finalize_record_size): Check for too large types.
9809
9810 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9811
9812 * symtab.c: Include calls.h.
9813 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9814
9815 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9816
9817 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9818 little-endian code generation.
9819 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9820 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9821 (spe_evmergehilo): Rename to...
9822 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9823 (spe_evmergelo): Rename to...
9824 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9825 (spe_evmergelohi): Rename to...
9826 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9827 (spe_evmergehi, spe_evmergehilo): New expanders.
9828 (spe_evmergelo, spe_evmergelohi): Likewise.
9829 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9830 (*frob_tf_ti): Likewise.
9831 (*frob_<mode>_di_2): Likewise.
9832 (*frob_tf_di_8_2): Likewise.
9833 (*frob_di_<mode>): Likewise.
9834 (*frob_ti_tf): Likewise.
9835 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9836 (*frob_ti_<mode>_8_2): Likewise.
9837 (*frob_ti_tf_2): Likewise.
9838 (mov_si<mode>_e500_subreg0): Rename to...
9839 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9840 endianness only.
9841 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9842 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9843 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9844 the big endianness only.
9845 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9846 (*mov_si<mode>_e500_subreg0_2): Rename to...
9847 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9848 big big endianness only.
9849 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9850 (*mov_si<mode>_e500_subreg4): Rename to...
9851 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9852 endianness only.
9853 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9854 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9855 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9856 the big endianness only.
9857 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9858 pattern.
9859 (*mov_si<mode>_e500_subreg4_2): Rename to...
9860 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9861 endianness only.
9862 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9863 (*mov_sitf_e500_subreg8): Rename to...
9864 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9865 endianness only.
9866 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9867 (*mov_sitf_e500_subreg8_2): Rename to...
9868 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9869 endianness only.
9870 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9871 (*mov_sitf_e500_subreg12): Rename to...
9872 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9873 endianness only.
9874 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9875 (*mov_sitf_e500_subreg12_2): Rename to...
9876 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9877 endianness only.
9878 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9879
9880 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9881
9882 * asan.c (instrument_strlen_call): Do not instrument first byte
9883 in strlen if already instrumented.
9884
9885 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9886
9887 * config/arm/arm.opt (mwords-little-endian): Delete.
9888 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9889 of TARGET_LITTLE_WORDS.
9890 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9891 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9892 warning.
9893 * doc/invoke.texi: Remove references to -mwords-little-endian.
9894
9895 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9896
9897 * expmed.c (struct init_expmed_rtl): Change all fields but
9898 pow2 and cint from struct rtx_def to rtx.
9899 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9900 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9901 at the end again.
9902
9903 2014-07-06 Marek Polacek <polacek@redhat.com>
9904
9905 PR c/6940
9906 * doc/invoke.texi: Document -Wsizeof-array-argument.
9907
9908 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9909
9910 * wide-int.h (wide_int_storage): Change declaration from struct
9911 to class.
9912
9913 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9914
9915 * cgraph.c (cgraph_create_indirect_edge): Update call of
9916 get_polymorphic_call_info.
9917 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9918 (possible_polymorphic_call_targets): Add parameter call.
9919 (decl_maybe_in_construction_p): New predicate.
9920 (get_polymorphic_call_info): Add parameter call;
9921 use decl_maybe_in_construction_p.
9922 * gimple-fold.c (fold_gimple_assign): Update use of
9923 possible_polymorphic_call_targets.
9924 (gimple_fold_call): Likewise.
9925 * ipa-prop.c: Inlcude calls.h
9926 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9927 (param_type_may_change_p): New predicate.
9928 (detect_type_change_from_memory_writes): Break out from ...
9929 (detect_type_change): ... this one; use param_type_may_change_p.
9930 (detect_type_change_ssa): Use param_type_may_change_p.
9931 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9932
9933 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9934
9935 PR target/49423
9936 * config/arm/arm-protos.h (arm_legitimate_address_p,
9937 arm_is_constant_pool_ref): Add prototypes.
9938 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9939 (arm_is_constant_pool_ref) New function.
9940 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9941 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9942 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9943 operand. Remove pool_range and neg_pool_range attributes.
9944 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9945 pool_range and neg_pool_range attributes.
9946 * config/arm/constraints.md (Uh): New constraint.
9947 (Uq): Don't allow constant pool references.
9948
9949 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9950
9951 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9952 (move_lo_quad_internal_be_<mode>): Likewise.
9953 (move_lo_quad_<mode>): Convert to define_expand.
9954 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9955 (aarch64_simd_move_hi_quad_be_<mode>): New.
9956 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9957 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9958 (aarch64_combinez_be<mode>): New.
9959 (aarch64_combine<mode>): Convert to define_expand.
9960 (aarch64_combine_internal<mode>): New.
9961 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9962
9963 2014-07-04 Tom de Vries <tom@codesourcery.com>
9964
9965 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9966 combination of earlyclobber and read/write modifiers.
9967
9968 2014-07-04 Tom de Vries <tom@codesourcery.com>
9969
9970 * config/aarch64/aarch64-simd.md
9971 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9972
9973 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9974
9975 PR target/61714
9976 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9977
9978 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9979
9980 PR middle-end/61654
9981 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9982
9983 PR tree-optimization/61684
9984 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9985 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9986
9987 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9988 Kito Cheng <kito@0xlab.org>
9989 Monk Chiang <sh.chiang04@gmail.com>
9990
9991 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9992 (nds32_symbol_load_store_p): Move to ...
9993 (nds32_fp_as_gp_check_available): Move to ...
9994 * config/nds32/nds32-fp-as-gp.c: ... here.
9995 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9996 extern declaration.
9997
9998 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9999 Kito Cheng <kito@0xlab.org>
10000 Monk Chiang <sh.chiang04@gmail.com>
10001
10002 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10003 (nds32_expand_store_multiple): Move to ...
10004 (nds32_expand_movmemqi): Move to ...
10005 * config/nds32/nds32-memory-manipulation.c: ... here.
10006
10007 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10008 Kito Cheng <kito@0xlab.org>
10009 Monk Chiang <sh.chiang04@gmail.com>
10010
10011 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10012 (nds32_output_casesi_pc_relative): Move to ...
10013 (nds32_output_casesi): Move to ...
10014 (nds32_mem_format): Move to ...
10015 (nds32_output_16bit_store): Move to ...
10016 (nds32_output_16bit_load): Move to ...
10017 (nds32_output_32bit_store): Move to ...
10018 (nds32_output_32bit_load): Move to ...
10019 (nds32_output_32bit_load_s): Move to ...
10020 (nds32_output_stack_push): Move to ...
10021 (nds32_output_stack_pop): Move to ...
10022 * config/nds32/nds32-md-auxiliary.c: ... here.
10023
10024 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10025 Ling-Hua Tseng <uranus@tinlans.org>
10026
10027 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10028 the purpose of this file.
10029
10030 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10031 Kito Cheng <kito@0xlab.org>
10032 Monk Chiang <sh.chiang04@gmail.com>
10033
10034 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10035 (nds32_address_cost): Move implementation to ...
10036 * config/nds32/nds32-cost.c: ... here.
10037 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10038 (nds32_address_cost_impl): Declare.
10039
10040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10041 Kito Cheng <kito@0xlab.org>
10042 Monk Chiang <sh.chiang04@gmail.com>
10043
10044 * config/nds32/nds32.c
10045 (nds32_consecutive_registers_load_store_p): Move to ...
10046 (nds32_valid_multiple_load_store): Move to ...
10047 (nds32_valid_stack_push_pop): Move to ...
10048 (nds32_can_use_bclr_p): Move to ...
10049 (nds32_can_use_bset_p): Move to ...
10050 (nds32_can_use_btgl_p): Move to ...
10051 (nds32_can_use_bitci_p): Move to ...
10052 * config/nds32/nds32-predicates.c: ... here.
10053
10054 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10055 Kito Cheng <kito@0xlab.org>
10056 Monk Chiang <sh.chiang04@gmail.com>
10057
10058 * config/nds32/nds32.c
10059 (nds32_expand_builtin_null_ftype_reg): Move to ...
10060 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10061 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10062 (nds32_init_builtins): Move implementation to ...
10063 (nds32_expand_builtin): Move implementation to ...
10064 * config/nds32/nds32-intrinsic.c: ... here.
10065 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10066 (nds32_expand_builtin_impl): Declare.
10067
10068 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10069 Kito Cheng <kito@0xlab.org>
10070 Monk Chiang <sh.chiang04@gmail.com>
10071
10072 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10073 (nds32_emit_section_tail_template): Move to ...
10074 (nds32_emit_isr_jmptbl_section): Move to ...
10075 (nds32_emit_isr_vector_section): Move to ...
10076 (nds32_emit_isr_reset_conten): Move to ...
10077 (nds32_check_isr_attrs_conflict): Move to ...
10078 (nds32_construct_isr_vectors_information): Move to ...
10079 (nds32_asm_file_start): Move implementation to ...
10080 (nds32_asm_file_end): Move implementation to ...
10081 * config/nds32/nds32-isr.c: ... here.
10082 * config/nds32/nds32-protos.h
10083 (nds32_check_isr_attrs_conflict): Declare.
10084 (nds32_construct_isr_vectors_information): Declare.
10085 (nds32_asm_file_start_for_isr): Declare.
10086 (nds32_asm_file_end_for_isr): Declare.
10087
10088 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10089 Kito Cheng <kito@0xlab.org>
10090 Monk Chiang <sh.chiang04@gmail.com>
10091
10092 * config.gcc (nds32*): Add new modules to extra_objs.
10093 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10094 (nds32be-*-*): Likewise.
10095 * config/nds32/nds32-cost.c: New file.
10096 * config/nds32/nds32-fp-as-gp.c: New file.
10097 * config/nds32/nds32-intrinsic.c: New file.
10098 * config/nds32/nds32-isr.c: New file.
10099 * config/nds32/nds32-md-auxiliary.c: New file.
10100 * config/nds32/nds32-memory-manipulation.c: New file.
10101 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10102 * config/nds32/nds32-predicates.c: New file.
10103 * config/nds32/t-nds32: New file.
10104
10105 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10106
10107 PR tree-optimization/61682
10108 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10109 using cases and when one of the operands is equal to 1.
10110
10111 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10112
10113 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10114 ashr<mode>3): Correct mode of operands[2].
10115 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10116 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10117 Correct mode of operands[2]. Fix split condition.
10118
10119 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10120
10121 * arm.md (arch): Add armv6_or_vfpv3.
10122 (arch_enabled): Add test for the above.
10123 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10124 on VFP9.
10125 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10126
10127 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10128
10129 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10130 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10131 HWI 1 and negate the unsigned value.
10132 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10133 use AND instead of shift.
10134 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10135
10136 2014-07-03 Marek Polacek <polacek@redhat.com>
10137
10138 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10139 (-fsanitize=float-divide-by-zero): Move to the table with
10140 -fsanitize=undefined suboptions.
10141 (-fsanitize=float-cast-overflow): Likewise.
10142
10143 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10144
10145 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10146 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10147 endianness.
10148
10149 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10150
10151 * loop-invariant.c (struct invariant): Add a new member: eqno;
10152 (find_identical_invariants): Update eqno;
10153 (create_new_invariant): Init eqno;
10154 (get_inv_cost): Compute comp_cost with eqno;
10155
10156 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10157
10158 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10159 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10160 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10161 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10162 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10163
10164 2014-07-02 Christian Bruel <christian.bruel@st.com>
10165
10166 PR target/29349
10167 PR target/53513
10168 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10169 (make_preds_opaque): Delete.
10170 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10171 (commit_mode_sets): New function.
10172 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10173 Process all modes at once.
10174 * basic-block.h (pre_edge_lcm_avs): Declare.
10175 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10176 Call clear_aux_for_edges. Fix comments.
10177 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10178 (pre_edge_rev_lcm): Idem.
10179 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10180 parameter.
10181 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10182 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10183 Idem.
10184 * config/i386/i386.c (x96_emit_mode_set): Idem.
10185 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10186 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10187 (fpscr_toggle) Disallow from delay slot.
10188 * target.def (emit_mode_set): Add prev_mode parameter.
10189 * doc/tm.texi: Regenerate.
10190
10191 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10192
10193 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10194 variable i.
10195
10196 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10197
10198 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10199 vtable_pointer_value_to_vtable): Constify.
10200 (contains_polymorphic_type_p): Declare.
10201 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10202 vtable_pointer_value_to_vtable): Constify.
10203 (contains_polymorphic_type_p): New predicate.
10204 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10205 polymorphic types.
10206 (ipa_set_ancestor_jf): Likewise.
10207 (detect_type_change): Return false in easy cases.
10208 (compute_complex_assign_jump_func): Require type to contain
10209 polymorphic type.
10210 (compute_known_type_jump_func): Likewise.
10211
10212 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10213
10214 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10215 Remove.
10216 (type_in_anonymous_namespace_p): Constify argument.
10217 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10218 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10219 (main_odr_variant): New function.
10220 (hash_type_name): Make static; update assert; do not ICE on
10221 non-records.
10222 (types_same_for_odr): Bring here from tree.c; simplify and remove
10223 old structural comparing code that doesn't work for templates.
10224 (odr_hasher::equal): Update assert.
10225 (add_type_duplicate): Return true when bases should be computed;
10226 replace incomplete loader by complete; do not output duplicated
10227 warnings; do not ICE on non-records; set odr_violated flag.
10228 (get_odr_type): Be ready to replace incomplete type by complete
10229 one; work on ODR variants instead of main variants; reorder item
10230 in array so bases have still smaller indexes.
10231 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10232 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10233
10234 2014-07-01 Cary Coutant <ccoutant@google.com>
10235
10236 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10237 lookup.
10238 (resolve_addr_in_expr): When replacing the rtx in a location list
10239 entry, get a new address table entry.
10240 (dwarf2out_finish): Call index_location_lists even if there are no
10241 addr_index_table entries yet.
10242
10243 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10244
10245 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10246 change for not being obvious.
10247
10248 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10249
10250 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10251 unused argument.
10252
10253 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10254
10255 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10256 (vcagt_f64): Likewise.
10257 (vcale_f64): Likewise.
10258 (vcaled_f64): Likewise.
10259 (vcales_f32): Likewise.
10260 (vcalt_f64): Likewise.
10261 (vcaltd_f64): Likewise.
10262 (vcalts_f32): Likewise.
10263
10264 2014-07-01 Marek Polacek <polacek@redhat.com>
10265
10266 * doc/invoke.texi: Document -Wint-conversion.
10267
10268 2014-07-01 Marek Polacek <polacek@redhat.com>
10269
10270 PR c/58286
10271 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10272
10273 2014-07-01 Martin Liska <mliska@suse.cz>
10274
10275 IPA REF alias refactoring
10276 * cgraph.h (iterate_direct_aliases): New function.
10277 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10278 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10279 FOR_EACH_ALIAS added.
10280 (cgraph_for_node_and_aliases): Likewise.
10281 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10282 * ipa-inline.c (reset_edge_caches): Likewise.
10283 (update_caller_keys): Likewise.
10284 * trans-mem.c (ipa_tm_execute): Likewise.
10285 *varpool.c (varpool_analyze_node): Likewise.
10286 (varpool_for_node_and_aliases): Likewise.
10287 * ipa-ref.h (first_alias): New function.
10288 (last_alias): Likewise.
10289 (has_aliases_p): Likewise.
10290 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10291 is sensitive to IPA_REF_ALIASes.
10292 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10293 are put at the beginning of the list.
10294 (symtab_node::iterate_direct_aliases): New function.
10295
10296 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10297
10298 Revert:
10299 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10300 type is complete.
10301 (write_ts_type_common_tree_pointers): Do not stream fields not set
10302 for incomplete types; do not stream duplicated fields for variants;
10303 sanity check that variant and type match.
10304 (write_ts_type_non_common_tree_pointers): Likewise.
10305 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10306 TYPE_SIZE whether type is complete.
10307 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10308 write_ts_type_common_tree_pointers
10309 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10310
10311 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10312
10313 * var-tracking.c (add_stores): Return instead of asserting if old
10314 and new values for conditional store are the same.
10315
10316 2014-06-30 Richard Henderson <rth@redhat.com>
10317
10318 PR rtl-opt/61608
10319 PR target/39284
10320 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10321 the cfg if there were any changes.
10322 * passes.def: Revert move of peephole2 after reorder_blocks;
10323 move duplicate_computed_gotos before peephole2.
10324
10325 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10326
10327 * except.c (emit_note_eh_region_end): New helper function.
10328 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10329 emit EH_REGION_END note.
10330 * jump.c (cleanup_barriers): Do not split a call and its
10331 corresponding CALL_ARG_LOCATION note.
10332
10333 2014-06-30 Jeff Law <law@redhat.com>
10334
10335 PR tree-optimization/61607
10336 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10337 deeper into the SSA_NAME_VALUE chain.
10338
10339 2014-06-30 Marek Polacek <polacek@redhat.com>
10340
10341 * convert.c (convert_to_integer): Don't instrument conversions if the
10342 function has no_sanitize_undefined attribute.
10343 * ubsan.c: Don't run the ubsan pass if the function has
10344 no_sanitize_undefined attribute.
10345
10346 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10347
10348 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10349 -fsanitize=undefined suboptions.
10350
10351 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10352
10353 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10354 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10355 against bigendian and adjust indices.
10356
10357 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10358
10359 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10360
10361 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10362
10363 PR target/61633
10364 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10365 Add alternative; make early clobber. Adjust both split patterns
10366 to use operand 0 as the working register.
10367
10368 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10369
10370 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10371 as ira_object_id_map might be NULL, or 1.
10372
10373 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10374
10375 * loop-invariant.c (get_inv_cost): Handle register class.
10376 (gain_for_invariant): Check the register pressure of the inv
10377 and its overlapped register class, other than all.
10378
10379 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10380
10381 * doc/invoke.texi (Optimize Options): Fix descriptions of
10382 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10383
10384 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10385
10386 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10387 documentation.
10388
10389 2014-06-29 Tobias Grosser <tobias@grosser.es>
10390
10391 PR bootstrap/61650
10392 * graphite-isl-ast-to-gimple.c: Add missing guards.
10393
10394 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10395
10396 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10397 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10398 * flag-types.h: Add new enum fgraphite_generator.
10399 * graphite-isl-ast-to-gimple.c: New.
10400 * graphite-isl-ast-to-gimple.h: New.
10401 * graphite.c (graphite_transform_loops): Add choice of Graphite
10402 code generator, which depends on flag_graphite_code_gen.
10403
10404 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10405
10406 * graphite-dependences.c (subtract_commutative_associative_deps):
10407 Add NULL checking of the following variables: must_raw_no_source,
10408 may_raw_no_source, must_war_no_source, may_war_no_source,
10409 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10410 must_war, may_war, must_waw, may_waw.
10411
10412 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10413
10414 * graphite-clast-to-gimple.c: gloog is renamed to
10415 graphite_regenerate_ast_cloog. gloog_error is renamed to
10416 graphite_regenerate_error.
10417 * graphite-clast-to-gimple.h: The definition of the struct
10418 bb_pbb_def is moved to graphite-htab.h.
10419 Add inclusion of the hash-table.h.
10420 * graphite-htab.h: The declaration of the function gloog is moved
10421 to graphite-clast-to-gimple.h and renamed to
10422 graphite_regenerate_ast_cloog.
10423 * graphite.c (graphite_transform_loops): gloog is renamed
10424 to graphite_regenerate_ast_cloog.
10425
10426 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10427
10428 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10429 type is complete.
10430 (write_ts_type_common_tree_pointers): Do not stream fields not set
10431 for incomplete types; do not stream duplicated fields for variants;
10432 sanity check that variant and type match.
10433 (write_ts_type_non_common_tree_pointers): Likewise.
10434 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10435 TYPE_SIZE whether type is complete.
10436 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10437 write_ts_type_common_tree_pointers
10438 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10439
10440 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10441
10442 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10443
10444 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10445
10446 * tree-inline.c (remap_type_1): Do not duplicate fields
10447 that are shared in between type and its main variant.
10448
10449 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10450
10451 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10452 of the type.
10453 (ipa_set_ancestor_jf) Likewise.
10454 (check_stmt_for_type_change): Check that we work on main variant.
10455 (detect_type_change): Look into main variant.
10456 (compute_known_type_jump_func): Check that main variant has BINFO.
10457
10458 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10459
10460 * ipa-devirt.c (set_type_binfo): New function.
10461 (add_type_duplicate): Use it.
10462 (get_odr_type): Sanity check that binfos points to main variants.
10463 (get_class_context): Be sure the context's outer_type is main variant.
10464 (contains_type_p): Walk main variant.
10465 (get_polymorphic_call_info_for_decl): Set outer_type to be
10466 main variant.
10467 (get_polymorphic_call_info): Likewise.
10468 (possible_polymorphic_call_targets): Sanity check that we operate
10469 on main variant.
10470
10471 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10472
10473 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10474
10475 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10476
10477 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10478 accidental change due to wide-int branch merge.
10479
10480 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10481
10482 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10483 compressed debug support.
10484 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10485 * configure: Regenerate.
10486 * config.in: Regenerate.
10487 * common.opt (compressed_debug_sections): New enum.
10488 (gz, gz=): New options.
10489 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10490 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10491 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10492 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10493 LINK_COMPRESS_DEBUG_SPEC.
10494 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10495 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10496 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10497 (Debugging Options): Document -gz[=type].
10498
10499 2014-06-27 Martin Jambor <mjambor@suse.cz>
10500
10501 PR ipa/61160
10502 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10503 args_to_skip, use those from node instead. Copy args_to_skip and
10504 combined_args_to_skip from node to the new thunk.
10505 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10506 (cgraph_create_virtual_clone): Moved computation of
10507 combined_args_to_skip...
10508 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10509
10510 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10511
10512 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10513 redundant diagnostic machinary.
10514
10515 2014-06-27 Richard Biener <rguenther@suse.de>
10516
10517 * tree-ssa-math-opts.c (bswap_replace): Fix
10518 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10519
10520 2014-06-27 Martin Liska <mliska@suse.cz>
10521
10522 * gimple.h (gimple_location_safe): New function introduced.
10523 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10524 of gimple_location_safe replaces gimple_location.
10525 (gimple_fold_call): Likewise.
10526 * ipa-devirt.c (ipa_devirt): Likewise.
10527 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10528 * ipa.c (walk_polymorphic_call_targets): Likewise.
10529 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10530
10531 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10532
10533 PR tree-optimization/57233
10534 PR tree-optimization/61299
10535 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10536 functions.
10537 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10538 would be lowered to scalar shifts, check if corresponding
10539 shifts and vector BIT_IOR_EXPR are supported and don't lower
10540 or lower just to narrower vector type in that case.
10541 * expmed.c (expand_shift_1): Fix up handling of vector
10542 shifts and rotates.
10543
10544 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10545
10546 PR target/61586
10547 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10548
10549 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10550
10551 * doc/invoke.texi (-fsemantic-interposition): Document.
10552 * common.opt (fsemantic-interposition): New flag.
10553 * varasm.c (decl_replaceable_p): Use it.
10554
10555 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10556
10557 PR target/61542
10558 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10559 extraction other than index 3.
10560
10561 2014-06-26 Teresa Johnson <tejohnson@google.com>
10562
10563 * doc/invoke.texi: Fix typo.
10564 * dumpfile.c: Add support for documented -fdump-* options
10565 optimized/missed/note/optall.
10566
10567 2014-06-26 Martin Jambor <mjambor@suse.cz>
10568
10569 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10570 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10571 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10572 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10573 * opts.c (default_options_optimization): Set
10574 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10575 * doc/invoke.texi (allow-load-data-races)
10576 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10577 (allow-store-data-races): Document the new default.
10578
10579 2014-06-26 Martin Jambor <mjambor@suse.cz>
10580
10581 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10582 renamed to ipa_impossible_devirt_target. Fix typo.
10583 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10584 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10585 ipa_impossible_devirt_target.
10586
10587 2014-06-26 Richard Biener <rguenther@suse.de>
10588
10589 PR tree-optimization/61607
10590 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10591 explaining why we restrict copies on loop depth.
10592 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10593 on loop depth.
10594 (record_equivalences_from_phis): Instead add it here.
10595
10596 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10597
10598 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10599 (LTO_WRAPPER_OBJS): New variable.
10600 (lto-wrapper$(exeext)): Use it.
10601 * collect2.c: Include "collect-utils.h".
10602 (verbose, debug): Remove variables.
10603 (at_file_supplied): No longer static.
10604 (tool_name): New variable.
10605 (do_wait, fork_execute, maybe_unlink): Don't declare.
10606 (tool_cleanup): No longer static.
10607 (notice): Remove function.
10608 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10609 fork_execute calls.
10610 (collect_wait, do_wait, collect_execute): Remove functions.
10611 (maybe_unlink): No longer static.
10612 * collect2.h (verbose, debug): Don't declare.
10613 (at_file_supplied): Declare.
10614 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10615 changed.
10616 (collect_execute): Replace with implementation from collect2, plus a
10617 new arg use_atfile. All callers changed.
10618 (collect_wait): Replace with implementation from collect2.
10619 (maybe_unlink_file): Remove function.
10620 (fork_execute): Replace with implementation from collect2, plus a
10621 new arg use_atfile. All callers changed.
10622 (do_wait): Add call to utils_cleanup to the error path.
10623 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10624 (tool_cleanup): Adjust declarations.
10625 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10626 * tlink.c: Include "collect-utils.h".
10627 (tlink_execute): New arg use_atfile. All callers changed.
10628 (tlink_init, tlink_execute): Remove declarations.
10629
10630 * collect-utils.c (save_temps): New variable.
10631 (do_wait): Use it instead of debug. Use fatal_error.
10632 * collect-utils.h (save_temps): Declare.
10633 * collect2.c (verbose): Rename from vflag. All uses changed.
10634 (tool_cleanup): New function, copied from collect_atexit.
10635 (collect_atexit, handler): Just call it.
10636 * collect2.h (verbose): Declaration renamed from vflag.
10637 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10638 debug.
10639
10640 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10641 (lto-wrapper$(exeext)): Link with collect-utils.o.
10642 * collect-utils.c: New file.
10643 * collect-utils.h: New file.
10644 * lto-wrapper.c: Include "collect-utils.h".
10645 (args_name): Delete variable.
10646 (tool_name): New variable.
10647 (tool_cleanup): New function.
10648 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10649 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10650 (fork_execute): Remove functions.
10651
10652 2014-06-26 Nick Clifton <nickc@redhat.com>
10653
10654 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10655
10656 * doc/extend.texi (Function Attributes): Fix typo in description
10657 of RX vector attribute.
10658
10659 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10660
10661 * config.gcc (supported_defaults): Error when passing either
10662 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10663
10664 2014-06-26 Richard Biener <rguenther@suse.de>
10665
10666 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10667 propagating volatile pointers.
10668
10669 2014-06-26 Richard Biener <rguenther@suse.de>
10670
10671 PR tree-optimization/61607
10672 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10673 loop if we redirected its latch edge.
10674 (thread_block_1): Do not cancel loops prematurely.
10675
10676 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10677
10678 * toplev.c (backend_init_target): Move init_emit_regs and
10679 init_regs to...
10680 (backend_init) ... here; skip ira_init_once and backend_init_target.
10681 (target_reinit) ... and here; clear
10682 this_target_rtl->lang_dependent_initialized.
10683 (lang_dependent_init_target): Clear
10684 this_target_rtl->lang_dependent_initialized;
10685 break out rtl initialization to ...
10686 (initialize_rtl): ... here; call also backend_init_target
10687 and ira_init_once.
10688 * toplev.h (initialize_rtl): New function.
10689 * function.c: Include toplev.h
10690 (init_function_start): Call initialize_rtl.
10691 * rtl.h (target_rtl): Add target_specific_initialized,
10692 lang_dependent_initialized.
10693
10694 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10695 Jakub Jelinek <jakub@redhat.com>
10696
10697 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10698
10699 2014-06-25 Tom de Vries <tom@codesourcery.com>
10700
10701 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10702
10703 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10704
10705 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10706 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10707 Issue a strict overflow warning if appropriate.
10708
10709 2014-06-25 Martin Liska <mliska@suse.cz>
10710
10711 IPA REF refactoring
10712 * Makefile.in: Removed header file (ipa-ref-inline.h).
10713 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10714 called.
10715 (cgraph_speculative_call_info): Likewise.
10716 (cgraph_for_node_thunks_and_aliases): Likewise.
10717 (cgraph_for_node_and_aliases): Likewise.
10718 (verify_cgraph_node): Likewise.
10719 * cgraph.h: Batch of IPA REF functions become member functions of
10720 symtab_node: add_reference, maybe_add_reference, clone_references,
10721 clone_referring, clone_reference, find_reference,
10722 remove_stmt_references, remove_all_references,
10723 remove_all_referring, dump_references, dump_referring,
10724 has_alias_p, iterate_reference, iterate_referring.
10725 * cgraphbuild.c (record_reference): New IPA REF function used.
10726 (record_type_list): Likewise.
10727 (record_eh_tables): Likewise.
10728 (mark_address): Likewise.
10729 (mark_load): Likewise.
10730 (mark_store): Likewise.
10731 (pass_build_cgraph_edges): Likewise.
10732 (rebuild_cgraph_edge): Likewise.
10733 (cgraph_rebuild_references): Likewise.
10734 (pass_remove_cgraph_callee_edges): Likewise.
10735 * cgraphclones.c (cgraph_clone_node): Likewise.
10736 (cgraph_create_virtual_clone): Likewise.
10737 (cgraph_materialize_clone): Likewise.
10738 (cgraph_materialize_all_clones): Likewise.
10739 * cgraphunit.c (cgraph_reset_node): Likewise.
10740 (cgraph_reset_node): Likewise.
10741 (analyze_function): Likewise.
10742 (assemble_thunks_and_aliases): Likewise.
10743 (expand_function): Likewise.
10744 * ipa-comdats.c (propagate_comdat_group): Likewise.
10745 (enqueue_references): Likewise.
10746 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10747 (create_specialized_node): Likewise.
10748 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10749 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10750 * ipa-inline.c (reset_edge_caches): Likewise.
10751 (update_caller_keys): Likewise.
10752 (execute): Likewise.
10753 * ipa-prop.c (remove_described_reference): Likewise.
10754 (propagate_controlled_uses): Likewise.
10755 (ipa_edge_duplication_hook): Likewise.
10756 (ipa_modify_call_arguments): Likewise.
10757 * ipa-pure-const.c (propagate_pure_const): Likewise.
10758 * ipa-ref-inline.h: Header file removed, functions moved
10759 to symtab_node class.
10760 * ipa-ref.c (remove_reference): New class member function.
10761 (cannot_lead_to_return): New class member function.
10762 (referring_ref_list): Likewise.
10763 (referred_ref_list): Likewise.
10764 Rest of functions moved to symtab_node class.
10765 * ipa-ref.h: New member functions remove_reference,
10766 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10767 to ipa_ref class.
10768 ipa_ref_list class has new member functions: first_reference,
10769 first_referring, clear, nreferences.
10770 * ipa-reference.c (analyze_function): New IPA REF function used.
10771 (write_node_summary_p): Likewise.
10772 (ipa_reference_write_optimization_summary): Likewise.
10773 * ipa-split.c (split_function): Likewise.
10774 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10775 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10776 (function_and_variable_visibility): Likewise.
10777 * ipa.c (has_addr_references_p): Likewise.
10778 (process_references): Argument type changed.
10779 (symtab_remove_unreachable_nodes): New IPA REF function used.
10780 (process_references): Likewise.
10781 (set_writeonly_bit): Likewise.
10782 * lto-cgraph.c: Implementation of new symtab_node member functions
10783 that uses new IPA REF functions.
10784 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10785 function used.
10786 * lto-streamer-out.c (output_symbol_p): Likewise.
10787 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10788 changed.
10789 * symtab.c: Implementation of new IPA REF API.
10790 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10791 (ipa_tm_create_version): Likewise.
10792 (ipa_tm_execute): Likewise.
10793 * tree-emutls.c (gen_emutls_addr): Likewise.
10794 * tree-inline.c (copy_bb): Likewise.
10795 (delete_unreachable_blocks_update_callgraph): Likewise.
10796 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10797 (varpool_for_node_and_aliases): Likewise.
10798
10799 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10800
10801 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10802
10803 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10804
10805 PR bootstrap/61598
10806 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10807 tree_node * instead of tree_node *.
10808 (fold): Adjust.
10809 (print_fold_checksum): Likewise.
10810 (fold_check_failed): Likewise.
10811 (debug_fold_checksum): Likewise.
10812 (fold_build1_stat_loc): Likewise.
10813 (fold_build2_stat_loc): Likewise.
10814 (fold_build3_stat_loc): Likewise.
10815 (fold_build_call_array_loc): Likewise.
10816
10817 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10818
10819 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10820 implementation with call to...
10821 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10822 function.
10823 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10824 Declare.
10825
10826 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10827
10828 PR tree-optimization/57742
10829 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10830 after replacing the statement.
10831
10832 2014-06-25 Nick Clifton <nickc@redhat.com>
10833
10834 * config/v850/v850.c (GHS_default_section_names): Change to const
10835 char * type.
10836 (GHS_current_section_names): Likewise.
10837 (v850_insert_attributes): Do not build strings, just assign the
10838 names directly. Change the type of 'chosen_section' to const
10839 char*.
10840 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10841 directly to the array entry.
10842 * config/v850/v850.h (GHS_default_section_names): Change to const
10843 char * type.
10844 (GHS_current_section_names): Likewise.
10845
10846 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10847
10848 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10849 (LANG_HOOKS_DECLS): Add it.
10850 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10851 has correct type.
10852 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10853 * langhooks.h (struct lang_hooks_for_decls): Add
10854 omp_clause_linear_ctor hook.
10855 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10856 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10857 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10858 combined simd loop use omp_clause_linear_ctor hook.
10859
10860 2014-06-24 Cong Hou <congh@google.com>
10861
10862 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10863 pattern recognition.
10864 (type_conversion_p): PROMOTION is true if it's a type promotion
10865 conversion, and false otherwise. Return true if the given expression
10866 is a type conversion one.
10867 * tree-vectorizer.h: Adjust the number of patterns.
10868 * tree.def: Add SAD_EXPR.
10869 * optabs.def: Add sad_optab.
10870 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10871 * expr.c (expand_expr_real_2): Likewise.
10872 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10873 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10874 * optabs.c (optab_for_tree_code): Likewise.
10875 * tree-cfg.c (estimate_operator_cost): Likewise.
10876 * tree-ssa-operands.c (get_expr_operands): Likewise.
10877 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10878 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10879 * doc/generic.texi: Add document for SAD_EXPR.
10880 * doc/md.texi: Add document for ssad and usad.
10881
10882 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10883
10884 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10885 qualification in cast.
10886
10887 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10888
10889 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10890 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10891 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10892 (tree_function_decl): ... here.
10893 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10894 streaming of vindex to ...
10895 (write_ts_function_decl_tree_pointers): ... here.
10896 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10897 Do not stream DECL_VINDEX.
10898 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10899
10900 2014-06-24 Catherine Moore <clm@codesourcery.com>
10901 Sandra Loosemore <sandra@codesourcery.com>
10902
10903 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10904 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10905 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10906
10907 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10908
10909 * doc/invoke.texi (Warning Options): Remove duplicated
10910 -Wmaybe-uninitialized.
10911
10912 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10913
10914 PR tree-optimization/57742
10915 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10916 (handle_builtin_malloc, handle_builtin_memset): New functions.
10917 (strlen_optimize_stmt): Call them.
10918 * passes.def: Move strlen after loop+dom but before vrp.
10919
10920 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10921
10922 PR target/61570
10923 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10924 model family 6 CPU with has_longmode never use a CPU without
10925 64-bit support.
10926
10927 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10928
10929 PR target/61570
10930 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10931 the last change.
10932
10933 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10934
10935 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10936 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10937 pointer_map.
10938 * hash-map.h: New file.
10939 * ipa-comdats.c: Use hash_map instead of pointer_map.
10940 * ipa.c: Likewise.
10941 * lto-section-out.c: Adjust.
10942 * lto-streamer.h: Replace pointer_map with hash_map.
10943 * symtab.c (verify_symtab): Likewise.
10944 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10945 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10946 * tree-streamer.h: Likewise.
10947 * tree-streamer.c: Adjust.
10948 * pointer-set.h: Remove pointer_map.
10949
10950 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10951
10952 * hash-table.h: Add a template arg to choose between storing values
10953 and storing pointers to values, and then provide partial
10954 specializations for both.
10955 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10956 should store, not the type values should point to.
10957 * tree-into-ssa.c (var_info_hasher): Likewise.
10958 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10959 * tree-complex.c: Adjust.
10960 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10961 table instead of int_tree_map *.
10962 * tree-parloops.c: Adjust.
10963 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10964 type is being stored.
10965 * tree-vectorizer.c: Adjust.
10966
10967 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10968
10969 * hash-table.h: Remove a layer of indirection from hash_table so that
10970 it contains the hash table's data instead of a pointer to the data.
10971 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10972 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10973 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10974 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10975 fold-const.c, gcse.c, ggc-common.c,
10976 gimple-ssa-strength-reduction.c, gimplify.c,
10977 graphite-clast-to-gimple.c, graphite-dependences.c,
10978 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10979 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10980 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10981 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10982 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10983 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10984 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10985 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10986 tree-ssa-live.c, tree-ssa-loop-im.c,
10987 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10988 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10989 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10990 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10991 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10992 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10993 vtable-verify.c, vtable-verify.h: Adjust.
10994
10995 2014-06-24 Richard Biener <rguenther@suse.de>
10996
10997 PR tree-optimization/61572
10998 * tree-ssa-sink.c (statement_sink_location): Do not sink
10999 loads from hard registers.
11000
11001 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11002
11003 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11004 not mentioned in clauses use private clause if the iterator is
11005 declared in #pragma omp for simd, and when adding lastprivate
11006 instead, add it to the outer #pragma omp for too. Diagnose
11007 if the variable is private in outer context. For simd collapse > 1
11008 loops, replace all iterators with temporaries.
11009 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11010 same even in collapse > 1 loops.
11011
11012 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11013 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11014 non-NULL.
11015 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11016 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11017 non-NULL.
11018 (gimplify_adjust_omp_clauses): Likewise.
11019 * omp-low.c (lower_rec_simd_input_clauses,
11020 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11021 safelen the same as safelen(1).
11022 * tree-nested.c (convert_nonlocal_omp_clauses,
11023 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11024 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11025 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11026 Fixup handling of GIMPLE_OMP_TARGET.
11027 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11028 GIMPLE_OMP_TARGET.
11029
11030 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11031
11032 PR tree-optimization/61554
11033 * tree-ssa-propagate.c: Include "bitmap.h".
11034 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11035 properly update constructor/destructor.
11036 (substitute_and_fold_dom_walker::before_dom_children):
11037 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11038 need_eh_cleaup instead.
11039 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11040 need_eh_cleanup.
11041
11042 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11043
11044 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11045 * tree-pass.h (make_pass_ipa_single_use): New pass.
11046 * cgraph.h (used_by_single_function): New flag.
11047 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11048 Stream it.
11049 * passes.def (pass_ipa_single_use): Scedule.
11050 * ipa.c (BOTTOM): New macro.
11051 (meet): New function
11052 (propagate_single_user): New function.
11053 (ipa_single_use): New function.
11054 (pass_data_ipa_single_use): New pass.
11055 (pass_ipa_single_use): New pass.
11056 (pass_ipa_single_use::gate): New gate.
11057 (make_pass_ipa_single_use): New function.
11058
11059 2014-06-23 Kai Tietz <ktietz@redhat.com>
11060
11061 PR target/39284
11062 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11063 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11064
11065 2014-06-23 Richard Biener <rguenther@suse.de>
11066
11067 * tree-ssa-loop.c (gate_loop): New function.
11068 (pass_tree_loop::gate): Call it.
11069 (pass_data_tree_no_loop, pass_tree_no_loop,
11070 make_pass_tree_no_loop): New.
11071 * tree-vectorizer.c: Include tree-scalar-evolution.c
11072 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11073 required.
11074 (pass_slp_vectorize::clone): New method.
11075 * timevar.def (TV_TREE_NOLOOP): New.
11076 * tree-pass.h (make_pass_tree_no_loop): Declare.
11077 * passes.def (pass_tree_no_loop): New pass group with
11078 SLP vectorizer.
11079
11080 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11081
11082 PR target/61570
11083 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11084 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11085
11086 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11087
11088 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11089 "yes" where needed.
11090
11091 2014-06-23 Alan Modra <amodra@gmail.com>
11092
11093 PR bootstrap/61583
11094 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11095 to zero on debug statements.
11096
11097 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11098
11099 PR target/60825
11100 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11101 Ignore third operand if present by marking qualifier_internal.
11102
11103 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11104
11105 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11106 vector extension.
11107 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11108 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11109 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11110 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11111 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11112 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11113 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11114 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11115 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11116 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11117 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11118 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11119 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11120 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11121 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11122 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11123 logic in GCC vector extensions
11124
11125 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11126 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11127 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11128 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11129 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11130 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11131 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11132 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11133 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11134 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11135
11136 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11137
11138 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11139 extensions.
11140
11141 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11142 (vget_low_s64): Use __GET_LOW macro.
11143 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11144 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11145 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11146 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11147 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11148
11149 (vcombine_s64): Use GCC vector extensions; remove cast.
11150 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11151 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11152 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11153 Fix type signature; remove cast.
11154
11155 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11156
11157 PR target/60825
11158 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11159 V1DFmode.
11160 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11161 add V1DFmode
11162 (BUILTIN_VD1): New.
11163 (BUILTIN_VD_RE): Remove.
11164 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11165 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11166 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11167 variant but not df.
11168 (vreinterpretv1df*, vreinterpret*v1df): New.
11169 (vreinterpretdf*, vreinterpret*df): Remove.
11170 * config/aarch64/aarch64-simd.md (aarch64_create,
11171 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11172 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11173 (VD1): New.
11174 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11175 (vcreate_f64): Remove cast, use v1df builtin.
11176 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11177 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11178 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11179 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11180 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11181 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11182 add range check using __builtin_aarch64_im_lane_boundsi.
11183 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11184 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11185 type signature, use gcc vector extensions.
11186 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11187 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11188 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11189 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11190 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11191 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11192 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11193 vreinterpret_u64_f64): Use v1df builtin not df.
11194
11195 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11196
11197 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11198 vector registers.
11199
11200 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11201
11202 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11203 priority directly.
11204
11205 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11206
11207 * loop-invariant.c (pre_check_invariant_p): New function.
11208 (find_invariant_insn): Call pre_check_invariant_p.
11209
11210 2014-06-22 Richard Henderson <rth@redhat.com>
11211
11212 PR target/61565
11213 * compare-elim.c (struct comparison): Add eh_note.
11214 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11215 a redundant comparison in a different EH region. Purge EH edges if
11216 necessary.
11217
11218 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11219
11220 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11221 (var_shift): Use it.
11222 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11223 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11224 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11225 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11226 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11227 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11228 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11229 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11230 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11231 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11232 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11233 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11234 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11235 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11236 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11237 *rotldi3_internal15be): Use the new attribute. Merge register and
11238 integer alternatives.
11239
11240 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11241
11242 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11243 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11244 split, *ashrdi3_internal3 and split): Delete, merge into...
11245 (ashr<mode>3): New expander.
11246 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11247 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11248
11249 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11250
11251 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11252 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11253 *rotldi3_internal3 and split): Delete, merge into...
11254 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11255 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11256 Use "rotlw" extended mnemonic.
11257
11258 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11259
11260 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11261 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11262 and split, *ashldi3_internal3 and split): Delete, merge into...
11263 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11264 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11265
11266 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11267
11268 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11269 (lshrsi3, two anonymous define_insns and define_splits,
11270 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11271 *lshrdi3_internal3 and split): Delete, merge into...
11272 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11273 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11274
11275 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11276
11277 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11278 Remove "O" alternative.
11279
11280 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11281
11282 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11283 (mips_move_from_gpr_cost): Likewise.
11284 (mips_register_move_cost): Update accordingly.
11285 (mips_secondary_reload_class): Remove name of in_p.
11286
11287 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11288
11289 PR target/61503
11290 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11291 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11292
11293 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11294
11295 * config/nios2/nios2.c: Include "builtins.h".
11296
11297 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11298
11299 * cgraph.h (tls_model_names): New variable.
11300 * print-tree.c (print_node): Simplify.
11301 * varpool.c (tls_model_names): New variable.
11302 (dump_varpool_node): Output tls model.
11303
11304 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11305
11306 * ipa-visibility.c (function_and_variable_visibility): Disable
11307 temporarily local aliases for some targets.
11308
11309 2014-06-20 Marek Polacek <polacek@redhat.com>
11310
11311 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11312 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11313 into SANITIZE_UNDEFINED.
11314 * doc/invoke.texi: Describe -fsanitize=bounds.
11315 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11316 functions created in the FEs.
11317 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11318 (expand_UBSAN_BOUNDS): New function.
11319 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11320 * internal-fn.h: Don't define internal functions here.
11321 * opts.c (common_handle_option): Add -fsanitize=bounds.
11322 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11323 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11324 * tree-core.h: Define internal functions here.
11325 (struct tree_base): Add ifn field.
11326 * tree-pretty-print.c: Include "internal-fn.h".
11327 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11328 * tree.c (get_callee_fndecl): Likewise.
11329 (build_call_expr_internal_loc): New function.
11330 * tree.def (CALL_EXPR): Update description.
11331 * tree.h (CALL_EXPR_IFN): Define.
11332 (build_call_expr_internal_loc): Declare.
11333 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11334 types.
11335 (ubsan_type_descriptor): Change bool parameter to enum
11336 ubsan_print_style. Adjust the code. Add handling of
11337 UBSAN_PRINT_ARRAY.
11338 (ubsan_expand_bounds_ifn): New function.
11339 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11340 (ubsan_build_overflow_builtin): Likewise.
11341 (instrument_bool_enum_load): Likewise.
11342 (ubsan_instrument_float_cast): Likewise.
11343 * ubsan.h (enum ubsan_print_style): New enum.
11344 (ubsan_expand_bounds_ifn): Declare.
11345 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11346
11347 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11348
11349 * config/rs6000/rs6000.md: Append `DONE' to preparation
11350 statements of `bswap' pattern splitters.
11351
11352 2014-06-20 Tom de Vries <tom@codesourcery.com>
11353
11354 * target.def (call_fusage_contains_non_callee_clobbers): Update
11355 definition.
11356 * doc/tm.texi: Regenerate.
11357
11358 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11359 Max Ostapenko <m.ostapenko@partner.samsung.com>
11360
11361 PR sanitizer/61547
11362 * asan.c (instrument_strlen_call): Fixed instrumentation of
11363 trailing byte.
11364
11365 2014-06-20 Martin Jambor <mjambor@suse.cz>
11366
11367 PR ipa/61540
11368 * ipa-prop.c (impossible_devirt_target): New function.
11369 (try_make_edge_direct_virtual_call): Use it, also instead of
11370 asserting.
11371
11372 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11373 Max Ostapenko <m.ostapenko@partner.samsung.com>
11374
11375 PR sanitizer/61530
11376 * asan.c (build_check_stmt): Add condition.
11377
11378 2014-06-20 Martin Jambor <mjambor@suse.cz>
11379
11380 PR ipa/61211
11381 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11382 expanded clones.
11383
11384 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11385
11386 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11387 Update comments.
11388 (VCONQ): Make comment more helpful.
11389 (VCON): Delete.
11390 * config/aarch64/aarch64-simd.md
11391 (aarch64_sqdmulh_lane<mode>):
11392 Use VCOND for operands 2. Update lane checking and flipping logic.
11393 (aarch64_sqrdmulh_lane<mode>): Likewise.
11394 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11395 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11396 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11397 attribute of operand 3 to VCOND.
11398 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11399 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11400 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11401 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11402 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11403 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11404 define_insn.
11405 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11406 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11407 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11408 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11409 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11410 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11411 operand to VCOND. Update lane flipping and bounds checking logic.
11412 (aarch64_sqdmlal2_lane<mode>): Likewise.
11413 (aarch64_sqdmlsl_lane<mode>): Likewise.
11414 (aarch64_sqdmull_lane<mode>): Likewise.
11415 (aarch64_sqdmull2_lane<mode>): Likewise.
11416 (aarch64_sqdmlal_laneq<mode>):
11417 Replace VCON usage with VCONQ.
11418 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11419 (aarch64_sqdmlal2_laneq<mode>): Emit
11420 aarch64_sqdmlal2_laneq<mode>_internal insn.
11421 Replace VCON with VCONQ.
11422 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11423 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11424 (aarch64_sqdmull_laneq<mode>): Emit
11425 aarch64_sqdmull_laneq<mode>_internal insn.
11426 Replace VCON with VCONQ.
11427 (aarch64_sqdmull2_laneq<mode>): Emit
11428 aarch64_sqdmull2_laneq<mode>_internal insn.
11429 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11430 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11431 of 3rd argument to int16x4_t.
11432 (vqdmlalh_lane_s16): Likewise.
11433 (vqdmlslh_lane_s16): Likewise.
11434 (vqdmull_high_lane_s16): Likewise.
11435 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11436 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11437 (vqdmlsl_lane_s16): Likewise.
11438 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11439 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11440 (vqdmlals_lane_s32): Likewise.
11441 (vqdmlsls_lane_s32): Likewise.
11442 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11443 (vqdmulls_lane_s32): Likewise.
11444 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11445 (vqdmlsl_lane_s32): Likewise.
11446 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11447 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11448 (vqrdmulhh_lane_s16): Likewise.
11449 (vqdmlsl_high_lane_s16): Likewise.
11450 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11451 (vqdmlsl_high_lane_s32): Likewise.
11452 (vqrdmulhs_lane_s32): Likewise.
11453
11454 2014-06-20 Tom de Vries <tom@codesourcery.com>
11455
11456 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11457 get_call_reg_set_usage.
11458
11459 2014-06-20 Tom de Vries <tom@codesourcery.com>
11460
11461 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11462 it contains all call_used_regs.
11463
11464 2014-06-20 Tom de Vries <tom@codesourcery.com>
11465
11466 * final.c (collect_fn_hard_reg_usage): Add and use variable
11467 function_used_regs.
11468
11469 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11470
11471 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11472 (set_init_priority, get_init_priority, set_fini_priority,
11473 get_fini_priority): New methods.
11474 * tree.c (init_priority_for_decl): Remove.
11475 (init_ttree): Do not initialize init priority.
11476 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11477 (decl_priority_info): Remove.
11478 (decl_init_priority_insert): Rewrite.
11479 (decl_fini_priority_insert): Rewrite.
11480 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11481 tree_priority_map_marked_p): Remove.
11482 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11483 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11484 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11485 not output priorities.
11486 (pack_ts_function_decl_value_fields): Likewise.
11487 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11488 not input priorities.
11489 (unpack_ts_function_decl_value_fields): Likewise.
11490 * symtab.c (symbol_priority_map): Declare.
11491 (init_priority_hash): Declare.
11492 (symtab_unregister_node): Unregister from priority hash, too.
11493 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11494 New methods.
11495 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11496 (symbol_priority_info): New function.
11497 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11498 New methods.
11499 * tree-core.h (tree_priority_map): Remove.
11500
11501 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11502
11503 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11504 0xff to uint64_t before shifting it up.
11505
11506 2014-06-20 Julian Brown <julian@codesourcery.com>
11507 Chung-Lin Tang <cltang@codesourcery.com>
11508
11509 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11510 TARGET_THUMB1_ONLY. Add comments.
11511
11512 2014-06-19 Tom de Vries <tom@codesourcery.com>
11513
11514 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11515 return type to void.
11516 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11517
11518 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11519
11520 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11521 as "move", from depends_on.
11522
11523 2014-06-19 Terry Guo <terry.guo@arm.com>
11524
11525 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11526 stage.
11527
11528 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11529
11530 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11531 Remove cr5.
11532 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11533
11534 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11535
11536 PR target/61550
11537 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11538 addresses here if reload in progress or completed.
11539
11540 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11541
11542 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11543 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11544 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11545 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11546 (mips_register_priority): New function that implements the target
11547 hook TARGET_REGISTER_PRIORITY.
11548 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11549 (mips_lra_p): Likewise for TARGET_LRA_P.
11550 (TARGET_REGISTER_PRIORITY): Define macro.
11551 (TARGET_SPILL_CLASS): Likewise.
11552 (TARGET_LRA_P): Likewise.
11553 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11554 classes.
11555 (REG_CLASS_NAMES): Likewise.
11556 (REG_CLASS_CONTENTS): Likewise.
11557 (BASE_REG_CLASS): Use M16_SP_REGS.
11558 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11559 New set attribute to enable alternatives depending on the register
11560 allocator used.
11561 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11562 (*lea64): Disable pattern for MIPS16.
11563 * config/mips/mips.opt (mlra): New option.
11564
11565 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11566
11567 * lra-constraints.c (base_to_reg): New function.
11568 (process_address): Use new function.
11569
11570 2014-06-18 Tom de Vries <tom@codesourcery.com>
11571
11572 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11573 * config/aarch64/aarch64.c
11574 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11575 (aarch64_emit_call_insn): New function.
11576 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11577 of emit_call_insn.
11578 * config/aarch64/aarch64.md (define_expand "call_internal")
11579 (define_expand "call_value_internal", define_expand "sibcall_internal")
11580 (define_expand "sibcall_value_internal"): New.
11581 (define_expand "call", define_expand "call_value")
11582 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11583 expand variant and aarch64_emit_call_insn.
11584
11585 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11586 Tom de Vries <tom@codesourcery.com>
11587
11588 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11589 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11590 Redefine to true.
11591 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11592 clobbers to CALL_INSN_FUNCTION_USAGE.
11593 (define_expand "sibcall_internal")
11594 (define_expand "sibcall_value_internal"): New.
11595 (define_expand "call", define_expand "call_value"): Add argument to
11596 arm_emit_call_insn.
11597 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11598 (define_expand "sibcall_value"): Use sibcall_value_internal and
11599 arm_emit_call_insn.
11600
11601 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11602
11603 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11604
11605 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11606
11607 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11608 __udivmoddi4.
11609
11610 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11611
11612 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11613 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11614 annotations. Fix DWARF information.
11615
11616 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11617
11618 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11619 __udivmoddi4, and fixups for negative operands.
11620
11621 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11622
11623 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11624
11625 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11626
11627 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11628 to __udivmoddi4.
11629
11630 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11631
11632 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11633 manipulation.
11634
11635 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11636
11637 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11638 describing register usage on function entry and exit.
11639
11640 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11641
11642 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11643 (__aeabi_ldivmod): Fix whitespace.
11644
11645 2014-06-18 Andreas Schwab <schwab@suse.de>
11646
11647 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11648 Remove blank line after @item.
11649
11650 2014-06-18 Richard Henderson <rth@redhat.com>
11651
11652 PR target/61545
11653 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11654
11655 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11656
11657 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11658 POST_MODIFY for neon loads and stores.
11659 (arm_print_operand): Output post-index register for neon loads and
11660 stores.
11661
11662 2014-06-18 Richard Biener <rguenther@suse.de>
11663
11664 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11665
11666 2014-06-18 Richard Biener <rguenther@suse.de>
11667
11668 * tree-pass.h (make_pass_dce_loop): Remove.
11669 * passes.def: Replace pass_dce_loop with pass_dce.
11670 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11671 changed free niter estimates and reset the scev cache.
11672 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11673 make_pass_dce_loop): Remove.
11674 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11675 (fini_copy_prop): Return whether something changed. Always
11676 let substitute_and_fold perform DCE and free niter estimates
11677 and reset the scev cache if so.
11678 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11679 (pass_data_copy_prop): Do not unconditionally schedule
11680 cleanup-cfg or update-ssa.
11681
11682 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11683
11684 PR tree-optimization/61518
11685 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11686 reduction var is used in reduction stmt or phi-function only.
11687
11688 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11689
11690 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11691
11692 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11693
11694 PR tree-optimization/61517
11695 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11696 whose rhs's first tree is the source expression instead of the
11697 expression itself.
11698 (find_bswap_or_nop): Likewise.
11699 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11700 gimple stmt whose rhs's first tree is the source. In the memory source
11701 case, move the stmt to be replaced close to one of the original load to
11702 avoid the problem of a store between the load and the stmt's original
11703 location.
11704 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11705 signature.
11706
11707 2014-06-18 Andreas Schwab <schwab@suse.de>
11708
11709 PR rtl-optimization/54555
11710 * postreload.c (move2add_use_add2_insn): Substitute
11711 STRICT_LOW_PART only if it is cheaper.
11712
11713 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11714
11715 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11716 Do not use unspec as call operand. Use memory_operand instead of
11717 memory_nox32_operand and add "m" operand constraint. Disable
11718 pattern for TARGET_X32.
11719 (*sibcall_pop_memory): Ditto.
11720 (*sibcall_value_memory): Ditto.
11721 (*sibcall_value_pop_memory): Ditto.
11722 (sibcall peepholes): Merge SImode and DImode patterns using
11723 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11724 Disable pattern for TARGET_X32. Check if eliminated register is
11725 really dead after call insn. Generate call RTX without unspec operand.
11726 (sibcall_value peepholes): Ditto.
11727 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11728 instead of memory_nox32_operand. Check if eliminated register is
11729 really dead after call insn. Generate call RTX without unspec operand.
11730 (sibcall_value_pop peepholes): Ditto.
11731 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11732
11733 2014-06-18 Terry Guo <terry.guo@arm.com>
11734
11735 PR target/61544
11736 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11737 reach the head.
11738
11739 2014-06-18 Olivier Hainque <hainque@adacore.com>
11740
11741 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11742 memorization of the end of block source location.
11743 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11744 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11745 end source location info we have on the block entry/exit code we
11746 generate.
11747
11748 2014-06-18 Richard Biener <rguenther@suse.de>
11749
11750 * common.opt (fssa-phiopt): New option.
11751 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11752 but not with -Og.
11753 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11754 * doc/invoke.texi (-fssa-phiopt): Document.
11755
11756 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11757
11758 * genattrtab.c (n_bypassed): New variable.
11759 (process_bypasses): Initialise n_bypassed.
11760 Count number of bypassed reservations.
11761 (make_automaton_attrs): Allocate space for bypassed reservations
11762 rather than number of bypasses.
11763
11764 2014-06-18 Richard Biener <rguenther@suse.de>
11765
11766 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11767 we propagated anything.
11768 (substitute_and_fold_dom_walker::before_dom_children): Something
11769 changed if we propagated into PHI arguments.
11770 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11771 we removed a stmt.
11772
11773 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11774
11775 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11776 vector case.
11777 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11778 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11779 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11780 Introduces alternative way of loads group permutaions.
11781 (vect_transform_grouped_load): Try alternative way of permutations.
11782
11783 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11784
11785 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11786 changed in ORT_TARGET region, don't jump to do_outer.
11787 (struct gimplify_adjust_omp_clauses_data): New type.
11788 (gimplify_adjust_omp_clauses_1): Adjust for data being
11789 a struct gimplify_adjust_omp_clauses_data pointer instead
11790 of tree *. Pass pre_p as a new argument to
11791 lang_hooks.decls.omp_finish_clause hook.
11792 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11793 splay_tree_foreach to pass both list_p and pre_p.
11794 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11795 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11796 gimplify_adjust_omp_clauses callers.
11797 * langhooks.c (lhd_omp_finish_clause): New function.
11798 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11799 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11800 * langhooks.h (struct lang_hooks_for_decls): Add a new
11801 gimple_seq * argument to omp_finish_clause hook.
11802 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11803 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11804 (scan_omp_parallel, lower_omp_for): When adding
11805 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11806 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11807 * tree-nested.c (convert_nonlocal_omp_clauses,
11808 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11809 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11810
11811 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11812
11813 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11814 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11815
11816 2014-06-17 Xinliang David Li <davidxl@google.com>
11817
11818 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11819 * passes.c (pass_init_dump_file): Do not set initialize
11820 flag to false unconditionally.
11821
11822 2014-06-17 Richard Biener <rguenther@suse.de>
11823
11824 * genopinit.c (main): Use vec<>::qsort method.
11825 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11826 Likewise.
11827 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11828
11829 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11830
11831 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11832 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11833 (mips_move_to_gpr_cost): Remove ST_REGS case.
11834 (mips_move_from_gpr_cost): Likewise.
11835 (mips_register_move_cost): Likewise.
11836 (mips_secondary_reload_class): Likewise.
11837
11838 2014-06-17 Richard Biener <rguenther@suse.de>
11839
11840 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11841 (pass_all_optimizations): Move 3rd copy-prop pass from after
11842 fre to before ifcombine/phiopt.
11843
11844 2014-06-17 Richard Biener <rguenther@suse.de>
11845
11846 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11847 and allow all blocks to be forwarders.
11848
11849 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11850
11851 PR target/61483
11852 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11853 variable 'size'; calculate 'size' right in the front; use
11854 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11855 pcum->aapcs_stack_words.
11856
11857 2014-06-17 Nick Clifton <nickc@redhat.com>
11858
11859 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11860 (umulhi3, mulsidi3, umulsidi3): Likewise.
11861
11862 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11863
11864 PR middle-end/61508
11865 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11866 check for section name.
11867
11868 2014-06-17 Richard Biener <rguenther@suse.de>
11869
11870 * tree-ssa-propagate.c: Include domwalk.h.
11871 (substitute_and_fold): Outline main worker into a domwalker ...
11872 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11873 Schedule stmts we can fully propagate for removal. Remove
11874 poor-mans DCE.
11875 (substitute_and_fold): Apply a dominator walk to perform
11876 substitution. Process stmts scheduled for removal here.
11877
11878 2014-06-17 Richard Biener <rguenther@suse.de>
11879
11880 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11881 of PHI node moving.
11882
11883 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11884
11885 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11886 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11887 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11888 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11889 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11890 TARGET_HARD_FLOAT.
11891 (get_fpscr) : Likewise.
11892
11893 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11894
11895 PR rtl-optimization/61325
11896 * lra-constraints.c (valid_address_p): Add forward declaration.
11897 (simplify_operand_subreg): Check address validity before and after
11898 alter_reg of memory subreg.
11899
11900 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11901
11902 * config/i386/i386.c (decide_alg): Correctly handle
11903 maximum size of stringop algorithm.
11904
11905 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11906
11907 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11908
11909 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11910
11911 PR rtl-optimization/61522
11912 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11913
11914 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11915
11916 Revert:
11917 * symtab.c (symtab_node::reset_section): New method.
11918 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11919 for localization.
11920 * cgraph.h (reset_section): Declare.
11921 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11922 do not consider comdat locals.
11923 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11924 for new symbol.
11925 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11926 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11927 reset sections of symbols dragged out of the comdats.
11928 (function_and_variable_visibility): Reset sections of
11929 localized symbols.
11930
11931 2014-06-16 Richard Biener <rguenther@suse.de>
11932
11933 PR tree-optimization/61482
11934 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11935 [-INF(OVF), +INF(OVF)] range.
11936
11937 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11938
11939 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11940 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11941 handling 32-bit multiplication.
11942
11943 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11944
11945 PR middle-end/61430
11946 * lra-lives.c (process_bb_lives): Skip creating copy during
11947 insn scan when src/dest has constrained to same regno.
11948
11949 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11950
11951 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11952 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11953
11954 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11955
11956 * asan.c (check_func): New function.
11957 (maybe_create_ssa_name): Likewise.
11958 (build_check_stmt_with_calls): Likewise.
11959 (use_calls_p): Likewise.
11960 (report_error_func): Change interface.
11961 (build_check_stmt): Allow non-integer lengths; add support
11962 for new parameter.
11963 (asan_instrument): Likewise.
11964 (instrument_mem_region_access): Moved code to build_check_stmt.
11965 (instrument_derefs): Likewise.
11966 (instrument_strlen_call): Likewise.
11967 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11968 * doc/invoke.texi: Describe new parameter.
11969 * params.def: Define new parameter.
11970 * params.h: Likewise.
11971 * sanitizer.def: Describe new builtins.
11972
11973 2014-06-16 Richard Biener <rguenther@suse.de>
11974
11975 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11976 Make all defs available at the end.
11977 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11978
11979 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11980
11981 PR plugins/45078
11982 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11983
11984 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11985
11986 PR bootstrap/61516
11987 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11988 initialization. Replace remaining use of uid.
11989
11990 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11991
11992 * c-family/c-common.c (handle_tls_model_attribute): Use
11993 set_decl_tls_model.
11994 * c-family/c-common.c (handle_tls_model_attribute): Use
11995 set_decl_tls_model.
11996 * cgraph.h (struct varpool_node): Add tls_model.
11997 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11998 * tree.h (DECL_TLS_MODEL): Update.
11999 (DECL_THREAD_LOCAL_P): Check that variable is static.
12000 (decl_tls_model): Declare.
12001 (set_decl_tls_model): Declare.
12002 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12003 set symbol prorperties.
12004 (get_emutls_init_templ_addr): Cleanup.
12005 (new_emutls_decl): Update.
12006 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12007 (lto_input_varpool_node): Likewise.
12008 * lto-streamer-out.c (hash_tree): Likewise.
12009 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12010 not stream DECL_TLS_MODEL.
12011 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12012 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12013
12014 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12015
12016 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12017
12018 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12019
12020 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12021 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12022 lists.
12023 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12024 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12025 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12026 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12027 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12028 (df_get_artificial_defs, df_get_artificial_uses)
12029 (df_single_def, df_single_use): Update accordingly.
12030 (df_refs_chain_dump): Take the first element in a linked list as
12031 parameter, rather than a pointer to an array of pointers.
12032 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12033 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12034 (df_chain_create_bb_process_use): Likewise.
12035 (df_md_bb_local_compute_process_def): Likewise.
12036 * fwprop.c (process_defs, process_uses): Likewise.
12037 (register_active_defs, update_uses): Likewise.
12038 (forward_propagate_asm): Update for new df_ref linking.
12039 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12040 (df_null_ref_rec, df_null_mw_rec): Likewise.
12041 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12042 explicitly.
12043 (df_scan_free_bb_info): Remove check for null artificial_defs.
12044 (df_install_ref_incremental): Adjust for new df_ref linking.
12045 Use a single-element insertion rather than a full sort.
12046 (df_ref_chain_delete_du_chain): Take the first element
12047 in a linked list as parameter, rather than a pointer to an array of
12048 pointers.
12049 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12050 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12051 (df_insn_info_delete): Remove check for null defs and call to
12052 df_scan_free_mws_vec.
12053 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12054 null rather than df_null_*_rec.
12055 (df_insn_rescan_debug_internal): Likewise, and update null
12056 checks in the same way. Remove check for null defs.
12057 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12058 Move a single element rather doing a full sort.
12059 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12060 linking.
12061 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12062 Initialize df_ref and df_mw_hardreg lists to null rather than
12063 df_null_*_rec.
12064 (df_ref_compare): Take df_refs as parameter, transferring the
12065 old interface to...
12066 (df_ref_ptr_compare): ...this new function.
12067 (df_sort_and_compress_refs): Update accordingly.
12068 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12069 old interface to...
12070 (df_mw_ptr_compare): ...this new function.
12071 (df_sort_and_compress_mws): Update accordingly.
12072 (df_install_refs, df_install_mws): Return a linked list rather than
12073 an array of pointers.
12074 (df_refs_add_to_chains): Assert that old lists are empty rather
12075 than freeing them.
12076 (df_insn_refs_verify): Don't handle null defs speciailly.
12077 * web.c (union_match_dups): Update for new df_ref linking.
12078
12079 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12080
12081 * df.h (df_ref_create, df_ref_remove): Delete.
12082 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12083 (df_ref_remove): Likewise.
12084
12085 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12086
12087 * df.h (df_single_def, df_single_use): New functions.
12088 * ira.c (find_moveable_pseudos): Use them.
12089
12090 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12091
12092 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12093 * df-problems.c (df_note_bb_compute): Use it.
12094 * regstat.c (regstat_bb_compute_ri): Likewise.
12095
12096 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12097
12098 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12099 * cse.c (cse_extended_basic_block): Use them.
12100 * dce.c (mark_artificial_use): Likewise.
12101 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12102 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12103 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12104 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12105 (df_simulate_initialize_backwards): Likewise.
12106 (df_simulate_finalize_backwards): Likewise.
12107 (df_simulate_initialize_forwards): Likewise.
12108 (df_md_simulate_artificial_defs_at_top): Likewise.
12109 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12110 * regrename.c (init_rename_info): Likewise.
12111 * regstat.c (regstat_bb_compute_ri): Likewise.
12112 (regstat_bb_compute_calls_crossed): Likewise.
12113
12114 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12115
12116 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12117 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12118 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12119 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12120 * combine.c (create_log_links): Likewise.
12121 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12122 (try_eliminate_compare): Likewise.
12123 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12124 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12125 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12126 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12127 (word_dce_process_block, dce_process_block): Likewise.
12128 * ddg.c (def_has_ccmode_p): Likewise.
12129 * df-core.c (df_bb_regno_first_def_find): Likewise.
12130 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12131 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12132 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12133 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12134 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12135 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12136 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12137 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12138 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12139 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12140 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12141 * fwprop.c (local_ref_killed_between_p): Likewise.
12142 (all_uses_available_at, free_load_extend): Likewise.
12143 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12144 * hw-doloop.c (scan_loop): Likewise.
12145 * ifcvt.c (dead_or_predicable): Likewise.
12146 * init-regs.c (initialize_uninitialized_regs): Likewise.
12147 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12148 (process_bb_node_lives): Likewise.
12149 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12150 (find_moveable_pseudos): Likewise.
12151 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12152 * recog.c (peep2_find_free_register): Likewise.
12153 * ree.c (get_defs): Likewise.
12154 * regstat.c (regstat_bb_compute_ri): Likewise.
12155 (regstat_bb_compute_calls_crossed): Likewise.
12156 * sched-deps.c (find_inc, find_mem): Likewise.
12157 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12158 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12159 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12160 (prepare_shrink_wrap): Likewise.
12161 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12162 * web.c (union_defs, pass_web::execute): Likewise.
12163 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12164 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12165
12166 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12167
12168 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12169 to inheritance pseudos.
12170 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12171
12172 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12173
12174 PR target/61415
12175 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12176 (BU_MISC_2): Rename to ...
12177 (BU_LDBL128_2): ... this.
12178 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12179 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12180 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12181 RS6000_BTM_LDBL128.
12182 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12183 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12184 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12185 (unpacktf_1): Likewise.
12186 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12187 (__builtin_longdouble_dw1): Likewise.
12188 * doc/sourcebuild.texi (longdouble128): Document.
12189
12190 2014-06-13 Jeff Law <law@redhat.com>
12191
12192 PR rtl-optimization/61094
12193 PR rtl-optimization/61446
12194 * ree.c (combine_reaching_defs): Get the mode for the copy from
12195 the extension insn rather than the defining insn.
12196
12197 2014-06-13 Dehao Chen <dehao@google.com>
12198
12199 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12200
12201 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12202
12203 * doc/install.texi (--enable-linker-plugin-configure-flags)
12204 (--enable-linker-plugin-flags): Document new flags.
12205
12206 2014-06-13 Martin Jambor <mjambor@suse.cz>
12207
12208 PR ipa/61186
12209 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12210 cache_token if returning early.
12211
12212 2014-06-13 Nick Clifton <nickc@redhat.com>
12213
12214 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12215 requested alignment is active.
12216 (LABEL_ALIGN): Likewise.
12217 (LOOP_ALIGN): Likewise.
12218
12219 2014-06-13 Richard Biener <rguenther@suse.de>
12220
12221 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12222 Rewrite to propagate the VN result into all uses where
12223 possible and to remove stmts becoming dead because of that.
12224 (eliminate): Generalize stmt removal handling, remove in
12225 reverse dominator order to support proper debug stmt
12226 generation. Update stmts before removing stmts.
12227 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12228
12229 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12230
12231 PR tree-optimization/61375
12232 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12233 symbolic number cannot be represented in an uint64_t.
12234 (find_bswap_or_nop_1): Likewise.
12235
12236 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12237
12238 * symtab.c (symtab_node::reset_section): New method.
12239 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12240 for localization.
12241 * cgraph.h (reset_section): Declare.
12242 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12243 do not consider comdat locals.
12244 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12245 for new symbol.
12246 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12247 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12248 reset sections of symbols dragged out of the comdats.
12249 (function_and_variable_visibility): Reset sections of
12250 localized symbols.
12251
12252 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12253
12254 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12255 to use symtab and decl_binds_to_current_def_p
12256 * tree-vectorizer.c (increase_alignment): Increase alignment
12257 of alias target, too.
12258
12259 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12260
12261 PR middle-end/61486
12262 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12263 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12264 if outer combined construct is distribute.
12265 (gimplify_omp_for): For OMP_DISTRIBUTE set
12266 gimplify_omp_ctxp->distribute.
12267 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12268 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12269 mapping into decl map.
12270
12271 2014-06-12 Jason Merrill <jason@redhat.com>
12272
12273 * common.opt (fabi-version): Change default to 0.
12274
12275 2014-06-12 Jason Merrill <jason@redhat.com>
12276
12277 * toplev.c (process_options): Reject -fabi-version=1.
12278
12279 2014-06-12 Jeff Law <law@redhat.com>
12280
12281 PR tree-optimization/61009
12282 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12283 value when we stop processing a block due to problematic PHIs.
12284
12285 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12286
12287 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12288 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12289 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12290 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12291 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12292 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12293 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12294 are not in the spec.
12295
12296 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12297
12298 PR target/59843
12299 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12300 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12301 Support V1DFmode.
12302
12303 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12304
12305 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12306
12307 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12308
12309 PR target/61443
12310 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12311 loading from address spaces.
12312
12313 2014-06-12 Martin Liska <mliska@suse.cz>
12314
12315 PR ipa/61462
12316 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12317 statement is reachable.
12318
12319 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12320
12321 * symtab.c (section_hash): New hash.
12322 (symtab_unregister_node): Clear section before freeing.
12323 (hash_section_hash_entry): New haser.
12324 (eq_sections): New function.
12325 (symtab_node::set_section_for_node): New method.
12326 (set_section_1): Update.
12327 (symtab_node::set_section): Take string instead of tree as parameter.
12328 (symtab_resolve_alias): Update.
12329 * cgraph.h (section_hash_entry_d): New structure.
12330 (section_hash_entry): New typedef.
12331 (cgraph_node): Change comdat_group_ to x_comdat_group,
12332 change section_ to x_section and turn into section_hash_entry;
12333 update accestors; put set_section_for_node offline.
12334 * tree.c (decl_section_name): Turn into string.
12335 (set_decl_section_name): Change parameter to be string.
12336 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12337 * sdbout.c (sdbout_one_type): Update.
12338 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12339 * varasm.c (IN_NAMED_SECTION, get_named_section,
12340 resolve_unique_section, hot_function_section, get_named_text_section,
12341 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12342 make_decl_rtl, default_unique_section): Update.
12343 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12344 (c6x_elf_unique_section): Update.
12345 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12346 * config/pa/pa.c (pa_function_section): Update.
12347 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12348 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12349 * config/arc/arc.c (arc_in_small_data_p): Update.
12350 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12351 * config/mcore/mcore.c (mcore_unique_section): Update.
12352 * config/mips/mips.c (mips16_build_function_stub): Update.
12353 (mips16_build_call_stub): Update.
12354 (mips_function_rodata_section): Update.
12355 (mips_in_small_data_p): Update.
12356 * config/score/score.c (score_in_small_data_p): Update.
12357 * config/rx/rx.c (rx_in_small_data): Update.
12358 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12359 (rs6000_xcoff_asm_named_section): Update.
12360 (rs6000_xcoff_unique_section): Update.
12361 * config/frv/frv.c (frv_string_begins_with): Update.
12362 (frv_in_small_data_p): Update.
12363 * config/v850/v850.c (v850_encode_data_area): Update.
12364 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12365 (bfin_handle_l1_data_attribute): Update.
12366 (bfin_handle_l2_attribute): Update.
12367 * config/mep/mep.c (mep_unique_section): Update.
12368 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12369 Update.
12370 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12371 (h8300_handle_tiny_data_attribute): Update.
12372 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12373 (m32r_in_small_data_p): Update.
12374 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12375 * config/i386/i386.c (ix86_in_large_data_p): Update.
12376 * config/i386/winnt.c (i386_pe_unique_section): Update.
12377 * config/darwin.c (darwin_function_section): Update.
12378 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12379 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12380 (new_emutls_decl): Update.
12381 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12382 input_varpool_node): Update.
12383 (ead_string_cst): Turn to ...
12384 (read_string): ... this one.
12385 * dwarf2out.c (secname_for_decl): Update.
12386 * asan.c (asan_protect_global): Update.
12387
12388 2014-06-11 DJ Delorie <dj@redhat.com>
12389
12390 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12391 cache lines.
12392 * config/rx/rx.c (rx_option_override): Likewise.
12393 (rx_align_for_label): Likewise.
12394
12395 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12396
12397 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12398
12399 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12400 prototype.
12401
12402 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12403
12404 * common.md: New file.
12405 * doc/md.texi: Update description of generic, machine-independent
12406 constraints.
12407 * config/s390/constraints.md (e): Delete.
12408 * Makefile.in (md_file): Include common.md.
12409 * config/m32c/t-m32c (md_file): Likewise.
12410 * genpreds.c (general_mem): New array.
12411 (generic_constraint_letters): Remove constraints now defined by
12412 common.md.
12413 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12414 Allow the first character to be '<' or '>' as well.
12415 * genoutput.c (general_mem): New array.
12416 (indep_constraints): Remove constraints now defined by common.md.
12417 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12418 Remove special handling of 'm'.
12419 * ira-costs.c (record_reg_classes): Remove special handling of
12420 constraints now defined by common.md.
12421 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12422 * ira-lives.c (single_reg_class): Likewise.
12423 (ira_implicitly_set_insn_hard_regs): Likewise.
12424 * lra-constraints.c (reg_class_from_constraints): Likewise.
12425 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12426 * postreload.c (reload_cse_simplify_operands): Likewise.
12427 * reload.c (push_secondary_reload, scratch_reload_class)
12428 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12429 * reload1.c (maybe_fix_stack_asms): Likewise.
12430 * targhooks.c (default_secondary_reload): Likewise.
12431 * stmt.c (parse_output_constraint): Likewise.
12432 * recog.c (preprocess_constraints): Likewise.
12433 (constrain_operands, peep2_find_free_register): Likewise.
12434 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12435 must be handled specially.
12436
12437 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12438
12439 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12440 * genpreds.c (have_const_dbl_constraints): Delete.
12441 (add_constraint): Don't set it.
12442 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12443 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12444 constraints using the lookup_constraint logic.
12445 * ira-lives.c (single_reg_class): Likewise.
12446 * ira.c (ira_setup_alts): Likewise.
12447 * lra-constraints.c (process_alt_operands): Likewise.
12448 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12449 * reload.c (find_reloads): Likewise.
12450
12451 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12452
12453 * genpreds.c (const_int_start, const_int_end): New variables.
12454 (choose_enum_order): Output CONST_INT constraints before memory
12455 constraints.
12456 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12457 Add CT_CONST_INT.
12458 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12459 * ira.c (ira_setup_alts): Likewise.
12460 * lra-constraints.c (process_alt_operands): Likewise.
12461 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12462 * reload.c (find_reloads): Likewise.
12463
12464 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12465
12466 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12467 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12468 * recog.c (preprocess_constraints): Update accordingly.
12469
12470 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12471
12472 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12473 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12474 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12475 * genpreds.c (print_type_tree): New function.
12476 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12477 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12478 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12479 Write out enum constraint_type and get_constraint_type.
12480 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12481 constraint_num rather than a constraint string.
12482 (satisfies_address_constraint_p): Likewise.
12483 (reg_class_from_constraints): Avoid old constraint macros.
12484 (process_alt_operands, process_address_1): Likewise.
12485 (curr_insn_transform): Likewise.
12486 * ira-costs.c (record_reg_classes): Likewise.
12487 (record_operand_costs): Likewise.
12488 * ira-lives.c (single_reg_class): Likewise.
12489 (ira_implicitly_set_insn_hard_regs): Likewise.
12490 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12491 * postreload.c (reload_cse_simplify_operands): Likewise.
12492 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12493 (constrain_operands, peep2_find_free_register): Likewise.
12494 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12495 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12496 * reload1.c (maybe_fix_stack_asms): Likewise.
12497 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12498 * targhooks.c (default_secondary_reload): Likewise.
12499 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12500 to EXTRA_CONSTRAINT_STR.
12501 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12502
12503 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12504
12505 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12506 (write_constraint_satisfied_p_array): ...this new function.
12507 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12508 an array.
12509 (write_insn_preds_c): Update accordingly.
12510
12511 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12512
12513 * genpreds.c (write_lookup_constraint): Rename to...
12514 (write_lookup_constraint_1): ...this.
12515 (write_lookup_constraint_array): New function.
12516 (write_tm_preds_h): Define lookup_constraint as an inline function
12517 that uses write_lookup_constraint_array where possible.
12518 (write_insn_preds_c): Update for the changes above.
12519
12520 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12521
12522 * doc/md.texi (regclass_for_constraint): Rename to...
12523 (reg_class_for_constraint): ...this.
12524 * genpreds.c (num_constraints, enum_order, register_start)
12525 (register_end, satisfied_start, memory_start, memory_end)
12526 (address_start, address_end): New variables.
12527 (add_constraint): Count the number of constraints.
12528 (choose_enum_order): New function.
12529 (write_enum_constraint_num): Iterate over enum_order.
12530 (write_regclass_for_constraint): Rename to...
12531 (write_reg_class_for_constraint_1): ...this and update output
12532 accordingly.
12533 (write_constraint_satisfied_p): Rename to...
12534 (write_constraint_satisfied_p_1): ...this and update output
12535 accordingly. Do nothing if all extra constraints are register
12536 constraints.
12537 (write_insn_extra_memory_constraint): Delete.
12538 (write_insn_extra_address_constraint): Delete.
12539 (write_range_function): New function.
12540 (write_tm_preds_h): Define constraint_satisfied_p and
12541 reg_class_for_constraint as inline functions that do a range check
12542 before calling the out-of-line function. Use write_range_function
12543 to implement insn_extra_{register,memory,address}_constraint,
12544 the first of which is new.
12545 (write_insn_preds_c): Update after above changes to write_* functions.
12546 (main): Call choose_enum_order.
12547
12548 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12549
12550 PR tree-optimization/61306
12551 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12552 expression instead of its size.
12553 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12554 false to prevent optimization when the result is unpredictable due to
12555 arithmetic right shift of signed type with highest byte is set.
12556 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12557 (init_symbolic_number): Likewise.
12558 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12559 when the result is unpredictable due to sign extension.
12560
12561 2014-06-11 Terry Guo <terry.guo@arm.com>
12562
12563 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12564 (*thumb1_addsi3): Ditto.
12565 (*thumb_subdi3): Ditto.
12566 (thumb1_subsi3_insn): Ditto.
12567 (*thumb_mulsi3): Ditto.
12568 (*thumb_mulsi3_v6): Ditto.
12569 (*thumb1_andsi3_insn): Ditto.
12570 (thumb1_bicsi3): Ditto.
12571 (*thumb1_iorsi3_insn): Ditto.
12572 (*thumb1_xorsi3_insn): Ditto.
12573 (*thumb1_ashlsi3): Ditto.
12574 (*thumb1_ashrsi3): Ditto.
12575 (*thumb1_lshrsi3): Ditto.
12576 (*thumb1_rotrsi3): Ditto.
12577 (*thumb1_negdi2): Ditto.
12578 (*thumb1_negsi2): Ditto.
12579 (*thumb1_abssi2): Ditto.
12580 (*thumb1_neg_abssi2): Ditto.
12581 (*thumb1_one_cmplsi2): Ditto.
12582 (*thumb1_zero_extendhisi2): Ditto.
12583 (*thumb1_zero_extendqisi2): Ditto.
12584 (*thumb1_zero_extendqisi2_v6): Ditto.
12585 (thumb1_extendhisi2): Ditto.
12586 (thumb1_extendqisi2): Ditto.
12587 (*thumb1_movdi_insn): Ditto.
12588 (*thumb1_movsi_insn): Ditto.
12589 (*thumb1_movhi_insn): Ditto.
12590 (thumb_movhi_clobber): Ditto.
12591 (*thumb1_movqi_insn): Ditto.
12592 (*thumb1_movhf): Ditto.
12593 (*thumb1_movsf_insn): Ditto.
12594 (*thumb_movdf_insn): Ditto.
12595 (movmem12b): Ditto.
12596 (movmem8b): Ditto.
12597 (cbranchqi4): Ditto.
12598 (cbranchsi4_insn): Ditto.
12599 (cbranchsi4_scratch): Ditto.
12600 (*negated_cbranchsi4): Ditto.
12601 (*tbit_cbranch): Ditto.
12602 (*tlobits_cbranch): Ditto.
12603 (*tstsi3_cbranch): Ditto.
12604 (*cbranchne_decr1): Ditto.
12605 (*addsi3_cbranch): Ditto.
12606 (*addsi3_cbranch_scratch): Ditto.
12607 (*thumb_cmpdi_zero): Ditto.
12608 (cstoresi_eq0_thumb1): Ditto.
12609 (cstoresi_ne0_thumb1): Ditto.
12610 (*cstoresi_eq0_thumb1_insn): Ditto.
12611 (*cstoresi_ne0_thumb1_insn): Ditto.
12612 (cstoresi_nltu_thumb1): Ditto.
12613 (cstoresi_ltu_thumb1): Ditto.
12614 (thumb1_addsi3_addgeu): Ditto.
12615 (*thumb_jump): Ditto.
12616 (*call_reg_thumb1_v5): Ditto.
12617 (*call_reg_thumb1): Ditto.
12618 (*call_value_reg_thumb1_v5): Ditto.
12619 (*call_value_reg_thumb1): Ditto.
12620 (*call_insn): Ditto.
12621 (*call_value_insn): Ditto.
12622 (thumb1_casesi_internal_pic): Ditto.
12623 (thumb1_casesi_dispatch): Ditto.
12624 (*thumb1_indirect_jump): Ditto.
12625 (prologue_thumb1_interwork): Ditto.
12626 (*epilogue_insns): Ditto.
12627 (consttable_1): Ditto.
12628 (consttable_2): Ditto.
12629 (tablejump): Ditto.
12630 (*thumb1_tablejump): Ditto.
12631 (thumb_eh_return): Ditto.
12632 (define_peephole2): Two of them are thumb1 only and got moved into
12633 new file thumb1.md.
12634 (define_split): Six of them are thumb1 only and got moved into new
12635 file thumb1.md.
12636 * config/arm/thumb1.md: New file comprised of above thumb1 only
12637 patterns.
12638
12639 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12640
12641 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12642 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12643 dependencies.
12644 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12645 (aarch64_crc_builtin_datum): New struct.
12646 (aarch64_crc_builtin_data): New.
12647 (aarch64_init_crc32_builtins): New function.
12648 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12649 (aarch64_crc32_expand_builtin): New.
12650 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12651 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12652 __ARM_FEATURE_CRC32 when appropriate.
12653 (TARGET_CRC32): Define.
12654 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12655 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12656 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12657 (aarch64_<crc_variant>): New pattern.
12658 * config/aarch64/arm_acle.h: New file.
12659 * config/aarch64/iterators.md (CRC): New int iterator.
12660 (crc_variant, crc_mode): New int attributes.
12661 * doc/aarch64-acle-intrinsics.texi: New file.
12662 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12663 Include aarch64-acle-intrinsics.texi.
12664
12665 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12666
12667 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12668 check for stores group of length 3.
12669 (vect_permute_store_chain): New permutations for stores group of
12670 length 3.
12671 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12672 of vec_perm_shuffle for the new permutations.
12673
12674 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12675
12676 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12677 table rewriting temporarily on targets not supporting ONE_ONLY.
12678
12679 2014-06-11 Richard Biener <rguenther@suse.de>
12680
12681 PR middle-end/61437
12682 Revert
12683 2014-06-04 Richard Biener <rguenther@suse.de>
12684
12685 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12686 TREE_PUBLIC and DECL_EXTERNAL decls.
12687
12688 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12689
12690 * varasm.c (set_implicit_section): New function.
12691 (resolve_unique_section): Use it to set implicit section
12692 for aliases, too.
12693 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12694 (default_function_section): Likewise.
12695 (decl_binds_to_current_def_p): Constify argument.
12696 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12697 * asan.c (asan_protect_global): Use
12698 symtab_get_node (decl)->implicit_section.
12699 * symtab.c (dump_symtab_base): Dump implicit sections.
12700 (verify_symtab_base): Verify sanity of sectoins and comdats.
12701 (symtab_resolve_alias): Alias share the section of its target.
12702 (set_section_1): New function.
12703 (symtab_node::set_section): Move here, recurse to aliases.
12704 (verify_symtab): Check for duplicated symtab lists.
12705 * tree-core.h (implicit_section_name_p): Remove.
12706 * tree-vect-data-refs.c: Include varasm.h.
12707 (vect_can_force_dr_alignment_p): Fix conditional on when
12708 decl bints to current definition; use
12709 symtab_get_node (decl)->implicit_section.
12710 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12711 * cgraph.h (struct symtab_node): Add implicit_section.
12712 (set_section): Rename to ...
12713 (set_section_for_node): ... this one.
12714 (set_section): Declare.
12715 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12716 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12717 input_overwrite_node, input_varpool_node): Stream implicit_section.
12718 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12719 removal; it will fail in LTO.
12720
12721 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12722
12723 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12724 Change second alternative type to f_mcr.
12725 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12726 and 12th alternatives' types to f_mcr and f_mrc.
12727 (*movdi_aarch64): Same for 12th and 13th alternatives.
12728 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12729 (aarch64_movtilow_tilow): Change type to fmov.
12730
12731 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12732
12733 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12734 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12735
12736 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12737
12738 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12739 New expander.
12740 (aarch64_sqrdmulh_lane<mode>): Likewise.
12741 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12742 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12743 (aarch64_sqdmulh_laneq<mode>): New expander.
12744 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12745 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12746 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12747 (aarch64_sqdmulh_lane<mode>): New expander.
12748 (aarch64_sqrdmulh_lane<mode>): Likewise.
12749 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12750 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12751 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12752 (aarch64_sqdmlal_laneq<mode>): Likewise.
12753 (aarch64_sqdmlsl_lane<mode>): Likewise.
12754 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12755 (aarch64_sqdmlal2_lane<mode>): Likewise.
12756 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12757 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12758 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12759 (aarch64_sqdmull_lane<mode>): Likewise.
12760 (aarch64_sqdmull_laneq<mode>): Likewise.
12761 (aarch64_sqdmull2_lane<mode>): Likewise.
12762 (aarch64_sqdmull2_laneq<mode>): Likewise.
12763
12764 2014-06-10 Richard Biener <rguenther@suse.de>
12765
12766 PR tree-optimization/61438
12767 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12768 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12769 insertion of IVs if running PRE.
12770 (eliminate): Adjust.
12771 (pass_pre::execute): Likewise.
12772 (pass_fre::execute): Likewise.
12773
12774 2014-06-10 Richard Biener <rguenther@suse.de>
12775
12776 PR middle-end/61456
12777 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12778 Do not use the main variant for the type comparison.
12779 (ncr_compar): Likewise.
12780 (nonoverlapping_component_refs_p): Likewise.
12781
12782 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12783
12784 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12785 REG_CFA_RESTORE mode.
12786
12787 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12788
12789 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12790 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12791 expand_vec_perm_pblendv.
12792
12793 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12794
12795 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12796 available.
12797 Simplify description of __crc32d and __crc32cd intrinsics.
12798 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12799 availability.
12800
12801 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12802
12803 PR lto/61334
12804 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12805 * config.in: Regenerate.
12806 * configure: Likewise.
12807
12808 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12809
12810 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12811 and public vars.
12812 (intersect_static_var_sets): Remove.
12813 (propagate): Do not prune local statics.
12814
12815 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12816
12817 PR fortran/60928
12818 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12819 Set lastprivate_firstprivate even if omp_private_outer_ref
12820 langhook returns true.
12821 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12822 langhook, call unshare_expr on new_var and call
12823 build_outer_var_ref to get the last argument.
12824
12825 2014-06-10 Marek Polacek <polacek@redhat.com>
12826
12827 PR c/60988
12828 * doc/extend.texi: Add cindex for transparent_union.
12829
12830 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12831
12832 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12833 init_symbolic_number ().
12834
12835 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12836
12837 PR middle-end/61141
12838 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12839 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12840 (verify_rtl_sharing): Likewise.
12841
12842 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12843
12844 PR c++/54442
12845 * tree.c (build_qualified_type): Use a canonical type for
12846 TYPE_CANONICAL.
12847
12848 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12849
12850 * config/arm/arm-modes.def: Remove XFmode.
12851
12852 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12853
12854 PR target/61062
12855 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12856 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12857 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12858 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12859 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12860 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12861 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12862 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12863 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12864
12865 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12866
12867 * tree-core.h (tree_decl_with_vis): Remove section_name.
12868
12869 2014-06-09 Kito Cheng <kito@0xlab.org>
12870
12871 * ira.c (ira): Don't call init_caller_save if LRA enabled
12872 since LRA use its own infrastructure to handle that.
12873
12874 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12875
12876 * symtab.c (dump_symtab_base): Update dumping.
12877 (symtab_make_decl_local): Clear only DECL_COMDAT.
12878 * tree-vect-data-refs.c (Check that variable is static before
12879 tampering with sections.
12880 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12881 (cgraph_create_virtual_clone): Likewise.
12882 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12883 (decl_section_name, set_decl_section_name): New accessors.
12884 (find_decls_types_r): Do not walk section name
12885 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12886 (decl_comdat_group, decl_comdat_group_id): Constify.
12887 (decl_section_name, set_decl_section_name): Update.
12888 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12889 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12890 (cgraph_make_node_local_1): Clear section and comdat group.
12891 * cgraph.h (set_comdat_group): Sanity check.
12892 (get_section, set_section): New.
12893 * ipa-comdats.c (ipa_comdats): Use get_section.
12894 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12895 * lto-streamer-out.c: Do not follow section names.
12896 * c-family/c-common.c (handle_section_attribute): Update.
12897 * lto-cgraph.c (lto_output_node): Output section.
12898 (lto_output_varpool_node): Likewise.
12899 (read_comdat_group): Rename to ...
12900 (read_identifier): ... this one.
12901 (read_string_cst): New function.
12902 (input_node, input_varpool_node): Input section names.
12903 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12904 (new_emutls_decl): Update.
12905 (secname_for_decl): Check section names only of static vars.
12906 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12907 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12908 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12909 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12910 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12911 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12912 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12913 * config/v850/v850.c (v850_insert_attributes): Likewise.
12914 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12915 Likewise.
12916 (h8300_handle_tiny_data_attribute): Likewise.
12917 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12918 (bfin_handle_l2_attribute): Likewise.
12919
12920 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12921
12922 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12923 remove static initializer.
12924
12925 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12926
12927 * varasm.c (use_blocks_for_decl_p): Check symbol table
12928 instead of alias attribute.
12929 (place_block_symbol): Recurse on aliases.
12930
12931 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12932
12933 * ipa-visibility.c: Include varasm.h
12934 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12935
12936 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12937
12938 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12939 outputting aliases.
12940
12941 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12942
12943 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12944 from test_insn into GGC space escape via SET_SRC.
12945
12946 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12947
12948 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12949 call statement, if any.
12950 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12951 statements, if any. Tidy up.
12952
12953 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12954
12955 PR target/61431
12956 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12957 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12958 handles swapping the two 64-bit double words on little endian
12959 systems. Include V1TImode and optionally TImode in VSX_LE so that
12960 these types are properly swapped. Change all of the insns and
12961 splits that do the 64-bit swaps to use VSX_LE.
12962 (vsx_le_perm_load_<mode>): Likewise.
12963 (vsx_le_perm_store_<mode>): Likewise.
12964 (splitters for little endian memory operations): Likewise.
12965 (vsx_xxpermdi2_le_<mode>): Likewise.
12966 (vsx_lxvd2x2_le_<mode>): Likewise.
12967 (vsx_stxvd2x2_le_<mode>): Likewise.
12968
12969 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12970
12971 PR target/61423
12972 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12973 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12974 and corresponding splitters. Zero extend general register
12975 or memory input operand to XMM temporary. Enable for
12976 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12977 (floatunssi<mode>2): Update expander predicate.
12978
12979 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12980
12981 PR rtl-optimization/61325
12982 * lra-constraints.c (process_address_1): Check scale equal to one
12983 to prevent transformation: base + scale * index => base + new_reg.
12984
12985 2014-06-06 Richard Biener <rguenther@suse.de>
12986
12987 PR tree-optimization/59299
12988 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12989 a def operand.
12990 (nearest_common_dominator_of_uses): Likewise.
12991 (statement_sink_location): Adjust. Support sinking loads.
12992
12993 2014-06-06 Martin Jambor <mjambor@suse.cz>
12994
12995 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12996 (build_agg_jump_func_from_list): Likewise.
12997 (determine_known_aggregate_parts): Renamed to
12998 determine_locally_known_aggregate_parts. Moved some functionality
12999 to the two functions above, removed bound checks.
13000
13001 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13002
13003 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13004 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13005 (aarch64_progress_pointer): Likewise.
13006 (aarch64_copy_one_part_and_move_pointers): Likewise.
13007 (aarch64_expand_movmen): Likewise.
13008 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13009 * config/aarch64/aarch64.md (movmem<mode>): New.
13010
13011 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13012
13013 * targhooks.c (default_add_stmt_cost): Call target specific
13014 hook instead of default one.
13015
13016 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13017
13018 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13019 endianness instead of host endianness.
13020 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13021 comments.
13022
13023 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13024
13025 PR debug/53927
13026 * function.c (instantiate_decls): Process the saved static chain.
13027 (expand_function_start): If not optimizing, save the static chain
13028 onto the stack.
13029 * tree-nested.c (convert_all_function_calls): Always create the static
13030 chain for nested functions if not optimizing.
13031
13032 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13033
13034 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13035
13036 2014-06-06 Richard Biener <rguenther@suse.de>
13037
13038 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13039 (construct_init_block): Likewise.
13040 (construct_exit_block): Likewise.
13041 (pass_expand::execute): Likewise.
13042 * graphite.c (graphite_transforms): Replace check for current_loops
13043 with a check for > 1 loops.
13044 (pass_graphite_transforms::execute): Adjust.
13045 * ipa-split.c (split_function): Remove check for current_loops.
13046 * omp-low.c (expand_parallel_call): Likewise.
13047 (expand_omp_for_init_counts): Likewise.
13048 (extract_omp_for_update_vars): Likewise.
13049 (expand_omp_for_generic): Likewise.
13050 (expand_omp_sections): Likewise.
13051 (expand_omp_target): Likewise.
13052 * tracer.c (tail_duplicate): Likewise.
13053 (pass_tracer::execute): Likewise.
13054 * trans-mem.c (expand_transaction): Likewise.
13055 * tree-complex.c (expand_complex_div_wide): Likewise.
13056 * tree-eh.c (lower_resx): Likewise.
13057 (cleanup_empty_eh_merge_phis): Likewise.
13058 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13059 current_loops with a check for > 1 loops.
13060 (pass_predcom::execute): Adjust.
13061 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13062 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13063 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13064 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13065 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13066 * tree-switch-conversion.c (process_switch): Likewise.
13067 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13068 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13069 (execute_vrp): Likewise.
13070 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13071
13072 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13073
13074 * rtl.h (insn_location): Declare.
13075 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13076 with UNKNOWN_LOCATION.
13077 * emit-rtl.c (insn_location): New function.
13078 * final.c (notice_source_line): Check that the instruction has a
13079 location before retrieving it and use insn_location.
13080 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13081 * print-rtl.c (print_rtx): Likewise.
13082
13083 2014-06-06 Richard Biener <rguenther@suse.de>
13084
13085 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13086
13087 2014-06-06 Christian Bruel <christian.bruel@st.com>
13088
13089 PR tree-optimization/43934
13090 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13091 cost.
13092
13093 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13094
13095 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13096 return NO_REGS for extra address and memory constraints. Handle
13097 operands that match (or are equivalent to something that matches)
13098 extra constant constraints. Ignore other non-register operands.
13099
13100 2014-06-06 Alan Modra <amodra@gmail.com>
13101
13102 PR target/61300
13103 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13104 * doc/tm.texi: Regenerate.
13105 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13106 Use throughout in place of REG_PARM_STACK_SPACE.
13107 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13108 "incoming" param. Pass to rs6000_function_parms_need_stack.
13109 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13110 prototype_p when incoming. Use function decl when incoming
13111 to handle K&R style functions.
13112 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13113 (INCOMING_REG_PARM_STACK_SPACE): Define.
13114
13115 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13116
13117 PR target/52472
13118 * cfgexpand.c (expand_debug_expr): Use address space of nested
13119 TREE_TYPE for ADDR_EXPR and MEM_REF.
13120
13121 2014-06-05 Jeff Law <law@redhat.com>
13122
13123 PR tree-optimization/61289
13124 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13125 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13126 looking for those which match LHS. All callers changed.
13127 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13128 parameters and code which manipulated them. All callers changed.
13129 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13130 and DST_MAP parameters. Simplify invalidation code by just calling
13131 invalidate_equivalences. All callers changed.
13132 (thread_across_edge): Simplify now that we don't need to maintain
13133 the map of equivalences to invalidate.
13134
13135 2014-06-05 Kai Tietz <ktietz@redhat.com>
13136 Richard Henderson <rth@redhat.com>
13137
13138 PR target/46219
13139 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13140 checking for !TARGET_X32.
13141 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13142 (sibcall_intern): New define_insn, plus required peepholes.
13143 (sibcall_pop_intern): Likewise.
13144 (sibcall_value_intern): Likewise.
13145 (sibcall_value_pop_intern): Likewise.
13146
13147 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13148
13149 * tree-inline.c (tree_function_versioning): Check DF info existence
13150 before accessing it.
13151
13152 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13153
13154 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13155 frame_size.
13156 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13157 aarch64_frame hard_fp_offset and frame_size.
13158 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13159 frame_size; remove original_frame_size.
13160 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13161 (aarch64_initial_elimination_offset): Remove frame_size and
13162 offset. Use aarch64_frame frame_size.
13163
13164 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13165 Jiong Wang <jiong.wang@arm.com>
13166 Renlin <renlin.li@arm.com>
13167
13168 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13169 initialization of R30 offset. Update offset. Iterate core
13170 regisers upto X30. Remove X29, X30 specific code.
13171
13172 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13173 Jiong Wang <jiong.wang@arm.com>
13174
13175 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13176 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13177 (aarch64_register_saved_on_entry): Adjust test.
13178
13179 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13180
13181 * config/aarch64/aarch64.h (machine_function): Move
13182 saved_varargs_size from here...
13183 (aarch64_frame): ... to here.
13184
13185 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13186 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13187 (aarch64_initial_elimination_offset)
13188 (aarch64_setup_incoming_varargs): Adjust location of
13189 saved_varargs_size.
13190
13191 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13192
13193 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13194 layout comment.
13195
13196 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13197 Prachi Godbole <Prachi.Godbole@imgtec.com>
13198
13199 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13200 mips32r5 entry to use PROCESSOR_P5600.
13201 * config/mips/mips-tables.opt: Regenerate.
13202 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13203 * config/mips/mips.c (mips_fmadd_bypass): New function.
13204 (mips_rtx_cost_data): Add costs for p5600.
13205 (mips_issue_rate): Add support for p5600.
13206 (mips_multipass_dfa_lookahead): Likewise.
13207 * config/mips/mips.h (TUNE_P5600): New define.
13208 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13209 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13210 * config/mips/mips.md: Include p5600.md.
13211 (processor): Add p5600.
13212 * config/mips/p5600.md: New file.
13213
13214 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13215
13216 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13217 * config/i386/predicates.md (palignr_operand): New.
13218 Indicates if permutation is suitable for palignr instruction.
13219
13220 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13221
13222 PR tree-optimization/61319
13223 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13224 stmt belongs to loop.
13225
13226 2014-06-05 Richard Biener <rguenther@suse.de>
13227
13228 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13229 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13230 (lookup_tmp_var): Adjust.
13231 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13232
13233 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13234
13235 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13236
13237 2014-06-05 Marek Polacek <polacek@redhat.com>
13238
13239 PR c/49706
13240 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13241
13242 2014-06-04 Tom de Vries <tom@codesourcery.com>
13243
13244 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13245 CONST_INT.
13246
13247 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13248
13249 PR tree-optimization/61385
13250 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13251
13252 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13253
13254 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13255 changed to use fatal_error.
13256 (main): Ensure lto_wrapper_cleanup is run atexit.
13257
13258 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13259
13260 * lra-constraints.c (valid_address_p): Move earlier in file.
13261 (address_eliminator): New structure.
13262 (satisfies_memory_constraint_p): New function.
13263 (satisfies_address_constraint_p): Likewise.
13264 (process_alt_operands, process_address, curr_insn_transform): Use them.
13265
13266 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13267
13268 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13269 const pointer.
13270 (target_lra_int, default_target_lra_int, this_target_lra_int)
13271 (op_alt_data): Delete.
13272 * lra.h (lra_init): Delete.
13273 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13274 (init_insn_code_data_once): Remove op_alt_data handling.
13275 (finish_insn_code_data_once): Likewise.
13276 (init_op_alt_data): Delete.
13277 (get_static_insn_data): Initialize operand_alternative to null.
13278 (free_insn_recog_data): Cast operand_alternative before freeing it.
13279 (setup_operand_alternative): Take the operand_alternative as
13280 parameter and assume it isn't already cached in the static
13281 insn data.
13282 (lra_set_insn_recog_data): Update accordingly.
13283 (lra_init): Delete.
13284 * ira.c (ira_init): Don't call lra_init.
13285 * target-globals.h (this_target_lra_int): Declare.
13286 (target_globals): Remove lra_int.
13287 (restore_target_globals): Update accordingly.
13288 * target-globals.c: Don't include lra-int.h.
13289 (default_target_globals, save_target_globals): Remove lra_int.
13290
13291 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13292
13293 * recog.h (operand_alternative): Convert reg_class, reject,
13294 matched and matches into bitfields.
13295 (preprocess_constraints): New overload.
13296 (preprocess_insn_constraints): New function.
13297 (preprocess_constraints): Take the insn as parameter.
13298 (recog_op_alt): Change into a pointer.
13299 (target_recog): Add x_op_alt.
13300 * recog.c (asm_op_alt): New variable.
13301 (recog_op_alt): Change into a pointer.
13302 (preprocess_constraints): New overload, replacing the old function
13303 definition with one that doesn't use global state.
13304 (preprocess_insn_constraints): New function.
13305 (preprocess_constraints): Use them. Take the insn as parameter.
13306 Use asm_op_alt for asms.
13307 (recog_init): Free existing x_op_alt entries.
13308 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13309 pointer const.
13310 (make_early_clobber_and_input_conflicts): Likewise.
13311 (process_bb_node_lives): Pass the insn to process_constraints.
13312 * reg-stack.c (check_asm_stack_operands): Likewise.
13313 (subst_asm_stack_regs): Likewise.
13314 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13315 * regrename.c (build_def_use): Likewise.
13316 * sched-deps.c (sched_analyze_insn): Likewise.
13317 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13318 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13319 (note_invalid_constants): Likewise.
13320 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13321 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13322 const.
13323
13324 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13325
13326 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13327 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13328 alternatives.
13329 (make_early_clobber_and_input_conflicts): Likewise.
13330 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13331
13332 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13333
13334 * recog.h (alternative_class): New function.
13335 (which_op_alt): Return a const recog_op_alt.
13336 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13337 (subst_asm_stack_regs): Likewise.
13338 * config/arm/arm.c (note_invalid_constants): Likewise.
13339 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13340 the operand_alternative; use alternative class instead.
13341 * sel-sched.c (get_reg_class): Likewise.
13342 * regrename.c (build_def_use): Likewise.
13343 (hide_operands, restore_operands, record_out_operands): Update type
13344 accordingly.
13345
13346 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13347
13348 * recog.h (recog_op_alt): Convert to a flat array.
13349 (which_op_alt): New function.
13350 * recog.c (recog_op_alt): Convert to a flat array.
13351 (preprocess_constraints): Update accordingly, grouping all
13352 operands of the same alternative together, rather than the
13353 other way around.
13354 * ira-lives.c (check_and_make_def_conflict): Likewise.
13355 (make_early_clobber_and_input_conflicts): Likewise.
13356 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13357 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13358 (subst_asm_stack_regs): Likewise.
13359 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13360 * regrename.c (hide_operands, record_out_operands): Likewise.
13361 (build_def_use): Likewise.
13362 * sel-sched.c (get_reg_class): Likewise.
13363 * config/arm/arm.c (note_invalid_constants): Likewise.
13364
13365 2014-06-04 Jason Merrill <jason@redhat.com>
13366
13367 PR c++/51253
13368 PR c++/61382
13369 * gimplify.c (gimplify_arg): Non-static.
13370 * gimplify.h: Declare it.
13371
13372 2014-06-04 Richard Biener <rguenther@suse.de>
13373
13374 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13375 TREE_PUBLIC and DECL_EXTERNAL decls.
13376
13377 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13378
13379 * regcprop.c (copyprop_hardreg_forward_1): Account for
13380 HARD_REGNO_CALL_PART_CLOBBERED.
13381
13382 2014-06-04 Richard Biener <rguenther@suse.de>
13383
13384 * configure.ac: Check whether the underlying type of int64_t
13385 is long or long long.
13386 * configure: Regenerate.
13387 * config.in: Likewise.
13388 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13389 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13390
13391 2014-06-04 Richard Biener <rguenther@suse.de>
13392
13393 PR tree-optimization/60098
13394 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13395 we hit a kill.
13396 (dse_optimize_stmt): Simplify, now that we found a kill
13397 earlier.
13398
13399 2014-06-04 Richard Biener <rguenther@suse.de>
13400
13401 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13402 of accesses with non-invariant address.
13403
13404 2014-06-04 Martin Liska <mliska@suse.cz>
13405
13406 * cgraph.h (cgraph_make_wrapper): New function introduced.
13407 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13408 * ipa-inline.h (inline_analyze_function): The function is global.
13409 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13410
13411 2014-06-04 Martin Liska <mliska@suse.cz>
13412
13413 * tree.h (private_lookup_attribute_starting): New function.
13414 (lookup_attribute_starting): Likewise.
13415 * tree.c (private_lookup_attribute_starting): Likewise.
13416
13417 2014-06-04 Martin Liska <mliska@suse.cz>
13418
13419 * cgraph.h (expand_thunk): New argument added.
13420 (address_taken_from_non_vtable_p): New global function.
13421 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13422 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13423 * cgraphunit.c (analyze_function): Likewise.
13424 (assemble_thunks_and_aliases): Argument added to call.
13425 (expand_thunk): New argument forces to produce GIMPLE thunk.
13426
13427 2014-06-04 Martin Liska <mliska@suse.cz>
13428
13429 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13430 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13431 * profile.c (branch_prob): Likewise.
13432
13433 2014-06-04 Martin Jambor <mjambor@suse.cz>
13434
13435 PR ipa/61340
13436 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13437 handler for switch on an ipa_ref_use enum.
13438 * ipa-reference.c (analyze_function): Likewise.
13439
13440 2014-06-04 Kai Tietz <ktietz@redhat.com>
13441
13442 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13443 from old call-instruction.
13444
13445 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13446
13447 * config/aarch64/aarch64.c (aarch64_classify_address)
13448 (aarch64_legitimize_reload_address): Support full addressing modes
13449 for vector modes.
13450 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13451 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13452
13453 2014-06-03 Andrew Pinski <apinski@cavium.com>
13454
13455 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13456 for OP0.
13457
13458 2014-06-03 Andrew Pinski <apinski@cavium.com>
13459
13460 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13461 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13462
13463 2014-06-03 Kai Tietz <ktietz@redhat.com>
13464
13465 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13466 for 64-bit ms-abi.
13467
13468 2014-06-03 Dehao Chen <dehao@google.com>
13469
13470 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13471 the same loop.
13472
13473 2014-06-03 Marek Polacek <polacek@redhat.com>
13474
13475 PR c/60439
13476 * doc/invoke.texi: Document -Wswitch-bool.
13477 * function.c (stack_protect_epilogue): Cast controlling expression of
13478 the switch to int.
13479 * gengtype.c (walk_type): Generate switch expression with its
13480 controlling expression cast to int.
13481
13482 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13483
13484 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13485 and attiny841.
13486 * config/avr/avr-tables.opt: Regenerate.
13487 * config/avr/t-multilib: Regenerate.
13488 * doc/avr-mmcu.texi: Regenerate.
13489
13490 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13491 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13492
13493 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13494 (ata6617c, ata664251): Add new avr35 devices.
13495 (ata6612c): Add new avr4 device.
13496 (ata6613c, ata6614q): Add new avr5 devices.
13497 * config/avr/avr-tables.opt: Regenerate.
13498 * config/avr/t-multilib: Regenerate.
13499 * doc/avr-mmcu.texi: Regenerate.
13500
13501 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13502
13503 * gcc/config/aarch64/aarch64-builtins.c
13504 (aarch64_types_binop_ssu_qualifiers): New static data.
13505 (TYPES_BINOP_SSU): Define.
13506 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13507 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13508 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13509 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13510 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13511 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13512 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13513 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13514 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13515 suffix to builtin function name, remove cast.
13516 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13517 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13518 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13519
13520 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13521
13522 * gcc/config/aarch64/aarch64-builtins.c
13523 (aarch64_types_binop_uus_qualifiers,
13524 aarch64_types_shift_to_unsigned_qualifiers,
13525 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13526 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13527 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13528 sqshlu_n, uqshl_n): Update qualifiers.
13529 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13530 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13531 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13532 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13533 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13534 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13535 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13536 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13537 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13538 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13539 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13540 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13541 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13542 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13543 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13544 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13545 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13546 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13547 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13548 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13549 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13550 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13551 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13552 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13553 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13554 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13555 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13556
13557 2014-06-03 Teresa Johnson <tejohnson@google.com>
13558
13559 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13560
13561 2014-06-02 Jason Merrill <jason@redhat.com>
13562
13563 PR c++/61020
13564 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13565
13566 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13567
13568 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13569 location == 0.
13570
13571 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13572
13573 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13574 New pattern.
13575 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13576 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13577 * config/aarch64/iterators.md (REVERSE): New iterator.
13578 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13579 (rev_op): New int_attribute.
13580 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13581 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13582 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13583 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13584 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13585 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13586 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13587 Replace temporary __asm__ with __builtin_shuffle.
13588
13589 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13590
13591 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13592 mips64r5.
13593 * config/mips/mips-tables.opt: Regenerate.
13594 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13595 to use mips_isa_rev rather than ISA_MIPS32R2.
13596 * config/mips/mips.h (ISA_MIPS32R3): New define.
13597 (ISA_MIPS32R5): New define.
13598 (ISA_MIPS64R3): New define.
13599 (ISA_MIPS64R5): New define.
13600 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13601 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13602 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13603 and mips64r5.
13604 (MIPS_ISA_SYNCI_SPEC): Likewise.
13605 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13606 (LINK_SPEC): Added mips32r3 and mips32r5.
13607 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13608 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13609 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13610 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13611 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13612 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13613 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13614
13615 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13616
13617 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13618 options.
13619 * config/mips/mips.opt (mxpa): New option.
13620 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13621 assembler.
13622
13623 2014-06-03 Martin Jambor <mjambor@suse.cz>
13624
13625 PR ipa/61160
13626 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13627 thunks.
13628
13629 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13630
13631 PR tree-optimization/61328
13632 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13633 initialization from find_bswap_or_nop_1.
13634 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13635 in source_expr2 before using the size value the function sets. Also
13636 make use of init_symbolic_number () in both the old place and
13637 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13638 doing recursion in the GIMPLE_BINARY_RHS case.
13639
13640 2014-06-03 Richard Biener <rguenther@suse.de>
13641
13642 PR tree-optimization/61383
13643 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13644 stmts can't trap.
13645
13646 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13647
13648 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13649 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13650 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13651 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13652 in this file.
13653 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13654 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13655 * system.h: ...here and make it unconditional.
13656 * target.def (conditional_register_usage): Mention
13657 define_register_constraint instead of old-style constraint macros.
13658 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13659 * doc/tm.texi: Regenerate.
13660 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13661 protected by !USE_MD_CONSTRAINTS.
13662 * config/frv/frv.md: Remove quote from old version of documentation.
13663 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13664 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13665 CONST_DOUBLE_OK_FOR_LETTER.
13666 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13667
13668 2014-06-02 Andrew Pinski <apinski@cavium.com>
13669
13670 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13671 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13672 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13673 file whose name depends on -mabi= and -mbig-endian.
13674 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13675 Handle LP64 better and handle ilp32 too.
13676 (MULTILIB_OPTIONS): Delete.
13677 (MULTILIB_DIRNAMES): Delete.
13678
13679 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13680
13681 * expr.h: Remove prototypes of functions defined in builtins.c.
13682 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13683 Remove prototypes of functions defined in builtins.c.
13684 * builtins.h: Update prototype list to include all exported functions.
13685 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13686 no_c99_libc_has_function): Move to targhooks.c
13687 (build_string_literal, build_call_expr_loc_array,
13688 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13689 to tree.c.
13690 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13691 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13692 no_c99_libc_has_function): Relocate from builtins.c.
13693 * tree.c: Include builtins.h.
13694 (build_call_expr_loc_array, build_call_expr_loc_vec,
13695 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13696 from builtins.c.
13697 * fold-const.h (fold_fma): Move prototype to builtins.h.
13698 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13699 * asan.c: Include builtins.h.
13700 * cfgexpand.c: Likewise.
13701 * convert.c: Likewise.
13702 * emit-rtl.c: Likewise.
13703 * except.c: Likewise.
13704 * expr.c: Likewise.
13705 * fold-const.c: Likewise.
13706 * gimple-fold.c: Likewise.
13707 * gimple-ssa-strength-reduction.c: Likewise.
13708 * gimplify.c: Likewise.
13709 * ipa-inline.c: Likewise.
13710 * ipa-prop.c: Likewise.
13711 * lto-streamer-out.c: Likewise.
13712 * stmt.c: Likewise.
13713 * tree-inline.c: Likewise.
13714 * tree-object-size.c: Likewise.
13715 * tree-sra.c: Likewise.
13716 * tree-ssa-ccp.c: Likewise.
13717 * tree-ssa-forwprop.c: Likewise.
13718 * tree-ssa-loop-ivcanon.c: Likewise.
13719 * tree-ssa-loop-ivopts.c: Likewise.
13720 * tree-ssa-math-opts.c: Likewise.
13721 * tree-ssa-reassoc.c: Likewise.
13722 * tree-ssa-threadedge.c: Likewise.
13723 * tree-streamer-in.c: Likewise.
13724 * tree-vect-data-refs.c: Likewise.
13725 * tree-vect-patterns.c: Likewise.
13726 * tree-vect-stmts.c: Likewise.
13727 * config/aarch64/aarch64.c: Likewise.
13728 * config/alpha/alpha.c: Likewise.
13729 * config/arc/arc.c: Likewise.
13730 * config/arm/arm.c: Likewise.
13731 * config/avr/avr.c: Likewise.
13732 * config/bfin/bfin.c: Likewise.
13733 * config/c6x/c6x.c: Likewise.
13734 * config/cr16/cr16.c: Likewise.
13735 * config/cris/cris.c: Likewise.
13736 * config/epiphany/epiphany.c: Likewise.
13737 * config/fr30/fr30.c: Likewise.
13738 * config/frv/frv.c: Likewise.
13739 * config/h8300/h8300.c: Likewise.
13740 * config/i386/i386.c: Likewise.
13741 * config/i386/winnt.c: Likewise.
13742 * config/ia64/ia64.c: Likewise.
13743 * config/iq2000/iq2000.c: Likewise.
13744 * config/lm32/lm32.c: Likewise.
13745 * config/m32c/m32c.c: Likewise.
13746 * config/m32r/m32r.c: Likewise.
13747 * config/m68k/m68k.c: Likewise.
13748 * config/mcore/mcore.c: Likewise.
13749 * config/mep/mep.c: Likewise.
13750 * config/microblaze/microblaze.c: Likewise.
13751 * config/mips/mips.c: Likewise.
13752 * config/mmix/mmix.c: Likewise.
13753 * config/mn10300/mn10300.c: Likewise.
13754 * config/moxie/moxie.c: Likewise.
13755 * config/msp430/msp430.c: Likewise.
13756 * config/nds32/nds32.c: Likewise.
13757 * config/pa/pa.c: Likewise.
13758 * config/pdp11/pdp11.c: Likewise.
13759 * config/picochip/picochip.c: Likewise.
13760 * config/rl78/rl78.c: Likewise.
13761 * config/rs6000/rs6000.c: Likewise.
13762 * config/rx/rx.c: Likewise.
13763 * config/s390/s390.c: Likewise.
13764 * config/score/score.c: Likewise.
13765 * config/sh/sh.c: Likewise.
13766 * config/sparc/sparc.c: Likewise.
13767 * config/spu/spu.c: Likewise.
13768 * config/stormy16/stormy16.c: Likewise.
13769 * config/tilegx/tilegx.c: Likewise.
13770 * config/tilepro/tilepro.c: Likewise.
13771 * config/v850/v850.c: Likewise.
13772 * config/vax/vax.c: Likewise.
13773 * config/xtensa/xtensa.c: Likewise.
13774
13775 2014-06-02 Jeff Law <law@redhat.com>
13776
13777 PR rtl-optimization/61094
13778 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13779 was marked as do_no_reextend. If a copy is needed to eliminate
13780 an extension, then mark it as do_not_reextend.
13781
13782 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13783
13784 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13785
13786 2014-06-02 Richard Henderson <rth@redhat.com>
13787
13788 PR target/61336
13789 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13790 addresses inside asms. Use output_operand_lossage instead of
13791 gcc_unreachable.
13792
13793 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13794
13795 PR target/61239
13796 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13797 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13798
13799 2014-06-02 Tom de Vries <tom@codesourcery.com>
13800
13801 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13802 case that x has VOIDmode.
13803
13804 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13805
13806 * varasm.c (copy_constant): Delete function.
13807 (build_constant_desc): Don't call it.
13808
13809 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13810
13811 PR target/61154
13812 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13813 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13814 with immediate_operand.
13815
13816 2014-06-02 Andreas Schwab <schwab@suse.de>
13817
13818 * config/ia64/ia64.c
13819 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13820 pending_data_specs first.
13821
13822 2014-06-02 Richard Biener <rguenther@suse.de>
13823
13824 PR tree-optimization/61378
13825 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13826 valueized_anything.
13827
13828 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13829
13830 * config/i386/constraints.md (Bw): Rename from 'w'.
13831 (Bz): Rename from 'z'.
13832 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13833
13834 2014-06-01 Kai Tietz <ktietz@redhat.com>
13835
13836 PR target/61377
13837 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13838 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13839 instead of m constraint.
13840
13841 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13842
13843 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13844 a separate alternative where the scratch operand 2 is marked as
13845 early clobber.
13846
13847 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13848
13849 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13850 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13851 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13852 and __builtins_arm_get_fpscr.
13853 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13854 __builtins_arm_get_fpscr.
13855 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13856 __builtins_arm_ldfpscr.
13857 (arm_atomic_assign_expand_fenv): New function.
13858 * config/arm/vfp.md (set_fpscr): New pattern.
13859 (get_fpscr) : Likewise.
13860 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13861 VUNSPEC_SET_FPSCR.
13862 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13863 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13864
13865 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13866
13867 * asan.c (report_error_func): Add SLOW_P argument, use
13868 BUILT_IN_ASAN_*_N if set.
13869 (build_check_stmt): Likewise.
13870 (instrument_derefs): If T has insufficient alignment,
13871 force same handling as for odd sizes.
13872
13873 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13874 BUILT_IN_ASAN_REPORT_STORE_N): New.
13875 * asan.c (struct asan_mem_ref): Change access_size type to
13876 HOST_WIDE_INT.
13877 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13878 update_mem_ref_hash_table): Likewise.
13879 (asan_mem_ref_hasher::hash): Hash in a HWI.
13880 (report_error_func): Change size_in_bytes argument to HWI.
13881 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13882 two.
13883 (build_shadow_mem_access): New function.
13884 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13885 Handle size_in_bytes not power of two or larger than 16.
13886 (instrument_derefs): Don't give up if size_in_bytes is not
13887 power of two or is larger than 16.
13888
13889 2014-05-30 Kai Tietz <ktietz@redhat.com>
13890
13891 PR target/60104
13892 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13893 for sibling-tail-calls.
13894 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13895 to its use.
13896 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13897 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13898
13899 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13900
13901 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13902 * config/avr/avr-tables.opt: Regenerate.
13903 * config/avr/t-multilib: Regenerate.
13904 * doc/avr-mmcu.texi: Regenerate.
13905
13906 2014-05-30 Ian Lance Taylor <iant@google.com>
13907
13908 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13909 target("sse").
13910
13911 2014-05-30 Tom de Vries <tom@codesourcery.com>
13912
13913 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13914 Redefine as true.
13915
13916 2014-05-30 Tom de Vries <tom@codesourcery.com>
13917
13918 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13919 * lra.c (initialize_lra_reg_info_element): Add init of
13920 actual_call_used_reg_set field.
13921 (lra): Call lra_create_live_ranges before lra_inheritance for
13922 -fuse-caller-save.
13923 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13924 -fuse-caller-save.
13925 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13926 instead of call_used_reg_set for -fuse-caller-save.
13927 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13928
13929 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13930
13931 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13932 to mov_imm.
13933 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13934
13935 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13936
13937 * ira.c (ira_get_dup_out_num): Check for output operands at
13938 the start of the loop. Handle cases where an included alternative
13939 follows an excluded one.
13940
13941 2014-05-29 Mike Stump <mikestump@comcast.net>
13942
13943 PR debug/61352
13944 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13945 post ld passes when lto is used.
13946
13947 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13948
13949 PR rtl-optimization/61325
13950 * lra-constraints.c (process_address): Rename to process_address_1.
13951 (process_address): New function.
13952
13953 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13954
13955 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13956 TYPES_BINOPV): New static data.
13957 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13958 New builtin.
13959 * config/aarch64/aarch64-simd.md (aarch64_ext,
13960 aarch64_im_lane_boundsi): New patterns.
13961 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13962 patterns for EXT.
13963 (aarch64_evpc_ext): New function.
13964
13965 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13966
13967 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13968 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13969 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13970 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13971 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13972
13973 2014-05-29 Tom de Vries <tom@codesourcery.com>
13974
13975 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13976
13977 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13978 Richard Sandiford <rdsandiford@googlemail.com>
13979
13980 * arm/iterators.md (shiftable_ops): New code iterator.
13981 (t2_binop0, arith_shift_insn): New code attributes.
13982 * arm/predicates.md (shift_nomul_operator): New predicate.
13983 * arm/arm.md (insn_enabled): Delete.
13984 (enabled): Remove insn_enabled test.
13985 (*arith_shiftsi): Delete. Replace with ...
13986 (*<arith_shift_insn>_multsi): ... new pattern.
13987 (*<arith_shift_insn>_shiftsi): ... new pattern.
13988 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13989
13990 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13991 Tom de Vries <tom@codesourcery.com>
13992
13993 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13994 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13995 clobber.
13996 (mips_split_call): Use POST_CALL_TMP_REG.
13997 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13998
13999 2014-05-29 Tom de Vries <tom@codesourcery.com>
14000
14001 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14002 with #ifdef STACK_REGS.
14003
14004 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14005
14006 * varasm.c (get_variable_section): Walk aliases.
14007 (place_block_symbol): Walk aliases.
14008
14009 2014-05-28 Tom de Vries <tom@codesourcery.com>
14010
14011 Revert:
14012 2014-05-28 Tom de Vries <tom@codesourcery.com>
14013
14014 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14015 * lra.c (initialize_lra_reg_info_element): Add init of
14016 actual_call_used_reg_set field.
14017 (lra): Call lra_create_live_ranges before lra_inheritance for
14018 -fuse-caller-save.
14019 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14020 -fuse-caller-save.
14021 * lra-constraints.c (need_for_call_save_p): Use
14022 actual_call_used_reg_set instead of call_used_reg_set for
14023 -fuse-caller-save.
14024 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14025
14026 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14027
14028 * doc/md.texi: Document that the % constraint character must
14029 be at the beginning of the string.
14030 * genoutput.c (validate_insn_alternatives): Check that '=',
14031 '+' and '%' only appear at the beginning of a constraint.
14032 * ira.c (commutative_constraint_p): Delete.
14033 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14034 at the start of the string.
14035 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14036 duplicate '='s.
14037 * config/arm/neon.md (bicdi3_neon): Likewise.
14038 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14039 (slt_si, sltu_si): Likewise.
14040 * config/vax/vax.md (sbcdi3): Likewise.
14041 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14042 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14043 (mul64): Move '%' to beginning of constraint.
14044 * config/arm/arm.md (*xordi3_insn): Likewise.
14045 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14046 (xorsi3): Likewise.
14047
14048 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14049
14050 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14051
14052 2014-05-28 Jason Merrill <jason@redhat.com>
14053
14054 PR c++/47202
14055 * cgraph.h (symtab_node::get_comdat_group_id): New.
14056 * cgraphunit.c (analyze_functions): Call it.
14057 * symtab.c (dump_symtab_node): Likewise.
14058 * tree.c (decl_comdat_group_id): New.
14059 * tree.h: Declare it.
14060 * lto-streamer-out.c (write_symbol): Use it.
14061 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14062
14063 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14064
14065 PR bootstrap/PR61146
14066 * wide-int.cc: Do not include longlong.h when compiling with clang.
14067
14068 2014-05-28 Richard Biener <rguenther@suse.de>
14069
14070 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14071 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14072 (vrp_visit_assignment_or_call): Print less vertical space.
14073 (vrp_visit_stmt): Likewise.
14074 (vrp_visit_phi_node): Likewise. For a PHI argument with
14075 VR_VARYING range consider recording it as copy.
14076
14077 2014-05-28 Richard Biener <rguenther@suse.de>
14078
14079 Revert
14080 2014-05-28 Richard Biener <rguenther@suse.de>
14081
14082 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14083
14084 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14085
14086 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14087 sufficiently aligned and an offset is used at the same time.
14088 (expand_expr_real_1): Likewise.
14089
14090 2014-05-28 Richard Biener <rguenther@suse.de>
14091
14092 PR middle-end/61045
14093 * fold-const.c (fold_comparison): When folding
14094 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14095 the sign of the remaining constant operand stays the same.
14096
14097 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14098
14099 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14100 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14101 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14102 to the assembler.
14103 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14104 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14105 (m32bit-doubles) Likewise.
14106 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14107 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14108 option for RL78.
14109
14110 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14111
14112 * configure.ac ($gcc_cv_ld_clearcap): New test.
14113 * configure: Regenerate.
14114 * config.in: Regenerate.
14115 * config/sol2.opt (mclear-hwcap): New option.
14116 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14117 * config/sol2-clearcap.map: Moved here from
14118 testsuite/gcc.target/i386/clearcap.map.
14119 * config/sol2-clearcapv2.map: Move here from
14120 gcc.target/i386/clearcapv2.map.
14121 * config/t-sol2 (install): Depend on install-clearcap-map.
14122 (install-clearcap-map): New target.
14123 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14124 -mclear-hwcap.
14125
14126 2014-05-28 Richard Biener <rguenther@suse.de>
14127
14128 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14129 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14130 ... here and remove the rest.
14131 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14132
14133 2014-05-28 Richard Biener <rguenther@suse.de>
14134
14135 PR tree-optimization/61335
14136 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14137 new range fails, drop to varying.
14138
14139 2014-05-28 Olivier Hainque <hainque@adacore.com>
14140
14141 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14142 (CPP_SPEC): Add entry for -mcpu=8548.
14143 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14144 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14145
14146 2014-05-28 Tom de Vries <tom@codesourcery.com>
14147
14148 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14149 * lra.c (initialize_lra_reg_info_element): Add init of
14150 actual_call_used_reg_set field.
14151 (lra): Call lra_create_live_ranges before lra_inheritance for
14152 -fuse-caller-save.
14153 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14154 -fuse-caller-save.
14155 * lra-constraints.c (need_for_call_save_p): Use
14156 actual_call_used_reg_set instead of call_used_reg_set for
14157 -fuse-caller-save.
14158 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14159
14160 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14161 Tom de Vries <tom@codesourcery.com>
14162
14163 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14164 to gccoptlist.
14165 (@item -fuse-caller-save): New item.
14166
14167 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14168 Tom de Vries <tom@codesourcery.com>
14169
14170 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14171 OPT_fuse_caller_save.
14172
14173 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14174 Tom de Vries <tom@codesourcery.com>
14175
14176 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14177 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14178 get_call_reg_set_usage.
14179 * resource.c (mark_set_resources, mark_target_live_regs): Use
14180 get_call_reg_set_usage.
14181 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14182 field.
14183 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14184 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14185 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14186 * ira-build.c (ira_create_allocno): Init
14187 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14188 (create_cap_allocno, propagate_allocno_info)
14189 (propagate_some_info_from_allocno)
14190 (copy_info_to_removed_store_destinations): Handle
14191 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14192 * ira-costs.c (ira_tune_allocno_costs): Use
14193 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14194
14195 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14196 Tom de Vries <tom@codesourcery.com>
14197
14198 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14199 and function_used_regs_valid fields.
14200 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14201 find_all_hard_reg_sets.
14202 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14203 (get_call_reg_set_usage): New function.
14204 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14205 * regs.h (get_call_reg_set_usage): Declare.
14206
14207 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14208
14209 PR libgcc/61152
14210 * config/dbx.h (License): Add Runtime Library Exception.
14211 * config/newlib-stdint.h (License): Same.
14212 * config/rtems.h (License): Same
14213 * config/initfini-array.h (License): Same
14214 * config/v850/v850.h (License): Same.
14215 * config/v850/v850-opts.h (License): Same
14216 * config/v850/rtems.h (License): Same.
14217
14218 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14219
14220 PR target/61044
14221 * doc/extend.texi (Local Labels): Note that label differences are
14222 not supported for AVR.
14223
14224 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14225 Olivier Hainque <hainque@adacore.com>
14226
14227 * rtl.h (set_for_reg_notes): Declare.
14228 * emit-rtl.c (set_for_reg_notes): New function.
14229 (set_unique_reg_note): Use it.
14230 * optabs.c (add_equal_note): Likewise
14231
14232 2014-05-27 Andrew Pinski <apinski@cavium.com>
14233
14234 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14235 Use <w> for the register in assembly template.
14236 (stack_protect_test): Use the mode of operands[0] for the result.
14237 (stack_protect_test_<mode>): Use <w> for the register
14238 in assembly template.
14239
14240 2014-05-27 DJ Delorie <dj@redhat.com>
14241
14242 * config/rx/rx.c (add_vector_labels): New.
14243 (rx_output_function_prologue): Call it.
14244 (rx_handle_func_attribute): Don't require empty arguments.
14245 (rx_handle_vector_attribute): New.
14246 (rx_attribute_table): Add "vector" attribute.
14247 * doc/extend.texi (interrupt, vector): Document new/changed
14248 RX-specific attributes.
14249
14250 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14251
14252 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14253
14254 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14255 predicate to detect a negative quotient.
14256
14257 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14258
14259 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14260 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14261 Add X - Y CMP 0 to X CMP Y transformation.
14262 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14263
14264 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14265
14266 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14267 before printing.
14268
14269 2014-05-27 Steve Ellcey <sellcey@mips.com>
14270
14271 * config/mips/mips.c: Add include of cgraph.h.
14272
14273 2014-05-27 Richard Biener <rguenther@suse.de>
14274
14275 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14276
14277 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14278
14279 PR libgcc/61152
14280 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14281 * config/arm/arm-cores.def (License): Same.
14282 * config/arm/arm-opts.h (License): Same.
14283 * config/arm/aout.h (License): Same.
14284 * config/arm/bpabi.h (License): Same.
14285 * config/arm/elf.h (License): Same.
14286 * config/arm/linux-elf.h (License): Same.
14287 * config/arm/linux-gas.h (License): Same.
14288 * config/arm/netbsd-elf.h (License): Same.
14289 * config/arm/uclinux-eabi.h (License): Same.
14290 * config/arm/uclinux-elf.h (License): Same.
14291 * config/arm/vxworks.h (License): Same.
14292
14293 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14294
14295 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14296 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14297 (arm_init_neon_builtins): Handle NEON_BSWAP.
14298 Define required type nodes.
14299 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14300 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14301 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14302 * config/arm/iterators.md (VDQHSD): New mode iterator.
14303
14304 2014-05-27 Richard Biener <rguenther@suse.de>
14305
14306 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14307 Try using literal operands when comparing value-ranges failed.
14308
14309 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14310
14311 * ira.c (commutative_operand): Adjust for change to recog_data.
14312 [Missing from previous commit.]
14313
14314 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14315
14316 * system.h (TEST_BIT): New macro.
14317 * recog.h (alternative_mask): New type.
14318 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14319 (recog_data_d): Replace alternative_enabled_p array with
14320 enabled_alternatives.
14321 (target_recog): New structure.
14322 (default_target_recog, this_target_recog): Declare.
14323 (get_enabled_alternatives, recog_init): Likewise.
14324 * recog.c (default_target_recog, this_target_recog): New variables.
14325 (get_enabled_alternatives): New function.
14326 (extract_insn): Use it.
14327 (recog_init): New function.
14328 (preprocess_constraints, constrain_operands): Adjust for change to
14329 recog_data.
14330 * postreload.c (reload_cse_simplify_operands): Likewise.
14331 * reload.c (find_reloads): Likewise.
14332 * ira-costs.c (record_reg_classes): Likewise.
14333 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14334 all alternatives after a disabled one would be skipped.
14335 (ira_implicitly_set_insn_hard_regs): Likewise.
14336 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14337 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14338 with enabled_alternatives.
14339 * lra.c (free_insn_recog_data): Update accordingly.
14340 (lra_update_insn_recog_data): Likewise.
14341 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14342 * lra-constraints.c (process_alt_operands): Likewise. Handle
14343 only_alternative as part of the enabled mask.
14344 * target-globals.h (this_target_recog): Declare.
14345 (target_globals): Add a recog field.
14346 (restore_target_globals): Restore this_target_recog.
14347 * target-globals.c: Include recog.h.
14348 (default_target_globals): Initialize recog field.
14349 (save_target_globals): Likewise.
14350 * reginfo.c (reinit_regs): Call recog_init.
14351 * toplev.c (backend_init_target): Likewise.
14352
14353 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14354
14355 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14356 rather than any named insn's code.
14357
14358 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14359
14360 PR libgcc/61152
14361 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14362 * config/arm/arm-cores.def (License): Same.
14363
14364 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14365
14366 * tree.h (decl_comdat_group): Declare.
14367 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14368 * tree.c (decl_comdat_group): Here.
14369
14370 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14371
14372 PR rtl-optimization/61222
14373 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14374 the shift, truncate the PLUS operand to the result mode.
14375
14376 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14377
14378 PR target/61271
14379 * config/i386/i386.c (ix86_rtx_costs)
14380 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14381 Fix condition.
14382
14383 2014-05-26 Martin Jambor <mjambor@suse.cz>
14384
14385 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14386 subreg uses.
14387
14388 2014-05-26 Richard Biener <rguenther@suse.de>
14389
14390 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14391 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14392 Provide specializations.
14393 (wi::int_traits <HOST_WIDE_INT>,
14394 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14395
14396 2014-05-26 Alan Modra <amodra@gmail.com>
14397
14398 PR target/61098
14399 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14400 params and return a bool. Remove dead code. Update comment.
14401 Assert we have a const_int source. Remove bogus code from
14402 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14403 handling of constants > 2G and reg_equal note, from..
14404 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14405 return value. Update comment. If we can, use a new pseudo
14406 for intermediate calculations.
14407 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14408 prototype.
14409 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14410 call to rs6000_emit_set_const in splitter.
14411 (movdi_internal64+2, +3): Likewise.
14412
14413 2014-05-26 Richard Biener <rguenther@suse.de>
14414
14415 * system.h: Define __STDC_FORMAT_MACROS before
14416 including inttypes.h.
14417 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14418 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14419 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14420 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14421 HOST_WIDEST_INT_C): Remove.
14422 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14423 if C99 inttypes.h is not available.
14424 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14425 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14426 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14427 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14428 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14429 (struct output_info): Likewise.
14430 (print_statistics): Adjust.
14431 (dump_bitmap_statistics): Likewise.
14432 * bt-load.c (migrate_btr_defs): Print with PRId64.
14433 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14434 (MAX_SAFE_MULTIPLIER): Adjust.
14435 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14436 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14437 dump_cgraph_node): Likewise.
14438 * final.c (dump_basic_block_info): Likewise.
14439 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14440 * gcov.c (format_gcov): Likewise.
14441 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14442 for calculation.
14443 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14444 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14445 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14446 Use PRId64 for dumping.
14447 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14448 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14449 (add_allocno_hard_regs): Adjust.
14450 * loop-doloop.c (doloop_modify): Print using PRId64.
14451 * loop-iv.c (inverse): Compute in uint64_t.
14452 (determine_max_iter, iv_number_of_iterations): Likewise.
14453 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14454 Print using PRId64.
14455 * lto-streamer-out.c (write_symbol): Use uint64_t.
14456 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14457 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14458 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14459 * modulo-sched.c (const_iteration_count): Use int64_t.
14460 (sms_schedule): Dump using PRId64.
14461 * predict.c (dump_prediction): Likewise.
14462 * pretty-print.h (pp_widest_integer): Remove.
14463 * profile.c (get_working_sets, is_edge_inconsistent,
14464 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14465 * tree-pretty-print.c (pp_double_int): Remove case handling
14466 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14467 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14468 and adjust users.
14469 (pass_optimize_bswap::execute): Remove restriction on hosts.
14470 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14471 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14472 * tree.c (widest_int_cst_value): Remove.
14473 * tree.h (widest_int_cst_value): Likewise.
14474 * value-prof.c (dump_histogram_value): Print using PRId64.
14475 * gengtype.c (main): Also inject int64_t.
14476 * ggc-page.c (struct max_alignment): Use int64_t.
14477 * alloc-pool.c (struct allocation_object_def): Likewise.
14478 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14479 for computation.
14480 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14481 * doc/tm.texi: Regenerated.
14482 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14483 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14484 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14485 mmix_output_register_setting): Use [u]int64_t in prototypes.
14486 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14487 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14488 mmix_output_octa, mmix_output_shifted_value): Adjust.
14489 (mmix_intval): Adjust. Remove unreachable case.
14490 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14491
14492 2014-05-26 Richard Biener <rguenther@suse.de>
14493
14494 * configure.ac: Drop __int64 type check. Insist that we
14495 found uint64_t and int64_t.
14496 * hwint.h (HOST_BITS_PER___INT64): Remove.
14497 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14498 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14499 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14500 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14501 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14502 for dst_q_src_df_rms_cdt.
14503 * configure: Regenerate.
14504 * config.in: Likewise.
14505
14506 2014-05-26 Michael Tautschnig <mt@debian.org>
14507
14508 PR target/61249
14509 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14510 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14511
14512 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14513
14514 PR rtl-optimization/61278
14515 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14516
14517 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14518
14519 PR rtl-optimization/61220
14520 Part of PR rtl-optimization/61225
14521 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14522 insn; skip split_edge for a block with only one successor.
14523
14524 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14525
14526 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14527 for variables.
14528
14529 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14530
14531 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14532 (update_vtable_references): New function.
14533 (function_and_variable_visibility): Rewrite also vtable initializers.
14534 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14535
14536 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14537
14538 * ggc.h (ggc_grow): New function.
14539 * ggc-none.c (ggc_grow): New function.
14540 * ggc-page.c (ggc_grow): Likewise.
14541
14542 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14543
14544 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14545 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14546 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14547 varpool_externally_visible_p, can_replace_by_local_alias,
14548 update_visibility_by_resolution_info, function_and_variable_visibility,
14549 pass_data_ipa_function_and_variable_visibility,
14550 make_pass_ipa_function_and_variable_visibility,
14551 whole_program_function_and_variable_visibility,
14552 pass_data_ipa_whole_program_visibility,
14553 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14554 * cgraph.h (cgraph_local_node_p): Declare.
14555 * ipa-visibility.c: New file.
14556 * Makefile.in (OBJS): Add ipa-visiblity.o
14557
14558 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14559
14560 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14561 that var decl is available.
14562
14563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14564
14565 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14566 symtab_node pointer.
14567 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14568 (find_decls_types_r): Do not walk COMDAT_GROUP.
14569 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14570 * varasm.c (make_decl_one_only): Use set_comdat_group;
14571 create node if needed.
14572 * ipa-inline-transform.c (save_inline_function_body): Update
14573 way we decl->symtab mapping.
14574 * symtab.c (symtab_hash, hash_node, eq_node
14575 symtab_insert_node_to_hashtable): Remove.
14576 (symtab_register_node): Update.
14577 (symtab_unregister_node): Update.
14578 (symtab_get_node): Reimplement as inline function.
14579 (symtab_add_to_same_comdat_group): Update.
14580 (symtab_dissolve_same_comdat_group_list): Update.
14581 (dump_symtab_base): Update.
14582 (verify_symtab_base): Update.
14583 (symtab_make_decl_local): Update.
14584 (fixup_same_cpp_alias_visibility): Update.
14585 (symtab_nonoverwritable_alias): Update.
14586 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14587 * ipa.c (update_visibility_by_resolution_info): UPdate.
14588 * bb-reorder.c: Include cgraph.h
14589 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14590 with comdat groups.
14591 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14592 * cgraph.c (cgraph_get_create_node): Update.
14593 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14594 and comdat_group_.
14595 (symtab_get_node): Make inline.
14596 (symtab_insert_node_to_hashtable): Remove.
14597 (symtab_can_be_discarded): Update.
14598 (decl_comdat_group): New function.
14599 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14600 Update.
14601 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14602 comdat group name.
14603 (read_comdat_group): New function.
14604 (input_node, input_varpool_node): Use it.
14605 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14606 comdat groups.
14607 * mips.c (mips_start_unique_function): Likewise.
14608 (ix86_code_end): Likewise.
14609 (rs6000_code_end): Likweise.
14610 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14611
14612 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14613
14614 * gengtype-state.c (fatal_reading_state): Bring offline.
14615 * optabs.c (widening_optab_handler): Bring offline.
14616 * optabs.h (widening_optab_handler): Likewise.
14617 * final.c (get_attr_length_1): Likewise.
14618
14619 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14620
14621 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14622
14623 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14624
14625 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14626 (ppc440-compare): Include shift with dot.
14627 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14628 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14629 without dot.
14630 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14631 without dot.
14632 (e6500_sfx2): Include it.
14633 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14634 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14635 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14636 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14637 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14638 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14639 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14640 *lshiftrt_internal1le, *lshiftrt_internal1be,
14641 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14642 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14643 *rotldi3_internal10le, *rotldi3_internal10be,
14644 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14645 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14646 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14647 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14648 define_insns): Use type "shift" in the appropriate alternatives.
14649
14650 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14651
14652 * config/rs6000/rs6000.md (type): Add "logical". Delete
14653 "fast_compare".
14654 (dot): Adjust comment.
14655 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14656 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14657 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14658 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14659 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14660 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14661 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14662 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14663
14664 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14665 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14666 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14667 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14668 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14669 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14670 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14671 * config/rs6000/8540.md (ppc8540_su): Adjust.
14672 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14673 cell-cmp-microcoded): Adjust.
14674 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14675 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14676 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14677 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14678 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14679 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14680 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14681 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14682 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14683 Adjust.
14684 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14685 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14686 Adjust. Adjust comment.
14687 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14688 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14689
14690 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14691
14692 * config/rs6000/rs6000.md (type): Add "add".
14693 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14694 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14695 define_insns): Use it.
14696 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14697
14698 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14699 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14700 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14701 * config/rs6000/601.md (ppc601-integer): Adjust.
14702 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14703 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14704 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14705 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14706 * config/rs6000/8540.md (ppc8540_su): Adjust.
14707 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14708 cell-cmp-microcoded): Adjust.
14709 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14710 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14711 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14712 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14713 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14714 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14715 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14716 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14717 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14718 Adjust.
14719 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14720 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14721 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14722 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14723
14724 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14725
14726 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14727 "delayed_compare", "var_delayed_compare".
14728 (var_shift): New attribute.
14729 (cell_micro): Adjust.
14730 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14731 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14732 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14733 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14734 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14735 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14736 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14737 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14738 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14739 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14740 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14741 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14742 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14743 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14744 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14745 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14746 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14747 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14748 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14749 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14750 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14751 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14752 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14753 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14754 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14755
14756 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14757 * config/rs6000/440.md (ppc440-integer): Adjust.
14758 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14759 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14760 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14761 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14762 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14763 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14764 * config/rs6000/8540.md (ppc8540_su): Adjust.
14765 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14766 cell-cmp-microcoded): Adjust.
14767 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14768 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14769 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14770 e500mc64_delayed): Adjust.
14771 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14772 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14773 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14774 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14775 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14776 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14777 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14778 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14779 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14780 Adjust comment.
14781 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14782 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14783
14784 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14785
14786 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14787 (bits): New mode_attr.
14788 (idiv_ldiv): Delete mode_attr.
14789 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14790 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14791 rs6000_adjust_priority, is_nonpipeline_insn,
14792 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14793
14794 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14795 * config/rs6000/440.md (ppc440-idiv): Adjust.
14796 * config/rs6000/476.md (ppc476-idiv): Adjust.
14797 * config/rs6000/601.md (ppc601-idiv): Adjust.
14798 * config/rs6000/603.md (ppc603-idiv): Adjust.
14799 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14800 ppc620-ldiv): Adjust.
14801 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14802 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14803 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14804 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14805 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14806 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14807 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14808 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14809 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14810 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14811 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14812 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14813 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14814 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14815 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14816 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14817 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14818 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14819
14820 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14821
14822 * config/rs6000/rs6000.md (type): Delete "insert_word",
14823 "insert_dword". Add "insert".
14824 (size): Update comment.
14825 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14826 insn_must_be_first_in_group): Adjust.
14827 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14828 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14829 *insvsi_internal6, insvdi_internal): Adjust.
14830
14831 * config/rs6000/40x.md (ppc403-integer): Adjust.
14832 * config/rs6000/440.md (ppc440-integer): Adjust.
14833 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14834 * config/rs6000/601.md (ppc601-integer): Adjust.
14835 * config/rs6000/603.md (ppc603-integer): Adjust.
14836 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14837 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14838 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14839 * config/rs6000/8540.md (ppc8540_su): Adjust.
14840 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14841 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14842 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14843 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14844 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14845 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14846 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14847 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14848 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14849 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14850 * config/rs6000/power7.md (power7-integer): Adjust.
14851 * config/rs6000/power8.md (power8-1cyc): Adjust.
14852 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14853 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14854
14855 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14856
14857 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14858 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14859 (size): New attribute.
14860 (dot): New attribute.
14861 (cell_micro): Adjust.
14862 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14863 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14864 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14865 umuldi3_highpart): Adjust.
14866 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14867 rs6000_adjust_priority, is_nonpipeline_insn,
14868 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14869
14870 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14871 ppc405-imul3): Adjust.
14872 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14873 * config/rs6000/476.md (ppc476-imul): Adjust.
14874 * config/rs6000/601.md (ppc601-imul): Adjust.
14875 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14876 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14877 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14878 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14879 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14880 Adjust.
14881 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14882 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14883 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14884 cell-imul): Adjust.
14885 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14886 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14887 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14888 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14889 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14890 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14891 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14892 power4-lmul, power4-imul, power4-imul3): Adjust.
14893 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14894 power5-lmul, power5-imul, power5-imul3): Adjust.
14895 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14896 power6-lmul, power6-imul, power6-imul3): Adjust.
14897 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14898 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14899
14900 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14901 rs64a-lmul): Adjust.
14902 * config/rs6000/titan.md (titan_imul): Adjust.
14903
14904 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14905
14906 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14907 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14908 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14909 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14910 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14911 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14912 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14913 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14914 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14915 * config/rs6000/titan.md: Delete nonsensical comment.
14916 (titan_imul): Add type imul3.
14917 (titan_mulhw): Remove type imul3; add type halfmul.
14918
14919 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14920
14921 * config/rs6000/rs6000.md (type): Reorder, reformat.
14922
14923 2014-05-23 Martin Jambor <mjambor@suse.cz>
14924
14925 PR tree-optimization/53787
14926 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14927 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14928 analysis_done, update all uses.
14929 * ipa-prop.c: Include domwalk.h
14930 (param_analysis_info): Removed.
14931 (param_aa_status): New type.
14932 (ipa_bb_info): Likewise.
14933 (func_body_info): Likewise.
14934 (ipa_get_bb_info): New function.
14935 (aa_overwalked): Likewise.
14936 (find_dominating_aa_status): Likewise.
14937 (parm_bb_aa_status_for_bb): Likewise.
14938 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14939 (load_from_unmodified_param): Accept func_body_info as a parameter
14940 instead of parms_ainfo.
14941 (parm_ref_data_preserved_p): Changed to use new param AA info.
14942 (parm_ref_data_pass_through_p): Likewise.
14943 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14944 (compute_complex_assign_jump_func): Changed to use new param AA info.
14945 (compute_complex_ancestor_jump_func): Likewise.
14946 (ipa_compute_jump_functions_for_edge): Likewise.
14947 (ipa_compute_jump_functions): Removed.
14948 (ipa_compute_jump_functions_for_bb): New function.
14949 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14950 declarations down.
14951 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14952 and info, moved variable declarations down.
14953 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14954 node and info.
14955 (ipa_analyze_stmt_uses): Likewise.
14956 (ipa_analyze_params_uses): Removed.
14957 (ipa_analyze_params_uses_in_bb): New function.
14958 (ipa_analyze_controlled_uses): Likewise.
14959 (free_ipa_bb_info): Likewise.
14960 (analysis_dom_walker): New class.
14961 (ipa_analyze_node): Handle node-specific forbidden analysis,
14962 initialize and free func_body_info, use dominator walker.
14963 (ipcp_modif_dom_walker): New class.
14964 (ipcp_transform_function): Create and free func_body_info, use
14965 ipcp_modif_dom_walker, moved a lot of functionality there.
14966
14967 2014-05-23 Marek Polacek <polacek@redhat.com>
14968 Jakub Jelinek <jakub@redhat.com>
14969
14970 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14971 * gcc.c (sanitize_spec_function): Likewise.
14972 * convert.c (convert_to_integer): Include "ubsan.h". Add
14973 floating-point to integer instrumentation.
14974 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14975 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14976 SANITIZE_NONDEFAULT.
14977 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14978 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14979 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14980 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14981 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14982 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14983 float/double/long double.
14984 (ubsan_instrument_float_cast): New function.
14985 * ubsan.h (ubsan_instrument_float_cast): Declare.
14986
14987 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14988
14989 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14990 predicate.
14991 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14992 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14993 Adjust for tailcalling through registers.
14994 * config/aarch64/aarch64.h (enum reg_class): New caller save
14995 register class.
14996 (REG_CLASS_NAMES): Likewise.
14997 (REG_CLASS_CONTENTS): Likewise.
14998 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14999 Allow tailcalling without decls.
15000
15001 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15002
15003 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15004 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15005
15006 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15007 gsi, and variables v_* to v*.
15008
15009 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15010
15011 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15012
15013 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15014
15015 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15016 * omp-low.c: Update accordingly.
15017
15018 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15019 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15020 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15021 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15022 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15023 GF_OMP_TARGET_KIND_UPDATE.
15024
15025 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15026 Explicitly enumerate the expected region types.
15027
15028 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15029
15030 PR other/56955
15031 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15032 documentation; the old documentation didn't clearly state the
15033 constraints on the contents of the pointed-to storage.
15034
15035 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15036
15037 Fix bootstrap error on ia64
15038 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15039 Return default value.
15040
15041 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15042
15043 PR tree-optimization/54733
15044 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15045 (CMPNOP): Define.
15046 (find_bswap_or_nop_load): New.
15047 (find_bswap_1): Renamed to ...
15048 (find_bswap_or_nop_1): This. Also add support for memory source.
15049 (find_bswap): Renamed to ...
15050 (find_bswap_or_nop): This. Also add support for memory source and
15051 detection of bitwise operations equivalent to load in target
15052 endianness.
15053 (execute_optimize_bswap): Likewise. Also move its leading comment back
15054 in place and split statement transformation into ...
15055 (bswap_replace): This.
15056
15057 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15058
15059 PR rtl-optimization/61215
15060 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15061 simplify_gen_subreg until final substitution.
15062
15063 2014-05-23 Alan Modra <amodra@gmail.com>
15064
15065 PR target/61231
15066 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15067 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15068 Use "Y" constraint rather than "m".
15069
15070 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15071
15072 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15073 define.
15074 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15075 New function declaration.
15076 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15077 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15078 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15079 (aarch64_init_builtins) : Initialize builtins
15080 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15081 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15082 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15083 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15084 and __builtins_aarch64_set_fpsr.
15085 (aarch64_atomic_assign_expand_fenv): New function.
15086 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15087 (get_fpcr) : Likewise.
15088 (set_fpsr) : Likewise.
15089 (get_fpsr) : Likewise.
15090 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15091 and UNSPECV_SET_FPSR.
15092 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15093 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15094 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15095
15096 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15097
15098 PR rtl-optimization/60969
15099 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15100 constraints. Set up mem cost for NO_REGS case.
15101
15102 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15103
15104 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15105
15106 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15107
15108 * config/darwin.c: Include "lto-section-names.h".
15109 (LTO_SEGMENT_NAME): Don't define.
15110 * config/i386/winnt.c: Include "lto-section-names.h".
15111 * lto-streamer.c: Include "lto-section-names.h".
15112 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15113 * lto-wrapper.c: Include "lto-section-names.h".
15114 (LTO_SECTION_NAME_PREFIX): Don't define.
15115 * lto-section-names.h: New file.
15116 * cgraphunit.c: Include "lto-section-names.h".
15117
15118 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15119
15120 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15121
15122 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15123
15124 PR target/61208
15125 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15126
15127 2014-05-22 Nick Clifton <nickc@redhat.com>
15128
15129 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15130
15131 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15132
15133 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15134 -> (T)A transformation to integer types.
15135
15136 2014-05-22 Teresa Johnson <tejohnson@google.com>
15137
15138 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15139 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15140 (gcov_rewrite): Use gcov_nonruntime_assert.
15141 (gcov_open): Ditto.
15142 (gcov_write_words): Ditto.
15143 (gcov_write_length): Ditto.
15144 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15145 gcc_assert from IN_LIBGCOV code.
15146 (gcov_read_summary): Use gcov_error to flag profile corruption.
15147 (gcov_sync): Use gcov_nonruntime_assert.
15148 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15149 (gcov_histo_index): Use gcov_nonruntime_assert.
15150 (static void gcov_histogram_merge): Ditto.
15151 (compute_working_sets): Ditto.
15152 * gcov-io.h (gcov_nonruntime_assert): Define.
15153 (gcov_error): Define for !IN_LIBGCOV
15154
15155 2014-05-22 Richard Biener <rguenther@suse.de>
15156
15157 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15158 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15159 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15160 and deallocation site.
15161 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15162 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15163 passing through the incoming points-to set.
15164 (handle_lhs_call): Use flags argument instead of recomputing it.
15165 (find_func_aliases_for_call): Call handle_lhs_call with proper
15166 call return flags.
15167
15168 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15169
15170 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15171 all padding bits in REAL_VALUE_TYPE are cleared.
15172
15173 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15174
15175 Cleanup and improve multipass_dfa_lookahead_guard
15176 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15177 (core2i7_first_cycle_multipass_begin,)
15178 (core2i7_first_cycle_multipass_issue,)
15179 (core2i7_first_cycle_multipass_backtrack): Update signature.
15180 * config/ia64/ia64.c
15181 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15182 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15183 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15184 hook definition.
15185 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15186 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15187 values.
15188 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15189 return values.
15190 * doc/tm.texi: Regenerate.
15191 * doc/tm.texi.in
15192 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15193 * haifa-sched.c (ready_try): Make signed to allow negative values.
15194 (rebug_ready_list_1): Update.
15195 (choose_ready): Simplify.
15196 (sched_extend_ready_list): Update.
15197
15198 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15199
15200 Remove IA64 speculation tweaking flags
15201 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15202 speculation tuning flags.
15203 (msched-prefer-non-data-spec-insns,)
15204 (msched-prefer-non-control-spec-insns): Obsolete options.
15205 * haifa-sched.c (choose_ready): Remove handling of
15206 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15207 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15208 and PREFER_NON_DATA_SPEC.
15209 * sel-sched.c (process_spec_exprs): Remove handling of
15210 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15211
15212 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15213
15214 Improve scheduling debug output
15215 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15216 (advance_one_cycle): Update.
15217 (schedule_insn, queue_to_ready): Add debug printouts.
15218 (debug_ready_list_1): New static function.
15219 (debug_ready_list): Update.
15220 (max_issue): Add debug printouts.
15221 (dump_insn_stream): New static function.
15222 (schedule_block): Use it. Also better indent printouts.
15223
15224 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15225
15226 Fix sched_insn debug counter
15227 * haifa-sched.c (schedule_insn): Update.
15228 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15229 (save_backtrack_point, restore_backtrack_point): Update.
15230 (first_nonscheduled_insn): New static function.
15231 (queue_to_ready, choose_ready): Use it.
15232 (schedule_block): Init nonscheduled_insns_begin.
15233 (sched_emit_insn): Update.
15234
15235
15236 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15237
15238 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15239 to GENERAL_REGS.
15240 (aarch64_secondary_reload) : LikeWise.
15241 (aarch64_class_max_nregs) : Remove CORE_REGS.
15242 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15243 (REG_CLASS_NAMES) : Likewise.
15244 (REG_CLASS_CONTENTS) : LikeWise.
15245 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15246
15247 2014-05-21 Guozhi Wei <carrot@google.com>
15248
15249 PR target/61202
15250 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15251 constraint.
15252 (vqdmulhq_n_s16): Likewise.
15253
15254 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15255
15256 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15257
15258 2014-05-21 Marek Polacek <polacek@redhat.com>
15259
15260 PR sanitizer/61272
15261 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15262
15263 2014-05-21 Martin Jambor <mjambor@suse.cz>
15264
15265 * doc/invoke.texi (Optimize Options): Document parameters
15266 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15267 ipa-cp-array-index-hint-bonus.
15268
15269 2014-05-21 Mark Wielaard <mjw@redhat.com>
15270
15271 PR debug/16063
15272 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15273 version >= 3 or not strict DWARF.
15274 * langhooks.h (struct lang_hooks_for_types): Add
15275 enum_underlying_base_type.
15276 * langhooks.c (lhd_enum_underlying_base_type): New function.
15277 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15278 enum_underlying_base_type.
15279 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15280 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15281 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15282
15283 2014-05-21 Richard Biener <rguenther@suse.de>
15284
15285 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15286
15287 2014-05-21 John Marino <gnugcc@marino.st>
15288
15289 * config.gcc (*-*-dragonfly*): New target.
15290 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15291 * configure: Regenerate.
15292 * config/dragonfly-stdint.h: New.
15293 * config/dragonfly.h: New.
15294 * config/dragonfly.opt: New.
15295 * config/i386/dragonfly.h: New.
15296 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15297
15298 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15299
15300 * tree.def (VOID_CST): New.
15301 * tree-core.h (TI_VOID): New.
15302 * tree.h (void_node): New.
15303 * tree.c (tree_node_structure_for_code, tree_code_size)
15304 (iterative_hash_expr): Handle VOID_CST.
15305 (build_common_tree_nodes): Initialize void_node.
15306
15307 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15308
15309 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15310 functions.
15311 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15312
15313 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15314 more places.
15315
15316 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15317 flag_reorder_blocks_and_partition.
15318 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15319
15320 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15321
15322 PR target/54236
15323 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15324 constraints.
15325 (*addc_r_t): Add new insn_and_split.
15326
15327 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15328
15329 PR middle-end/61252
15330 * omp-low.c (handle_simd_reference): New function.
15331 (lower_rec_input_clauses): Use it. Defer adding reference
15332 initialization even for reduction without placeholder if in simd,
15333 handle it properly later on.
15334
15335 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15336
15337 PR tree-optimization/60899
15338 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15339 assume all static symbols will have definition wile parsing and
15340 check the do have definition later in compilation; check that
15341 variable referring symbol will be output before concluding that
15342 reference is safe; be conservative for referring local statics;
15343 be more precise about when comdat is output in other partition.
15344
15345 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15346
15347 PR bootstrap/60984
15348 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15349 parameter.
15350 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15351 (ipa_inline): Loop inline_to_all_callers until no more aliases
15352 are removed.
15353
15354 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15355
15356 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15357 set writeonly flag only for vars actually written to.
15358
15359 2014-05-20 Dehao Chen <dehao@google.com>
15360
15361 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15362 and callee count to get clone count.
15363 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15364 count in copy_body.
15365
15366 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15367
15368 PR rtl-optimization/61243
15369 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15370
15371 2014-05-20 Xinliang David Li <davidxl@google.com>
15372
15373 * cgraphunit.c (walk_polymorphic_call_targets): Add
15374 dbgcnt and fopt-info support.
15375 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15376 * ipa-devirt.c (ipa_devirt): Ditto.
15377 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15378 * ipa.c (walk_polymorphic_call_targets): Ditto.
15379 * gimple-fold.c (fold_gimple_assign): Ditto.
15380 (gimple_fold_call): Ditto.
15381 * dbgcnt.def: New counter.
15382
15383 2014-05-20 DJ Delorie <dj@redhat.com>
15384
15385 * config/msp430/msp430.md (split): Don't allow subregs when
15386 splitting SImode adds.
15387 (andneghi): Fix subtraction logic.
15388 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15389
15390 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15391
15392 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15393 symbols.
15394 * except.c (switch_to_exception_section, resolve_unique_section,
15395 get_named_text_section, default_function_rodata_section,
15396 align_variable, get_block_for_decl, default_section_type_flags):
15397 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15398 * symtab.c (symtab_add_to_same_comdat_group,
15399 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15400 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15401 Likewise.
15402 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15403 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15404 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15405 (c6x_function_in_section_p): Likewise.
15406 * config/darwin.c (machopic_select_section): Likewise.
15407 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15408 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15409 * config/mep/mep.c (mep_select_section): LIkewise.
15410 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15411
15412 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15413
15414 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15415 EH region of calls to pure functions that can throw an exception.
15416 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15417 (copy_reference_ops_from_call): Also copy the EH region of the call if
15418 it can throw an exception.
15419
15420 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15421
15422 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15423 nested VEC_SELECTs that are inverses of each other.
15424
15425 2014-05-20 Richard Biener <rguenther@suse.de>
15426
15427 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15428 (extract_and_process_scc_for_name): not here.
15429 (cond_dom_walker::before_dom_children): Only process
15430 stmts that end the BB in interesting ways.
15431 (run_scc_vn): Mark param uses as visited.
15432
15433 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15434
15435 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15436 arm_restrict_it.
15437
15438 2014-05-20 Nick Clifton <nickc@redhat.com>
15439
15440 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15441 (msp430_gimplify_va_arg_expr): New function.
15442 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15443
15444 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15445 operand 0 in order to prevent confusion about the number of
15446 registers involved.
15447
15448 2014-05-20 Richard Biener <rguenther@suse.de>
15449
15450 PR tree-optimization/61221
15451 * tree-ssa-pre.c (el_to_update): Remove.
15452 (eliminate_dom_walker::before_dom_children): Handle released
15453 VDEFs by value-numbering them to the associated VUSE. Update
15454 stmt immediately for substituted call address.
15455 (eliminate): Remove delayed stmt updating code.
15456 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15457 possibly late re-numbered vuses.
15458 (vn_reference_lookup_2): Adjust.
15459 (vn_reference_lookup_pieces): Likewise.
15460 (vn_reference_lookup): Likewise.
15461
15462 2014-05-20 Richard Biener <rguenther@suse.de>
15463
15464 * config.gcc: Remove need_64bit_hwint.
15465 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15466 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15467 it to be true.
15468 * config.in: Regenerate.
15469 * configure: Likewise.
15470
15471 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15472
15473 * doc/extend.texi: Create Label Attributes section,
15474 move all label attributes into it and reference it.
15475
15476 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15477
15478 * arm.c (thumb1_reorg): When scanning backwards skip anything
15479 that's not a proper insn.
15480
15481 2014-05-19 Richard Biener <rguenther@suse.de>
15482
15483 PR tree-optimization/61221
15484 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15485 Do nothing for unreachable blocks.
15486 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15487 Improve unreachability detection.
15488
15489 2014-05-19 Richard Biener <rguenther@suse.de>
15490
15491 PR tree-optimization/61209
15492 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15493
15494 2014-05-19 Nick Clifton <nickc@redhat.com>
15495
15496 * except.c (init_eh): Fix computation of builtin setjmp buffer
15497 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15498
15499 2014-05-19 Richard Biener <rguenther@suse.de>
15500
15501 PR tree-optimization/61184
15502 * tree-vrp.c (is_negative_overflow_infinity): Use
15503 TREE_OVERFLOW_P and do that check first.
15504 (is_positive_overflow_infinity): Likewise.
15505 (is_overflow_infinity): Likewise.
15506 (vrp_operand_equal_p): Properly treat operands with
15507 differing overflow as not equal.
15508
15509 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15510
15511 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15512 shift simplification where it was intended.
15513
15514 2014-05-19 Christian Bruel <christian.bruel@st.com>
15515
15516 PR target/61195
15517 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15518
15519 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15520
15521 PR target/61084
15522 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15523 than wide_int.
15524
15525 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15526
15527 * reg-notes.def (CROSSING_JUMP): Likewise.
15528 * rtl.h (rtx_def): Update comment for jump flag.
15529 (CROSSING_JUMP_P): Define.
15530 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15531 of a REG_CROSSING_JUMP note.
15532 * cfghooks.c (tidy_fallthru_edges): Likewise.
15533 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15534 * emit-rtl.c (try_split): Likewise.
15535 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15536 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15537 * jump.c (redirect_jump_2): Likewise.
15538 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15539 (relax_delay_slots): Likewise.
15540 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15541 (bbit_di): Likewise.
15542 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15543 * config/sh/sh.md (jump_compact): Likewise.
15544 * bb-reorder.c (rotate_loop): Likewise.
15545 (pass_duplicate_computed_gotos::execute): Likewise.
15546 (add_reg_crossing_jump_notes): Rename to...
15547 (update_crossing_jump_flags): ...this.
15548 (pass_partition_blocks::execute): Update accordingly.
15549
15550 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15551
15552 * tree.h: Remove extraneous template <>.
15553
15554 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15555
15556 * ipa.c (symtab_remove_unreachable_nodes): Remove
15557 symbol from comdat group if its body was eliminated.
15558 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15559 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15560 (symtab_unregister_node): ... this one.
15561 (verify_symtab_base): More strict checking of comdats.
15562 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15563
15564 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15565
15566 * tree-pass.h (make_pass_ipa_comdats): New pass.
15567 * timevar.def (TV_IPA_COMDATS): New timevar.
15568 * passes.def (pass_ipa_comdats): Add.
15569 * Makefile.in (OBJS): Add ipa-comdats.o
15570 * ipa-comdats.c: New file.
15571
15572 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15573
15574 * ipa.c (update_visibility_by_resolution_info): New function.
15575 (function_and_variable_visibility): Use it.
15576
15577 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15578
15579 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15580 New functions.
15581 (FOR_EACH_DEFINED_SYMBOL): New macro.
15582 (varpool_first_static_initializer, varpool_next_static_initializer,
15583 varpool_first_defined_variable, varpool_next_defined_variable):
15584 Fix comments.
15585 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15586
15587 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15588
15589 * ggc-page.c (ggc_handle_finalizers): Add comment.
15590
15591 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15592
15593 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15594 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15595 (ggc_internal_cleared_alloc): Likewise.
15596 * ggc-page.c (finalizer): New class.
15597 (vec_finalizer): Likewise.
15598 (globals::finalizers): New member.
15599 (globals::vec_finalizers): Likewise.
15600 (ggc_internal_alloc): Record the finalizer if any for the block being
15601 allocated.
15602 (ggc_handle_finalizers): New function.
15603 (ggc_collect): Call ggc_handle_finalizers.
15604 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15605 finalizer.
15606 (ggc_internal_cleared_alloc): Likewise.
15607 (finalize): New function.
15608 (need_finalization_p): Likewise.
15609 (ggc_alloc): Install the type's destructor as the finalizer if it
15610 might do something.
15611 (ggc_cleared_alloc): Likewise.
15612 (ggc_vec_alloc): Likewise.
15613 (ggc_cleared_vec_alloc): Likewise.
15614
15615 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15616
15617 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15618
15619 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15620
15621 * alias.c (record_alias_subset): Adjust.
15622 * bitmap.c (bitmap_element_allocate): Likewise.
15623 (bitmap_gc_alloc_stat): Likewise.
15624 * cfg.c (init_flow): Likewise.
15625 (alloc_block): Likewise.
15626 (unchecked_make_edge): Likewise.
15627 * cfgloop.c (alloc_loop): Likewise.
15628 (flow_loops_find): Likewise.
15629 (rescan_loop_exit): Likewise.
15630 * cfgrtl.c (init_rtl_bb_info): Likewise.
15631 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15632 (cgraph_allocate_node): Likewise.
15633 (cgraph_create_edge_1): Likewise.
15634 (cgraph_allocate_init_indirect_info): Likewise.
15635 * cgraphclones.c (cgraph_clone_edge): Likewise.
15636 * cgraphunit.c (add_asm_node): Likewise.
15637 (init_lowered_empty_function): Likewise.
15638 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15639 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15640 (alpha_use_linkage): Likewise.
15641 * config/arc/arc.c (arc_init_machine_status): Likewise.
15642 * config/arm/arm.c (arm_init_machine_status): Likewise.
15643 * config/avr/avr.c (avr_init_machine_status): Likewise.
15644 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15645 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15646 * config/cris/cris.c (cris_init_machine_status): Likewise.
15647 * config/darwin.c (machopic_indirection_name): Likewise.
15648 (darwin_build_constant_cfstring): Likewise.
15649 (darwin_enter_string_into_cfstring_table): Likewise.
15650 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15651 * config/frv/frv.c (frv_init_machine_status): Likewise.
15652 * config/i386/i386.c (get_dllimport_decl): Likewise.
15653 (ix86_init_machine_status): Likewise.
15654 (assign_386_stack_local): Likewise.
15655 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15656 (i386_pe_maybe_record_exported_symbol): Likewise.
15657 (i386_pe_record_stub): Likewise.
15658 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15659 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15660 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15661 (m32c_note_pragma_address): Likewise.
15662 * config/mep/mep.c (mep_init_machine_status): Likewise.
15663 (mep_note_pragma_flag): Likewise.
15664 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15665 (mips16_local_alias): Likewise.
15666 (mips_init_machine_status): Likewise.
15667 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15668 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15669 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15670 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15671 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15672 * config/pa/pa.c (pa_init_machine_status): Likewise.
15673 (pa_get_deferred_plabel): Likewise.
15674 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15675 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15676 (rs6000_init_machine_status): Likewise.
15677 (output_toc): Likewise.
15678 * config/s390/s390.c (s390_init_machine_status): Likewise.
15679 * config/score/score.c (score_output_external): Likewise.
15680 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15681 * config/spu/spu.c (spu_init_machine_status): Likewise.
15682 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15683 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15684 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15685 * coverage.c (coverage_end_function): Likewise.
15686 * dbxout.c (dbxout_init): Likewise.
15687 * doc/gty.texi: Don't mention variable_size attribute.
15688 * dwarf2cfi.c (new_cfi): Adjust.
15689 (new_cfi_row): Likewise.
15690 (copy_cfi_row): Likewise.
15691 (create_cie_data): Likewise.
15692 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15693 (new_loc_descr): Likewise.
15694 (find_AT_string_in_table): Likewise.
15695 (add_addr_table_entry): Likewise.
15696 (new_die): Likewise.
15697 (add_var_loc_to_decl): Likewise.
15698 (clone_die): Likewise.
15699 (clone_as_declaration): Likewise.
15700 (break_out_comdat_types): Likewise.
15701 (new_loc_list): Likewise.
15702 (add_loc_descr_to_each): Likewise.
15703 (add_location_or_const_value_attribute): Likewise.
15704 (add_linkage_name): Likewise.
15705 (lookup_filename): Likewise.
15706 (dwarf2out_var_location): Likewise.
15707 (new_line_info_table): Likewise.
15708 (dwarf2out_init): Likewise.
15709 (mem_loc_descriptor): Likewise.
15710 (loc_descriptor): Likewise.
15711 (add_const_value_attribute): Likewise.
15712 (tree_add_const_value_attribute): Likewise.
15713 (comp_dir_string): Likewise.
15714 (dwarf2out_vms_debug_main_pointer): Likewise.
15715 (string_cst_pool_decl): Likewise.
15716 * emit-rtl.c (set_mem_attrs): Likewise.
15717 (get_reg_attrs): Likewise.
15718 (start_sequence): Likewise.
15719 (init_emit): Likewise.
15720 (init_emit_regs): Likewise.
15721 * except.c (init_eh_for_function): Likewise.
15722 (gen_eh_region): Likewise.
15723 (gen_eh_region_catch): Likewise.
15724 (gen_eh_landing_pad): Likewise.
15725 (add_call_site): Likewise.
15726 * function.c (add_frame_space): Likewise.
15727 (insert_temp_slot_address): Likewise.
15728 (assign_stack_temp_for_type): Likewise.
15729 (get_hard_reg_initial_val): Likewise.
15730 (allocate_struct_function): Likewise.
15731 (prepare_function_start): Likewise.
15732 (types_used_by_var_decl_insert): Likewise.
15733 * gengtype.c (variable_size_p): Remove function.
15734 (enum alloc_quantity): Remove enum.
15735 (write_typed_alloc_def): Remove function.
15736 (write_typed_struct_alloc_def): Likewise.
15737 (write_typed_typedef_alloc_def): Likewise.
15738 (write_typed_alloc_defns): Likewise.
15739 (main): Adjust.
15740 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15741 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15742 * ggc.h (ggc_alloc): new function.
15743 (ggc_cleared_alloc): Likewise.
15744 (ggc_vec_alloc): Template on type of vector element, and remove
15745 element size argument.
15746 (ggc_cleared_vec_alloc): Likewise.
15747 * gimple.c (gimple_build_omp_for): Adjust.
15748 (gimple_copy): Likewise.
15749 * ipa-cp.c (get_replacement_map): Likewise.
15750 (find_aggregate_values_for_callers_subset): Likewise.
15751 (known_aggs_to_agg_replacement_list): Likewise.
15752 * ipa-devirt.c (get_odr_type): Likewise.
15753 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15754 (read_agg_replacement_chain): Likewise.
15755 * loop-iv.c (get_simple_loop_desc): Likewise.
15756 * lto-cgraph.c (input_node_opt_summary): Likewise.
15757 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15758 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15759 (input_eh_region): Likewise.
15760 (input_eh_lp): Likewise.
15761 (input_cfg): Likewise.
15762 * optabs.c (set_optab_libfunc): Likewise.
15763 (init_tree_optimization_optabs): Likewise.
15764 (set_conv_libfunc): Likewise.
15765 * passes.c (do_per_function_toporder): Likewise.
15766 * rtl.h: Don't use variable_size gty attribute.
15767 * sese.c (if_region_set_false_region): Adjust.
15768 * stringpool.c (gt_pch_save_stringpool): Likewise.
15769 * target-globals.c (save_target_globals): Likewise.
15770 * toplev.c (general_init): Likewise.
15771 * trans-mem.c (record_tm_replacement): Likewise.
15772 (split_bb_make_tm_edge): Likewise.
15773 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15774 * tree-data-ref.h (lambda_vector_new): Likewise.
15775 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15776 * tree-iterator.c (tsi_link_before): Likewise.
15777 (tsi_link_after): Likewise.
15778 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15779 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15780 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15781 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15782 * tree-ssa.c (init_tree_ssa): Adjust.
15783 * tree-ssanames.c (set_range_info): Likewise.
15784 (get_ptr_info): Likewise.
15785 (duplicate_ssa_name_ptr_info): Likewise.
15786 (duplicate_ssa_name_range_info): Likewise.
15787 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15788 (unpack_ts_fixed_cst_value_fields): Likewise.
15789 * tree.c (build_fixed): Likewise.
15790 (build_real): Likewise.
15791 (build_string): Likewise.
15792 (decl_priority_info): Likewise.
15793 (decl_debug_expr_insert): Likewise.
15794 (decl_value_expr_insert): Likewise.
15795 (decl_debug_args_insert): Likewise.
15796 (type_hash_add): Likewise.
15797 (build_omp_clause): Likewise.
15798 * ubsan.c (decl_for_type_insert): Likewise.
15799 * varasm.c (get_unnamed_section): Likewise.
15800 (get_noswitch_section): Likewise.
15801 (get_section): Likewise.
15802 (get_block_for_section): Likewise.
15803 (create_block_symbol): Likewise.
15804 (build_constant_desc): Likewise.
15805 (create_constant_pool): Likewise.
15806 (force_const_mem): Likewise.
15807 (record_tm_clone_pair): Likewise.
15808 * varpool.c (varpool_create_empty_node): Likewise.
15809
15810 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15811
15812 * dwarf2out.c (tree_add_const_value_attribute): Call
15813 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15814 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15815 instead of ggc_internal_<x>alloc_stat.
15816 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15817 (ggc_realloc): Likewise.
15818 * ggc-none.c (ggc_internal_alloc): Likewise.
15819 (ggc_internal_cleared_alloc): Likewise.
15820 * ggc-page.c: Likewise.
15821 * ggc.h (ggc_internal_alloc_stat): Likewise.
15822 (ggc_internal_alloc): Remove macro.
15823 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15824 (ggc_internal_cleared_alloc): Remove macro.
15825 (GGC_RESIZEVEC): Adjust.
15826 (ggc_resizevar): Remove macro.
15827 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15828 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15829 (ggc_internal_vec_cleared_alloc): Remove macro.
15830 (ggc_alloc_atomic_stat): Drop _stat suffix.
15831 (ggc_alloc_atomic): Remove macro.
15832 (ggc_alloc_cleared_atomic): Remove macro.
15833 (ggc_alloc_string_stat): Drop _stat suffix.
15834 (ggc_alloc_string): Remove macro.
15835 (ggc_alloc_rtx_def_stat): Adjust.
15836 (ggc_alloc_tree_node_stat): Likewise.
15837 (ggc_alloc_cleared_tree_node_stat): Likewise.
15838 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15839 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15840 * gimple.c (gimple_build_omp_for): Likewise.
15841 (gimple_copy): Likewise.
15842 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15843 * toplev.c (realloc_for_line_map): Adjust.
15844 * tree-data-ref.h (lambda_vector_new): Likewise.
15845 * tree-phinodes.c (allocate_phi_node): Likewise.
15846 * tree.c (grow_tree_vec_stat): Likewise.
15847 * vec.h (va_gc::reserve): Adjust.
15848
15849 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15850
15851 * config/microblaze/microblaze.c (break_handler): New Declaration.
15852 (microblaze_break_function_p,microblaze_is_break_handler): New.
15853 (compute_frame_size): Use microblaze_break_function_p.
15854 Add the test of break_handler.
15855 (microblaze_function_prologue) : Add the test of variable
15856 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15857 (microblaze_function_epilogue) : Add the test of break_handler.
15858 (microblaze_globalize_label) : Add the test of break_handler.
15859 Check the name by BREAK_HANDLER_NAME.
15860
15861 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15862
15863 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15864 microblaze_is_break_handler test.
15865 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15866 Use SYMBOL_REF_DECL.
15867
15868 * config/microblaze/microblaze-protos.h
15869 (microblaze_break_function_p,microblaze_is_break_handler):
15870 New Declaration.
15871
15872 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15873 new MicroBlaze break_handler functions.
15874
15875 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15876
15877 * doc/extend.texi (Size of an asm): Move node text according
15878 to its @menu entry position.
15879
15880 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15881
15882 PR tree-optimization/61140
15883 PR tree-optimization/61150
15884 PR tree-optimization/61197
15885 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15886
15887 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15888
15889 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15890
15891 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15892
15893 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15894 __SIZEOF_INT128__ is defined.
15895
15896 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15897
15898 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15899 (rs6000_delegitimize_address): Use it.
15900
15901 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15902
15903 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15904 inplace argument. Store the new address in the original MEM when true.
15905 * emit-rtl.c (change_address_1): Likewise.
15906 (adjust_address_1, adjust_automodify_address_1, offset_address):
15907 Update accordingly.
15908 * rtl.h (plus_constant): Add an inplace argument.
15909 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15910 when true. Avoid generating (plus X (const_int 0)).
15911 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15912 in-place. Pass true to plus_constant.
15913 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15914
15915 2014-05-16 Dehao Chen <dehao@google.com>
15916
15917 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15918
15919 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15920
15921 PR target/54089
15922 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15923 patterns.
15924 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15925
15926 2014-05-16 Dehao Chen <dehao@google.com>
15927
15928 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15929 optimize_function_for_size_p.
15930 * regs.h (REG_FREQ_FROM_BB): Likewise.
15931
15932 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15933
15934 PR target/51244
15935 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15936 negt_reg_operand cases.
15937 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15938 predicate.
15939 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15940
15941 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15942
15943 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15944 target variants.
15945
15946 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15947
15948 Revert:
15949 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15950
15951 * tree-cfg.c (dump_function_to_file): Dump the return type of
15952 functions, in a line to itself before the function body, mimicking
15953 the layout of a C function.
15954
15955 2014-05-16 Dehao Chen <dehao@google.com>
15956
15957 * cfghooks.c (make_forwarder_block): Use direct computation to
15958 get fall-through edge's count and frequency.
15959
15960 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15961
15962 * config/arc/arc.c (arc_init): Fix typo in error message.
15963 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15964 (split_stack_prologue_scratch_regno): Likewise.
15965 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15966 word from error message.
15967
15968 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15969
15970 * ira-costs.c: Fix typo in comment.
15971
15972 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15973
15974 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15975
15976 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15977
15978 * varpool.c (dump_varpool_node): Dump write-only flag.
15979 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15980 write-only flag.
15981 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15982 write-only variables.
15983 * ipa.c (process_references): New function.
15984 (set_readonly_bit): New function.
15985 (set_writeonly_bit): New function.
15986 (clear_addressable_bit): New function.
15987 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15988 fix handling of aliases.
15989 * cgraph.h (struct varpool_node): Add writeonly flag.
15990
15991 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15992
15993 PR rtl-optimization/60969
15994 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15995 Calculate costs for this case.
15996
15997 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15998
15999 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16000 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16001
16002 2014-05-16 Richard Biener <rguenther@suse.de>
16003
16004 PR tree-optimization/61194
16005 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16006 bool patterns ending in a COND_EXPR.
16007
16008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16009
16010 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16011
16012 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16013
16014 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16015 where we were unable to cost an RTX.
16016
16017 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16018
16019 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16020 HIGH, LO_SUM.
16021
16022 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16023 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16024
16025 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16026
16027 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16028 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16029
16030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16031 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16032
16033 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16034 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16035
16036 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16037 operators.
16038
16039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16040 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16041
16042 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16043 DIV/MOD.
16044
16045 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16046 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16047
16048 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16049 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16050
16051 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16052 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16053
16054 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16055 rotates and shifts.
16056
16057 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16058 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16059
16060 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16061 ZERO_EXTEND and SIGN_EXTEND better.
16062
16063 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16064 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16065
16066 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16067 logical operations.
16068
16069 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16070 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16071
16072 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16073 costs when costing loads and stores to memory.
16074
16075 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16076 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16077
16078 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16079 for SET RTX.
16080
16081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16082
16083 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
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_strip_shift_or_extend): Rename
16089 to...
16090 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16091 well formed.
16092 (aarch64_rtx_mult_cost): New.
16093 (aarch64_rtx_costs): Use it, refactor as appropriate.
16094
16095 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16096 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16097
16098 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16099 emit instructions, return number of instructions which would
16100 be emitted.
16101 (aarch64_add_constant): Update call to aarch64_build_constant.
16102 (aarch64_output_mi_thunk): Likewise.
16103 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16104 a CONST_DOUBLE.
16105
16106 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16107
16108 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16109 (TARGET_RTX_COSTS): Call it.
16110
16111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16112
16113 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16114 (cortexa57_vector_cost): Likewise.
16115 (cortexa57_tunings): Use them.
16116
16117 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16118
16119 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16120 (cpu_addrcost_table): Use it.
16121 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16122 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16123 move it.
16124
16125 2014-05-16 Richard Biener <rguenther@suse.de>
16126
16127 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16128 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16129 (visit_phi): Ignore edges marked as not executable.
16130 (class cond_dom_walker): New.
16131 (cond_dom_walker::before_dom_children): Value-number
16132 control statements and mark successor edges as not
16133 executable if possible.
16134 (run_scc_vn): First walk all control statements in
16135 dominator order, marking edges as not executable.
16136 * tree-inline.c (copy_edges_for_bb): Be not confused
16137 about random edge flags.
16138
16139 2014-05-16 Richard Biener <rguenther@suse.de>
16140
16141 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16142
16143 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16144
16145 PR target/61193
16146 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16147 (__TM_simple_begin): Use it.
16148 (__TM_begin): Likewise.
16149
16150 2014-05-15 Martin Jambor <mjambor@suse.cz>
16151
16152 PR ipa/61085
16153 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16154 type_preserved flag when the indirect edge is polymorphic.
16155
16156 2014-05-15 Martin Jambor <mjambor@suse.cz>
16157
16158 PR tree-optimization/61090
16159 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16160 build_ref_for_model.
16161
16162 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16163
16164 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16165 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16166
16167 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16168
16169 PR tree-optimization/61158
16170 * fold-const.c (fold_binary_loc): If X is zero-extended and
16171 shiftc >= prec, make sure zerobits is all ones instead of
16172 invoking undefined behavior.
16173
16174 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16175
16176 * regcprop.h: New file.
16177 * regcprop.c (skip_debug_insn_p): New decl.
16178 (replace_oldest_value_reg): Check skip_debug_insn_p.
16179 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16180 * shrink-wrap.c: Include regcprop.h.
16181 (prepare_shrink_wrap): Call
16182 copyprop_hardreg_forward_bb_without_debug_insn.
16183
16184 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16185
16186 * shrink-wrap.h: Update comment.
16187 * shrink-wrap.c: Update comment.
16188 (next_block_for_reg): Rename to live_edge_for_reg.
16189 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16190 (move_insn_for_shrink_wrap): Split live_edge.
16191 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16192
16193 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16194
16195 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16196 Delete.
16197 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16198 * config/sparc/sparc.md (fptype_ut699): New attribute.
16199 (in_branch_delay): Return false if -mfix-ut699 is specified and
16200 fptype_ut699 is set to single.
16201 (truncdfsf2): Add fptype_ut699 attribute.
16202 (fix_truncdfsi2): Likewise.
16203 (floatsisf2): Change fptype attribute.
16204 (fix_truncsfsi2): Likewise.
16205 (negtf2_notv9): Delete.
16206 (negtf2_v9): Likewise.
16207 (negtf2_hq): New instruction.
16208 (negtf2): New instruction and splitter.
16209 (negdf2_notv9): Rewrite.
16210 (abstf2_notv9): Delete.
16211 (abstf2_hq_v9): Likewise.
16212 (abstf2_v9): Likewise.
16213 (abstf2_hq): New instruction.
16214 (abstf2): New instruction and splitter.
16215 (absdf2_notv9): Rewrite.
16216
16217 2014-05-14 Cary Coutant <ccoutant@google.com>
16218
16219 PR debug/61013
16220 * opts.c (common_handle_option): Don't special-case "-g".
16221 (set_debug_level): Default to at least level 2 with "-g".
16222
16223 2014-05-14 DJ Delorie <dj@redhat.com>
16224
16225 * config/msp430/msp430.c (msp430_builtin): Add
16226 MSP430_BUILTIN_DELAY_CYCLES.
16227 (msp430_init_builtins): Register void __delay_cycles(long long).
16228 (msp430_builtin_decl): Add it.
16229 (cg_magic_constant): New.
16230 (msp430_expand_delay_cycles): New.
16231 (msp430_expand_builtin): Call it.
16232 (msp430_print_operand_raw): Change integer printing from "int" to
16233 HOST_WIDE_INT.
16234 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16235 (delay_cycles_start): New.
16236 (delay_cycles_end): New.
16237 (delay_cycles_32): New.
16238 (delay_cycles_32x): New.
16239 (delay_cycles_16): New.
16240 (delay_cycles_16x): New.
16241 (delay_cycles_2): New.
16242 (delay_cycles_1): New.
16243 * doc/extend.texi: Document __delay_cycles().
16244
16245 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16246
16247 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16248 length attribute computation.
16249
16250 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16251
16252 PR debug/61188
16253 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16254
16255 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16256
16257 PR target/61084
16258 * config/sparc/sparc.md: Fix types of low and high in DI constant
16259 splitter. Use gen_int_mode in some other splitters.
16260
16261 2014-05-14 Martin Jambor <mjambor@suse.cz>
16262
16263 PR ipa/60897
16264 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16265
16266 2014-05-14 James Norris <jnorris@codesourcery.com>
16267
16268 * omp-low.c (expand_parallel_call): Remove shadow variable.
16269 (expand_omp_taskreg): Likewise.
16270
16271 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16272
16273 * common/config/i386/i386-common.c
16274 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16275 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16276 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16277 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16278 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16279 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16280 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16281 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16282 xsavecintrin.h, xsavesintrin.h.
16283 (x86_64-*-*): Ditto.
16284 * config/i386/clflushoptintrin.h: New.
16285 * config/i386/xsavecintrin.h: Ditto.
16286 * config/i386/xsavesintrin.h: Ditto.
16287 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16288 (bit_XSAVES): Ditto.
16289 (bit_XSAVES): Ditto.
16290 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16291 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16292 -mno-clflushopt.
16293 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16294 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16295 OPTION_MASK_ISA_XSAVES.
16296 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16297 -mxsavec, -mxsaves.
16298 (PTA_CLFLUSHOPT) Define.
16299 (PTA_XSAVEC): Ditto.
16300 (PTA_XSAVES): Ditto.
16301 (ix86_option_override_internal): Handle new options.
16302 (ix86_valid_target_attribute_inner_p): Ditto.
16303 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16304 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16305 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16306 (bdesc_special_args): Add __builtin_ia32_xsaves,
16307 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16308 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16309 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16310 (ix86_expand_builtin): Handle new builtins.
16311 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16312 (TARGET_CLFLUSHOPT_P): Ditto.
16313 (TARGET_XSAVEC): Ditto.
16314 (TARGET_XSAVEC_P): Ditto.
16315 (TARGET_XSAVES): Ditto.
16316 (TARGET_XSAVES_P): Ditto.
16317 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16318 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16319 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16320 (ANY_XRSTOR): New.
16321 (ANY_XRSTOR64): Ditto.
16322 (xrstor): Ditto.
16323 (xrstor): Change into <xrstor>.
16324 (xrstor_rex64): Change into <xrstor>_rex64.
16325 (xrstor64): Change into <xrstor>64
16326 (clflushopt): New.
16327 * config/i386/i386.opt (mclflushopt): New.
16328 (mxsavec): Ditto.
16329 (mxsaves): Ditto.
16330 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16331 xsavecintrin.h.
16332 * doc/invoke.texi: Document new options.
16333
16334 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16335
16336 PR rtl-optimization/60866
16337 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16338 Default it to -1. Pass it down to init_simplejump_data.
16339 (init_simplejump_data): New parameter old_seqno. Pass it down
16340 to get_seqno_for_a_jump.
16341 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16342 initializing new jump seqno as a last resort. Add comment.
16343 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16344 jump and pass it down to sel_init_new_insn.
16345 (sel_redirect_edge_and_branch_force): Likewise.
16346
16347 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16348
16349 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16350 shifted values to avoid build warning.
16351
16352 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16353
16354 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16355 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16356 (cfg_layout_merge_blocks): Likewise.
16357 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16358
16359 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16360
16361 PR rtl-optimization/60901
16362 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16363 bb predecessor belongs to the same scheduling region. Adjust comment.
16364
16365 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16366
16367 * doc/sourcebuild.texi: (dfp_hw): Document.
16368 (p8vector_hw): Likewise.
16369 (powerpc_eabi_ok): Likewise.
16370 (powerpc_elfv2): Likewise.
16371 (powerpc_htm_ok): Likewise.
16372 (ppc_recip_hw): Likewise.
16373 (vsx_hw): Likewise.
16374
16375 2014-05-13 Cary Coutant <ccoutant@google.com>
16376
16377 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16378
16379 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16380
16381 * gengtype-parse.c (require3): Eliminate in favor of...
16382 (require4): New.
16383 (require_template_declaration): Update to support optional single *
16384 on a type.
16385
16386 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16387 (create_user_defined_type): Handle a single level of explicit
16388 pointerness within template arguments.
16389 (struct write_types_data): Add field "kind".
16390 (filter_type_name): Handle "*" character.
16391 (write_user_func_for_structure_ptr): Require a write_types_data
16392 rather than just a prefix string, so that we can look up the kind
16393 of the wtd and use it as an index into wrote_user_func_for_ptr,
16394 ensuring that such functions are written at most once. Support
16395 subclasses by invoking the marking function of the ultimate base class.
16396 (write_user_func_for_structure_body): Require a write_types_data
16397 rather than just a prefix string, so that we can pass this to
16398 write_user_func_for_structure_ptr.
16399 (write_func_for_structure): Likewise.
16400 (ggc_wtd): Add initializer of new "kind" field.
16401 (pch_wtd): Likewise.
16402
16403 * gengtype.h (enum write_types_kinds): New.
16404 (struct type): Add field wrote_user_func_for_ptr to the "s"
16405 union member.
16406
16407 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16408
16409 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16410 instead of const_binop.
16411 (fold_binary_loc): Likewise.
16412
16413 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16414
16415 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16416 calculation to match get_ref_base_and_extent.
16417
16418 2014-05-13 Catherine Moore <clm@codesourcery.com>
16419 Sandra Loosemore <sandra@codesourcery.com>
16420
16421 * configure.ac: Fix assembly for explicit JALR relocation check.
16422 * configure: Regenerate.
16423
16424 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16425
16426 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16427 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16428 Remove associated type declarations and initialisations.
16429 (arm_expand_neon_builtin): Likewise.
16430 (neon_emit_pair_result_insn): Delete.
16431 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16432 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16433 (neon_vzip<mode>): Likewise.
16434 (neon_vuzp<mode>): Likewise.
16435
16436 2014-05-13 Richard Biener <rguenther@suse.de>
16437
16438 PR ipa/60973
16439 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16440 it needs revisiting whether the call still may be tail-called.
16441
16442 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16443
16444 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16445 * rtl.h (block_symbol): Reduce number of fields to 2.
16446 (rtx_def): Add u2.symbol_ref_flags.
16447 (SYMBOL_REF_FLAGS): Use it.
16448 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16449 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16450 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16451 Lower index of SYMBOL_REF_DATA.
16452 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16453 Print SYMBOL_REF_FLAGS at the same time.
16454 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16455
16456 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16457
16458 * rtl.def (VAR_LOCATION): Remove "i" field.
16459 * rtl.h (rtx_def): Add u2.var_location_status.
16460 (PAT_VAR_LOCATION_STATUS): Use it.
16461 (gen_rtx_VAR_LOCATION): Declare.
16462 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16463 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16464 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16465
16466 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16467
16468 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16469 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16470
16471 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16472
16473 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16474 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16475 * rtl.h (rtx_def): Add insn_uid to u2 field.
16476 (RTX_FLAG_CHECK8): Delete in favor of...
16477 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16478 (INSN_DELETED_P): Update accordingly.
16479 (INSN_UID): Use u2.insn_uid.
16480 (INSN_CHAIN_CODE_P): Define.
16481 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16482 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16483 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16484 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16485 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16486 indices accordingly.
16487 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16488 Update indices for insn-chain rtxes.
16489 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16490 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16491 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16492 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16493 * combine.c (try_combine): Likewise.
16494 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16495
16496 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16497
16498 * rtl.def (REG): Remove middle field.
16499 * rtl.h (rtx_def): Add orignal_regno to u2.
16500 (ORIGINAL_REGNO): Use it instead of field 1.
16501 (REG_ATTRS): Lower field index accordingly.
16502 * gengtype.c (adjust_field_rtx_def): Remove handling of
16503 ORIGINAL_REGNO. Move REG_ATTRS index down.
16504 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16505 code that prints the REGNO.
16506
16507 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16508
16509 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16510 GENERATOR_FILE.
16511
16512 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16513
16514 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16515
16516 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16517
16518 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16519 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16520
16521 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16522
16523 * config/aarch64/aarch64-protos.h
16524 (aarch64_hard_regno_caller_save_mode): New prototype.
16525 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16526 New function.
16527 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16528
16529 2014-05-13 Christian Bruel <christian.bruel@st.com>
16530
16531 * target.def (mode_switching): New hook vector.
16532 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16533 (mode_exit, modepriority_to_mode): Likewise.
16534 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16535 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16536 * target.h: Include tm.h and hard-reg-set.h.
16537 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16538 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16539 * doc/tm.texi Regenerate.
16540 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16541 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16542 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16543 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16544 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16545 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16546 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16547 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16548 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16549 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16550 (ix86_emit_mode_set): Hookify.
16551 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16552 Delete.
16553 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16554 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16555 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16556 (epiphany_mode_priority_to_mode): Remove declaration.
16557 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16558 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16559 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16560 Likewise.
16561 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16562 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16563 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16564
16565 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16566
16567 PR target/61060
16568 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16569 is const0_rtx, return immediately. Don't test count == 0 when
16570 it is always true.
16571
16572 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16573
16574 * Makefile.in: add shrink-wrap.o.
16575 * config/i386/i386.c: include "shrink-wrap.h"
16576 * function.c: Likewise.
16577 (requires_stack_frame_p, next_block_for_reg,
16578 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16579 dup_block_and_redirect): Move to shrink-wrap.c
16580 (thread_prologue_and_epilogue_insns): Extract three code segments
16581 as functions in shrink-wrap.c
16582 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16583 shrink-wrap.h
16584 * shrink-wrap.c: New file.
16585 * shrink-wrap.h: New file.
16586
16587 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16588
16589 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16590 reference to Solaris.
16591
16592 2014-05-12 Mike Stump <mikestump@comcast.net>
16593
16594 PR other/31778
16595 * genattrtab.c (filename): Add.
16596 (convert_set_attr_alternative): Improve error message.
16597 (check_defs): Restore read_md_filename for error messages.
16598 (gen_insn): Save filename.
16599
16600 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16601
16602 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16603 -fno-local-ivars and -fivar-visibility.
16604 * c-family/c.opt: Make -Wshadow also implicitly enable
16605 -Wshadow-ivar.
16606
16607 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16608
16609 * doc/tm.texi: Remove reference to deleted macro.
16610 * doc/tm.texi.in: Likewise.
16611
16612 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16613
16614 PR target/60991
16615 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16616 to restore Y.
16617
16618 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16619
16620 PR libgcc/61152
16621 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16622 * config/arm/aout.h (License): Same.
16623 * config/arm/bpabi.h (License): Same.
16624 * config/arm/elf.h (License): Same.
16625 * config/arm/linux-elf.h (License): Same.
16626 * config/arm/linux-gas.h (License): Same.
16627 * config/arm/netbsd-elf.h (License): Same.
16628 * config/arm/uclinux-eabi.h (License): Same.
16629 * config/arm/uclinux-elf.h (License): Same.
16630 * config/arm/vxworks.h (License): Same.
16631
16632 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16633
16634 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16635 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16636 number of operands to 3.
16637 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16638 * tree-nested.c (convert_nonlocal_omp_clauses,
16639 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16640 * gimplify.c (gimplify_scan_omp_clauses): Handle
16641 OMP_CLAUSE_LINEAR_STMT.
16642 * omp-low.c (lower_rec_input_clauses): Fix typo.
16643 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16644 cast between Fortran boolean_type_node and C _Bool if
16645 needed.
16646
16647 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16648
16649 PR tree-optimization/61136
16650 * wide-int.h (multiple_of_p): Define a version that doesn't return
16651 the quotient.
16652 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16653 integer_zerop/const_binop pair.
16654 (multiple_of_p): Likewise, converting both operands to widest_int
16655 precision.
16656
16657 2014-05-09 Teresa Johnson <tejohnson@google.com>
16658
16659 * cgraphunit.c (analyze_functions): Use correct dump file.
16660
16661 2014-05-09 Florian Weimer <fweimer@redhat.com>
16662
16663 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16664 expand_used_vars.
16665 (stack_protect_return_slot_p): New function.
16666 (expand_used_vars): Call stack_protect_decl_p and
16667 stack_protect_return_slot_p for -fstack-protector-strong.
16668
16669 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16670 Andrew Haley <aph@redhat.com>
16671 Richard Sandiford <rdsandiford@googlemail.com>
16672
16673 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16674 pages.
16675
16676 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16677
16678 PR middle-end/61111
16679 * fold-const.c (fold_binary_loc): Changed width of mask.
16680
16681 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16682
16683 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16684 unsigned int initializers for regno_in, regno_out.
16685
16686 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16687
16688 PR target/61055
16689 * config/avr/avr.md (cc): Add new attribute set_vzn.
16690 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16691 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16692 with INC, DEC or NEG.
16693 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16694 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16695 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16696
16697 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16698
16699 Revert:
16700 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16701
16702 * wide-int.cc (UTItype): Define.
16703 (UDWtype): Define for appropriate W_TYPE_SIZE.
16704
16705 2014-05-09 Richard Biener <rguenther@suse.de>
16706
16707 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16708 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16709 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16710 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16711 ssa_propagate): Adjust.
16712
16713 2014-05-08 Jeff Law <law@redhat.com>
16714
16715 PR tree-optimization/61009
16716 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16717 tri-state rather than a boolean. When a block is too big to
16718 thread through, inform caller via negative return value.
16719 (thread_across_edge): If a block was too big for normal threading,
16720 then it's too big for a joiner too, so remove temporary equivalences
16721 and return immediately.
16722
16723 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16724 Matthias Klose <doko@ubuntu.com>
16725
16726 PR driver/61106
16727 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16728
16729 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16730
16731 PR target/59952
16732 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16733
16734 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16735
16736 PR target/61092
16737 * config/alpha/alpha.c: Include gimple-iterator.h.
16738 (alpha_gimple_fold_builtin): New function. Move
16739 ALPHA_BUILTIN_UMULH folding from ...
16740 (alpha_fold_builtin): ... here.
16741 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16742
16743 2014-05-08 Wei Mi <wmi@google.com>
16744
16745 PR target/58066
16746 * config/i386/i386.c (ix86_compute_frame_layout): Update
16747 preferred_stack_boundary for call, expanded from tls descriptor.
16748 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16749 to depend on SP register.
16750 (*tls_local_dynamic_base_32_gnu): Ditto.
16751 (*tls_local_dynamic_32_once): Ditto.
16752 (tls_global_dynamic_64_<mode>): Set
16753 ix86_tls_descriptor_calls_expanded_in_cfun.
16754 (tls_local_dynamic_base_64_<mode>): Ditto.
16755 (tls_global_dynamic_32): Set
16756 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16757 to depend on SP register.
16758 (tls_local_dynamic_base_32): Ditto.
16759
16760 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16761
16762 * config/arm/arm_neon.h: Update comment.
16763 * config/arm/neon-docgen.ml: Delete.
16764 * config/arm/neon-gen.ml: Delete.
16765 * doc/arm-neon-intrinsics.texi: Update comment.
16766
16767 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16768
16769 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16770 and v4sf versions.
16771 (vand, vorr, veor, vorn, vbic): Remove.
16772 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16773 iterator.
16774 (neon_vsub_unspec): Likewise.
16775 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16776
16777 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16778
16779 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16780 (vadd_s16): Likewise.
16781 (vadd_s32): Likewise.
16782 (vadd_f32): Likewise.
16783 (vadd_u8): Likewise.
16784 (vadd_u16): Likewise.
16785 (vadd_u32): Likewise.
16786 (vadd_s64): Likewise.
16787 (vadd_u64): Likewise.
16788 (vaddq_s8): Likewise.
16789 (vaddq_s16): Likewise.
16790 (vaddq_s32): Likewise.
16791 (vaddq_s64): Likewise.
16792 (vaddq_f32): Likewise.
16793 (vaddq_u8): Likewise.
16794 (vaddq_u16): Likewise.
16795 (vaddq_u32): Likewise.
16796 (vaddq_u64): Likewise.
16797 (vmul_s8): Likewise.
16798 (vmul_s16): Likewise.
16799 (vmul_s32): Likewise.
16800 (vmul_f32): Likewise.
16801 (vmul_u8): Likewise.
16802 (vmul_u16): Likewise.
16803 (vmul_u32): Likewise.
16804 (vmul_p8): Likewise.
16805 (vmulq_s8): Likewise.
16806 (vmulq_s16): Likewise.
16807 (vmulq_s32): Likewise.
16808 (vmulq_f32): Likewise.
16809 (vmulq_u8): Likewise.
16810 (vmulq_u16): Likewise.
16811 (vmulq_u32): Likewise.
16812 (vsub_s8): Likewise.
16813 (vsub_s16): Likewise.
16814 (vsub_s32): Likewise.
16815 (vsub_f32): Likewise.
16816 (vsub_u8): Likewise.
16817 (vsub_u16): Likewise.
16818 (vsub_u32): Likewise.
16819 (vsub_s64): Likewise.
16820 (vsub_u64): Likewise.
16821 (vsubq_s8): Likewise.
16822 (vsubq_s16): Likewise.
16823 (vsubq_s32): Likewise.
16824 (vsubq_s64): Likewise.
16825 (vsubq_f32): Likewise.
16826 (vsubq_u8): Likewise.
16827 (vsubq_u16): Likewise.
16828 (vsubq_u32): Likewise.
16829 (vsubq_u64): Likewise.
16830 (vand_s8): Likewise.
16831 (vand_s16): Likewise.
16832 (vand_s32): Likewise.
16833 (vand_u8): Likewise.
16834 (vand_u16): Likewise.
16835 (vand_u32): Likewise.
16836 (vand_s64): Likewise.
16837 (vand_u64): Likewise.
16838 (vandq_s8): Likewise.
16839 (vandq_s16): Likewise.
16840 (vandq_s32): Likewise.
16841 (vandq_s64): Likewise.
16842 (vandq_u8): Likewise.
16843 (vandq_u16): Likewise.
16844 (vandq_u32): Likewise.
16845 (vandq_u64): Likewise.
16846 (vorr_s8): Likewise.
16847 (vorr_s16): Likewise.
16848 (vorr_s32): Likewise.
16849 (vorr_u8): Likewise.
16850 (vorr_u16): Likewise.
16851 (vorr_u32): Likewise.
16852 (vorr_s64): Likewise.
16853 (vorr_u64): Likewise.
16854 (vorrq_s8): Likewise.
16855 (vorrq_s16): Likewise.
16856 (vorrq_s32): Likewise.
16857 (vorrq_s64): Likewise.
16858 (vorrq_u8): Likewise.
16859 (vorrq_u16): Likewise.
16860 (vorrq_u32): Likewise.
16861 (vorrq_u64): Likewise.
16862 (veor_s8): Likewise.
16863 (veor_s16): Likewise.
16864 (veor_s32): Likewise.
16865 (veor_u8): Likewise.
16866 (veor_u16): Likewise.
16867 (veor_u32): Likewise.
16868 (veor_s64): Likewise.
16869 (veor_u64): Likewise.
16870 (veorq_s8): Likewise.
16871 (veorq_s16): Likewise.
16872 (veorq_s32): Likewise.
16873 (veorq_s64): Likewise.
16874 (veorq_u8): Likewise.
16875 (veorq_u16): Likewise.
16876 (veorq_u32): Likewise.
16877 (veorq_u64): Likewise.
16878 (vbic_s8): Likewise.
16879 (vbic_s16): Likewise.
16880 (vbic_s32): Likewise.
16881 (vbic_u8): Likewise.
16882 (vbic_u16): Likewise.
16883 (vbic_u32): Likewise.
16884 (vbic_s64): Likewise.
16885 (vbic_u64): Likewise.
16886 (vbicq_s8): Likewise.
16887 (vbicq_s16): Likewise.
16888 (vbicq_s32): Likewise.
16889 (vbicq_s64): Likewise.
16890 (vbicq_u8): Likewise.
16891 (vbicq_u16): Likewise.
16892 (vbicq_u32): Likewise.
16893 (vbicq_u64): Likewise.
16894 (vorn_s8): Likewise.
16895 (vorn_s16): Likewise.
16896 (vorn_s32): Likewise.
16897 (vorn_u8): Likewise.
16898 (vorn_u16): Likewise.
16899 (vorn_u32): Likewise.
16900 (vorn_s64): Likewise.
16901 (vorn_u64): Likewise.
16902 (vornq_s8): Likewise.
16903 (vornq_s16): Likewise.
16904 (vornq_s32): Likewise.
16905 (vornq_s64): Likewise.
16906 (vornq_u8): Likewise.
16907 (vornq_u16): Likewise.
16908 (vornq_u32): Likewise.
16909 (vornq_u64): Likewise.
16910
16911 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16912
16913 * wide-int.cc (UTItype): Define.
16914 (UDWtype): Define for appropriate W_TYPE_SIZE.
16915
16916 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16917
16918 PR tree-optimization/59100
16919 * tree-ssa-phiopt.c: Include tree-inline.h.
16920 (neutral_element_p, absorbing_element_p): New functions.
16921 (value_replacement): Handle conditional binary operations with a
16922 neutral or absorbing element.
16923
16924 2014-05-08 Richard Biener <rguenther@suse.de>
16925
16926 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16927 folding the expression.
16928 (valueize_expr): Remove.
16929 (visit_reference_op_load): Do not valueize the result of
16930 vn_get_expr_for.
16931 (simplify_binary_expression): Likewise.
16932 (simplify_unary_expression): Likewise.
16933
16934 2014-05-08 Richard Biener <rguenther@suse.de>
16935
16936 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16937 looking at TYPE_ARG_TYPES.
16938
16939 2014-05-08 Richard Biener <rguenther@suse.de>
16940
16941 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16942 pointer propagation special-case.
16943
16944 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16945
16946 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16947 core part of address expressions.
16948
16949 2014-05-08 Alan Modra <amodra@gmail.com>
16950
16951 PR target/60737
16952 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16953 loads and stores when -mno-strict-align at any alignment.
16954 (expand_block_clear): Similarly. Also correct calculation of
16955 instruction count.
16956
16957 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16958
16959 PR middle-end/39246
16960 * tree-complex.c (expand_complex_move): Keep line info when expanding
16961 complex move.
16962 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16963 of complex expression. Use new argument to display correct location
16964 for values coming from phi statement.
16965 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16966 (warn_uninitialized_phi): Pass location of phi argument to
16967 warn_uninit.
16968 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16969 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16970
16971 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16972
16973 * config/rs6000/predicates.md (indexed_address_mem): New.
16974 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16975 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16976 fpstore_ux, fpstore_u.
16977 (sign_extend, indexed, update): New.
16978 (cell_micro): Adjust.
16979 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16980 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16981 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16982 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16983 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16984 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16985 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16986 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16987 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16988 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16989 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16990 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16991 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16992 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16993 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16994
16995 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16996 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16997 *vsx_extract_<mode>_store): Adjust.
16998 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16999 is_cracked_insn, insn_must_be_first_in_group,
17000 insn_must_be_last_in_group): Adjust.
17001
17002 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17003 Adjust.
17004 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17005 ppc440-fpstore): Adjust.
17006 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17007 ppc476-fpstore): Adjust.
17008 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17009 ppc601-fpstore): Adjust.
17010 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17011 Adjust.
17012 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17013 Adjust.
17014 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17015 ppc7450-fpstore): Adjust.
17016 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17017 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17018 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17019 Adjust.
17020 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17021 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17022 cell-fpstore, cell-fpstore-update): Adjust.
17023 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17024 ppce300c3_store, ppce300c3_fpstore): Adjust.
17025 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17026 e500mc_fpstore): Adjust.
17027 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17028 e500mc64_store, e500mc64_fpstore): Adjust.
17029 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17030 e5500_fpstore): Adjust.
17031 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17032 e6500_fpstore): Adjust.
17033 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17034 Adjust.
17035 * config/rs6000/power4.md (power4-load, power4-load-ext,
17036 power4-load-ext-update, power4-load-ext-update-indexed,
17037 power4-load-update-indexed, power4-load-update, power4-fpload,
17038 power4-fpload-update, power4-store, power4-store-update,
17039 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17040 Adjust.
17041 * config/rs6000/power5.md (power5-load, power5-load-ext,
17042 power5-load-ext-update, power5-load-ext-update-indexed,
17043 power5-load-update-indexed, power5-load-update, power5-fpload,
17044 power5-fpload-update, power5-store, power5-store-update,
17045 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17046 Adjust.
17047 * config/rs6000/power6.md (power6-load, power6-load-ext,
17048 power6-load-update, power6-load-update-indexed,
17049 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17050 power6-fpload-update, power6-store, power6-store-update,
17051 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17052 Adjust.
17053 * config/rs6000/power7.md (power7-load, power7-load-ext,
17054 power7-load-update, power7-load-update-indexed,
17055 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17056 power7-fpload-update, power7-store, power7-store-update,
17057 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17058 Adjust.
17059 * config/rs6000/power8.md (power8-load, power8-load-update,
17060 power8-load-ext, power8-load-ext-update, power8-fpload,
17061 power8-fpload-update, power8-store, power8-store-update-indexed,
17062 power8-fpstore, power8-fpstore-update): Adjust.
17063 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17064 Adjust.
17065 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17066 titan_lsu_store, titan_lsu_fpstore): Adjust.
17067 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17068
17069 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17070
17071 PR target/60884
17072 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17073 unrolled byte insns. Emit address increments after move insns.
17074
17075 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17076
17077 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17078 const_gimple, rather than a gimple.
17079 (gimple_call_builtin_p): Likewise, for the three variants.
17080
17081 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17082 (gimple_call_builtin_p): Likewise, for the three variants.
17083
17084 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17085
17086 PR tree-optimization/61095
17087 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17088
17089 2014-05-07 Richard Biener <rguenther@suse.de>
17090
17091 PR tree-optimization/61034
17092 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17093 (maybe_skip_until): Use translate to take into account
17094 lattices when trying to do disambiguations.
17095 (get_continuation_for_phi_1): Likewise.
17096 (get_continuation_for_phi): Adjust for added translate arguments.
17097 (walk_non_aliased_vuses): Likewise.
17098 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17099 (walk_non_aliased_vuses): Likewise.
17100 (call_may_clobber_ref_p_1): Declare.
17101 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17102 calls. Stop early if we are only supposed to disambiguate.
17103 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17104
17105 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17106
17107 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17108 Emit an error when the function has arguments.
17109
17110 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17111
17112 * cfgloop.h (unswitch_loops): Remove.
17113 * doc/passes.texi: Remove references to loop-unswitch.c
17114 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17115
17116 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17117
17118 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17119 check for loads group of length 3.
17120 (vect_permute_load_chain): New permutations for loads group of
17121 length 3.
17122 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17123 of vec_perm_shuffle for the new permutations.
17124
17125 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17126
17127 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17128 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17129 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17130 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17131 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17132 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17133 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17134 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17135
17136 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17137
17138 * loop-unswitch.c: Delete.
17139
17140 2014-05-07 Richard Biener <rguenther@suse.de>
17141
17142 * config.gcc: Always set need_64bit_hwint to yes.
17143
17144 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17145
17146 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17147 of using optimize_size.
17148
17149 2014-05-06 Mike Stump <mikestump@comcast.net>
17150
17151 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17152
17153 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17154
17155 * config/i386/sse.md (*mov<mode>_internal)
17156 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17157 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17158 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17159 (*<code><mode>3, *andnot<mode>3<mask_name>)
17160 (<mask_codefor><code><mode>3<mask_name>): Only consider
17161 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17162
17163 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17164
17165 Revert:
17166 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17167
17168 * lra-constraints.c (valid_address_p): Move earlier in file.
17169 Add a constraint argument to the address_info version.
17170 (satisfies_memory_constraint_p): New function.
17171 (satisfies_address_constraint_p): Likewise.
17172 (process_alt_operands, curr_insn_transform): Use them.
17173 (process_address): Pass the constraint to valid_address_p when
17174 checking address operands.
17175
17176 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17177
17178 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17179 to their respective blocks. Fix inadvertent use of "node".
17180
17181 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17182
17183 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17184 out from...
17185 (init_emit_once): ...here.
17186 * rtl.h (init_derived_machine_modes): Declare.
17187 * toplev.c (do_compile): Call it even if no_backend.
17188
17189 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17190 Mike Stump <mikestump@comcast.net>
17191 Richard Sandiford <rdsandiford@googlemail.com>
17192 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17193
17194 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17195 (rtx_equal_for_memref_p): Update comment.
17196 (adjust_offset_for_component_ref): Use wide-int interfaces.
17197 * builtins.c (get_object_alignment_2): Likewise.
17198 (c_readstr): Likewise.
17199 (target_char_cast): Add comment.
17200 (determine_block_size): Use wide-int interfaces.
17201 (expand_builtin_signbit): Likewise.
17202 (fold_builtin_int_roundingfn): Likewise.
17203 (fold_builtin_bitop): Likewise.
17204 (fold_builtin_bswap): Likewise.
17205 (fold_builtin_logarithm): Use signop.
17206 (fold_builtin_pow): Likewise.
17207 (fold_builtin_memory_op): Use wide-int interfaces.
17208 (fold_builtin_object_size): Likewise.
17209 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17210 nb_iterations_estimate.
17211 (record_niter_bound): Use wide-int interfaces.
17212 (get_estimated_loop_iterations_int): Likewise.
17213 (get_estimated_loop_iterations): Likewise.
17214 (get_max_loop_iterations): Likewise.
17215 * cfgloop.h: Include wide-int.h.
17216 (struct nb_iter_bound): Change bound to widest_int.
17217 (struct loop): Change nb_iterations_upper_bound and
17218 nb_iterations_estimate to widest_int.
17219 (record_niter_bound): Switch to use widest_int.
17220 (get_estimated_loop_iterations): Likewise.
17221 (get_max_loop_iterations): Likewise.
17222 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17223 update for wide-int.
17224 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17225 * combine.c (try_combine): Likewise.
17226 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17227 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17228 interfaces.
17229 (aarch64_float_const_representable_p): Likewise.
17230 * config/arc/arc.c: Include wide-int.h.
17231 (arc_can_use_doloop_p): Use wide-int interfaces.
17232 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17233 (vfp3_const_double_index): Likewise.
17234 * config/avr/avr.c (avr_out_round): Likewise.
17235 (avr_fold_builtin): Likewise.
17236 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17237 (bfin_can_use_doloop_p): Likewise.
17238 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17239 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17240 * config/i386/i386.c: Include wide-int.h.
17241 (ix86_data_alignment): Use wide-int interfaces.
17242 (ix86_local_alignment): Likewise.
17243 (ix86_emit_swsqrtsf): Update real_from_integer.
17244 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17245 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17246 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17247 (zero_constant): Likewise.
17248 (input_operand): Likewise.
17249 (splat_input_operand): Likewise.
17250 (non_logical_cint_operand): Change const_double to const_wide_int.
17251 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17252 (easy_altivec_constant): Remove comment.
17253 (paired_expand_vector_init): Use CONSTANT_P.
17254 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17255 (rs6000_emit_move): Update checks.
17256 (rs6000_aggregate_candidate): Use wide-int interfaces.
17257 (rs6000_expand_ternop_builtin): Likewise.
17258 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17259 (rs6000_assemble_integer): Likewise.
17260 (rs6000_hash_constant): Likewise.
17261 (output_toc): Likewise.
17262 (rs6000_rtx_costs): Likewise.
17263 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17264 * config/rs6000/rs6000-c.c: Include wide-int.h.
17265 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17266 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17267 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17268 Handle CONST_WIDE_INT.
17269 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17270 Use tree_fits_uhwi_p.
17271 * config/sparc/sparc.c: Include wide-int.h.
17272 (sparc_fold_builtin): Use wide-int interfaces.
17273 * config/vax/vax.c: Include wide-int.h.
17274 (vax_float_literal): Use real_from_integer.
17275 * coretypes.h (struct hwivec_def): New.
17276 (hwivec): New.
17277 (const_hwivec): New.
17278 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17279 (equiv_constant): Handle CONST_WIDE_INT.
17280 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17281 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17282 * dbxout.c (stabstr_U): Use wide-int interfaces.
17283 (dbxout_type): Update to use cst_fits_shwi_p.
17284 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17285 (TARGET_SUPPORTS_WIDE_INT): Add default.
17286 * dfp.c: Include wide-int.h.
17287 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17288 decimal_real_to_integer.
17289 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17290 decimal_real_to_integer.
17291 * doc/generic.texi (Constant expressions): Update for wide_int.
17292 * doc/rtl.texi (const_double): Likewise.
17293 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17294 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17295 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17296 (REAL_VALUE_FROM_INT): Remove.
17297 (TARGET_SUPPORTS_WIDE_INT): New.
17298 * doc/tm.texi: Regenerate.
17299 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17300 * double-int.h: Include wide-int.h.
17301 (struct wi::int_traits): New.
17302 * dwarf2out.c (get_full_len): New.
17303 (dw_val_equal_p): Add case dw_val_class_wide_int.
17304 (size_of_loc_descr): Likewise.
17305 (output_loc_operands): Likewise.
17306 (insert_double): Remove.
17307 (insert_wide_int): New.
17308 (add_AT_wide): New.
17309 (print_die): Add case dw_val_class_wide_int.
17310 (attr_checksum): Likewise.
17311 (attr_checksum_ordered): Likewise.
17312 (same_dw_val_p): Likewise.
17313 (size_of_die): Likewise.
17314 (value_format): Likewise.
17315 (output_die): Likewise.
17316 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17317 Use wide-int.
17318 (clz_loc_descriptor): Use wide-int interfaces.
17319 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17320 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17321 (round_up_to_align): Use wide-int interfaces.
17322 (field_byte_offset): Likewise.
17323 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17324 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17325 CONST_DOUBLE handling. Use wide-int interfaces.
17326 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17327 (gen_enumeration_type_die): Use add_AT_wide.
17328 (hash_loc_operands): Add case dw_val_class_wide_int.
17329 (compare_loc_operands): Likewise.
17330 * dwarf2out.h: Include wide-int.h.
17331 (wide_int_ptr): New.
17332 (enum dw_val_class): Add dw_val_class_wide_int.
17333 (struct dw_val_struct): Add val_wide.
17334 * emit-rtl.c (const_wide_int_htab): New.
17335 (const_wide_int_htab_hash): New.
17336 (const_wide_int_htab_eq): New.
17337 (lookup_const_wide_int): New.
17338 (const_double_htab_hash): Use wide-int interfaces.
17339 (const_double_htab_eq): Likewise.
17340 (rtx_to_double_int): Conditionally compile for wide-int.
17341 (immed_double_int_const): Rename to immed_wide_int_const and
17342 update for wide-int.
17343 (immed_double_const): Conditionally compile for wide-int.
17344 (init_emit_once): Use wide-int interfaces.
17345 * explow.c (plus_constant): Likewise.
17346 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17347 (lshift_value): Use wide-int interfaces.
17348 (expand_mult): Likewise.
17349 (choose_multiplier): Likewise.
17350 (expand_smod_pow2): Likewise.
17351 (make_tree): Likewise.
17352 * expr.c (convert_modes): Consolidate handling of constants.
17353 Use wide-int interfaces.
17354 (emit_group_load_1): Add note.
17355 (store_expr): Update comment.
17356 (get_inner_reference): Use wide-int interfaces.
17357 (expand_constructor): Update comment.
17358 (expand_expr_real_2): Use wide-int interfaces.
17359 (expand_expr_real_1): Likewise.
17360 (reduce_to_bit_field_precision): Likewise.
17361 (const_vector_from_tree): Likewise.
17362 * final.c: Include wide-int-print.h.
17363 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17364 * fixed-value.c: Include wide-int.h.
17365 (fixed_from_string): Use wide-int interfaces.
17366 (fixed_to_decimal): Likewise.
17367 (fixed_convert_from_real): Likewise.
17368 (real_convert_from_fixed): Likewise.
17369 * fold-const.h (mem_ref_offset): Return an offset_int.
17370 (div_if_zero_remainder): Remove code parameter.
17371 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17372 Use wide-int interfaces.
17373 (may_negate_without_overflow_p): Use wide-int interfaces.
17374 (negate_expr_p): Likewise.
17375 (fold_negate_expr): Likewise.
17376 (int_const_binop_1): Likewise.
17377 (const_binop): Likewise.
17378 (fold_convert_const_int_from_int): Likewise.
17379 (fold_convert_const_int_from_real): Likewise.
17380 (fold_convert_const_int_from_fixed): Likewise.
17381 (fold_convert_const_fixed_from_int): Likewise.
17382 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17383 (sign_bit_p): Use wide-int interfaces.
17384 (make_range_step): Likewise.
17385 (build_range_check): Likewise. Pass an integer of the correct type
17386 instead of using integer_one_node.
17387 (range_predecessor): Pass an integer of the correct type instead
17388 of using integer_one_node.
17389 (range_successor): Likewise.
17390 (merge_ranges): Likewise.
17391 (unextend): Use wide-int interfaces.
17392 (extract_muldiv_1): Likewise.
17393 (fold_div_compare): Likewise.
17394 (fold_single_bit_test): Likewise.
17395 (fold_sign_changed_comparison): Likewise.
17396 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17397 (fold_plusminus_mult_expr): Use wide-int interfaces.
17398 (native_encode_int): Likewise.
17399 (native_interpret_int): Likewise.
17400 (fold_unary_loc): Likewise.
17401 (pointer_may_wrap_p): Likewise.
17402 (size_low_cst): Likewise.
17403 (mask_with_tz): Likewise.
17404 (fold_binary_loc): Likewise.
17405 (fold_ternary_loc): Likewise.
17406 (multiple_of_p): Likewise.
17407 (tree_call_nonnegative_warnv_p): Update calls to
17408 tree_int_cst_min_precision and real_from_integer.
17409 (fold_negate_const): Use wide-int interfaces.
17410 (fold_abs_const): Likewise.
17411 (fold_relational_const): Use tree_int_cst_lt.
17412 (round_up_loc): Use wide-int interfaces.
17413 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17414 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17415 * gengtype.c: Remove include of double-int.h.
17416 (do_typedef): Use wide-int interfaces.
17417 (open_base_files): Add wide-int.h.
17418 (main): Add offset_int and widest_int typedefs.
17419 * gengtype-lex.l: Handle "^".
17420 (CXX_KEYWORD): Add "static".
17421 * gengtype-parse.c (require3): New.
17422 (require_template_declaration): Handle constant template arguments
17423 and nested templates.
17424 * gengtype-state.c: Don't include "double-int.h".
17425 * genpreds.c (write_one_predicate_function): Update comment.
17426 (write_tm_constrs_h): Add check for hval and lval use in
17427 CONST_WIDE_INT.
17428 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17429 (add_to_sequence): Likewise.
17430 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17431 and const_double_operand.
17432 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17433 interfaces.
17434 * gimple-fold.c (get_base_constructor): Likewise.
17435 (fold_array_ctor_reference): Likewise.
17436 (fold_nonarray_ctor_reference): Likewise.
17437 (fold_const_aggregate_ref_1): Likewise.
17438 (gimple_val_nonnegative_real_p): Likewise.
17439 (gimple_fold_indirect_ref): Likewise.
17440 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17441 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17442 (struct slsr_cand_d): Change index to be widest_int.
17443 (struct incr_info_d): Change incr to be widest_int.
17444 (alloc_cand_and_find_basis): Use wide-int interfaces.
17445 (slsr_process_phi): Likewise.
17446 (backtrace_base_for_ref): Likewise. Return a widest_int.
17447 (restructure_reference): Take a widest_int instead of a double_int.
17448 (slsr_process_ref): Use wide-int interfaces.
17449 (create_mul_ssa_cand): Likewise.
17450 (create_mul_imm_cand): Likewise.
17451 (create_add_ssa_cand): Likewise.
17452 (create_add_imm_cand): Take a widest_int instead of a double_int.
17453 (slsr_process_add): Use wide-int interfaces.
17454 (slsr_process_cast): Likewise.
17455 (slsr_process_copy): Likewise.
17456 (dump_candidate): Likewise.
17457 (dump_incr_vec): Likewise.
17458 (replace_ref): Likewise.
17459 (cand_increment): Likewise. Return a widest_int.
17460 (cand_abs_increment): Likewise.
17461 (replace_mult_candidate): Take a widest_int instead of a double_int.
17462 (replace_unconditional_candidate): Use wide-int interfaces.
17463 (incr_vec_index): Take a widest_int instead of a double_int.
17464 (create_add_on_incoming_edge): Likewise.
17465 (create_phi_basis): Use wide-int interfaces.
17466 (replace_conditional_candidate): Likewise.
17467 (record_increment): Take a widest_int instead of a double_int.
17468 (record_phi_increments): Use wide-int interfaces.
17469 (phi_incr_cost): Take a widest_int instead of a double_int.
17470 (lowest_cost_path): Likewise.
17471 (total_savings): Likewise.
17472 (analyze_increments): Use wide-int interfaces.
17473 (ncd_with_phi): Take a widest_int instead of a double_int.
17474 (ncd_of_cand_and_phis): Likewise.
17475 (nearest_common_dominator_for_cands): Likewise.
17476 (insert_initializers): Use wide-int interfaces.
17477 (all_phi_incrs_profitable): Likewise.
17478 (replace_one_candidate): Likewise.
17479 (replace_profitable_candidates): Likewise.
17480 * godump.c: Include wide-int-print.h.
17481 (go_output_typedef): Use wide-int interfaces.
17482 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17483 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17484 (build_loop_iteration_domains): Likewise.
17485 * hooks.h: Include wide-int.h rather than double-int.h.
17486 (hook_bool_dint_dint_uint_bool_true): Delete.
17487 (hook_bool_wint_wint_uint_bool_true): Declare.
17488 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17489 (hook_bool_wint_wint_uint_bool_true): New.
17490 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17491 interfaces.
17492 (ubsan_expand_si_overflow_mul_check): Likewise.
17493 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17494 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17495 (get_ancestor_addr_info): Likewise.
17496 (ipa_modify_call_arguments): Likewise.
17497 * loop-doloop.c (doloop_modify): Likewise.
17498 (doloop_optimize): Likewise.
17499 * loop-iv.c (iv_number_of_iterations): Likewise.
17500 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17501 (unroll_loop_constant_iterations): Likewise.
17502 (decide_unroll_runtime_iterations): Likewise.
17503 (unroll_loop_runtime_iterations): Likewise.
17504 (decide_peel_simple): Likewise.
17505 (decide_unroll_stupid): Likewise.
17506 * lto-streamer-in.c (streamer_read_wi): Add.
17507 (input_cfg): Use wide-int interfaces.
17508 (lto_input_tree_1): Likewise.
17509 * lto-streamer-out.c (streamer_write_wi): Add.
17510 (hash_tree): Use wide-int interfaces.
17511 (output_cfg): Likewise.
17512 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17513 (GTFILES): Add wide-int.h and signop.h.
17514 (TAGS): Look for .cc files too.
17515 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17516 * optabs.c (expand_subword_shift): Likewise.
17517 (expand_doubleword_shift): Likewise.
17518 (expand_absneg_bit): Likewise.
17519 (expand_copysign_absneg): Likewise.
17520 (expand_copysign_bit): Likewise.
17521 * postreload.c (reload_cse_simplify_set): Likewise.
17522 * predict.c (predict_iv_comparison): Likewise.
17523 * pretty-print.h: Include wide-int-print.h.
17524 (pp_wide_int) New.
17525 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17526 * print-tree.c: Include wide-int-print.h.
17527 (print_node_brief): Use wide-int interfaces.
17528 (print_node): Likewise.
17529 * read-rtl.c (validate_const_wide_int): New.
17530 (read_rtx_code): Add CONST_WIDE_INT case.
17531 * real.c: Include wide-int.h.
17532 (real_to_integer2): Delete.
17533 (real_to_integer): New function, returning a wide_int.
17534 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17535 (ten_to_ptwo): Update call to real_from_integer.
17536 (real_digit): Likewise.
17537 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17538 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17539 (REAL_VALUE_TO_INT): Delete.
17540 (real_to_integer): Declare a wide-int form.
17541 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17542 * recog.c (const_int_operand): Improve comment.
17543 (const_scalar_int_operand): New.
17544 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17545 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17546 (split_double): Likewise.
17547 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17548 (rtx_size): Likewise.
17549 (rtx_alloc_stat_v): New.
17550 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17551 (cwi_output_hex): New.
17552 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17553 (cwi_check_failed_bounds): New.
17554 * rtl.def (CONST_WIDE_INT): New.
17555 * rtl.h: Include <utility> and wide-int.h.
17556 (struct hwivec_def): New.
17557 (CWI_GET_NUM_ELEM): New.
17558 (CWI_PUT_NUM_ELEM): New.
17559 (struct rtx_def): Add num_elem and hwiv.
17560 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17561 (CASE_CONST_UNIQUE): Likewise.
17562 (CASE_CONST_ANY): Likewise.
17563 (CONST_SCALAR_INT_P): Likewise.
17564 (CONST_WIDE_INT_P): New.
17565 (CWI_ELT): New.
17566 (HWIVEC_CHECK): New.
17567 (cwi_check_failed_bounds): New.
17568 (CWI_ELT): New.
17569 (HWIVEC_CHECK): New.
17570 (CONST_WIDE_INT_VEC) New.
17571 (CONST_WIDE_INT_NUNITS) New.
17572 (CONST_WIDE_INT_ELT) New.
17573 (rtx_mode_t): New type.
17574 (wi::int_traits <rtx_mode_t>): New.
17575 (wi::shwi): New.
17576 (wi::min_value): New.
17577 (wi::max_value): New.
17578 (rtx_alloc_v) New.
17579 (const_wide_int_alloc): New.
17580 (immed_wide_int_const): New.
17581 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17582 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17583 * signop.h: New file.
17584 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17585 (simplify_const_unary_operation): Use wide-int interfaces.
17586 (simplify_binary_operation_1): Likewise.
17587 (simplify_const_binary_operation): Likewise.
17588 (simplify_const_relational_operation): Likewise.
17589 (simplify_immed_subreg): Likewise.
17590 * stmt.c (expand_case): Likewise.
17591 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17592 signop rather than a bool.
17593 * stor-layout.c (layout_type): Use wide-int interfaces.
17594 (initialize_sizetypes): Update calls to
17595 set_min_and_max_values_for_integral_type.
17596 (set_min_and_max_values_for_integral_type): Take a signop rather
17597 than a bool. Use wide-int interfaces.
17598 (fixup_signed_type): Update accordingly. Remove
17599 HOST_BITS_PER_DOUBLE_INT limit.
17600 (fixup_unsigned_type): Likewise.
17601 * system.h (STATIC_CONSTANT_P): New.
17602 (STATIC_ASSERT): New.
17603 * target.def (can_use_doloop_p): Take widest_ints rather than
17604 double_ints.
17605 * target.h: Include wide-int.h rather than double-int.h.
17606 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17607 than double_ints.
17608 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17609 rather than INT_CST_LT_UNSIGNED.
17610 (can_use_doloop_if_innermost): Take widest_ints rather than
17611 double_ints.
17612 * tree-affine.c: Include wide-int-print.h.
17613 (double_int_ext_for_comb): Delete.
17614 (wide_int_ext_for_comb): New.
17615 (aff_combination_zero): Use wide-int interfaces.
17616 (aff_combination_const): Take a widest_int instead of a double_int.
17617 (aff_combination_elt): Use wide-int interfaces.
17618 (aff_combination_scale): Take a widest_int instead of a double_int.
17619 (aff_combination_add_elt): Likewise.
17620 (aff_combination_add_cst): Likewise.
17621 (aff_combination_add): Use wide-int interfaces.
17622 (aff_combination_convert): Likewise.
17623 (tree_to_aff_combination): Likewise.
17624 (add_elt_to_tree): Take a widest_int instead of a double_int.
17625 (aff_combination_to_tree): Use wide-int interfaces.
17626 (aff_combination_remove_elt): Likewise.
17627 (aff_combination_add_product): Take a widest_int instead of
17628 a double_int.
17629 (aff_combination_mult): Use wide-int interfaces.
17630 (aff_combination_expand): Likewise.
17631 (double_int_constant_multiple_p): Delete.
17632 (wide_int_constant_multiple_p): New.
17633 (aff_combination_constant_multiple_p): Take a widest_int pointer
17634 instead of a double_int pointer.
17635 (print_aff): Use wide-int interfaces.
17636 (get_inner_reference_aff): Take a widest_int pointer
17637 instead of a double_int pointer.
17638 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17639 * tree-affine.h: Include wide-int.h.
17640 (struct aff_comb_elt): Change type of coef to widest_int.
17641 (struct affine_tree_combination): Change type of offset to widest_int.
17642 (double_int_ext_for_comb): Delete.
17643 (wide_int_ext_for_comb): New.
17644 (aff_combination_const): Use widest_int instead of double_int.
17645 (aff_combination_scale): Likewise.
17646 (aff_combination_add_elt): Likewise.
17647 (aff_combination_constant_multiple_p): Likewise.
17648 (get_inner_reference_aff): Likewise.
17649 (aff_comb_cannot_overlap_p): Likewise.
17650 (aff_combination_zero_p): Use wide-int interfaces.
17651 * tree.c: Include tree.h.
17652 (init_ttree): Use make_int_cst.
17653 (tree_code_size): Removed code for INTEGER_CST case.
17654 (tree_size): Add INTEGER_CST case.
17655 (make_node_stat): Update comment.
17656 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17657 (build_int_cst_type): Use wide-int interfaces.
17658 (double_int_to_tree): Likewise.
17659 (double_int_fits_to_tree_p): Delete.
17660 (force_fit_type_double): Delete.
17661 (force_fit_type): New.
17662 (int_cst_hash_hash): Use wide-int interfaces.
17663 (int_cst_hash_eq): Likewise.
17664 (build_int_cst_wide): Delete.
17665 (wide_int_to_tree): New.
17666 (cache_integer_cst): Use wide-int interfaces.
17667 (build_low_bits_mask): Likewise.
17668 (cst_and_fits_in_hwi): Likewise.
17669 (real_value_from_int_cst): Likewise.
17670 (make_int_cst_stat): New.
17671 (integer_zerop): Use wide_int interfaces.
17672 (integer_onep): Likewise.
17673 (integer_all_onesp): Likewise.
17674 (integer_pow2p): Likewise.
17675 (integer_nonzerop): Likewise.
17676 (tree_log2): Likewise.
17677 (tree_floor_log2): Likewise.
17678 (tree_ctz): Likewise.
17679 (int_size_in_bytes): Likewise.
17680 (mem_ref_offset): Return an offset_int rather than a double_int.
17681 (build_type_attribute_qual_variant): Use wide_int interfaces.
17682 (type_hash_eq): Likewise
17683 (tree_int_cst_equal): Likewise.
17684 (tree_int_cst_lt): Delete.
17685 (tree_int_cst_compare): Likewise.
17686 (tree_fits_shwi_p): Use wide_int interfaces.
17687 (tree_fits_uhwi_p): Likewise.
17688 (tree_int_cst_sign_bit): Likewise.
17689 (tree_int_cst_sgn): Likewise.
17690 (tree_int_cst_min_precision): Take a signop rather than a bool.
17691 (simple_cst_equal): Use wide_int interfaces.
17692 (compare_tree_int): Likewise.
17693 (iterative_hash_expr): Likewise.
17694 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17695 INT_CST_LT.
17696 (get_type_static_bounds): Use wide_int interfaces.
17697 (tree_int_cst_elt_check_failed): New.
17698 (build_common_tree_nodes): Reordered to set prec before filling in
17699 value.
17700 (int_cst_value): Check cst_and_fits_in_hwi.
17701 (widest_int_cst_value): Use wide_int interfaces.
17702 (upper_bound_in_type): Likewise.
17703 (lower_bound_in_type): Likewise.
17704 (num_ending_zeros): Likewise.
17705 (drop_tree_overflow): Likewise.
17706 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17707 (gen_conditions_for_pow_cst_base): Likewise.
17708 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17709 (group_case_labels_stmt): Use wide-int interfaces.
17710 (verify_gimple_assign_binary): Likewise.
17711 (print_loop): Likewise.
17712 * tree-chrec.c (tree_fold_binomial): Likewise.
17713 * tree-core.h (struct tree_base): Add int_length.
17714 (struct tree_int_cst): Change rep of value.
17715 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17716 (dr_may_alias_p): Likewise.
17717 (max_stmt_executions_tree): Likewise.
17718 * tree.def (INTEGER_CST): Update comment.
17719 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17720 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17721 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17722 (dequeue_and_dump): Use wide-int interfaces.
17723 * tree.h: Include wide-int.h.
17724 (NULL_TREE): Moved to earlier loc in file.
17725 (TREE_INT_CST_ELT_CHECK): New.
17726 (tree_int_cst_elt_check_failed): New.
17727 (TYPE_SIGN): New.
17728 (TREE_INT_CST): Delete.
17729 (TREE_INT_CST_LOW): Use wide-int interfaces.
17730 (TREE_INT_CST_HIGH): Delete.
17731 (TREE_INT_CST_NUNITS): New.
17732 (TREE_INT_CST_EXT_NUNITS): Likewise.
17733 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17734 (TREE_INT_CST_ELT): Likewise.
17735 (INT_CST_LT): Delete.
17736 (tree_int_cst_elt_check): New (two forms).
17737 (type_code_size): Update comment.
17738 (make_int_cst_stat, make_int_cst): New.
17739 (tree_to_double_int): Delete.
17740 (double_int_fits_to_tree_p): Delete.
17741 (force_fit_type_double): Delete.
17742 (build_int_cstu): Replace with out-of-line function.
17743 (build_int_cst_wide): Delete.
17744 (tree_int_cst_lt): Define inline.
17745 (tree_int_cst_le): New.
17746 (tree_int_cst_compare): Define inline.
17747 (tree_int_cst_min_precision): Take a signop rather than a bool.
17748 (wi::int_traits <const_tree>): New.
17749 (wi::int_traits <tree>): New.
17750 (wi::extended_tree): New.
17751 (wi::int_traits <wi::extended_tree>): New.
17752 (wi::to_widest): New.
17753 (wi::to_offset): New.
17754 (wi::fits_to_tree_p): New.
17755 (wi::min_value): New.
17756 (wi::max_value): New.
17757 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17758 (copy_tree_body_r): Likewise.
17759 * tree-object-size.c (compute_object_offset): Likewise.
17760 (addr_object_size): Likewise.
17761 * tree-predcom.c: Include wide-int-print.h.
17762 (struct dref_d): Change type of offset to widest_int.
17763 (dump_dref): Call wide-int printer.
17764 (aff_combination_dr_offset): Use wide-int interfaces.
17765 (determine_offset): Take a widest_int pointer rather than a
17766 double_int pointer.
17767 (split_data_refs_to_components): Use wide-int interfaces.
17768 (suitable_component_p): Likewise.
17769 (order_drefs): Likewise.
17770 (add_ref_to_chain): Likewise.
17771 (valid_initializer_p): Likewise.
17772 (determine_roots_comp): Likewise.
17773 * tree-pretty-print.c: Include wide-int-print.h.
17774 (dump_generic_node): Use wide-int interfaces.
17775 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17776 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17777 (move_fixed_address_to_symbol): Likewise.
17778 (move_hint_to_base): Likewise.
17779 (move_pointer_to_base): Likewise.
17780 (move_variant_to_index): Likewise.
17781 (most_expensive_mult_to_index): Likewise.
17782 (addr_to_parts): Likewise.
17783 (copy_ref_info): Likewise.
17784 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17785 (indirect_refs_may_alias_p): Likewise.
17786 (stmt_kills_ref_p_1): Likewise.
17787 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17788 * tree-ssa-ccp.c: Update comment at top of file. Include
17789 wide-int-print.h.
17790 (struct prop_value_d): Change type of mask to widest_int.
17791 (extend_mask): New function.
17792 (dump_lattice_value): Use wide-int interfaces.
17793 (get_default_value): Likewise.
17794 (set_constant_value): Likewise.
17795 (set_value_varying): Likewise.
17796 (valid_lattice_transition): Likewise.
17797 (set_lattice_value): Likewise.
17798 (value_to_double_int): Delete.
17799 (value_to_wide_int): New.
17800 (get_value_from_alignment): Use wide-int interfaces.
17801 (get_value_for_expr): Likewise.
17802 (do_dbg_cnt): Likewise.
17803 (ccp_finalize): Likewise.
17804 (ccp_lattice_meet): Likewise.
17805 (bit_value_unop_1): Use widest_ints rather than double_ints.
17806 (bit_value_binop_1): Likewise.
17807 (bit_value_unop): Use wide-int interfaces.
17808 (bit_value_binop): Likewise.
17809 (bit_value_assume_aligned): Likewise.
17810 (evaluate_stmt): Likewise.
17811 (ccp_fold_stmt): Likewise.
17812 (visit_cond_stmt): Likewise.
17813 (ccp_visit_stmt): Likewise.
17814 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17815 (constant_pointer_difference): Likewise.
17816 (associate_pointerplus): Likewise.
17817 (combine_conversions): Likewise.
17818 * tree-ssa-loop.h: Include wide-int.h.
17819 (struct tree_niter_desc): Change type of max to widest_int.
17820 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17821 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17822 (remove_redundant_iv_tests): Likewise.
17823 (canonicalize_loop_induction_variables): Likewise.
17824 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17825 (constant_multiple_of): Take a widest_int pointer instead of
17826 a double_int pointer.
17827 (get_computation_aff): Use wide-int interfaces.
17828 (ptr_difference_cost): Likewise.
17829 (difference_cost): Likewise.
17830 (get_loop_invariant_expr_id): Likewise.
17831 (get_computation_cost_at): Likewise.
17832 (iv_elimination_compare_lt): Likewise.
17833 (may_eliminate_iv): Likewise.
17834 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17835 instead of double_int.
17836 (max_loop_iterations): Likewise.
17837 (max_stmt_executions): Likewise.
17838 (estimated_stmt_executions): Likewise.
17839 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17840 (split_to_var_and_offset): Use wide-int interfaces.
17841 (determine_value_range): Likewise.
17842 (bound_difference_of_offsetted_base): Likewise.
17843 (bounds_add): Take a widest_int instead of a double_int.
17844 (number_of_iterations_ne_max): Use wide-int interfaces.
17845 (number_of_iterations_ne): Likewise.
17846 (number_of_iterations_lt_to_ne): Likewise.
17847 (assert_loop_rolls_lt): Likewise.
17848 (number_of_iterations_lt): Likewise.
17849 (number_of_iterations_le): Likewise.
17850 (number_of_iterations_cond): Likewise.
17851 (number_of_iterations_exit): Likewise.
17852 (finite_loop_p): Likewise.
17853 (derive_constant_upper_bound_assign): Likewise.
17854 (derive_constant_upper_bound): Return a widest_int.
17855 (derive_constant_upper_bound_ops): Likewise.
17856 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17857 (record_estimate): Take a widest_int rather than a double_int.
17858 (record_nonwrapping_iv): Use wide-int interfaces.
17859 (double_int_cmp): Delete.
17860 (wide_int_cmp): New.
17861 (bound_index): Take a widest_int rather than a double_int.
17862 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17863 (maybe_lower_iteration_bound): Likewise.
17864 (estimate_numbers_of_iterations_loop): Likewise.
17865 (estimated_loop_iterations): Take a widest_int pointer than than
17866 a double_int pointer.
17867 (estimated_loop_iterations_int): Use wide-int interfaces.
17868 (max_loop_iterations): Take a widest_int pointer than than
17869 a double_int pointer.
17870 (max_loop_iterations_int): Use wide-int interfaces.
17871 (max_stmt_executions): Take a widest_int pointer than than
17872 a double_int pointer.
17873 (estimated_stmt_executions): Likewise.
17874 (n_of_executions_at_most): Use wide-int interfaces.
17875 (scev_probably_wraps_p): Likewise.
17876 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17877 to real_to_integer.
17878 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17879 interfaces.
17880 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17881 double_ints. Adjust for trailing_wide_ints <3> representation.
17882 (set_nonzero_bits): Likewise.
17883 (get_range_info): Return wide_ints rather than double_ints.
17884 Adjust for trailing_wide_ints <3> representation.
17885 (get_nonzero_bits): Likewise.
17886 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17887 representation.
17888 * tree-ssanames.h (struct range_info_def): Replace min, max and
17889 nonzero_bits with a trailing_wide_ints <3>.
17890 (set_range_info): Use wide_int_refs rather than double_ints.
17891 (set_nonzero_bits): Likewise.
17892 (get_range_info): Return wide_ints rather than double_ints.
17893 (get_nonzero_bits): Likewise.
17894 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17895 * tree-ssa-pre.c (phi_translate_1): Likewise.
17896 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17897 (acceptable_pow_call): Likewise.
17898 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17899 interfaces.
17900 (vn_reference_fold_indirect): Likewise.
17901 (vn_reference_maybe_forwprop_address): Likewise.
17902 (valueize_refs_1): Likewise.
17903 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17904 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17905 tree_int_cst_lt and tree_int_cst_le.
17906 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17907 interfaces.
17908 (streamer_alloc_tree): Likewise.
17909 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17910 (streamer_write_tree_header): Likewise.
17911 (streamer_write_integer_cst): Likewise.
17912 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17913 (build_constructors): Likewise.
17914 (array_value_type): Likewise.
17915 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17916 (vect_check_gather): Likewise.
17917 * tree-vect-generic.c (build_replicated_const): Likewise.
17918 (expand_vector_divmod): Likewise.
17919 * tree-vect-loop.c (vect_transform_loop): Likewise.
17920 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17921 (vect_do_peeling_for_alignment): Likewise.
17922 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17923 * tree-vrp.c: Include wide-int.h.
17924 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17925 (extract_range_from_assert): Use wide-int interfaces.
17926 (vrp_int_const_binop): Likewise.
17927 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17928 double_int pointers.
17929 (ranges_from_anti_range): Use wide-int interfaces.
17930 (quad_int_cmp): Delete.
17931 (quad_int_pair_sort): Likewise.
17932 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17933 (extract_range_from_unary_expr_1): Likewise.
17934 (adjust_range_with_scev): Likewise.
17935 (masked_increment): Take and return wide_ints rather than double_ints.
17936 (register_edge_assert_for_2): Use wide-int interfaces.
17937 (check_array_ref): Likewise.
17938 (search_for_addr_array): Likewise.
17939 (maybe_set_nonzero_bits): Likewise.
17940 (union_ranges): Pass an integer of the correct type instead of
17941 using integer_one_node.
17942 (intersect_ranges): Likewise.
17943 (simplify_truth_ops_using_ranges): Likewise.
17944 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17945 (range_fits_type_p): Likewise.
17946 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17947 a bool.
17948 (simplify_conversion_using_ranges): Use wide-int interfaces.
17949 (simplify_float_conversion_using_ranges): Likewise.
17950 (vrp_finalize): Likewise.
17951 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17952 (gimple_stringops_transform): Likewise.
17953 * varasm.c (decode_addr_const): Likewise.
17954 (const_hash_1): Likewise.
17955 (const_rtx_hash_1): Likewise
17956 (output_constant): Likewise.
17957 (array_size_for_constructor): Likewise.
17958 (output_constructor_regular_field): Likewise.
17959 (output_constructor_bitfield): Likewise.
17960 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17961 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17962 GENERATOR_FILEs.
17963 * gencheck.c: Define BITS_PER_UNIT.
17964 * wide-int.cc: New.
17965 * wide-int.h: New.
17966 * wide-int-print.cc: New.
17967 * wide-int-print.h: New.
17968
17969 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17970
17971 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17972
17973 2014-05-06 Richard Biener <rguenther@suse.de>
17974
17975 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17976 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17977 (TODO_verify_all): Adjust.
17978 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17979 TODO_verify_stmts and TODO_verify_rtl_sharing.
17980 * bb-reorder.c: Likewise.
17981 * cfgexpand.c: Likewise.
17982 * cprop.c: Likewise.
17983 * cse.c: Likewise.
17984 * function.c: Likewise.
17985 * fwprop.c: Likewise.
17986 * gcse.c: Likewise.
17987 * gimple-ssa-isolate-paths.c: Likewise.
17988 * gimple-ssa-strength-reduction.c: Likewise.
17989 * ipa-split.c: Likewise.
17990 * loop-init.c: Likewise.
17991 * loop-unroll.c: Likewise.
17992 * lower-subreg.c: Likewise.
17993 * modulo-sched.c: Likewise.
17994 * postreload-gcse.c: Likewise.
17995 * predict.c: Likewise.
17996 * recog.c: Likewise.
17997 * sched-rgn.c: Likewise.
17998 * store-motion.c: Likewise.
17999 * tracer.c: Likewise.
18000 * trans-mem.c: Likewise.
18001 * tree-call-cdce.c: Likewise.
18002 * tree-cfg.c: Likewise.
18003 * tree-cfgcleanup.c: Likewise.
18004 * tree-complex.c: Likewise.
18005 * tree-eh.c: Likewise.
18006 * tree-emutls.c: Likewise.
18007 * tree-if-conv.c: Likewise.
18008 * tree-into-ssa.c: Likewise.
18009 * tree-loop-distribution.c: Likewise.
18010 * tree-object-size.c: Likewise.
18011 * tree-parloops.c: Likewise.
18012 * tree-pass.h: Likewise.
18013 * tree-sra.c: Likewise.
18014 * tree-ssa-ccp.c: Likewise.
18015 * tree-ssa-copy.c: Likewise.
18016 * tree-ssa-copyrename.c: Likewise.
18017 * tree-ssa-dce.c: Likewise.
18018 * tree-ssa-dom.c: Likewise.
18019 * tree-ssa-dse.c: Likewise.
18020 * tree-ssa-forwprop.c: Likewise.
18021 * tree-ssa-ifcombine.c: Likewise.
18022 * tree-ssa-loop-ch.c: Likewise.
18023 * tree-ssa-loop-ivcanon.c: Likewise.
18024 * tree-ssa-loop.c: Likewise.
18025 * tree-ssa-math-opts.c: Likewise.
18026 * tree-ssa-phiopt.c: Likewise.
18027 * tree-ssa-phiprop.c: Likewise.
18028 * tree-ssa-pre.c: Likewise.
18029 * tree-ssa-reassoc.c: Likewise.
18030 * tree-ssa-sink.c: Likewise.
18031 * tree-ssa-strlen.c: Likewise.
18032 * tree-ssa-tail-merge.c: Likewise.
18033 * tree-ssa-uncprop.c: Likewise.
18034 * tree-switch-conversion.c: Likewise.
18035 * tree-tailcall.c: Likewise.
18036 * tree-vect-generic.c: Likewise.
18037 * tree-vectorizer.c: Likewise.
18038 * tree-vrp.c: Likewise.
18039 * tsan.c: Likewise.
18040 * var-tracking.c: Likewise.
18041 * bt-load.c: Likewise.
18042 * cfgcleanup.c: Likewise.
18043 * combine-stack-adj.c: Likewise.
18044 * combine.c: Likewise.
18045 * compare-elim.c: Likewise.
18046 * config/epiphany/resolve-sw-modes.c: Likewise.
18047 * config/i386/i386.c: Likewise.
18048 * config/mips/mips.c: Likewise.
18049 * config/s390/s390.c: Likewise.
18050 * config/sh/sh_treg_combine.cc: Likewise.
18051 * config/sparc/sparc.c: Likewise.
18052 * dce.c: Likewise.
18053 * dse.c: Likewise.
18054 * final.c: Likewise.
18055 * ifcvt.c: Likewise.
18056 * mode-switching.c: Likewise.
18057 * passes.c: Likewise.
18058 * postreload.c: Likewise.
18059 * ree.c: Likewise.
18060 * reg-stack.c: Likewise.
18061 * regcprop.c: Likewise.
18062 * regrename.c: Likewise.
18063 * web.c: Likewise.
18064
18065 2014-05-06 Richard Biener <rguenther@suse.de>
18066
18067 PR middle-end/61070
18068 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18069 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18070
18071 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18072
18073 PR ipa/60965
18074 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18075
18076 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18077 Tom de Vries <tom@codesourcery.com>
18078
18079 * target.def (call_fusage_contains_non_callee_clobbers): New
18080 DEFHOOKPOD.
18081 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18082 Hooks to @menu.
18083 (@node Miscellaneous Register Hooks): New node.
18084 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18085 * doc/tm.texi: Regenerate.
18086
18087 2014-05-05 Marek Polacek <polacek@redhat.com>
18088
18089 PR driver/61065
18090 * opts.c (common_handle_option): Call error_at instead of warning_at.
18091
18092 2014-05-05 Richard Biener <rguenther@suse.de>
18093
18094 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18095 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18096 under the TODO_verify_il umbrella.
18097
18098 2014-05-05 Richard Biener <rguenther@suse.de>
18099
18100 * passes.c (execute_function_todo): Move TODO_verify_flow under
18101 the TODO_verify_ul umbrella.
18102
18103 2014-05-05 Richard Biener <rguenther@suse.de>
18104
18105 PR middle-end/61010
18106 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18107 X & CST away from a CST that is the mask of a mode.
18108
18109 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18110
18111 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18112 int argument to enum machine_mode.
18113 (picochip_class_max_nregs): Ditto.
18114 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18115 (picochip_class_max_nregs): Ditto.
18116
18117 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18118
18119 * target.def: Add new target hook.
18120 * doc/tm.texi: Regenerate.
18121 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18122 * targhooks.c (default_keep_leaf_when_profiled): New function.
18123
18124 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18125 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18126
18127 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18128
18129 PR tree-optimization/60363
18130 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18131 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18132 (update_destination_phis): New parameter.
18133 (create_edge_and_update_destination_phis): Ditto.
18134 (ssa_fix_duplicate_block_edges): Pass new arguments.
18135 (thread_single_edge): Ditto.
18136
18137 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18138
18139 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18140 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18141 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18142 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18143 Use RS6000_BTM_HARD_FLOAT.
18144 (BU_MISC_2): Likewise.
18145 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18146 RS6000_BTM_HARD_FLOAT.
18147 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18148 is explicitly used.
18149 (rs6000_invalid_builtin): Add hard floating builtin support.
18150 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18151 hard float builtins.
18152 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18153
18154 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18155
18156 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18157 Add missing function* argument.
18158
18159 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18160
18161 * lra-constraints.c (valid_address_p): Move earlier in file.
18162 Add a constraint argument to the address_info version.
18163 (satisfies_memory_constraint_p): New function.
18164 (satisfies_address_constraint_p): Likewise.
18165 (process_alt_operands, curr_insn_transform): Use them.
18166 (process_address): Pass the constraint to valid_address_p when
18167 checking address operands.
18168
18169 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18170
18171 * config/mips/mips.c (mips_isa_rev): New variable.
18172 (mips_set_architecture): Set it.
18173 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18174 from mips_isa_rev.
18175 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18176 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18177 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18178 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18179 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18180 conditions in terms of mips_isa_rev.
18181 (mips_isa_rev): Declare.
18182
18183 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18184
18185 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18186 (prob_unlikely, prob_likely): Make variables const.
18187
18188 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18189
18190 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18191
18192 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18193
18194 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18195
18196 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18197
18198 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18199 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18200 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18201 functions.
18202 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18203 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18204 sh_pass_in_reg_p.
18205 Replace usage of ROUND_REG with sh_round_reg.
18206 Use CEIL instead of ROUND_ADVANCE.
18207
18208 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18209
18210 PR target/61026
18211 * config/sh/sh.c: Include stdlib headers before everything else.
18212
18213 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18214
18215 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18216 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18217 (gimplify_adjust_omp_clauses): Simd region is never
18218 directly nested in combined parallel. Instead, for linear
18219 with copyin/copyout, if in combined for simd loop, make decl
18220 firstprivate/lastprivate on OMP_FOR.
18221 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18222 expand_omp_for_static_chunk): When setting endvar, also set
18223 fd->loop.v to the same value.
18224
18225 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18226
18227 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18228
18229 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18230
18231 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18232 expression.
18233
18234 2014-05-02 Marek Polacek <polacek@redhat.com>
18235
18236 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18237
18238 2014-05-02 Kito Cheng <kito@0xlab.org>
18239
18240 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18241 to a C expression marco.
18242 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18243 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18244 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18245 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18246 HONOR_REG_ALLOC_ORDER.
18247 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18248
18249 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18250
18251 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18252
18253 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18254
18255 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18256
18257 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18258
18259 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18260 (convert_scalar_cond_reduction): Likewise.
18261 (predicate_scalar_phi): Add recognition and transformation
18262 of simple conditioanl reduction to be vectorizable.
18263
18264 2014-05-01 Marek Polacek <polacek@redhat.com>
18265
18266 PR c/43245
18267 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18268
18269 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18270
18271 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18272 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18273 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18274 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18275 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18276 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18277 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18278 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18279
18280 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18281
18282 * config/arc/arc.opt (mlra): Move comment above option name
18283 to avoid mis-parsing as language options.
18284
18285 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18286
18287 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18288 * config/sol2.h: ... here.
18289 * config/sol2-10.h: Remove.
18290
18291 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18292 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18293 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18294 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18295 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18296 * config/sol2.h: ... here.
18297 (SECTION_NAME_FORMAT): Don't redefine.
18298 (STARTFILE_ARCH32_SPEC): Rename to ...
18299 (STARTFILE_ARCH_SPEC): ... this.
18300 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18301 * config/sparc/sol2.h: ... here.
18302 (SECTION_NAME_FORMAT): Don't undef.
18303 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18304 (SUBTARGET_EXTRA_SPECS): Remove.
18305 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18306
18307 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18308 (MD_STARTFILE_PREFIX): Remove.
18309 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18310 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18311 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18312 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18313 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18314 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18315 * config/i386/sol2.h: ... here.
18316 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18317 * config/i386/sol2-bi.h: Remove.
18318 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18319 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18320
18321 * config/i386/t-sol2-64: Rename to ...
18322 * config/i386/t-sol2: ... this.
18323 * config/sparc/t-sol2-64: Rename to ...
18324 * config/sparc/t-sol2: ... this.
18325
18326 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18327 sol2_tm_file_head, sol2_tm_file_tail.
18328 Include ${cpu_type}/sol2.h before sol2.h.
18329 Remove sol2-10.h.
18330 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18331 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18332 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18333 Reflect i386/t-sol2-64 renaming.
18334 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18335 Reflect sparc/t-sol2-64 renaming.
18336
18337 2014-04-30 Richard Biener <rguenther@suse.de>
18338
18339 * passes.c (execute_function_todo): Move TODO_verify_stmts
18340 and TODO_verify_ssa under the TODO_verify_il umbrella.
18341 * tree-ssa.h (verify_ssa): Adjust prototype.
18342 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18343 we should verify SSA operands.
18344 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18345 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18346 whether we should verify whether not throwing stmts have EH info.
18347 * graphite-scop-detection.c (create_sese_edges): Adjust.
18348 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18349 * tree-eh.c (lower_try_finally_switch): Do not add the
18350 default case label twice.
18351
18352 2014-04-30 Marek Polacek <polacek@redhat.com>
18353
18354 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18355 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18356 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18357 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18358
18359 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18360
18361 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18362 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18363 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18364 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18365 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18366 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18367 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18368 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18369
18370 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18371
18372 * tree-cfg.c (dump_function_to_file): Dump the return type of
18373 functions, in a line to itself before the function body, mimicking
18374 the layout of a C function.
18375
18376 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18377
18378 PR tree-optimization/60971
18379 * tree-tailcall.c (process_assignment): Reject conversions which
18380 reduce precision.
18381
18382 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18383
18384 * calls.c (initialize_argument_information): Always treat
18385 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18386 (expand_call): Likewise.
18387 (emit_library_call_calue_1): Likewise.
18388 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18389 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18390 code accordingly.
18391
18392 2014-04-29 Nick Clifton <nickc@redhat.com>
18393
18394 * config/msp430/msp430.md (umulsidi): Fix typo.
18395 (mulhisi3): Enable even inside interrupt handlers.
18396 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18397 bigger return address pushed in large mode.
18398
18399 2014-04-29 Nick Clifton <nickc@redhat.com>
18400
18401 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18402 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18403 available modes.
18404 * config/m32r/m32r.c (init_reg_tables): Likewise.
18405 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18406 enum to hold the modes.
18407
18408 2014-04-29 Richard Biener <rguenther@suse.de>
18409
18410 * dominance.c (free_dominance_info): Add overload with
18411 function parameter.
18412 (dom_info_state): Likewise.
18413 (dom_info_available_p): Likewise.
18414 * basic-block.h (free_dominance_info, dom_info_state,
18415 dom_info_available_p): Declare overloads.
18416 * passes.c (execute_function_todo): Verify that verifiers
18417 don't change dominator info state. Drop dominator info
18418 for IPA pass invocations.
18419 * cgraph.c (release_function_body): Restore asserts that
18420 dominator information is released.
18421
18422 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18423
18424 * doc/invoke.texi: Fix typo.
18425 * tree-vrp.c: Fix typos.
18426 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18427
18428 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18429
18430 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18431
18432 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18433
18434 * config/aarch64/aarch64-builtins.c
18435 (aarch64_types_storestruct_lane_qualifiers): New.
18436 (TYPES_STORESTRUCT_LANE): Likewise.
18437 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18438 (st3_lane): Likewise.
18439 (st4_lane): Likewise.
18440 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18441 (vec_store_lanesci_lane<mode>): Likewise.
18442 (vec_store_lanesxi_lane<mode>): Likewise.
18443 (aarch64_st2_lane<VQ:mode>): Likewise.
18444 (aarch64_st3_lane<VQ:mode>): Likewise.
18445 (aarch64_st4_lane<VQ:mode>): Likewise.
18446 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18447 * config/aarch64/arm_neon.h
18448 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18449 use new macro arguments.
18450 (__ST3_LANE_FUNC): Likewise.
18451 (__ST4_LANE_FUNC): Likewise.
18452 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18453 (V_THREE_ELEM): Likewise.
18454 (V_FOUR_ELEM): Likewise.
18455
18456 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18457
18458 * doc/gimple.texi: Replace the description of the now-defunct
18459 union gimple_statement_d with a diagram showing the
18460 gimple_statement_base class hierarchy and its relationships to
18461 the GSS_ and GIMPLE_ enums.
18462
18463 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18464
18465 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18466 * config/aarch64/aarch64.c
18467 (aarch64_cannot_change_mode_class): Weaken conditions.
18468 (aarch64_modes_tieable_p): New.
18469 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18470
18471 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18472
18473 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18474 (loadsync_<mode>): Change mode.
18475 (load_quadpti, store_quadpti): New.
18476 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18477 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18478
18479 2014-04-28 Martin Jambor <mjambor@suse.cz>
18480
18481 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18482 same alias type as the original statement.
18483 (subreplacement_assignment_data): New type.
18484 (handle_unscalarized_data_in_subtree): New type of parameter,
18485 generate new memory accesses with same alias type as the original
18486 statement.
18487 (load_assign_lhs_subreplacements): Likewise.
18488 (sra_modify_constructor_assign): Generate new memory accesses with
18489 same alias type as the original statement.
18490
18491 2014-04-28 Richard Biener <rguenther@suse.de>
18492
18493 * tree-pass.h (TODO_verify_il): Define.
18494 (TODO_verify_all): Complete properly.
18495 * passes.c (execute_function_todo): Move existing loop-closed
18496 SSA verification under TODO_verify_il.
18497 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18498 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18499 Fix tree sharing issue.
18500
18501 2014-04-28 Richard Biener <rguenther@suse.de>
18502
18503 PR middle-end/60092
18504 * builtins.def (DEF_C11_BUILTIN): Add.
18505 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18506 * coretypes.h (enum function_class): Add function_c11_misc.
18507 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18508 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18509 (call_may_clobber_ref_p_1): Likewise.
18510 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18511 (mark_all_reaching_defs_necessary_1): Likewise.
18512 (propagate_necessity): Likewise.
18513 (eliminate_unnecessary_stmts): Likewise.
18514 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18515
18516 2014-04-28 Richard Biener <rguenther@suse.de>
18517
18518 * tree-vrp.c (vrp_var_may_overflow): Remove.
18519 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18520 with overflow immediately bump to one before that value and
18521 let iteration figure out overflow status.
18522
18523 2014-04-28 Richard Biener <rguenther@suse.de>
18524
18525 * configure.ac: Do valgrind header checks unconditionally.
18526 Add --enable-valgrind-annotations.
18527 * system.h: Guard valgrind header inclusion with
18528 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18529 * alloc-pool.c (pool_alloc, pool_free): Use
18530 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18531 to guard possibly dead code.
18532 * config.in: Regenerated.
18533 * configure: Likewise.
18534
18535 2014-04-28 Jeff Law <law@redhat.com>
18536
18537 PR tree-optimization/60902
18538 * tree-ssa-threadedge.c
18539 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18540 over real defs when invalidating outputs from statements that do not
18541 produce useful outputs for threading.
18542
18543 2014-04-28 Richard Biener <rguenther@suse.de>
18544
18545 PR tree-optimization/60979
18546 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18547 SCOPs that end in a block with a successor with abnormal
18548 predecessors.
18549
18550 2014-04-28 Richard Biener <rguenther@suse.de>
18551
18552 * tree-pass.h (execute_pass_list): Adjust prototype.
18553 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18554 (do_per_function): Change callback signature, push all actual
18555 work to the callbals.
18556 (do_per_function_toporder): Likewise.
18557 (execute_function_dump): Adjust.
18558 (execute_function_todo): Likewise.
18559 (clear_last_verified): Likewise.
18560 (verify_curr_properties): Likewise.
18561 (update_properties_after_pass): Likewise.
18562 (execute_pass_list_1): Split out from ...
18563 (execute_pass_list): ... here. Adjust.
18564 (execute_ipa_pass_list): Likewise.
18565 * cgraphunit.c (cgraph_add_new_function): Adjust.
18566 (analyze_function): Likewise.
18567 (expand_function): Likewise.
18568 * cgraph.c (release_function_body): Free dominance info
18569 here instead of asserting it was magically freed elsewhere.
18570
18571 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18572
18573 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18574 * configure: Regenerate.
18575 * config/sparc/sparc.opt (muser-mode): New option.
18576 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18577 for LEON3.
18578 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18579 * doc/invoke.texi (SPARC options): Document -muser-mode.
18580
18581 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18582
18583 * cselib.c (find_slot_memmode): Delete.
18584 (cselib_hasher): Change compare_type to a struct.
18585 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18586 constants.
18587 (preserve_constants_and_equivs): Adjust for new compare_type.
18588 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18589 (wrap_constant): Delete.
18590 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18591
18592 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18593
18594 * doc/install.texi (Building with profile feedback): Remove
18595 outdated sentence.
18596
18597 2014-04-26 Tom de Vries <tom@codesourcery.com>
18598
18599 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18600 array accesses.
18601
18602 2014-04-25 Cary Coutant <ccoutant@google.com>
18603
18604 PR debug/60929
18605 * dwarf2out.c (should_move_die_to_comdat): A type definition
18606 can contain a subprogram definition, but don't move it to a
18607 comdat unit.
18608 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18609 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18610 from original DIE.
18611 (clone_tree_hash): Rename to...
18612 (clone_tree_partial): ...this; change callers. Copy
18613 DW_TAG_subprogram DIEs as declarations.
18614 (copy_decls_walk): Don't copy children of a declaration into a
18615 type unit.
18616
18617 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18618
18619 PR target/60969
18620 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18621 alternative 12.
18622
18623 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18624
18625 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18626 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18627 reg for long_call.
18628 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18629 restriction.
18630
18631 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18632
18633 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18634
18635 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18636
18637 PR tree-optimization/60930
18638 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18639 creating a multiply candidate by folding two constant
18640 multiplicands when the result overflows.
18641
18642 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18643
18644 PR tree-optimization/60960
18645 * tree-vect-generic.c (expand_vector_operation): Only call
18646 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18647
18648 2014-04-25 Tom de Vries <tom@codesourcery.com>
18649
18650 * expr.c (clobber_reg_mode): New function.
18651 * expr.h (clobber_reg): New function.
18652
18653 2014-04-25 Tom de Vries <tom@codesourcery.com>
18654
18655 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18656 clobbers.
18657
18658 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18659 Tom de Vries <tom@codesourcery.com>
18660
18661 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18662 handle.
18663 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18664 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18665 new argument to find_all_hard_reg_sets call.
18666
18667 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18668
18669 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18670 Use HOST_WIDE_INT_C for mask literal.
18671 (aarch_rev16_shleft_mask_imm_p): Likewise.
18672
18673 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18674
18675 PR target/60941
18676 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18677
18678 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18679
18680 PR preprocessor/56540
18681 * config/i386/i386-c.c (ix86_target_macros): Define
18682 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18683
18684 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18685
18686 * configure.ac (tga_func): Remove.
18687 (LIB_TLS_SPEC): Remove.
18688 * configure: Regenerate.
18689 * config.in: Regenerate.
18690 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18691
18692 2014-04-25 Richard Biener <rguenther@suse.de>
18693
18694 PR ipa/60912
18695 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18696 call stmt use/clobber sets during stmt walk instead of
18697 walking the possibly incomplete set of caller edges.
18698
18699 2014-04-25 Richard Biener <rguenther@suse.de>
18700
18701 PR ipa/60911
18702 * passes.c (apply_ipa_transforms): Inline into only caller ...
18703 (execute_one_pass): ... here. Properly bring in function
18704 bodies for nodes we want to apply IPA transforms to.
18705
18706 2014-04-24 Cong Hou <congh@google.com>
18707
18708 PR tree-optimization/60896
18709 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18710 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18711 (vect_mark_pattern_stmts): Set the def type of all statements in
18712 PATTERN_DEF_SEQ as vect_internal_def.
18713
18714 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18715
18716 * doc/extend.texi (PowerPC Built-in Functions): Document new
18717 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18718 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18719
18720 * config/rs6000/predicates.md (const_0_to_3_operand): New
18721 predicate to match 0..3 integer constants.
18722
18723 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18724 to support adding miscellaneous builtin functions.
18725 (BU_DFP_MISC_2): Likewise.
18726 (BU_P7_MISC_1): Likewise.
18727 (BU_P7_MISC_2): Likewise.
18728 (BU_P8V_MISC_3): Likewise.
18729 (BU_MISC_1): Likewise.
18730 (BU_MISC_2): Likewise.
18731 (DIVWE): Add extended divide builtin functions.
18732 (DIVWEO): Likewise.
18733 (DIVWEU): Likewise.
18734 (DIVWEUO): Likewise.
18735 (DIVDE): Likewise.
18736 (DIVDEO): Likewise.
18737 (DIVDEU): Likewise.
18738 (DIVDEUO): Likewise.
18739 (DXEX): Add decimal floating-point builtin functions.
18740 (DXEXQ): Likewise.
18741 (DDEDPD): Likewise.
18742 (DDEDPDQ): Likewise.
18743 (DENBCD): Likewise.
18744 (DENBCDQ): Likewise.
18745 (DIEX): Likewise.
18746 (DIEXQ): Likewise.
18747 (DSCLI): Likewise.
18748 (DSCLIQ): Likewise.
18749 (DSCRI): Likewise.
18750 (DSCRIQ): Likewise.
18751 (CDTBCD): Add new BCD builtin functions.
18752 (CBCDTD): Likewise.
18753 (ADDG6S): Likewise.
18754 (BCDADD): Likewise.
18755 (BCDADD_LT): Likewise.
18756 (BCDADD_EQ): Likewise.
18757 (BCDADD_GT): Likewise.
18758 (BCDADD_OV): Likewise.
18759 (BCDSUB): Likewise.
18760 (BCDSUB_LT): Likewise.
18761 (BCDSUB_EQ): Likewise.
18762 (BCDSUB_GT): Likewise.
18763 (BCDSUB_OV): Likewise.
18764 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18765 (UNPACK_TD): Likewise.
18766 (PACK_TF): Likewise.
18767 (UNPACK_TF): Likewise.
18768 (UNPACK_TF_0): Likewise.
18769 (UNPACK_TF_1): Likewise.
18770 (PACK_V1TI): Likewise.
18771 (UNPACK_V1TI): Likewise.
18772
18773 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18774 support for decimal floating point builtin functions.
18775 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18776 functions that take constant arguments.
18777 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18778 (rs6000_init_builtins): Setup long double, _Decimal64, and
18779 _Decimal128 types for new builtin functions.
18780 (builtin_function_type): Set the unsigned flags appropriately for
18781 the new builtin functions.
18782 (rs6000_opt_masks): Add support for decimal floating point builtin
18783 functions.
18784
18785 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18786 floating point builtin functions.
18787 (RS6000_BTM_COMMON): Likewise.
18788 (RS6000_BTI_long_double): Likewise.
18789 (RS6000_BTI_dfloat64): Likewise.
18790 (RS6000_BTI_dfloat128): Likewise.
18791 (long_double_type_internal_node): Likewise.
18792 (dfloat64_type_internal_node): Likewise.
18793 (dfloat128_type_internal_node): Likewise.
18794
18795 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18796 2.07 bcd arithmetic instructions.
18797 (UNSPEC_BCDSUB): Likewise.
18798 (UNSPEC_BCD_OVERFLOW): Likewise.
18799 (UNSPEC_BCD_ADD_SUB): Likewise.
18800 (bcd_add_sub): Likewise.
18801 (BCD_TEST): Likewise.
18802 (bcd<bcd_add_sub>): Likewise.
18803 (bcd<bcd_add_sub>_test): Likewise.
18804 (bcd<bcd_add_sub>_test2): Likewise.
18805 (bcd<bcd_add_sub>_<code>): Likewise.
18806 (peephole2 for combined bcd ops): Likewise.
18807
18808 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18809 decimal floating point builtin functions.
18810 (UNSPEC_DENBCD): Likewise.
18811 (UNSPEC_DXEX): Likewise.
18812 (UNSPEC_DIEX): Likewise.
18813 (UNSPEC_DSCLI): Likewise.
18814 (UNSPEC_DSCRI): Likewise.
18815 (D64_D128): Likewise.
18816 (dfp_suffix): Likewise.
18817 (dfp_ddedpd_<mode>): Likewise.
18818 (dfp_denbcd_<mode>): Likewise.
18819 (dfp_dxex_<mode>): Likewise.
18820 (dfp_diex_<mode>): Likewise.
18821 (dfp_dscli_<mode>): Likewise.
18822 (dfp_dscri_<mode>): Likewise.
18823
18824 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18825 builtin functions.
18826 (UNSPEC_CDTBCD): Likewise.
18827 (UNSPEC_CBCDTD): Likewise.
18828 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18829 (UNSPEC_DIVEO): Likewise.
18830 (UNSPEC_DIVEU): Likewise.
18831 (UNSPEC_DIVEUO): Likewise.
18832 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18833 pack/unpack 128-bit types.
18834 (UNSPEC_PACK_128BIT): Likewise.
18835 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18836 (udiv<mode>3): Use idiv_ldiv mode attribute.
18837 (div<mode>3): Likewise.
18838 (addg6s): Add new BCD builtin functions.
18839 (cdtbcd): Likewise.
18840 (cbcdtd): Likewise.
18841 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18842 (div_extend): Likewise.
18843 (div<div_extend>_<mode>"): Likewise.
18844 (FP128_64): Add support for new builtin functions to pack/unpack
18845 128-bit types.
18846 (unpack<mode>): Likewise.
18847 (unpacktf_0): Likewise.
18848 (unpacktf_1): Likewise.
18849 (unpack<mode>_dm): Likewise.
18850 (unpack<mode>_nodm): Likewise.
18851 (pack<mode>): Likewise.
18852 (unpackv1ti): Likewise.
18853 (packv1ti): Likewise.
18854
18855 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18856
18857 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18858 is disabled.
18859
18860 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18861
18862 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18863 * gimplify.c (omp_is_private): Change last argument's type to int.
18864 Only diagnose lastprivate if the simd argument is 1, only diagnose
18865 linear if the simd argument is 2.
18866 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18867 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18868 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18869 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18870 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18871 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18872 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18873 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18874 * tree-nested.c (convert_nonlocal_omp_clauses,
18875 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18876
18877 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18878
18879 PR target/60822
18880 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18881 operand 1.
18882
18883 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18884
18885 * flag-types.h (enum ivar_visibility): Add.
18886
18887 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18888
18889 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18890 function * argument.
18891
18892 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18893
18894 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18895
18896 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18897 Tom de Vries <tom@codesourcery.com>
18898
18899 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18900 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18901 reg-note.
18902 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18903 * emit-rtl.c (try_split): Same.
18904
18905 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18906 Tom de Vries <tom@codesourcery.com>
18907
18908 * common.opt (fuse-caller-save): New option.
18909
18910 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18911
18912 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18913 elements for big-endian.
18914
18915 2014-04-24 Richard Biener <rguenther@suse.de>
18916
18917 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18918 during TER and instead use the sepops interface for expanding
18919 non-GIMPLE_SINGLE_RHS.
18920
18921 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18922
18923 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18924 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18925
18926 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18927
18928 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18929 assembler 64-bit option.
18930 * configure: Regenerate.
18931
18932 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18933
18934 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18935 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18936 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18937 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18938 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18939
18940 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18941
18942 * config/aarch64/aarch64-builtins.c
18943 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18944 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18945 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18946 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18947 builtins.
18948 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18949 (Vrevsuff): New mode attribute.
18950
18951 2014-04-24 Terry Guo <terry.guo@arm.com>
18952
18953 * config/arm/arm.h (machine_function): Define variable
18954 after_arm_reorg here.
18955 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18956 (arm_split_constant): Update the way to access variable
18957 after_arm_reorg.
18958 (arm_reorg): Ditto.
18959 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18960
18961 2014-04-23 Tom de Vries <tom@codesourcery.com>
18962
18963 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18964
18965 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18966
18967 * is-a.h: Update comments to reflect the following changes to the
18968 "pointerness" of the API, making the template parameter match the
18969 return type, allowing use of is-a.h with typedefs of pointers.
18970 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18971 that the return type matches the parameter to the is_a_helper.
18972 (as_a): Likewise.
18973 (dyn_cast): Likewise.
18974
18975 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18976 pointer from the is-a.h API.
18977
18978 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18979 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18980 is-a.h API.
18981 (is_a_helper <varpool_node>::test): Likewise, convert to...
18982 (is_a_helper <varpool_node *>::test): ...this.
18983
18984 (varpool_first_variable): Update for removal of implicit pointer
18985 from the is-a.h API.
18986 (varpool_next_variable): Likewise.
18987 (varpool_first_static_initializer): Likewise.
18988 (varpool_next_static_initializer): Likewise.
18989 (varpool_first_defined_variable): Likewise.
18990 (varpool_next_defined_variable): Likewise.
18991 (cgraph_first_defined_function): Likewise.
18992 (cgraph_next_defined_function): Likewise.
18993 (cgraph_first_function): Likewise.
18994 (cgraph_next_function): Likewise.
18995 (cgraph_first_function_with_gimple_body): Likewise.
18996 (cgraph_next_function_with_gimple_body): Likewise.
18997 (cgraph_alias_target): Likewise.
18998 (varpool_alias_target): Likewise.
18999 (cgraph_function_or_thunk_node): Likewise.
19000 (varpool_variable_node): Likewise.
19001 (symtab_real_symbol_p): Likewise.
19002 * cgraphunit.c (referred_to_p): Likewise.
19003 (analyze_functions): Likewise.
19004 (handle_alias_pairs): Likewise.
19005 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19006 * gimple-ssa.h (gimple_vuse_op): Likewise.
19007 (gimple_vdef_op): Likewise.
19008 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19009 * gimple.c (gimple_build_asm_1): Likewise.
19010 (gimple_build_try): Likewise.
19011 (gimple_build_resx): Likewise.
19012 (gimple_build_eh_dispatch): Likewise.
19013 (gimple_build_omp_for): Likewise.
19014 (gimple_omp_for_set_clauses): Likewise.
19015
19016 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19017 (is_a_helper <gimple_statement_asm *>::test): ...this.
19018 (is_a_helper <gimple_statement_bind>::test): Convert to...
19019 (is_a_helper <gimple_statement_bind *>::test): ...this.
19020 (is_a_helper <gimple_statement_call>::test): Convert to...
19021 (is_a_helper <gimple_statement_call *>::test): ...this.
19022 (is_a_helper <gimple_statement_catch>::test): Convert to...
19023 (is_a_helper <gimple_statement_catch *>::test): ...this.
19024 (is_a_helper <gimple_statement_resx>::test): Convert to...
19025 (is_a_helper <gimple_statement_resx *>::test): ...this.
19026 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19027 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19028 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19029 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19030 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19031 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19032 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19033 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19034 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19035 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19036 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19037 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19038 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19039 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19040 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19041 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19042 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19043 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19044 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19045 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19046 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19047 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19048 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19049 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19050 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19051 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19052 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19053 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19054 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19055 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19056 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19057 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19058 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19059 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19060 (is_a_helper <gimple_statement_phi>::test): Convert to...
19061 (is_a_helper <gimple_statement_phi *>::test): ...this.
19062 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19063 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19064 (is_a_helper <gimple_statement_try>::test): Convert to...
19065 (is_a_helper <gimple_statement_try *>::test): ...this.
19066 (is_a_helper <gimple_statement_wce>::test): Convert to...
19067 (is_a_helper <gimple_statement_wce *>::test): ...this.
19068 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19069 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19070 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19071 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19072 (is_a_helper <const gimple_statement_call>::test): Convert to...
19073 (is_a_helper <const gimple_statement_call *>::test): ...this.
19074 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19075 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19076 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19077 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19078 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19079 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19080 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19081 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19082 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19083 Convert to...
19084 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19085 ...this.
19086 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19087 Convert to...
19088 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19089 ...this.
19090 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19091 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19092 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19093 to...
19094 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19095 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19096 to...
19097 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19098 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19099 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19100 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19101 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19102 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19103 to...
19104 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19105 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19106 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19107 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19108 to...
19109 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19110 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19111 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19112 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19113 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19114 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19115 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19116 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19117 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19118 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19119 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19120 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19121 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19122 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19123 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19124 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19125 to...
19126 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19127 ...this.
19128 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19129 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19130
19131 (gimple_use_ops): Update for removal of implicit pointer from the
19132 is-a.h API.
19133 (gimple_set_use_ops): Likewise.
19134 (gimple_vuse): Likewise.
19135 (gimple_vdef): Likewise.
19136 (gimple_vuse_ptr): Likewise.
19137 (gimple_vdef_ptr): Likewise.
19138 (gimple_set_vuse): Likewise.
19139 (gimple_set_vdef): Likewise.
19140 (gimple_omp_return_set_lhs): Likewise.
19141 (gimple_omp_return_lhs): Likewise.
19142 (gimple_omp_return_lhs_ptr): Likewise.
19143 (gimple_call_fntype): Likewise.
19144 (gimple_call_set_fntype): Likewise.
19145 (gimple_call_set_internal_fn): Likewise.
19146 (gimple_call_use_set): Likewise.
19147 (gimple_call_clobber_set): Likewise.
19148 (gimple_bind_vars): Likewise.
19149 (gimple_bind_set_vars): Likewise.
19150 (gimple_bind_body_ptr): Likewise.
19151 (gimple_bind_set_body): Likewise.
19152 (gimple_bind_add_stmt): Likewise.
19153 (gimple_bind_block): Likewise.
19154 (gimple_bind_set_block): Likewise.
19155 (gimple_asm_ninputs): Likewise.
19156 (gimple_asm_noutputs): Likewise.
19157 (gimple_asm_nclobbers): Likewise.
19158 (gimple_asm_nlabels): Likewise.
19159 (gimple_asm_input_op): Likewise.
19160 (gimple_asm_input_op_ptr): Likewise.
19161 (gimple_asm_output_op): Likewise.
19162 (gimple_asm_output_op_ptr): Likewise.
19163 (gimple_asm_set_output_op): Likewise.
19164 (gimple_asm_clobber_op): Likewise.
19165 (gimple_asm_set_clobber_op): Likewise.
19166 (gimple_asm_label_op): Likewise.
19167 (gimple_asm_set_label_op): Likewise.
19168 (gimple_asm_string): Likewise.
19169 (gimple_catch_types): Likewise.
19170 (gimple_catch_types_ptr): Likewise.
19171 (gimple_catch_handler_ptr): Likewise.
19172 (gimple_catch_set_types): Likewise.
19173 (gimple_catch_set_handler): Likewise.
19174 (gimple_eh_filter_types): Likewise.
19175 (gimple_eh_filter_types_ptr): Likewise.
19176 (gimple_eh_filter_failure_ptr): Likewise.
19177 (gimple_eh_filter_set_types): Likewise.
19178 (gimple_eh_filter_set_failure): Likewise.
19179 (gimple_eh_must_not_throw_fndecl): Likewise.
19180 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19181 (gimple_eh_else_n_body_ptr): Likewise.
19182 (gimple_eh_else_e_body_ptr): Likewise.
19183 (gimple_eh_else_set_n_body): Likewise.
19184 (gimple_eh_else_set_e_body): Likewise.
19185 (gimple_try_eval_ptr): Likewise.
19186 (gimple_try_cleanup_ptr): Likewise.
19187 (gimple_try_set_eval): Likewise.
19188 (gimple_try_set_cleanup): Likewise.
19189 (gimple_wce_cleanup_ptr): Likewise.
19190 (gimple_wce_set_cleanup): Likewise.
19191 (gimple_phi_capacity): Likewise.
19192 (gimple_phi_num_args): Likewise.
19193 (gimple_phi_result): Likewise.
19194 (gimple_phi_result_ptr): Likewise.
19195 (gimple_phi_set_result): Likewise.
19196 (gimple_phi_arg): Likewise.
19197 (gimple_phi_set_arg): Likewise.
19198 (gimple_resx_region): Likewise.
19199 (gimple_resx_set_region): Likewise.
19200 (gimple_eh_dispatch_region): Likewise.
19201 (gimple_eh_dispatch_set_region): Likewise.
19202 (gimple_omp_critical_name): Likewise.
19203 (gimple_omp_critical_name_ptr): Likewise.
19204 (gimple_omp_critical_set_name): Likewise.
19205 (gimple_omp_for_clauses): Likewise.
19206 (gimple_omp_for_clauses_ptr): Likewise.
19207 (gimple_omp_for_set_clauses): Likewise.
19208 (gimple_omp_for_collapse): Likewise.
19209 (gimple_omp_for_index): Likewise.
19210 (gimple_omp_for_index_ptr): Likewise.
19211 (gimple_omp_for_set_index): Likewise.
19212 (gimple_omp_for_initial): Likewise.
19213 (gimple_omp_for_initial_ptr): Likewise.
19214 (gimple_omp_for_set_initial): Likewise.
19215 (gimple_omp_for_final): Likewise.
19216 (gimple_omp_for_final_ptr): Likewise.
19217 (gimple_omp_for_set_final): Likewise.
19218 (gimple_omp_for_incr): Likewise.
19219 (gimple_omp_for_incr_ptr): Likewise.
19220 (gimple_omp_for_set_incr): Likewise.
19221 (gimple_omp_for_pre_body_ptr): Likewise.
19222 (gimple_omp_for_set_pre_body): Likewise.
19223 (gimple_omp_parallel_clauses): Likewise.
19224 (gimple_omp_parallel_clauses_ptr): Likewise.
19225 (gimple_omp_parallel_set_clauses): Likewise.
19226 (gimple_omp_parallel_child_fn): Likewise.
19227 (gimple_omp_parallel_child_fn_ptr): Likewise.
19228 (gimple_omp_parallel_set_child_fn): Likewise.
19229 (gimple_omp_parallel_data_arg): Likewise.
19230 (gimple_omp_parallel_data_arg_ptr): Likewise.
19231 (gimple_omp_parallel_set_data_arg): Likewise.
19232 (gimple_omp_task_clauses): Likewise.
19233 (gimple_omp_task_clauses_ptr): Likewise.
19234 (gimple_omp_task_set_clauses): Likewise.
19235 (gimple_omp_task_child_fn): Likewise.
19236 (gimple_omp_task_child_fn_ptr): Likewise.
19237 (gimple_omp_task_set_child_fn): Likewise.
19238 (gimple_omp_task_data_arg): Likewise.
19239 (gimple_omp_task_data_arg_ptr): Likewise.
19240 (gimple_omp_task_set_data_arg): Likewise.
19241 (gimple_omp_taskreg_clauses): Likewise.
19242 (gimple_omp_taskreg_clauses_ptr): Likewise.
19243 (gimple_omp_taskreg_set_clauses): Likewise.
19244 (gimple_omp_taskreg_child_fn): Likewise.
19245 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19246 (gimple_omp_taskreg_set_child_fn): Likewise.
19247 (gimple_omp_taskreg_data_arg): Likewise.
19248 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19249 (gimple_omp_taskreg_set_data_arg): Likewise.
19250 (gimple_omp_task_copy_fn): Likewise.
19251 (gimple_omp_task_copy_fn_ptr): Likewise.
19252 (gimple_omp_task_set_copy_fn): Likewise.
19253 (gimple_omp_task_arg_size): Likewise.
19254 (gimple_omp_task_arg_size_ptr): Likewise.
19255 (gimple_omp_task_set_arg_size): Likewise.
19256 (gimple_omp_task_arg_align): Likewise.
19257 (gimple_omp_task_arg_align_ptr): Likewise.
19258 (gimple_omp_task_set_arg_align): Likewise.
19259 (gimple_omp_single_clauses): Likewise.
19260 (gimple_omp_single_clauses_ptr): Likewise.
19261 (gimple_omp_single_set_clauses): Likewise.
19262 (gimple_omp_target_clauses): Likewise.
19263 (gimple_omp_target_clauses_ptr): Likewise.
19264 (gimple_omp_target_set_clauses): Likewise.
19265 (gimple_omp_target_child_fn): Likewise.
19266 (gimple_omp_target_child_fn_ptr): Likewise.
19267 (gimple_omp_target_set_child_fn): Likewise.
19268 (gimple_omp_target_data_arg): Likewise.
19269 (gimple_omp_target_data_arg_ptr): Likewise.
19270 (gimple_omp_target_set_data_arg): Likewise.
19271 (gimple_omp_teams_clauses): Likewise.
19272 (gimple_omp_teams_clauses_ptr): Likewise.
19273 (gimple_omp_teams_set_clauses): Likewise.
19274 (gimple_omp_sections_clauses): Likewise.
19275 (gimple_omp_sections_clauses_ptr): Likewise.
19276 (gimple_omp_sections_set_clauses): Likewise.
19277 (gimple_omp_sections_control): Likewise.
19278 (gimple_omp_sections_control_ptr): Likewise.
19279 (gimple_omp_sections_set_control): Likewise.
19280 (gimple_omp_for_set_cond): Likewise.
19281 (gimple_omp_for_cond): Likewise.
19282 (gimple_omp_atomic_store_set_val): Likewise.
19283 (gimple_omp_atomic_store_val): Likewise.
19284 (gimple_omp_atomic_store_val_ptr): Likewise.
19285 (gimple_omp_atomic_load_set_lhs): Likewise.
19286 (gimple_omp_atomic_load_lhs): Likewise.
19287 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19288 (gimple_omp_atomic_load_set_rhs): Likewise.
19289 (gimple_omp_atomic_load_rhs): Likewise.
19290 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19291 (gimple_omp_continue_control_def): Likewise.
19292 (gimple_omp_continue_control_def_ptr): Likewise.
19293 (gimple_omp_continue_set_control_def): Likewise.
19294 (gimple_omp_continue_control_use): Likewise.
19295 (gimple_omp_continue_control_use_ptr): Likewise.
19296 (gimple_omp_continue_set_control_use): Likewise.
19297 (gimple_transaction_body_ptr): Likewise.
19298 (gimple_transaction_label): Likewise.
19299 (gimple_transaction_label_ptr): Likewise.
19300 (gimple_transaction_set_body): Likewise.
19301 (gimple_transaction_set_label): Likewise.
19302
19303 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19304 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19305 * ipa-ref.c (ipa_record_reference): Likewise.
19306 * ipa-reference.c (analyze_function): Likewise.
19307 (ipa_reference_write_optimization_summary): Likewise.
19308 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19309 (address_taken_from_non_vtable_p): Likewise.
19310 (comdat_can_be_unshared_p_1): Likewise.
19311 * lto-cgraph.c (lto_output_ref): Likewise.
19312 (add_references): Likewise.
19313 (compute_ltrans_boundary): Likewise.
19314 (output_symtab): Likewise.
19315 (input_ref): Likewise.
19316 (input_cgraph_1): Likewise.
19317 (output_cgraph_opt_summary): Likewise.
19318 * lto-streamer-out.c (lto_output): Likewise.
19319 (output_symbol_p): Likewise.
19320 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19321 (lsei_start_function_in_partition): Likewise.
19322 (lsei_next_variable_in_partition): Likewise.
19323 (lsei_start_variable_in_partition): Likewise.
19324 * symtab.c (insert_to_assembler_name_hash): Likewise.
19325 (unlink_from_assembler_name_hash): Likewise.
19326 (symtab_unregister_node): Likewise.
19327 (symtab_remove_node): Likewise.
19328 (dump_symtab_node): Likewise.
19329 (verify_symtab_base): Likewise.
19330 (verify_symtab_node): Likewise.
19331 (symtab_make_decl_local): Likewise.
19332 (symtab_alias_ultimate_target): Likewise.
19333 (symtab_resolve_alias): Likewise.
19334 (symtab_get_symbol_partitioning_class): Likewise.
19335 * tree-phinodes.c (allocate_phi_node): Likewise.
19336 (reserve_phi_args_for_new_edge): Likewise.
19337 (remove_phi_args): Likewise.
19338 * varpool.c (varpool_node_for_asm): Likewise.
19339 (varpool_remove_unreferenced_decls): Likewise.
19340
19341 2014-04-23 Jeff Law <law@redhat.com>
19342
19343 PR tree-optimization/60902
19344 * tree-ssa-threadedge.c
19345 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19346 invalidate outputs from statements that do not produce useful
19347 outputs for threading.
19348
19349 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19350
19351 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19352 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19353 machine descriptions for Stack Smashing Protector.
19354
19355 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19356
19357 * aarch64.md (<optab>_rol<mode>3): New pattern.
19358 (<optab>_rolsi3_uxtw): Likewise.
19359 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19360
19361 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19362
19363 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19364 (arm_cortex_a12_tune): Likewise.
19365
19366 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19367
19368 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19369
19370 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19371
19372 * config/arm/arm.md (arm_rev16si2): New pattern.
19373 (arm_rev16si2_alt): Likewise.
19374 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19375
19376 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19377
19378 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19379 (rev16<mode>2_alt): Likewise.
19380 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19381 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19382 (aarch_rev16_shleft_mask_imm_p): Likewise.
19383 (aarch_rev16_p_1): Likewise.
19384 (aarch_rev16_p): Likewise.
19385 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19386 (aarch_rev16_shright_mask_imm_p): Likewise.
19387 (aarch_rev16_shleft_mask_imm_p): Likewise.
19388
19389 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19390
19391 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19392 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19393 rev cost.
19394 (cortex_a53_extra_costs): Likewise.
19395 (cortex_a57_extra_costs): Likewise.
19396 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19397 (cortexa7_extra_costs): Likewise.
19398 (cortexa8_extra_costs): Likewise.
19399 (cortexa12_extra_costs): Likewise.
19400 (cortexa15_extra_costs): Likewise.
19401 (v7m_extra_costs): Likewise.
19402 (arm_new_rtx_costs): Handle BSWAP.
19403
19404 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19405
19406 * config/arm/arm.c (cortexa8_extra_costs): New table.
19407 (arm_cortex_a8_tune): New tuning struct.
19408 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19409
19410 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19411
19412 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19413
19414 2014-04-23 Richard Biener <rguenther@suse.de>
19415
19416 * Makefile.in (OBJS): Remove loop-unswitch.o.
19417 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19418 * passes.def (pass_rtl_unswitch): Likewise.
19419 * loop-init.c (gate_rtl_unswitch): Likewise.
19420 (rtl_unswitch): Likewise.
19421 (pass_data_rtl_unswitch): Likewise.
19422 (pass_rtl_unswitch): Likewise.
19423 (make_pass_rtl_unswitch): Likewise.
19424 * rtl.h (reversed_condition): Likewise.
19425 (compare_and_jump_seq): Likewise.
19426 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19427 and make static.
19428 * loop-unroll.c (compare_and_jump_seq): Likewise.
19429
19430 2014-04-23 Richard Biener <rguenther@suse.de>
19431
19432 PR tree-optimization/60903
19433 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19434 commented code block.
19435 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19436 loop flags to newly created BBs and edges.
19437
19438 2014-04-23 Nick Clifton <nickc@redhat.com>
19439
19440 * config/msp430/msp430.c (msp430_handle_option): Move function
19441 to msp430-common.c
19442 (msp430_option_override): Simplify mcu and mcpu option handling.
19443 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19444 support for -mhwmult command line option.
19445 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19446 -mhwmult command line option.
19447 (msp430_hwmult_enabled): Delete.
19448 (msp43o_output_labelref): Add support for -mhwmult command line option.
19449 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19450 (umulsidi3): Likewise.
19451 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19452 (mcpu, mlarge, msmall): Likewise.
19453 (mhwmult): New option.
19454 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19455 prototype.
19456 (msp430_is_f5_mcu): Remove prototype.
19457 (msp430_use_f5_series_hwmult): Add prototype.
19458 * config/msp430/msp430-opts.h: New file.
19459 * common/config/msp430: New directory.
19460 * common/config/msp430/msp430-common.c: New file.
19461 * config.gcc (msp430): Remove target_has_targetm_common.
19462 * doc/invoke.texi: Document -mhwmult command line option.
19463
19464 2014-04-23 Nick Clifton <nickc@redhat.com>
19465
19466 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19467 default-manifest.o if it can be found in the search path.
19468 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19469
19470 2014-04-23 Terry Guo <terry.guo@arm.com>
19471
19472 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19473
19474 2014-04-23 Richard Biener <rguenther@suse.de>
19475
19476 PR middle-end/60895
19477 * tree-inline.c (declare_return_variable): Use mark_addressable.
19478
19479 2014-04-23 Richard Biener <rguenther@suse.de>
19480
19481 PR middle-end/60891
19482 * loop-init.c (loop_optimizer_init): Make sure to apply
19483 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19484
19485 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19486
19487 PR sanitizer/60275
19488 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19489 New options.
19490 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19491 if flag_sanitize_undefined_trap_on_error.
19492 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19493 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19494 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19495 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19496 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19497 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19498 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19499 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19500 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19501 * ubsan.c (ubsan_instrument_unreachable): Return
19502 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19503 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19504 if flag_sanitize_undefined_trap_on_error and
19505 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19506 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19507 instrument_bool_enum_load): Emit __builtin_trap () if
19508 flag_sanitize_undefined_trap_on_error and
19509 __builtin_handle_*_abort () if !flag_sanitize_recover.
19510 * doc/invoke.texi (-fsanitize-recover,
19511 -fsanitize-undefined-trap-on-error): Document.
19512
19513 2014-04-22 Christian Bruel <christian.bruel@st.com>
19514
19515 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19516 Force immediates to SImode.
19517
19518 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19519
19520 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19521 (lroundsfsi2): New.
19522 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19523 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19524 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19525 (nios2_fpu_insn): Add entry for round.
19526 (N2FPU_NO_ERRNO_P): Define.
19527 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19528 flag_errno_math.
19529 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19530
19531 2014-04-22 Richard Henderson <rth@redhat.com>
19532
19533 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19534 (add<GPI>3_compare0): Remove leading * from name.
19535 (add<GPI>3_carryin): Likewise.
19536 (sub<GPI>3_compare0): Likewise.
19537 (sub<GPI>3_carryin): Likewise.
19538 (<su_optab>mulditi3): New expander.
19539 (multi3): New expander.
19540 (madd<GPI>): Remove leading * from name.
19541
19542 2014-04-22 Martin Jambor <mjambor@suse.cz>
19543
19544 * cgraphclones.c (cgraph_function_versioning): Copy
19545 ipa_transforms_to_apply instead of asserting it is empty.
19546
19547 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19548
19549 PR target/60868
19550 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19551 on count_exp to get mode.
19552
19553 2014-04-22 Andrew Pinski <apinski@cavium.com>
19554
19555 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19556 Handle TLS for ILP32.
19557 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19558 (tlsie_small_<mode>): this and handle PTR.
19559 (tlsie_small_sidi): New pattern.
19560 (tlsle_small): Change to an expand to handle ILP32.
19561 (tlsle_small_<mode>): New pattern.
19562 (tlsdesc_small): Rename to ...
19563 (tlsdesc_small_<mode>): this and handle PTR.
19564
19565 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19566
19567 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19568
19569 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19570
19571 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19572 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19573 (aarch64_types_signed_poly_qualifiers): Likewise.
19574 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19575 (aarch64_types_poly_signed_qualifiers): Likewise.
19576 (TYPES_REINTERP_SS): Type macro added.
19577 (TYPES_REINTERP_SU): Likewise.
19578 (TYPES_REINTERP_SP): Likewise.
19579 (TYPES_REINTERP_US): Likewise.
19580 (TYPES_REINTERP_PS): Likewise.
19581 (aarch64_fold_builtin): New expression folding added.
19582 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19583 Declarations removed.
19584 (REINTERP_SS): Declarations added.
19585 (REINTERP_US): Likewise.
19586 (REINTERP_PS): Likewise.
19587 (REINTERP_SU): Likewise.
19588 (REINTERP_SP): Likewise.
19589 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19590 (vreinterpretq_p8_f64): Likewise.
19591 (vreinterpret_p16_f64): Likewise.
19592 (vreinterpretq_p16_f64): Likewise.
19593 (vreinterpret_f32_f64): Likewise.
19594 (vreinterpretq_f32_f64): Likewise.
19595 (vreinterpret_f64_f32): Likewise.
19596 (vreinterpret_f64_p8): Likewise.
19597 (vreinterpret_f64_p16): Likewise.
19598 (vreinterpret_f64_s8): Likewise.
19599 (vreinterpret_f64_s16): Likewise.
19600 (vreinterpret_f64_s32): Likewise.
19601 (vreinterpret_f64_s64): Likewise.
19602 (vreinterpret_f64_u8): Likewise.
19603 (vreinterpret_f64_u16): Likewise.
19604 (vreinterpret_f64_u32): Likewise.
19605 (vreinterpret_f64_u64): Likewise.
19606 (vreinterpretq_f64_f32): Likewise.
19607 (vreinterpretq_f64_p8): Likewise.
19608 (vreinterpretq_f64_p16): Likewise.
19609 (vreinterpretq_f64_s8): Likewise.
19610 (vreinterpretq_f64_s16): Likewise.
19611 (vreinterpretq_f64_s32): Likewise.
19612 (vreinterpretq_f64_s64): Likewise.
19613 (vreinterpretq_f64_u8): Likewise.
19614 (vreinterpretq_f64_u16): Likewise.
19615 (vreinterpretq_f64_u32): Likewise.
19616 (vreinterpretq_f64_u64): Likewise.
19617 (vreinterpret_s64_f64): Likewise.
19618 (vreinterpretq_s64_f64): Likewise.
19619 (vreinterpret_u64_f64): Likewise.
19620 (vreinterpretq_u64_f64): Likewise.
19621 (vreinterpret_s8_f64): Likewise.
19622 (vreinterpretq_s8_f64): Likewise.
19623 (vreinterpret_s16_f64): Likewise.
19624 (vreinterpretq_s16_f64): Likewise.
19625 (vreinterpret_s32_f64): Likewise.
19626 (vreinterpretq_s32_f64): Likewise.
19627 (vreinterpret_u8_f64): Likewise.
19628 (vreinterpretq_u8_f64): Likewise.
19629 (vreinterpret_u16_f64): Likewise.
19630 (vreinterpretq_u16_f64): Likewise.
19631 (vreinterpret_u32_f64): Likewise.
19632 (vreinterpretq_u32_f64): Likewise.
19633
19634 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19635
19636 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19637 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19638 (vreinterpret_p8_s8): Likewise.
19639 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19640 (vreinterpret_p8_s16): Likewise.
19641 (vreinterpret_p8_s32): Likewise.
19642 (vreinterpret_p8_s64): Likewise.
19643 (vreinterpret_p8_f32): Likewise.
19644 (vreinterpret_p8_u8): Likewise.
19645 (vreinterpret_p8_u16): Likewise.
19646 (vreinterpret_p8_u32): Likewise.
19647 (vreinterpret_p8_u64): Likewise.
19648 (vreinterpret_p8_p16): Likewise.
19649 (vreinterpretq_p8_s8): Likewise.
19650 (vreinterpretq_p8_s16): Likewise.
19651 (vreinterpretq_p8_s32): Likewise.
19652 (vreinterpretq_p8_s64): Likewise.
19653 (vreinterpretq_p8_f32): Likewise.
19654 (vreinterpretq_p8_u8): Likewise.
19655 (vreinterpretq_p8_u16): Likewise.
19656 (vreinterpretq_p8_u32): Likewise.
19657 (vreinterpretq_p8_u64): Likewise.
19658 (vreinterpretq_p8_p16): Likewise.
19659 (vreinterpret_p16_s8): Likewise.
19660 (vreinterpret_p16_s16): Likewise.
19661 (vreinterpret_p16_s32): Likewise.
19662 (vreinterpret_p16_s64): Likewise.
19663 (vreinterpret_p16_f32): Likewise.
19664 (vreinterpret_p16_u8): Likewise.
19665 (vreinterpret_p16_u16): Likewise.
19666 (vreinterpret_p16_u32): Likewise.
19667 (vreinterpret_p16_u64): Likewise.
19668 (vreinterpret_p16_p8): Likewise.
19669 (vreinterpretq_p16_s8): Likewise.
19670 (vreinterpretq_p16_s16): Likewise.
19671 (vreinterpretq_p16_s32): Likewise.
19672 (vreinterpretq_p16_s64): Likewise.
19673 (vreinterpretq_p16_f32): Likewise.
19674 (vreinterpretq_p16_u8): Likewise.
19675 (vreinterpretq_p16_u16): Likewise.
19676 (vreinterpretq_p16_u32): Likewise.
19677 (vreinterpretq_p16_u64): Likewise.
19678 (vreinterpretq_p16_p8): Likewise.
19679 (vreinterpret_f32_s8): Likewise.
19680 (vreinterpret_f32_s16): Likewise.
19681 (vreinterpret_f32_s32): Likewise.
19682 (vreinterpret_f32_s64): Likewise.
19683 (vreinterpret_f32_u8): Likewise.
19684 (vreinterpret_f32_u16): Likewise.
19685 (vreinterpret_f32_u32): Likewise.
19686 (vreinterpret_f32_u64): Likewise.
19687 (vreinterpret_f32_p8): Likewise.
19688 (vreinterpret_f32_p16): Likewise.
19689 (vreinterpretq_f32_s8): Likewise.
19690 (vreinterpretq_f32_s16): Likewise.
19691 (vreinterpretq_f32_s32): Likewise.
19692 (vreinterpretq_f32_s64): Likewise.
19693 (vreinterpretq_f32_u8): Likewise.
19694 (vreinterpretq_f32_u16): Likewise.
19695 (vreinterpretq_f32_u32): Likewise.
19696 (vreinterpretq_f32_u64): Likewise.
19697 (vreinterpretq_f32_p8): Likewise.
19698 (vreinterpretq_f32_p16): Likewise.
19699 (vreinterpret_s64_s8): Likewise.
19700 (vreinterpret_s64_s16): Likewise.
19701 (vreinterpret_s64_s32): Likewise.
19702 (vreinterpret_s64_f32): Likewise.
19703 (vreinterpret_s64_u8): Likewise.
19704 (vreinterpret_s64_u16): Likewise.
19705 (vreinterpret_s64_u32): Likewise.
19706 (vreinterpret_s64_u64): Likewise.
19707 (vreinterpret_s64_p8): Likewise.
19708 (vreinterpret_s64_p16): Likewise.
19709 (vreinterpretq_s64_s8): Likewise.
19710 (vreinterpretq_s64_s16): Likewise.
19711 (vreinterpretq_s64_s32): Likewise.
19712 (vreinterpretq_s64_f32): Likewise.
19713 (vreinterpretq_s64_u8): Likewise.
19714 (vreinterpretq_s64_u16): Likewise.
19715 (vreinterpretq_s64_u32): Likewise.
19716 (vreinterpretq_s64_u64): Likewise.
19717 (vreinterpretq_s64_p8): Likewise.
19718 (vreinterpretq_s64_p16): Likewise.
19719 (vreinterpret_u64_s8): Likewise.
19720 (vreinterpret_u64_s16): Likewise.
19721 (vreinterpret_u64_s32): Likewise.
19722 (vreinterpret_u64_s64): Likewise.
19723 (vreinterpret_u64_f32): Likewise.
19724 (vreinterpret_u64_u8): Likewise.
19725 (vreinterpret_u64_u16): Likewise.
19726 (vreinterpret_u64_u32): Likewise.
19727 (vreinterpret_u64_p8): Likewise.
19728 (vreinterpret_u64_p16): Likewise.
19729 (vreinterpretq_u64_s8): Likewise.
19730 (vreinterpretq_u64_s16): Likewise.
19731 (vreinterpretq_u64_s32): Likewise.
19732 (vreinterpretq_u64_s64): Likewise.
19733 (vreinterpretq_u64_f32): Likewise.
19734 (vreinterpretq_u64_u8): Likewise.
19735 (vreinterpretq_u64_u16): Likewise.
19736 (vreinterpretq_u64_u32): Likewise.
19737 (vreinterpretq_u64_p8): Likewise.
19738 (vreinterpretq_u64_p16): Likewise.
19739 (vreinterpret_s8_s16): Likewise.
19740 (vreinterpret_s8_s32): Likewise.
19741 (vreinterpret_s8_s64): Likewise.
19742 (vreinterpret_s8_f32): Likewise.
19743 (vreinterpret_s8_u8): Likewise.
19744 (vreinterpret_s8_u16): Likewise.
19745 (vreinterpret_s8_u32): Likewise.
19746 (vreinterpret_s8_u64): Likewise.
19747 (vreinterpret_s8_p8): Likewise.
19748 (vreinterpret_s8_p16): Likewise.
19749 (vreinterpretq_s8_s16): Likewise.
19750 (vreinterpretq_s8_s32): Likewise.
19751 (vreinterpretq_s8_s64): Likewise.
19752 (vreinterpretq_s8_f32): Likewise.
19753 (vreinterpretq_s8_u8): Likewise.
19754 (vreinterpretq_s8_u16): Likewise.
19755 (vreinterpretq_s8_u32): Likewise.
19756 (vreinterpretq_s8_u64): Likewise.
19757 (vreinterpretq_s8_p8): Likewise.
19758 (vreinterpretq_s8_p16): Likewise.
19759 (vreinterpret_s16_s8): Likewise.
19760 (vreinterpret_s16_s32): Likewise.
19761 (vreinterpret_s16_s64): Likewise.
19762 (vreinterpret_s16_f32): Likewise.
19763 (vreinterpret_s16_u8): Likewise.
19764 (vreinterpret_s16_u16): Likewise.
19765 (vreinterpret_s16_u32): Likewise.
19766 (vreinterpret_s16_u64): Likewise.
19767 (vreinterpret_s16_p8): Likewise.
19768 (vreinterpret_s16_p16): Likewise.
19769 (vreinterpretq_s16_s8): Likewise.
19770 (vreinterpretq_s16_s32): Likewise.
19771 (vreinterpretq_s16_s64): Likewise.
19772 (vreinterpretq_s16_f32): Likewise.
19773 (vreinterpretq_s16_u8): Likewise.
19774 (vreinterpretq_s16_u16): Likewise.
19775 (vreinterpretq_s16_u32): Likewise.
19776 (vreinterpretq_s16_u64): Likewise.
19777 (vreinterpretq_s16_p8): Likewise.
19778 (vreinterpretq_s16_p16): Likewise.
19779 (vreinterpret_s32_s8): Likewise.
19780 (vreinterpret_s32_s16): Likewise.
19781 (vreinterpret_s32_s64): Likewise.
19782 (vreinterpret_s32_f32): Likewise.
19783 (vreinterpret_s32_u8): Likewise.
19784 (vreinterpret_s32_u16): Likewise.
19785 (vreinterpret_s32_u32): Likewise.
19786 (vreinterpret_s32_u64): Likewise.
19787 (vreinterpret_s32_p8): Likewise.
19788 (vreinterpret_s32_p16): Likewise.
19789 (vreinterpretq_s32_s8): Likewise.
19790 (vreinterpretq_s32_s16): Likewise.
19791 (vreinterpretq_s32_s64): Likewise.
19792 (vreinterpretq_s32_f32): Likewise.
19793 (vreinterpretq_s32_u8): Likewise.
19794 (vreinterpretq_s32_u16): Likewise.
19795 (vreinterpretq_s32_u32): Likewise.
19796 (vreinterpretq_s32_u64): Likewise.
19797 (vreinterpretq_s32_p8): Likewise.
19798 (vreinterpretq_s32_p16): Likewise.
19799 (vreinterpret_u8_s8): Likewise.
19800 (vreinterpret_u8_s16): Likewise.
19801 (vreinterpret_u8_s32): Likewise.
19802 (vreinterpret_u8_s64): Likewise.
19803 (vreinterpret_u8_f32): Likewise.
19804 (vreinterpret_u8_u16): Likewise.
19805 (vreinterpret_u8_u32): Likewise.
19806 (vreinterpret_u8_u64): Likewise.
19807 (vreinterpret_u8_p8): Likewise.
19808 (vreinterpret_u8_p16): Likewise.
19809 (vreinterpretq_u8_s8): Likewise.
19810 (vreinterpretq_u8_s16): Likewise.
19811 (vreinterpretq_u8_s32): Likewise.
19812 (vreinterpretq_u8_s64): Likewise.
19813 (vreinterpretq_u8_f32): Likewise.
19814 (vreinterpretq_u8_u16): Likewise.
19815 (vreinterpretq_u8_u32): Likewise.
19816 (vreinterpretq_u8_u64): Likewise.
19817 (vreinterpretq_u8_p8): Likewise.
19818 (vreinterpretq_u8_p16): Likewise.
19819 (vreinterpret_u16_s8): Likewise.
19820 (vreinterpret_u16_s16): Likewise.
19821 (vreinterpret_u16_s32): Likewise.
19822 (vreinterpret_u16_s64): Likewise.
19823 (vreinterpret_u16_f32): Likewise.
19824 (vreinterpret_u16_u8): Likewise.
19825 (vreinterpret_u16_u32): Likewise.
19826 (vreinterpret_u16_u64): Likewise.
19827 (vreinterpret_u16_p8): Likewise.
19828 (vreinterpret_u16_p16): Likewise.
19829 (vreinterpretq_u16_s8): Likewise.
19830 (vreinterpretq_u16_s16): Likewise.
19831 (vreinterpretq_u16_s32): Likewise.
19832 (vreinterpretq_u16_s64): Likewise.
19833 (vreinterpretq_u16_f32): Likewise.
19834 (vreinterpretq_u16_u8): Likewise.
19835 (vreinterpretq_u16_u32): Likewise.
19836 (vreinterpretq_u16_u64): Likewise.
19837 (vreinterpretq_u16_p8): Likewise.
19838 (vreinterpretq_u16_p16): Likewise.
19839 (vreinterpret_u32_s8): Likewise.
19840 (vreinterpret_u32_s16): Likewise.
19841 (vreinterpret_u32_s32): Likewise.
19842 (vreinterpret_u32_s64): Likewise.
19843 (vreinterpret_u32_f32): Likewise.
19844 (vreinterpret_u32_u8): Likewise.
19845 (vreinterpret_u32_u16): Likewise.
19846 (vreinterpret_u32_u64): Likewise.
19847 (vreinterpret_u32_p8): Likewise.
19848 (vreinterpret_u32_p16): Likewise.
19849 (vreinterpretq_u32_s8): Likewise.
19850 (vreinterpretq_u32_s16): Likewise.
19851 (vreinterpretq_u32_s32): Likewise.
19852 (vreinterpretq_u32_s64): Likewise.
19853 (vreinterpretq_u32_f32): Likewise.
19854 (vreinterpretq_u32_u8): Likewise.
19855 (vreinterpretq_u32_u16): Likewise.
19856 (vreinterpretq_u32_u64): Likewise.
19857 (vreinterpretq_u32_p8): Likewise.
19858 (vreinterpretq_u32_p16): Likewise.
19859
19860 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19861
19862 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19863 Pattern extended.
19864 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19865 (sqabs): Likewise.
19866 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19867 (vqnegd_s64): Likewise.
19868 (vqabs_s64): Likewise.
19869 (vqabsd_s64): Likewise.
19870
19871 2014-04-22 Richard Henderson <rth@redhat.com>
19872
19873 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19874 computation to the top of the loop.
19875
19876 2014-04-22 Renlin <renlin.li@arm.com>
19877 Jiong Wang <jiong.wang@arm.com>
19878
19879 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19880 * config/aarch64/aarch64.c (aarch64_layout_frame)
19881 (aarch64_initial_elimination_offset): Likewise.
19882
19883 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19884
19885 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19886 Fix indentation.
19887
19888 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19889
19890 * machmode.h (bitwise_mode_for_mode): Declare.
19891 * stor-layout.h (bitwise_type_for_mode): Likewise.
19892 * stor-layout.c (bitwise_mode_for_mode): New function.
19893 (bitwise_type_for_mode): Likewise.
19894 * builtins.c (fold_builtin_memory_op): Use it instead of
19895 int_mode_for_mode and build_nonstandard_integer_type.
19896
19897 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19898
19899 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19900 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19901 (*-*-solaris2*): Simplify.
19902 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19903 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19904 *-*-solaris2.9* handling.
19905
19906 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19907 as bug.
19908 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19909 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19910 handling, simplify.
19911 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19912 * configure: Regenerate.
19913
19914 * config/i386/sol2-9.h: Remove.
19915
19916 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19917 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19918 Remove Solaris 9 references.
19919
19920 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19921
19922 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19923 (floatuns<GPI:mode><GPF:mode>2): Remove.
19924 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19925 and floatuns conversions.
19926 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19927 and floatuns conversions.
19928 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19929 (w1,w2): New mode attributes for inequal width conversions.
19930
19931 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19932
19933 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19934 the output asm format.
19935
19936 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19937
19938 * config/aarch64/aarch64-simd.md
19939 (aarch64_cm<optab>di): Always split.
19940 (*aarch64_cm<optab>di): New.
19941 (aarch64_cmtstdi): Always split.
19942 (*aarch64_cmtstdi): New.
19943
19944 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19945
19946 PR tree-optimization/60823
19947 * omp-low.c (ipa_simd_modify_function_body): Go through
19948 all SSA_NAMEs and for those refering to vector arguments
19949 which are going to be replaced adjust SSA_NAME_VAR and,
19950 if it is a default definition, change it into a non-default
19951 definition assigned at the beginning of function from new_decl.
19952 (ipa_simd_modify_stmt_ops): Rewritten.
19953 * tree-dfa.c (set_ssa_default_def): When removing default def,
19954 check for NULL loc instead of NULL *loc.
19955
19956 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19957
19958 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19959 restrictions on core registers for DImode values in Thumb2.
19960
19961 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19962
19963 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19964 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19965
19966 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19967
19968 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19969 (*iordi_notzesidi_di): Likewise.
19970 (*iordi_notsesidi_di): Likewise.
19971
19972 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19973
19974 * config/arm/arm-protos.h (tune_params): New struct members.
19975 * config/arm/arm.c: Initialise tune_params per processor.
19976 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19977 for speed, based on new tune_params.
19978
19979 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19980
19981 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19982 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19983 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19984 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19985 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19986 (vrnda_f64): Likewise.
19987 (vrndi_f64): Likewise.
19988 (vrndm_f64): Likewise.
19989 (vrndn_f64): Likewise.
19990 (vrndp_f64): Likewise.
19991 (vrndx_f64): Likewise.
19992
19993 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19994
19995 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19996 GET_MODE_SIZE argument is enum machine_mode.
19997
19998 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19999
20000 PR target/60910
20001 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20002 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20003
20004 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20005
20006 PR middle-end/60281
20007 * asan.c (asan_emit_stack_protection): Force the base to align to
20008 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20009 appropriate bits if STRICT_ALIGNMENT.
20010 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20011 when asan is on.
20012 (expand_used_vars): Leave a space in the stack frame for alignment
20013 if STRICT_ALIGNMENT.
20014
20015 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20016
20017 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20018 than a gimple.
20019 (gimple_store_p): Likewise.
20020 (gimple_assign_load_p): Likewise.
20021 (gimple_assign_cast_p): Likewise.
20022 (gimple_clobber_p): Likewise.
20023
20024 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20025 rather than a gimple.
20026 (gimple_assign_cast_p): Likewise.
20027
20028 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20029
20030 PR target/60735
20031 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20032 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20033
20034 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20035 more debug information for E500 if -mdebug=reg.
20036
20037 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20038
20039 PR target/60909
20040 * config/i386/i386.c (ix86_expand_builtin)
20041 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20042 register for target RTX.
20043 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20044
20045 2014-04-18 Cong Hou <congh@google.com>
20046
20047 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20048 the widen-mult pattern by handling two operands with different sizes,
20049 and operands whose size is smaller than half of the result type.
20050
20051 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20052
20053 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20054 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20055 (do_estimate_edge_time): Compute it.
20056 * ipa-inline.c (want_inline_small_function_p): Bypass
20057 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20058
20059 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20060
20061 * ipa-inline.c (spec_rem): New static variable.
20062 (dump_overall_stats): New function.
20063 (dump_inline_stats): New function.
20064
20065 2014-04-18 Richard Henderson <rth@redhat.com>
20066
20067 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20068 to GET_MODE_SIZE, not a reg_class_t.
20069
20070 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20071
20072 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20073 (vsx_xxmrglw_<mode>): Likewise.
20074
20075 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20076
20077 PR target/60876
20078 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20079 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20080 (rs6000_init_hard_regno_mode_ok): Likewise.
20081
20082 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20083
20084 * ipa-inline.c (inline_small_functions): Account only non-cold
20085 functions.
20086 * doc/invoke.texi (inline-unit-growth): Update documentation.
20087
20088 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20089
20090 * config/rs6000/rs6000.md (addti3, subti3): New.
20091
20092 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20093
20094 PR target/60863
20095 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20096 comment. Check optimize_insn_for_size_p instead of
20097 optimize_insn_for_speed_p.
20098
20099 2014-04-17 Martin Jambor <mjambor@suse.cz>
20100
20101 * gimple-iterator.c (gsi_start_edge): New function.
20102 * gimple-iterator.h (gsi_start_edge): Declare.
20103 * tree-sra.c (single_non_eh_succ): New function.
20104 (disqualify_ops_if_throwing_stmt): Renamed to
20105 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20106 having one non-EH successor BB.
20107 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20108 generate loads into replacements.
20109 (sra_modify_assign): Likewise and and also use the simple path for
20110 such statements.
20111 (sra_modify_function_body): Commit statements on edges.
20112
20113 2014-04-17 Richard Biener <rguenther@suse.de>
20114
20115 PR middle-end/60849
20116 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20117 comparison results and add clarifying comment.
20118
20119 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20120
20121 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20122 (blank_mode): Initialize it.
20123 (emit_mode_size_inline, emit_mode_nunits_inline,
20124 emit_mode_inner_inline): New functions.
20125 (emit_insn_modes_h): Call them and surround their output with
20126 #if GCC_VERSION >= 4001 ... #endif.
20127 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20128 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20129 mode_* arrays if the argument is __builtin_constant_p.
20130 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20131 is enum machine_mode.
20132
20133 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20134
20135 * passes.c (opt_pass::execute): Adjust.
20136 (pass_manager::execute_pass_mode_switching): Likewise.
20137 (early_local_passes::execute): Likewise.
20138 (execute_one_pass): Pass cfun to the pass's execute method.
20139 * tree-pass.h (opt_pass::execute): Add function * argument.
20140 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20141 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20142 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20143 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20144 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20145 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20146 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20147 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20148 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20149 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20150 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20151 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20152 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20153 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20154 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20155 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20156 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20157 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20158 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20159 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20160 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20161 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20162 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20163 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20164 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20165 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20166 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20167 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20168 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20169 Adjust.
20170
20171 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20172
20173 * passes.c (opt_pass::gate): Take function * argument.
20174 (gate_all_early_local_passes): Merge into
20175 (early_local_passes::gate): this.
20176 (gate_all_early_optimizations): Merge into
20177 (all_early_optimizations::gate): this.
20178 (gate_all_optimizations): Mege into
20179 (all_optimizations::gate): this.
20180 (gate_all_optimizations_g): Merge into
20181 (all_optimizations_g::gate): this.
20182 (gate_rest_of_compilation): Mege into
20183 (rest_of_compilation::gate): this.
20184 (gate_postreload): Merge into
20185 (postreload::gate): this.
20186 (dump_one_pass): Pass cfun to the pass's gate method.
20187 (execute_ipa_summary_passes): Likewise.
20188 (execute_one_pass): Likewise.
20189 (ipa_write_summaries_2): Likewise.
20190 (ipa_write_optimization_summaries_1): Likewise.
20191 (ipa_read_summaries_1): Likewise.
20192 (ipa_read_optimization_summaries_1): Likewise.
20193 (execute_ipa_stmt_fixups): Likewise.
20194 * tree-pass.h (opt_pass::gate): Add function * argument.
20195 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20196 combine-stack-adj.c, combine.c, compare-elim.c,
20197 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20198 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20199 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20200 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20201 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20202 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20203 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20204 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20205 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20206 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20207 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20208 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20209 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20210 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20211 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20212 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20213 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20214 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20215 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20216 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20217 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20218 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20219 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20220 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20221 var-tracking.c, vtable-verify.c, web.c: Adjust.
20222
20223 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20224
20225 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20226 * configure: Regenerate.
20227
20228 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20229
20230 * passes.c (dump_one_pass): don't check pass->has_gate.
20231 (execute_ipa_summary_passes): Likewise.
20232 (execute_one_pass): Likewise.
20233 (ipa_write_summaries_2): Likewise.
20234 (ipa_write_optimization_summaries_1): Likewise.
20235 (ipa_read_optimization_summaries_1): Likewise.
20236 (execute_ipa_stmt_fixups): Likewise.
20237 * tree-pass.h (pass_data::has_gate): Remove.
20238 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20239 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20240 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20241 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20242 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20243 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20244 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20245 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20246 gimple-low.c, gimple-ssa-isolate-paths.c,
20247 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20248 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20249 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20250 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20251 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20252 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20253 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20254 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20255 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20256 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20257 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20258 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20259 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20260 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20261 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20262 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20263 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20264 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20265 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20266 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20267 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20268 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20269 Adjust.
20270
20271 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20272
20273 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20274 declaration.
20275 * passes.c (pass_manager::register_dump_files_1): Merge into
20276 (pass_manager::register_dump_files): this, and remove its handling of
20277 properties since the pass always has the properties anyway.
20278 (pass_manager::pass_manager): Adjust.
20279
20280 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20281
20282 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20283 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20284 dealing with properties.
20285 (pass_manager::register_dump_files): Adjust.
20286
20287 2014-03-20 Mark Wielaard <mjw@redhat.com>
20288
20289 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20290 then represent the bound as normal constant value.
20291
20292 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20293
20294 PR target/60847
20295 Forward port from 4.8 branch
20296 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20297
20298 * config/i386/bmiintrin.h (_blsi_u32): New.
20299 (_blsi_u64): Ditto.
20300 (_blsr_u32): Ditto.
20301 (_blsr_u64): Ditto.
20302 (_blsmsk_u32): Ditto.
20303 (_blsmsk_u64): Ditto.
20304 (_tzcnt_u32): Ditto.
20305 (_tzcnt_u64): Ditto.
20306
20307 2014-04-17 Kito Cheng <kito@0xlab.org>
20308
20309 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20310
20311 2014-04-17 Richard Biener <rguenther@suse.de>
20312
20313 PR middle-end/60849
20314 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20315 boolean results for comparisons.
20316
20317 2014-04-17 Richard Biener <rguenther@suse.de>
20318
20319 PR tree-optimization/60836
20320 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20321 initial PHI args to be gimple values.
20322
20323 2014-04-17 Richard Biener <rguenther@suse.de>
20324
20325 PR tree-optimization/60841
20326 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20327 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20328 of stmts to SLP build.
20329 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20330 (vect_analyze_slp): Likewise.
20331 (vect_analyze_slp_instance): Likewise.
20332 (vect_build_slp_tree): Limit overall SLP tree growth.
20333 * tree-vectorizer.h (vect_analyze_data_refs,
20334 vect_analyze_slp): Adjust prototypes.
20335
20336 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20337
20338 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20339 Silvermont.
20340
20341 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20342
20343 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20344 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20345 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20346 for TARGET_SLOW_PSHUFB
20347
20348 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20349
20350 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20351 * config/i386/i386.c (intel_cost): Ditto.
20352
20353 2014-04-17 Joey Ye <joey.ye@arm.com>
20354
20355 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20356
20357 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20358
20359 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20360 with -fuse-profile.
20361
20362 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20363
20364 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20365 (type_all_derivations_known_p): New predicate.
20366 (type_all_ctors_visible_p): New predicate.
20367 (type_possibly_instantiated_p): New predicate.
20368 (get_odr_type): Compute all_derivations_known.
20369 (dump_odr_type): Dump the flag.
20370 (maybe_record_type): Cleanup.
20371 (record_target_from_binfo): Add bases_to_consider array;
20372 record bases for types w/o instances and skip CXX destructor.
20373 (possible_polymorphic_call_targets_1): Add bases_to_consider
20374 and consider_construction parameters; check if type may have instance.
20375 (get_polymorphic_call_info): Set maybe_in_construction to true
20376 when we know nothing.
20377 (record_targets_from_bases): Skip CXX destructors; they are
20378 never called for types in construction.
20379 (possible_polymorphic_call_targets): Do not record target when
20380 type may not have instance.
20381
20382 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20383
20384 PR ipa/60854
20385 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20386 external aliases alive, too.
20387
20388 2014-04-16 Andrew Pinski <apinski@cavium.com>
20389
20390 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20391 definition.
20392
20393 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20394
20395 * final.c (compute_alignments): Do not apply loop alignment to a block
20396 falling through to the exit.
20397
20398 2014-04-16 Catherine Moore <clm@codesourcery.com>
20399
20400 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20401 Adjust constraints for microMIPS store patterns.
20402
20403 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20404
20405 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20406
20407 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20408
20409 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20410 (append_use): Run at -O0.
20411 (append_vdef): Likewise.
20412 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20413 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20414
20415 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20416
20417 PR tree-optimization/60844
20418 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20419 (propagate_op_to_single_use, remove_visited_stmt_chain,
20420 linearize_expr, repropagate_negates, reassociate_bb): Use it
20421 instead of gsi_remove.
20422
20423 2014-04-16 Martin Jambor <mjambor@suse.cz>
20424
20425 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20426 ipa_transforms_to_apply.
20427 (cgraph_function_versioning): Assert that old_node has empty
20428 ipa_transforms_to_apply.
20429 * trans-mem.c (ipa_tm_create_version): Likewise.
20430 * tree-inline.c (tree_function_versioning): Do not duplicate
20431 ipa_transforms_to_apply.
20432
20433 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20434
20435 PR target/60817
20436 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20437 x86_64-*-* cases.
20438 Pass necessary as flags on 64-bit Solaris/x86.
20439 Use lowercase relocs for x86_64-*-*.
20440 * configure: Regenerate.
20441
20442 2014-04-15 Jan Hubicka <jh@suse.cz>
20443
20444 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20445 (maybe_record_node, likely_target_p): Use it.
20446
20447 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20448
20449 PR target/60839
20450 Revert following patch
20451
20452 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20453
20454 PR target/60735
20455 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20456 software floating point or no floating point registers, do not
20457 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20458 in GPRs that occurs after we tested for GPRs that would never be
20459 true.
20460
20461 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20462 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20463 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20464 specifically allow DDmode, since that does not use the SPE SIMD
20465 instructions.
20466
20467 2014-03-21 Mark Wielaard <mjw@redhat.com>
20468
20469 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20470 as unsigned or int depending on type and value used.
20471
20472 2014-04-15 Richard Biener <rguenther@suse.de>
20473
20474 PR rtl-optimization/56965
20475 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20476 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20477 ... here.
20478 * alias.c (true_dependence_1): Do not call
20479 nonoverlapping_component_refs_p.
20480 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20481 nonoverlapping_component_refs_p.
20482 (indirect_refs_may_alias_p): Likewise.
20483
20484 2014-04-15 Teresa Johnson <tejohnson@google.com>
20485
20486 * cfg.c (dump_bb_info): Fix flags check.
20487 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20488
20489 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20490
20491 PR rtl-optimization/60663
20492 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20493 avoid 0 cost.
20494
20495 2014-04-15 Richard Biener <rguenther@suse.de>
20496
20497 * lto-streamer.h (LTO_major_version): Bump to 4.
20498
20499 2014-04-15 Richard Biener <rguenther@suse.de>
20500
20501 * common.opt (lto_partition_model): New enum.
20502 (flto-partition=): Merge separate options with a single with argument,
20503 add -flto-partition=one support.
20504 * flag-types.h (enum lto_partition_model): Declare.
20505 * opts.c (finish_options): Remove duplicate -flto-partition=
20506 option check.
20507 * lto-wrapper.c (run_gcc): Adjust.
20508
20509 2014-04-15 Richard Biener <rguenther@suse.de>
20510
20511 * alias.c (ncr_compar): New function.
20512 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20513
20514 2014-04-15 Richard Biener <rguenther@suse.de>
20515
20516 * alias.c (record_component_aliases): Do not walk BINFOs.
20517
20518 2014-04-15 Richard Biener <rguenther@suse.de>
20519
20520 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20521 Add struct function argument and adjust.
20522 (find_func_aliases_for_call): Likewise.
20523 (find_func_aliases): Likewise.
20524 (find_func_clobbers): Likewise.
20525 (intra_create_variable_infos): Likewise.
20526 (compute_points_to_sets): Likewise.
20527 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20528
20529 2014-04-15 Richard Biener <rguenther@suse.de>
20530
20531 * tree.c (iterative_hash_expr): Use enum tree_code_class
20532 to store TREE_CODE_CLASS.
20533 (tree_block): Likewise.
20534 (tree_set_block): Likewise.
20535 * tree.h (fold_build_pointer_plus_loc): Use
20536 convert_to_ptrofftype_loc.
20537
20538 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20539
20540 PR plugins/59335
20541 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20542 added in 4.9.
20543
20544 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20545
20546 * cfgloop.h (struct loop): Move force_vectorize down.
20547 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20548 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20549 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20550 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20551 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20552 * tree-core.h (enum annot_expr_kind): Add new kind values.
20553 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20554 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20555 kinds.
20556 * tree.def (ANNOTATE_EXPR): Tweak comment.
20557
20558 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20559
20560 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20561 cxa_pure_virtual).
20562
20563 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20564
20565 * tree.h (TYPE_IDENTIFIER): Declare.
20566 * tree.c (subrange_type_for_debug_p): Use it.
20567 * godump.c (go_format_type): Likewise.
20568 * dwarf2out.c (is_cxx_auto, modified_type_die,
20569 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20570 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20571
20572 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20573
20574 PR lto/60820
20575 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20576
20577 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20578
20579 * config/i386/i386.c (examine_argument): Return bool. Return true if
20580 parameter should be passed in memory.
20581 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20582 (construct_container): Update calls to examine_argument.
20583 (function_arg_advance_64): Ditto.
20584 (return_in_memory_32): Merge with ix86_return_in_memory.
20585 (return_in_memory_64): Ditto.
20586 (return_in_memory_ms_64): Ditto.
20587
20588 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20589
20590 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20591 * coverage.c (coverage_compute_profile_id): Handle externally visible
20592 symbols.
20593
20594 2014-04-14 Martin Jambor <mjambor@suse.cz>
20595
20596 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20597 DECL_DISREGARD_INLINE_LIMITS functions.
20598
20599 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20600
20601 PR target/60827
20602 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20603
20604 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20605
20606 PR target/60827
20607 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20608 optimize_insn_for_speed_p instead of
20609 optimize_function_for_speed_p.
20610
20611 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20612
20613 * doc/invoke.texi (free): Document AArch64.
20614
20615 2014-04-14 Richard Biener <rguenther@suse.de>
20616
20617 PR tree-optimization/60042
20618 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20619 (insert_into_preds_of_block): Do not prevent PHI insertion
20620 for REFERENCE exprs here ...
20621 (eliminate_dom_walker::before_dom_children): ... but prevent
20622 their use here under similar conditions when applied to the
20623 IL after PRE optimizations.
20624
20625 2014-04-14 Richard Biener <rguenther@suse.de>
20626
20627 * passes.def: Move early points-to after early SRA.
20628
20629 2014-04-14 Richard Biener <rguenther@suse.de>
20630
20631 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20632 check for which sign-changes we allow when forwarding
20633 a converted value into a switch.
20634
20635 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20636
20637 * stor-layout.c (place_field): Finalize non-constant offset for the
20638 field, if any.
20639
20640 2014-04-14 Richard Biener <rguenther@suse.de>
20641
20642 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20643 as argument.
20644 (expand_switch_using_bit_tests_p): Likewise.
20645 (process_switch): Compute and pass on speed_p based on the
20646 switch stmt.
20647 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20648 optimize_bb_for_speed_p.
20649
20650 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20651
20652 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20653 * function.h (struct function): Rename has_force_vect_loops into
20654 has_force_vectorize_loops.
20655 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20656 (input_struct_function_base): Likewise.
20657 * lto-streamer-out.c (output_cfg): Likewise.
20658 (output_struct_function_base): Likewise.
20659 * omp-low.c (expand_omp_simd): Likewise.
20660 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20661 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20662 (version_loop_for_if_conversion): Likewise.
20663 (tree_if_conversion): Likewise.
20664 (main_tree_if_conversion): Likewise.
20665 (gate_tree_if_conversion): Likewise.
20666 * tree-inline.c (copy_loops): Likewise.
20667 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20668 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20669 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20670 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20671 * tree-vectorizer.c (vectorize_loops): Likewise.
20672 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20673
20674 2014-04-14 Richard Biener <rguenther@suse.de>
20675
20676 PR lto/60720
20677 * lto-streamer-out.c (wrap_refs): New function.
20678 (lto_output): Wrap symbol references in global initializes in
20679 type-preserving MEM_REFs.
20680
20681 2014-04-14 Christian Bruel <christian.bruel@st.com>
20682
20683 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20684
20685 2014-04-14 Christian Bruel <christian.bruel@st.com>
20686
20687 * config/sh/sh.md (setmemqi): New expand pattern.
20688 * config/sh/sh.h (CLEAR_RATIO): Define.
20689 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20690 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20691
20692 2014-04-14 Richard Biener <rguenther@suse.de>
20693
20694 PR middle-end/55022
20695 * fold-const.c (negate_expr_p): Don't negate directional rounding
20696 division.
20697 (fold_negate_expr): Likewise.
20698
20699 2014-04-14 Richard Biener <rguenther@suse.de>
20700
20701 PR tree-optimization/59817
20702 PR tree-optimization/60453
20703 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20704 recursion to catch all CHRECs in the scalar evolution and restrict
20705 the predicate for the remains appropriately.
20706
20707 2014-04-12 Catherine Moore <clm@codesourcery.com>
20708
20709 * config/mips/constraints.md: Add new register constraint "kb".
20710 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20711 (*movhi_internal): Likewise.
20712 (*movqi_internal): Likewise.
20713 * config/mips/mips.h (M16_STORE_REGS): New register class.
20714 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20715 (REG_CLASS_CONTENTS): Likewise.
20716 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20717
20718 2014-04-11 Tobias Burnus <burnus@net-b.de>
20719
20720 PR c/60194
20721 * doc/invoke.texi (-Wformat-signedness): Document it.
20722 (Wformat=2): Mention that this enables -Wformat-signedness.
20723
20724 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20725
20726 * common/config/epiphany/epiphany-common.c
20727 (epiphany_option_optimization_table): Enable section anchors by
20728 default at -O1 or higher.
20729 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20730 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20731 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20732 carries no extra cost.
20733 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20734 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20735 * config/epiphany/predicates.md (memclob_operand): New predicate.
20736 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20737 Use memclob_operand predicate and X constraint for operand 3.
20738
20739 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20740
20741 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20742 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20743 its operands.
20744
20745 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20746
20747 PR rtl-optimization/60651
20748 * mode-switching.c (optimize_mode_switching): Make sure to emit
20749 sets of a lower numbered entity before sets of a higher numbered
20750 entity to a mode of the same or lower priority.
20751 When creating a seginfo for a basic block that starts with a code
20752 label, move the insertion point past the code label.
20753 (new_seginfo): Document and enforce requirement that
20754 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20755 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20756 * doc/tm.texi: Regenerate.
20757
20758 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20759
20760 PR target/60811
20761 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20762
20763 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20764
20765 * BASE-VER: Set to 4.10.0.
20766
20767 2014-04-11 Tobias Burnus <burnus@net-b.de>
20768
20769 PR other/59055
20770 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20771 * doc/gcc.texi (Service): Update description in the @menu
20772 * doc/invoke.texi (Option Summary): Remove misplaced and
20773 duplicated @menu.
20774
20775 2014-04-11 Steve Ellcey <sellcey@mips.com>
20776 Jakub Jelinek <jakub@redhat.com>
20777
20778 PR middle-end/60556
20779 * expr.c (convert_move): Use emit_store_flag_force instead of
20780 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20781 argument to it.
20782
20783 2014-04-11 Richard Biener <rguenther@suse.de>
20784
20785 PR middle-end/60797
20786 * varasm.c (assemble_alias): Avoid endless error reporting
20787 recursion by setting TREE_ASM_WRITTEN.
20788
20789 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20790
20791 * config/s390/s390.md: Add a splitter for NOT rtx.
20792
20793 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20794
20795 PR rtl-optimization/60663
20796 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20797
20798 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20799 Jakub Jelinek <jakub@redhat.com>
20800
20801 PR lto/60567
20802 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20803 flag from decl_node to node.
20804
20805 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20806
20807 PR debug/60655
20808 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20809 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20810 ameliorating the cases where it can be.
20811
20812 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20813
20814 Revert
20815 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20816
20817 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20818 (loadsync_<mode>): Change mode.
20819 (load_quadpti, store_quadpti): New.
20820 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20821 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20822 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20823
20824 2014-04-09 Cong Hou <congh@google.com>
20825
20826 PR testsuite/60773
20827 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20828 documentation.
20829
20830 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20831
20832 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20833 instead of vnor to exploit possible fusion opportunity in the
20834 future.
20835 (altivec_expand_vec_perm_const_le): Likewise.
20836
20837 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20838
20839 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20840 (loadsync_<mode>): Change mode.
20841 (load_quadpti, store_quadpti): New.
20842 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20843 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20844
20845 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20846
20847 PR target/60763
20848 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20849 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20850 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20851
20852 2014-04-08 Richard Biener <rguenther@suse.de>
20853
20854 PR middle-end/60706
20855 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20856 a 64bit widest int print double-int similar to on HWI64 hosts.
20857
20858 2014-04-08 Richard Biener <rguenther@suse.de>
20859
20860 PR tree-optimization/60785
20861 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20862 default defs properly.
20863
20864 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20865
20866 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20867 (Weffc++): Likewise.
20868
20869 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20870
20871 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20872 set completep to false rather than true.
20873
20874 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20875
20876 PR target/60504
20877 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20878 ARM_TARGET2_DWARF_FORMAT.
20879
20880 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20881
20882 PR target/60609
20883 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20884 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20885 ADDR_DIFF_VEC.
20886
20887 2014-04-07 Richard Biener <rguenther@suse.de>
20888
20889 PR tree-optimization/60766
20890 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20891 (may_eliminate_iv): Convert cand_value_at result to desired type.
20892
20893 2014-04-07 Jason Merrill <jason@redhat.com>
20894
20895 PR c++/60731
20896 * common.opt (-fno-gnu-unique): Add.
20897 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20898
20899 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20900
20901 * haifa-sched.c: Fix outdated function reference and minor
20902 grammar errors in introductory comment.
20903
20904 2014-04-07 Richard Biener <rguenther@suse.de>
20905
20906 PR middle-end/60750
20907 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20908 for noreturn calls.
20909 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20910
20911 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20912
20913 PR debug/55794
20914 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20915 size accounting for thunks.
20916 (pa_asm_output_mi_thunk): Use final_start_function() and
20917 final_end_function() to output function start and end directives.
20918
20919 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20920
20921 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20922 device specific ISA/ feature information. Remove short_sp and
20923 errata_skip ds. Add avr_device_specific_features enum to have device
20924 specific info.
20925 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20926 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20927 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20928 updated device specific info.
20929 * config/avr/avr-mcus.def: Merge device specific details to
20930 dev_attribute field.
20931 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20932 errata_skip.
20933 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20934 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20935 assembler if RMW isa supported by current device.
20936 * config/avr/genmultilib.awk: Update as device info structure changed.
20937 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20938
20939 2014-04-04 Cong Hou <congh@google.com>
20940
20941 PR tree-optimization/60656
20942 * tree-vect-stmts.c (supportable_widening_operation):
20943 Fix a bug that elements in a vector with vect_used_by_reduction
20944 property are incorrectly reordered when the operation on it is not
20945 consistant with the one in reduction operation.
20946
20947 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20948
20949 PR rtl-optimization/60155
20950 * gcse.c (record_set_data): New function.
20951 (single_set_gcse): New function.
20952 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20953 (hoist_code): Likewise.
20954 (get_pressure_class_and_nregs): Likewise.
20955
20956 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20957
20958 * explow.c (probe_stack_range): Emit a final optimization blockage.
20959
20960 2014-04-04 Anthony Green <green@moxielogic.com>
20961
20962 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20963 typos.
20964
20965 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20966
20967 PR ipa/59626
20968 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20969 flags are set only during streaming.
20970 * ipa.c (process_references, walk_polymorphic_call_targets,
20971 symtab_remove_unreachable_nodes): Drop bodies of always inline
20972 after early inlining.
20973 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20974
20975 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20976 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20977
20978 PR debug/60655
20979 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20980 containing a NOT.
20981
20982 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20983
20984 PR bootstrap/60743
20985 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20986 duration.
20987 (cortex_a53_fdivd): Likewise.
20988
20989 2014-04-04 Martin Jambor <mjambor@suse.cz>
20990
20991 PR ipa/60640
20992 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20993 Adjust all callers.
20994 * cgraph.c (clone_of_p): Also return true if thunks match.
20995 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20996 cgraph_function_or_thunk_node and an obsolete comment.
20997 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20998 file.
20999 (build_function_decl_skip_args): Likewise.
21000 (set_new_clone_decl_and_node_flags): New function.
21001 (duplicate_thunk_for_node): Likewise.
21002 (redirect_edge_duplicating_thunks): Likewise.
21003 (cgraph_clone_node): New parameter args_to_skip, pass it to
21004 redirect_edge_duplicating_thunks which is called instead of
21005 cgraph_redirect_edge_callee.
21006 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21007 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21008
21009 2014-04-04 Jeff Law <law@redhat.com>
21010
21011 PR target/60657
21012 * config/arm/predicates.md (const_int_I_operand): New predicate.
21013 (const_int_M_operand): Similarly.
21014 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21015 const_int_operand.
21016 (insv_t2, extv_reg, extzv_t2): Likewise.
21017 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21018 (pop_multiple_with_writeback_and_return): Likewise.
21019 (vfp_pop_multiple_with_writeback): Likewise
21020
21021 2014-04-04 Richard Biener <rguenther@suse.de>
21022
21023 PR ipa/60746
21024 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21025 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21026 non-GIMPLE_LABELs.
21027 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21028 * gimplify.c (gimple_add_tmp_var_fn): New function.
21029 * gimple-expr.h (create_tmp_reg_fn): Declare.
21030 * gimple-expr.c (create_tmp_reg_fn): New function.
21031 * gimple-low.c (record_vars_into): Don't change cfun.
21032 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21033 code generation without cfun.
21034
21035 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21036
21037 PR bootstrap/60719
21038 * Makefile.in (install-driver): Fix shell scripting.
21039
21040 2014-04-03 Cong Hou <congh@google.com>
21041
21042 PR tree-optimization/60505
21043 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21044 threshold of number of iterations below which no vectorization
21045 will be done.
21046 * tree-vect-loop.c (new_loop_vec_info):
21047 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21048 * tree-vect-loop.c (vect_analyze_loop_operations):
21049 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21050 * tree-vect-loop.c (vect_transform_loop):
21051 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21052 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21053 of iterations of the loop and see if we should build the epilogue.
21054
21055 2014-04-03 Richard Biener <rguenther@suse.de>
21056
21057 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21058 (streamer_tree_cache_create): Adjust.
21059 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21060 to allow optional nodes array.
21061 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21062 (streamer_tree_cache_append): Likewise.
21063 (streamer_tree_cache_create): Create nodes array optionally
21064 as specified by parameter.
21065 * lto-streamer-out.c (create_output_block): Avoid maintaining
21066 the node array in the writer cache.
21067 (DFS_write_tree): Remove assertion.
21068 (produce_asm_for_decls): Free the out decl state hash table early.
21069 * lto-streamer-in.c (lto_data_in_create): Adjust for
21070 streamer_tree_cache_create prototype change.
21071
21072 2014-04-03 Richard Biener <rguenther@suse.de>
21073
21074 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21075 set TREE_CHAIN to NULL_TREE.
21076
21077 2014-04-03 Richard Biener <rguenther@suse.de>
21078
21079 PR tree-optimization/60740
21080 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21081 over all GIMPLE_COND operands.
21082
21083 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21084
21085 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21086 (Weffc++): Remove Scott's numbering, merge lists and reference
21087 Wnon-virtual-dtor.
21088
21089 2014-04-03 Nick Clifton <nickc@redhat.com>
21090
21091 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21092 properly.
21093
21094 2014-04-03 Martin Jambor <mjambor@suse.cz>
21095
21096 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21097 mention gcc_unreachable before failing.
21098 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21099 removed symbols.
21100
21101 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21102
21103 PR ipa/60659
21104 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21105 inconsistent code and instead mark the context inconsistent.
21106 (possible_polymorphic_call_targets): For inconsistent contexts
21107 return empty complete list.
21108
21109 2014-04-02 Anthony Green <green@moxielogic.com>
21110
21111 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21112 (extendqisi2, extendhisi2): Define.
21113 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21114 (WCHAR_TYPE): Change to unsigned int.
21115
21116 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21117
21118 PR tree-optimization/60733
21119 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21120 insertion point for PHI candidates to be the end of the feeding
21121 block for the PHI argument.
21122
21123 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21124
21125 PR rtl-optimization/60650
21126 * lra-constraints.c (process_alt_operands): Decrease reject for
21127 earlyclobber matching.
21128
21129 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21130
21131 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21132
21133 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21134
21135 * config/spu/spu.c (pad_bb): Do not crash when the last
21136 insn is CODE_FOR_blockage.
21137
21138 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21139
21140 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21141 lies outside the target mode.
21142
21143 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21144
21145 PR target/60735
21146 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21147 software floating point or no floating point registers, do not
21148 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21149 in GPRs that occurs after we tested for GPRs that would never be
21150 true.
21151
21152 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21153 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21154 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21155 specifically allow DDmode, since that does not use the SPE SIMD
21156 instructions.
21157
21158 2014-04-02 Richard Biener <rguenther@suse.de>
21159
21160 PR middle-end/60729
21161 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21162 MODE_INTs. Properly use negv_optab.
21163 (expand_abs): Likewise.
21164
21165 2014-04-02 Richard Biener <rguenther@suse.de>
21166
21167 PR bootstrap/60719
21168 * Makefile.in (install-driver): Guard extra installs with special
21169 names properly.
21170
21171 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21172
21173 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21174 Document vec_vgbbd.
21175
21176 2014-04-01 Richard Henderson <rth@redhat.com>
21177
21178 PR target/60704
21179 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21180 alternative enabled before register allocation.
21181
21182 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21183
21184 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21185 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21186 typo.
21187 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21188 (nios2_got_address): Update nios2_large_got_address call site.
21189 (nios2_delegitimize_address): New function.
21190 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21191 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21192 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21193
21194 2014-04-01 Martin Husemann <martin@duskware.de>
21195
21196 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21197 for -mabi=32.
21198
21199 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21200
21201 PR rtl-optimization/60604
21202 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21203 check from register_operand.
21204 (register_operand): Redefine in terms of general_operand.
21205 (nonmemory_operand): Use register_operand for the non-constant cases.
21206
21207 2014-04-01 Richard Biener <rguenther@suse.de>
21208
21209 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21210
21211 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21212
21213 * doc/invoke.texi (mapp-regs): Clarify.
21214
21215 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21216
21217 * config/i386/avx512fintrin.h (__v32hi): Define type.
21218 (__v64qi): Likewise.
21219 (_mm512_set1_epi8): Define.
21220 (_mm512_set1_epi16): Define.
21221 (_mm512_set4_epi32): Define.
21222 (_mm512_set4_epi64): Define.
21223 (_mm512_set4_pd): Define.
21224 (_mm512_set4_ps): Define.
21225 (_mm512_setr4_epi64): Define.
21226 (_mm512_setr4_epi32): Define.
21227 (_mm512_setr4_pd): Define.
21228 (_mm512_setr4_ps): Define.
21229 (_mm512_setzero_epi32): Define.
21230
21231 2014-03-31 Martin Jambor <mjambor@suse.cz>
21232
21233 PR middle-end/60647
21234 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21235 callsite_arguments_match_p. Updated all callers. Also check types of
21236 corresponding formal parameters and actual arguments.
21237 (not_all_callers_have_enough_arguments_p) Renamed to
21238 some_callers_have_mismatched_arguments_p.
21239
21240 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21241
21242 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21243
21244 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21245
21246 PR target/60034
21247 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21248 section anchor.
21249
21250 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21251
21252 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21253 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21254 Split out
21255 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21256 Use FMAMODE_NOVF512 mode iterator.
21257 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21258 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21259 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21260 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21261 Split out
21262 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21263 Use VF_128_256 mode iterator.
21264 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21265 Ditto.
21266
21267 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21268
21269 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21270 static chain if needed.
21271
21272 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21273
21274 PR target/60697
21275 * lra-constraints.c (index_part_to_reg): New.
21276 (process_address): Use it.
21277
21278 2014-03-27 Jeff Law <law@redhat.com>
21279 Jakub Jelinek <jakub@redhat.com>
21280
21281 PR target/60648
21282 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21283 gen_rtx_{PLUS,MULT} to build up the address expression.
21284
21285 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21286 creating non-canonical RTL.
21287
21288 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21289
21290 PR ipa/60243
21291 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21292 functions; reorganize to make cheap checks first.
21293 (inline_small_functions): Do not estimate growth when dumping;
21294 it is expensive.
21295 * ipa-inline.h (inline_summary): Add min_size.
21296 (growth_likely_positive): New function.
21297 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21298 (set_cond_stmt_execution_predicate): Cleanup.
21299 (estimate_edge_size_and_time): Compute min_size.
21300 (estimate_calls_size_and_time): Likewise.
21301 (estimate_node_size_and_time): Likewise.
21302 (inline_update_overall_summary): Update min_size.
21303 (do_estimate_edge_time): Likewise.
21304 (do_estimate_edge_size): Update.
21305 (do_estimate_edge_hints): Update.
21306 (growth_likely_positive): New function.
21307
21308 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21309
21310 PR target/60693
21311 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21312 also if addr has VOIDmode.
21313
21314 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21315
21316 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21317 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21318 Declare extern.
21319 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21320 instructions as well as AdvancedSIMD loads.
21321
21322 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21323
21324 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21325 Use crypto_aese type.
21326 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21327 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21328 crypto_aese, crypto_aesmc. Move to types.md.
21329 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21330 crypto_aesmc.
21331 * config/arm/iterators.md (crypto_type): Likewise.
21332
21333 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21334
21335 * cgraph.c: Include expr.h and tree-dfa.h.
21336 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21337 remove LHS.
21338
21339 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21340
21341 PR target/60675
21342 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21343 regs from checking multi-reg pseudos.
21344
21345 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21346
21347 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21348
21349 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21350
21351 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21352 if it would clobber the stack pointer, even temporarily.
21353
21354 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21355
21356 * mode-switching.c: Make small adjustments to the top comment.
21357
21358 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21359
21360 * config/rs6000/constraints.md (wD constraint): New constraint to
21361 match the constant integer to get the top DImode/DFmode out of a
21362 vector in a VSX register.
21363
21364 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21365 match the constant integer to get the top DImode/DFmode out of a
21366 vector in a VSX register.
21367
21368 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21369 for ISA 2.07.
21370
21371 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21372 vbpermq builtins.
21373
21374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21375 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21376
21377 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21378 Optimize vec_extract of 64-bit values, where the value being
21379 extracted is in the top word, where we can use scalar
21380 instructions. Add direct move and store support. Combine the big
21381 endian/little endian vector select load support into a single insn.
21382 (vsx_extract_<mode>_internal1): Likewise.
21383 (vsx_extract_<mode>_internal2): Likewise.
21384 (vsx_extract_<mode>_load): Likewise.
21385 (vsx_extract_<mode>_store): Likewise.
21386 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21387 combined into vsx_extract_<mode>_load.
21388 (vsx_extract_<mode>_one_le): Likewise.
21389
21390 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21391 define the top 64-bit vector element.
21392
21393 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21394 constraint.
21395
21396 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21397 Document vec_vbpermq builtin.
21398
21399 PR target/60672
21400 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21401 enable use of xxsldwi and xxpermdi builtin functions.
21402 (vec_xxpermdi): Likewise.
21403
21404 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21405 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21406
21407 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21408
21409 PR rtl-optimization/60650
21410 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21411 first_p. Use it.
21412 (find_spills_for): New.
21413 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21414 Spill all pseudos on the second iteration.
21415
21416 2014-03-27 Marek Polacek <polacek@redhat.com>
21417
21418 PR c/50347
21419 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21420 types.
21421
21422 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21423
21424 * config/s390/s390.c (s390_can_use_return_insn): Check for
21425 call-saved FPRs on 31 bit.
21426
21427 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21428
21429 PR middle-end/60682
21430 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21431 if they need regimplification, just drop them instead of
21432 calling gimple_regimplify_operands on them.
21433
21434 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21435
21436 PR target/60580
21437 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21438 (aarch64_frame_pointer_required): Adjust logic.
21439 (aarch64_can_eliminate): Adjust logic.
21440 (aarch64_override_options_after_change): Adjust logic.
21441
21442 2014-03-27 Dehao Chen <dehao@google.com>
21443
21444 * ipa-inline.c (early_inliner): Update node's inline info.
21445
21446 2014-03-26 Dehao Chen <dehao@google.com>
21447
21448 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21449 compiler inserted conditional jumps for NAN float check.
21450
21451 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21452
21453 * ubsan.h (ubsan_create_data): Change second argument's type
21454 to const location_t *.
21455 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21456 _("<unknown>").
21457 (ubsan_create_data): Change second argument to const location_t *PLOC.
21458 Create Loc field whenever PLOC is non-NULL.
21459 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21460 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21461 callers.
21462
21463 PR other/59545
21464 * real.c (real_to_integer2): Change type of low to UHWI.
21465
21466 2014-03-26 Tobias Burnus <burnus@net-b.de>
21467
21468 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21469 (CILK_SELF_SPECS): New define.
21470 (driver_self_specs): Use it.
21471
21472 2014-03-26 Richard Biener <rguenther@suse.de>
21473
21474 * tree-pretty-print.c (percent_K_format): Implement special
21475 case for LTO and its stripped down BLOCK tree.
21476
21477 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21478
21479 PR sanitizer/60636
21480 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21481
21482 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21483 one range is range_int_cst_p, but not both, at least optimize
21484 addition/subtraction of 0 and multiplication by 0 or 1.
21485 * gimple-fold.c (gimple_fold_call): Fold
21486 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21487 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21488 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21489
21490 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21491
21492 PR rtl-optimization/60452
21493 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21494 <case REG>: Return 1 for invalid offsets from the frame pointer.
21495
21496 2014-03-26 Marek Polacek <polacek@redhat.com>
21497
21498 PR c/37428
21499 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21500 a structure/union.
21501
21502 2014-03-26 Marek Polacek <polacek@redhat.com>
21503
21504 PR c/39525
21505 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21506 field members.
21507
21508 2014-03-26 Marek Polacek <polacek@redhat.com>
21509
21510 PR other/59545
21511 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21512 multiplication in unsigned type.
21513
21514 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21515
21516 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21517
21518 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21519
21520 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21521
21522 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21523
21524 PR ipa/60315
21525 * cif-code.def (UNREACHABLE) New code.
21526 * ipa-inline.c (inline_small_functions): Skip edges to
21527 __builtlin_unreachable.
21528 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21529 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21530 predicate to __bulitin_unreachable.
21531 (set_cond_stmt_execution_predicate): Fix issue when
21532 invert_tree_comparison returns ERROR_MARK.
21533 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21534 propagate to inline clones.
21535 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21536 to unreachable.
21537 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21538 * cgraphclones.c (cgraph_clone_node): If call destination is already
21539 ureachable, do not redirect it back.
21540 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21541 unreachable.
21542
21543 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21544
21545 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21546 Do not modify inline clones.
21547
21548 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21549
21550 * config/i386/i386.md (general_sext_operand): New mode attr.
21551 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21552 don't generate (sign_extend (const_int)).
21553 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21554 operands[2]. Use We constraint instead of <i> and
21555 <general_sext_operand> predicate instead of <general_operand>.
21556 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21557 * config/i386/constraints.md (We): New constraint.
21558 * config/i386/predicates.md (x86_64_sext_operand,
21559 sext_operand): New predicates.
21560
21561 2014-03-25 Martin Jambor <mjambor@suse.cz>
21562
21563 PR ipa/60600
21564 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21565 inconsistent devirtualizations to __builtin_unreachable.
21566
21567 2014-03-25 Marek Polacek <polacek@redhat.com>
21568
21569 PR c/35449
21570 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21571
21572 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21573
21574 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21575 order of elements for big-endian.
21576
21577 2014-03-25 Richard Biener <rguenther@suse.de>
21578
21579 PR middle-end/60635
21580 * gimplify-me.c (gimple_regimplify_operands): Update the
21581 re-gimplifed stmt.
21582
21583 2014-03-25 Martin Jambor <mjambor@suse.cz>
21584
21585 PR ipa/59176
21586 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21587 (lto_output_varpool_node): Likewise.
21588 (input_overwrite_node): Likewise.
21589 (input_varpool_node): Likewise.
21590
21591 2014-03-25 Richard Biener <rguenther@suse.de>
21592
21593 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21594 (run_gcc): Likewise.
21595
21596 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21597
21598 * combine.c (simplify_compare_const): Add MODE argument.
21599 Handle mode_width 0 as very large mode_width.
21600 (try_combine, simplify_comparison): Adjust callers.
21601
21602 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21603 type to avoid signed integer overflow.
21604 * explow.c (plus_constant): Likewise.
21605
21606 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21607
21608 * doc/generic.texi: Correct typos.
21609
21610 2014-03-24 Tobias Burnus <burnus@net-b.de>
21611
21612 * doc/invoke.texi (-flto): Expand section about
21613 using static libraries with LTO.
21614
21615 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21616
21617 PR rtl-optimization/60501
21618 * optabs.def (addptr3_optab): New optab.
21619 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21620 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21621 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21622
21623 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21624
21625 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21626
21627 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21628
21629 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21630 _mm512_set1_pd.
21631
21632 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21633 (_mm256_undefined_ps): Define.
21634 (_mm256_undefined_pd): Define.
21635 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21636 (_mm_undefined_pd): Define.
21637 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21638 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21639 (_mm512_undefined_ps): Define.
21640 (_mm512_undefined_pd): Define.
21641 Use _mm*_undefined_*.
21642 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21643
21644 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21645
21646 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21647 (lshr_simd): DI mode added.
21648 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21649 (aarch64_ushr_simddi): Likewise.
21650 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21651 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21652 (vshrd_n_u64): Likewise.
21653
21654 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21655
21656 * Makefile.in (s-macro_list): Depend on cc1.
21657
21658 2014-03-23 Teresa Johnson <tejohnson@google.com>
21659
21660 * ipa-utils.c (ipa_print_order): Use specified dump file.
21661
21662 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21663
21664 PR rtl-optimization/60601
21665 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21666
21667 * gcc.c (eval_spec_function): Initialize save_growing_value.
21668
21669 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21670
21671 PR sanitizer/60613
21672 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21673 code == MINUS_EXPR, never swap op0 with op1.
21674
21675 * toplev.c (init_local_tick): Avoid signed integer multiplication
21676 overflow.
21677 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21678 shift by first operand's bitsize.
21679
21680 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21681
21682 PR target/60610
21683 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21684 redefine to 1 or 0.
21685 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21686 TARGET_ISA_64BIT_P(x).
21687
21688 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21689
21690 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21691 pattern for vector nor instead of subtract from splat(-1).
21692 (altivec_expand_vec_perm_const_le): Likewise.
21693
21694 2014-03-21 Richard Henderson <rth@twiddle.net>
21695
21696 PR target/60598
21697 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21698 related insns after epilogue_completed.
21699
21700 2014-03-21 Martin Jambor <mjambor@suse.cz>
21701
21702 PR ipa/59176
21703 * cgraph.h (symtab_node): New flag body_removed.
21704 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21705 when removing bodies.
21706 * symtab.c (dump_symtab_base): Dump body_removed flag.
21707 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21708 had their bodies removed.
21709
21710 2014-03-21 Martin Jambor <mjambor@suse.cz>
21711
21712 PR ipa/60419
21713 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21714 in the border.
21715
21716 2014-03-21 Richard Biener <rguenther@suse.de>
21717
21718 PR tree-optimization/60577
21719 * tree-core.h (struct tree_base): Document nothrow_flag use
21720 in DECL_NONALIASED.
21721 * tree.h (DECL_NONALIASED): New.
21722 (may_be_aliased): Adjust.
21723 * coverage.c (build_var): Set DECL_NONALIASED.
21724
21725 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21726
21727 * expr.c (expand_expr_real_1): Remove outdated comment.
21728
21729 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21730
21731 PR middle-end/60597
21732 * ira.c (adjust_cleared_regs): Call copy_rtx on
21733 *reg_equiv[REGNO (loc)].src_p before passing it to
21734 simplify_replace_fn_rtx.
21735
21736 PR target/60568
21737 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21738 into CONST, put pic register as first operand of PLUS. Use
21739 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21740
21741 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21742
21743 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21744
21745 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21746
21747 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21748 around for store forwarding issue in the FPU on the UT699.
21749 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21750 loads and operations if -mfix-ut699 is specified.
21751 (divtf3_hq): Tweak attribute.
21752 (sqrttf2_hq): Likewise.
21753
21754 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21755
21756 * calls.c (store_one_arg): Remove incorrect const qualification on the
21757 type of the temporary.
21758 * cfgexpand.c (expand_return): Likewise.
21759 * expr.c (expand_constructor): Likewise.
21760 (expand_expr_real_1): Likewise.
21761
21762 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21763
21764 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21765 of parts.
21766
21767 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21768
21769 PR target/60039
21770 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21771
21772 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21773
21774 * config/arm/aarch-common-protos.h
21775 (alu_cost_table): Fix spelling of "extend".
21776 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21777
21778 2014-03-19 Richard Biener <rguenther@suse.de>
21779
21780 PR middle-end/60553
21781 * tree-core.h (tree_type_common): Re-order pointer members
21782 to reduce recursion depth during GC walks.
21783
21784 2014-03-19 Marek Polacek <polacek@redhat.com>
21785
21786 PR sanitizer/60569
21787 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21788 before accessing it.
21789
21790 2014-03-19 Richard Biener <rguenther@suse.de>
21791
21792 PR lto/59543
21793 * lto-streamer-in.c (input_function): In WPA stage do not drop
21794 debug stmts.
21795
21796 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21797
21798 PR tree-optimization/60559
21799 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21800 with build_zero_cst assignment.
21801
21802 2014-03-18 Kai Tietz <ktietz@redhat.com>
21803
21804 PR rtl-optimization/56356
21805 * sdbout.c (sdbout_parms): Verify that parms'
21806 incoming argument is valid.
21807 (sdbout_reg_parms): Likewise.
21808
21809 2014-03-18 Richard Henderson <rth@redhat.com>
21810
21811 PR target/60562
21812 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21813 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21814 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21815
21816 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21817
21818 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21819 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21820 Italicize plugin event names in description. Explain that
21821 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21822 Remind that no GCC functions should be called after PLUGIN_FINISH.
21823 Explain what pragmas with expansion are.
21824
21825 2014-03-18 Martin Liska <mliska@suse.cz>
21826
21827 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21828 gimple call statement is update.
21829 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21830 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21831
21832 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21833
21834 PR sanitizer/60557
21835 * ubsan.c (ubsan_instrument_unreachable): Call
21836 initialize_sanitizer_builtins.
21837 (ubsan_pass): Likewise.
21838
21839 PR sanitizer/60535
21840 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21841 varpool_finalize_decl instead of rest_of_decl_compilation.
21842
21843 2014-03-18 Richard Biener <rguenther@suse.de>
21844
21845 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21846 by using bitmap_and_compl instead of bitmap_and_compl_into.
21847 (df_rd_transfer_function): Likewise.
21848
21849 2014-03-18 Richard Biener <rguenther@suse.de>
21850
21851 * doc/lto.texi (fresolution): Fix typo.
21852
21853 2014-03-18 Richard Biener <rguenther@suse.de>
21854
21855 * doc/invoke.texi (flto): Update for changes in 4.9.
21856
21857 2014-03-18 Richard Biener <rguenther@suse.de>
21858
21859 * doc/loop.texi: Remove section on the removed lambda framework.
21860 Update loop docs with recent changes in preserving loop structure.
21861
21862 2014-03-18 Richard Biener <rguenther@suse.de>
21863
21864 * doc/lto.texi (-fresolution): Document.
21865
21866 2014-03-18 Richard Biener <rguenther@suse.de>
21867
21868 * doc/contrib.texi: Adjust my name.
21869
21870 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21871
21872 PR ipa/58721
21873 * internal-fn.c: Include diagnostic-core.h.
21874 (expand_BUILTIN_EXPECT): New function.
21875 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21876 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21877 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21878 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21879 IFN_BUILTIN_EXPECT.
21880 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21881 Revert 3 argument __builtin_expect code.
21882 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21883 * gimple-fold.c (gimple_fold_call): Likewise.
21884 * tree.h (fold_builtin_expect): New prototype.
21885 * builtins.c (build_builtin_expect_predicate): Add predictor
21886 argument, if non-NULL, create 3 argument __builtin_expect.
21887 (fold_builtin_expect): No longer static. Add ARG2 argument,
21888 pass it through to build_builtin_expect_predicate.
21889 (fold_builtin_2): Adjust caller.
21890 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21891 * internal-fn.def (BUILTIN_EXPECT): New.
21892
21893 2014-03-18 Tobias Burnus <burnus@net-b.de>
21894
21895 PR ipa/58721
21896 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21897 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21898 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21899
21900 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21901
21902 PR ipa/58721
21903 * predict.c (combine_predictions_for_bb): Fix up formatting.
21904 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21905 fill what it points to if non-NULL.
21906 (tree_predict_by_opcode): Adjust caller, use the predictor.
21907 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21908
21909 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21910
21911 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21912 proper constant for the store mode.
21913
21914 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21915
21916 * symtab.c (change_decl_assembler_name): Fix transparent alias
21917 chain construction.
21918
21919 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21920
21921 * config/aarch64/aarch64.c: Correct the comments about the
21922 aarch64 stack layout.
21923
21924 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21925
21926 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21927 check for GF_OMP_FOR_KIND_FOR.
21928
21929 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21930
21931 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21932 ymm and zmm register names.
21933
21934 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21935
21936 PR target/60516
21937 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21938 note creation for the 2010-08-31 changes.
21939
21940 2014-03-17 Marek Polacek <polacek@redhat.com>
21941
21942 PR middle-end/60534
21943 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21944 as -fno-tree-loop-vectorize.
21945 (expand_omp_simd): Likewise.
21946
21947 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21948
21949 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21950 (eligible_for_call_delay): New prototype.
21951 * config/sparc/sparc.c (tls_call_delay): Rename into...
21952 (eligible_for_call_delay): ...this. Return false if the instruction
21953 cannot be put in the delay slot of a branch.
21954 (eligible_for_restore_insn): Simplify.
21955 (eligible_for_return_delay): Return false if the instruction cannot be
21956 put in the delay slot of a branch and simplify.
21957 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21958 put in the delay slot of a branch.
21959 * config/sparc/sparc.md (fix_ut699): New attribute.
21960 (tls_call_delay): Delete.
21961 (in_call_delay): Reimplement.
21962 (eligible_for_sibcall_delay): Rename into...
21963 (in_sibcall_delay): ...this.
21964 (eligible_for_return_delay): Rename into...
21965 (in_return_delay): ...this.
21966 (in_branch_delay): Reimplement.
21967 (in_uncond_branch_delay): Delete.
21968 (in_annul_branch_delay): Delete.
21969
21970 2014-03-14 Richard Henderson <rth@redhat.com>
21971
21972 PR target/60525
21973 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21974 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21975 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21976 (floathi splitters): Remove.
21977 (float<SWI48x>xf2): New pattern.
21978 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21979 code that tried to handle DImode for 32-bit, but which was excluded
21980 by the pattern's condition. Drop allocation of stack temporary.
21981 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21982 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21983 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21984 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21985 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21986 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21987 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21988 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21989 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21990 (*float<SWI48x><X87MODEF>2_i387): Remove.
21991 (all float _with_temp splitters): Remove.
21992 (*float<SWI48x><MODEF>2_i387): New pattern.
21993 (*float<SWI48><MODEF>2_sse): New pattern.
21994 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21995 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21996
21997 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21998 Marek Polacek <polacek@redhat.com>
21999
22000 PR middle-end/60484
22001 * common.opt (dump_base_name_prefixed): New Variable.
22002 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22003 if x_dump_base_name_prefixed is already set, set it at the end.
22004
22005 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22006
22007 PR rtl-optimization/60508
22008 * lra-constraints.c (get_reload_reg): Add new parameter
22009 in_subreg_p.
22010 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22011 Pass the new parameter values.
22012
22013 2014-03-14 Richard Biener <rguenther@suse.de>
22014
22015 * common.opt: Revert unintented changes from r205065.
22016 * opts.c: Likewise.
22017
22018 2014-03-14 Richard Biener <rguenther@suse.de>
22019
22020 PR middle-end/60518
22021 * cfghooks.c (split_block): Properly adjust all loops the
22022 block was a latch of.
22023
22024 2014-03-14 Martin Jambor <mjambor@suse.cz>
22025
22026 PR lto/60461
22027 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22028 and simplify it.
22029
22030 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22031
22032 PR target/59396
22033 * config/avr/avr.c (avr_set_current_function): Pass function name
22034 through default_strip_name_encoding before sanity checking instead
22035 of skipping the first char of the assembler name.
22036
22037 2014-03-13 Richard Henderson <rth@redhat.com>
22038
22039 PR debug/60438
22040 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22041 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22042 * config/i386/i386-protos.h: Likewise.
22043 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22044 in the expander instead of a splitter.
22045 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22046 any possibility of requiring a memory.
22047 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22048 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22049 (fp branch splitters): Update for ix86_split_fp_branch.
22050 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22051 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22052 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22053 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22054 (*fop_<MODEF>_3_i387): Likewise.
22055 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22056 (splitters for the fop_* register patterns): Remove.
22057 (fscalexf4_i387): Rename from *fscalexf4_i387.
22058 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22059
22060 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22061
22062 PR tree-optimization/59779
22063 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22064 type for bitsize and maxsize instead of HOST_WIDE_INT.
22065
22066 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22067
22068 PR rtl-optimization/57320
22069 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22070 the CFG after thread_prologue_and_epilogue_insns.
22071
22072 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22073
22074 PR rtl-optimization/57189
22075 * lra-constraints.c (process_alt_operands): Disfavor spilling
22076 vector pseudos.
22077
22078 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22079
22080 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22081
22082 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22083
22084 PR tree-optimization/59025
22085 PR middle-end/60418
22086 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22087 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22088
22089 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22090
22091 PR target/60486
22092 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22093 calls of avr_out_plus_1.
22094
22095 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22096
22097 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22098 BB's single pred and update the father loop's latch info later.
22099
22100 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22101
22102 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22103 (VEC_M): Likewise.
22104 (VEC_N): Likewise.
22105 (VEC_R): Likewise.
22106 (VEC_base): Likewise.
22107 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22108 registers, we need to swap double words in little endian mode.
22109
22110 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22111 to be a container mode for 128-bit integer operations added in ISA
22112 2.07. Unlike TImode and PTImode, the preferred register set is
22113 the Altivec/VMX registers for the 128-bit operations.
22114
22115 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22116 declarations.
22117 (rs6000_split_128bit_ok_p): Likewise.
22118
22119 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22120 macros for creating ISA 2.07 normal and overloaded builtin
22121 functions with 3 arguments.
22122 (BU_P8V_OVERLOAD_3): Likewise.
22123 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22124 for use as overloaded functions.
22125 (VPERM_1TI_UNS): Likewise.
22126 (VSEL_1TI): Likewise.
22127 (VSEL_1TI_UNS): Likewise.
22128 (ST_INTERNAL_1ti): Likewise.
22129 (LD_INTERNAL_1ti): Likewise.
22130 (XXSEL_1TI): Likewise.
22131 (XXSEL_1TI_UNS): Likewise.
22132 (VPERM_1TI): Likewise.
22133 (VPERM_1TI_UNS): Likewise.
22134 (XXPERMDI_1TI): Likewise.
22135 (SET_1TI): Likewise.
22136 (LXVD2X_V1TI): Likewise.
22137 (STXVD2X_V1TI): Likewise.
22138 (VEC_INIT_V1TI): Likewise.
22139 (VEC_SET_V1TI): Likewise.
22140 (VEC_EXT_V1TI): Likewise.
22141 (EQV_V1TI): Likewise.
22142 (NAND_V1TI): Likewise.
22143 (ORC_V1TI): Likewise.
22144 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22145 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22146 overloaded builtin.
22147 (VADDUQM): Likewise.
22148 (VSUBCUQ): Likewise.
22149 (VADDEUQM): Likewise.
22150 (VADDECUQ): Likewise.
22151 (VSUBEUQM): Likewise.
22152 (VSUBECUQ): Likewise.
22153
22154 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22155 __int128_t and __uint128_t types.
22156 (__uint128_type): Likewise.
22157 (altivec_categorize_keyword): Add support for vector __int128_t,
22158 vector __uint128_t, vector __int128, and vector unsigned __int128
22159 as a container type for TImode operations that need to be done in
22160 VSX/Altivec registers.
22161 (rs6000_macro_to_expand): Likewise.
22162 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22163 to support 128-bit integer instructions vaddcuq, vadduqm,
22164 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22165 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22166
22167 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22168 for V1TImode, and set up preferences to use VSX/Altivec registers.
22169 Setup VSX reload handlers.
22170 (rs6000_debug_reg_global): Likewise.
22171 (rs6000_init_hard_regno_mode_ok): Likewise.
22172 (rs6000_preferred_simd_mode): Likewise.
22173 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22174 (easy_altivec_constant): Likewise.
22175 (output_vec_const_move): Likewise.
22176 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22177 simple move.
22178 (rs6000_expand_vector_extract): Likewise.
22179 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22180 addressing.
22181 (rs6000_const_vec): Add support for V1TImode.
22182 (rs6000_emit_le_vsx_load): Swap double words when loading or
22183 storing TImode/V1TImode.
22184 (rs6000_emit_le_vsx_store): Likewise.
22185 (rs6000_emit_le_vsx_move): Likewise.
22186 (rs6000_emit_move): Add support for V1TImode.
22187 (altivec_expand_ld_builtin): Likewise.
22188 (altivec_expand_st_builtin): Likewise.
22189 (altivec_expand_vec_init_builtin): Likewise.
22190 (altivec_expand_builtin): Likewise.
22191 (rs6000_init_builtins): Add support for V1TImode type. Add
22192 support for ISA 2.07 128-bit integer builtins. Define type names
22193 for the VSX/Altivec vector types.
22194 (altivec_init_builtins): Add support for overloaded vector
22195 functions with V1TImode type.
22196 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22197 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22198 external function.
22199 (rs6000_split_128bit_ok_p): Likewise.
22200 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22201 __int128_t and vector __uint128_t.
22202
22203 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22204 and mode attributes.
22205 (VSX_M): Likewise.
22206 (VSX_M2): Likewise.
22207 (VSm): Likewise.
22208 (VSs): Likewise.
22209 (VSr): Likewise.
22210 (VSv): Likewise.
22211 (VS_scalar): Likewise.
22212 (VS_double): Likewise.
22213 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22214
22215 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22216 we support the ISA 2.07 128-bit integer arithmetic instructions.
22217 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22218 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22219 and TImode types for use with the builtin functions.
22220 (V1TI_type_node): Likewise.
22221 (unsigned_V1TI_type_node): Likewise.
22222 (intTI_type_internal_node): Likewise.
22223 (uintTI_type_internal_node): Likewise.
22224
22225 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22226 128-bit builtin functions.
22227 (UNSPEC_VADDEUQM): Likewise.
22228 (UNSPEC_VADDECUQ): Likewise.
22229 (UNSPEC_VSUBCUQ): Likewise.
22230 (UNSPEC_VSUBEUQM): Likewise.
22231 (UNSPEC_VSUBECUQ): Likewise.
22232 (VM): Add V1TImode to vector mode iterators.
22233 (VM2): Likewise.
22234 (VI_unit): Likewise.
22235 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22236 (altivec_vaddcuq): Likewise.
22237 (altivec_vsubuqm): Likewise.
22238 (altivec_vsubcuq): Likewise.
22239 (altivec_vaddeuqm): Likewise.
22240 (altivec_vaddecuq): Likewise.
22241 (altivec_vsubeuqm): Likewise.
22242 (altivec_vsubecuq): Likewise.
22243
22244 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22245 mode iterators.
22246 (BOOL_128): Likewise.
22247 (BOOL_REGS_OUTPUT): Likewise.
22248 (BOOL_REGS_OP1): Likewise.
22249 (BOOL_REGS_OP2): Likewise.
22250 (BOOL_REGS_UNARY): Likewise.
22251 (BOOL_REGS_AND_CR0): Likewise.
22252
22253 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22254 128-bit integer builtin support.
22255 (vec_vadduqm): Likewise.
22256 (vec_vaddecuq): Likewise.
22257 (vec_vaddeuqm): Likewise.
22258 (vec_vsubecuq): Likewise.
22259 (vec_vsubeuqm): Likewise.
22260 (vec_vsubcuq): Likewise.
22261 (vec_vsubuqm): Likewise.
22262
22263 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22264 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22265 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22266 128-bit integer add/subtract to ISA 2.07.
22267
22268 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22269
22270 * config/arc/arc.c (arc_predicate_delay_insns):
22271 Fix third argument passed to conditionalize_nonjump.
22272
22273 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22274
22275 * config/aarch64/aarch64-builtins.c
22276 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22277 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22278 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22279 instead of __builtin_lfloor.
22280 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22281
22282 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22283
22284 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22285 (tree_ssa_ifcombine_bb_1): New function.
22286 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22287 is an empty forwarder block to then_bb or vice versa and then_bb
22288 and else_bb are effectively swapped.
22289
22290 2014-03-12 Christian Bruel <christian.bruel@st.com>
22291
22292 PR target/60264
22293 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22294 REG_CFA_DEF_CFA note.
22295 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22296 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22297
22298 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22299
22300 PR tree-optimization/60454
22301 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22302
22303 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22304
22305 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22306 Do not define target_cpu_default2 to generic.
22307 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22308 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22309 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22310
22311 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22312 Marc Glisse <marc.glisse@inria.fr>
22313
22314 PR tree-optimization/60502
22315 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22316 instead of build_low_bits_mask.
22317
22318 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22319
22320 PR middle-end/60482
22321 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22322 if there are multiple uses, but op doesn't live on E edge.
22323 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22324 clobber stmts before __builtin_unreachable.
22325
22326 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22327
22328 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22329 hard_frame_pointer_rtx.
22330 * cse.c (cse_insn): Remove volatile check.
22331 * cselib.c (cselib_process_insn): Likewise.
22332 * dse.c (scan_insn): Likewise.
22333
22334 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22335
22336 * config/arc/arc.c (conditionalize_nonjump): New function,
22337 broken out of ...
22338 (arc_ifcvt): ... this.
22339 (arc_predicate_delay_insns): Use it.
22340
22341 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22342
22343 * config/arc/predicates.md (extend_operand): During/after reload,
22344 allow const_int_operand.
22345 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22346 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22347 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22348 to "i".
22349 (umulsi3_highpart_i): Likewise.
22350
22351 2014-03-11 Richard Biener <rguenther@suse.de>
22352
22353 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22354 Add asserts to guard possible wrong-code bugs.
22355
22356 2014-03-11 Richard Biener <rguenther@suse.de>
22357
22358 PR tree-optimization/60429
22359 PR tree-optimization/60485
22360 * tree-ssa-structalias.c (set_union_with_increment): Properly
22361 take into account all fields that overlap the shifted vars.
22362 (do_sd_constraint): Likewise.
22363 (do_ds_constraint): Likewise.
22364 (get_constraint_for_ptr_offset): Likewise.
22365
22366 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22367
22368 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22369 (nios2_compute_frame_layout):
22370 Add calculation of cfun->machine->fp_save_offset.
22371 (nios2_expand_prologue): Correct setting of frame pointer register
22372 in prologue.
22373 (nios2_expand_epilogue): Update recovery of stack pointer from
22374 frame pointer accordingly.
22375 (nios2_initial_elimination_offset): Update calculation of offset
22376 for eliminating to HARD_FRAME_POINTER_REGNUM.
22377
22378 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22379
22380 PR ipa/60457
22381 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22382 cgraph_get_create_node on VAR_DECLs.
22383
22384 2014-03-10 Richard Biener <rguenther@suse.de>
22385
22386 PR middle-end/60474
22387 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22388
22389 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22390
22391 * config/vms/vms.opt (vms_float_format): New variable.
22392
22393 2014-03-08 Tobias Burnus <burnus@net-b.de>
22394
22395 * doc/invoke.texi (-fcilkplus): Update implementation status.
22396
22397 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22398 Richard Biener <rguenther@suse.de>
22399
22400 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22401 consistently accross all TUs.
22402 (run_gcc): Enable -fshort-double automatically at link at link-time
22403 and disallow override.
22404
22405 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22406
22407 PR target/58271
22408 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22409 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22410 if they can't be used.
22411
22412 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22413
22414 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22415 for Solaris 11/x86 ld.
22416 * configure: Regenerate.
22417
22418 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22419
22420 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22421 (LIB_TLS_SPEC): Save as ld_tls_libs.
22422 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22423 (HAVE_AS_IX86_TLSLDM): New test.
22424 * configure, config.in: Regenerate.
22425 * config/i386/i386.c (legitimize_tls_address): Fall back to
22426 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22427 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22428 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22429 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22430
22431 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22432
22433 * common.opt (fira-loop-pressure): Mark as optimization.
22434
22435 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22436
22437 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22438 an OpenMP mappable type.
22439
22440 2014-03-06 Matthias Klose <doko@ubuntu.com>
22441
22442 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22443 MULTILIB_OSDIRNAMES is not defined.
22444
22445 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22446 Meador Inge <meadori@codesourcery.com>
22447
22448 PR target/58595
22449 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22450 (arm_legitimize_address): Call legitimize_tls_address for any
22451 arm_tls_referenced_p expression, handle constant addend. Call it
22452 before testing for !TARGET_ARM.
22453 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22454
22455 2014-03-06 Richard Biener <rguenther@suse.de>
22456
22457 PR middle-end/60445
22458 PR lto/60424
22459 PR lto/60427
22460 Revert
22461 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22462
22463 * tree-streamer.c (record_common_node): Assert we don't record
22464 nodes with type double.
22465 (preload_common_node): Skip type double, complex double and double
22466 pointer since it is now frontend dependent due to fshort-double option.
22467
22468 2014-03-06 Richard Biener <rguenther@suse.de>
22469
22470 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22471 or -fno-lto is specified and the linker has full plugin support.
22472 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22473 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22474 * lto-wrapper.c (merge_and_complain): Merge compile-time
22475 optimization levels.
22476 (run_gcc): And pass it through to the link options.
22477
22478 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22479
22480 PR debug/60381
22481 Revert:
22482 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22483 PR debug/59992
22484 * cselib.c (remove_useless_values): Skip to avoid quadratic
22485 behavior if the condition moved from...
22486 (cselib_process_insn): ... here holds.
22487
22488 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22489
22490 PR plugins/59335
22491 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22492 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22493
22494 PR plugins/59335
22495 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22496 (TM_H): Add x86-tune.def.
22497
22498 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22499
22500 * config/aarch64/aarch64.c (generic_tunings):
22501 Use cortexa57_extra_costs.
22502
22503 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22504
22505 PR lto/60404
22506 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22507 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22508 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22509 cost for in_lto_p.
22510
22511 2014-03-04 Heiher <r@hev.cc>
22512
22513 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22514 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22515
22516 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22517
22518 * config/i386/predicates.md (const2356_operand): Change to ...
22519 (const2367_operand): ... this.
22520 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22521 const2367_operand.
22522 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22523 (*avx512pf_scatterpf<mode>sf): Ditto.
22524 (avx512pf_scatterpf<mode>df): Ditto.
22525 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22526 (*avx512pf_scatterpf<mode>df): Ditto.
22527 * config/i386/i386.c (ix86_expand_builtin): Update
22528 incorrect hint operand error message.
22529
22530 2014-03-04 Richard Biener <rguenther@suse.de>
22531
22532 * lto-section-in.c (lto_get_section_data): Fix const cast.
22533
22534 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22535
22536 * tree-streamer.c (record_common_node): Assert we don't record
22537 nodes with type double.
22538 (preload_common_node): Skip type double, complex double and double
22539 pointer since it is now frontend dependent due to fshort-double option.
22540
22541 2014-03-04 Richard Biener <rguenther@suse.de>
22542
22543 PR lto/60405
22544 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22545 (lto_input_toplevel_asms): Likewise.
22546 * lto-section-in.c (lto_get_section_data): Instead do it here
22547 for every section.
22548
22549 2014-03-04 Richard Biener <rguenther@suse.de>
22550
22551 PR tree-optimization/60382
22552 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22553 dead PHIs a reduction.
22554
22555 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22556
22557 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22558 hint value.
22559 (_mm_prefetch): Move out of GCC target("sse") pragma.
22560 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22561 GCC target("prfchw") pragma.
22562 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22563 for locality <= 2.
22564 * config/i386/i386.c (ix86_option_override_internal): Enable
22565 -mprfchw with -mprefetchwt1.
22566
22567 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22568
22569 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22570 Mark as varying.
22571
22572 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22573
22574 * opts.h (CL_PCH_IGNORE): Define.
22575 * targhooks.c (option_affects_pch_p):
22576 Return false for options that have CL_PCH_IGNORE set.
22577 * opt-functions.awk: Process PchIgnore.
22578 * doc/options.texi: Document PchIgnore.
22579
22580 * config/arc/arc.opt (misize): Add PchIgnore property.
22581
22582 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22583
22584 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22585 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22586 constraint on constants to permit them being loaded into
22587 GENERAL_REGS or BASE_REGS.
22588
22589 2014-03-03 Nick Clifton <nickc@redhat.com>
22590
22591 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22592 anti-cacnonical alternatives.
22593 (negandhi3_real): New pattern.
22594 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22595
22596 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22597
22598 * config/avr/avr-mcus.def: Remove atxmega16x1.
22599 * config/avr/avr-tables.opt: Regenerate.
22600 * config/avr/t-multilib: Regenerate.
22601 * doc/avr-mmcu.texi: Regenerate.
22602
22603 2014-03-03 Tobias Grosser <tobias@grosser.es>
22604 Mircea Namolaru <mircea.namolaru@inria.fr>
22605
22606 PR tree-optimization/58028
22607 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22608 scalar dimensions.
22609
22610 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22611
22612 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22613 not handled by recognizers.
22614
22615 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22616
22617 PR middle-end/60175
22618 * function.c (expand_function_end): Don't emit
22619 clobber_return_register sequence if clobber_after is a BARRIER.
22620 * cfgexpand.c (construct_exit_block): Append instructions before
22621 return_label to prev_bb.
22622
22623 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22624
22625 * config/rs6000/constraints.md: Document reserved use of "wc".
22626
22627 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22628
22629 PR ipa/60150
22630 * ipa.c (function_and_variable_visibility): When dissolving comdat
22631 group, also set all symbols to local.
22632
22633 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22634
22635 PR ipa/60306
22636
22637 Revert:
22638 2013-12-14 Jan Hubicka <jh@suse.cz>
22639 PR middle-end/58477
22640 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22641
22642 2014-03-02 Jon Beniston <jon@beniston.com>
22643
22644 PR bootstrap/48230
22645 PR bootstrap/50927
22646 PR bootstrap/52466
22647 PR target/46898
22648 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22649 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22650 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22651 (simple_return, *simple_return): New patterns
22652 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22653 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22654
22655 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22656
22657 * dwarf2out.c (gen_subprogram_die): Tidy.
22658
22659 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22660
22661 PR target/60071
22662 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22663 (*mov_t_msb_neg_negc): ... this new insn.
22664
22665 2014-02-28 Jason Merrill <jason@redhat.com>
22666
22667 PR c++/58678
22668 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22669 function.
22670
22671 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22672
22673 PR c++/60314
22674 * dwarf2out.c (decltype_auto_die): New static.
22675 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22676 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22677 (is_cxx_auto): Likewise.
22678
22679 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22680
22681 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22682 we are not using general regs only.
22683
22684 2014-02-28 Richard Biener <rguenther@suse.de>
22685
22686 PR target/60280
22687 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22688 previous fix and only allow to remove trivial pre-headers
22689 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22690 (remove_forwarder_block): Properly update the latch of a loop.
22691
22692 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22693
22694 PR debug/59992
22695 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22696 (cselib_preserved_hash_table): New.
22697 (preserve_constants_and_equivs): Move preserved vals to it.
22698 (cselib_find_slot): Look it up first.
22699 (cselib_init): Initialize it.
22700 (cselib_finish): Release it.
22701 (dump_cselib_table): Dump it.
22702
22703 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22704
22705 PR debug/59992
22706 * cselib.c (remove_useless_values): Skip to avoid quadratic
22707 behavior if the condition moved from...
22708 (cselib_process_insn): ... here holds.
22709
22710 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22711
22712 PR debug/57232
22713 * var-tracking.c (vt_initialize): Apply the same condition to
22714 preserve the CFA base value.
22715
22716 2014-02-28 Joey Ye <joey.ye@arm.com>
22717
22718 PR target/PR60169
22719 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22720 if reload in progress or completed.
22721
22722 2014-02-28 Tobias Burnus <burnus@net-b.de>
22723
22724 PR middle-end/60147
22725 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22726 NAMELIST_DECL.
22727
22728 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22729
22730 * doc/tm.texi.in (Condition Code Status): Update documention for
22731 relative locations of cc0-setter and cc0-user.
22732
22733 2014-02-27 Jeff Law <law@redhat.com>
22734
22735 PR rtl-optimization/52714
22736 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22737 into two independent simple sets, if I3 is a jump, ensure the
22738 pattern we place into I3 is a (set (pc) ...).
22739
22740 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22741 Jeff Law <law@redhat.com>
22742
22743 PR rtl-optimization/49847
22744 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22745 are in different blocks.
22746 * doc/tm.texi (Condition Code Status): Update documention for
22747 relative locations of cc0-setter and cc0-user.
22748
22749 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22750
22751 PR target/59222
22752 * lra.c (lra_emit_add): Check SUBREG too.
22753
22754 2014-02-27 Andreas Schwab <schwab@suse.de>
22755
22756 * config/m68k/m68k.c (m68k_option_override): Disable
22757 -flive-range-shrinkage for classic m68k.
22758 (m68k_override_options_after_change): Likewise.
22759
22760 2014-02-27 Marek Polacek <polacek@redhat.com>
22761
22762 PR middle-end/59223
22763 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22764 -Wmaybe-uninitialized.
22765
22766 2014-02-27 Alan Modra <amodra@gmail.com>
22767
22768 PR target/57936
22769 * reload1.c (emit_input_reload_insns): When reload_override_in,
22770 set old to rl->in_reg when rl->in_reg is a subreg.
22771
22772 2014-02-26 Richard Biener <rguenther@suse.de>
22773
22774 PR bootstrap/60343
22775 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22776
22777 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22778
22779 * common/config/i386/predicates.md (const1256_operand): Remove.
22780 (const2356_operand): New.
22781 (const_1_to_2_operand): Remove.
22782 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22783 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22784 (*avx512pf_gatherpf<mode>sf): Ditto.
22785 (avx512pf_gatherpf<mode>df): Ditto.
22786 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22787 (*avx512pf_gatherpf<mode>df): Ditto.
22788 (avx512pf_scatterpf<mode>sf): Ditto.
22789 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22790 (*avx512pf_scatterpf<mode>sf): Ditto.
22791 (avx512pf_scatterpf<mode>df): Ditto.
22792 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22793 (*avx512pf_scatterpf<mode>df): Ditto.
22794 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22795
22796 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22797
22798 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22799 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22800 (_mm512_mask_testn_epi64_mask): Move to ...
22801 * config/i386/avx512cdintrin.h: Here.
22802 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22803 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22804 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22805 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22806 TARGET_AVX512F from TARGET_AVX512CD.
22807
22808 2014-02-26 Richard Biener <rguenther@suse.de>
22809
22810 PR ipa/60327
22811 * ipa.c (walk_polymorphic_call_targets): Properly guard
22812 call to inline_update_overall_summary.
22813
22814 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22815
22816 PR target/60280
22817 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22818 and latches only if requested. Fix latch if it is removed.
22819 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22820 LOOPS_HAVE_PREHEADERS.
22821
22822 2014-02-25 Andrew Pinski <apinski@cavium.com>
22823
22824 * builtins.c (expand_builtin_thread_pointer): Create a new target
22825 when the target is NULL.
22826
22827 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22828
22829 PR rtl-optimization/60317
22830 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22831 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22832 * lra-assigns.c: Include params.h.
22833 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22834 other reload pseudos considerations.
22835
22836 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22837
22838 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22839 to use canonical form for nor<mode>3.
22840
22841 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22842
22843 PR target/55426
22844 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22845 conversions.
22846
22847 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22848
22849 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22850 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22851 (ix86_handle_option): Handle OPT_mprefetchwt1.
22852 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22853 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22854 PREFETCHWT1 CPUID.
22855 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22856 OPTION_MASK_ISA_PREFETCHWT1.
22857 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22858 (PTA_PREFETCHWT1): New.
22859 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22860 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22861 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22862 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22863 (*prefetch_avx512pf_<mode>_: Change into ...
22864 (*prefetch_prefetchwt1_<mode>: This.
22865 * config/i386/i386.opt (mprefetchwt1): New.
22866 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22867 (_mm_prefetch): Handle intent to write.
22868 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22869
22870 2014-02-25 Richard Biener <rguenther@suse.de>
22871
22872 PR middle-end/60291
22873 * emit-rtl.c (mem_attrs_htab): Remove.
22874 (mem_attrs_htab_hash): Likewise.
22875 (mem_attrs_htab_eq): Likewise.
22876 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22877 (init_emit_once): Do not allocate mem_attrs_htab.
22878
22879 2014-02-25 Richard Biener <rguenther@suse.de>
22880
22881 PR lto/60319
22882 * lto-opts.c (lto_write_options): Output non-explicit conservative
22883 -fwrapv, -fno-trapv and -fno-strict-overflow.
22884 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22885 (run_gcc): And pass them through.
22886
22887 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22888
22889 * sel-sched.c (calculate_new_fences): New parameter ptime.
22890 Calculate it as a maximum over all fence cycles.
22891 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22892 Print the final schedule timing when sched_verbose.
22893
22894 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22895
22896 PR rtl-optimization/60292
22897 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22898 bit fot the fence instruction.
22899
22900 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22901
22902 * calls.h: Fix typo in comment.
22903
22904 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22905
22906 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22907 adjusting offsetable addresses.
22908
22909 2014-02-24 Guozhi Wei <carrot@google.com>
22910
22911 * sparseset.h (sparseset_pop): Fix the wrong index.
22912
22913 2014-02-24 Walter Lee <walt@tilera.com>
22914
22915 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22916 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22917 triplet.
22918 * common/config/tilegx/tilegx-common.c
22919 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22920 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22921 (LINK_SPEC): Ditto.
22922 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22923 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22924 (tilegx_gimplify_va_arg_expr): Handle big endian.
22925 (tilegx_expand_unaligned_load): Ditto.
22926 (tilegx_expand_unaligned_store): Ditto.
22927 (TARGET_RETURN_IN_MSB): New.
22928 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22929 (TARGET_ENDIAN_DEFAULT): New.
22930 (TARGET_BIG_ENDIAN): Handle big endian.
22931 (BYTES_BIG_ENDIAN): Ditto.
22932 (WORDS_BIG_ENDIAN): Ditto.
22933 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22934 (ENDIAN_SPEC): New.
22935 (EXTRA_SPECS): New.
22936 * config/tilegx/tilegx.md (extv): Handle big endian.
22937 (extzv): Ditto.
22938 (insn_st<n>): Ditto.
22939 (insn_st<n>_add<bitsuffix>): Ditto.
22940 (insn_stnt<n>): Ditto.
22941 (insn_stnt<n>_add<bitsuffix>):Ditto.
22942 (vec_interleave_highv8qi): Handle big endian.
22943 (vec_interleave_highv8qi_be): New.
22944 (vec_interleave_highv8qi_le): New.
22945 (insn_v1int_h): Handle big endian.
22946 (vec_interleave_lowv8qi): Handle big endian.
22947 (vec_interleave_lowv8qi_be): New.
22948 (vec_interleave_lowv8qi_le): New.
22949 (insn_v1int_l): Handle big endian.
22950 (vec_interleave_highv4hi): Handle big endian.
22951 (vec_interleave_highv4hi_be): New.
22952 (vec_interleave_highv4hi_le): New.
22953 (insn_v2int_h): Handle big endian.
22954 (vec_interleave_lowv4hi): Handle big endian.
22955 (vec_interleave_lowv4hi_be): New.
22956 (vec_interleave_lowv4hi_le): New.
22957 (insn_v2int_l): Handle big endian.
22958 (vec_interleave_highv2si): Handle big endian.
22959 (vec_interleave_highv2si_be): New.
22960 (vec_interleave_highv2si_le): New.
22961 (insn_v4int_h): Handle big endian.
22962 (vec_interleave_lowv2si): Handle big endian.
22963 (vec_interleave_lowv2si_be): New.
22964 (vec_interleave_lowv2si_le): New.
22965 (insn_v4int_l): Handle big endian.
22966 * config/tilegx/tilegx.opt (mbig-endian): New option.
22967 (mlittle-endian): New option.
22968 * doc/install.texi: Document tilegxbe-linux.
22969 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22970
22971 2014-02-24 Martin Jambor <mjambor@suse.cz>
22972
22973 PR ipa/60266
22974 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22975 there are no parameter descriptors.
22976
22977 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22978
22979 PR rtl-optimization/60268
22980 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22981 initialization to ...
22982 (sched_rgn_init): ... here.
22983 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22984
22985 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22986
22987 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22988 names.
22989
22990 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22991
22992 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22993 definition.
22994
22995 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22996
22997 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22998 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22999
23000 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23001
23002 * config/microblaze/predicates.md: Add cmp_op predicate.
23003 * config/microblaze/microblaze.md: Add branch_compare instruction
23004 which uses cmp_op predicate and emits cmp insn before branch.
23005 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23006 to microblaze_expand_conditional_branch and consolidate logic.
23007 (microblaze_expand_conditional_branch): emit branch_compare
23008 insn instead of handling cmp op separate from branch insn.
23009
23010 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23011
23012 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23013 to permit subregs.
23014
23015 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23016
23017 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23018 define_insn with define_expand and new define_insn
23019 *altivec_lve<VI_char>x_internal.
23020 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23021 and new define_insn *altivec_stve<VI_char>x_internal.
23022 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23023 prototype.
23024 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23025 lve*x built-ins.
23026 (altivec_expand_stvex_be): New function.
23027
23028 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23029
23030 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23031 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23032 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23033 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23034
23035 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23036
23037 PR target/60298
23038 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23039 instead of emit_move_insn.
23040
23041 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23042
23043 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23044 vspltw with vsldoi.
23045 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23046 gen_altivec_vsumsws.
23047
23048 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23049
23050 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23051 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23052 (altivec_lvxl_<mode>): New define_expand incorporating
23053 -maltivec=be semantics where needed.
23054 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23055 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23056 semantics where needed.
23057 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23058 (altivec_stvx_<mode>): New define_expand incorporating
23059 -maltivec=be semantics where needed.
23060 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23061 VM2 iterator instead of V4SI.
23062 (altivec_stvxl_<mode>): New define_expand incorporating
23063 -maltivec=be semantics where needed.
23064 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23065 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23066 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23067 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23068 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23069 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23070 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23071 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23072 ALTIVEC_BUILTIN_STVXL.
23073 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23074 (altivec_expand_stvx_be): Likewise.
23075 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23076 (altivec_expand_lvx_be): Likewise.
23077 (altivec_expand_stvx_be): Likewise.
23078 (altivec_expand_builtin): Add cases for
23079 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23080 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23081 (altivec_init_builtins): Add definitions for
23082 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23083 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23084
23085 2014-02-21 Catherine Moore <clm@codesourcery.com>
23086
23087 * doc/invoke.texi (mvirt, mno-virt): Document.
23088 * config/mips/mips.opt (mvirt): New option.
23089 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23090
23091 2014-02-21 Richard Biener <rguenther@suse.de>
23092
23093 PR tree-optimization/60276
23094 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23095 (STMT_VINFO_MIN_NEG_DIST): New macro.
23096 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23097 STMT_VINFO_MIN_NEG_DIST.
23098 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23099 made for negative dependence distances still hold.
23100
23101 2014-02-21 Richard Biener <rguenther@suse.de>
23102
23103 PR middle-end/60291
23104 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23105 DECL_INITIAL for globals not in the current function context.
23106
23107 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23108
23109 PR tree-optimization/56490
23110 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23111 * tree-ssa-uninit.c: Include params.h.
23112 (compute_control_dep_chain): Add num_calls argument, return false
23113 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23114 num_calls to recursive call.
23115 (find_predicates): Change dep_chain into normal array,
23116 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23117 variable and adjust compute_control_dep_chain caller.
23118 (find_def_preds): Likewise.
23119
23120 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23121
23122 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23123 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23124
23125 2014-02-21 Nick Clifton <nickc@redhat.com>
23126
23127 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23128 (pushhi1): Likewise.
23129 (popqi1): Add mode to pre_dec.
23130 (pophi1): Likewise.
23131
23132 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23133
23134 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23135 mode for mask of V8SFmode permutation.
23136
23137 2014-02-20 Richard Henderson <rth@redhat.com>
23138
23139 PR c++/60272
23140 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23141 a new pseudo for OLDVAL.
23142
23143 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23144
23145 PR target/57896
23146 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23147 gen_reg_rtx if d->testing_p.
23148 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23149 if d->testing_p and we will certainly return true.
23150 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23151 if d->testing_p.
23152
23153 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23154
23155 * emit-rtl.c (gen_reg_rtx): Assert that
23156 crtl->emit.regno_pointer_align_length is non-zero.
23157
23158 2014-02-20 Richard Henderson <rth@redhat.com>
23159
23160 PR c++/60272
23161 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23162 on failure the store back into EXPECT.
23163
23164 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23165 Sandra Loosemore <sandra@codesourcery.com>
23166
23167 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23168 * config/nios2/nios2.c (nios2_function_profiler): Add
23169 -fPIC (flag_pic == 2) support.
23170 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23171 (nios2_large_offset_p): New function.
23172 (nios2_unspec_reloc_p): Move up position, update to use
23173 nios2_large_offset_p.
23174 (nios2_unspec_address): Remove function.
23175 (nios2_unspec_offset): New function.
23176 (nios2_large_got_address): New function.
23177 (nios2_got_address): Add large offset support.
23178 (nios2_legitimize_tls_address): Update usage of removed and new
23179 functions.
23180 (nios2_symbol_binds_local_p): New function.
23181 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23182 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23183 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23184 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23185 processing for (const (unspec ...)).
23186 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23187
23188 2014-02-20 Richard Biener <rguenther@suse.de>
23189
23190 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23191 doing the substitution.
23192 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23193
23194 2014-02-20 Martin Jambor <mjambor@suse.cz>
23195
23196 PR ipa/55260
23197 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23198 info when checking whether lattices are bottom.
23199
23200 2014-02-20 Richard Biener <rguenther@suse.de>
23201
23202 PR middle-end/60221
23203 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23204 regions at -O0.
23205
23206 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23207
23208 PR ipa/58555
23209 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23210 parameter specifying the scaling.
23211 (inline_call): Update.
23212 (want_inline_recursively): Guard division by zero.
23213 (recursive_inlining): Update.
23214 * ipa-inline.h (clone_inlined_nodes): Update.
23215
23216 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23217
23218 PR target/60204
23219 * config/i386/i386.c (classify_argument): Pass structures of size
23220 64 bytes or less in register.
23221
23222 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23223 Kirill Yukhin <kirill.yukhin@intel.com>
23224
23225 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23226 (_mm_rcp28_round_ss): Ditto.
23227 (_mm_rsqrt28_round_sd): Ditto.
23228 (_mm_rsqrt28_round_ss): Ditto.
23229 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23230 (_mm_rcp14_round_ss): Ditto.
23231 (_mm_rsqrt14_round_sd): Ditto.
23232 (_mm_rsqrt14_round_ss): Ditto.
23233 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23234 the first input operand, get rid of match_dup.
23235 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23236 attribute to sse.
23237 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23238 Ditto.
23239 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23240 operand as the first input operand, set type attribute.
23241 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23242 Set type attribute.
23243 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23244 operand as the first input operand, set type attribute.
23245
23246 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23247
23248 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23249 bit of zero.
23250
23251 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23252
23253 PR target/60207
23254 * config/i386/i386.c (construct_container): Remove TFmode check
23255 for X86_64_INTEGER_CLASS.
23256
23257 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23258
23259 PR target/59794
23260 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23261 only when -Wpsabi is enabled.
23262
23263 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23264
23265 PR target/59799
23266 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23267 passing arrays in registers are the same as for structs, so remove the
23268 special case for them.
23269
23270 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23271
23272 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23273 destination type, extract only the valid bits if the source type is not
23274 integral and has a different mode.
23275
23276 2014-02-19 Richard Biener <rguenther@suse.de>
23277
23278 PR ipa/60243
23279 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23280 for all calls.
23281
23282 2014-02-19 Richard Biener <rguenther@suse.de>
23283
23284 PR ipa/60243
23285 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23286 (ipa_modify_call_arguments): Emit an argument load explicitely and
23287 preserve virtual SSA form there and for the replacement call.
23288 Do not update SSA form nor free dominance info.
23289
23290 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23291
23292 * ipa.c (function_and_variable_visibility): Also clear WEAK
23293 flag when disolving COMDAT_GROUP.
23294
23295 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23296
23297 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23298 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23299 not devirtualizing.
23300 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23301 do more sanity checks.
23302 (detect_type_change): Return true when giving up early.
23303 (compute_complex_assign_jump_func): Fix type parameter of
23304 ipa_set_ancestor_jf.
23305 (compute_complex_ancestor_jump_func): Likewise.
23306 (update_jump_functions_after_inlining): Fix updating of
23307 ancestor function.
23308 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23309
23310 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23311
23312 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23313 inline clones when edge disappears.
23314
23315 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23316
23317 PR target/60203
23318 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23319 Split 64-bit moves into 2 patterns. Do not allow the use of
23320 direct move for TDmode in little endian, since the decimal value
23321 has little endian bytes within a word, but the 64-bit pieces are
23322 ordered in a big endian fashion, and normal subreg's of TDmode are
23323 not allowed.
23324 (mov<mode>_64bit_dm): Likewise.
23325 (movtd_64bit_nodm): Likewise.
23326
23327 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23328
23329 PR tree-optimization/60174
23330 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23331 statement of an SSA_NAME that occurs in an abnormal PHI node.
23332
23333 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23334
23335 PR sanitizer/60142
23336 * final.c (SEEN_BB): Remove.
23337 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23338 (final_scan_insn): Don't force_source_line on second
23339 NOTE_INSN_BASIC_BLOCK.
23340
23341 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23342
23343 PR target/60205
23344 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23345 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23346 (type_natural_mode): Warn ABI change when %zmm register is not
23347 available for AVX512F vector value passing.
23348
23349 2014-02-18 Kai Tietz <ktietz@redhat.com>
23350
23351 PR target/60193
23352 * config/i386/i386.c (ix86_expand_prologue): Use value in
23353 rax register as displacement when restoring %r10 or %rax.
23354 Fix wrong offset when restoring both registers.
23355
23356 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23357
23358 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23359 assertion with conditional return.
23360
23361 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23362 Uros Bizjak <ubizjak@gmail.com>
23363
23364 PR driver/60233
23365 * config/i386/driver-i386.c (host_detect_local_cpu): If
23366 YMM state is not saved by the OS, also clear has_f16c. Move
23367 CPUID 0x80000001 handling before YMM state saving checking.
23368
23369 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23370
23371 PR rtl-optimization/58960
23372 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23373 factored out from ...
23374 (sched_init): ... here.
23375 (free_global_sched_pressure_data): New, factored out from ...
23376 (sched_finish): ... here.
23377 * sched-int.h (free_global_sched_pressure_data): Declare.
23378 * sched-rgn.c (nr_regions_initial): New static global.
23379 (haifa_find_rgns): Initialize it.
23380 (schedule_region): Disable sched-pressure for the newly
23381 generated regions.
23382
23383 2014-02-17 Richard Biener <rguenther@suse.de>
23384
23385 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23386 release SSA defs of pattern stmts.
23387
23388 2014-02-17 Richard Biener <rguenther@suse.de>
23389
23390 * tree-inline.c (expand_call_inline): Release the virtual
23391 operand defined by the call we are about to inline.
23392
23393 2014-02-17 Richard Biener <rguenther@suse.de>
23394
23395 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23396
23397 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23398 Ilya Tocar <ilya.tocar@intel.com>
23399
23400 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23401 arguments order in builtin.
23402 (_mm512_permutexvar_epi64): Ditto.
23403 (_mm512_mask_permutexvar_epi64): Ditto
23404 (_mm512_maskz_permutexvar_epi32): Ditto
23405 (_mm512_permutexvar_epi32): Ditto
23406 (_mm512_mask_permutexvar_epi32): Ditto
23407
23408 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23409
23410 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23411 (p8_vmrgow): Likewise.
23412
23413 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23414
23415 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23416 endian targets.
23417
23418 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23419
23420 PR target/60203
23421 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23422 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23423 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23424 using direct move instructions on ISA 2.07. Also adjust
23425 instruction length for 64-bit.
23426 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23427 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23428
23429 2014-02-15 Alan Modra <amodra@gmail.com>
23430
23431 PR target/58675
23432 PR target/57935
23433 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23434 find_replacement on parts of insn rtl that might be reloaded.
23435
23436 2014-02-15 Richard Biener <rguenther@suse.de>
23437
23438 PR tree-optimization/60183
23439 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23440 (tree_ssa_phiprop): Calculate and free post-dominators.
23441
23442 2014-02-14 Jeff Law <law@redhat.com>
23443
23444 PR rtl-optimization/60131
23445 * ree.c (get_extended_src_reg): New function.
23446 (combine_reaching_defs): Use it rather than assuming location of REG.
23447 (find_and_remove_re): Verify first operand of extension is
23448 a REG before adding the insns to the copy list.
23449
23450 2014-02-14 Roland McGrath <mcgrathr@google.com>
23451
23452 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23453 * configure: Regenerated.
23454 * config.in: Regenerated.
23455 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23456 instead of ASM_SHORT.
23457
23458 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23459 Richard Earnshaw <rearnsha@arm.com>
23460
23461 PR rtl-optimization/59535
23462 * lra-constraints.c (process_alt_operands): Encourage alternative
23463 when unassigned pseudo class is superset of the alternative class.
23464 (inherit_reload_reg): Don't inherit when optimizing for code size.
23465 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23466 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23467 modes not less than 4 for Thumb1.
23468
23469 2014-02-14 Kyle McMartin <kyle@redhat.com>
23470
23471 PR pch/60010
23472 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23473
23474 2014-02-14 Richard Biener <rguenther@suse.de>
23475
23476 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23477 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23478 Do not strip INDIRECT_REFs.
23479
23480 2014-02-14 Richard Biener <rguenther@suse.de>
23481
23482 PR lto/60179
23483 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23484 DECL_FUNCTION_SPECIFIC_TARGET.
23485 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23486 * tree-streamer-out.c (pack_ts_target_option): Remove.
23487 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23488 (write_ts_function_decl_tree_pointers): Do not stream
23489 DECL_FUNCTION_SPECIFIC_TARGET.
23490 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23491 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23492 (lto_input_ts_function_decl_tree_pointers): Do not stream
23493 DECL_FUNCTION_SPECIFIC_TARGET.
23494
23495 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23496
23497 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23498 (get_initial_def_for_induction, vectorizable_induction): Ignore
23499 debug stmts when looking for exit_phi.
23500 (vectorizable_live_operation): Fix up condition.
23501
23502 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23503
23504 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23505 nreverse() because it changes the content of original tree list.
23506
23507 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23508
23509 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23510 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23511
23512 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23513
23514 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23515 GNU coding standards.
23516
23517 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23518
23519 PR debug/60152
23520 * dwarf2out.c (gen_subprogram_die): Don't call
23521 add_calling_convention_attribute if subr_die is old_die.
23522
23523 2014-02-13 Sharad Singhai <singhai@google.com>
23524
23525 * doc/optinfo.texi: Fix order of nodes.
23526
23527 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23528
23529 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23530 operands[2], not operands[3].
23531
23532 2014-02-13 Richard Biener <rguenther@suse.de>
23533
23534 PR bootstrap/59878
23535 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23536 mention the possibility of an in-tree build.
23537 (CLooG): Update recommended version to 0.18.1, mention the
23538 possibility of an in-tree build and clarify that the ISL
23539 bundled with CLooG does not work.
23540
23541 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23542
23543 PR target/43546
23544 * expr.c (compress_float_constant): If x is a hard register,
23545 extend into a pseudo and then move to x.
23546
23547 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23548
23549 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23550 caused by bad second argument to warning_at() with -mhotpatch and
23551 nested functions (e.g. with gfortran).
23552
23553 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23554
23555 * opts.c (option_name): Remove "enabled by default" rider.
23556
23557 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23558
23559 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23560
23561 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23562 Uros Bizjak <ubizjak@gmail.com>
23563
23564 PR target/60151
23565 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23566 * configure: Regenerated.
23567
23568 2014-02-12 Richard Biener <rguenther@suse.de>
23569
23570 * vec.c (vec_prefix::calculate_allocation): Move as
23571 inline variant to vec.h.
23572 (vec_prefix::calculate_allocation_1): New out-of-line version.
23573 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23574 (vec_prefix::m_has_auto_buf): Rename to ...
23575 (vec_prefix::m_using_auto_storage): ... this.
23576 (vec_prefix::calculate_allocation): Inline the easy cases
23577 and dispatch to calculate_allocation_1 which doesn't need the
23578 prefix address.
23579 (va_heap::reserve): Use gcc_checking_assert.
23580 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23581 m_using_auto_storage.
23582 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23583 member and adjust.
23584 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23585 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23586 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23587
23588 2014-02-12 Richard Biener <rguenther@suse.de>
23589
23590 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23591 when we found a dependence.
23592
23593 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23594
23595 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23596 common code...
23597 (maybe_fold_stmt): ... into this new function.
23598 * omp-low.c (lower_omp): Update comment.
23599
23600 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23601 last use.
23602
23603 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23604 dereference.
23605
23606 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23607
23608 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23609 identifiers in comments.
23610 (cortexa53_extra_costs): Likewise.
23611 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23612 (cortexa7_extra_costs): Likewise.
23613 (cortexa12_extra_costs): Likewise.
23614 (cortexa15_extra_costs): Likewise.
23615 (v7m_extra_costs): Likewise.
23616
23617 2014-02-12 Richard Biener <rguenther@suse.de>
23618
23619 PR middle-end/60092
23620 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23621 of posix_memalign being successful.
23622 (lower_stmt): Restrict lowering of posix_memalign to when
23623 -ftree-bit-ccp is enabled.
23624
23625 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23626
23627 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23628 arg_loc.
23629 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23630
23631 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23632
23633 PR rtl-optimization/60116
23634 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23635 other_insn once the combination has been validated.
23636
23637 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23638
23639 PR lto/59468
23640 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23641 and wrapper.
23642 * ipa-devirt.c: Include demangle.h
23643 (odr_violation_reported): New static variable.
23644 (add_type_duplicate): Update odr_violations.
23645 (maybe_record_node): Add completep parameter; update it.
23646 (record_target_from_binfo): Add COMPLETEP parameter;
23647 update it as needed.
23648 (possible_polymorphic_call_targets_1): Likewise.
23649 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23650 rename FINAL to COMPLETE.
23651 (record_targets_from_bases): Sanity check we found the binfo;
23652 fix COMPLETEP updating.
23653 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23654 parameter, fix computing of COMPLETEP.
23655 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23656 at LTO time do demangling.
23657 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23658 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23659 parameter.
23660 (gimple_get_virt_method_for_binfo): Likewise.
23661 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23662 gimple_get_virt_method_for_vtable): Update prototypes.
23663
23664 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23665
23666 PR target/49008
23667 * genautomata.c (add_presence_absence): Fix typo with
23668 {final_}presence_list.
23669
23670 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23671
23672 PR target/60137
23673 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23674 for VSX/Altivec vectors that land in GPR registers.
23675
23676 2014-02-11 Richard Henderson <rth@redhat.com>
23677 Jakub Jelinek <jakub@redhat.com>
23678
23679 PR debug/59776
23680 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23681 around drhs if type conversion to lacc->type is not useless.
23682
23683 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23684
23685 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23686 tuning struct.
23687 (cortex-a57.cortex-a53): Likewise.
23688 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23689
23690 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23691
23692 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23693 arm_restrict_it.
23694
23695 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23696
23697 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23698 add_options_for_arm_vfp3.
23699
23700 2014-02-11 Jeff Law <law@redhat.com>
23701
23702 PR middle-end/54041
23703 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23704 object with an undesirable mode.
23705
23706 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23707
23708 PR libgomp/60107
23709 * config/i386/sol2-9.h: New file.
23710 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23711 *-*-solaris2.9*): Use it.
23712
23713 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23714
23715 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23716 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23717
23718 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23719
23720 * config/microblaze/microblaze.c: Extend mcpu version format
23721
23722 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23723
23724 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23725
23726 2014-02-10 Richard Henderson <rth@redhat.com>
23727
23728 PR target/59927
23729 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23730 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23731 ms-abi vs -mno-accumulate-outgoing-args.
23732 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23733 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23734 respect to ms-abi.
23735
23736 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23737
23738 PR middle-end/60080
23739 * cfgexpand.c (expand_asm_operands): Attach source location to
23740 ASM_INPUT rtx objects.
23741 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23742
23743 2014-02-10 Nick Clifton <nickc@redhat.com>
23744
23745 * config/mn10300/mn10300.c (popcount): New function.
23746 (mn10300_expand_prologue): Include saved registers in stack usage
23747 count.
23748
23749 2014-02-10 Jeff Law <law@redhat.com>
23750
23751 PR middle-end/52306
23752 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23753 when changing the SET_DEST of a prior insn to avoid an input reload.
23754
23755 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23756
23757 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23758 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23759 -mcall-openbsd, or -mcall-linux.
23760 (CC1_ENDIAN_BIG_SPEC): Remove.
23761 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23762 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23763 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23764 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23765 and %cc1_endian_default.
23766 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23767
23768 2014-02-10 Richard Biener <rguenther@suse.de>
23769
23770 PR tree-optimization/60115
23771 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23772 MEM_REF handling. Properly verify that the accesses are not
23773 out of the objects bound.
23774
23775 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23776
23777 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23778 coretex to cortex.
23779
23780 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23781
23782 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23783 proper constants and fix formatting.
23784 (possible_polymorphic_call_targets): Fix formatting.
23785
23786 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23787 Ilya Tocar <ilya.tocar@intel.com>
23788
23789 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23790 (_mm512_loadu_epi32): Renamed into...
23791 (_mm512_loadu_si512): This.
23792 (_mm512_storeu_epi32): Renamed into...
23793 (_mm512_storeu_si512): This.
23794 (_mm512_maskz_ceil_ps): Removed.
23795 (_mm512_maskz_ceil_pd): Ditto.
23796 (_mm512_maskz_floor_ps): Ditto.
23797 (_mm512_maskz_floor_pd): Ditto.
23798 (_mm512_floor_round_ps): Ditto.
23799 (_mm512_floor_round_pd): Ditto.
23800 (_mm512_ceil_round_ps): Ditto.
23801 (_mm512_ceil_round_pd): Ditto.
23802 (_mm512_mask_floor_round_ps): Ditto.
23803 (_mm512_mask_floor_round_pd): Ditto.
23804 (_mm512_mask_ceil_round_ps): Ditto.
23805 (_mm512_mask_ceil_round_pd): Ditto.
23806 (_mm512_maskz_floor_round_ps): Ditto.
23807 (_mm512_maskz_floor_round_pd): Ditto.
23808 (_mm512_maskz_ceil_round_ps): Ditto.
23809 (_mm512_maskz_ceil_round_pd): Ditto.
23810 (_mm512_expand_pd): Ditto.
23811 (_mm512_expand_ps): Ditto.
23812 * config/i386/i386.c (ix86_builtins): Remove
23813 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23814 (bdesc_args): Ditto.
23815 * config/i386/predicates.md (const1256_operand): New.
23816 (const_1_to_2_operand): Ditto.
23817 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23818 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23819 (*avx512pf_gatherpf<mode>sf): Ditto.
23820 (avx512pf_gatherpf<mode>df): Ditto.
23821 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23822 (*avx512pf_gatherpf<mode>df): Ditto.
23823 (avx512pf_scatterpf<mode>sf): Ditto.
23824 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23825 (*avx512pf_scatterpf<mode>sf): Ditto.
23826 (avx512pf_scatterpf<mode>df): Ditto.
23827 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23828 (*avx512pf_scatterpf<mode>df): Ditto.
23829 (avx512f_expand<mode>): Removed.
23830 (<shift_insn><mode>3<mask_name>): Change predicate type.
23831
23832 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23833
23834 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23835 not at the end of datarefs vector use ordered_remove to avoid
23836 reordering datarefs vector.
23837
23838 PR c/59984
23839 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23840 mark local addressable non-static vars as GOVD_PRIVATE
23841 instead of GOVD_LOCAL.
23842 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23843 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23844 than copying them.
23845
23846 PR middle-end/60092
23847 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23848 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23849 assume_aligned or alloc_align attributes.
23850 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23851 arguments. Handle also assume_aligned and alloc_align attributes.
23852 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23853 calls to functions with assume_aligned or alloc_align attributes.
23854 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23855
23856 2014-02-08 Terry Guo <terry.guo@arm.com>
23857
23858 * doc/invoke.texi: Document ARM -march=armv7e-m.
23859
23860 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23861
23862 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23863 flag on __cilkrts_rethrow builtin.
23864
23865 PR ipa/60026
23866 * ipa-cp.c (determine_versionability): Fail at -O0
23867 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23868 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23869
23870 Revert:
23871 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23872
23873 PR ipa/60026
23874 * tree-inline.c (copy_forbidden): Fail for
23875 __attribute__((optimize (0))) functions.
23876
23877 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23878
23879 * varpool.c: Include pointer-set.h.
23880 (varpool_remove_unreferenced_decls): Variables in other partitions
23881 will not be output; be however careful to not lose information
23882 about partitioning.
23883
23884 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23885
23886 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23887 lookup in the vtable constructor.
23888
23889 2014-02-07 Jeff Law <law@redhat.com>
23890
23891 PR target/40977
23892 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23893 define_insn_and_split.
23894
23895 * ipa-inline.c (inline_small_functions): Fix typos.
23896
23897 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23898
23899 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23900 (s390_can_use_return_insn): Declare.
23901 * config/s390/s390.h (EPILOGUE_USES): Define.
23902 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23903 instructions.
23904 (s390_chunkify_start): Handle return JUMP_LABELs.
23905 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23906 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23907 (s390_can_use_return_insn): New functions.
23908 (s390_fix_long_loop_prediction): Handle conditional returns.
23909 (TARGET_SET_UP_BY_PROLOGUE): Define.
23910 * config/s390/s390.md (ANY_RETURN): New code iterator.
23911 (*creturn, *csimple_return, return, simple_return): New patterns.
23912
23913 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23914
23915 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23916 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23917 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23918 REG_CFA_RESTORE list when deciding not to restore a register.
23919
23920 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23921
23922 * config/s390/s390.c: Include tree-pass.h and context.h.
23923 (s390_early_mach): New function, split out from...
23924 (s390_emit_prologue): ...here.
23925 (pass_data_s390_early_mach): New pass structure.
23926 (pass_s390_early_mach): New class.
23927 (s390_option_override): Create and register early_mach pass.
23928 Move to end of file.
23929
23930 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23931
23932 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23933 to match for the exit block.
23934
23935 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23936
23937 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23938 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23939 Reject misaligned operands.
23940
23941 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23942
23943 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23944
23945 2014-02-07 Richard Biener <rguenther@suse.de>
23946
23947 PR middle-end/60092
23948 * gimple-low.c (lower_builtin_posix_memalign): New function.
23949 (lower_stmt): Call it to lower posix_memalign in a way
23950 to make alignment info accessible.
23951
23952 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23953
23954 PR c++/60082
23955 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23956 __builtin_setjmp_receiver.
23957
23958 2014-02-07 Richard Biener <rguenther@suse.de>
23959
23960 PR middle-end/60092
23961 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23962 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23963 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23964 Handle BUILT_IN_POSIX_MEMALIGN.
23965 (find_func_clobbers): Likewise.
23966 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23967 (call_may_clobber_ref_p_1): Likewise.
23968
23969 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23970
23971 PR ipa/59918
23972 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23973 sanity check.
23974
23975 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23976
23977 PR ipa/59469
23978 * lto-cgraph.c (lto_output_node): Use
23979 symtab_get_symbol_partitioning_class.
23980 (lto_output_varpool_node): likewise.
23981 (symtab_get_symbol_partitioning_class): Move here from
23982 lto/lto-partition.c
23983 * cgraph.h (symbol_partitioning_class): Likewise.
23984 (symtab_get_symbol_partitioning_class): Declare.
23985
23986 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23987
23988 * ggc.h (ggc_internal_cleared_alloc): New macro.
23989 * vec.h (vec_safe_copy): Handle memory stats.
23990 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23991 * target-globals.c (save_target_globals): Likewise.
23992
23993 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23994
23995 PR target/60077
23996 * expr.c (emit_move_resolve_push): Export; be bit more selective
23997 on when to clear alias set.
23998 * expr.h (emit_move_resolve_push): Declare.
23999 * function.h (struct function): Add tail_call_marked.
24000 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24001 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24002 * config/i386/i386.md (TImode move expander): De not call
24003 ix86_expand_push.
24004 (FP push expanders): Preserve memory attributes.
24005 * config/i386/sse.md (push<mode>1): Remove.
24006 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24007 (ix86_expand_push): Remove.
24008 * config/i386/mmx.md (push<mode>1): Remove.
24009
24010 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24011
24012 PR rtl-optimization/60030
24013 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24014 lopart with paradoxical subreg before shifting it up by hprec.
24015
24016 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24017
24018 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24019 Remove extra newline at end of file.
24020 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24021 (arm_issue_rate): Handle cortexa57.
24022 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24023 (cortex-a57.cortex-a53): Likewise.
24024
24025 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24026
24027 PR target/59575
24028 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24029 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24030 bitmask.
24031 (arm_expand_prologue): Adjust all callers.
24032 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24033 info, registers also at the lowest numbered registers side. Use
24034 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24035 XEXP.
24036
24037 PR debug/59992
24038 * var-tracking.c (adjust_mems): Before adding a SET to
24039 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24040
24041 2014-02-06 Alan Modra <amodra@gmail.com>
24042
24043 PR target/60032
24044 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24045 change SDmode to DDmode when lra_in_progress.
24046
24047 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24048
24049 PR middle-end/59150
24050 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24051 free_data_ref on the dr first, and before goto again also set dr
24052 to the next dr. For simd_lane_access, free old datarefs[i] before
24053 overwriting it. For get_vectype_for_scalar_type failure, don't
24054 free_data_ref if simd_lane_access.
24055
24056 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24057
24058 PR target/60062
24059 * tree.h (opts_for_fn): New inline function.
24060 (opt_for_fn): Define.
24061 * config/i386/i386.c (ix86_function_regparm): Use
24062 opt_for_fn (decl, optimize) instead of optimize.
24063
24064 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24065
24066 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24067 for SYMBOL_REF in large memory model.
24068
24069 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24070
24071 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24072 and crypto support.
24073 (cortex-a57): Likewise.
24074 (cortex-a57.cortex-a53): Likewise.
24075
24076 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24077 Kugan Vivekanandarajah <kuganv@linaro.org>
24078
24079 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24080 unaligned_access.
24081 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24082
24083 2014-02-06 Richard Biener <rguenther@suse.de>
24084
24085 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24086 set_loop_copy and initialize_original_copy_tables.
24087
24088 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24089
24090 * config/aarch64/aarch64-simd.md
24091 (aarch64_ashr_simddi): Change QI to SI.
24092
24093 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24094 Jakub Jelinek <jakub@redhat.com>
24095
24096 PR middle-end/60013
24097 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24098 of the dataflow.
24099
24100 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24101
24102 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24103 CODE_FOR_altivec_vpku[hw]um to
24104 CODE_FOR_altivec_vpku[hw]um_direct.
24105 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24106 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24107 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24108 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24109
24110 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24111
24112 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24113 generation for -maltivec=be.
24114 (altivec_vsumsws): Simplify redundant test.
24115
24116 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24117
24118 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24119 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24120 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24121 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24122 gen_altivec_vpkuwum.
24123 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24124 BYTES_BIG_ENDIAN.
24125 (altivec_vpks<VI_char>ss): Likewise.
24126 (altivec_vpks<VI_char>us): Likewise.
24127 (altivec_vpku<VI_char>us): Likewise.
24128 (altivec_vpku<VI_char>um): Likewise.
24129 (altivec_vpku<VI_char>um_direct): New (copy of
24130 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24131 internal use).
24132 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24133 target is little endian and -maltivec=be is not specified.
24134 (*altivec_vupkhs<VU_char>_direct): New (copy of
24135 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24136 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24137 target is little endian and -maltivec=be is not specified.
24138 (*altivec_vupkls<VU_char>_direct): New (copy of
24139 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24140 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24141 little endian and -maltivec=be is not specified.
24142 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24143 little endian and -maltivec=be is not specified.
24144
24145 2014-02-05 Richard Henderson <rth@redhat.com>
24146
24147 PR debug/52727
24148 * combine-stack-adj.c: Revert r206943.
24149 * sched-int.h (struct deps_desc): Add last_args_size.
24150 * sched-deps.c (init_deps): Initialize it.
24151 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24152 contain REG_ARGS_SIZE notes.
24153
24154 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24155
24156 * lto-cgraph.c (asm_nodes_output): Make global.
24157 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24158 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24159 (driver_handle_option): Handle OPT_fwpa.
24160
24161 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24162
24163 PR ipa/59947
24164 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24165 a comment typo and formatting issue. If odr_hash hasn't been
24166 created, return vNULL and set *completep to false.
24167
24168 PR middle-end/57499
24169 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24170 bb with no successors.
24171
24172 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24173
24174 PR target/59718
24175 * doc/invoke.texi (-march): Clarify documentation for ARM.
24176 (-mtune): Likewise.
24177 (-mcpu): Likewise.
24178
24179 2014-02-05 Richard Biener <rguenther@suse.de>
24180
24181 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24182 when not vectorizing because of too many alias checks.
24183 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24184 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24185
24186 2014-02-05 Nick Clifton <nickc@redhat.com>
24187
24188 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24189 accept extended registers in any mode when compiling for the MN10300.
24190
24191 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24192
24193 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24194 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24195 sanitization attributes.
24196 (can_inline_edge_p): Likewise.
24197 (sanitize_attrs_match_for_inline_p): New function.
24198
24199 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24200
24201 * ipa-prop.c (detect_type_change): Shor circuit testing of
24202 type changes on THIS pointer.
24203
24204 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24205
24206 PR target/59777
24207 * config/pa/pa.c (legitimize_tls_address): Return original address
24208 if not passed a SYMBOL_REF rtx.
24209 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24210 addresses.
24211 (pa_emit_move_sequence): Simplify TLS source operands.
24212 (pa_legitimate_constant_p): Reject all TLS constants.
24213 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24214 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24215
24216 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24217
24218 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24219 groups when we know they are controlled by LTO.
24220 * varasm.c (default_binds_local_p_1): If object is in other partition,
24221 it will be resolved locally.
24222
24223 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24224
24225 * config/host-linux.c (linux_gt_pch_use_address): Don't
24226 use SSIZE_MAX because it is not always defined.
24227
24228 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24229
24230 PR bootstrap/59913
24231 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24232 threshold for pseudo splitting.
24233 (update_ebb_live_info): Process call argument hard registers and
24234 hard registers from insn definition too.
24235 (max_small_class_regs_num): New constant.
24236 (inherit_in_ebb): Update live hard regs through EBBs. Update
24237 reloads_num only for small register classes. Don't split for
24238 outputs of jumps.
24239
24240 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24241
24242 PR ipa/60058
24243 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24244 is non-null.
24245
24246 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24247
24248 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24249 visibility is safe.
24250
24251 2014-02-04 Marek Polacek <polacek@redhat.com>
24252
24253 * gdbinit.in (pel): Define.
24254
24255 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24256
24257 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24258 behavior.
24259
24260 2014-02-04 Richard Biener <rguenther@suse.de>
24261
24262 PR lto/59723
24263 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24264 in function context local.
24265 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24266 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24267 similar to LTO_imported_decl_ref.
24268
24269 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24270
24271 PR tree-optimization/60002
24272 * cgraphclones.c (build_function_decl_skip_args): Clear
24273 DECL_LANG_SPECIFIC.
24274
24275 PR tree-optimization/60023
24276 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24277 false to gsi_replace.
24278 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24279 has been in some EH region and vec_stmt could throw, add
24280 vec_stmt into the same EH region.
24281 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24282 has no lhs, ignore it.
24283 * internal-fn.c (expand_MASK_LOAD): Likewise.
24284
24285 PR ipa/60026
24286 * tree-inline.c (copy_forbidden): Fail for
24287 __attribute__((optimize (0))) functions.
24288
24289 PR other/58712
24290 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24291 is set, copy one less argument.
24292 (expand_simd_clones): Don't subtract clone_info->inbranch
24293 from simd_clone_struct_alloc argument.
24294
24295 PR rtl-optimization/57915
24296 * recog.c (simplify_while_replacing): If all unary/binary/relational
24297 operation arguments are constant, attempt to simplify those.
24298
24299 PR middle-end/59261
24300 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24301 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24302
24303 2014-02-04 Richard Biener <rguenther@suse.de>
24304
24305 PR tree-optimization/60012
24306 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24307 TBAA disambiguation to all DDRs.
24308
24309 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24310
24311 PR target/59788
24312 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24313 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24314
24315 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24316
24317 PR ipa/59882
24318 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24319
24320 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24321
24322 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24323 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24324
24325 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24326
24327 PR ipa/59831
24328 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24329 to figure out targets of polymorphic calls with known decl.
24330 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24331 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24332 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24333 (get_polymorphic_call_info): ... here.
24334 (get_polymorphic_call_info_from_invariant): New function.
24335
24336 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24337
24338 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24339 lookup via vtable pointer; check for type consistency
24340 and turn inconsitent facts into UNREACHABLE.
24341 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24342 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24343 type inconsistent querries; return UNREACHABLE instead.
24344
24345 2014-02-03 Richard Henderson <rth@twiddle.net>
24346
24347 PR tree-opt/59924
24348 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24349 already processed this node.
24350 (normalize_one_pred_1): Pass along mark_set.
24351 (normalize_one_pred): Create and destroy a pointer_set_t.
24352 (normalize_one_pred_chain): Likewise.
24353
24354 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24355
24356 PR gcov-profile/58602
24357 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24358
24359 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24360
24361 PR ipa/59831
24362 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24363 -fno-devirtualize; try to devirtualize by the knowledge of
24364 virtual table pointer given by aggregate propagation.
24365 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24366 (ipa_print_node_jump_functions): Dump also offset that
24367 is relevant for polymorphic calls.
24368 (determine_known_aggregate_parts): Add arg_type parameter; use it
24369 instead of determining the type from pointer type.
24370 (ipa_compute_jump_functions_for_edge): Update call of
24371 determine_known_aggregate_parts.
24372 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24373 (gimple_get_virt_method_for_binfo): ... here; simplify using
24374 vtable_pointer_value_to_vtable.
24375 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24376 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24377 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24378 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24379 POINTER_PLUS_EXPR.
24380 (vtable_pointer_value_to_binfo): ... here.
24381 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24382
24383 2014-02-03 Teresa Johnson <tejohnson@google.com>
24384
24385 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24386 redef of outer loop index variable.
24387
24388 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24389
24390 PR c++/53017
24391 PR c++/59211
24392 * doc/extend.texi (Function Attributes): Typo.
24393
24394 2014-02-03 Cong Hou <congh@google.com>
24395
24396 PR tree-optimization/60000
24397 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24398 if the vectorized statement is a store. A store statement can only
24399 appear at the end of pattern statements.
24400
24401 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24402
24403 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24404 (ix86_option_override_internal): Default long double to 64-bit for
24405 32-bit Bionic and to 128-bit for 64-bit Bionic.
24406
24407 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24408 TARGET_LONG_DOUBLE_128 is true.
24409 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24410
24411 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24412 (mlong-double-64): Negate -mlong-double-128.
24413 (mlong-double-128): New option.
24414
24415 * config/i386/i386-c.c (ix86_target_macros): Define
24416 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24417
24418 * doc/invoke.texi: Document -mlong-double-128.
24419
24420 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24421
24422 PR rtl-optimization/60024
24423 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24424
24425 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24426
24427 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24428
24429 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24430
24431 PR rtl-optimization/57662
24432 * sel-sched.c (code_motion_path_driver): Do not mark already not
24433 existing blocks in the visiting bitmap.
24434
24435 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24436
24437 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24438 on the insn being emitted.
24439
24440 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24441 Will Deacon <will.deacon@arm.com>
24442
24443 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24444
24445 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24446
24447 * config/arm/arm-tables.opt: Regenerate.
24448
24449 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24450
24451 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24452 for vector types other than V16QImode.
24453 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24454 define_expand, and call altivec_expand_vec_perm_le when producing
24455 code with little endian element order.
24456 (*altivec_vperm_<mode>_internal): New insn having previous
24457 behavior of altivec_vperm_<mode>.
24458 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24459 altivec_expand_vec_perm_le when producing code with little endian
24460 element order.
24461 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24462 behavior of altivec_vperm_<mode>_uns.
24463
24464 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24465
24466 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24467 (altivec_vsumsws): Add handling for -maltivec=be with a little
24468 endian target.
24469 (altivec_vsumsws_direct): New.
24470 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24471 gen_altivec_vsumsws.
24472
24473 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24474
24475 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24476 vtable_pointer_value_to_binfo): New functions.
24477 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24478 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24479
24480 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24481
24482 * config/nios2/nios2.md (load_got_register): Initialize GOT
24483 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24484 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24485
24486 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24487
24488 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24489 preserverd by passthrough, do not propagate the type.
24490
24491 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24492
24493 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24494 (mips_atomic_assign_expand_fenv): New function.
24495 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24496
24497 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24498
24499 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24500 (__builtin_mips_set_fcsr): Likewise.
24501 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24502 MIPS_USI_FTYPE_VOID.
24503 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24504 (mips16_expand_set_fcsr): Likewise.
24505 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24506 (mips16_set_fcsr_stub): Likewise.
24507 (mips16_get_fcsr_one_only_stub): New class.
24508 (mips16_set_fcsr_one_only_stub): Likewise.
24509 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24510 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24511 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24512 (hard_float): New availability predicate.
24513 (mips_builtins): Add get_fcsr and set_fcsr.
24514 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24515 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24516 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24517 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24518 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24519 patterns.
24520
24521 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24522
24523 * config/mips/mips.c (mips_one_only_stub): New class.
24524 (mips_need_mips16_rdhwr_p): Replace with...
24525 (mips16_rdhwr_stub): ...this new variable.
24526 (mips16_stub_call_address): New function.
24527 (mips16_rdhwr_one_only_stub): New class.
24528 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24529 (mips_output_mips16_rdhwr): Delete.
24530 (mips_finish_stub): New function.
24531 (mips_code_end): Use it to handle rdhwr stubs.
24532
24533 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24534
24535 PR target/60017
24536 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24537 when calculating size of integer atomic types.
24538
24539 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24540
24541 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24542
24543 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24544
24545 PR tree-optimization/60003
24546 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24547 * profile.c (branch_prob): Use gimple_call_builtin_p
24548 to check for BUILT_IN_SETJMP_RECEIVER.
24549 * tree-inline.c (copy_bb): Call notice_special_calls.
24550
24551 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24552
24553 PR bootstrap/59985
24554 * lra-constraints.c (process_alt_operands): Update reload_sum only
24555 on the first pass.
24556
24557 2014-01-31 Richard Henderson <rth@redhat.com>
24558
24559 PR middle-end/60004
24560 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24561 until after else_eh is processed.
24562
24563 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24564
24565 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24566 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24567 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24568 in smmintrin.h, remove them.
24569 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24570 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24571 * config/i386/i386.md (ROUND_SAE): Fix value.
24572 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24573 (const48_operand): New.
24574 * config/i386/subst.md (round), (round_expand): Use
24575 const_4_or_8_to_11_operand.
24576 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24577
24578 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24579
24580 * config/i386/constraints.md (Yk): Swap meaning with k.
24581 * config/i386/i386.md (movhi_internal): Change Yk to k.
24582 (movqi_internal): Ditto.
24583 (*k<logic><mode>): Ditto.
24584 (*andhi_1): Ditto.
24585 (*andqi_1): Ditto.
24586 (kandn<mode>): Ditto.
24587 (*<code>hi_1): Ditto.
24588 (*<code>qi_1): Ditto.
24589 (kxnor<mode>): Ditto.
24590 (kortestzhi): Ditto.
24591 (kortestchi): Ditto.
24592 (kunpckhi): Ditto.
24593 (*one_cmplhi2_1): Ditto.
24594 (*one_cmplqi2_1): Ditto.
24595 * config/i386/sse.md (): Change k to Yk.
24596 (avx512f_load<mode>_mask): Ditto.
24597 (avx512f_blendm<mode>): Ditto.
24598 (avx512f_store<mode>_mask): Ditto.
24599 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24600 (avx512f_storedqu<mode>_mask): Ditto.
24601 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24602 Ditto.
24603 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24604 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24605 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24606 (avx512f_maskcmp<mode>3): Ditto.
24607 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24608 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24609 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24610 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24611 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24612 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24613 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24614 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24615 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24616 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24617 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24618 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24619 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24620 (vec_extract_lo_<mode>_maskm): Ditto.
24621 (vec_extract_hi_<mode>_maskm): Ditto.
24622 (avx512f_vternlog<mode>_mask): Ditto.
24623 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24624 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24625 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24626 (avx512f_<code>v8div16qi2_mask): Ditto.
24627 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24628 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24629 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24630 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24631 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24632 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24633 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24634 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24635 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24636 (avx512cd_maskb_vec_dupv8di): Ditto.
24637 (avx512cd_maskw_vec_dupv16si): Ditto.
24638 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24639 (avx512f_vpermi2var<mode>3_mask): Ditto.
24640 (avx512f_vpermi2var<mode>3_mask): Ditto.
24641 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24642 (*avx512f_gathersi<mode>): Ditto.
24643 (*avx512f_gathersi<mode>_2): Ditto.
24644 (*avx512f_gatherdi<mode>): Ditto.
24645 (*avx512f_gatherdi<mode>_2): Ditto.
24646 (*avx512f_scattersi<mode>): Ditto.
24647 (*avx512f_scatterdi<mode>): Ditto.
24648 (avx512f_compress<mode>_mask): Ditto.
24649 (avx512f_compressstore<mode>_mask): Ditto.
24650 (avx512f_expand<mode>_mask): Ditto.
24651 * config/i386/subst.md (mask): Change k to Yk.
24652 (mask_scalar_merge): Ditto.
24653 (sd): Ditto.
24654
24655 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24656
24657 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24658
24659 2014-01-31 Richard Biener <rguenther@suse.de>
24660
24661 PR middle-end/59990
24662 * builtins.c (fold_builtin_memory_op): Make sure to not
24663 use a floating-point mode or a boolean or enumeral type for
24664 the copy operation.
24665
24666 2014-01-30 DJ Delorie <dj@redhat.com>
24667
24668 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24669 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24670 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24671 whenever main() has an epilogue.
24672
24673 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24674
24675 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24676 unused variable "field".
24677 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24678 (vsx_mergeh_<mode>): Likewise.
24679 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24680 (altivec_vmrghh): Likewise.
24681 (altivec_vmrghw): Likewise.
24682 (altivec_vmrglb): Likewise.
24683 (altivec_vmrglh): Likewise.
24684 (altivec_vmrglw): Likewise.
24685 (altivec_vspltb): Add missing uses.
24686 (altivec_vsplth): Likewise.
24687 (altivec_vspltw): Likewise.
24688 (altivec_vspltsf): Likewise.
24689
24690 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24691
24692 PR target/59923
24693 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24694 frame related instructions.
24695
24696 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24697
24698 PR rtl-optimization/59959
24699 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24700 any reload of register whose subreg is invalid.
24701
24702 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24703
24704 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24705 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24706 Add missing return type - void.
24707
24708 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24709
24710 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24711 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24712 remove element index adjustment for endian (now handled in vsx.md
24713 and altivec.md).
24714 (altivec_expand_vec_perm_const): Use
24715 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24716 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24717 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24718 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24719 define_expand and a new define_insn *altivec_vspltb_internal;
24720 adjust for -maltivec=be on a little endian target.
24721 (altivec_vspltb_direct): New.
24722 (altivec_vsplth): Divide into a define_expand and a new
24723 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24724 little endian target.
24725 (altivec_vsplth_direct): New.
24726 (altivec_vspltw): Divide into a define_expand and a new
24727 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24728 little endian target.
24729 (altivec_vspltw_direct): New.
24730 (altivec_vspltsf): Divide into a define_expand and a new
24731 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24732 a little endian target.
24733
24734 2014-01-30 Richard Biener <rguenther@suse.de>
24735
24736 PR tree-optimization/59993
24737 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24738 can propagate form the earlier stmt and avoid the transform
24739 when the intermediate result is needed.
24740
24741 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24742
24743 * README.Portability: Fix typo.
24744
24745 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24746
24747 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24748 comparison_operator with ordered_comparison_operator.
24749
24750 2014-01-30 Nick Clifton <nickc@redhat.com>
24751
24752 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24753 Rename to mn10300_store_multiple_regs.
24754 * config/mn10300/mn10300.c: Likewise.
24755 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24756 store_multiple_regs.
24757 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24758 Call mn10300_store_multiple_regs.
24759
24760 2014-01-30 Nick Clifton <nickc@redhat.com>
24761 DJ Delorie <dj@redhat.com>
24762
24763 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24764 %fp 2 to keep registers after it properly word-aligned.
24765 (rl78_alloc_physical_registers_umul): Handle the case where both
24766 input operands are the same.
24767
24768 2014-01-30 Richard Biener <rguenther@suse.de>
24769
24770 PR tree-optimization/59903
24771 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24772 check properly.
24773
24774 2014-01-30 Jason Merrill <jason@redhat.com>
24775
24776 PR c++/59633
24777 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24778
24779 PR c++/59645
24780 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24781
24782 2014-01-30 Richard Biener <rguenther@suse.de>
24783
24784 PR tree-optimization/59951
24785 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24786
24787 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24788
24789 PR target/59784
24790 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24791 SFmode to DFmode case.
24792
24793 2014-01-29 DJ Delorie <dj@redhat.com>
24794
24795 * config/msp430/msp430.opt (-minrt): New.
24796 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24797 if -minrt given.
24798 (ENDFILE_SPEC): Likewise.
24799
24800 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24801
24802 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24803 (estimate_function_body_sizes): Use it.
24804
24805 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24806
24807 PR c++/58561
24808 * dwarf2out.c (is_cxx_auto): New.
24809 (is_base_type): Use it.
24810 (gen_type_die_with_usage): Likewise.
24811
24812 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24813
24814 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24815 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24816 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24817 -maltivec=be with LE targets.
24818 (vsx_mergeh_<mode>): Likewise.
24819 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24820 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24821 (altivec_vmrghb): Replace with define_expand and new
24822 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24823 (altivec_vmrghb_direct): New define_insn.
24824 (altivec_vmrghh): Replace with define_expand and new
24825 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24826 (altivec_vmrghh_direct): New define_insn.
24827 (altivec_vmrghw): Replace with define_expand and new
24828 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24829 (altivec_vmrghw_direct): New define_insn.
24830 (*altivec_vmrghsf): Adjust for endianness.
24831 (altivec_vmrglb): Replace with define_expand and new
24832 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24833 (altivec_vmrglb_direct): New define_insn.
24834 (altivec_vmrglh): Replace with define_expand and new
24835 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24836 (altivec_vmrglh_direct): New define_insn.
24837 (altivec_vmrglw): Replace with define_expand and new
24838 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24839 (altivec_vmrglw_direct): New define_insn.
24840 (*altivec_vmrglsf): Adjust for endianness.
24841 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24842 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24843 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24844 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24845 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24846 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24847 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24848 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24849
24850 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24851
24852 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24853 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24854 whitespace.
24855
24856 2014-01-29 Richard Biener <rguenther@suse.de>
24857
24858 PR tree-optimization/58742
24859 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24860 associate_pointerplus_align.
24861 (associate_pointerplus_diff): New function.
24862 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24863 and associate_pointerplus_diff.
24864
24865 2014-01-29 Richard Biener <rguenther@suse.de>
24866
24867 * lto-streamer.h (LTO_major_version): Bump to 3.
24868 (LTO_minor_version): Reset to 0.
24869
24870 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24871
24872 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24873 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24874 (arm_file_start): Generate correct asm header for armv7ve.
24875 * config/arm/bpabi.h: Add multilib support for armv7ve.
24876 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24877 and cortex-a15 to armv7ve.
24878 * config/arm/t-aprofile: Add multilib support for armv7ve.
24879 * doc/invoke.texi: Document -march=armv7ve.
24880
24881 2014-01-29 Richard Biener <rguenther@suse.de>
24882
24883 PR tree-optimization/58742
24884 * tree-ssa-forwprop.c (associate_plusminus): Return true
24885 if we changed sth, defer EH cleanup to ...
24886 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24887 (simplify_mult): New function.
24888
24889 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24890
24891 PR middle-end/59917
24892 PR tree-optimization/59920
24893 * tree.c (build_common_builtin_nodes): Remove
24894 __builtin_setjmp_dispatcher initialization.
24895 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24896 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24897 instead of gsi_after_labels + manually skipping debug stmts.
24898 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24899 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24900 * tree-inline.c (copy_edges_for_bb): Remove
24901 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24902 argument. Ignore computed_goto_p stmts. Don't call
24903 make_abnormal_goto_edges. If a call might need abnormal edges
24904 for non-local gotos, see if it already has an edge to
24905 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24906 with true argument, don't do anything then, otherwise add
24907 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24908 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24909 caller.
24910 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24911 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24912 (lower_stmt): Don't set data->calls_builtin_setjmp.
24913 (lower_builtin_setjmp): Adjust comment.
24914 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24915 * tree-cfg.c (found_computed_goto): Remove.
24916 (factor_computed_gotos): Remove.
24917 (make_goto_expr_edges): Return bool, true for computed gotos.
24918 Don't call make_abnormal_goto_edges.
24919 (build_gimple_cfg): Don't set found_computed_goto, don't call
24920 factor_computed_gotos.
24921 (computed_goto_p): No longer static.
24922 (make_blocks): Don't set found_computed_goto.
24923 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24924 (make_edges): If make_goto_expr_edges returns true, push bb
24925 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24926 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24927 vector. Record mapping between bbs and OpenMP regions if there
24928 are any, adjust make_gimple_omp_edges caller. Call
24929 handle_abnormal_edges.
24930 (make_abnormal_goto_edges): Remove.
24931 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24932 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24933 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24934 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24935 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24936 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24937 filling *region also set *region_idx to (*region)->entry->index.
24938
24939 PR other/58712
24940 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24941 For REGs set ORIGINAL_REGNO.
24942
24943 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24944
24945 * doc/md.texi: Mention that a target shouldn't implement
24946 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24947 than hi/lo pair.
24948
24949 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24950
24951 PR tree-optimization/59594
24952 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24953 a copy of the datarefs vector rather than the vector itself.
24954
24955 2014-01-28 Jason Merrill <jason@redhat.com>
24956
24957 PR c++/53756
24958 * dwarf2out.c (auto_die): New static.
24959 (gen_type_die_with_usage): Handle C++1y 'auto'.
24960 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24961 on definition.
24962
24963 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24964
24965 PR target/59672
24966 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24967 (SPEC_X32): Likewise.
24968 (SPEC_64): Likewise.
24969 * config/i386/i386.c (ix86_option_override_internal): Turn off
24970 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24971 for TARGET_16BIT.
24972 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24973 * config/i386/i386.h (TARGET_16BIT): New macro.
24974 (TARGET_16BIT_P): Likewise.
24975 * config/i386/i386.opt: Add m16.
24976 * doc/invoke.texi: Document -m16.
24977
24978 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24979
24980 PR preprocessor/59935
24981 * input.c (location_get_source_line): Bail out on when line number
24982 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24983
24984 2014-01-28 Richard Biener <rguenther@suse.de>
24985
24986 PR tree-optimization/58742
24987 * tree-ssa-forwprop.c (associate_plusminus): Handle
24988 pointer subtraction of the form (T)(P + A) - (T)P.
24989
24990 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24991
24992 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24993 at const_int_cost.
24994
24995 2014-01-28 Richard Biener <rguenther@suse.de>
24996
24997 Revert
24998 2014-01-28 Richard Biener <rguenther@suse.de>
24999
25000 PR rtl-optimization/45364
25001 PR rtl-optimization/59890
25002 * var-tracking.c (local_get_addr_clear_given_value): Handle
25003 already cleared slot.
25004 (val_reset): Handle not allocated local_get_addr_cache.
25005 (vt_find_locations): Use post-order on the inverted CFG.
25006
25007 2014-01-28 Richard Biener <rguenther@suse.de>
25008
25009 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25010
25011 2014-01-28 Richard Biener <rguenther@suse.de>
25012
25013 PR rtl-optimization/45364
25014 PR rtl-optimization/59890
25015 * var-tracking.c (local_get_addr_clear_given_value): Handle
25016 already cleared slot.
25017 (val_reset): Handle not allocated local_get_addr_cache.
25018 (vt_find_locations): Use post-order on the inverted CFG.
25019
25020 2014-01-28 Alan Modra <amodra@gmail.com>
25021
25022 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25023 * configure.ac <recursive call for build != host>: Define
25024 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25025 and LD_FOR_BUILD too.
25026 * configure: Regenerate.
25027
25028 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25029
25030 * config/i386/i386.c (get_builtin_code_for_version): Separate
25031 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25032 Broadwell from Haswell.
25033
25034 2014-01-27 Steve Ellcey <sellcey@mips.com>
25035
25036 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25037 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25038 * config/mips/mips.c (mips_option_override): Change setting
25039 of TARGET_DSP.
25040 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25041 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25042 Change from Mask to Var.
25043
25044 2014-01-27 Jeff Law <law@redhat.com>
25045
25046 * ipa-inline.c (inline_small_functions): Fix typo.
25047
25048 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25049
25050 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25051 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25052 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25053 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25054 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25055 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25056 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25057 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25058 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25059 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25060 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25061 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25062 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25063 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25064 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25065 (_mm512_storeu_epi64): Ditto.
25066 (_mm512_cmpge_epi32_mask): Ditto.
25067 (_mm512_cmpge_epu32_mask): Ditto.
25068 (_mm512_cmpge_epi64_mask): Ditto.
25069 (_mm512_cmpge_epu64_mask): Ditto.
25070 (_mm512_cmple_epi32_mask): Ditto.
25071 (_mm512_cmple_epu32_mask): Ditto.
25072 (_mm512_cmple_epi64_mask): Ditto.
25073 (_mm512_cmple_epu64_mask): Ditto.
25074 (_mm512_cmplt_epi32_mask): Ditto.
25075 (_mm512_cmplt_epu32_mask): Ditto.
25076 (_mm512_cmplt_epi64_mask): Ditto.
25077 (_mm512_cmplt_epu64_mask): Ditto.
25078 (_mm512_cmpneq_epi32_mask): Ditto.
25079 (_mm512_cmpneq_epu32_mask): Ditto.
25080 (_mm512_cmpneq_epi64_mask): Ditto.
25081 (_mm512_cmpneq_epu64_mask): Ditto.
25082 (_mm512_expand_pd): Ditto.
25083 (_mm512_expand_ps): Ditto.
25084 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25085 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25086 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25087 * config/i386/i386.c (ix86_builtins): Add
25088 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25089 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25090 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25091 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25092 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25093 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25094 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25095 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25096 IX86_BUILTIN_PMOVUSQW512_MEM.
25097 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25098 __builtin_ia32_pmovsqd512mem_mask,
25099 __builtin_ia32_pmovqd512mem_mask,
25100 __builtin_ia32_pmovusqw512mem_mask,
25101 __builtin_ia32_pmovsqw512mem_mask,
25102 __builtin_ia32_pmovqw512mem_mask,
25103 __builtin_ia32_pmovusdw512mem_mask,
25104 __builtin_ia32_pmovsdw512mem_mask,
25105 __builtin_ia32_pmovdw512mem_mask,
25106 __builtin_ia32_pmovqb512mem_mask,
25107 __builtin_ia32_pmovusqb512mem_mask,
25108 __builtin_ia32_pmovsqb512mem_mask,
25109 __builtin_ia32_pmovusdb512mem_mask,
25110 __builtin_ia32_pmovsdb512mem_mask,
25111 __builtin_ia32_pmovdb512mem_mask.
25112 (bdesc_args): Add __builtin_ia32_expanddf512,
25113 __builtin_ia32_expandsf512.
25114 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25115 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25116 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25117 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25118 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25119 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25120 (avx512f_<code>v8div16qi2_mask_store): This.
25121 (avx512f_expand<mode>): New.
25122
25123 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25124
25125 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25126 New.
25127 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25128 (_mm512_prefetch_i32scatter_pd): Ditto.
25129 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25130 (_mm512_prefetch_i64scatter_pd): Ditto.
25131 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25132 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25133 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25134 (_mm512_prefetch_i32scatter_ps): Ditto.
25135 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25136 (_mm512_prefetch_i64scatter_ps): Ditto.
25137 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25138 * config/i386/i386-builtin-types.def: Define
25139 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25140 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25141 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25142 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25143 IX86_BUILTIN_SCATTERPFQPD.
25144 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25145 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25146 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25147 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25148 __builtin_ia32_scatterpfqps.
25149 (ix86_expand_builtin): Expand new built-ins.
25150 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25151 fix memory access data type.
25152 (*avx512pf_gatherpf<mode>_mask): Ditto.
25153 (*avx512pf_gatherpf<mode>): Ditto.
25154 (avx512pf_scatterpf<mode>): Ditto.
25155 (*avx512pf_scatterpf<mode>_mask): Ditto.
25156 (*avx512pf_scatterpf<mode>): Ditto.
25157 (GATHER_SCATTER_SF_MEM_MODE): New.
25158 (avx512pf_gatherpf<mode>df): Ditto.
25159 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25160 (*avx512pf_scatterpf<mode>df): Ditto.
25161
25162 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25163
25164 PR bootstrap/59934
25165 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25166 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25167 reached.
25168
25169 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25170
25171 * common/config/arm/arm-common.c
25172 (arm_rewrite_mcpu): Handle multiple names.
25173 * config/arm/arm.h
25174 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25175
25176 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25177
25178 * gimple-builder.h (create_gimple_tmp): Delete.
25179
25180 2014-01-27 Christian Bruel <christian.bruel@st.com>
25181
25182 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25183 words comparisons.
25184
25185 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25186
25187 * config/pa/pa.md (call): Generate indirect long calls to non-local
25188 functions when outputing 32-bit code.
25189 (call_value): Likewise except for special call to buggy powf function.
25190
25191 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25192 portable runtime and PIC indirect calls.
25193 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25194 and PIC call sequences. Use ldo instead of blr to set return register
25195 in PIC call sequence.
25196
25197 2014-01-25 Walter Lee <walt@tilera.com>
25198
25199 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25200 avoid clobbering a live register.
25201
25202 2014-01-25 Walter Lee <walt@tilera.com>
25203
25204 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25205 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25206 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25207 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25208
25209 2014-01-25 Walter Lee <walt@tilera.com>
25210
25211 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25212 arguments on even registers.
25213 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25214 STACK_BOUNDARY.
25215 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25216 (BIGGEST_ALIGNMENT): Ditto.
25217 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25218
25219 2014-01-25 Walter Lee <walt@tilera.com>
25220
25221 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25222 insns before bundling.
25223 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25224
25225 2014-01-25 Walter Lee <walt@tilera.com>
25226
25227 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25228 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25229 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25230
25231 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25232
25233 * config/mips/constraints.md (kl): Delete.
25234 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25235 define expands, using...
25236 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25237 instructions for MIPS16.
25238 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25239 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25240
25241 2014-01-25 Walter Lee <walt@tilera.com>
25242
25243 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25244 (clzdi2): Ditto.
25245 (ffsdi2): Ditto.
25246
25247 2014-01-25 Walter Lee <walt@tilera.com>
25248
25249 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25250 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25251
25252 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25253
25254 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25255 Handle XOR.
25256
25257 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25258
25259 * print-rtl.c (in_call_function_usage): New var.
25260 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25261 EXPR_LIST mode as mode and not as reg note name.
25262
25263 PR middle-end/59561
25264 * cfgloopmanip.c (copy_loop_info): If
25265 loop->warned_aggressive_loop_optimizations, make sure
25266 the flag is set in target loop too.
25267
25268 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25269
25270 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25271 flag_cilkplus.
25272 * builtins.def: Likewise.
25273 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25274 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25275 * ira.c (ira_setup_eliminable_regset): Likewise.
25276 * omp-low.c (gate_expand_omp): Likewise.
25277 (execute_lower_omp): Likewise.
25278 (diagnose_sb_0): Likewise.
25279 (gate_diagnose_omp_blocks): Likewise.
25280 (simd_clone_clauses_extract): Likewise.
25281 (gate): Likewise.
25282
25283 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25284
25285 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25286 correction for little endian...
25287 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25288 here.
25289
25290 2014-01-24 Jeff Law <law@redhat.com>
25291
25292 PR tree-optimization/59919
25293 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25294 for non-returning calls.
25295
25296 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25297
25298 * common/config/aarch64/aarch64-common.c
25299 (aarch64_rewrite_mcpu): Handle multiple names.
25300 * config/aarch64/aarch64.h
25301 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25302
25303 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25304
25305 * input.c (add_file_to_cache_tab): Handle the case where fopen
25306 returns NULL.
25307
25308 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25309
25310 PR target/59929
25311 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25312 from push operand if code of push isn't PRE_DEC.
25313
25314 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25315
25316 PR target/59909
25317 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25318 -mquad-memory-atomic. Update -mquad-memory documentation to say
25319 it is only used for non-atomic loads/stores.
25320
25321 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25322 -mquad-memory or -mquad-memory-atomic switches.
25323
25324 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25325 -mquad-memory-atomic to ISA 2.07 support.
25326
25327 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25328 to separate support of normal quad word memory operations (ldq, stq)
25329 from the atomic quad word memory operations.
25330
25331 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25332 support to separate non-atomic quad word operations from atomic
25333 quad word operations. Disable non-atomic quad word operations in
25334 little endian mode so that we don't have to swap words after the
25335 load and before the store.
25336 (quad_load_store_p): Add comment about atomic quad word support.
25337 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25338 options printed with -mdebug=reg.
25339
25340 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25341 -mquad-memory-atomic as the test for whether we have quad word
25342 atomic instructions.
25343 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25344 or -mp8-vector are used, allow byte/half-word atomic operations.
25345
25346 * config/rs6000/sync.md (load_lockedti): Insure that the address
25347 is a proper indexed or indirect address for the lqarx instruction.
25348 On little endian systems, swap the hi/lo registers after the lqarx
25349 instruction.
25350 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25351 insure the address is valid for the lqarx instruction.
25352 (store_conditionalti): Insure that the address is a proper indexed
25353 or indirect address for the stqcrx. instruction. On little endian
25354 systems, swap the hi/lo registers before doing the stqcrx.
25355 instruction.
25356 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25357 insure the address is valid for the stqcrx. instruction.
25358
25359 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25360 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25361 type of quad memory support is available.
25362
25363 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25364
25365 PR regression/59915
25366 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25367 there is a danger of looping.
25368
25369 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25370
25371 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25372 force flag_ira_loop_pressure if set via command line.
25373
25374 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25375
25376 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25377 (ashr_simd): New builtin handling DI mode.
25378 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25379 (aarch64_sshr_simddi): New match pattern.
25380 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25381 (vshrd_n_s64): Likewise.
25382 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25383
25384 2014-01-23 Nick Clifton <nickc@redhat.com>
25385
25386 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25387 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25388 favour of mcu specific scripts.
25389 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25390 430x multilibs.
25391
25392 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25393 Alex Velenko <Alex.Velenko@arm.com>
25394
25395 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25396 (vaddv_s16): Likewise.
25397 (vaddv_s32): Likewise.
25398 (vaddv_u8): Likewise.
25399 (vaddv_u16): Likewise.
25400 (vaddv_u32): Likewise.
25401 (vaddvq_s8): Likewise.
25402 (vaddvq_s16): Likewise.
25403 (vaddvq_s32): Likewise.
25404 (vaddvq_s64): Likewise.
25405 (vaddvq_u8): Likewise.
25406 (vaddvq_u16): Likewise.
25407 (vaddvq_u32): Likewise.
25408 (vaddvq_u64): Likewise.
25409 (vaddv_f32): Likewise.
25410 (vaddvq_f32): Likewise.
25411 (vaddvq_f64): Likewise.
25412 (vmaxv_f32): Likewise.
25413 (vmaxv_s8): Likewise.
25414 (vmaxv_s16): Likewise.
25415 (vmaxv_s32): Likewise.
25416 (vmaxv_u8): Likewise.
25417 (vmaxv_u16): Likewise.
25418 (vmaxv_u32): Likewise.
25419 (vmaxvq_f32): Likewise.
25420 (vmaxvq_f64): Likewise.
25421 (vmaxvq_s8): Likewise.
25422 (vmaxvq_s16): Likewise.
25423 (vmaxvq_s32): Likewise.
25424 (vmaxvq_u8): Likewise.
25425 (vmaxvq_u16): Likewise.
25426 (vmaxvq_u32): Likewise.
25427 (vmaxnmv_f32): Likewise.
25428 (vmaxnmvq_f32): Likewise.
25429 (vmaxnmvq_f64): Likewise.
25430 (vminv_f32): Likewise.
25431 (vminv_s8): Likewise.
25432 (vminv_s16): Likewise.
25433 (vminv_s32): Likewise.
25434 (vminv_u8): Likewise.
25435 (vminv_u16): Likewise.
25436 (vminv_u32): Likewise.
25437 (vminvq_f32): Likewise.
25438 (vminvq_f64): Likewise.
25439 (vminvq_s8): Likewise.
25440 (vminvq_s16): Likewise.
25441 (vminvq_s32): Likewise.
25442 (vminvq_u8): Likewise.
25443 (vminvq_u16): Likewise.
25444 (vminvq_u32): Likewise.
25445 (vminnmv_f32): Likewise.
25446 (vminnmvq_f32): Likewise.
25447 (vminnmvq_f64): Likewise.
25448
25449 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25450
25451 * config/aarch64/aarch64-simd.md
25452 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25453 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25454 (*aarch64_mul3_elt<mode>): Likewise.
25455 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25456 (*aarch64_mul3_elt_to_64v2df): Likewise.
25457 (*aarch64_mla_elt<mode>): Likewise.
25458 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25459 (*aarch64_mls_elt<mode>): Likewise.
25460 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25461 (*aarch64_fma4_elt<mode>): Likewise.
25462 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25463 (*aarch64_fma4_elt_to_64v2df): Likewise.
25464 (*aarch64_fnma4_elt<mode>): Likewise.
25465 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25466 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25467 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25468 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25469 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25470 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25471 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25472 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25473 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25474
25475 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25476
25477 * config/aarch64/aarch64-simd.md
25478 (aarch64_be_checked_get_lane<mode>): New define_expand.
25479 * config/aarch64/aarch64-simd-builtins.def
25480 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25481 New builtin definition.
25482 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25483 Use new safe be builtin.
25484
25485 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25486
25487 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25488 New define_insn.
25489 (aarch64_be_st1<mode>): Likewise.
25490 (aarch_ld1<VALL:mode>): Define_expand modified.
25491 (aarch_st1<VALL:mode>): Likewise.
25492 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25493 (UNSPEC_ST1): Likewise.
25494
25495 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25496
25497 * config/microblaze/microblaze.md: Add trap insn and attribute
25498
25499 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25500
25501 PR preprocessor/58580
25502 * input.h (location_get_source_line): Take an additional line_size
25503 parameter.
25504 (void diagnostics_file_cache_fini): Declare new function.
25505 * input.c (struct fcache): New type.
25506 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25507 New static constants.
25508 (diagnostic_file_cache_init, total_lines_num)
25509 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25510 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25511 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25512 (get_next_line, read_next_line, goto_next_line, read_line_num):
25513 New static function definitions.
25514 (diagnostic_file_cache_fini): New function.
25515 (location_get_source_line): Take an additional output line_len
25516 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25517 read_line_num.
25518 * diagnostic.c (diagnostic_finish): Call
25519 diagnostic_file_cache_fini.
25520 (adjust_line): Take an additional input parameter for the length
25521 of the line, rather than calculating it with strlen.
25522 (diagnostic_show_locus): Adjust the use of
25523 location_get_source_line and adjust_line with respect to their new
25524 signature. While displaying a line now, do not stop at the first
25525 null byte. Rather, display the zero byte as a space and keep
25526 going until we reach the size of the line.
25527 * Makefile.in: Add vec.o to OBJS-libcommon
25528
25529 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25530 Ilya Tocar <ilya.tocar@intel.com>
25531
25532 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25533 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25534 (__builtin_ia32_kmov16): Ditto.
25535 * config/i386/i386.md (UNSPEC_KMOV): New.
25536 (kmovw): Ditto.
25537
25538 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25539
25540 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25541 (_mm512_storeu_si512): Ditto.
25542
25543 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25544
25545 PR target/52125
25546 * rtl.h (get_referenced_operands): Declare.
25547 * recog.c (get_referenced_operands): New function.
25548 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25549 operands have been referenced when recording LO_SUM references.
25550
25551 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25552
25553 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25554
25555 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25556
25557 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25558 Enable for generic and recent AMD targets.
25559
25560 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25561
25562 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25563 ARG_SIZE note when adjustment was eliminated.
25564
25565 2014-01-22 Jeff Law <law@redhat.com>
25566
25567 PR tree-optimization/59597
25568 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25569 in file. Accept new argument REGISTERING and use it to modify
25570 dump output appropriately.
25571 (register_jump_thread): Corresponding changes.
25572 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25573 thread paths involving joiner blocks. Add code to dump cancelled
25574 jump threading paths.
25575
25576 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25577
25578 PR rtl-optimization/59477
25579 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25580 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25581
25582 2014-01-22 Tom Tromey <tromey@redhat.com>
25583
25584 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25585 PARAMS.
25586 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25587
25588 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25589
25590 PR rtl-optimization/59896
25591 * lra-constraints.c (process_alt_operands): Check unused note for
25592 matched operands of insn with no output reloads.
25593
25594 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25595
25596 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25597 (mips_move_from_gpr_cost): Likewise.
25598
25599 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25600
25601 PR rtl-optimization/59858
25602 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25603 ira_class_hard_regs_num.
25604 (process_alt_operands): Increase reject for dying matched operand.
25605
25606 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25607
25608 PR target/59003
25609 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25610 smaller than size, perform several stores or loads and stores
25611 at dst + count - size to store or copy all of size bytes, rather
25612 than just last modesize bytes.
25613
25614 2014-01-20 DJ Delorie <dj@redhat.com>
25615
25616 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25617 that CLOBBERs are REGs before propogating their values.
25618
25619 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25620
25621 PR middle-end/59789
25622 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25623 (cgraph_inline_failed_type): New function.
25624 * cgraph.h (DEFCIFCODE): Add type.
25625 (cgraph_inline_failed_type_t): New enum.
25626 (cgraph_inline_failed_type): New prototype.
25627 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25628 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25629 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25630 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25631 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25632 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25633 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25634 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25635 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25636 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25637 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25638 OPTIMIZATION_MISMATCH.
25639 * tree-inline.c (expand_call_inline): Emit errors during
25640 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25641
25642 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25643
25644 PR target/59685
25645 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25646 mode attribute in insn output.
25647
25648 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25649
25650 * output.h (output_constant): Delete.
25651 * varasm.c (output_constant): Make private.
25652
25653 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25654
25655 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25656
25657 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25658
25659 PR middle-end/59860
25660 * tree.h (fold_builtin_strcat): New prototype.
25661 * builtins.c (fold_builtin_strcat): No longer static. Add len
25662 argument, if non-NULL, don't call c_strlen. Optimize
25663 directly into __builtin_memcpy instead of __builtin_strcpy.
25664 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25665 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25666
25667 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25668
25669 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25670 for SImode_address_operand operands, having only a REG argument.
25671
25672 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25673
25674 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25675 loader name using mbig-endian.
25676 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25677
25678 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25679
25680 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25681 (-mtune): Likewise.
25682 (-mcpu): Likewise.
25683
25684 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25685
25686 * config/aarch64/aarch64-protos.h
25687 (aarch64_cannot_change_mode_class_ptr): Declare.
25688 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25689 aarch64_cannot_change_mode_class_ptr): New.
25690 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25691 backend hook aarch64_cannot_change_mode_class.
25692
25693 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25694
25695 * common/config/aarch64/aarch64-common.c
25696 (aarch64_handle_option): Don't handle any option order logic here.
25697 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25698 selected_cpu, warn on architecture version mismatch.
25699 (aarch64_override_options): Fix parsing order for option strings.
25700
25701 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25702 Iain Sandoe <iain@codesourcery.com>
25703
25704 PR bootstrap/59496
25705 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25706 warning. Amend comment to reflect current functionality.
25707
25708 2014-01-20 Richard Biener <rguenther@suse.de>
25709
25710 PR middle-end/59860
25711 * builtins.c (fold_builtin_strcat): Remove case better handled
25712 by tree-ssa-strlen.c.
25713
25714 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25715
25716 * config/aarch64/aarch64.opt
25717 (mcpu, march, mtune): Make case-insensitive.
25718
25719 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25720
25721 PR target/59880
25722 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25723 if operands[1] is a REG or ZERO_EXTEND of a REG.
25724
25725 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25726
25727 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25728
25729 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25730
25731 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25732 long non-pic millicode calls.
25733
25734 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25735
25736 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25737
25738 2014-01-19 Kito Cheng <kito@0xlab.org>
25739
25740 * builtins.c (expand_movstr): Check movstr expand done or fail.
25741
25742 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25743 H.J. Lu <hongjiu.lu@intel.com>
25744
25745 PR target/59379
25746 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25747 to DImode for zero-extended addresses.
25748
25749 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25750
25751 PR rtl-optimization/57763
25752 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25753 on the new indirect jump_insn and increment LABEL_NUSES (label).
25754
25755 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25756
25757 PR bootstrap/59580
25758 PR bootstrap/59583
25759 * config.gcc (x86_archs): New variable.
25760 (x86_64_archs): Likewise.
25761 (x86_cpus): Likewise.
25762 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25763 --with-arch/--with-cpu= options.
25764 Support --with-arch=/--with-cpu={nehalem,westmere,
25765 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25766
25767 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25768
25769 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25770 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25771
25772 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25773
25774 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25775
25776 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25777
25778 PR target/58944
25779 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25780 clear cpp_get_options (parse_in)->warn_unused_macros for
25781 ix86_target_macros_internal with cpp_define.
25782
25783 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25784
25785 * jump.c (delete_related_insns): Keep (use (insn))s.
25786 * reorg.c (redundant_insn): Check for barriers too.
25787
25788 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25789
25790 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25791
25792 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25793
25794 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25795 call to $$dyncall when TARGET_LONG_CALLS is true.
25796
25797 2014-01-17 Jeff Law <law@redhat.com>
25798
25799 * ree.c (combine_set_extension): Temporarily disable test for
25800 changing number of hard registers.
25801
25802 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25803
25804 PR middle-end/58125
25805 * ipa-inline-analysis.c (inline_free_summary):
25806 Do not free summary of aliases.
25807
25808 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25809
25810 PR middle-end/59706
25811 * gimplify.c (gimplify_expr): Use create_tmp_var
25812 instead of create_tmp_var_raw. If cond doesn't have
25813 integral type, don't add the IFN_ANNOTATE builtin at all.
25814
25815 2014-01-17 Martin Jambor <mjambor@suse.cz>
25816
25817 PR ipa/59736
25818 * ipa-cp.c (prev_edge_clone): New variable.
25819 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25820 Also resize prev_edge_clone vector.
25821 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25822 (ipcp_edge_removal_hook): New function.
25823 (ipcp_driver): Register ipcp_edge_removal_hook.
25824
25825 2014-01-17 Andrew Pinski <apinski@cavium.com>
25826 Steve Ellcey <sellcey@mips.com>
25827
25828 PR target/59462
25829 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25830 of operator mode.
25831
25832 2014-01-17 Jeff Law <law@redhat.com>
25833
25834 PR middle-end/57904
25835 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25836 so that pass_ccp runs first.
25837
25838 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25839
25840 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25841 (ix86_adjust_cost): Use !TARGET_XXX.
25842 (do_reorder_for_imul): Likewise.
25843 (swap_top_of_ready_list): Likewise.
25844 (ix86_sched_reorder): Likewise.
25845
25846 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25847
25848 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25849 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25850 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25851 (intel_memset): New. Duplicate slm_memset.
25852 (intel_cost): New. Duplicate slm_cost.
25853 (m_INTEL): New macro.
25854 (processor_target_table): Add "intel".
25855 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25856 with PROCESSOR_INTEL for "intel".
25857 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25858 PROCESSOR_SILVERMONT.
25859 (ix86_issue_rate): Likewise.
25860 (ix86_adjust_cost): Likewise.
25861 (ia32_multipass_dfa_lookahead): Likewise.
25862 (swap_top_of_ready_list): Likewise.
25863 (ix86_sched_reorder): Likewise.
25864 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25865 instead of TARGET_OPT_AGU.
25866 * config/i386/i386.h (TARGET_INTEL): New.
25867 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25868 (processor_type): Add PROCESSOR_INTEL.
25869 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25870 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25871
25872 2014-01-17 Marek Polacek <polacek@redhat.com>
25873
25874 PR c/58346
25875 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25876 size is zero.
25877
25878 2014-01-17 Richard Biener <rguenther@suse.de>
25879
25880 PR tree-optimization/46590
25881 * opts.c (default_options_table): Add entries for
25882 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25883 all enabled at -O1 but not for -Og.
25884 * common.opt (fbranch-count-reg): Remove Init(1).
25885 (fmove-loop-invariants): Likewise.
25886 (ftree-pta): Likewise.
25887
25888 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25889
25890 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25891 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25892 decls to at least the GCC 4.8 used alignments.
25893
25894 PR fortran/59440
25895 * tree-nested.c (convert_nonlocal_reference_stmt,
25896 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25897 of GIMPLE_BIND stmts, adjust associated decls.
25898
25899 2014-01-17 Richard Biener <rguenther@suse.de>
25900
25901 PR tree-optimization/46590
25902 * vec.h (vec<>::bseach): New member function implementing
25903 binary search according to C89 bsearch.
25904 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25905 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25906 bitmap pointer again. Make accesses_in_loop a flat array.
25907 (mem_ref_obstack): New global.
25908 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25909 (mark_ref_stored): Likewise.
25910 (ref_indep_loop_p_2): Likewise.
25911 (set_ref_stored_in_loop): New helper function.
25912 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25913 (memref_free): Adjust.
25914 (record_mem_ref_loc): Simplify.
25915 (gather_mem_refs_stmt): Adjust.
25916 (sort_locs_in_loop_postorder_cmp): New function.
25917 (analyze_memory_references): Sort accesses_in_loop after
25918 loop postorder number.
25919 (find_ref_loc_in_loop_cmp): New function.
25920 (for_all_locs_in_loop): Find relevant cluster of locs in
25921 accesses_in_loop and iterate without recursion.
25922 (execute_sm): Avoid uninit warning.
25923 (struct ref_always_accessed): Simplify.
25924 (ref_always_accessed::operator ()): Likewise.
25925 (ref_always_accessed_p): Likewise.
25926 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25927 loop postorder numbers here.
25928 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25929 numbers.
25930
25931 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25932
25933 PR c++/57945
25934 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25935 on decls for which assemble_alias has been called.
25936
25937 2014-01-17 Nick Clifton <nickc@redhat.com>
25938
25939 * config/msp430/msp430.opt: (mcpu): New option.
25940 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25941 (msp430_option_override): Parse target_cpu. If the MCU name
25942 matches a generic string, clear target_mcu.
25943 (msp430_attr): Allow numeric interrupt values up to 63.
25944 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25945 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25946 option.
25947 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25948 Add mcpu matches.
25949 * config/msp430/msp430.md (popm): Use %J rather than %I.
25950 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25951 (addhi_cy_i): Use immediate_operand for operand 2.
25952 * doc/invoke.texi: Document -mcpu option.
25953
25954 2014-01-17 Richard Biener <rguenther@suse.de>
25955
25956 PR rtl-optimization/38518
25957 * df.h (df_analyze_loop): Declare.
25958 * df-core.c: Include cfgloop.h.
25959 (df_analyze_1): Split out main part of df_analyze.
25960 (df_analyze): Adjust.
25961 (loop_inverted_post_order_compute): New function.
25962 (loop_post_order_compute): Likewise.
25963 (df_analyze_loop): New function avoiding whole-function
25964 postorder computes.
25965 * loop-invariant.c (find_defs): Use df_analyze_loop.
25966 (find_invariants): Adjust.
25967 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25968
25969 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25970
25971 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25972 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25973
25974 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25975
25976 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25977 traversal when removing references.
25978
25979 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25980
25981 PR ipa/59775
25982 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25983
25984 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25985
25986 PR middle-end/56791
25987 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25988 pushing a reload for an autoinc when we had previously reloaded an
25989 inner part of the address.
25990
25991 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25992
25993 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25994 field.
25995 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25996 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25997 when not giving up or versioning for alias only because of
25998 loop->safelen.
25999 (vect_analyze_data_ref_dependences): Set to true.
26000 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26001 is a GIMPLE_PHI.
26002 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26003 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26004 to the condition.
26005
26006 PR middle-end/58344
26007 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26008
26009 PR target/59839
26010 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26011 operand 0 predicate for gathers, use a new pseudo as subtarget.
26012
26013 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26014
26015 PR middle-end/59609
26016 * lra-constraints.c (process_alt_operands): Add printing debug info.
26017 Check absence of input/output reloads for matched operands too.
26018
26019 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26020
26021 PR rtl-optimization/59835
26022 * ira.c (ira_init_register_move_cost): Increase cost for
26023 impossible modes.
26024
26025 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26026
26027 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26028
26029 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26030
26031 PR target/59780
26032 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26033 non-register objects. Use gen_(high/low)part more consistently.
26034 Fix assertions.
26035
26036 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26037
26038 PR target/59844
26039 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26040 endian support, remove tests for WORDS_BIG_ENDIAN.
26041 (p8_mfvsrd_3_<mode>): Likewise.
26042 (reload_gpr_from_vsx<mode>): Likewise.
26043 (reload_gpr_from_vsxsf): Likewise.
26044 (p8_mfvsrd_4_disf): Likewise.
26045
26046 2014-01-16 Richard Biener <rguenther@suse.de>
26047
26048 PR rtl-optimization/46590
26049 * lcm.c (compute_antinout_edge): Use postorder iteration.
26050 (compute_laterin): Use inverted postorder iteration.
26051
26052 2014-01-16 Nick Clifton <nickc@redhat.com>
26053
26054 PR middle-end/28865
26055 * varasm.c (output_constant): Return the number of bytes actually
26056 emitted.
26057 (output_constructor_array_range): Update the field size with the
26058 number of bytes emitted by output_constant.
26059 (output_constructor_regular_field): Likewise. Also do not
26060 complain if the total number of bytes emitted is now greater
26061 than the expected fieldpos.
26062 * output.h (output_constant): Update prototype and descriptive comment.
26063
26064 2014-01-16 Marek Polacek <polacek@redhat.com>
26065
26066 PR middle-end/59827
26067 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26068 it is error_mark_node.
26069
26070 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26071
26072 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26073 VALID_AVX256_REG_OR_OI_MODE.
26074
26075 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26076
26077 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26078 current procedure should be profiled.
26079
26080 2014-01-15 Andrew Pinski <apinski@cavium.com>
26081
26082 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26083 of moving from/to the STACK_REG register class.
26084
26085 2014-01-15 Richard Henderson <rth@redhat.com>
26086
26087 PR debug/54694
26088 * reginfo.c (global_regs_decl): Globalize.
26089 * rtl.h (global_regs_decl): Declare.
26090 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26091 reserved via global_regs.
26092
26093 2014-01-15 Teresa Johnson <tejohnson@google.com>
26094
26095 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26096
26097 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26098
26099 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26100 and vmulosh rather than call gen_vec_widen_smult_*.
26101 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26102 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26103 (vec_widen_smult_even_v16qi): Likewise.
26104 (vec_widen_umult_even_v8hi): Likewise.
26105 (vec_widen_smult_even_v8hi): Likewise.
26106 (vec_widen_umult_odd_v16qi): Likewise.
26107 (vec_widen_smult_odd_v16qi): Likewise.
26108 (vec_widen_umult_odd_v8hi): Likewise.
26109 (vec_widen_smult_odd_v8hi): Likewise.
26110 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26111 vmuloub rather than call gen_vec_widen_umult_*.
26112 (vec_widen_umult_lo_v16qi): Likewise.
26113 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26114 vmulosb rather than call gen_vec_widen_smult_*.
26115 (vec_widen_smult_lo_v16qi): Likewise.
26116 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26117 rather than call gen_vec_widen_umult_*.
26118 (vec_widen_umult_lo_v8hi): Likewise.
26119 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26120 rather than call gen_vec_widen_smult_*.
26121 (vec_widen_smult_lo_v8hi): Likewise.
26122
26123 2014-01-15 Jeff Law <law@redhat.com>
26124
26125 PR tree-optimization/59747
26126 * ree.c (find_and_remove_re): Properly handle case where a second
26127 eliminated extension requires widening a copy created for elimination
26128 of a prior extension.
26129 (combine_set_extension): Ensure that the number of hard regs needed
26130 for a destination register does not change when we widen it.
26131
26132 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26133
26134 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26135 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26136 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26137 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26138 (avr-*-rtems*): Likewise.
26139 (bfin*-rtems*): Likewise.
26140 (moxie-*-rtems*): Likewise.
26141 (h8300-*-rtems*): Likewise.
26142 (i[34567]86-*-rtems*): Likewise.
26143 (lm32-*-rtems*): Likewise.
26144 (m32r-*-rtems*): Likewise.
26145 (m68k-*-rtems*): Likewise.
26146 (microblaze*-*-rtems*): Likewise.
26147 (mips*-*-rtems*): Likewise.
26148 (powerpc-*-rtems*): Likewise.
26149 (sh-*-rtems*): Likewise.
26150 (sparc-*-rtems*): Likewise.
26151 (sparc64-*-rtems*): Likewise.
26152 (v850-*-rtems*): Likewise.
26153 (m32c-*-rtems*): Likewise.
26154
26155 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26156
26157 PR rtl-optimization/59511
26158 * ira.c (ira_init_register_move_cost): Use memory costs for some
26159 cases of register move cost calculations.
26160 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26161 instead of BB frequency.
26162 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26163 * lra-assigns.c (find_hard_regno_for): Ditto.
26164
26165 2014-01-15 Richard Biener <rguenther@suse.de>
26166
26167 PR tree-optimization/59822
26168 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26169 (vectorizable_load): Use it to hoist defs of uses of invariant
26170 loads out of the loop.
26171
26172 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26173 Kugan Vivekanandarajah <kuganv@linaro.org>
26174
26175 PR target/59695
26176 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26177 truncation.
26178
26179 2014-01-15 Richard Biener <rguenther@suse.de>
26180
26181 PR rtl-optimization/59802
26182 * lcm.c (compute_available): Use inverted postorder to seed
26183 the initial worklist.
26184
26185 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26186
26187 PR target/59803
26188 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26189 ADDR_REGS for invalid symrefs in non-PIC code.
26190
26191 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26192
26193 PR other/58712
26194 * builtins.c (determine_block_size): Initialize *probable_max_size
26195 even if len_rtx is CONST_INT.
26196
26197 2014-01-14 Andrew Pinski <apinski@cavium.com>
26198
26199 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26200 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26201 (cortexa53_tunings): Likewise.
26202 (aarch64_sched_issue_rate): New function.
26203 (TARGET_SCHED_ISSUE_RATE): Define.
26204
26205 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26206
26207 * ira-costs.c (find_costs_and_classes): Add missed
26208 ira_init_register_move_cost_if_necessary.
26209
26210 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26211
26212 PR target/59787
26213 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26214
26215 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 PR target/59794
26218 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26219 to indicate if type is used for function return value. Warn ABI
26220 change if the vector mode isn't available for function return value.
26221 (ix86_function_arg_advance): Pass false to type_natural_mode.
26222 (ix86_function_arg): Likewise.
26223 (ix86_gimplify_va_arg): Likewise.
26224 (function_arg_32): Don't warn ABI change.
26225 (ix86_function_value): Pass true to type_natural_mode.
26226 (ix86_return_in_memory): Likewise.
26227 (ix86_struct_value_rtx): Removed.
26228 (TARGET_STRUCT_VALUE_RTX): Likewise.
26229
26230 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26231
26232 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26233 converting a conditional jump into a conditional return.
26234
26235 2014-01-14 Richard Biener <rguenther@suse.de>
26236
26237 PR tree-optimization/58921
26238 PR tree-optimization/59006
26239 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26240 hoisting invariant stmts.
26241 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26242 invariant loads on the preheader edge if possible.
26243
26244 2014-01-14 Joey Ye <joey.ye@arm.com>
26245
26246 * doc/plugin.texi (Building GCC plugins): Update to C++.
26247
26248 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26249
26250 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26251 (_mm_rcp28_round_ss): Ditto.
26252 (_mm_rsqrt28_round_sd): Ditto.
26253 (_mm_rsqrt28_round_ss): Ditto.
26254 (_mm_rcp28_sd): Ditto.
26255 (_mm_rcp28_ss): Ditto.
26256 (_mm_rsqrt28_sd): Ditto.
26257 (_mm_rsqrt28_ss): Ditto.
26258 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26259 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26260 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26261 (IX86_BUILTIN_RCP28SD): Ditto.
26262 (IX86_BUILTIN_RCP28SS): Ditto.
26263 (IX86_BUILTIN_RSQRT28SD): Ditto.
26264 (IX86_BUILTIN_RSQRT28SS): Ditto.
26265 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26266 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26267 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26268 (ix86_expand_special_args_builtin): Expand new FTYPE.
26269 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26270 (srcp14<mode>): Make insn unary.
26271 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26272 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26273 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26274 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26275 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26276 Fix rounding: make it SAE only.
26277 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26278 Ditto.
26279 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26280 Ditto.
26281 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26282 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26283 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26284 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26285 (round_saeonly_mask_scalar_operand4): Ditto.
26286 (round_saeonly_mask_scalar_op3): Ditto.
26287 (round_saeonly_mask_scalar_op4): Ditto.
26288
26289 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26290
26291 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26292 Implement -maltivec=be for vec_insert and vec_extract.
26293
26294 2014-01-10 DJ Delorie <dj@redhat.com>
26295
26296 * config/msp430/msp430.md (call_internal): Don't allow memory
26297 references with SP as the base register.
26298 (call_value_internal): Likewise.
26299 * config/msp430/constraints.md (Yc): New. For memory references
26300 that don't use SP as a base register.
26301
26302 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26303 "an integer without a # prefix"
26304 * config/msp430/msp430.md (epilogue_helper): Use it.
26305
26306 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26307
26308 PR target/59617
26309 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26310 AVX512F gather builtins.
26311 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26312 on gather decls with INTEGER_TYPE masktype.
26313 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26314 directly into the builtin rather than hoisting it before loop.
26315
26316 PR tree-optimization/59387
26317 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26318 (scev_const_prop): If folded_casts and type has undefined overflow,
26319 use force_gimple_operand instead of force_gimple_operand_gsi and
26320 for each added stmt if it is assign with
26321 arith_code_with_undefined_signed_overflow, call
26322 rewrite_to_defined_overflow.
26323 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26324 gimple-fold.h instead.
26325 (arith_code_with_undefined_signed_overflow,
26326 rewrite_to_defined_overflow): Moved to ...
26327 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26328 rewrite_to_defined_overflow): ... here. No longer static.
26329 Include gimplify-me.h.
26330 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26331 rewrite_to_defined_overflow): New prototypes.
26332
26333 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26334
26335 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26336
26337 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26338
26339 * builtins.c (get_object_alignment_2): Minor tweak.
26340 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26341
26342 2014-01-13 Christian Bruel <christian.bruel@st.com>
26343
26344 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26345 optimized non constant lengths.
26346
26347 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26348
26349 PR libgomp/59194
26350 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26351 load as __atomic_load_N if possible.
26352
26353 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26354
26355 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26356 target parameter.
26357 (rs6000_expand_builtin): Adjust call.
26358
26359 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26360
26361 PR target/58115
26362 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26363 * config/rs6000/rs6000.c: Include target-globals.h.
26364 (rs6000_set_current_function): Instead of doing target_reinit
26365 unconditionally, use save_target_globals_default_opts and
26366 restore_target_globals.
26367
26368 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26369 FPSCR.
26370 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26371 (rs6000_expand_builtin): Handle mffs and mtfsf.
26372 (rs6000_init_builtins): Define mffs and mtfsf.
26373 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26374 (rs6000_mffs): New pattern.
26375 (rs6000_mtfsf): New pattern.
26376
26377 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26378
26379 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26380 Start narrowing with START. Apply candidate-use pair
26381 and check overall cost in narrowing.
26382 (iv_ca_prune): Pass new argument.
26383
26384 2014-01-10 Jeff Law <law@redhat.com>
26385
26386 PR middle-end/59743
26387 * ree.c (combine_reaching_defs): Ensure the defining statement
26388 occurs before the extension when optimizing extensions with
26389 different source and destination hard registers.
26390
26391 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26392
26393 PR ipa/58585
26394 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26395 vtables into the type inheritance graph.
26396
26397 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26398
26399 PR rtl-optimization/59754
26400 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26401 modes in the REGNO != REGNO case.
26402
26403 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26404
26405 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26406
26407 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26408
26409 PR tree-optimization/59745
26410 * tree-predcom.c (tree_predictive_commoning_loop): Call
26411 free_affine_expand_cache if giving up because components is NULL.
26412
26413 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26414 GC in payload of target_globals struct instead of allocating them on
26415 the heap and the larger structs separately using GC.
26416 * target-globals.h (struct target_globals): Make regs, hard_regs,
26417 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26418 of GTY((skip)) and change type to void *.
26419 (reset_target_globals): Cast loads from those fields to corresponding
26420 types.
26421
26422 2014-01-10 Steve Ellcey <sellcey@mips.com>
26423
26424 PR plugins/59335
26425 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26426 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26427 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26428
26429 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26430
26431 PR target/59744
26432 * aarch64-modes.def (CC_Zmode): New flags mode.
26433 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26434 represents an equality.
26435 (aarch64_get_condition_code): Handle CC_Zmode.
26436 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26437
26438 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26439
26440 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26441 extraction in good case.
26442
26443 2014-01-10 Richard Biener <rguenther@suse.de>
26444
26445 PR tree-optimization/59374
26446 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26447 checking after SLP discovery. Mark stmts not participating
26448 in any SLP instance properly.
26449
26450 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26451
26452 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26453 when handling a SET rtx.
26454
26455 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26456
26457 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26458 (cortex-a57): Likewise.
26459 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26460
26461 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26462
26463 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26464 non-iwmmxt builtins.
26465
26466 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26467
26468 PR ipa/58252
26469 PR ipa/59226
26470 * ipa-devirt.c record_target_from_binfo): Take as argument
26471 stack of binfos and lookup matching one for virtual inheritance.
26472 (possible_polymorphic_call_targets_1): Update.
26473
26474 2014-01-10 Huacai Chen <chenhc@lemote.com>
26475
26476 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26477 kernel strings for Loongson-2E/2F/3A.
26478
26479 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26480
26481 PR middle-end/59670
26482 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26483 is_gimple_call before calling gimple_call_internal_p.
26484
26485 2014-01-09 Steve Ellcey <sellcey@mips.com>
26486
26487 * Makefile.in (TREE_FLOW_H): Remove.
26488 (TREE_SSA_H): Add file names from tree-flow.h.
26489 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26490 * tree.h: Remove tree-flow.h reference.
26491 * hash-table.h: Remove tree-flow.h reference.
26492 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26493 reference with tree-ssa-loop.h.
26494
26495 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26496
26497 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26498 default element-order behavior for -maltivec.
26499 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26500 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26501 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26502 when targeting big endian, at least for now.
26503 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26504
26505 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26506
26507 PR middle-end/47735
26508 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26509 var satisfies use_register_for_decl, just take into account type
26510 alignment, rather than decl alignment.
26511
26512 PR tree-optimization/59622
26513 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26514 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26515 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26516 Don't devirtualize for inplace at all. For targets.length () == 1,
26517 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26518
26519 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26520
26521 * config/i386/i386.md (cpu): Remove the unused btver1.
26522
26523 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26524
26525 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26526
26527 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26528
26529 PR target/58115
26530 * tree-core.h (struct target_globals): New forward declaration.
26531 (struct tree_target_option): Add globals field.
26532 * tree.h (TREE_TARGET_GLOBALS): Define.
26533 (prepare_target_option_nodes_for_pch): New prototype.
26534 * target-globals.h (struct target_globals): Define even if
26535 !SWITCHABLE_TARGET.
26536 * tree.c (prepare_target_option_node_for_pch,
26537 prepare_target_option_nodes_for_pch): New functions.
26538 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26539 * config/i386/i386.c: Include target-globals.h.
26540 (ix86_set_current_function): Instead of doing target_reinit
26541 unconditionally, use save_target_globals_default_opts and
26542 restore_target_globals.
26543
26544 2014-01-09 Richard Biener <rguenther@suse.de>
26545
26546 PR tree-optimization/59715
26547 * tree-cfg.h (split_critical_edges): Declare.
26548 * tree-cfg.c (split_critical_edges): Export.
26549 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26550
26551 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26552
26553 * cfgexpand.c (expand_stack_vars): Optionally disable
26554 asan stack protection.
26555 (expand_used_vars): Likewise.
26556 (partition_stack_vars): Likewise.
26557 * asan.c (asan_emit_stack_protection): Optionally disable
26558 after return stack usage.
26559 (instrument_derefs): Optionally disable memory access instrumentation.
26560 (instrument_builtin_call): Likewise.
26561 (instrument_strlen_call): Likewise.
26562 (asan_protect_global): Optionally disable global variables protection.
26563 * doc/invoke.texi: Added doc for new options.
26564 * params.def: Added new options.
26565 * params.h: Likewise.
26566
26567 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26568
26569 PR rtl-optimization/59724
26570 * ifcvt.c (cond_exec_process_if_block): Don't call
26571 flow_find_head_matching_sequence with 0 longest_match.
26572 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26573 non-active insns if !stop_after.
26574 (try_head_merge_bb): Revert 2014-01-07 changes.
26575
26576 2014-01-08 Jeff Law <law@redhat.com>
26577
26578 * ree.c (get_sub_rtx): New function, extracted from...
26579 (merge_def_and_ext): Here.
26580 (combine_reaching_defs): Use get_sub_rtx.
26581
26582 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26583
26584 * cgraph.h (varpool_variable_node): Do not choke on null node.
26585
26586 2014-01-08 Catherine Moore <clm@codesourcery.com>
26587
26588 * config/mips/mips.md (simple_return): Attempt to use JRC
26589 for microMIPS.
26590 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26591
26592 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26593
26594 PR rtl-optimization/59137
26595 * reorg.c (steal_delay_list_from_target): Call update_block for
26596 elided insns.
26597 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26598
26599 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26600
26601 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26602 two duplicate entries.
26603
26604 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26605
26606 Revert:
26607 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26608
26609 * config/mips/mips.c (mips_truncated_op_cost): New function.
26610 (mips_rtx_costs): Adjust test for BADDU.
26611 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26612
26613 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26614
26615 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26616 (*baddu_si): ...this new pattern.
26617
26618 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26619
26620 PR ipa/59722
26621 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26622
26623 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26624
26625 PR middle-end/57748
26626 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26627 inner_reference_p.
26628 (expand_expr, expand_normal): Adjust.
26629 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26630 inner_reference_p. Use inner_reference_p to expand inner references.
26631 (store_expr): Adjust.
26632 * cfgexpand.c (expand_call_stmt): Adjust.
26633
26634 2014-01-08 Rong Xu <xur@google.com>
26635
26636 * gcov-io.c (gcov_var): Move from gcov-io.h.
26637 (gcov_position): Ditto.
26638 (gcov_is_error): Ditto.
26639 (gcov_rewrite): Ditto.
26640 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26641 only part to libgcc/libgcov.h.
26642
26643 2014-01-08 Marek Polacek <polacek@redhat.com>
26644
26645 PR middle-end/59669
26646 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26647
26648 2014-01-08 Marek Polacek <polacek@redhat.com>
26649
26650 PR sanitizer/59667
26651 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26652
26653 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26654
26655 PR rtl-optimization/59649
26656 * stor-layout.c (get_mode_bounds): For BImode return
26657 0 and STORE_FLAG_VALUE.
26658
26659 2014-01-08 Richard Biener <rguenther@suse.de>
26660
26661 PR middle-end/59630
26662 * gimple.h (is_gimple_builtin_call): Remove.
26663 (gimple_builtin_call_types_compatible_p): New.
26664 (gimple_call_builtin_p): New overload.
26665 * gimple.c (is_gimple_builtin_call): Remove.
26666 (validate_call): Rename to ...
26667 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26668 check return types.
26669 (validate_type): New static function.
26670 (gimple_call_builtin_p): New overload and adjust.
26671 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26672 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26673 (gimple_fold_stmt_to_constant_1): Likewise.
26674 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26675
26676 2014-01-08 Richard Biener <rguenther@suse.de>
26677
26678 PR middle-end/59471
26679 * gimplify.c (gimplify_expr): Gimplify register-register type
26680 VIEW_CONVERT_EXPRs to separate stmts.
26681
26682 2014-01-07 Jeff Law <law@redhat.com>
26683
26684 PR middle-end/53623
26685 * ree.c (combine_set_extension): Handle case where source
26686 and destination registers in an extension insn are different.
26687 (combine_reaching_defs): Allow source and destination registers
26688 in extension to be different under limited circumstances.
26689 (add_removable_extension): Remove restriction that the
26690 source and destination registers in the extension are the same.
26691 (find_and_remove_re): Emit a copy from the extension's
26692 destination to its source after the defining insn if
26693 the source and destination registers are different.
26694
26695 PR middle-end/59285
26696 * ifcvt.c (merge_if_block): If we are merging a block with more than
26697 one successor with a block with no successors, remove any BARRIER
26698 after the second block.
26699
26700 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26701
26702 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26703
26704 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26705
26706 PR target/59652
26707 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26708 for 14-bit register offsets when INT14_OK_STRICT is false.
26709
26710 2014-01-07 Roland Stigge <stigge@antcom.de>
26711 Michael Meissner <meissner@linux.vnet.ibm.com>
26712
26713 PR 57386/target
26714 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26715 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26716
26717 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26718
26719 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26720 -mcpu.
26721
26722 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26723
26724 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26725 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26726 rtx is const0_rtx or not.
26727
26728 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26729
26730 PR target/58115
26731 * target-globals.c (save_target_globals): Remove this_fn_optab
26732 handling.
26733 * toplev.c: Include optabs.h.
26734 (target_reinit): Temporarily restore the global options if another
26735 set of options are in force.
26736
26737 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26738
26739 PR rtl-optimization/58668
26740 * cfgcleanup.c (flow_find_cross_jump): Don't count
26741 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26742 to determine what is counted.
26743 (flow_find_head_matching_sequence): Use active_insn_p to determine
26744 what is counted.
26745 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26746 counting change.
26747 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26748 determine what is counted.
26749
26750 PR tree-optimization/59643
26751 * tree-predcom.c (split_data_refs_to_components): If one dr is
26752 read and one write, determine_offset fails and the write isn't
26753 in the bad component, just put the read into the bad component.
26754
26755 2014-01-07 Mike Stump <mikestump@comcast.net>
26756 Jakub Jelinek <jakub@redhat.com>
26757
26758 PR pch/59436
26759 * tree-core.h (struct tree_optimization_option): Change optabs
26760 type from unsigned char * to void *.
26761 * optabs.c (init_tree_optimization_optabs): Adjust
26762 TREE_OPTIMIZATION_OPTABS initialization.
26763
26764 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26765
26766 PR target/59644
26767 * config/i386/i386.h (struct machine_function): Add
26768 no_drap_save_restore field.
26769 * config/i386/i386.c (ix86_save_reg): Use
26770 !cfun->machine->no_drap_save_restore instead of
26771 crtl->stack_realign_needed.
26772 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26773 this function clears frame_pointer_needed. Set
26774 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26775 and DRAP reg is needed.
26776
26777 2014-01-06 Marek Polacek <polacek@redhat.com>
26778
26779 PR c/57773
26780 * doc/implement-c.texi: Mention that other integer types are
26781 permitted as bit-field types in strictly conforming mode.
26782
26783 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26784
26785 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26786 is newly allocated.
26787
26788 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26789
26790 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26791
26792 2014-01-06 Martin Jambor <mjambor@suse.cz>
26793
26794 PR ipa/59008
26795 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26796 to int.
26797 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26798
26799 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26800
26801 PR debug/59350
26802 PR debug/59510
26803 * var-tracking.c (add_stores): Preserve the value of the source even if
26804 we don't record the store.
26805
26806 2014-01-06 Terry Guo <terry.guo@arm.com>
26807
26808 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26809
26810 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26811
26812 PR bootstrap/59541
26813 * config/darwin.c (darwin_function_section): Adjust return values to
26814 correspond to optimisation changes made in r206070.
26815
26816 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26817
26818 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26819 from prefetch_block tune setting.
26820 (nocona_cost): Correct size of prefetch block to 64.
26821
26822 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26823
26824 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26825 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26826 used to save the static chain register in the computation of the offset
26827 from which the FP registers need to be restored.
26828
26829 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26830
26831 PR tree-optimization/59519
26832 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26833 ICE if get_current_def (current_new_name) is already non-NULL, as long
26834 as it is a phi result of some other phi in *new_exit_bb that has
26835 the same argument.
26836
26837 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26838 or vmovdqu* for misaligned_operand.
26839 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26840 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26841 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26842 aligned_mem for AVX512F masked aligned load and store builtins and for
26843 non-temporal moves.
26844
26845 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26846
26847 PR tree-optimization/59651
26848 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26849 Address range for negative step should be added by TYPE_SIZE_UNIT.
26850
26851 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26852
26853 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26854 overlapping registers also for registers other than the stack pointer.
26855
26856 2014-01-03 Marek Polacek <polacek@redhat.com>
26857
26858 PR other/59661
26859 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26860 __builtin_FILE.
26861
26862 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26863
26864 PR target/59625
26865 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26866 asm goto as jump.
26867
26868 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26869 (push splitter): Use <P:MODE_SIZE> instead of
26870 GET_MODE_SIZE (<P:MODE>mode).
26871 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26872 (mov -1, reg peephole2): Likewise.
26873 * config/i386/sse.md (*mov<mode>_internal,
26874 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26875 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26876 *<code><mode>3, *andnot<mode>3<mask_name>,
26877 <mask_codefor><code><mode>3<mask_name>): Likewise.
26878 * config/i386/subst.md (mask_mode512bit_condition,
26879 sd_mask_mode512bit_condition): Likewise.
26880
26881 2014-01-02 Xinliang David Li <davidxl@google.com>
26882
26883 PR tree-optimization/59303
26884 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26885 (dump_predicates): Better output format.
26886 (pred_equal_p): New function.
26887 (is_neq_relop_p): Ditto.
26888 (is_neq_zero_form_p): Ditto.
26889 (pred_expr_equal_p): Ditto.
26890 (pred_neg_p): Ditto.
26891 (simplify_pred): Ditto.
26892 (simplify_preds_2): Ditto.
26893 (simplify_preds_3): Ditto.
26894 (simplify_preds_4): Ditto.
26895 (simplify_preds): Ditto.
26896 (push_pred): Ditto.
26897 (push_to_worklist): Ditto.
26898 (get_pred_info_from_cmp): Ditto.
26899 (is_degenerated_phi): Ditto.
26900 (normalize_one_pred_1): Ditto.
26901 (normalize_one_pred): Ditto.
26902 (normalize_one_pred_chain): Ditto.
26903 (normalize_preds): Ditto.
26904 (normalize_cond_1): Remove function.
26905 (normalize_cond): Ditto.
26906 (is_gcond_subset_of): Ditto.
26907 (is_subset_of_any): Ditto.
26908 (is_or_set_subset_of): Ditto.
26909 (is_and_set_subset_of): Ditto.
26910 (is_norm_cond_subset_of): Ditto.
26911 (pred_chain_length_cmp): Ditto.
26912 (convert_control_dep_chain_into_preds): Type change.
26913 (find_predicates): Ditto.
26914 (find_def_preds): Ditto.
26915 (destroy_predicates_vecs): Ditto.
26916 (find_matching_predicates_in_rest_chains): Ditto.
26917 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26918 (is_pred_expr_subset): Ditto.
26919 (is_pred_chain_subset_of): Ditto.
26920 (is_included_in): Ditto.
26921 (is_superset_of): Ditto.
26922
26923 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26924
26925 Update copyright years.
26926
26927 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26928
26929 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26930 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26931 config/arc/arc.md, config/arc/arc.opt,
26932 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26933 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26934 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26935 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26936 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26937 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26938 vtable-verify.c, vtable-verify.h: Use the standard form for the
26939 copyright notice.
26940
26941 2014-01-02 Tobias Burnus <burnus@net-b.de>
26942
26943 * gcc.c (process_command): Update copyright notice dates.
26944 * gcov-dump.c: Ditto.
26945 * gcov.c: Ditto.
26946 * doc/cpp.texi: Bump @copying's copyright year.
26947 * doc/cppinternals.texi: Ditto.
26948 * doc/gcc.texi: Ditto.
26949 * doc/gccint.texi: Ditto.
26950 * doc/gcov.texi: Ditto.
26951 * doc/install.texi: Ditto.
26952 * doc/invoke.texi: Ditto.
26953
26954 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26955
26956 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26957
26958 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26959
26960 * config/i386/sse.md (*mov<mode>_internal): Guard
26961 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26962
26963 PR rtl-optimization/59647
26964 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26965 new_rtx into UNSIGNED_FLOAT rtxes.
26966 \f
26967 Copyright (C) 2014 Free Software Foundation, Inc.
26968
26969 Copying and distribution of this file, with or without modification,
26970 are permitted in any medium without royalty provided the copyright
26971 notice and this notice are preserved.