dwarf2out.c (resolve_one_addr): Remove unused data parameter.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4 Return a bool, inverting the result so that 0/false means "not ok".
5 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6 subrtxes of a CONST.
7 (mem_loc_descriptor, add_const_value_attribute)
8 (resolve_addr_in_expr): Update calls accordingly.
9
10 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
11
12 * dwarf2out.c: Include rtl-iter.h.
13 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
14 Remove unused data parameter. Return a bool, inverting the result
15 so that 0/false means "not ok".
16 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
17 instead of for_each_rtx.
18
19 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
20
21 * dse.c: Include rtl-iter.h.
22 (check_mem_read_rtx): Change void * parameter to real type.
23 Remove return value.
24 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
25 for_each_rtx. Don't handle null rtxes.
26
27 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
28
29 * df-problems.c: Include rtl-iter.h.
30 (find_memory): Turn from being a for_each_rtx callback to being
31 a function that examines each subrtx itself. Continue to look for
32 volatile references even after a nonvolatile one has been found.
33 (can_move_insns_across): Update calls accordingly.
34
35 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
36
37 * ddg.c (walk_mems_2, walk_mems_1): Delete.
38 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
39 to iterate over subrtxes. Return a bool rather than an int.
40
41 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
42
43 * ddg.c: Include rtl-iter.h.
44 (mark_mem_use_1): Rename to...
45 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
46 instead of for_each_rtx.
47 (mem_read_insn_p): Update accordingly.
48
49 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
50
51 * cse.c (change_cc_mode_args): Delete.
52 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
53 a function that examines each subrtx itself. Take the fields of
54 change_cc_mode_args as argument and return void.
55 (cse_change_cc_mode_insn): Update calls accordingly.
56
57 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
58
59 * cse.c (is_dead_reg): Change argument to const_rtx.
60 (dead_debug_insn_data): Delete.
61 (is_dead_debug_insn): Expand commentary. Turn from being a
62 for_each_rtx callback to being a function that examines
63 each subrtx itself. Take the fields of dead_debug_insn_data
64 as argument.
65 (delete_trivially_dead_insns): Update call accordingly.
66
67 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
68
69 * cse.c (check_for_label_ref): Move earlier in file. Turn from
70 being a for_each_rtx callback to being a function that examines
71 each subrtx itself.
72 (cse_extended_basic_block): Update call accordingly.
73
74 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
75
76 * cse.c (check_dependence_data): Delete.
77 (check_dependence): Change from being a for_each_rtx callback to being
78 a function that examines all subrtxes itself. Don't handle null rtxes.
79 (invalidate): Update call accordingly.
80
81 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
82
83 * cse.c: Include rtl-iter.h.
84 (approx_reg_cost_1): Delete.
85 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
86 Don't handle null rtxes.
87
88 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
89
90 * cfgcleanup.c: Include rtl-iter.h.
91 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
92 to being a function that examines each subrtx itself.
93 (thread_jump): Update accordingly.
94
95 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
96
97 * combine-stack-adj.c: Include rtl-iter.h.
98 (record_stack_refs_data): Delete.
99 (record_stack_refs): Turn from being a for_each_rtx callback
100 to being a function that examines each subrtx itself.
101 Take a pointer to the reflist. Invert sense of return value
102 so that true means success and false means failure. Don't
103 handle null rtxes.
104 (combine_stack_adjustments_for_block): Update accordingly.
105
106 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
107
108 * combine.c (record_truncated_value): Turn from being a for_each_rtx
109 callback to a function that takes an rtx and returns a bool
110 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
111 for_each_rtx.
112
113 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
114
115 * combine.c: Include rtl-iter.h.
116 (unmentioned_reg_p_1): Delete.
117 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
118 Don't handle null rtxes.
119
120 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
121
122 * calls.c: Include rtl-iter.h.
123 (internal_arg_pointer_based_exp_1): Delete.
124 (internal_arg_pointer_based_exp): Take a const_rtx.
125 Use FOR_EACH_SUBRTX to iterate over subrtxes.
126
127 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
128
129 * caller-save.c: Include rtl-iter.h.
130 (add_used_regs_1): Delete.
131 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
132 to iterate over subrtxes. Assert that any remaining pseudos
133 have been spilled.
134
135 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
136
137 * bt-load.c: Include rtl-iter.h.
138 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
139 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
140 to iterate over subrtxes.
141 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
142 find_btr_use rather than btr_referenced_p.
143
144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
145
146 * alias.c: Include rtl-iter.h.
147 (refs_newer_value_cb): Delete.
148 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
149
150 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
151
152 * rtl-iter.h: New file.
153 * rtlanal.c: Include it.
154 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
155 (generic_subrtx_iterator <T>::add_single_to_queue)
156 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
157 (generic_subrtx_iterator <T>::free_array): New functions.
158 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
159 (generic_subrtx_iterator <const_rtx_accessor>)
160 (generic_subrtx_iterator <rtx_var_accessor>
161 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
162 (setup_reg_subrtx_bounds): New function.
163 (init_rtlanal): Call it.
164
165 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
166
167 PR target/62261
168 * config/sh/sh.md (ashlsi3): Handle negative shift count for
169 TARGET_SHMEDIA.
170 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
171
172 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
173
174 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
175
176 2014-08-27 David Malcolm <dmalcolm@redhat.com>
177
178 * rtl.h (JUMP_LABEL_AS_INSN): New.
179
180 2014-08-27 David Malcolm <dmalcolm@redhat.com>
181
182 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
183 rtx_expr_list **.
184 (alloc_EXPR_LIST): Strengthen return type from rtx to
185 rtx_expr_list *.
186 (remove_free_EXPR_LIST_node): Likewise for param.
187 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
188 from rtx to rtx_expr_list *.
189 * sched-int.h (struct deps_desc): Strengthen fields
190 "pending_read_mems" and "pending_write_mems" from rtx to
191 rtx_expr_list *.
192
193 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
194 rtx to rtx_expr_list *.
195 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
196 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
197 rtx_expr_list **.
198 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
199 from rtx to rtx_expr_list *.
200 * loop-iv.c (simplify_using_initial_values): Strengthen local
201 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
202 "pnote_next" from rtx * to rtx_expr_list **.
203 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
204 param "exprp" from rtx * to rtx_expr_list **.
205 (add_insn_mem_dependence): Strengthen local "mem_list" from
206 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
207 to rtx_expr_list *.
208 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
209 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
210 param "old_mems_p" from rtx * to rtx_expr_list **.
211 * var-tracking.c (struct adjust_mem_data): Strengthen field
212 "side_effects" from rtx to rtx_expr_list *.
213 (adjust_insn): Replace NULL_RTX with NULL when assigning to
214 rtx_expr_list *.
215 (prepare_call_arguments): Likewise.
216
217 2014-08-27 David Malcolm <dmalcolm@redhat.com>
218
219 * function.h (struct rtl_data): Strengthen field
220 "x_stack_slot_list" from rtx to rtx_expr_list *.
221
222 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
223 when assigning to stack_slot_list.
224
225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
226
227 * function.h (struct rtl_data): Strengthen field
228 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
229 * rtl.h (remove_node_from_expr_list): Strengthen second param from
230 rtx * to rtx_expr_list **.
231
232 * cfgbuild.c (make_edges): In loop over
233 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
234 rtx_expr_list *, and use methods of the latter class to clarify
235 the code.
236 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
237 rtx_expr_list *, and use methods of the latter class to clarify
238 the code.
239 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
240 * reload1.c (set_initial_label_offsets): Likewise for local "x".
241 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
242 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
243 to rtx_expr_list *. Use methods of the latter class to clarify
244 the code.
245
246 2014-08-27 David Malcolm <dmalcolm@redhat.com>
247
248 * function.h (struct expr_status): Strengthen field
249 "x_forced_labels" from rtx to rtx_expr_list *.
250
251 * cfgbuild.c (make_edges): Split local "x" into two locals,
252 strengthening one from rtx to rtx_expr_list *, and using methods
253 of said class.
254 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
255 loop over forced_labels, introduce strengthen it from rtx to
256 rtx_expr_list *, using methods to clarify the code.
257 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
258 to rtx_expr_list *, using methods of said class to clarify the
259 code.
260 * reload1.c (set_initial_label_offsets): Split local "x" into two
261 per-loop variables, strengthening the first from rtx to
262 rtx_expr_list * and using methods.
263
264 2014-08-27 David Malcolm <dmalcolm@redhat.com>
265
266 * coretypes.h (class rtx_expr_list): Add forward declaration.
267 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
268 * gengenrtl.c (special_rtx): Add EXPR_LIST.
269 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
270 invariant: GET_CODE (X) == EXPR_LIST.
271 (is_a_helper <rtx_expr_list *>::test): New.
272 (rtx_expr_list::next): New.
273 (rtx_expr_list::element): New.
274 (gen_rtx_EXPR_LIST): New.
275
276 2014-08-27 David Malcolm <dmalcolm@redhat.com>
277
278 * varasm.c (mark_constants): Convert a GET_CODE check into a
279 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
280 Use methods of rtx_sequence to clarify the code.
281
282 2014-08-27 David Malcolm <dmalcolm@redhat.com>
283
284 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
285 local "seq" via a checked cast, and use methods of rtx_sequence
286 to simplify the code.
287
288 2014-08-27 David Malcolm <dmalcolm@redhat.com>
289
290 * resource.c (mark_referenced_resources): Strengthen local
291 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
292 using methods of rtx_sequence to clarify the code.
293 (find_dead_or_set_registers): Within the switch statement, convert
294 a GET_CODE check to a dyn_cast, introducing local "seq". Within
295 the JUMP_P handling, introduce another local "seq", adding a
296 checked cast to rtx_sequence *. In both cases, use methods of
297 rtx_sequence to clarify the code.
298 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
299 via a checked cast, and use methods of rtx_sequence to simplify
300 the code.
301
302 2014-08-27 David Malcolm <dmalcolm@redhat.com>
303
304 * reorg.c (redundant_insn): In two places in the function, replace
305 a check of GET_CODE with a dyn_cast, introducing local "seq", and
306 usings methods of rtx_sequence to clarify the code.
307
308 2014-08-27 David Malcolm <dmalcolm@redhat.com>
309
310 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
311 local "seq" with a checked cast, and use methods of rtx_sequence
312 to clarify the code.
313
314 2014-08-27 David Malcolm <dmalcolm@redhat.com>
315
316 * function.c (contains): Introduce local "seq" for PATTERN (insn),
317 with a checked cast, in the region for where we know it's a
318 SEQUENCE. Use methods of rtx_sequence.
319
320 2014-08-27 David Malcolm <dmalcolm@redhat.com>
321
322 * final.c (get_attr_length_1): Replace GET_CODE check with a
323 dyn_cast, introducing local "seq" and the use of methods of
324 rtx_sequence.
325 (shorten_branches): Likewise, introducing local "body_seq".
326 Strengthen local "inner_insn" from rtx to rtx_insn *.
327 (reemit_insn_block_notes): Replace GET_CODE check with a
328 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
329 Use methods of rtx_sequence.
330 (final_scan_insn): Likewise, introducing local "seq" for when
331 "body" is known to be a SEQUENCE, using its methods.
332
333 2014-08-27 David Malcolm <dmalcolm@redhat.com>
334
335 * except.c (can_throw_external): Strengthen local "seq" from rtx
336 to rtx_sequence *. Use methods of rtx_sequence.
337 (insn_nothrow_p): Likewise.
338
339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
340
341 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
342 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
343 Use methods of rtx_sequence.
344 (scan_trace): Likewise for local "pat".
345
346 2014-08-27 David Malcolm <dmalcolm@redhat.com>
347
348 * coretypes.h (class rtx_sequence): Add forward declaration.
349 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
350 invariant: GET_CODE (X) == SEQUENCE.
351 (is_a_helper <rtx_sequence *>::test): New.
352 (is_a_helper <const rtx_sequence *>::test): New.
353 (rtx_sequence::len): New.
354 (rtx_sequence::element): New.
355 (rtx_sequence::insn): New.
356
357 2014-08-27 David Malcolm <dmalcolm@redhat.com>
358
359 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
360 rtx_insn_list **.
361 (alloc_INSN_LIST): Strengthen return type from rtx to
362 rtx_insn_list *.
363 (copy_INSN_LIST): Likewise for return type and param.
364 (concat_INSN_LIST): Likewise for both params and return type.
365 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
366 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
367 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
368 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
369
370 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
371 "implicit_sets", "control_uses", "clobbers" from rtx to
372 rtx_insn_list *.
373 (struct deps_desc): Likewise for fields "pending_read_insns",
374 "pending_write_insns", "pending_jump_insns",
375 "last_pending_memory_flush", "last_function_call",
376 "last_function_call_may_noreturn", "sched_before_next_call",
377 "sched_before_next_jump".
378 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
379 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
380
381 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
382 from rtx to rtx_insn_list *.
383 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
384 rtx_insn_list *.
385
386 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
387 to rtx_insn_list **.
388 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
389 rtx_insn_list *.
390 (queue_insn): Likewise for local "link".
391 (struct haifa_saved_data): Strengthen field "insn_queue" from
392 rtx * to rtx_insn_list **.
393 (save_backtrack_point): Update allocation of save->insn_queue to
394 reflect the strengthening of elements from rtx to rtx_insn_list *.
395 (queue_to_ready): Strengthen local "link" from rtx to
396 rtx_insn_list *; use methods "next" and "insn" when traversing the
397 list.
398 (early_queue_to_ready): Likewise for locals "link", "next_link",
399 "prev_link".
400 (schedule_block): Update allocation of insn_queue to reflect the
401 strengthening of elements from rtx to rtx_insn_list *. Strengthen
402 local "link" from rtx to rtx_insn_list *, and use methods when
403 working it.
404 (add_to_speculative_block): Strengthen locals "twins" and
405 "next_node" from rtx to rtx_insn_list *, and use methods when
406 working with them. Strengthen local "twin" from rtx to
407 rtx_insn *, eliminating a checked cast.
408 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
409 from rtx to rtx_insn_list *, and use methods when working with
410 them.
411
412 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
413 from rtx to rtx_insn_list *, adding a checked cast.
414 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
415 rtx_insn_list **.
416 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
417 "newlink" from rtx to rtx_insn_list *. Strengthen local
418 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
419 from rtx to rtx_insn *.
420 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
421 from rtx to rtx_insn_list *. Use methods of the latter class.
422 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
423 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
424 (remove_free_INSN_LIST_node): Strengthen return type and local
425 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
426 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
427 rtx_insn_list *, using "insn" method.
428
429 * sched-deps.c (add_dependence_list): Strengthen param "list"
430 from rtx to rtx_insn_list *, and use methods when working with it.
431 (add_dependence_list_and_free): Strengthen param "listp" from
432 rtx * to rtx_insn_list **.
433 (remove_from_dependence_list): Strenghten param "listp" from rtx *
434 to rtx_insn_list **, and use methods when working with *listp.
435 (remove_from_both_dependence_lists): Strengthen param "listp" from
436 rtx * to rtx_insn_list **
437 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
438 to rtx_insn_list **. Eliminate local "link", in favor of two new
439 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
440 respectively.
441 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
442 by introducing local "cond_deps".
443 (remove_from_deps): Strengthen param "insn" from rtx to
444 rtx_insn *.
445
446 * sched-rgn.c (concat_insn_mem_list): Strengthen param
447 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
448 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
449 Use methods of rtx_insn_list.
450
451 * store-motion.c (struct st_expr): Strengthen fields
452 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
453 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
454 rtx_insn_list *.
455 (find_moveable_store): Split out "tmp" into multiple more-tightly
456 scoped locals. Use methods of rtx_insn_list *.
457 (compute_store_table): Strengthen local "tmp" from rtx to
458 rtx_insn *. Use methods of rtx_insn_list *.
459
460 2014-08-27 David Malcolm <dmalcolm@redhat.com>
461
462 * coretypes.h (class rtx_insn_list): Add forward declaration.
463 * rtl.h (class rtx_insn_list): New subclass of rtx_def
464 (is_a_helper <rtx_insn_list *>::test): New.
465 (rtx_insn_list::next): New.
466 (rtx_insn_list::insn): New.
467 (gen_rtx_INSN_LIST): Add prototype.
468 * emit-rtl.c (gen_rtx_INSN_LIST): New.
469 * gengenrtl.c (special_rtx): Add INSN_LIST.
470
471 2014-08-27 David Malcolm <dmalcolm@redhat.com>
472
473 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
474 "prev" from rtx to rtx_insn *.
475
476 2014-08-27 David Malcolm <dmalcolm@redhat.com>
477
478 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
479 functions. Require merely an rtx for now, not an rtx_insn *.
480 (BLOCK_FOR_INSN): Likewise.
481 (INSN_LOCATION): Likewise.
482 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
483
484 2014-08-27 David Malcolm <dmalcolm@redhat.com>
485
486 * rtl.h (PATTERN): Convert this macro into a pair of inline
487 functions, for now, requiring const_rtx and rtx.
488
489 2014-08-27 David Malcolm <dmalcolm@redhat.com>
490
491 * target.def (unwind_emit): Strengthen param "insn" from rtx to
492 rtx_insn *.
493 (final_postscan_insn): Likewise.
494 (adjust_cost): Likewise.
495 (adjust_priority): Likewise.
496 (variable_issue): Likewise.
497 (macro_fusion_pair_p): Likewise.
498 (dfa_post_cycle_insn): Likewise.
499 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
500 (first_cycle_multipass_issue): Likewise.
501 (dfa_new_cycle): Likewise.
502 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
503 (speculate_insn): Likewise for param "insn".
504 (gen_spec_check): Likewise for params "insn" and "label".
505 (get_insn_spec_ds): Likewise for param "insn".
506 (get_insn_checked_ds): Likewise.
507 (dispatch_do): Likewise.
508 (dispatch): Likewise.
509 (cannot_copy_insn_p): Likewise.
510 (invalid_within_doloop): Likewise.
511 (legitimate_combined_insn): Likewise.
512 (needed): Likewise.
513 (after): Likewise.
514
515 * doc/tm.texi: Automatically updated to reflect changes to
516 target.def.
517
518 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
519 working with insn.
520 (schedule_block): Likewise.
521 (sched_init): Likewise.
522 (sched_speculate_insn): Strengthen param "insn" from rtx to
523 rtx_insn *.
524 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
525 working with insn.
526 * hooks.c (hook_bool_rtx_true): Rename to...
527 hook_bool_rtx_insn_true): ...this, and strengthen first param from
528 rtx to rtx_insn *.
529 (hook_constcharptr_const_rtx_null): Rename to...
530 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
531 first param from const_rtx to const rtx_insn *.
532 (hook_bool_rtx_int_false): Rename to...
533 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
534 param from rtx to rtx_insn *.
535 (hook_void_rtx_int): Rename to...
536 (hook_void_rtx_insn_int): ...this, and strengthen first param from
537 rtx to rtx_insn *.
538
539 * hooks.h (hook_bool_rtx_true): Rename to...
540 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
541 rtx to rtx_insn *.
542 (hook_bool_rtx_int_false): Rename to...
543 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
544 param from rtx to rtx_insn *.
545 (hook_void_rtx_int): Rename to...
546 (hook_void_rtx_insn_int): ...this, and strengthen first param from
547 rtx to rtx_insn *.
548 (hook_constcharptr_const_rtx_null): Rename to...
549 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
550 first param from const_rtx to const rtx_insn *.
551
552 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
553 and local "prev" from rtx to rtx_insn *.
554
555 * sched-int.h (sched_speculate_insn): Strengthen first param from
556 rtx to rtx_insn *.
557
558 * sel-sched.c (create_speculation_check): Likewise for local "label".
559 * targhooks.c (default_invalid_within_doloop): Strengthen param
560 "insn" from const_rtx to const rtx_insn *.
561 * targhooks.h (default_invalid_within_doloop): Strengthen param
562 from const_rtx to const rtx_insn *.
563
564 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
565 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
566
567 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
568 "insn".
569 (arc_invalid_within_doloop): Likewise, with const.
570
571 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
572 (arm_cannot_copy_insn_p): Likewise for param "insn".
573 (arm_unwind_emit): Likewise.
574
575 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
576 "dep_insn".
577
578 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
579 (c6x_variable_issue): Likewise. Removed now-redundant checked
580 cast.
581 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
582
583 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
584 Likewise for param "insn".
585 (epiphany_mode_after): Likewise.
586 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
587 params "insn", "dep_insn".
588 (epiphany_mode_needed): Likewise for param "insn".
589 (epiphany_mode_after): Likewise.
590
591 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
592 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
593 (ix86_avx_u128_mode_needed): Likewise.
594 (ix86_i387_mode_needed): Likewise.
595 (ix86_mode_needed): Likewise.
596 (ix86_avx_u128_mode_after): Likewise.
597 (ix86_mode_after): Likewise.
598 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
599 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
600 (ix86_adjust_priority): Likewise for param "insn".
601 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
602 (do_dispatch): Likewise.
603 (has_dispatch): Likewise.
604 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
605
606 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
607 reflect renaming of default hook implementation from
608 hook_constcharptr_const_rtx_null to
609 hook_constcharptr_const_rtx_insn_null.
610 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
611 rtx to rtx_insn *.
612 (ia64_variable_issue): Likewise for param "insn".
613 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
614 (ia64_dfa_new_cycle): Likewise.
615 (ia64_get_insn_spec_ds): Likewise.
616 (ia64_get_insn_checked_ds): Likewise.
617 (ia64_speculate_insn): Likewise.
618 (ia64_gen_spec_check): Likewise for params "insn", "label".
619 (ia64_asm_unwind_emit): Likewise for param "insn".
620
621 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
622
623 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
624 "insn", "def_insn".
625 (m68k_sched_variable_issue): Likewise for param "insn".
626
627 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
628 "def_insn".
629
630 * config/microblaze/microblaze.c (microblaze_adjust_cost):
631 Likewise for params "insn", "dep".
632
633 * config/mips/mips.c (mips_adjust_cost): Likewise.
634 (mips_variable_issue): Likewise for param "insn".
635 (mips_final_postscan_insn): Likewise.
636
637 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
638 for params "insn", "dep".
639
640 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
641 "dep_insn".
642 (pa_adjust_priority): Likewise for param "insn".
643
644 * config/picochip/picochip.c (picochip_sched_adjust_cost):
645 Likewise for params "insn", "dep_insn".
646
647 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
648 param "insn".
649 (rs6000_variable_issue): Likewise.
650 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
651 (rs6000_debug_adjust_cost): Likewise.
652 (rs6000_adjust_priority): Likewise for param "insn".
653 (rs6000_use_sched_lookahead_guard): Likewise.
654 (get_next_active_insn): Likewise for return type and both params.
655 (redefine_groups): Likewise for params "prev_head_insn", "tail"
656 and locals "insn", "next_insn".
657 (pad_groups): Likewise.
658
659 * config/s390/s390.c (s390_adjust_priority): Likewise for param
660 "insn".
661 (s390_cannot_copy_insn_p): Likewise.
662 (s390_sched_variable_issue): Likewise for third param, eliminating
663 checked cast.
664 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
665 default hook implementation from hook_constcharptr_const_rtx_null
666 to hook_constcharptr_const_rtx_insn_null.
667
668 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
669 from rtx to rtx_insn *.
670 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
671 (sh_variable_issue): Likewise for param "insn".
672 (sh_dfa_new_cycle): Likewise.
673 (sh_mode_needed): Likewise.
674 (sh_mode_after): Likewise.
675
676 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
677 params "insn", "dep_insn".
678 (hypersparc_adjust_cost): Likewise.
679 (sparc_adjust_cost): Likewise.
680
681 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
682 param, eliminated checked cast.
683 (spu_sched_adjust_cost): Likewise for first and third params.
684
685 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
686 params "insn" and "dep_insn" from rtx to rtx_insn *.
687
688 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
689
690 2014-08-27 David Malcolm <dmalcolm@redhat.com>
691
692 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
693 (set_is_load_p): ...this, updating to work on a SET pattern rather
694 than an insn.
695 (is_store_insn): Rename to...
696 (set_is_store_p): ...this, updating to work on a SET pattern
697 rather than an insn.
698 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
699 top of function to where it is needed. Rewrite the bogus
700 condition that checks for "insn" and "dep" being PARALLEL to
701 instead use single_set, introducing locals "insn_set" and
702 "dep_set". Given that we only ever returned "cost" for a non-pair
703 of SETs, bail out early if we don't have a pair of SET.
704 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
705 use the new locals "insn_set" and "dep_set", and update calls to
706 is_load_insn and is_store_insn to be calls to set_is_load_p and
707 set_is_store_p.
708
709 2014-08-27 Guozhi Wei <carrot@google.com>
710
711 PR target/62262
712 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
713 amount before using it.
714
715 2014-08-27 Richard Biener <rguenther@suse.de>
716
717 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
718 get_maxval_strlen inside a more useful API.
719 (gimple_fold_builtin_with_strlen): Remove and fold into ...
720 (gimple_fold_builtin): ... caller.
721 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
722 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
723 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
724 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
725 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
726 gimple_fold_builtin_sprintf): Adjust to compute maxval
727 themselves.
728
729 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
730
731 PR other/62248
732 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
733
734 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
736 Anna Tikhonova <anna.tikhonova@intel.com>
737 Ilya Tocar <ilya.tocar@intel.com>
738 Andrey Turetskiy <andrey.turetskiy@intel.com>
739 Ilya Verbin <ilya.verbin@intel.com>
740 Kirill Yukhin <kirill.yukhin@intel.com>
741 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
742
743 * config/i386/sse.md
744 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
745 Use `concat_tg_mode' attribute to determine asm register size.
746
747 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
748 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
749 Anna Tikhonova <anna.tikhonova@intel.com>
750 Ilya Tocar <ilya.tocar@intel.com>
751 Andrey Turetskiy <andrey.turetskiy@intel.com>
752 Ilya Verbin <ilya.verbin@intel.com>
753 Kirill Yukhin <kirill.yukhin@intel.com>
754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
755
756 * config/i386/sse.md
757 (define_mode_iterator VI48_AVX512VL): New.
758 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
759 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
760 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
761 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
762 with VI1): Change mode iterator.
763 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
764 with VI_ULOADSTORE_BW_AVX512VL): New.
765 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
766 with VI_ULOADSTORE_F_AVX512VL): Ditto.
767 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
768 with VI1): Change mode iterator.
769 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
770 with VI_ULOADSTORE_BW_AVX512VL): New.
771 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
772 with VI_ULOADSTORE_F_AVX512VL): Ditto.
773 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
774 with VI1): Change mode iterator.
775 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
776 with VI_ULOADSTORE_BW_AVX512VL): New.
777 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
778 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
779 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
780 (define_insn "<avx512>_storedqu<mode>_mask" with
781 VI48_AVX512VL): New.
782 (define_insn "<avx512>_storedqu<mode>_mask" with
783 VI12_AVX512VL): Ditto.
784
785 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
786 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
787 Anna Tikhonova <anna.tikhonova@intel.com>
788 Ilya Tocar <ilya.tocar@intel.com>
789 Andrey Turetskiy <andrey.turetskiy@intel.com>
790 Ilya Verbin <ilya.verbin@intel.com>
791 Kirill Yukhin <kirill.yukhin@intel.com>
792 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
793
794 * config/i386/sse.md
795 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
796 (define_mode_iterator VI48_AVX512BW): New.
797 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
798 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
799 with VI48_AVX2_48_AVX512F): New.
800 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
801 with VI2_AVX512VL): Ditto.
802
803 2014-08-27 Richard Biener <rguenther@suse.de>
804
805 PR middle-end/62239
806 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
807 (fold_builtin_3): Do not fold strcat_chk here.
808 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
809 from builtins.c.
810 (gimple_fold_builtin): Fold strcat_chk here.
811
812 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
813
814 * dwarf2out.h (dwarf2out_decl): Remove prototype.
815 * dwarf2out.c (dwarf2out_decl): Make static.
816
817 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
818
819 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
820
821 2014-08-26 David Malcolm <dmalcolm@redhat.com>
822
823 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
824 from rtx to rtx_insn *.
825 (cselib_lookup_from_insn): Likewise for final param.
826 (cselib_subst_to_values_from_insn): Likewise.
827 (cselib_add_permanent_equiv): Likewise.
828
829 * cselib.c (cselib_current_insn): Likewise for this variable.
830 (cselib_subst_to_values_from_insn): Likewise for param "insn".
831 (cselib_lookup_from_insn): Likewise.
832 (cselib_add_permanent_equiv): Likewise for param "insn" and local
833 "save_cselib_current_insn".
834 (cselib_process_insn): Replace use of NULL_RTX with NULL.
835
836 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
837 from rtx to rtx_insn *.
838
839 2014-08-26 David Malcolm <dmalcolm@redhat.com>
840
841 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
842 rtx_insn *.
843
844 2014-08-26 David Malcolm <dmalcolm@redhat.com>
845
846 * df.h (df_dump_insn_problem_function): Strengthen first param of
847 this callback from const_rtx to const rtx_insn *.
848 (struct df_insn_info): Strengthen field "insn" from rtx to
849 rtx_insn *.
850 (DF_REF_INSN): Eliminate this function, reinstating the older
851 macro definition.
852 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
853 (df_reg_defined): Likewise.
854 (df_find_use): Likewise.
855 (df_reg_used): Likewise.
856 (df_dump_insn_top): Strengthen param 1 from const_rtx to
857 const rtx_insn *.
858 (df_dump_insn_bottom): Likewise.
859 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
860 (df_insn_debug_regno): Likewise.
861 (debug_df_insn): Likewise.
862 (df_rd_simulate_one_insn): Likewise for param 2.
863 (df_word_lr_simulate_defs): Likewise for param 1.
864 (df_word_lr_simulate_uses): Likewise.
865 (df_md_simulate_one_insn): Likewise for param 2.
866 (df_simulate_find_noclobber_defs): Likewise for param 1.
867 (df_simulate_find_defs): Likewise.
868 (df_simulate_defs): Likewise.
869 (df_simulate_uses): Likewise.
870 (df_simulate_one_insn_backwards): Likewise for param 2.
871 (df_simulate_one_insn_forwards): Likewise.
872 (df_uses_create): Likewise for param 2.
873 (df_insn_create_insn_record): Likewise for param 1.
874 (df_insn_delete): Likewise.
875 (df_insn_rescan): Likewise.
876 (df_insn_rescan_debug_internal): Likewise.
877 (df_insn_change_bb): Likewise.
878 (df_notes_rescan): Likewise.
879 * rtl.h (remove_death): Likewise for param 2.
880 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
881 const rtx_insn *.
882 * sched-int.h (reemit_notes): Strengthen param from rtx to
883 rtx_insn *.
884 * valtrack.h (propagate_for_debug): Likewise for param 1.
885
886 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
887 local "tmp_rtx" from const_rtx to const rtx_insn *.
888 * combine.c (remove_death): Strengthen param "insn" from rtx to
889 rtx_insn *.
890 (move_deaths): Likewise for local "where_dead".
891 * cse.c (delete_trivially_dead_insns): Introduce local
892 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
893 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
894 rtx_insn *.
895 (df_reg_defined): Likewise.
896 (df_find_use): Likewise.
897 (df_reg_used): Likewise.
898 (df_dump_insn_problem_data): Strengthen param "insn" from
899 const_rtx to const rtx_insn *.
900 (df_dump_insn_top): Likewise.
901 (df_dump_insn_bottom): Likewise.
902 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
903 (df_insn_debug_regno): Likewise.
904 (debug_df_insn): Likewise.
905 (DF_REF_INSN): Delete.
906 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
907 from rtx to rtx_insn *.
908 (df_chain_insn_top_dump): Strengthen param "insn" from
909 const_rtx to const rtx_insn *.
910 (df_chain_insn_bottom_dump): Likewise.
911 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
912 rtx_insn *.
913 (df_word_lr_simulate_uses): Likewise.
914 (df_print_note): Likewise.
915 (df_remove_dead_and_unused_notes): Likewise.
916 (df_set_unused_notes_for_mw): Likewise.
917 (df_set_dead_notes_for_mw): Likewise.
918 (df_create_unused_note): Likewise.
919 (df_simulate_find_defs): Likewise.
920 (df_simulate_find_uses): Likewise.
921 (df_simulate_find_noclobber_defs): Likewise.
922 (df_simulate_defs): Likewise.
923 (df_simulate_uses): Likewise.
924 (df_simulate_one_insn_backwards): Likewise.
925 (df_simulate_one_insn_forwards): Likewise.
926 (df_md_simulate_one_insn): Likewise.
927 * df-scan.c (df_uses_create): Likewise.
928 (df_insn_create_insn_record): Likewise.
929 (df_insn_delete): Likewise.
930 (df_insn_rescan): Likewise.
931 (df_insn_rescan_debug_internal): Likewise.
932 (df_insn_change_bb): Likewise.
933 (df_notes_rescan): Likewise.
934 (df_refs_add_to_chains): Likewise.
935 (df_insn_refs_verify): Likewise.
936 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
937 when invoking df_insn_delete.
938 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
939 (set_unique_reg_note): Add checked cast.
940 * final.c (cleanup_subreg_operands): Likewise.
941 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
942 "insn" from rtx to rtx_insn *.
943 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
944 "last" from rtx to rtx_insn *.
945 * ira-emit.c (change_regs_in_insn): New function.
946 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
947 Invoke change_regs_in_insn rather than change_regs.
948 * ira.c (update_equiv_regs): Strengthen locals "insn",
949 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
950 for_each_rtx_in_insn rather than for_each_rtx.
951 * recog.c (confirm_change_group): Add checked casts.
952 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
953 Add checked cast.
954 (peep2_fill_buffer): Add checked cast.
955 * rtlanal.c (remove_note): Likewise.
956 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
957 locals "next" "end" from rtx to rtx_insn *.
958
959 2014-08-26 David Malcolm <dmalcolm@redhat.com>
960
961 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
962 to rtx_insn *.
963 (struct reg_use_data): Likewise for field "insn".
964 (insn_cost): Likewise for param.
965 (real_insn_for_shadow): Likewise for return type and param.
966 (increase_insn_priority): Likewise for param 1.
967 (debug_dependencies): Likewise for both params.
968
969 * haifa-sched.c (insn_delay): Likewise for param "insn".
970 (real_insn_for_shadow): Likewise for return type and param "insn".
971 (update_insn_after_change): Likewise for param "insn".
972 (recompute_todo_spec): Likewise for param "next" and locals "pro",
973 "other".
974 (insn_cost): Likewise for param "insn".
975 (increase_insn_priority): Likewise.
976 (calculate_reg_deaths): Likewise.
977 (setup_insn_reg_pressure_info): Likewise.
978 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
979 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
980 (model_recompute): Likewise.
981 (must_restore_pattern_p): Likewise for param "next".
982 (model_excess_cost): Likewise for param "insn".
983 (queue_remove): Likewise.
984 (adjust_priority): Likewise for param "prev".
985 (update_register_pressure): Likewise for param "insn".
986 (setup_insn_max_reg_pressure): Likewise for local "insn".
987 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
988 (model_add_to_schedule): Likewise.
989 (model_reset_queue_indices): Likewise for local "insn".
990 (unschedule_insns_until): Strengthen local "recompute_vec" from
991 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
992 "con" from rtx to rtx_insn *.
993 (restore_last_backtrack_point): Likewise for both locals "x". Add
994 checked casts.
995 (estimate_insn_tick): Likewise for param "insn".
996 (commit_schedule): Likewise for params "prev_head", "tail" and
997 local "x".
998 (verify_shadows): Likewise for locals "i1", "i2".
999 (dump_insn_stream): Likewise for params "head", "tail" and locals
1000 "next_tail", "insn".
1001 (schedule_block): Likewise for locals "insn", "x". Add a checked
1002 cast.
1003 (fix_inter_tick): Likewise for params "head", "tail".
1004 (create_check_block_twin): Likewise for local "jump".
1005 (haifa_change_pattern): Likewise for param "insn".
1006 (haifa_speculate_insn): Likewise.
1007 (dump_new_block_header): Likewise for params "head", "tail".
1008 (fix_jump_move): Likewise for param "jump".
1009 (move_block_after_check): Likewise.
1010 (sched_init_insn_luid): Likewise for param "insn".
1011 (sched_init_luids): Likewise for local "insn".
1012 (insn_luid): Likewise for param "insn".
1013 (init_h_i_d): Likewise.
1014 (haifa_init_h_i_d): Likewise for local "insn".
1015 (haifa_init_insn): Likewise for param "insn".
1016 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1017 "other".
1018 (create_insn_reg_use): Likewise for param "insn".
1019 (setup_insn_reg_uses): Likewise. Add a checked cast.
1020 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1021 "tail" from rtx to rtx_insn *.
1022 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1023 "insn", "next_tail".
1024
1025 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1026
1027 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1028 from rtx to rtx_insn *.
1029 (model_add_to_schedule): Likewise for locals "start", "end",
1030 "iter".
1031
1032 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1033
1034 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1035 rtx_insn *.
1036 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1037 "to" and locals "insn", "next", "copy". Remove now-redundant
1038 checked cast.
1039
1040 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1041
1042 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1043 rtx_insn * and param 4 from rtx * to rtx_insn **.
1044 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1045 param 2 from rtx * to rtx_insn **.
1046
1047 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1048 rtx_insn * and final param from rtx * to rtx_insn **.
1049
1050 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1051 from rtx to rtx_insn *.
1052 (try_head_merge_bb): Likewise for both locals named "move_upto".
1053 * df-problems.c (can_move_insns_across): Likewise for params
1054 "from", "to", "across_from", "across_to" and locals "insn",
1055 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1056 rtx_insn **.
1057 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1058 from rtx to rtx_insn *.
1059 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1060 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1061 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1062 rtx_insn *.
1063 (noce_try_abs): Likewise.
1064 (noce_get_condition): Likewise for param "jump". Strengthen param
1065 "earliest" from rtx * to rtx_insn **.
1066 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1067 rtx_insn *.
1068 (find_cond_trap): Likewise.
1069 (dead_or_predicable): Likewise for local "earliest".
1070 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1071 checked cast.
1072 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1073 and local "prev". Strengthen param "earliest" from rtx * to
1074 rtx_insn **.
1075 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1076 Strengthen param "earliest" from rtx * to rtx_insn **.
1077
1078 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1079
1080 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1081 "to" and local "insn" from rtx to rtx_insn *.
1082
1083 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1084
1085 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1086 from rtx to rtx_insn *.
1087 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1088 (code_motion_path_driver): Likewise for local "last_insn".
1089 (simplify_changed_insns): Likewise for local "insn".
1090
1091 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1092
1093 * rtl.h (push_to_sequence): Strengthen param from rtx to
1094 rtx_insn *.
1095 (push_to_sequence2): Likewise for both params.
1096 (delete_insns_since): Likewise for param.
1097 (reorder_insns_nobb): Likewise for all three params.
1098 (set_new_first_and_last_insn): Likewise for both params.
1099
1100 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1101 rtx_insn *. Remove now-redundant cast.
1102 (set_last_insn): Likewise.
1103
1104 * builtins.c (expand_builtin_return): Strengthen local
1105 "call_fusage" from rtx to rtx_insn *.
1106 * cfgrtl.c (create_basic_block_structure): Likewise for local
1107 "after".
1108 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1109 "first", "last" and local "insn".
1110 (delete_insns_since): Likewise for param "from".
1111 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1112 and local "x".
1113 (push_to_sequence): Likewise for param "first" and local "last".
1114 (push_to_sequence2): Likewise for params "first" and "last".
1115 * lra.c (emit_add3_insn): Likewise for local "last".
1116 (lra_emit_add): Likewise.
1117 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1118 "last_insn".
1119 (process_address_1): Likewise for locals "insn", last".
1120 * modulo-sched.c (ps_first_note): Likewise for return type.
1121 * optabs.c (expand_binop_directly): Likewise for param "last".
1122
1123 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1124
1125 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1126 to rtx_insn*.
1127 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1128
1129 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1130
1131 * function.h (struct sequence_stack): Strengthen fields "first"
1132 and "last" from rtx to rtx_insn *.
1133 (struct emit_status): Likewise for fields "x_first_insn" and
1134 "x_last_insn".
1135
1136 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1137 (set_first_insn): Add checked cast.
1138 (get_last_insn): Remove now-redundant checked cast.
1139 (set_last_insn): Add checked cast.
1140
1141 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1142 "saved_first" and "saved_last" from rtx to rtx_insn *.
1143
1144 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1145
1146 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1147 (unlink_insn_chain): Strengthen both params from rtx to
1148 rtx_insn *.
1149
1150 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1151 variable.
1152 (unlink_insn_chain): Likewise for params "first" and "last".
1153 Remove now-redundant checked cast.
1154 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1155 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1156 rtx_insn *.
1157 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1158 params.
1159 (add_insn): Likewise for param "insn" and local "prev".
1160 (add_insn_after_nobb): Likewise for both params and local "next".
1161 (add_insn_before_nobb): Likewise for both params and local "prev".
1162 (add_insn_after): Rename param "after" to "uncast_after",
1163 introducing local "after" with another checked cast.
1164 (add_insn_before): Rename params "insn" and "before", giving them
1165 "uncast_" prefixes, adding the old names back using checked casts.
1166 (emit_note_after): Likewise for param "after".
1167 (emit_note_before): Likewise for param "before".
1168 (emit_label): Add a checked cast.
1169
1170 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1171
1172 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1173 "insn" from rtx to rtx_insn *.
1174
1175 * cselib.c (cselib_record_sets_hook): Likewise.
1176
1177 * var-tracking.c (add_with_sets): Likewise, renaming back from
1178 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1179 to rtx_insn *.
1180
1181 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1182
1183 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1184 and "header_" from rtx to rtx_insn *.
1185 (struct basic_block_d): Likewise for field "head_" within "x"
1186 field of union basic_block_il_dependent.
1187 (BB_HEAD): Drop function...
1188 (SET_BB_HEAD): ...and this function in favor of...
1189 (BB_HEAD): ...reinstate macro.
1190 (BB_END): Drop function...
1191 (SET_BB_END): ...and this function in favor of...
1192 (BB_END): ...reinstate macro.
1193 (BB_HEADER): Drop function...
1194 (SET_BB_HEADER): ...and this function in favor of...
1195 (BB_HEADER): ...reinstate macro.
1196
1197 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1198 (fix_crossing_unconditional_branches): Likewise.
1199 * caller-save.c (save_call_clobbered_regs): Likewise.
1200 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1201 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1202 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1203 (merge_blocks_move_successor_nojumps): Likewise.
1204 (outgoing_edges_match): Update use of for_each_rtx to
1205 for_each_rtx_in_insn.
1206 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1207 (expand_gimple_cond): Likewise.
1208 (expand_gimple_tailcall): Likewise.
1209 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1210 SET_BB_END.
1211 (construct_exit_block): Drop use of SET_BB_END.
1212 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1213 rtx_insn *.
1214 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1215 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1216 SET_BB_HEAD and SET_BB_END.
1217 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1218 SET_BB_END.
1219 (rtl_delete_block): Drop use of SET_BB_HEAD.
1220 (rtl_split_block): Drop use of SET_BB_END.
1221 (emit_nop_for_unique_locus_between): Likewise.
1222 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1223 (block_label): Drop use of SET_BB_HEAD.
1224 (fixup_abnormal_edges): Drop use of SET_BB_END.
1225 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1226 (relink_block_chain): Likewise.
1227 (fixup_reorder_chain): Drop use of SET_BB_END.
1228 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1229 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1230 rtx_insn **. Drop use of SET_BB_HEADER.
1231 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1232 SET_BB_HEAD.
1233 (BB_HEAD): Delete this function.
1234 (SET_BB_HEAD): Likewise.
1235 (BB_END): Likewise.
1236 (SET_BB_END): Likewise.
1237 (BB_HEADER): Likewise.
1238 (SET_BB_HEADER): Likewise.
1239 * emit-rtl.c (add_insn_after): Rename param "insn" to
1240 "uncast_insn", adding a new local "insn" and a checked cast to
1241 rtx_insn *. Drop use of SET_BB_END.
1242 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1243 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1244 (reorder_insns): Drop use of SET_BB_END.
1245 (emit_insn_after_1): Strengthen param "first" and locals "last",
1246 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1247 (emit_pattern_after_noloc): Add checked cast.
1248 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1249 (restore_other_notes): Likewise.
1250 (move_insn): Likewise.
1251 (sched_extend_bb): Likewise.
1252 (fix_jump_move): Likewise.
1253 * ifcvt.c (noce_process_if_block): Likewise.
1254 (dead_or_predicable): Likewise.
1255 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1256 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1257 * sel-sched-ir.c (sel_move_insn): Likewise.
1258 * sel-sched.c (move_nop_to_previous_block): Likewise.
1259
1260 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1261 SET_BB_END.
1262 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1263
1264 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1265
1266 * basic-block.h (create_basic_block_structure): Strengthen params
1267 1 "head" and 2 "end" from rtx to rtx_insn *.
1268 * cfgrtl.c (create_basic_block_structure): Likewise.
1269 (rtl_create_basic_block): Update casts from void * to rtx to
1270 rtx_insn *, so that we can pass them as rtx_insn * to
1271 create_basic_block_structure.
1272 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1273
1274 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1275
1276 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1277 rtx_insn **.
1278 (check_for_inc_dec): Strengthen param "insn" from rtx to
1279 rtx_insn *.
1280
1281 * cselib.h (cselib_process_insn): Likewise.
1282
1283 * cselib.c (cselib_record_sets): Likewise.
1284 (cselib_process_insn): Likewise.
1285
1286 * dse.c (struct insn_info): Likewise for field "insn".
1287 (check_for_inc_dec_1): Likewise for local "insn".
1288 (check_for_inc_dec): Likewise for param "insn".
1289 (scan_insn): Likewise.
1290 (dse_step1): Likewise for local "insn".
1291
1292 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1293 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1294
1295 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1296
1297 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1298 from rtx to rtx_insn *.
1299 (DEP_PRO): Delete this function and...
1300 (SET_DEP_PRO): ...this function in favor of...
1301 (DEP_PRO): ...reinstate this macro.
1302 (DEP_CON): Delete this function and...
1303 (SET_DEP_CON): ...this function in favor of...
1304 (DEP_CON): ...reinstate this old macro.
1305 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1306 (init_dep): Likewise.
1307 (set_priorities): Likewise for both params.
1308 (sd_copy_back_deps): Likewise for params 1 and 2.
1309
1310 * haifa-sched.c (priority): Likewise for param "insn" and local
1311 "next".
1312 (set_priorities): Likewise for params "head" and "tail" and local
1313 "insn".
1314 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1315 local "consumer".
1316 (add_to_speculative_block): Add a checked cast.
1317 (create_check_block_twin): Drop use of SET_DEP_CON.
1318 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1319 rtx to rtx_insn *.
1320
1321 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1322 Drop use of SET_DEP_PRO
1323 (init_dep): Strengthen params "pro" and "con" from rtx to
1324 rtx_insn *.
1325 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1326 use of SET_DEP_CON.
1327 (DEP_PRO): Delete.
1328 (DEP_CON): Delete.
1329 (SET_DEP_PRO): Delete.
1330 (SET_DEP_CON): Delete.
1331
1332 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1333
1334 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1335 from rtx to rtx_insn *.
1336 (VINSN_INSN_RTX): Eliminate rvalue function and...
1337 (SET_VINSN_INSN): ...lvalue function in favor of...
1338 (VINSN_INSN_RTX): reinstate this old macro.
1339
1340 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1341 in favor of VINSN_INSN_RTX.
1342 (VINSN_INSN_RTX): Delete this function.
1343 (SET_VINSN_INSN_RTX): Likewise.
1344
1345 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1346
1347 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1348 (BND_TO): Delete this function and...
1349 (SET_BND_TO): ...this functions in favor of...
1350 (BND_TO): ...reinstating this macro.
1351 (struct _fence): Strengthen field "executing_insns" from
1352 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1353 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1354 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1355 and param "insn" from rtx to insn_t.
1356 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1357 rtx_insn *.
1358
1359 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1360 vec<rtx_insn *> .
1361 (rtx_vec_t): Likewise.
1362 (struct sched_deps_info_def): Strengthen param of "start_insn"
1363 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1364 "note_mem_dep" callback and first param of "note_dep" callback.
1365
1366 * haifa-sched.c (add_to_speculative_block): Strengthen param
1367 "insn" from rtx to rtx_insn *.
1368 (clear_priorities): Likewise.
1369 (calc_priorities): Likewise for local "insn".
1370
1371 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1372 Remove redundant checked cast.
1373 (haifa_note_mem_dep): Likewise for param "pending_insn".
1374 (haifa_note_dep): Likewise for param "elem".
1375 (note_mem_dep): Likewise for param "e".
1376 (sched_analyze_1): Add checked casts.
1377 (sched_analyze_2): Likewise.
1378
1379 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1380 from rtx to rtx_insn *.
1381 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1382 from vec<rtx> * to vec<rtx_insn *> *.
1383
1384 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1385 scaffolding.
1386 (flist_add): Strengthen param "executing_insns" from
1387 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1388 (advance_deps_context): Remove now-redundant checked cast.
1389 (init_fences): Replace uses of NULL_RTX with NULL.
1390 (merge_fences): Strengthen params "last_scheduled_insn" and
1391 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1392 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1393 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1394 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1395 an instruction, rather than doing double-duty as a pattern.
1396 (return_nop_to_pool): Update for change of insn_t.
1397 (deps_init_id): Remove now-redundant checked cast.
1398 (struct sched_scan_info_def): Strengthen param of "init_insn"
1399 callback from rtx to insn_t.
1400 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1401 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1402 NULL.
1403 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1404 "end" from rtx to rtx_insn *.
1405 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1406 (rtx insn_rtx, bool force_unique_p)
1407 (BND_TO): Delete function.
1408 (SET_BND_TO): Delete function.
1409
1410 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1411 rtx to rtx_insn *.
1412 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1413 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1414 rtx to rtx_insn *.
1415 (undo_transformations): Likewise for param "insn".
1416 (update_liveness_on_insn): Likewise.
1417 (compute_live_below_insn): Likewise for param "insn" and local
1418 "succ".
1419 (update_data_sets): Likewise for param "insn".
1420 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1421 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1422 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1423 rtx_insn *.
1424 (move_cond_jump): Likewise for param "insn".
1425 (move_cond_jump): Drop use of SET_BND_TO.
1426 (compute_av_set_on_boundaries): Likewise.
1427 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1428 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1429 from rtx to rtx_insn *.
1430 (maybe_emit_renaming_copy): Likewise for param "insn".
1431 (maybe_emit_speculative_check): Likewise.
1432 (handle_emitting_transformations): Likewise.
1433 (remove_insn_from_stream): Likewise.
1434 (code_motion_process_successors): Strengthen local "succ" from rtx
1435 to insn_t.
1436
1437 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1438
1439 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1440 ilist_t, not _xlist_t;
1441 (ILIST_INSN): Define in terms of new union field "insn".
1442 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1443 _XLIST_NEXT.
1444 (struct _list_node): Add new field "insn" to the union, of type
1445 insn_t.
1446 (ilist_add): Replace macro with an inline function, requiring an
1447 insn_t.
1448 (ilist_remove): Define this macro directly in terms of
1449 _list_remove, rather than indirectly via _xlist_remove.
1450 (ilist_clear): Likewise, in terms of _list_clear rather than
1451 _xlist_clear.
1452 (ilist_is_in_p): Replace macro with an inline function, requiring
1453 an insn_t.
1454 (_list_iter_cond_insn): New function.
1455 (ilist_iter_remove): Define this macro directly in terms of
1456 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1457 (ilist_iterator): Define directly in terms of _list_iterator
1458 rather than indirectly through _xlist_iterator.
1459 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1460 than in terms of _FOR_EACH_X.
1461 (FOR_EACH_INSN_1): Likewise.
1462
1463 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1464
1465 PR target/60606
1466 PR target/61330
1467 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1468 DECL_HARD_REGISTER and return for invalid register specifications.
1469 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1470 DECL_HARD_REGISTER, call expand_one_error_var.
1471 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1472 CC_REGNUM with non-MODE_CC modes.
1473 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1474
1475 2014-08-26 Marek Polacek <polacek@redhat.com>
1476
1477 PR c/61271
1478 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1479
1480 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1481
1482 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1483 qi cost; add di cost.
1484 (cortexa57_addrcost_table): Likewise.
1485
1486 2014-08-26 Marek Polacek <polacek@redhat.com>
1487
1488 PR c/61271
1489 * expr.c (is_aligning_offset): Remove logical not.
1490
1491 2014-08-26 Marek Polacek <polacek@redhat.com>
1492
1493 PR c/61271
1494 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1495 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1496
1497 2014-08-26 Richard Biener <rguenther@suse.de>
1498
1499 PR tree-optimization/62175
1500 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1501 expand possibly trapping operations.
1502
1503 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1504
1505 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1506 "insn" from rtx to rtx_insn *.
1507 (permute_load): Likewise for param "insn".
1508 (permute_store): Likewise.
1509 (handle_special_swappables): Likewise for local "insn".
1510 (replace_swap_with_copy): Likewise for locals "insn" and
1511 "new_insn".
1512 (rs6000_analyze_swaps): Likewise for local "insn".
1513
1514 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1515
1516 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1517 to rtx_insn *.
1518
1519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1520
1521 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1522 "note_list" from rtx to rtx_insn *.
1523 (BB_NOTE_LIST): Replace this function and...
1524 (SET_BB_NOTE_LIST): ...this function with...
1525 (BB_NOTE_LIST): ...the former macro implementation.
1526
1527 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1528 local "from_start" from rtx to rtx_insn *. Strengthen param
1529 "to_endp" from rtx * to rtx_insn **.
1530
1531 * haifa-sched.c (concat_note_lists): Likewise.
1532 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1533 BB_NOTE_LIST.
1534 (sel_restore_notes): Likewise.
1535 (move_bb_info): Likewise.
1536 (BB_NOTE_LIST): Delete this function.
1537 (SET_BB_NOTE_LIST): Delete this function.
1538 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1539 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1540
1541 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1542
1543 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1544 from rtx * to rtx_insn **.
1545 (reorder2): Likewise.
1546 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1547 from rtx to rtx_insn *.
1548
1549 * doc/tm.texi: Update mechanically for above change to target.def.
1550
1551 * sched-int.h (note_list): Strengthen this variable from rtx to
1552 rtx_insn *.
1553 (remove_notes): Likewise for both params.
1554 (restore_other_notes): Likewise for return type and first param.
1555 (struct ready_list): Strengthen field "vec" from rtx * to
1556 rtx_insn **.
1557 (struct dep_replacement): Strenghten field "insn" from rtx to
1558 rtx_insn *.
1559 (struct deps_desc): Likewise for fields "last_debug_insn",
1560 "last_args_size".
1561 (struct haifa_sched_info): Likewise for callback field
1562 "can_schedule_ready_p"'s param, for first param of "new_ready"
1563 callback field, for both params of "rank" callback field, for
1564 first field of "print_insn" callback field (with a const), for
1565 both params of "contributes_to_priority" callback, for param
1566 of "insn_finishes_block_p" callback, for fields "prev_head",
1567 "next_tail", "head", "tail", for first param of "add_remove_insn"
1568 callback, for first param of "begin_schedule_ready" callback, for
1569 both params of "begin_move_insn" callback, and for second param
1570 of "advance_target_bb" callback.
1571 (add_dependence): Likewise for params 1 and 2.
1572 (sched_analyze): Likewise for params 2 and 3.
1573 (deps_analyze_insn): Likewise for param 2.
1574 (ready_element): Likewise for return type.
1575 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1576 (try_ready): Strenghten param from rtx to rtx_insn *.
1577 (sched_emit_insn): Likewise for return type.
1578 (record_delay_slot_pair): Likewise for params 1 and 2.
1579 (add_delay_dependencies): Likewise for param.
1580 (contributes_to_priority): Likewise for both params.
1581 (find_modifiable_mems): Likewise.
1582
1583 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1584 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1585 "first_older_only_insn" from rtx to rtx_insn *.
1586 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1587 rtx_insn **.
1588
1589 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1590 "last_scheduled_iter0" from rtx to rtx_insn *.
1591 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1592 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1593 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1594 "insn" from rtx to rtx_insn *.
1595 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1596 rtx_insn **.
1597 (c6x_sched_reorder2): Strengthen param "ready" and locals
1598 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1599 "insn" from rtx to rtx_insn *.
1600 (c6x_variable_issue): Add a checked cast when assigning from insn
1601 to ss.last_scheduled_iter0.
1602 (split_delayed_branch): Strengthen param "insn" and local "i1"
1603 from rtx to rtx_insn *.
1604 (split_delayed_nonbranch): Likewise.
1605 (undo_split_delayed_nonbranch): Likewise for local "insn".
1606 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1607 "entry_after", "end_packet", "head_insn", "tail_insn",
1608 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1609 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1610 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1611 but add a checked cast on loop->start_label. Consolidate calls to
1612 avoid assigning result of gen_spkernel to "insn", now an
1613 rtx_insn *.
1614
1615 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1616 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1617 rtx to rtx_insn *.
1618 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1619 rtx_insn **. Strengthen locals "top", "next" from rtx to
1620 rtx_insn *.
1621 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1622 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1623 (add_parameter_dependencies): Strengthen params "call", "head" and
1624 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1625 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1626 (add_dependee_for_func_arg): Likewise for param "arg" and local
1627 "insn".
1628 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1629 "tail" and locals "insn", "first_arg".
1630
1631 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1632 for params "head", "tail" and locals "insn", "next", "next_tail".
1633 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1634 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1635 "insn", "lowest", "highest" from rtx to rtx_insn *.
1636 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1637 rtx_insn **.
1638 (ia64_sched_reorder2): Likewise.
1639
1640 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1641 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1642 from rtx * to rtx_insn **.
1643 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1644 rtx_insn **.
1645 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1646 rtx_insn *.
1647 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1648 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1649 to rtx_insn *.
1650
1651 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1652 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1653 to rtx_insn *.
1654 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1655 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1656 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1657 rtx_insn **.
1658 (vr4130_reorder): Likewise.
1659 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1660 rtx to rtx_insn *.
1661 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1662 rtx_insn **.
1663 (mips_sched_reorder): Likewise.
1664 (mips_sched_reorder2): Likewise.
1665
1666 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1667
1668 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1669 Strengthen local "tmp" from rtx to rtx_insn *.
1670 (rs6000_sched_reorder2): Likewise.
1671
1672 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1673 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1674 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1675 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1676
1677 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1678 "tmp2" from rtx to rtx_insn *.
1679 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1680 Strengthen local "insn" from rtx to rtx_insn *.
1681 (ready_reorder): Strengthen param "ready" from rtx * to
1682 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1683 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1684 (sh_reorder2): Likewise.
1685
1686 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1687 local "insn" from rtx to rtx_insn *.
1688
1689 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1690 rtx_insn *.
1691 (scheduled_insns): Strengthen this variable from vec<rtx> to
1692 vec<rtx_insn *>.
1693 (set_modulo_params): Likewise for locals "i1", "i2".
1694 (record_delay_slot_pair): Likewise for params "i1", "i2".
1695 (add_delay_dependencies): Likewise for param "insn".
1696 (cond_clobbered_p): Likewise.
1697 (recompute_todo_spec): Likewise for local "prev".
1698 (last_scheduled_insn): Likewise for this variable.
1699 (nonscheduled_insns_begin): Likewise.
1700 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1701 rtx_insn **.
1702 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1703 rtx_insn *.
1704 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1705 Strengthen local "insn" from rtx to rtx_insn *.
1706 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1707 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1708 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1709 (ready_remove_first): Likewise for return type and local "t".
1710 (ready_element): Likewise for return type.
1711 (ready_remove): Likewise for return type and local "t".
1712 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1713 (check_clobbered_conditions): Strengthen local "x" from rtx to
1714 rtx_insn *, adding a checked cast.
1715 (schedule_insn): Likewise for param "insn".
1716 (remove_notes): Likewise for params "head", "tail" and locals
1717 "next_tail", "insn", "next".
1718 (struct haifa_saved_data): Likewise for fields
1719 "last_scheduled_insn", "nonscheduled_insns_begin".
1720 (save_backtrack_point): Update for change to field "vec" of
1721 struct ready_list.
1722 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1723 rtx_insn **.
1724 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1725 from rtx to rtx_insn *
1726 (resolve_dependencies): Strengthen param "insn" from rtx to
1727 rtx_insn *
1728 (restore_other_notes): Likewise for return type, for param "head"
1729 and local "note_head".
1730 (undo_all_replacements): Likewise for local "insn".
1731 (first_nonscheduled_insn): Likewise for return type and local "insn".
1732 (queue_to_ready): Likewise for local "insn", adding checked casts.
1733 (early_queue_to_ready): Likewise for local "insn".
1734 (debug_ready_list_1): Strengthen local "p" from rtx * to
1735 rtx_insn **.
1736 (move_insn): Strengthen param "insn" and local "note" from rtx to
1737 rtx_insn *
1738 (insn_finishes_cycle_p): Likewise for param "insn".
1739 (max_issue): Likewise for local "insn".
1740 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1741 to rtx_insn **.
1742 (commit_schedule): Strengthen param "prev_head" and local "insn"
1743 from rtx to rtx_insn *
1744 (prune_ready_list): Likewise for local "insn".
1745 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1746 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1747 (set_priorities): Likewise for local "prev_head".
1748 (try_ready): Likewise for param "next".
1749 (fix_tick_ready): Likewise.
1750 (change_queue_index): Likewise.
1751 (sched_extend_ready_list): Update for change to field "vec" of
1752 struct ready_list.
1753 (generate_recovery_code): Strengthen param "insn" from rtx to
1754 rtx_insn *.
1755 (begin_speculative_block): Likewise.
1756 (create_check_block_twin): Likewise for param "insn" and locals
1757 "label", "check", "twin". Introduce local "check_pat" to avoid
1758 "check" being used as a plain rtx before being used as an insn.
1759 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1760 extracting elements from ready_list.
1761 (sched_remove_insn): Strengthen param "insn" from rtx to
1762 rtx_insn *.
1763 (sched_emit_insn): Likewise for return type.
1764 (ready_remove_first_dispatch): Likewise for return type and local
1765 "insn".
1766
1767 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1768
1769 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1770 const rtx_insn *.
1771
1772 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1773 from rtx to rtx_insn *.
1774 (add_dependence_list): Likewise for param "insn". Add a checked
1775 cast.
1776 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1777 to rtx_insn *. Strengthen param "list_p" from rtx * to
1778 rtx_insn **.
1779 (chain_to_prev_insn): Strengthen param "insn" and locals
1780 "prec_nonnote", "i" from rtx to rtx_insn *.
1781 (flush_pending_lists): Likewise for param "insn".
1782 (cur_insn): Likewise for this variable.
1783 (haifa_start_insn): Add a checked cast.
1784 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1785 (sched_analyze_reg): Likewise for param "insn".
1786 (sched_analyze_1): Likewise.
1787 (sched_analyze_2): Likewise. Add checked casts.
1788 (sched_analyze_insn): Likewise. Also for local "prev".
1789 (deps_analyze_insn): Likewise for param "insn".
1790 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1791 (add_dependence_1): Likewise for params "insn", "elem".
1792 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1793 (parse_add_or_inc): Likewise for param "insn".
1794 (find_inc): Likewise for local "inc_cand".
1795 (find_modifiable_mems): Likewise for params "head", "tail" and
1796 locals "insn", "next_tail".
1797
1798 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1799 (begin_schedule_ready): Likewise for param "insn".
1800 (begin_move_insn): Likewise for params "insn" and "last".
1801 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1802 const rtx_insn *.
1803 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1804 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1805 (ebb_add_remove_insn): Likewise for param "insn".
1806 (advance_target_bb): Likewise.
1807
1808 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1809 "insn".
1810 (check_live): Likewise for param "insn".
1811 (init_ready_list): Likewise for local "insn".
1812 (can_schedule_ready_p): Likewise for param "insn".
1813 (begin_schedule_ready): Likewise.
1814 (new_ready): Likewise for param "next".
1815 (rgn_print_insn): Likewise for param "insn".
1816 (rgn_rank): Likewise for params "insn1", "insn2".
1817 (contributes_to_priority): Likewise for params "next", "insn".
1818 (rgn_insn_finishes_block_p): Likewise for param "insn".
1819 (add_branch_dependences): Likewise for params "head", "tail" and
1820 locals "insn", "last".
1821 (rgn_add_remove_insn): Likewise for param "insn".
1822 (advance_target_bb): Likewise.
1823
1824 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1825 const_rtx to const rtx_insn *.
1826
1827 * sel-sched-dump.h (sel_print_insn): Likewise.
1828
1829 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1830 (deps_init_id): Likewise.
1831
1832 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1833 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1834 rtx_insn **.
1835
1836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1837
1838 * output.h (final_start_function): Strengthen param 1 from rtx to
1839 rtx_insn *.
1840
1841 * final.c (final_start_function): Likewise, renaming back from
1842 "uncast_first" to "first", and dropping the checked cast from rtx
1843 to rtx_insn *.
1844
1845 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1846
1847 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1848 * final.c (final): Likewise. Rename param back from
1849 "uncast_first" to "first" and eliminate the checked cast from rtx
1850 to rtx_insn *.
1851
1852 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1853
1854 * output.h (shorten_branches): Strengthen param from rtx to
1855 rtx_insn *.
1856
1857 * final.c (shorten_branches): Likewise, renaming param back from
1858 "uncast_first" to "first", and dropping the checked cast from rtx
1859 to rtx_insn *.
1860
1861 * genattr.c (gen_attr): Likewise when writing out the prototype of
1862 shorten_branches.
1863
1864 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1865
1866 * sched-int.h (struct haifa_sched_info): Strengthen fields
1867 "prev_head" and "next_tail" from rtx to rtx_insn *.
1868
1869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1870
1871 * rtl.h (rtx_jump_table_data::get_labels): New method.
1872 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1873 with use of the new rtx_jump_table_data::get_labels method.
1874 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1875 to rtx_jump_table_data *. Simplify by using get_labels method.
1876 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1877 a dyn_cast, introducing local "table", using it to replace
1878 label-lookup logic with a get_labels method call.
1879 (patch_jump_insn): Simplify using get_labels method.
1880 * dwarf2cfi.c (create_trace_edges): Likewise.
1881 * rtlanal.c (label_is_jump_target_p): Likewise.
1882
1883 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1884
1885 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1886 to rtx_insn *.
1887
1888 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1889 (unshare_all_rtl_again): Likewise, also for local "p".
1890
1891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1892
1893 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1894 to rtx_insn *.
1895 * cfgrtl.c (delete_insn_and_edges): Likewise.
1896
1897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1898
1899 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1900 from rtx to rtx_insn *.
1901
1902 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1903
1904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1905
1906 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1907 locals "returnjump", "epilogue_end", "insn", "next".
1908
1909 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1910 "returnjump" from rtx * to rtx_insn **.
1911 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1912
1913 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1914
1915 * basic-block.h (struct edge_def). Strengthen "r" within
1916 union edge_def_insns from rtx to rtx_insn *.
1917
1918 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1919 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1920 rtx_insn *.
1921 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1922 from rtx to rtx_insn *.
1923 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1924 rtx_insn *.
1925 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1926 (reg_used_on_edge): Likewise.
1927 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1928 (gt_pch_nx): New overload for rtx_insn *&.
1929 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1930 from rtx to rtx_insn *.
1931
1932 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1933
1934 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1935 from rtx to rtx_insn *.
1936 (BB_FOOTER): Replace function with access macro.
1937 (SET_BB_FOOTER): Delete.
1938
1939 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1940 with BB_FOOTER.
1941 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1942 (emit_barrier_after_bb): Likewise.
1943 (record_effective_endpoints): Likewise.
1944 (relink_block_chain): Likewise.
1945 (fixup_fallthru_exit_predecessor): Likewise.
1946 (cfg_layout_duplicate_bb): Likewise.
1947 (cfg_layout_split_block): Likewise.
1948 (cfg_layout_delete_block): Likewise.
1949 (cfg_layout_merge_blocks): Likewise.
1950 (BB_FOOTER): Delete function.
1951 (SET_BB_FOOTER): Delete function.
1952 * combine.c (update_cfg_for_uncondjump): Replace uses of
1953 SET_BB_FOOTER with BB_FOOTER.
1954
1955 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1956
1957 * except.h (struct eh_landing_pad_d): Strengthen field
1958 "landing_pad" from rtx to rtx_code_label *.
1959
1960 * except.c (sjlj_emit_dispatch_table): Likewise for param
1961 "dispatch_label"
1962 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1963
1964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1965
1966 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1967 first param from rtx to rtx_insn *.
1968 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1969 field "set_frame_ptr_insn".
1970 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1971 "csend" from rtx to rtx_code_label *.
1972 (xtensa_expand_atomic): Likewise for local "csloop".
1973 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1974 rtx_insn *.
1975 (xtensa_call_tls_desc): Likewise for return type and locals
1976 "call_insn", "insns".
1977 (xtensa_legitimize_tls_address): Likewise for local "insns".
1978 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1979
1980 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1981
1982 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1983 first param from rtx to rtx_insn *.
1984 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1985 "insn".
1986
1987 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1988
1989 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1990 Strengthen param 1 from rtx to rtx_insn *.
1991 (tilepro_output_cbranch): Likewise.
1992 (tilepro_adjust_insn_length): Likewise.
1993 (tilepro_final_prescan_insn): Likewise for sole param.
1994
1995 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1996 Likewise for local "last".
1997 (cbranch_predicted_p): Likewise for param "insn".
1998 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1999 (tilepro_output_cbranch_with_opcode): Likewise.
2000 (tilepro_output_cbranch): Likewise.
2001 (frame_emit_load): Likewise for return type and locals "seq",
2002 "insn".
2003 (emit_sp_adjust): Likewise for return type and local "insn".
2004 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2005 "insn".
2006 (tilepro_adjust_insn_length): Likewise for param "insn".
2007 (next_insn_to_bundle): Likewise for return type and params
2008 "r", "end".
2009 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2010 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2011 local "new_insns".
2012 (match_addli_pcrel): Likewise for param "insn".
2013 (replace_addli_pcrel): Likewise.
2014 (match_auli_pcrel): Likewise.
2015 (replace_auli_pcrel): Likewise.
2016 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2017 "next_insn".
2018 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2019 "queue", "next_queue", "prev".
2020 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2021 (tilepro_final_prescan_insn): Likewise for param "insn".
2022
2023 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2024
2025 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2026 Strengthen param 1 from rtx to rtx_insn *.
2027 (tilegx_output_cbranch): Likewise.
2028 (tilegx_adjust_insn_length): Likewise.
2029 (tilegx_final_prescan_insn): Likewise for sole param.
2030
2031 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2032 or local "last".
2033 (cbranch_predicted_p): Likewise for param "insn".
2034 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2035 (tilegx_output_cbranch_with_opcode): Likewise.
2036 (tilegx_output_cbranch): Likewise.
2037 (frame_emit_load): Likewise for return type.
2038 (set_frame_related_p): Likewise for locals "seq", "insn".
2039 (emit_sp_adjust): Likewise for return type, and for local "insn".
2040 Introduce local "pat" for use in place of "insn" where the latter
2041 isn't an instruction.
2042 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2043 from rtx to rtx_insn *.
2044 (tilegx_adjust_insn_length): Likewise for param "insn".
2045 (next_insn_to_bundle): Likewise for return type and params "r" and
2046 "end".
2047 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2048 "end".
2049 (replace_insns): Likewise for params "old_insn", "new_insns".
2050 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2051 "new_insns".
2052 (replace_mov_pcrel_step2): Likewise.
2053 (replace_mov_pcrel_step3): Likewise.
2054 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2055 "next_insn".
2056 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2057 "queue", "next_queue", "prev".
2058 (tilegx_output_mi_thunk): Likewise for local "insn".
2059 (tilegx_final_prescan_insn): Likewise for param "insn".
2060
2061 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2062
2063 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2064 rtx to rtx_insn *.
2065 (frame_emit_load): Likewise.
2066 (frame_emit_add_imm): Likewise, also for local "insn".
2067 (spu_expand_prologue): Likewise for local "insn".
2068 (struct spu_bb_info): Likewise for field "prop_jump".
2069 (emit_nop_for_insn): Likewise for param "insn" and local
2070 "new_insn".
2071 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2072 "hbr_insn".
2073 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2074 locals "hint", "insn".
2075 (get_branch_target): Likewise for param "branch".
2076 (insn_clobbers_hbr): Likewise for param "insn".
2077 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2078 locals "insn", "before_4", "before_16".
2079 (insert_hbrp): Likewise for local "insn".
2080 (spu_machine_dependent_reorg): Likewise for locals "branch",
2081 "insn", "next", "bbend".
2082 (uses_ls_unit): Likewise for param "insn".
2083 (get_pipe): Likewise.
2084 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2085 introducing a checked cast.
2086 (spu_sched_adjust_cost): Likewise for params "insn" and
2087 "dep_insn".
2088 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2089 (spu_sms_res_mii): Likewise.
2090
2091 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2092
2093 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2094 from rtx to rtx_insn *.
2095 (output_cbranch): Likewise for param 6.
2096 (output_return): Likewise for param 1.
2097 (output_sibcall): Likewise.
2098 (output_v8plus_shift): Likewise.
2099 (output_v8plus_mult): Likewise.
2100 (output_v9branch): Likewise for param 7.
2101 (output_cbcond): Likewise for param 3.
2102
2103 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2104 for local "insn".
2105 (sparc_legitimize_pic_address): Likewise.
2106 (sparc_emit_call_insn): Likewise.
2107 (emit_save_or_restore_regs): Likewise.
2108 (emit_window_save): Likewise for return type and local "insn".
2109 (sparc_expand_prologue): Likewise for local "insn".
2110 (sparc_flat_expand_prologue): Likewise.
2111 (output_return): Likewise for param "insn".
2112 (output_sibcall): Likewise for param "insn" and local "delay".
2113 (output_ubranch): Likewise for param "insn".
2114 (output_cbranch): Likewise.
2115 (output_cbcond): Likewise.
2116 (output_v9branch): Likewise.
2117 (output_v8plus_shift): Likewise.
2118 (sparc_output_mi_thunk): Likewise for local "insn".
2119 (get_some_local_dynamic_name): Likewise.
2120 (output_v8plus_mult): Likewise for param "insn".
2121
2122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2123
2124 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2125 from rtx to rtx_insn *.
2126 (output_branchy_insn): Likewise for param 3.
2127 (output_far_jump): Likewise for param 1.
2128 (final_prescan_insn): Likewise.
2129 (sh_insn_length_adjustment): Likewise for sole param.
2130
2131 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2132 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2133 rtx_code_label *.
2134 (sh_emit_compare_and_set): Likewise for local "lab".
2135 (output_far_jump): Strengthen param "insn" and local "prev" from
2136 rtx to rtx_insn *.
2137 (output_branchy_insn): Likewise for param "insn" and local
2138 "next_insn".
2139 (output_ieee_ccmpeq): Likewise for param "insn".
2140 (struct label_ref_list_d): Strengthen field "label" from rtx to
2141 rtx_code_label *.
2142 (pool_node): Likewise.
2143 (pool_window_label): Likewise for this global.
2144 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2145 (dump_table): Strengthen params "start", "barrier" and local
2146 "scan" from rtx to rtx_insn *.
2147 (broken_move): Likewise for param "insn".
2148 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2149 Strengthen param "first_mova" from rtx * to rtx_insn **.
2150 (mova_p): Likewise for param "insn".
2151 (fixup_mova): Likewise for param "mova".
2152 (find_barrier): Likewise for return type, params "mova" and
2153 "from", and locals "barrier_before_mova", "found_barrier",
2154 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2155 "label" from rtx to rtx_code_label *.
2156 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2157 rtx to rtx_insn *.
2158 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2159 (split_branches): Likewise for param "first" and local "insn".
2160 (final_prescan_insn): Likewise for param "insn".
2161 (sequence_insn_p): Likewise for locals "prev", "next".
2162 (sh_insn_length_adjustment): Likewise for param "insn".
2163 (sh_can_redirect_branch): Likewise for local "insn".
2164 (find_r0_life_regions): Likewise for locals "end", "insn".
2165 (sh_output_mi_thunk): Likewise for local "insns".
2166
2167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2168
2169 * config/score/score.c (score_output_mi_thunk): Strengthen local
2170 "insn" from rtx to rtx_insn *.
2171 (score_prologue): Likewise.
2172
2173 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2174
2175 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2176 1 from rtx to rtx_insn *.
2177 (s390_emit_jump): Likewise for return type.
2178 (s390_emit_call): Likewise.
2179 (s390_load_got): Likewise.
2180
2181 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2182 variable.
2183 (s390_match_ccmode): Likewise for param "insn".
2184 (s390_emit_jump): Likewise for return type.
2185 (s390_split_branches): Likewise for local "label".
2186 (struct constant): Strengthen field "label" from rtx to
2187 rtx_code_label *.
2188 (struct constant_pool): Likewise for field "label". Strengthen
2189 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2190 rtx_insn *.
2191 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2192 insns.
2193 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2194 (s390_end_pool): Likewise.
2195 (s390_dump_pool): Likewise for local "insn".
2196 (s390_mainpool_start): Likewise.
2197 (s390_chunkify_start): Likewise.
2198 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2199 with insns. Strengthen locals "label", "jump", "barrier", "next",
2200 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2201 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2202 rtx_insn *.
2203 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2204 "jump", "label", "next_insn".
2205 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2206 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2207 "tbegin_insn".
2208 (s390_load_got): Likewise for return type and local "insns".
2209 (s390_save_gprs_to_fprs): Likewise for local "insn".
2210 (s390_restore_gprs_from_fprs): Likewise.
2211 (pass_s390_early_mach::execute): Likewise.
2212 (s390_emit_prologue): Likewise for local "insns".
2213 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2214 rtx_code_label *.
2215 (s390_emit_call): Strengthen return type and local "insn" from
2216 rtx to rtx_insn *.
2217 (s390_emit_tpf_eh_return): Likewise for local "insn".
2218 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2219 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2220 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2221 local "cur_insn".
2222 (s390_non_addr_reg_read_p): Likewise for param "insn".
2223 (find_cond_jump): Likewise for return type and param "insn".
2224 (s390_swap_cmp): Likewise for param "insn".
2225 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2226 "prev_insn", "next_insn".
2227 (s390_reorg): Likewise for locals "insn", "target".
2228 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2229 (s390_sched_variable_issue): For now, rename param "insn" to
2230 "uncast_insn", introducing a checked cast.
2231 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2232 insn.
2233 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2234 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2235
2236 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2237
2238 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2239 param from rtx to rtx_insn *.
2240 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2241
2242 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2243
2244 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2245 4 from rtx to rtx_insn *.
2246 (rs6000_final_prescan_insn): Likewise for first param.
2247 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2248 local "insn".
2249 (rs6000_get_some_local_dynamic_name): Likewise.
2250 (output_cbranch): Likewise for param "insn".
2251 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2252 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2253 (rs6000_emit_allocate_stack): Likewise for local "insn".
2254 (load_cr_save): Likewise.
2255 (restore_saved_cr): Likewise.
2256 (restore_saved_lr): Likewise.
2257 (emit_cfa_restores): Likewise.
2258 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2259 "deleted_debug_label".
2260 (rs6000_output_mi_thunk): Likewise for local "insn".
2261 (rs6000_final_prescan_insn): Likewise for param "insn".
2262
2263 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2264
2265 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2266 Strengthen param "insn" from rtx to rtx_insn *.
2267 * config/picochip/picochip.c (picochip_current_prescan_insn):
2268 Likewise for this variable.
2269 (picochip_final_prescan_insn): Likewise for param "insn".
2270
2271 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2272
2273 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2274 from rtx to rtx_insn *.
2275 (pa_output_indirect_call): Likewise.
2276 (pa_adjust_insn_length): Likewise.
2277 (pa_attr_length_millicode_call): Likewise.
2278 (pa_attr_length_call): Likewise.
2279 (pa_attr_length_indirect_call): Likewise.
2280
2281 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2282 "insn".
2283 (pa_attr_length_millicode_call): Likewise.
2284 (pa_attr_length_call): Likewise.
2285 (pa_output_call): Likewise.
2286 (pa_attr_length_indirect_call): Likewise.
2287 (pa_output_indirect_call): Likewise.
2288
2289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2290
2291 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2292 Strengthen first param from rtx to rtx_insn *.
2293 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2294 param "insn".
2295
2296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2297
2298 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2299 type from rtx to rtx_insn *.
2300 (mips_expand_call): Likewise.
2301 (mips_adjust_insn_length): Likewise for first param.
2302 (mips_output_conditional_branch): Likewise.
2303 (mips_output_order_conditional_branch): Likewise.
2304 (mips_final_prescan_insn): Likewise.
2305
2306 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2307 rtx_insn * for the SEQUENCE case.
2308 (SEQ_END): Likewise.
2309 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2310 (mips_emit_call_insn): Likewise, also for local "insn".
2311 (mips16_gp_pseudo_reg): Likewise for local "scan".
2312 (mips16_build_call_stub): Likewise for return type and for local
2313 "insn". Introduce a new local "pattern" so that "insn" can indeed
2314 be an insn.
2315 (mips_expand_call): Strengthen return type and local "insn" from
2316 rtx to rtx_insn *.
2317 (mips_block_move_loop): Strengthen local "label" from rtx to
2318 rtx_code_label *.
2319 (mips_expand_synci_loop): Likewise for locals "label",
2320 "end_label".
2321 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2322 rtx_insn *.
2323 (mips16e_collect_argument_saves): Likewise for locals "insn",
2324 "next".
2325 (mips_find_gp_ref): Likewise for param of callback for "pred"
2326 param, and for local "insn".
2327 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2328 (mips_insn_has_flexible_gp_ref_p): Likewise.
2329 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2330 local "insn".
2331 (mips_epilogue_set_cfa): Likewise for local "insn".
2332 (mips_expand_epilogue): Likewise.
2333 (mips_adjust_insn_length): Likewise for param "insn".
2334 (mips_output_conditional_branch): Likewise.
2335 (mips_output_order_conditional_branch): Likewise.
2336 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2337 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2338 "falu2_turn_enabled_insn".
2339 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2340 "done_label" from rtx to rtx_code_label *.
2341 (struct mips16_constant): Likewise for field "label".
2342 (mips16_add_constant): Likewise for return type.
2343 (mips16_emit_constants_1): Strengthen return type and param "insn"
2344 from rtx to rtx_insn *.
2345 (mips16_emit_constants): Likewise for param "insn".
2346 (mips16_insn_length): Likewise.
2347 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2348 to rtx_code_label *.
2349 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2350 from rtx to rtx_insn *.
2351 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2352 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2353 (r10k_simplify_address): Strengthen param "insn" and local
2354 "def_insn" from rtx to rtx_insn *.
2355 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2356 rtx_insn *.
2357 (r10k_needs_protection_p_1): Update target type of cast of data
2358 from to rtx to rtx_insn *.
2359 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2360 rtx * to rtx_insn **.
2361 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2362 rtx_insn *.
2363 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2364 (mips_call_expr_from_insn): Likewise for param "insn".
2365 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2366 (mips_find_pic_call_symbol): Likewise for param "insn".
2367 (mips_annotate_pic_calls): Likewise for local "insn".
2368 (mips_sim_insn): Likewise for this variable.
2369 (struct mips_sim): Likewise for field "insn" within elements of
2370 last_set array.
2371 (mips_sim_wait_reg): Likewise for param "insn".
2372 (mips_sim_wait_regs): Likewise.
2373 (mips_sim_wait_units): Likewise.
2374 (mips_sim_wait_insn): Likewise.
2375 (mips_sim_issue_insn): Likewise.
2376 (mips_sim_finish_insn): Likewise.
2377 (mips_seq_time): Likewise for param "seq" and local "insn".
2378 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2379 locals "first", "second".
2380 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2381 "last", "last2", "next".
2382 (mips_avoid_hazard): Likewise for params "after", "insn".
2383 (mips_reorg_process_insns): Likewise for locals "insn",
2384 "last_insn", "subinsn", "next_insn".
2385 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2386 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2387 "jump_sequence".
2388 (mips_output_mi_thunk): Likewise for local "insn".
2389 (mips_final_prescan_insn): Likewise for param "insn".
2390
2391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2392
2393 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2394 Strengthen return type and local "insns" from rtx to rtx_insn *.
2395 (microblaze_legitimize_tls_address): Likewise for local "insns".
2396 (microblaze_block_move_loop): Strengthen local "label" from rtx
2397 to rtx_code_label *.
2398 (microblaze_expand_prologue): Strengthen two locals named "insn"
2399 from rtx to rtx_insn *.
2400 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2401 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2402 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2403 to rtx_code_label *.
2404
2405 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2406
2407 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2408 param from rtx to rtx_insn *.
2409 (mep_reuse_lo): Likewise for third param.
2410 (mep_use_post_modify_p): Likewise for first param.
2411 (mep_core_address_length): Likewise.
2412 (mep_cop_address_length): Likewise.
2413 (mep_final_prescan_insn): Likewise.
2414 (mep_store_data_bypass_p): Likewise for both params.
2415 (mep_mul_hilo_bypass_p): Likewise.
2416 (mep_ipipe_ldc_p): Likewise for param.
2417
2418 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2419 (mep_rewrite_mult): Likewise.
2420 (mep_rewrite_mulsi3): Likewise.
2421 (mep_rewrite_maddsi3): Likewise.
2422 (mep_reuse_lo_p_1): Likewise.
2423 (mep_reuse_lo_p): Likewise.
2424 (mep_frame_expr): Likewise.
2425 (mep_make_parallel): Likewise for both params.
2426 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2427 local "insn".
2428 (mep_use_post_modify_p): Likewise for param "insn".
2429 (mep_core_address_length): Likewise.
2430 (mep_cop_address_length): Likewise.
2431 (mep_reg_set_in_function): Likewise for local "insn".
2432 (mep_asm_without_operands_p): Likewise.
2433 (F): Likewise for return type and param "x".
2434 (add_constant): Likewise for local "insn".
2435 (maybe_dead_move): Likewise for return type and local "insn".
2436 (mep_expand_prologue): Likewise for local "insn".
2437 (mep_final_prescan_insn): Likewise for param "insn".
2438 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2439 "next", "follow", "x".
2440 (mep_insert_repeat_label_last): Likewise for return type, param
2441 "last_insn", and locals "next", "prev". Strengthen param "label"
2442 from rtx to rtx_code_label *.
2443 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2444 rtx_insn *.
2445 (struct mep_doloop_end): Likewise for fields "insn" and
2446 "fallthrough".
2447 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2448 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2449 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2450 rtx_insn *.
2451 (mep_invert_branch): Likewise for params "insn" and "after".
2452 (mep_reorg_erepeat): Likewise for param "insns" and locals
2453 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2454 "l" from rtx to rtx_code_label *.
2455 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2456 from rtx to rtx_insn *.
2457 (mep_reorg_addcombine): Likewise for param "insns" and locals
2458 "i", "n".
2459 (add_sp_insn_p): Likewise for param "insn".
2460 (mep_reorg_noframe): Likewise for param "insns" and locals
2461 "start_frame_insn", "end_frame_insn", "next".
2462 (mep_reorg): Likewise for local "insns".
2463 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2464 cast.
2465 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2466 (mep_mul_hilo_bypass_p): Likewise.
2467 (mep_ipipe_ldc_p): Likewise for param "insn".
2468 (mep_make_bundle): Likewise for return type, param "cop" and local
2469 "insn", splitting out the latter into a new local "seq" for when it
2470 is a SEQUENCE rather than an insn.
2471 (core_insn_p): Likewise for param "insn".
2472 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2473 "last", "first", "note", "prev", "core_insn".
2474
2475 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2476
2477 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2478 rtx to rtx_insn *.
2479 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2480 (m68k_final_prescan_insn): Likewise for first param.
2481
2482 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2483 (m68k_set_frame_related): Likewise for param "insn".
2484 (output_btst): Likewise for param "insn".
2485 (m68k_final_prescan_insn): Likewise.
2486 (m68k_move_to_reg): Likewise for local "insn".
2487 (m68k_call_tls_get_addr): Likewise for local "insns".
2488 (m68k_call_m68k_read_tp): Likewise.
2489 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2490 (m68k_output_mi_thunk): Likewise for local "insn".
2491
2492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2493
2494 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2495 first param from rtx to rtx_insn *.
2496 (iq2000_adjust_insn_length): Likewise.
2497 (iq2000_output_conditional_branch): Likewise.
2498 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2499 "insn" and local "nop_insn".
2500 (iq2000_annotate_frame_insn): Likewise for param "insn".
2501 (iq2000_expand_prologue): Likewise for both locals "insn".
2502 (iq2000_adjust_insn_length): Likewise for param "insn".
2503 (iq2000_output_conditional_branch): Likewise.
2504
2505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2506
2507 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2508 "insns" from rtx to rtx_insn *.
2509 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2510 (struct spill_fill_data): Likewise for field "init_after" and for
2511 elements of array field "prev_insn".
2512 (spill_restore_mem): Likewise for locals "insn", "first".
2513 (do_spill): Likewise for local "insn".
2514 (do_restore): Likewise.
2515 (ia64_expand_prologue): Likewise.
2516 (ia64_expand_epilogue): Likewise.
2517 (emit_insn_group_barriers): Likewise for locals "insn",
2518 "last_label".
2519 (emit_all_insn_group_barriers): Likewise for locals "insn",
2520 "last".
2521 (dfa_stop_insn): Likewise for this global.
2522 (dfa_pre_cycle_insn): Likewise.
2523 (ia64_nop): Likewise.
2524 (final_emit_insn_group_barriers): Likewise for locals "insn",
2525 "last".
2526 (emit_predicate_relation_info): Likewise for locals "head", "n",
2527 "insn", "b", "a".
2528 (ia64_reorg): Likewise for local "insn".
2529 (ia64_output_mi_thunk): Likewise.
2530 (expand_vec_perm_interleave_2): Likewise for local "seq".
2531
2532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2533
2534 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2535 param 1 "insn" from rtx to rtx_insn *.
2536 (ix86_use_lea_for_mov): Likewise.
2537 (ix86_avoid_lea_for_addr): Likewise.
2538 (ix86_split_lea_for_addr): Likewise.
2539 (ix86_lea_for_add_ok): Likewise.
2540 (ix86_output_call_insn): Likewise.
2541
2542 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2543 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2544 (ix86_output_function_epilogue): Likewise for locals "insn",
2545 "deleted_debug_label".
2546 (legitimize_tls_address): Likewise for local "insn".
2547 (get_some_local_dynamic_name): Likewise.
2548 (increase_distance): Likewise for params "prev", "next".
2549 (distance_non_agu_define_in_bb): Likewise for params "insn",
2550 "start" and locals "prev", "next".
2551 (distance_non_agu_define): Likewise for param "insn".
2552 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2553 locals "next", "prev".
2554 (distance_agu_use): Likewise for param "insn".
2555 (ix86_lea_outperforms): Likewise.
2556 (ix86_ok_to_clobber_flags): Likewise.
2557 (ix86_avoid_lea_for_add): Likewise.
2558 (ix86_use_lea_for_mov): Likewise.
2559 (ix86_avoid_lea_for_addr): Likewise.
2560 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2561 (ix86_split_lea_for_addr): Likewise for param "insn".
2562 (ix86_lea_for_add_ok): Likewise for param "insn".
2563 (ix86_expand_carry_flag_compare): Likewise for local
2564 "compare_seq".
2565 (ix86_expand_int_movcc): Likewise.
2566 (ix86_output_call_insn): Likewise for param "insn".
2567 (ix86_output_call_insn): Likewise for local "i".
2568 (x86_output_mi_thunk): Introduce local "insn", using it in place
2569 of "tmp" when dealing with insns.
2570 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2571 "start".
2572 (ix86_pad_returns): Likewise for locals "ret", "prev".
2573 (ix86_count_insn_bb): Likewise for local "insn".
2574 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2575 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2576 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2577 (expand_vec_perm_interleave2): Likewise for local "seq".
2578 (expand_vec_perm_vperm2f128_vblend): Likewise.
2579 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2580 call to for_each_rtx with for_each_rtx_in_insn.
2581
2582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2583
2584 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2585 "label" from rtx to rtx_code_label *.
2586 (ix86_expand_prologue): Likewise.
2587 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2588 "varargs_label".
2589 (ix86_split_idivmod): Likewise for locals "end_label" and
2590 "qimode_label".
2591 (ix86_expand_branch): Likewise for local "label2".
2592 (ix86_expand_aligntest): Likewise for return type and local "label".
2593 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2594 "top_label".
2595 (expand_movmem_epilogue): Likewise for the various locals named
2596 "label".
2597 (expand_setmem_epilogue): Likewise.
2598 (expand_small_movmem_or_setmem): Likewise for local "label".
2599 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2600 Strengthen param "done_label" from rtx * to rtx_code_label **.
2601 Strengthen locals "loop_label" and "label" from rtx to
2602 rtx_code_label *.
2603 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2604 Likewise for locals "loop_label", "label".
2605 (ix86_expand_set_or_movmem): Likewise for locals "label",
2606 "jump_around_label", "hot_label".
2607 (ix86_expand_strlensi_unroll_1): Likewise for locals
2608 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2609 "end_2_label".
2610 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2611 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2612 "label2", "jump_label".
2613 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2614 local "label".
2615 (ix86_expand_lfloorceil): Likewise for local "label".
2616 (ix86_expand_rint): Likewise.
2617 (ix86_expand_floorceildf_32): Likewise.
2618 (ix86_expand_floorceil): Likewise.
2619 (ix86_expand_rounddf_32): Likewise.
2620 (ix86_expand_trunc): Likewise.
2621 (ix86_expand_truncdf_32): Likewise.
2622 (ix86_expand_round): Likewise.
2623
2624 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2625
2626 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2627 first param from rtx to rtx_insn *.
2628 (h8300_insn_length_from_table): Likewise.
2629 * config/h8300/h8300.c (F): Likewise for return type and param
2630 "x".
2631 (Fpa): Add a checked cast to rtx_insn *.
2632 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2633 rtx_insn *.
2634 (final_prescan_insn): Likewise for param "insn".
2635 (h8300_binary_length): Likewise.
2636 (h8300_insn_length_from_table): Likewise.
2637
2638 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2639
2640 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2641 Strengthen first param "insn" from rtx to rtx_insn *.
2642
2643 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2644 Likewise.
2645 (frame_insn): Likewise for return type. Introduce local "insn"
2646 for use in place of local "x" for use as an rtx_insn *.
2647 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2648 (epiphany_expand_prologue): Likewise for local "insn".
2649 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2650 * config/epiphany/resolve-sw-modes.c
2651 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2652 "seq".
2653
2654 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2655
2656 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2657 param from rtx to rtx_insn *.
2658 (c6x_final_prescan_insn): Likewise for first param.
2659
2660 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2661 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2662 (c6x_expand_compare): Strengthen local "insns" from rtx to
2663 rtx_insn *.
2664 (c6x_get_unit_specifier): Likewise for param "insn".
2665 (c6x_print_unit_specifier_field): Likewise.
2666 (c6x_final_prescan_insn): Likewise.
2667 (emit_add_sp_const): Likewise for local "insn".
2668 (c6x_expand_prologue): Likewise.
2669
2670 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2671
2672 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2673 param 1 from rtx to rtx_insn *.
2674 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2675 the various locals named "insn".
2676 (expand_epilogue_reg_restore): Likewise.
2677 (frame_related_constant_load): Likewise.
2678 (add_to_reg): Likewise.
2679 (emit_link_insn): Likewise.
2680 (do_link): Likewise.
2681 (expand_interrupt_handler_prologue): Likewise.
2682 (branch_dest): Likewise for param "branch".
2683 (asm_conditional_branch): Likewise for param "insn".
2684 (gen_one_bundle): Likewise for elements of param "slot" and local
2685 "t".
2686 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2687 elements of local "slot".
2688 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2689 "queue", "next_queue", "prev".
2690 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2691 (add_sched_insns_for_speculation): Likewise for local "insn".
2692
2693 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2694
2695 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2696 from rtx to rtx_insn *.
2697 (output_movhi): Likewise.
2698 (output_movsisf): Likewise.
2699 (avr_out_tstsi): Likewise.
2700 (avr_out_tsthi): Likewise.
2701 (avr_out_tstpsi): Likewise.
2702 (avr_out_compare): Likewise.
2703 (avr_out_compare64): Likewise.
2704 (avr_out_movpsi): Likewise.
2705 (ashlqi3_out): Likewise.
2706 (ashlhi3_out): Likewise.
2707 (ashlsi3_out): Likewise.
2708 (ashrqi3_out): Likewise.
2709 (ashrhi3_out): Likewise.
2710 (ashrsi3_out): Likewise.
2711 (lshrqi3_out): Likewise.
2712 (lshrhi3_out): Likewise.
2713 (lshrsi3_out): Likewise.
2714 (avr_out_ashlpsi3): Likewise.
2715 (avr_out_ashrpsi3): Likewise.
2716 (avr_out_lshrpsi3): Likewise.
2717 (avr_out_fract): Likewise.
2718 (avr_out_sbxx_branch): Likewise.
2719 (avr_out_round): Likewise.
2720 (avr_out_xload): Likewise.
2721 (avr_out_movmem): Likewise.
2722 (adjust_insn_length): Likewise.
2723 (avr_out_lpm): Likewise.
2724 (reg_unused_after): Likewise.
2725 (_reg_unused_after): Likewise.
2726 (avr_jump_mode): Likewise for second param.
2727 (jump_over_one_insn): Likewise for first param.
2728 (avr_final_prescan_insn): Likewise.
2729 (out_shift_with_cnt): Likewise for second param.
2730
2731 * config/avr/avr.c (get_sequence_length): Likewise for param
2732 "insns" and local "insn".
2733 (emit_push_byte): Likewise for local "insn".
2734 (emit_push_sfr): Likewise.
2735 (avr_prologue_setup_frame): Likewise for locals "insn",
2736 "fp_plus_insns", "sp_plus_insns".
2737 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2738 "sp_plus_insns".
2739 (avr_jump_mode): Likewise for param "insn".
2740 (avr_final_prescan_insn): Likewise.
2741 (avr_find_unused_d_reg): Likewise.
2742 (avr_out_lpm_no_lpmx): Likewise.
2743 (avr_out_lpm): Likewise.
2744 (avr_out_xload): Likewise.
2745 (output_movqi): Likewise.
2746 (output_movhi): Likewise.
2747 (out_movqi_r_mr): Likewise.
2748 (out_movhi_r_mr): Likewise.
2749 (out_movsi_r_mr): Likewise.
2750 (out_movsi_mr_r): Likewise.
2751 (output_movsisf): Likewise.
2752 (avr_out_load_psi): Likewise.
2753 (avr_out_store_psi): Likewise.
2754 (avr_out_movpsi): Likewise.
2755 (out_movqi_mr_r): Likewise.
2756 (avr_out_movhi_mr_r_xmega): Likewise.
2757 (out_movhi_mr_r): Likewise.
2758 (compare_condition): Likewise for param "insn" and local "next".
2759 (compare_sign_p): Likewise for param "insn".
2760 (compare_diff_p): Likewise.
2761 (compare_eq_p): Likewise.
2762 (avr_out_compare): Likewise.
2763 (avr_out_compare64): Likewise.
2764 (avr_out_tsthi): Likewise.
2765 (avr_out_tstpsi): Likewise.
2766 (avr_out_tstsi): Likewise.
2767 (out_shift_with_cnt): Likewise.
2768 (ashlqi3_out): Likewise.
2769 (ashlhi3_out): Likewise.
2770 (avr_out_ashlpsi3): Likewise.
2771 (ashlsi3_out): Likewise.
2772 (ashrqi3_out): Likewise.
2773 (ashrhi3_out): Likewise.
2774 (avr_out_ashrpsi3): Likewise.
2775 (ashrsi3_out): Likewise.
2776 (lshrqi3_out): Likewise.
2777 (lshrhi3_out): Likewise.
2778 (avr_out_lshrpsi3): Likewise.
2779 (lshrsi3_out): Likewise.
2780 (avr_out_fract): Likewise.
2781 (avr_out_round): Likewise.
2782 (avr_adjust_insn_length): Likewise.
2783 (reg_unused_after): Likewise.
2784 (_reg_unused_after): Likewise.
2785 (avr_compare_pattern): Likewise.
2786 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2787 and locals "branch1", "branch2", "insn2", "jump".
2788 (avr_reorg): Likewise for local "insn".
2789 (avr_2word_insn_p): Likewise for param "insn".
2790 (jump_over_one_insn_p): Likewise.
2791 (avr_out_sbxx_branch): Likewise.
2792 (avr_out_movmem): Likewise.
2793
2794 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2795
2796 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2797 param from rtx to rtx_insn *.
2798 (thumb1_final_prescan_insn): Likewise.
2799 (thumb2_final_prescan_insn): Likewise.
2800
2801 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2802 rtx to rtx_insn *.
2803 (struct minipool_node): Likewise for field "insn".
2804 (dump_minipool): Likewise for param "scan".
2805 (create_fix_barrier): Likewise for local "from". Strengthen local
2806 "label" from rtx to rtx_code_label *.
2807 (push_minipool_barrier): Strengthen param "insn" from rtx to
2808 rtx_insn *.
2809 (push_minipool_fix): Likewise.
2810 (note_invalid_constants): Likewise.
2811 (thumb2_reorg): Likewise for local "insn".
2812 (arm_reorg): Likewise.
2813 (thumb2_final_prescan_insn): Likewise for param
2814 "insn" and local "first_insn".
2815 (arm_final_prescan_insn): Likewise for param "insn" and locals
2816 "start_insn", "this_insn".
2817 (arm_debugger_arg_offset): Likewise for param "insn".
2818 (thumb1_emit_multi_reg_push): Likewise for return type and local
2819 "insn".
2820 (thumb1_final_prescan_insn): Likewise for param "insn".
2821 (thumb_far_jump_used_p): Likewise for local "insn".
2822 (thumb1_expand_prologue): Likewise.
2823 (arm_expand_epilogue_apcs_frame): Likewise.
2824 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2825 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2826 from rtx to rtx_code_label *.
2827 (arm_split_atomic_op): Likewise for local "label".
2828 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2829
2830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2831
2832 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2833 first param from rtx to rtx_insn *.
2834 (arc_verify_short): Likewise.
2835 (arc_short_long): Likewise.
2836 (arc_need_delay): Likewise.
2837
2838 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2839 "target_insn".
2840 (arc_ccfsm_advance): Likewise for param "insn" and locals
2841 "start_insn", "this_insn".
2842 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2843 (arc_ccfsm_post_advance): Likewise for param "insn".
2844 (arc_next_active_insn): Likewise for return type and param "insn".
2845 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2846 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2847 (output_short_suffix): Likewise for local "insn".
2848 (arc_final_prescan_insn): Likewise for param "insn". Remove
2849 now-redundant checked cast.
2850 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2851 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2852 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2853 for use where lc_set became an insn.
2854 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2855 rtx to rtx_insn *.
2856 (arc_get_insn_variants): Likewise for local "prev".
2857 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2858 "next".
2859 (arc_predicate_delay_insns): Likewise for local "insn".
2860 (arc_pad_return): Likewise for local "prev". For now, add a
2861 checked cast when extracting the insn from "final_sequence".
2862 (arc_short_long): Likewise for param "insn".
2863 (arc_need_delay): Likewise for param "insn" and local "next".
2864 (arc_label_align): Likewise for locals "prev", "next".
2865
2866 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2867
2868 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2869 "insn" from rtx to rtx_insn *.
2870 (alpha_gp_save_rtx): Likewise for local "seq".
2871 (alpha_instantiate_decls): Likewise for local "top".
2872 (get_some_local_dynamic_name): Likewise for local "insn".
2873 (alpha_does_function_need_gp): Likewise.
2874 (set_frame_related_p): Likewise for return type and for locals
2875 "seq" and "insn".
2876 (emit_frame_store_1): Likewise for local "insn".
2877 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2878 (alpha_end_function): Likewise for local "insn".
2879 (alpha_output_mi_thunk_osf): Likewise.
2880 (alphaev4_insn_pipe): Likewise for param "insn".
2881 (alphaev5_insn_pipe): Likewise.
2882 (alphaev4_next_group): Likewise for return type and param 1
2883 "insn".
2884 (alphaev5_next_group): Likewise.
2885 (alpha_align_insns_1): Likewise for return type and param 1 of
2886 callback param "next_group", and for locals "i", "next", "prev",
2887 "where", "where2", "insn".
2888
2889 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2890
2891 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2892 rather than modifying the stmt.
2893
2894 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2895
2896 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2897 cgraph_state conversion.
2898
2899 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2900
2901 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2902 Strengthen local "insns" from rtx to rtx_insn *.
2903 (aarch64_set_frame_expr): Likewise for local "insn".
2904 (aarch64_save_or_restore_fprs): Likewise.
2905 (aarch64_save_or_restore_callee_save_registers): Likewise.
2906 (aarch64_expand_prologue): Likewise.
2907 (aarch64_expand_epilogue): Likewise.
2908 (aarch64_output_mi_thunk): Likewise.
2909 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2910 "label2" from rtx to rtx_code_label *.
2911 (aarch64_split_atomic_op): Likewise for local "label".
2912
2913 2014-08-25 Martin Liska <mliska@suse.cz>
2914
2915 * cgraph.h (symtab_node):
2916 (bool needed_p (void)): created from decide_is_symbol_needed
2917 (bool referred_to_p (void)): created from referred_to_p
2918 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2919 * cgraph.h (cgraph_node):
2920 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2921 (void expand (void)): created from expand_function
2922 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2923 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2924 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2925 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2926 * cgraph.h (varpool_node):
2927 (static void add (tree decl): created from varpool_add_new_variable
2928 * cgraph.h (cgraph_edge):
2929 void remove (void);
2930 (void remove_caller (void)): created from cgraph_edge_remove_caller
2931 (void remove_callee (void)): created from cgraph_edge_remove_callee
2932 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2933 created from cgraph_set_call_stmt
2934 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2935 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2936 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2937 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2938 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2939 created from cgraph_speculative_call_info
2940 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2941 int freq_scale, bool update_original)): created from cgraph_clone_edge
2942 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2943 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2944 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2945 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2946 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2947 (static void rebuild_references (void)): created from cgraph_rebuild_references
2948 * cgraph.h (symbol_table):
2949 (create_reference): renamed from add_reference
2950 (maybe_create_reference): renamed from maybe_add_reference
2951 (void register_symbol (symtab_node *node)): new function
2952 (void clear_asm_symbols (void)): new function
2953 (void unregister (symtab_node *node)): new function
2954 (void release_symbol (cgraph_node *node, int uid)): new function
2955 (cgraph_node * allocate_cgraph_symbol (void)): new function
2956 (void initialize (void)): created from cgraph_init
2957 (symtab_node *first_symbol (void)):new function
2958 (asm_node *first_asm_symbol (void)):new function
2959 (symtab_node *first_defined_symbol (void)):new function
2960 (varpool_node *first_variable (void)):new function
2961 (varpool_node *next_variable (varpool_node *node)):new function
2962 (varpool_node *first_static_initializer (void)):new function
2963 (varpool_node *next_static_initializer (varpool_node *node)):new function
2964 (varpool_node *first_defined_variable (void)):new function
2965 (varpool_node *next_defined_variable (varpool_node *node)):new function
2966 (cgraph_node *first_defined_function (void)):new function
2967 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2968 (cgraph_node *first_function (void)):new function
2969 (cgraph_node *next_function (cgraph_node *node)):new function
2970 (cgraph_node *first_function_with_gimple_body (void)):new function
2971 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2972 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2973 created from symtab_remove_unreachable_nodes
2974 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2975 (void process_new_functions (void)): created from cgraph_process_new_functions
2976 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2977 (bool output_variables (void)): created from varpool_node::output_variables
2978 (void output_asm_statements (void)): created from output_asm_statements
2979 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2980 (void compile (void)): created from compile
2981 (void output_weakrefs (void)): created from output_weakrefs
2982 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2983 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2984 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2985 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2986 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2987 created from cgraph_next_function_with_gimple_body
2988 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2989 created from cgraph_remove_edge_removal_hook
2990 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2991 created from cgraph_add_node_removal_hook
2992 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2993 created from cgraph_remove_node_removal_hook
2994 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2995 created from varpool_add_node_removal_hook
2996 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2997 created from varpool_remove_node_removal_hook
2998 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2999 created from cgraph_add_function_insertion_hook
3000 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3001 created from cgraph_remove_function_insertion_hook
3002 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3003 created from varpool_add_variable_insertion_hook
3004 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3005 created from varpool_remove_variable_insertion_hook
3006 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3007 created from cgraph_add_edge_duplication_hook
3008 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3009 created from cgraph_remove_edge_duplication_hook
3010 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3011 created from cgraph_add_node_duplication_hook
3012 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3013 created from cgraph_remove_node_duplication_hook
3014 (void call_edge_removal_hooks (cgraph_edge *e)):
3015 created from cgraph_call_edge_removal_hooks
3016 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3017 created from call_function_insertion_hooks
3018 (void call_cgraph_removal_hooks (cgraph_node *node)):
3019 created from cgraph_call_node_removal_hooks
3020 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3021 created from cgraph_node::call_duplication_hooks
3022 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3023 created from cgraph_call_edge_duplication_hooks
3024 (void call_varpool_removal_hooks (varpool_node *node)):
3025 created from varpool_call_node_removal_hooks
3026 (void call_varpool_insertion_hooks (varpool_node *node)):
3027 created from varpool_call_variable_insertion_hooks
3028 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3029 created from insert_to_assembler_name_hash
3030 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3031 created from unlink_from_assembler_name_hash
3032 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3033 created from symtab_prevail_in_asm_name_hash
3034 (void symtab_initialize_asm_name_hash (void)):
3035 created from symtab_initialize_asm_name_hash
3036 (void change_decl_assembler_name (tree decl, tree name)):
3037 created from change_decl_assembler_name
3038 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3039 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3040 created from decl_assembler_name_hash
3041 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3042 created from decl_assembler_name_equal
3043 (static hashval_t hash_node_by_assembler_name (const void *p)):
3044 created from hash_node_by_assembler_name
3045 (static int eq_assembler_name (const void *p1, const void *p2)):
3046 created from eq_assembler_name
3047
3048 2014-08-25 Marek Polacek <polacek@redhat.com>
3049
3050 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3051
3052 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3053
3054 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3055 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3056 SWI1248_AVX512BW mode iterator.
3057
3058 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3059
3060 PR target/62111
3061 * config/sh/predicates.md (general_extend_operand): Disable
3062 TRUNCATE before reload completes.
3063
3064 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3065
3066 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3067
3068 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3069
3070 PR target/61996
3071 * config/sh/sh.opt (musermode): Allow negative form.
3072 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3073 targets that don't support it.
3074 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3075 Document -mno-usermode option.
3076
3077 2014-08-24 Kito Cheng <kito@0xlab.org>
3078
3079 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3080 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3081 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3082 * doc/tm.texi: Regenerate.
3083
3084 2014-08-24 Kito Cheng <kito@0xlab.org>
3085
3086 * ira.c: Fix typo in comment.
3087
3088 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3089
3090 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3091 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3092
3093 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3094
3095 PR target/62038
3096 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3097 last_address when the current function is a thunk.
3098 (pa_asm_output_mi_thunk): When we don't have named sections or they
3099 are not being used, check that thunk can reach the stub table with a
3100 short branch.
3101
3102 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3103
3104 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3105 rtx_insn *.
3106 (pass_web::execute): Likewise for local "insn".
3107
3108 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3109
3110 * var-tracking.c (struct micro_operation_def): Strengthen field
3111 "insn" from rtx to rtx_insn *.
3112 (struct emit_note_data_def): Likewise.
3113 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3114 (vt_stack_adjustments): Likewise for local "insn".
3115 (adjust_insn): Likewise for param "insn".
3116 (val_store): Likewise.
3117 (val_resolve): Likewise.
3118 (struct count_use_info): Likewise for field "insn".
3119 (log_op_type): Likewise for param "insn".
3120 (reverse_op): Likewise.
3121 (prepare_call_arguments): Likewise.
3122 (add_with_sets): The initial param takes an insn, but we can't
3123 yet strengthen it from rtx to rtx_insn * since it's used as a
3124 cselib_record_sets_hook callback. For now rename initial param
3125 from "insn" to "uncast_insn", and introduce a local "insn" of
3126 the stronger rtx_insn * type, with a checked cast.
3127 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3128 rtx_insn *.
3129 (emit_note_insn_var_location): Likewise.
3130 (emit_notes_for_changes): Likewise.
3131 (emit_notes_for_differences): Likewise.
3132 (next_non_note_insn_var_location): Likewise for return type and
3133 for param "insn".
3134 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3135 (vt_initialize): Likewise for local "insn".
3136 (delete_debug_insns): Likewise for locals "insn" and "next".
3137
3138 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3139
3140 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3141 rtx_insn *.
3142 (mark_constant_pool): Likewise for local "insn".
3143
3144 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3145
3146 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3147 rtx to rtx_insn *.
3148 (dead_debug_promote_uses): Likewise.
3149 (dead_debug_insert_temp): Likewise.
3150
3151 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3152
3153 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3154 from const_rtx to const rtx_insn *.
3155 (store_killed_after): Likewise. Strengthen locals "last", "act"
3156 from rtx to rtx_insn *.
3157 (store_killed_before): Strengthen param "insn" from const_rtx to
3158 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3159 (find_moveable_store): Strengthen param "insn" from rtx to
3160 rtx_insn *.
3161 (compute_store_table): Likewise for local "insn".
3162 (insert_insn_start_basic_block): Likewise for param "insn" and
3163 locals "prev", "before", "insn".
3164 (insert_store): For now, add a checked cast to rtx_insn * on the
3165 result of gen_move_insn.
3166 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3167 to rtx_insn *.
3168 (replace_store_insn): Likewise. For now, add a checked cast to
3169 rtx_insn * on the result of gen_move_insn.
3170
3171 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3172
3173 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3174 rtx_insn *.
3175 (expand_sjlj_dispatch_table): Likewise.
3176
3177 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3178
3179 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3180 "insn" from rtx to rtx_insn *.
3181
3182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3183
3184 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3185 "insn" from rtx to rtx_insn *.
3186 (dup_block_and_redirect): Likewise for param 3 "before".
3187
3188 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3189 from rtx to rtx_insn *.
3190 (move_insn_for_shrink_wrap): Likewise.
3191 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3192 (dup_block_and_redirect): Likewise for param "before" and local
3193 "insn".
3194 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3195 "end".
3196 (convert_to_simple_return): Likewise for local "start".
3197
3198 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3199 Strengthen local "insn" from rtx to rtx_insn *, for use when
3200 invoking requires_stack_frame_p.
3201
3202 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3203
3204 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3205 rtx_insn *.
3206 (speculate_expr): Likewise for locals "orig_insn_rtx",
3207 "spec_insn_rtx".
3208 (eq_transformed_insns): Likewise for locals "i1", "i2".
3209 (check_for_new_jump): Likewise for return type and local "end".
3210 (find_new_jump): Likewise for return type and local "jump".
3211 (sel_split_edge): Likewise for local "jump".
3212 (sel_create_recovery_block): Likewise.
3213 (sel_redirect_edge_and_branch_force): Likewise.
3214 (sel_redirect_edge_and_branch): Likewise.
3215
3216 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3217
3218 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3219 "new_insn" from rtx to rtx_insn *.
3220 (create_insn_rtx_with_rhs): Likewise for return type and for local
3221 "insn_rtx".
3222 (create_insn_rtx_with_lhs): Likewise.
3223 (create_speculation_check): Likewise for local "insn_rtx".
3224 (implicit_clobber_conflict_p): Likewise for local "insn".
3225 (get_expr_cost): Likewise.
3226 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3227 (move_cond_jump): Likewise for locals "next", "prev", "link",
3228 "head", "from", "to".
3229
3230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3231
3232 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3233 "next" from rtx to rtx_insn *.
3234 (find_conditional_protection): Likewise for local "next".
3235 (is_conditionally_protected): Likewise for local "insn1".
3236 (is_pfree): Likewise for locals "insn1", "insn2".
3237
3238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3239
3240 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3241 from rtx to rtx_insn *.
3242
3243 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3244 locals "insn1", "insn2" from rtx to rtx_insn *.
3245 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3246 locals "insn", "prev", "last_jump", "next_tail".
3247 (schedule_ebb): Likewise for params "head", "tail".
3248 (schedule_ebbs): Likewise for locals "tail", "head".
3249
3250 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3251 to rtx_insn on "last_insn" in one of the invocations of
3252 schedule_ebb.
3253
3254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3255
3256 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3257 "elem", "insn" from rtx to rtx_insn *.
3258 (change_spec_dep_to_hard): Likewise.
3259 (get_back_and_forw_lists): Likewise for local "con".
3260 (sd_add_dep): Likewise for locals "elem", "insn".
3261 (sd_resolve_dep): Likewise for locals "pro", "con".
3262 (sd_unresolve_dep): Likewise.
3263 (sd_delete_dep): Likewise.
3264 (chain_to_prev_insn): Likewise for local "pro".
3265 (find_inc): Likewise for locals "pro", "con".
3266
3267 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3268
3269 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3270 to rtx_insn *.
3271 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3272 const rtx_insn *.
3273 (modified_between_p): Strengthen local "insn" from rtx to
3274 rtx_insn *.
3275 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3276 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3277 const rtx_insn *.
3278
3279 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3280
3281 * resource.c (next_insn_no_annul): Strengthen local "next" from
3282 rtx to rtx_insn *.
3283 (mark_referenced_resources): Likewise for local "insn".
3284
3285 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3286
3287 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3288 to rtx_insn *.
3289 (find_reloads): Likewise for param 1.
3290 (subst_reloads): Likewise for sole param.
3291 (find_equiv_reg): Likwise for param 2.
3292 (regno_clobbered_p): Likwise for param 2.
3293 (reload): Likewise for param 1.
3294
3295 * caller-save.c (save_call_clobbered_regs): Strengthen local
3296 "insn" from rtx to rtx_insn *.
3297 (insert_one_insn): Likewise for local "insn".
3298
3299 * reload.c (this_insn): Likewise for this global.
3300 (find_reloads): Likewise for param "insn".
3301 (find_reloads_toplev): Likewise.
3302 (find_reloads_address): Likewise.
3303 (subst_reg_equivs): Likewise.
3304 (update_auto_inc_notes): Likewise.
3305 (find_reloads_address_1): Likewise.
3306 (find_reloads_subreg_address): Likewise.
3307 (subst_reloads): Likewise.
3308 (find_equiv_reg): Likewise, also for local "p".
3309 (regno_clobbered_p): Likewise for param "insn".
3310
3311 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3312 array.
3313 (spill_reg_store): Likewise for the elements of this array.
3314 (remove_init_insns): Likewise for local "equiv_insn".
3315 (will_delete_init_insn_p): Likewise for param "insn".
3316 (reload): Likewise for param ""first" and local "insn".
3317 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3318 rtx_insn *.
3319 (calculate_elim_costs_all_insns): Likewise.
3320 (delete_caller_save_insns): Likewise.
3321 (spill_failure): Likewise for param "insn".
3322 (delete_dead_insn): Likewise.
3323 (set_label_offsets): Likewise.
3324 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3325 "prev_insn".
3326 (elimination_costs_in_insn): Likewise for param "insn".
3327 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3328 when referring to an insn.
3329 (set_initial_label_offsets): Likewise.
3330 (set_offsets_for_label): Strengthen param "insn" from rtx to
3331 rtx_insn *.
3332 (init_eliminable_invariants): Likewise for param "first" and local
3333 "insn".
3334 (fixup_eh_region_note): Likewise for param "insn".
3335 (reload_as_needed): Likewise for locals "prev", "insn",
3336 "old_next", "old_prev", "next".
3337 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3338 "last".
3339 (reload_inheritance_insn): Strengthen elements of this array from
3340 rtx to rtx_insn *.
3341 (failed_reload): Likewise for param "insn".
3342 (choose_reload_regs): Likewise for local "insn". Replace use of
3343 NULL_RTX with NULL when referring to an insn.
3344 (input_reload_insns): Strengthen elements of this array from rtx
3345 to rtx_insn *.
3346 (other_input_address_reload_insns): Likewise for this global.
3347 (other_input_reload_insns): Likewise for this global.
3348 (input_address_reload_insns): Likwise for the elements of this
3349 array.
3350 (inpaddr_address_reload_insns): Likwise for the elements of this
3351 array.
3352 (output_reload_insns): Likewise for the elements of this array.
3353 (output_address_reload_insns): Likewise for the elements of this
3354 array.
3355 (outaddr_address_reload_insns): Likewise for the elements of this
3356 array.
3357 (operand_reload_insns): Likewise for this global.
3358 (other_operand_reload_insns): Likewise for this global.
3359 (other_output_reload_insns): Likewise for the elements of this
3360 array.
3361 (new_spill_reg_store): Likewise for the elements of this
3362 array.
3363 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3364 Strengthen local "where" from rtx * to rtx_insn **.
3365 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3366 from rtx to rtx_insn *.
3367 (do_input_reload): Likewise for local "insn".
3368 (do_output_reload): Likewise for local "insn".
3369 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3370 (emit_insn_if_valid_for_reload): Likewise for return type and local
3371 "last". Add checked cast to rtx_insn when returning "insn" since
3372 this has been through emit_insn.
3373 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3374 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3375 returning "insn" since it's been through
3376 emit_insn_if_valid_for_reload at this point.
3377 (delete_output_reload): Strengthen param "insn" and locals
3378 "output_reload_insn", "i2" from rtx to rtx_insn *.
3379 (delete_address_reloads): Likewise for params "dead_insn",
3380 "current_insn" and locals "prev", "next".
3381 (delete_address_reloads_1): Likewise for params "dead_insn",
3382 "current_insn" and locals "prev", "i2".
3383 (inc_for_reload): Likewise for locals "last", "add_insn".
3384 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3385 rtx_insn *.
3386
3387 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3388 param of this duplicate of the prototype from reload.h
3389
3390 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3391
3392 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3393 rtx to rtx_insn *.
3394 (regstat_bb_compute_calls_crossed): Likewise.
3395
3396 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3397
3398 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3399 to rtx_insn *.
3400 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3401 with an insn.
3402 (regrename_analyze): Strengthen local "insn" from rtx to
3403 rtx_insn *.
3404 (scan_rtx_reg): Likewise for param "insn".
3405 (scan_rtx_address): Likewise.
3406 (scan_rtx): Likewise.
3407 (restore_operands): Likewise.
3408 (record_out_operands): Likewise.
3409 (build_def_use): Likewise for local "insn". Replace use of
3410 NULL_RTX with NULL when dealing with an insn.
3411
3412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3413
3414 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3415 * reginfo.c (reg_scan): Likewise, also for local "insn".
3416 (reg_scan_mark_refs): Likewise for param "insn".
3417 (init_subregs_of_mode): Likewise for local "insn".
3418
3419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3420
3421 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3422 "insn" from rtx to rtx_insn *.
3423 (replace_oldest_value_reg): Likewise for param "insn".
3424 (replace_oldest_value_addr): Likewise.
3425 (replace_oldest_value_mem): Likewise.
3426 (apply_debug_insn_changes): Likewise for local "last_insn".
3427 (copyprop_hardreg_forward_1): Likewise for local "insn".
3428
3429 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3430
3431 * reg-stack.c (next_flags_user): Strengthen return type and param
3432 "insn" from rtx to rtx_insn *.
3433 (straighten_stack): Likewise for param "insn".
3434 (check_asm_stack_operands): Likewise.
3435 (remove_regno_note): Likewise.
3436 (emit_pop_insn): Likewise for return type, param "insn", local
3437 "pop_insn".
3438 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3439 "limit" from rtx to rtx_insn *.
3440 (swap_to_top): Likewise for param "insn".
3441 (move_for_stack_reg): Likewise.
3442 (move_nan_for_stack_reg): Likewise.
3443 (swap_rtx_condition): Likewise.
3444 (compare_for_stack_reg): Likewise.
3445 (subst_all_stack_regs_in_debug_insn): Likewise.
3446 (subst_stack_regs_pat): Likewise, and local "insn2".
3447 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3448 rtx_insn *.
3449 (subst_stack_regs): Likewise.
3450 (change_stack): Likewise.
3451 (convert_regs_1): Likewise for locals "insn", "next".
3452
3453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3454
3455 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3456 rtx_insn *.
3457 (combine_set_extension): Likewise for param "curr_insn".
3458 (transform_ifelse): Likewise for param "def_insn".
3459 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3460 from vec<rtx> * to vec<rtx_insn *> *.
3461 (is_cond_copy_insn): Likewise for param "insn".
3462 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3463 to vec<rtx_insn *>.
3464 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3465 local "def_insn" from rtx to rtx_insn *.
3466 (get_sub_rtx): Likewise for param "def_insn".
3467 (merge_def_and_ext): Likewise.
3468 (combine_reaching_defs): Likewise.
3469 (add_removable_extension): Likewise for param "insn".
3470 (find_removable_extensions): Likewise for local "insn".
3471 (find_and_remove_re): Likewise for locals "curr_insn" and
3472 "def_insn". Strengthen locals "reinsn_del_list" and
3473 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3474
3475 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3476
3477 * recog.c (split_insn): Strengthen param "insn" and locals
3478 "first", "last" from rtx to rtx_insn *.
3479 (split_all_insns): Likewise for locals "insn", "next".
3480 (split_all_insns_noflow): Likewise.
3481
3482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3483
3484 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3485 const rtx_insn *.
3486 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3487 (debug_rtx_find): Likewise for param 1 "x".
3488
3489 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3490 const_rtx to const rtx_insn *. Likewise for local "insn".
3491 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3492 (debug_rtx_find): Likewise for param 1 "x".
3493 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3494 from const_rtx to const rtx_insn * within the appropriate cases of
3495 the switch statement.
3496
3497 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3498 Strengthen local "insns" from rtx to rtx_insn * since this is
3499 passed to a call to debug_rtx_list.
3500
3501 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3502
3503 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3504 to rtx_insn *.
3505
3506 * function.c (stack_protect_epilogue): Add checked cast to
3507 rtx_insn for now when invoking predict_insn_def.
3508
3509 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3510 rtx_insn *.
3511 (predict_insn_def): Likewise.
3512 (rtl_predict_edge): Likewise for local "last_insn".
3513 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3514 const rtx_insn *.
3515 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3516 to rtx_insn *.
3517 (bb_estimate_probability_locally): Likewise for local "last_insn".
3518 (expensive_function_p): Likewise for local "insn".
3519
3520 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3521 local "jmp", since this is used when invoking predict_insn_def.
3522
3523 2014-08-22 Marek Polacek <polacek@redhat.com>
3524
3525 PR c++/62199
3526 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3527
3528 2014-08-22 Marek Polacek <polacek@redhat.com>
3529
3530 PR c/61271
3531 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3532 a comparison in parens.
3533 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3534 in parens.
3535
3536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3537
3538 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3539 rtx_insn *.
3540
3541 * cprop.c (fis_get_condition): Likewise.
3542
3543 * postreload.c (reload_cse_regs): Likewise for param "first".
3544 (reload_cse_simplify): Likewise for param "insn".
3545 (reload_cse_regs_1): Likewise for local "insn".
3546 (reload_cse_simplify_set): Likewise for param "insn".
3547 (reload_cse_simplify_operands): Likewise.
3548 (struct reg_use): Likewise for field "insn".
3549 (reload_combine_purge_insn_uses): Likewise for param "insn".
3550 (fixup_debug_insns): Likewise for params "from", "to" and local
3551 "insn".
3552 (try_replace_in_use): Likewise for local "use_insn".
3553 (reload_combine_recognize_const_pattern): Likewise for param
3554 "insn" and locals "add_moved_after_insn", "use_insn".
3555 (reload_combine_recognize_pattern): Likewise for param "insn" and
3556 local "prev".
3557 (reload_combine): Likewise for locals "insn", "prev".
3558 (reload_combine_note_use): Likewise for param "insn".
3559 (move2add_use_add2_insn): Likewise.
3560 (move2add_use_add3_insn): Likewise.
3561 (reload_cse_move2add): Likewise, also for local "next".
3562 (move2add_note_store): Likewise for local "insn".
3563
3564 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3565
3566 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3567 rtx to rtx_insn *.
3568 (struct unoccr): Likewise.
3569 (struct modifies_mem): Likewise.
3570 (alloc_mem): Likewise for local "insn".
3571 (insert_expr_in_table): Likewise for param "insn".
3572 (dump_expr_hash_table_entry): Likewise for local "insn".
3573 (oprs_unchanged_p): Likewise for param "insn".
3574 (load_killed_in_block_p): Likewise for local "setter".
3575 (record_last_reg_set_info): Likewise for param "insn".
3576 (record_last_reg_set_info_regno): Likewise.
3577 (record_last_mem_set_info): Likewise.
3578 (record_last_set_info): Likewise for local "last_set_insn".
3579 (record_opr_changes): Likewise for param "insn".
3580 (hash_scan_set): Likewise.
3581 (compute_hash_table): Likewise for local "insn".
3582 (get_avail_load_store_reg): Likewise for param "insn".
3583 (eliminate_partially_redundant_load): Likewise, also for locals
3584 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3585 RTX for insns.
3586 (eliminate_partially_redundant_loads): Likewise for local "insn".
3587
3588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3589
3590 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3591 rtx to rtx_insn *.
3592 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3593 (expand_twoval_unop): Likewise for locals entry_last", "last".
3594 (expand_twoval_binop): Likewise.
3595 (expand_twoval_binop_libfunc): Likewise for local "insns".
3596 (widen_leading): Likewise for local "last".
3597 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3598 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3599 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3600 (expand_parity): Likewise for locals "last" and "seq".
3601 (expand_ffs): Likewise for local "seq". Strengthen local
3602 "nonzero_label" from rtx to rtx_code_label *.
3603 (expand_absneg_bit): Strengthen local "insns" from rtx to
3604 rtx_insn *.
3605 (expand_unop_direct): Likewise for local "last".
3606 (expand_unop): Likewise for locals "last", "insns".
3607 (expand_abs_nojump): Likewise for local "last".
3608 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3609 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3610 rtx_insn *.
3611 (expand_copysign_absneg): Strengthen local "label" from rtx to
3612 rtx_code_label *.
3613 (expand_copysign_bit): Strengthen local "insns" from rtx to
3614 rtx_insn *.
3615 (struct no_conflict_data): Likewise for fields "first", "insn".
3616 (emit_libcall_block_1): Likewise for param "insns" and locals
3617 "next", "last", "insn".
3618 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3619 on "insns" when invoking emit_libcall_block_1. Ultimately we
3620 want to strengthen insns itself.
3621 (prepare_cmp_insn): Strengthen local "last" from rtx to
3622 rtx_insn *.
3623 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3624 (prepare_float_lib_cmp): Likewise for local "insns".
3625 (emit_conditional_move): Likewise for local "last".
3626 (emit_conditional_add): Likewise.
3627 (have_sub2_insn): Likewise for local "seq".
3628 (expand_float): Likewise for local "insns". Strengthen locals
3629 "label", "neglabel" from rtx to rtx_code_label *.
3630 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3631 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3632 (expand_fixed_convert): Likewise for local "insns" (to
3633 rtx_insn *).
3634 (expand_sfix_optab): Likewise for local "last".
3635 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3636 to rtx_code_label *.
3637 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3638 from rtx to rtx_insn *.
3639 (expand_atomic_fetch_op): Likewise for local "insn".
3640 (maybe_legitimize_operand_same_code): Likewise for local "last".
3641 (maybe_legitimize_operands): Likewise.
3642
3643 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3644
3645 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3646 "insn" from rtx to rtx_insn *.
3647 (ps_rtl_insn): Likewise for return type.
3648 (doloop_register_get): Likewise for params "head", "tail" and
3649 locals "insn", "first_insn_not_to_check".
3650 (schedule_reg_move): Likewise for local "this_insn".
3651 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3652 of gen_move_insn for now.
3653 (reset_sched_times): Strengthen local "insn" from rtx to
3654 rtx_insn *.
3655 (permute_partial_schedule): Likewise.
3656 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3657 (dump_insn_location): Likewise for param "insn".
3658 (loop_canon_p): Likewise for local "insn".
3659 (sms_schedule): Likewise.
3660 (print_partial_schedule): Likewise.
3661 (ps_has_conflicts): Likewise.
3662
3663 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3664
3665 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3666 "tailp" from rtx * to rtx_insn **.
3667
3668 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3669 from rtx to rtx_insn *.
3670 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3671 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3672 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3673 rtx to rtx_insn *.
3674 * modulo-sched.c (const_iteration_count): Strengthen return type
3675 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3676 use of NULL_RTX with NULL when working with insns.
3677 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3678 to rtx_insn *.
3679 (sms_schedule): Likewise.
3680 * sched-rgn.c (init_ready_list): Likewise, also for locals
3681 "src_head" and "src_next_tail".
3682 (compute_block_dependences): Likewise.
3683 (free_block_dependencies): Likewise.
3684 (debug_rgn_dependencies): Likewise.
3685 (free_rgn_deps): Likewise.
3686 (compute_priorities): Likewise.
3687 (schedule_region): Likewise.
3688 * sel-sched.c (find_ebb_boundaries): Likewise.
3689
3690 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3691 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3692
3693 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3694
3695 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3696 from rtx to rtx_insn *.
3697 (new_seginfo): Likewise for param "insn".
3698 (create_pre_exit): Likewise for locals "last_insn",
3699 "before_return_copy", "return_copy".
3700 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3701 "mode_set".
3702
3703 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3704
3705 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3706 from rtx to rtx_insn *.
3707 (lra_push_insn): Likewise for 1st param.
3708 (lra_push_insn_and_update_insn_regno_info): Likewise.
3709 (lra_pop_insn): Likewise for return type.
3710 (lra_invalidate_insn_data): Likewise for 1st param.
3711 (lra_set_insn_deleted): Likewise.
3712 (lra_delete_dead_insn): Likewise.
3713 (lra_process_new_insns): Likewise for first 3 params.
3714 (lra_set_insn_recog_data): Likewise for 1st param.
3715 (lra_update_insn_recog_data): Likewise.
3716 (lra_set_used_insn_alternative): Likewise.
3717 (lra_invalidate_insn_regno_info): Likewise.
3718 (lra_update_insn_regno_info): Likewise.
3719 (lra_former_scratch_operand_p): Likewise.
3720 (lra_eliminate_regs_1): Likewise.
3721 (lra_get_insn_recog_data): Likewise.
3722
3723 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3724 rtx to rtx_insn *.
3725
3726 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3727 "mv1" and "mv2".
3728 (substitute_within_insn): New.
3729 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3730 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3731 Replace call to "substitute" with call to substitute_within_insn.
3732
3733 * lra-constraints.c (curr_insn): Strengthen from rtx to
3734 rtx_insn *.
3735 (get_equiv_with_elimination): Likewise for param "insn".
3736 (match_reload): Strengthen params "before" and "after" from rtx *
3737 to rtx_insn **.
3738 (emit_spill_move): Likewise for return type. Add a checked cast
3739 to rtx_insn * on result of gen_move_insn for now.
3740 (check_and_process_move): Likewise for local "before". Replace
3741 NULL_RTX with NULL when referring to insns.
3742 (process_addr_reg): Strengthen params "before" and "after" from
3743 rtx * to rtx_insn **.
3744 (insert_move_for_subreg): Likewise.
3745 (simplify_operand_subreg): Strengthen locals "before" and "after"
3746 from rtx to rtx_insn *.
3747 (process_address_1): Strengthen params "before" and "after" from
3748 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3749 rtx to rtx_insn *.
3750 (process_address): Strengthen params "before" and "after" from
3751 rtx * to rtx_insn **.
3752 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3753 (curr_insn_transform): Strengthen locals "before" and "after"
3754 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3755 to insns.
3756 (loc_equivalence_callback): Update cast of "data", changing
3757 resulting type from rtx to rtx_insn *.
3758 (substitute_pseudo_within_insn): New.
3759 (inherit_reload_reg): Strengthen param "insn" from rtx to
3760 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3761 NULL when referring to insns. Add a checked cast to rtx_insn *
3762 when using usage_insn to invoke lra_update_insn_regno_info.
3763 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3764 likewise for locals "restore", "save". Add checked casts to
3765 rtx_insn * when using usage_insn to invoke
3766 lra_update_insn_regno_info and lra_process_new_insns. Replace
3767 NULL_RTX with NULL when referring to insns.
3768 (split_if_necessary): Strengthen param "insn" from rtx to
3769 rtx_insn *.
3770 (update_ebb_live_info): Likewise for params "head", "tail" and local
3771 "prev_insn".
3772 (get_last_insertion_point): Likewise for return type and local "insn".
3773 (get_live_on_other_edges): Likewise for local "last".
3774 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3775 "prev_insn", "next_insn", "restore".
3776 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3777 (undo_optional_reloads): Likewise for local "insn".
3778
3779 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3780 "insn".
3781 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3782 insns.
3783 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3784 rtx_insn *.
3785 (spill_pseudos): Likewise for local "insn".
3786 (init_elimination): Likewise.
3787 (process_insn_for_elimination): Likewise for param "insn".
3788
3789 * lra-lives.c (curr_insn): Likewise.;
3790
3791 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3792 (remove_pseudos): Likewise for param "insn".
3793 (spill_pseudos): Likewise for local "insn".
3794 (lra_final_code_change): Likewise for locals "insn", "curr".
3795
3796 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3797 (lra_set_insn_deleted): Likewise.
3798 (lra_delete_dead_insn): Likewise, and for local "prev".
3799 (new_insn_reg): Likewise for param "insn".
3800 (lra_set_insn_recog_data): Likewise.
3801 (lra_update_insn_recog_data): Likewise.
3802 (lra_set_used_insn_alternative): Likewise.
3803 (get_insn_freq): Likewise.
3804 (invalidate_insn_data_regno_info): Likewise.
3805 (lra_invalidate_insn_regno_info): Likewise.
3806 (lra_update_insn_regno_info): Likewise.
3807 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3808 vec<rtx_insn *>.
3809 (lra_push_insn_1): Strengthen param "insn" from rtx to
3810 rtx_insn *.
3811 (lra_push_insn): Likewise.
3812 (lra_push_insn_and_update_insn_regno_info): Likewise.
3813 (lra_pop_insn): Likewise for return type and local "insn".
3814 (push_insns): Likewise for params "from", "to", and local "insn".
3815 (setup_sp_offset): Likewise for params "from", "last" and locals
3816 "before", "insn".
3817 (lra_process_new_insns): Likewise for params "insn", "before",
3818 "after" and local "last".
3819 (struct sloc): Likewise for field "insn".
3820 (lra_former_scratch_operand_p): Likewise for param "insn".
3821 (remove_scratches): Likewise for locals "insn", "last".
3822 (check_rtl): Likewise for local "insn".
3823 (add_auto_inc_notes): Likewise for param "insn".
3824 (update_inc_notes): Likewise for local "insn".
3825 (lra): Replace NULL_RTX with NULL when referring to insn.
3826
3827 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3828
3829 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3830 to rtx_insn *.
3831 (resolve_reg_notes): Likewise.
3832 (resolve_simple_move): Likewise for return type, param "insn", and
3833 locals "insns", "minsn".
3834 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3835 (resolve_use): Likewise.
3836 (resolve_debug): Likewise.
3837 (find_decomposable_shift_zext): Likewise.
3838 (resolve_shift_zext): Likewise for return type, param "insn", and
3839 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3840 (decompose_multiword_subregs): Likewise for local "insn",
3841 "orig_insn", "decomposed_shift", "end".
3842
3843 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3844
3845 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3846 param "insns" from rtx to rtx_insn *.
3847
3848 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3849 rtx to rtx_insn *.
3850 (struct iv_to_split): Likewise.
3851 (loop_exit_at_end_p): Likewise for local "insn".
3852 (split_edge_and_insert): Likewise for param "insns".
3853 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3854 and locals "seq", "jump".
3855 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3856 "branch_code"; update invocations of compare_and_jump_seq to
3857 eliminate NULL_RTX in favor of NULL.
3858 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3859 rtx to rtx_insn *.
3860 (reset_debug_uses_in_loop): Likewise.
3861 (analyze_insn_to_expand_var): Likewise for param "insn".
3862 (analyze_iv_to_split_insn): Likewise.
3863 (analyze_insns_in_loop): Likewise for local "insn".
3864 (insert_base_initialization): Likewise for param
3865 "insn" and local "seq".
3866 (split_iv): Likewise for param "insn" and local "seq".
3867 (expand_var_during_unrolling): Likewise for param "insn".
3868 (insert_var_expansion_initialization): Likewise for local "seq".
3869 (combine_var_copies_in_loop_exit): Likewise.
3870 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3871 "insn".
3872 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3873 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3874 "next".
3875
3876 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3877
3878 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3879 rtx_insn *.
3880 (iv_analyze_result): Likewise.
3881 (iv_analyze_expr): Likewise.
3882 (biv_p): Likewise.
3883
3884 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3885 local "def_insn" from rtx to rtx_insn *.
3886 (get_biv_step_1): Likewise for local "insn".
3887 (iv_analyze_expr): Likewise for param "insn".
3888 (iv_analyze_def): Likewise for local "insn".
3889 (iv_analyze_op): Likewise for param "insn".
3890 (iv_analyze): Likewise.
3891 (iv_analyze_result): Likewise.
3892 (biv_p): Likewise.
3893 (suitable_set_for_replacement): Likewise.
3894 (simplify_using_initial_values): Likewise for local "insn".
3895 (iv_number_of_iterations): Likewise for param "insn".
3896 (check_simple_exit): Add checked cast to rtx_insn when invoking
3897 iv_number_of_iterations for now (until get_condition is
3898 strengthened).
3899
3900 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3901 "insn" from rtx to rtx_insn *.
3902 (analyze_insns_in_loop): Likewise for local "insn".
3903
3904 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3905
3906 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3907 to rtx_insn *.
3908 (struct invariant): Likewise.
3909 (hash_invariant_expr_1): Likewise for param "insn".
3910 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3911 (find_exits): Likewise for local "insn".
3912 (create_new_invariant): Likewise for param "insn".
3913 (check_dependencies): Likewise.
3914 (find_invariant_insn): Likewise.
3915 (record_uses): Likewise.
3916 (find_invariants_insn): Likewise.
3917 (find_invariants_bb): Likewise for local "insn".
3918 (get_pressure_class_and_nregs): Likewise for param "insn".
3919 (calculate_loop_reg_pressure): Likewise for local "insn".
3920
3921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3922
3923 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3924 to rtx_insn *.
3925 (add_test): Likewise for locals "seq", "jump".
3926 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3927
3928 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3929
3930 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3931 rtx_insn *.
3932 (rebuild_jump_labels_chain): Likewise for param "chain".
3933
3934 * cfgexpand.c (pass_expand::execute): Add checked cast to
3935 rtx_insn * when calling rebuild_jump_labels_chain in region where
3936 we know e->insns.r is non-NULL.
3937
3938 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3939 rtx_insn *.
3940 (rebuild_jump_labels): Likewise.
3941 (rebuild_jump_labels_chain): Likewise for param "chain".
3942 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3943 (init_label_info): Likewise for param "f".
3944 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3945 "prev_nonjump_insn".
3946 (mark_all_labels): Likewise for param "f" and locals "insn",
3947 "prev_nonjump_insn".
3948
3949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3950
3951 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3952 from rtx to rtx_insn *insn.
3953 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3954 (ira_add_allocno_copy): Likewise.
3955 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3956 rtx to rtx_insn *.
3957 (ira_create_copy): Likewise.
3958 (ira_add_allocno_copy): Likewise.
3959 (create_bb_allocnos): Likewise for local "insn".
3960 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3961 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3962 process_regs_for_copy for rtx_insn * param.
3963 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3964 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3965 process_regs_for_copy for rtx_insn * param.
3966 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3967 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3968 (record_operand_costs): Likewise.
3969 (scan_one_insn): Likewise for return type, and for param "insn".
3970 (process_bb_for_costs): Likewise for local "insn".
3971 (process_bb_node_for_hard_reg_moves): Likewise.
3972 * ira-emit.c (struct move): Likewise for field "insn".
3973 (create_move): Eliminate use of NULL_RTX when dealing with an
3974 rtx_insn *.
3975 (emit_move_list): Strengthen return type and locals "result",
3976 "insn" from rtx to rtx_insn *insn.
3977 (emit_moves): Likewise for locals "insns", "tmp".
3978 (ira_emit): Likewise for local "insn".
3979 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3980 "insn".
3981 (find_call_crossed_cheap_reg): Likewise.
3982 (process_bb_node_lives): Likewise for local "insn".
3983 * ira.c (decrease_live_ranges_number): Likewise.
3984 (compute_regs_asm_clobbered): Likewise.
3985 (build_insn_chain): Likewise.
3986 (find_moveable_pseudos): Likewise, also locals "def_insn",
3987 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3988 to rtx_insn **. Add a checked cast when assigning from
3989 "closest_use" into closest_uses array in a region where we know
3990 it's a non-NULL insn.
3991 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3992 to rtx_insn *.
3993 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3994 "last_interesting_insn", "uin".
3995 (move_unallocated_pseudos): Likewise for locals "def_insn",
3996 "move_insn", "newinsn".
3997
3998 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3999
4000 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4001 Strengthen locals "done_label", "do_error" from rtx to
4002 rtx_code_label *.
4003 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4004 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4005 rtx_code_label *.
4006 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4007 "done_label", "do_error" to rtx_code_label * and local "last" to
4008 rtx_insn *.
4009 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4010 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4011 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4012 "after_lopart_neg", "do_overflow", "hipart_different" to
4013 rtx_code_label * and local "last" to rtx_insn *.
4014
4015 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4016
4017 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4018 "insn" and "move_insn" from rtx to rtx_insn *.
4019
4020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4021
4022 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4023 rtx_insn *.
4024 (cheap_bb_rtx_cost_p): Likewise.
4025 (first_active_insn): Likewise for return type and local "insn".
4026 (last_active_insn): Likewise for return type and locals "insn",
4027 "head".
4028 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4029 "insn_b".
4030 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4031 "seq".
4032 (noce_try_move): Likewise for local "seq".
4033 (noce_try_store_flag): Likewise.
4034 (noce_try_store_flag_constants): Likewise.
4035 (noce_try_addcc): Likewise.
4036 (noce_try_store_flag_mask): Likewise.
4037 (noce_try_cmove): Likewise.
4038 (noce_try_minmax): Likewise.
4039 (noce_try_abs): Likewise.
4040 (noce_try_sign_mask): Likewise.
4041 (noce_try_bitop): Likewise.
4042 (noce_can_store_speculate_p): Likewise for local "insn".
4043 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4044 seq".
4045 (check_cond_move_block): Likewise for local "insn".
4046 (cond_move_convert_if_block): Likewise.
4047 (cond_move_process_if_block): Likewise for locals "seq",
4048 "loc_insn".
4049 (noce_find_if_block): Likewise for local "jump".
4050 (merge_if_block): Likewise for local "last".
4051 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4052 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4053 (block_has_only_trap): Likewise for return type and local "trap".
4054 (find_if_case_1): Likewise for local "jump".
4055 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4056 "insn".
4057
4058 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4059
4060 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4061 "last_insn", "loop_end" from rtx to rtx_insn *.
4062
4063 * hw-doloop.c (scan_loop): Likewise for local "insn".
4064 (discover_loop): Likewise for param "tail_insn".
4065 (discover_loops): Likewise for local "tail".
4066
4067 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4068 cast to rtx_insn * when assigning from an rtx local to a
4069 hwloop_info's "last_insn" field.
4070
4071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4072
4073 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4074 (add_delay_dependencies): Strengthen local "pro" from rtx to
4075 rtx_insn *.
4076 (recompute_todo_spec): Likewise.
4077 (dep_cost_1): Likewise for locals "insn", "used".
4078 (schedule_insn): Likewise for local "dbg".
4079 (schedule_insn): Likewise for locals "pro", "next".
4080 (unschedule_insns_until): Likewise for local "con".
4081 (restore_pattern): Likewise for local "next".
4082 (estimate_insn_tick): Likewise for local "pro".
4083 (resolve_dependencies): Likewise for local "next".
4084 (fix_inter_tick): Likewise.
4085 (fix_tick_ready): Likewise for local "pro".
4086 (add_to_speculative_block): Likewise for locals "check", "twin",
4087 "pro".
4088 (sched_extend_bb): Likewise for locals "end", "insn".
4089 (init_before_recovery): Likewise for local "x".
4090 (sched_create_recovery_block): Likewise for local "barrier".
4091 (create_check_block_twin): Likewise for local "pro".
4092 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4093 "consumer".
4094 (unlink_bb_notes): Update for change to type of bb_header.
4095 Strengthen locals "prev", "label", "note", "next" from rtx to
4096 rtx_insn *.
4097 (clear_priorities): Likewise for local "pro".
4098
4099 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4100
4101 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4102 rtx_insn *.
4103 (test_insn): Likewise for this global.
4104 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4105 const rtx_insn *.
4106 (oprs_anticipatable_p): Likewise.
4107 (oprs_available_p): Likewise.
4108 (insert_expr_in_table): Strengthen param "insn" from rtx to
4109 rtx_insn *.
4110 (hash_scan_set): Likewise.
4111 (hash_scan_clobber): Likewise.
4112 (hash_scan_call): Likewise.
4113 (hash_scan_insn): Likewise.
4114 (compute_hash_table_work): Likewise for local "insn".
4115 (process_insert_insn): Likewise for return type and local "pat".
4116 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4117 "pat", "pat_end", "maybe_cc0_setter".
4118 (pre_edge_insert): Likewise for local "insn".
4119 (pre_insert_copy_insn): Likewise for param "insn".
4120 (pre_insert_copies): Likewise for local "insn".
4121 (struct set_data): Likewise for field "insn".
4122 (single_set_gcse): Likewise for param "insn".
4123 (gcse_emit_move_after): Likewise.
4124 (pre_delete): Likewise for local "insn".
4125 (update_bb_reg_pressure): Likewise for param "from" and local
4126 "insn".
4127 (should_hoist_expr_to_dom): Likewise for param "from".
4128 (hoist_code): Likewise for local "insn".
4129 (get_pressure_class_and_nregs): Likewise for param "insn".
4130 (calculate_bb_reg_pressure): Likewise for local "insn".
4131 (compute_ld_motion_mems): Likewise.
4132
4133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4134
4135 * genpeep.c (main): Rename param back from "uncast_ins1" to
4136 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4137 checked cast.
4138
4139 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4140
4141 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4142
4143 PR target/62195
4144 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4145 documentation to state it is only for VSX operations.
4146
4147 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4148 constraint only active if VSX.
4149
4150 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4151 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4152 (lfiwzx): Likewise.
4153
4154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4155
4156 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4157 Strengthen local "insn" from rtx to rtx_insn *.
4158 (use_killed_between): Likewise for param "target_insn".
4159 (all_uses_available_at): Likewise for param "target_insn" and
4160 local "next".
4161 (update_df_init): Likewise for params "def_insn", "insn".
4162 (update_df): Likewise for param "insn".
4163 (try_fwprop_subst): Likewise for param "def_insn" and local
4164 "insn".
4165 (free_load_extend): Likewise for param "insn".
4166 (forward_propagate_subreg): Likewise for param "def_insn" and
4167 local "use_insn".
4168 (forward_propagate_asm): Likewise for param "def_insn" and local
4169 "use_insn".
4170 (forward_propagate_and_simplify): Likewise for param "def_insn"
4171 and local "use_insn".
4172 (forward_propagate_into): Likewise for locals "def_insn" and
4173 "use_insn".
4174
4175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4176
4177 * function.c (emit_initial_value_sets): Strengthen local "seq"
4178 from rtx to rtx_insn *.
4179 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4180 local "seq".
4181 (instantiate_virtual_regs): Likewise for local "insn".
4182 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4183 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4184 (expand_function_end): Likewise for locals "insn" and "seq".
4185 (epilogue_done): Likewise for local "insn".
4186 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4187 "last", "trial".
4188 (reposition_prologue_and_epilogue_notes): Likewise for locals
4189 "insn", "last", "note", "first".
4190 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4191 (pass_match_asm_constraints::execute): Likewise for local "insn".
4192
4193 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4194
4195 * output.h (final_scan_insn): Strengthen return type from rtx to
4196 rtx_insn *.
4197 (final_forward_branch_p): Likewise for param.
4198 (current_output_insn): Likewise for this global.
4199
4200 * final.c (rtx debug_insn): Likewise for this variable.
4201 (current_output_insn): Likewise.
4202 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4203 adding "insn" back in as an rtx_insn * with a checked cast, so
4204 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4205 first param.
4206 (compute_alignments): Strengthen local "label" from rtx to
4207 rtx_insn *.
4208 (shorten_branches): Rename param from "first" to "uncast_first",
4209 introducing a new local rtx_insn * "first" using a checked cast to
4210 effectively strengthen "first" from rtx to rtx_insn * without
4211 affecting the type signature. Strengthen locals "insn", "seq",
4212 "next", "label" from rtx to rtx_insn *.
4213 (change_scope): Strengthen param "orig_insn" and local "insn" from
4214 rtx to rtx_insn *.
4215 (final_start_function): Rename param from "first" to "uncast_first",
4216 introducing a new local rtx_insn * "first" using a checked cast to
4217 effectively strengthen "first" from rtx to rtx_insn * without
4218 affecting the type signature. Strengthen local "insn" from rtx to
4219 rtx_insn *.
4220 (dump_basic_block_info): Strengthen param "insn" from rtx to
4221 rtx_insn *.
4222 (final): Rename param from "first" to "uncast_first",
4223 introducing a new local rtx_insn * "first" using a checked cast to
4224 effectively strengthen "first" from rtx to rtx_insn * without
4225 affecting the type signature. Strengthen locals "insn", "next"
4226 from rtx to rtx_insn *.
4227 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4228 rtx_insn *.
4229 (call_from_call_insn): Strengthen param "insn" from rtx to
4230 rtx_call_insn *.
4231 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4232 introducing a new local rtx_insn * "insn" using a checked cast to
4233 effectively strengthen "insn" from rtx to rtx_insn * without
4234 affecting the type signature. Strengthen return type and locals
4235 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4236 now-redundant checked cast to rtx_insn * from both invocations of
4237 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4238 introducing a local "call_insn" for use when invoking
4239 call_from_call_insn.
4240 (notice_source_line): Strengthen param "insn" from rtx to
4241 rtx_insn *.
4242 (leaf_function_p): Likewise for local "insn".
4243 (final_forward_branch_p): Likewise.
4244 (leaf_renumber_regs): Likewise for param "first".
4245 (rest_of_clean_state): Likewise for locals "insn" and "next".
4246 (self_recursive_call_p): Likewise for param "insn".
4247 (collect_fn_hard_reg_usage): Likewise for local "insn".
4248 (get_call_fndecl): Likewise for param "insn".
4249 (get_call_cgraph_rtl_info): Likewise.
4250 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4251 introducing a new local rtx_insn * "insn" using a checked cast to
4252 effectively strengthen "insn" from rtx to rtx_insn * without
4253 affecting the type signature.
4254
4255 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4256 cast when assigning from param "insn" to current_output_insn.
4257 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4258 so that we can assign it back to current_output_insn.
4259
4260 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4261
4262 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4263 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4264 atmxt540s and atmxt540sreva devices.
4265 * config/avr/avr-tables.opt: Regenerate.
4266 * config/avr/t-multilib: Regenerate.
4267 * doc/avr-mmcu.texi: Regenerate.
4268
4269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4270
4271 * expr.c (convert_move): Strengthen local "insns" from rtx to
4272 rtx_insn *.
4273 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4274 "top_label" from rtx to rtx_code_label *.
4275 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4276 rtx_insn *.
4277 (emit_single_push_insn): Likewise for locals "prev", "last".
4278 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4279 to rtx_code_label *.
4280 (store_constructor): Likewise for locals "loop_start", "loop_end".
4281 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4282 rtx_insn *.
4283 (expand_expr_real_2): Likewise.
4284 (expand_expr_real_1): Strengthen local "label" from rtx to
4285 rtx_code_label *.
4286
4287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4288
4289 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4290 from rtx to rtx_insn *.
4291 (store_bit_field_1): Likewise.
4292 (extract_bit_field_1): Likewise.
4293 (expand_mult_const): Likewise for local "insns".
4294 (expmed_mult_highpart): Strengthen local "label" from rtx to
4295 rtx_code_label *.
4296 (expand_smod_pow2): Likewise.
4297 (expand_sdiv_pow2): Likewise.
4298 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4299 rtx_insn *. Strengthen locals "label", "label1", "label2",
4300 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4301 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4302 (emit_store_flag): Likewise.
4303 (emit_store_flag_force): Strengthen local "label" from rtx to
4304 rtx_code_label *.
4305 (do_cmp_and_jump): Likewise for param "label".
4306
4307 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4308
4309 * explow.c (force_reg): Strengthen local "insn" from rtx to
4310 rtx_insn *.
4311 (adjust_stack_1): Likewise.
4312 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4313 "final_label", "available_label", "space_available" from rtx to
4314 rtx_code_label *.
4315 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4316 (anti_adjust_stack_and_probe): Likewise.
4317
4318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4319
4320 * except.h (sjlj_emit_function_exit_after): Strengthen param
4321 "after" from rtx to rtx_insn *. This is only called with
4322 result of get_last_insn (in function.c) so type-change should be
4323 self-contained.
4324
4325 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4326 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4327 to rtx_insn *. These fields are only used from except.c so this
4328 type-change should be self-contained to this patch.
4329
4330 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4331 local "last" from rtx to rtx_insn *.
4332 (dw2_build_landing_pads): Likewise for local "seq".
4333 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4334 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4335 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4336 rtx to rtx_insn *.
4337 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4338 to rtx_insn *.
4339 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4340 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4341 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4342 referring to an insn. Strengthen local "dispatch_label" from
4343 rtx to rtx_code_label *.
4344 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4345 rtx_insn *.
4346 (expand_eh_return): Strengthen local "around_label" from
4347 rtx to rtx_code_label *.
4348 (convert_to_eh_region_ranges): Strengthen locals "iter",
4349 "last_action_insn", "first_no_action_insn",
4350 "first_no_action_insn_before_switch",
4351 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4352
4353 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4354
4355 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4356 from rtx to rtx_insn *.
4357 (cached_next_real_insn): Likewise.
4358 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4359 working with insns.
4360 (dwarf2out_var_location): Strengthen locals "next_real",
4361 "next_note", "expected_next_loc_note", "last_start", "insn" from
4362 rtx to rtx_insn *.
4363
4364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4365
4366 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4367 from rtx to rtx_insn *.
4368 (create_pseudo_cfg): Likewise for local "insn".
4369
4370 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4371
4372 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4373 from rtx to rtx_insn *.
4374 (df_bb_regno_last_def_find): Likewise.
4375
4376 * df-problems.c (df_rd_bb_local_compute): Likewise.
4377 (df_lr_bb_local_compute): Likewise.
4378 (df_live_bb_local_compute): Likewise.
4379 (df_chain_remove_problem): Likewise.
4380 (df_chain_create_bb): Likewise.
4381 (df_word_lr_bb_local_compute): Likewise.
4382 (df_remove_dead_eq_notes): Likewise for param "insn".
4383 (df_note_bb_compute): Likewise for local "insn".
4384 (simulate_backwards_to_point): Likewise.
4385 (df_md_bb_local_compute): Likewise.
4386
4387 * df-scan.c (df_scan_free_bb_info): Likewise.
4388 (df_scan_start_dump): Likewise.
4389 (df_scan_start_block): Likewise.
4390 (df_install_ref_incremental): Likewise for local "insn".
4391 (df_insn_rescan_all): Likewise.
4392 (df_reorganize_refs_by_reg_by_insn): Likewise.
4393 (df_reorganize_refs_by_insn_bb): Likewise.
4394 (df_recompute_luids): Likewise.
4395 (df_bb_refs_record): Likewise.
4396 (df_update_entry_exit_and_calls): Likewise.
4397 (df_bb_verify): Likewise.
4398
4399 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4400
4401 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4402 "first_note" from rtx to rtx_insn *.
4403 (get_node_of_insn): Likewise for param 2 "insn".
4404 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4405
4406 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4407 rtx_insn *.
4408 (mem_write_insn_p): Likewise.
4409 (mem_access_insn_p): Likewise.
4410 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4411 (def_has_ccmode_p): Likewise for param "insn".
4412 (add_cross_iteration_register_deps): Likewise for locals
4413 "def_insn" and "use_insn".
4414 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4415 (build_intra_loop_deps): Likewise for local "src_insn".
4416 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4417 to rtx_insn *.
4418 (get_node_of_insn): Likewise for param "insn".
4419
4420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4421
4422 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4423 (deletable_insn_p): Strengthen param "insn" from rtx to
4424 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4425 find_call_stack_args, since this is guarded by CALL_P (insn).
4426 (marked_insn_p): Strengthen param "insn" from rtx to
4427 rtx_insn *.
4428 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4429 invoking find_call_stack_args, since this is guarded by
4430 CALL_P (insn).
4431 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4432 rtx_insn *; we know this is an insn since this was called by
4433 mark_nonreg_stores.
4434 (mark_nonreg_stores_2): Likewise.
4435 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4436 rtx_insn *.
4437 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4438 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4439 to rtx_insn *.
4440 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4441 from rtx to rtx_insn *.
4442 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4443 "next", "ref_insn".
4444 (delete_unmarked_insns): Likewise for locals "insn", "next".
4445 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4446 (mark_reg_dependencies): Likewise for param "insn".
4447 (rest_of_handle_ud_dce): Likewise for local "insn".
4448 (word_dce_process_block): Likewise.
4449 (dce_process_block): Likewise.
4450
4451 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4452
4453 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4454 from rtx to rtx_insn *.
4455 (struct change_cc_mode_args): Likewise for field "insn".
4456 (this_insn): Strengthen from rtx to rtx_insn *.
4457 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4458 with insn.
4459 (validate_canon_reg): Strengthen param "insn" from rtx to
4460 rtx_insn *.
4461 (canon_reg): Likewise.
4462 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4463 dealing with insn.
4464 (record_jump_equiv): Strengthen param "insn" from rtx to
4465 rtx_insn *.
4466 (try_back_substitute_reg): Likewise, also for locals "prev",
4467 "bb_head".
4468 (find_sets_in_insn): Likewise for param "insn".
4469 (canonicalize_insn): Likewise.
4470 (cse_insn): Likewise. Add a checked cast.
4471 (invalidate_from_clobbers): Likewise for param "insn".
4472 (invalidate_from_sets_and_clobbers): Likewise.
4473 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4474 dealing with insn.
4475 (cse_prescan_path): Strengthen local "insn" from rtx to
4476 rtx_insn *.
4477 (cse_extended_basic_block): Likewise for locals "insn" and
4478 "prev_insn".
4479 (cse_main): Likewise for param "f".
4480 (check_for_label_ref): Likewise for local "insn".
4481 (set_live_p): Likewise for second param ("insn").
4482 (insn_live_p): Likewise for first param ("insn") and for local
4483 "next".
4484 (cse_change_cc_mode_insn): Likewise for first param "insn".
4485 (cse_change_cc_mode_insns): Likewise for first and second params
4486 "start" and "end".
4487 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4488 and "end".
4489 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4490 "cc_src_insn".
4491
4492 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4494 Anna Tikhonova <anna.tikhonova@intel.com>
4495 Ilya Tocar <ilya.tocar@intel.com>
4496 Andrey Turetskiy <andrey.turetskiy@intel.com>
4497 Ilya Verbin <ilya.verbin@intel.com>
4498 Kirill Yukhin <kirill.yukhin@intel.com>
4499 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4500
4501 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4502 New.
4503 * config/i386/sse.md
4504 (define_mode_iterator VI248_AVX2): Delete.
4505 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4506 (define_mode_iterator VI48_AVX2): Ditto.
4507 (define_insn <shift_insn><mode>3): Delete.
4508 (define_insn "<shift_insn><mode>3<mask_name>" with
4509 VI2_AVX2_AVX512BW): New.
4510 (define_insn "<shift_insn><mode>3<mask_name>" with
4511 VI48_AVX2): Ditto.
4512
4513 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4514 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4515 Anna Tikhonova <anna.tikhonova@intel.com>
4516 Ilya Tocar <ilya.tocar@intel.com>
4517 Andrey Turetskiy <andrey.turetskiy@intel.com>
4518 Ilya Verbin <ilya.verbin@intel.com>
4519 Kirill Yukhin <kirill.yukhin@intel.com>
4520 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4521
4522 * config/i386/sse.md
4523 (define_mode_iterator VI4F_BRCST32x2): New.
4524 (define_mode_attr 64x2_mode): Ditto.
4525 (define_mode_attr 32x2mode): Ditto.
4526 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4527 with VI4F_BRCST32x2): Ditto.
4528 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4529 with V16FI mode iterator): Ditto.
4530 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4531 with V16FI): Ditto.
4532 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4533 with VI8F_BRCST64x2): Ditto.
4534
4535 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4537 Anna Tikhonova <anna.tikhonova@intel.com>
4538 Ilya Tocar <ilya.tocar@intel.com>
4539 Andrey Turetskiy <andrey.turetskiy@intel.com>
4540 Ilya Verbin <ilya.verbin@intel.com>
4541 Kirill Yukhin <kirill.yukhin@intel.com>
4542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4543
4544 * config/i386/sse.md
4545 (define_mode_iterator VI8_AVX512VL): New.
4546 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4547
4548 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4549
4550 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4551 (define_mode_iterator V48_AVX512VL): New.
4552 (define_mode_iterator V12_AVX512VL): Ditto.
4553 (define_insn <avx512>_load<mode>_mask): Split into two similar
4554 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4555 Refactor output template.
4556 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4557
4558 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4559
4560 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4561 rtx_insn *.
4562 (reg_available_p): Likewise for param "insn".
4563 (insert_set_in_table): Likewise.
4564 (hash_scan_set): Likewise.
4565 (hash_scan_insn): Likewise.
4566 (make_set_regs_unavailable): Likewise.
4567 (compute_hash_table_work): Likewise for local "insn".
4568 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4569 const rtx_insn *.
4570 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4571 (try_replace_reg): Likewise.
4572 (find_avail_set): Likewise.
4573 (cprop_jump): Likewise for params "setcc", "jump".
4574 (constprop_register): Likewise for param "insn".
4575 (cprop_insn): Likewise.
4576 (do_local_cprop): Likewise.
4577 (local_cprop_pass): Likewise for local "insn".
4578 (bypass_block): Likewise for params "setcc" and "jump".
4579 (bypass_conditional_jumps): Likewise for locals "setcc" and
4580 "insn".
4581 (one_cprop_pass): Likewise for local "insn".
4582
4583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4584
4585 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4586 from rtx to rtx_insn *.
4587 (struct comparison): Likewise, also for field "prev_clobber".
4588 (conforming_compare): Likewise for param "insn".
4589 (arithmetic_flags_clobber_p): Likewise.
4590 (find_flags_uses_in_insn): Likewise.
4591 (find_comparison_dom_walker::before_dom_children): Likewise for
4592 locals "insn", "next", "last_clobber".
4593 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4594
4595 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4596
4597 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4598 "insn" from rtx to rtx_insn *.
4599 (single_set_for_csa): Likewise for param "insn".
4600 (record_one_stack_ref): Likewise.
4601 (try_apply_stack_adjustment): Likewise.
4602 (struct record_stack_refs_data): Likewise for field "insn".
4603 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4604 (prev_active_insn_bb): Likewise for return type and param "insn".
4605 (next_active_insn_bb): Likewise.
4606 (force_move_args_size_note): Likewise for params "prev" and "last"
4607 and locals "test", "next_candidate", "prev_candidate".
4608 (combine_stack_adjustments_for_block): Strengthen locals
4609 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4610 rtx_insn *.
4611
4612 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4613
4614 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4615 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4616 (subst_insn): Likewise for this variable.
4617 (added_links_insn): Likewise.
4618 (struct insn_link): Likewise for field "insn".
4619 (alloc_insn_link): Likewise for param "insn".
4620 (struct undobuf): Likewise for field "other_insn".
4621 (find_single_use): Likewise for param "insn" and local "next".
4622 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4623 (delete_noop_moves): Likewise for locals "insn", "next".
4624 (create_log_links): Likewise for locals "insn", "use_insn".
4625 Strengthen local "next_use" from rtx * to rtx_insn **.
4626 (insn_a_feeds_b): Likewise for params "a", "b".
4627 (combine_instructions): Likewise for param "f" and locals "insn",
4628 "next", "prev", "first", "last_combined_insn", "link", "link1",
4629 "temp". Replace use of NULL_RTX with NULL when referring to
4630 insns.
4631 (setup_incoming_promotions): Likewise for param "first"
4632 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4633 (can_combine_p): Likewise for params "insn", "i3", "pred",
4634 "pred2", "succ", "succ2" and for local "p".
4635 (combinable_i3pat): Likewise for param "i3".
4636 (cant_combine_insn_p): Likewise for param "insn".
4637 (likely_spilled_retval_p): Likewise.
4638 (adjust_for_new_dest): Likewise.
4639 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4640 (try_combine): Likewise for return type and for params "i3", "i2",
4641 "i1", "i0", "last_combined_insn", and for locals "insn",
4642 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4643 "i0_insn". Eliminate local "tem" in favor of new locals
4644 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4645 checked cast for now to rtx_insn * on the return type of
4646 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4647 insns.
4648 (find_split_point): Strengthen param "insn" from rtx to
4649 rtx_insn *.
4650 (simplify_set): Likewise for local "other_insn".
4651 (recog_for_combine): Likewise for param "insn".
4652 (record_value_for_reg): Likewise.
4653 (record_dead_and_set_regs_1): Likewise for local
4654 "record_dead_insn".
4655 (record_dead_and_set_regs): Likewise for param "insn".
4656 (record_promoted_value): Likewise.
4657 (check_promoted_subreg): Likewise.
4658 (get_last_value_validate): Likewise.
4659 (reg_dead_at_p): Likewise.
4660 (move_deaths): Likewise for param "to_insn".
4661 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4662 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4663 in favor of new locals "tem_note" and "tem_insn", the latter being
4664 an rtx_insn *.
4665 (distribute_links): Strengthen locals "place", "insn" from rtx to
4666 rtx_insn *.
4667
4668 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4669
4670 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4671 than a const_rtx.
4672 (can_delete_label_p): Require a const rtx_code_label * rather than
4673 a const_rtx.
4674 (delete_insn): Add checked cast to rtx_code_label * when we know
4675 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4676 rtx to rtx_insn *.
4677 (delete_insn_chain): Strengthen locals "prev" and "current" from
4678 rtx to rtx_insn *. Add a checked cast when assigning from
4679 "finish" (strengthening the params will come later). Add a
4680 checked cast to rtx_note * in region where we know
4681 NOTE_P (current).
4682 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4683 rtx_insn *.
4684 (compute_bb_for_insn): Likewise.
4685 (free_bb_for_insn): Likewise for local "insn".
4686 (compute_bb_for_insn): Likewise.
4687 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4688 local "insn" from rtx to rtx_insn *
4689 (flow_active_insn_p): Require a const rtx_insn * rather than a
4690 const_rtx.
4691 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4692 rtx_insn *.
4693 (can_fallthru): Likewise for locals "insn" and "insn2".
4694 (bb_note): Likewise for local "note".
4695 (first_insn_after_basic_block_note): Likewise for local "note" and
4696 for return type.
4697 (rtl_split_block): Likewise for locals "insn" and "next".
4698 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4699 "end".
4700 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4701 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4702 "prev", "tmp".
4703 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4704 them), "kill_from", "barrier", "new_insn".
4705 (patch_jump_insn): Likewise for params "insn", "old_label".
4706 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4707 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4708 "old_label", "new_label".
4709 (rtl_tidy_fallthru_edge): Likewise for local "q".
4710 (rtl_split_edge): Likewise for locals "before", "last".
4711 (commit_one_edge_insertion): Likewise for locals "before",
4712 "after", "insns", "tmp", "last", adding a checked cast where
4713 currently necessary.
4714 (commit_edge_insertions): Likewise.
4715 (rtl_dump_bb): Likewise for locals "insn", "last".
4716 (print_rtl_with_bb): Likewise for local "x".
4717 (rtl_verify_bb_insns): Likewise for local "x".
4718 (rtl_verify_bb_pointers): Likewise for local "insn".
4719 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4720 "head", "end".
4721 (rtl_verify_fallthru): Likewise for local "insn".
4722 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4723 (purge_dead_edges): Likewise for local "insn".
4724 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4725 (skip_insns_after_block): Likewise for return type and for locals
4726 "insn", "last_insn", "next_head", "prev".
4727 (record_effective_endpoints): Likewise for locals "next_insn",
4728 "insn", "end".
4729 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4730 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4731 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4732 (duplicate_insn_chain): For now, add checked cast from rtx to
4733 rtx_insn * when returning insn.
4734 (cfg_layout_duplicate_bb): Likewise for local "insn".
4735 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4736 "prev", "remaints".
4737 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4738 (rtl_block_empty_p): Likewise.
4739 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4740 "split_point", "last".
4741 (rtl_block_ends_with_call_p): Likewise for local "insn".
4742 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4743 const rtx_insn *.
4744 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4745 "split_at_insn" from rtx to rtx_insn *.
4746 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4747 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4748 to const rtx_insn *.
4749 (rtl_account_profile_record): Likewise.
4750
4751 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4752
4753 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4754 rtx to rtx_insn *.
4755 (average_num_loop_insns): Likewise.
4756 (init_set_costs): Likewise for local "seq".
4757 (seq_cost): Likewise for param "seq", from const_rtx to const
4758 rtx_insn *.
4759
4760 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4761
4762 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4763 rtx to rtx_insn *.
4764
4765 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4766
4767 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4768 "f1" and "f2" from rtx * to rtx_insn **.
4769 (flow_find_head_matching_sequence): Likewise.
4770
4771 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4772 "cbranch_insn" from rtx to rtx_insn *.
4773 (thread_jump): Likewise for local "insn".
4774 (try_forward_edges): Likewise for local "last".
4775 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4776 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4777 "real_b_end".
4778 (can_replace_by): Likewise for params "i1", "i2".
4779 (old_insns_match_p): Likewise.
4780 (merge_notes): Likewise.
4781 (walk_to_nondebug_insn): Likewise for param "i1".
4782 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4783 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4784 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4785 (flow_find_head_matching_sequence): Strengthen params "f1" and
4786 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4787 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4788 rtx_insn *.
4789 (outgoing_edges_match): Likewise for locals "last1", "last2".
4790 (try_crossjump_to_edge): Likewise for local "insn".
4791 Replace call to for_each_rtx with for_each_rtx_in_insn.
4792
4793 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4794 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4795 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4796 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4797 (try_optimize_cfg): Strengthen local "last" from rtx to
4798 rtx_insn *.
4799 (delete_dead_jumptables): Likewise for locals "insn", "next",
4800 "label".
4801
4802 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4803 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4804 "rtx else_first_tail", to reflect the basic-block.h changes above.
4805
4806 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4807
4808 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4809 rtx_insn *.
4810 (purge_dead_tablejump_edges): Likewise.
4811 (find_bb_boundaries): Likewise for locals "insn", "end",
4812 "flow_transfer_insn".
4813
4814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4815
4816 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4817 "ins" and "prev" from rtx to rtx_insn *.
4818
4819 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4820
4821 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4822 rtx_insn *.
4823 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4824 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4825 "scan_start".
4826 (load_register_parameters): Likewise for local "before_arg".
4827 (check_sibcall_argument_overlap): Likewise for param "insn".
4828 (expand_call): Likewise for locals "normal_call_insns",
4829 "tail_call_insns", "insns", "before_call", "after_args",
4830 "before_arg", "last", "prev". Strengthen one of the "last" from
4831 rtx to rtx_call_insn *.
4832 (fixup_tail_calls): Strengthen local "insn" from rtx to
4833 rtx_insn *.
4834 (emit_library_call_value_1): Likewise for locals "before_call" and
4835 "last".
4836
4837 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4838
4839 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4840 and "last" from rtx to rtx_insn *.
4841 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4842 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4843 rtx_call_insn *.
4844 (expand_errno_check): Strengthen local "lab" from rtx to
4845 rtx_code_label *.
4846 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4847 rtx_insn *.
4848 (expand_builtin_mathfn_2): Likewise.
4849 (expand_builtin_mathfn_ternary): Likewise.
4850 (expand_builtin_mathfn_3): Likewise.
4851 (expand_builtin_interclass_mathfn): Likewise for local "last".
4852 (expand_builtin_int_roundingfn): Likewise for local "insns".
4853 (expand_builtin_int_roundingfn_2): Likewise.
4854 (expand_builtin_strlen): Likewise for local "before_strlen".
4855 (expand_builtin_strncmp): Likewise for local "seq".
4856 (expand_builtin_signbit): Likewise for local "last".
4857 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4858 from rtx to rtx_code_label *.
4859 (expand_stack_restore): Strengthen local "prev" from rtx to
4860 rtx_insn *.
4861
4862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4863
4864 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4865 to rtx_insn *.
4866 (struct btr_def_s): Likewise.
4867 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4868 const rtx_insn *.
4869 (add_btr_def): Likewise.
4870 (new_btr_user): Likewise.
4871 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4872 rtx to rtx_insn *.
4873 (link_btr_uses): Likewise.
4874 (move_btr_def): Likewise for locals "insp", "old_insn",
4875 "new_insn". Add checked cast to rtx_insn * for now on result of
4876 gen_move_insn.
4877 (can_move_up): Strengthen param "insn" from const_rtx to
4878 const rtx_insn *.
4879
4880 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4881
4882 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4883 rtx_insn *.
4884 (get_uncond_jump_length): Likewise for locals "label", "jump".
4885 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4886 "jump", "insn".
4887 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4888 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4889 (find_jump_block): Likewise for local "insn".
4890 (fix_crossing_conditional_branches): Likewise for locals
4891 "old_jump", "new_jump".
4892 (fix_crossing_unconditional_branches): Likewise for locals
4893 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4894 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4895
4896 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4897
4898 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4899 rtx to rtx_insn *.
4900 (struct mem_insn): Likewise for field "insn".
4901 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4902 (reg_next_inc_use): Likewise.
4903 (reg_next_def): Likewise.
4904 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4905 from rtx to rtx_insn *.
4906 (move_insn_before): Likewise for param "next_insn" and local "insns".
4907 (attempt_change): Likewise for local "mov_insn".
4908 (try_merge): Likewise for param "last_insn".
4909 (get_next_ref): Likewise for return type and local "insn".
4910 Strengthen param "next_array" from rtx * to rtx_insn **.
4911 (parse_add_or_inc): Strengthen param "insn" from rtx to
4912 rtx_insn *.
4913 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4914 the latter).
4915 (merge_in_block): Likewise for locals "insn", "curr",
4916 "other_insn".
4917 (pass_inc_dec::execute): Update allocations of the arrays to
4918 reflect the stronger types.
4919
4920 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4921
4922 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4923 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4924 from rtx to rtx_code_label *.
4925
4926 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4927
4928 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4929 to rtx_insn *.
4930
4931 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4932
4933 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4934 generated a warning and prevented bootstrapping the compiler.
4935
4936 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4937
4938 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4939 rtx_insn *.
4940
4941 * jump.c (delete_related_insns): Likewise, also for locals "next"
4942 and "prev".
4943
4944 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4945
4946 * genautomata.c (output_internal_insn_latency_func): When writing
4947 the function "internal_insn_latency" to insn-automata.c,
4948 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4949 allowing the optional guard function of (define_bypass) clauses to
4950 expect a pair of rtx_insn *, rather than a pair of rtx.
4951 (output_insn_latency_func): When writing the function
4952 "insn_latency", add an "uncast_" prefix to params "insn" and
4953 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4954 using checked casts from the params, thus enabling the above
4955 change to the generated "internal_insn_latency" function.
4956
4957 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4958
4959 PR tree-optimization/62091
4960 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4961 handle correctly arrays.
4962 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4963 inheritance binfos.
4964 (record_known_type): Walk into inner type.
4965 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4966 condition on no type changes.
4967
4968 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4969
4970 * genattrtab.c (write_attr_get): Within the generated get_attr_
4971 functions, rename param "insn" to "uncast_insn" and reintroduce
4972 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4973 is an rtx_insn * within insn-attrtab.c
4974
4975 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4976
4977 * output.h (peephole): Strengthen return type from rtx to
4978 rtx_insn *.
4979 * rtl.h (delete_for_peephole): Likewise for both params.
4980 * genpeep.c (main): In generated "peephole" function, strengthen
4981 return type and local "insn" from rtx to rtx_insn *. For now,
4982 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4983 rtx_insn *, with a checked cast.
4984 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4985 locals "insn", "next", "prev" from rtx to rtx_insn *.
4986
4987 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4988
4989 PR tree-optimization/62112
4990 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4991 * gimple-iterator.h (gsi_replace): Return bool.
4992 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4993 moved from ref_may_alias_global_p.
4994 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4995 New overloads.
4996 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4997 (stmt_kills_ref_p_1): Rename...
4998 (stmt_kills_ref_p): ... to this.
4999 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5000 stmt_kills_ref_p): Declare.
5001 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5002 Move the self-assignment case...
5003 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5004
5005 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5006
5007 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5008
5009 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5010 "after". For now, don't strengthen param "trial", which requires
5011 adding checked casts when returning it.
5012
5013 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5014
5015 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5016 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5017 "var_location" hook from rtx to rtx_insn *.
5018 (debug_nothing_rtx): Delete in favor of...
5019 (debug_nothing_rtx_code_label): New prototype.
5020 (debug_nothing_rtx_rtx): Delete unused prototype.
5021 (debug_nothing_rtx_insn): New prototype.
5022
5023 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5024 invoking debug_hooks->var_location (in two places, one in a NOTE
5025 case of a switch statement, the other guarded by a CALL_P
5026 conditional. Add checked cast to rtx_code_label * when invoking
5027 debug_hooks->label (within CODE_LABEL case of switch statement).
5028
5029 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5030 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5031 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5032 (xcoff_debug_hooks): Likewise.
5033 * debug.c (do_nothing_debug_hooks): Likewise.
5034 (debug_nothing_rtx): Delete in favor of...
5035 (debug_nothing_rtx_insn): New function.
5036 (debug_nothing_rtx_rtx): Delete unused function.
5037 (debug_nothing_rtx_code_label): New function.
5038 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5039 debug_nothing_rtx to debug_nothing_rtx_code_label.
5040 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5041 to rtx_insn *.
5042 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5043 debug_nothing_rtx to debug_nothing_rtx_insn.
5044 (sdbout_label): Strengthen param "insn" from rtx to
5045 rtx_code_label *.
5046 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5047 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5048 "var_location" hook from debug_nothing_rtx to
5049 debug_nothing_rtx_insn.
5050
5051 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5052
5053 * recog.h (insn_output_fn): Update this function typedef to match
5054 the changes below to the generated output functions, strengthening
5055 the 2nd param from rtx to rtx_insn *.
5056
5057 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5058 insn when invoking an output function, to match the new signature
5059 of insn_output_fn with a stronger second param.
5060
5061 * genconditions.c (write_header): In the generated code for
5062 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5063 to match the other changes in this patch.
5064
5065 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5066 the generated "gen_" functions from rtx to rtx_insn * within their
5067 implementations.
5068
5069 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5070 the subfunctions within the generated "recog_", "split", "peephole2"
5071 function trees from rtx to rtx_insn *. For now, the top-level
5072 generated functions ("recog", "split", "peephole2") continue to
5073 take a plain rtx for "insn", to avoid introducing dependencies on
5074 other patches. Rename this 2nd param from "insn" to
5075 "uncast_insn", and reintroduce "insn" as a local variable of type
5076 rtx_insn *, initialized at the top of the generated function with
5077 a checked cast on "uncast_insn".
5078 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5079 the generated "gen_" functions from rtx to rtx_insn * within their
5080 prototypes.
5081
5082 * genoutput.c (process_template): Strengthen the 2nd param within
5083 the generated "output_" functions "insn" from rtx to rtx_insn *.
5084
5085 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5086
5087 * tree-profile.c (tree_profiling): Skip external functions
5088 when doing coverage instrumentation.
5089 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5090
5091 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5092
5093 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5094 (vec_mergee): Likewise.
5095 (vec_mergeo): Likewise.
5096 (vec_cntlz): Likewise.
5097 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5098 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5099 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5100 VMRGEW, and VMRGOW.
5101 * doc/extend.texi: Document various forms of vec_cpsgn,
5102 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5103 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5104 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5105 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5106 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5107
5108 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5109
5110 * config/rs6000/rs6000.c (context.h): New include.
5111 (tree-pass.h): Likewise.
5112 (make_pass_analyze_swaps): New decl.
5113 (rs6000_option_override): Register pass_analyze_swaps.
5114 (swap_web_entry): New subsclass of web_entry_base (df.h).
5115 (special_handling_values): New enum.
5116 (union_defs): New function.
5117 (union_uses): Likewise.
5118 (insn_is_load_p): Likewise.
5119 (insn_is_store_p): Likewise.
5120 (insn_is_swap_p): Likewise.
5121 (rtx_is_swappable_p): Likewise.
5122 (insn_is_swappable_p): Likewise.
5123 (chain_purpose): New enum.
5124 (chain_contains_only_swaps): New function.
5125 (mark_swaps_for_removal): Likewise.
5126 (swap_const_vector_halves): Likewise.
5127 (adjust_subreg_index): Likewise.
5128 (permute_load): Likewise.
5129 (permute_store): Likewise.
5130 (handle_special_swappables): Likewise.
5131 (replace_swap_with_copy): Likewise.
5132 (dump_swap_insn_table): Likewise.
5133 (rs6000_analyze_swaps): Likewise.
5134 (pass_data_analyze_swaps): New pass_data.
5135 (pass_analyze_swaps): New rtl_opt_pass.
5136 (make_pass_analyze_swaps): New function.
5137 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5138
5139 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5140
5141 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5142 type from rtx to rtx_insn *.
5143 (create_copy_of_insn_rtx): Likewise.
5144 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5145 (create_copy_of_insn_rtx): Likewise, also for local "res".
5146
5147 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5148
5149 * rtl.h (find_first_parameter_load): Strengthen return type from
5150 rtx to rtx_insn *.
5151 * rtlanal.c (find_first_parameter_load): Strengthen return type
5152 from rtx to rtx_insn *. Add checked cast for now, to postpone
5153 strengthening the params.
5154
5155 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5156
5157 PR fortran/44054
5158 * diagnostic.c: Set default caret.
5159 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5160 line is needed.
5161 * diagnostic.h (struct diagnostic_context):
5162
5163 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5164
5165 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5166 (sel_bb_head): Strengthen return type insn_t (currently just an
5167 rtx) to rtx_insn *.
5168 (sel_bb_end): Likewise.
5169
5170 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5171 (sel_bb_head): Strengthen return type and local "head" from
5172 insn_t (currently just an rtx) to rtx_insn *.
5173 (sel_bb_end): Likewise for return type.
5174 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5175 working with insn.
5176
5177 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5178
5179 * basic-block.h (get_last_bb_insn): Strengthen return type from
5180 rtx to rtx_insn *.
5181 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5182 end".
5183
5184 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5185
5186 PR fortran/44054
5187 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5188 to here ...
5189 (diagnostic_report_diagnostic): ... from here.
5190 * toplev.c (general_init): Move code to c-family.
5191
5192 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5193
5194 * df.h (web_entry_base): Replace existing struct web_entry with a
5195 new class web_entry_base with only the predecessor member.
5196 (unionfind_root): Remove declaration and move to class member.
5197 (unionfind_union): Remove declaration and move to friend
5198 function.
5199 (union_defs): Remove declaration.
5200 * web.c (web_entry_base::unionfind_root): Modify to be member
5201 function and adjust accessors.
5202 (unionfind_union): Modify to be friend function and adjust
5203 accessors.
5204 (web_entry): New subclass of web_entry_base containing the reg
5205 member.
5206 (union_match_dups): Modify for struct -> class changes.
5207 (union_defs): Likewise.
5208 (entry_register): Likewise.
5209 (pass_web::execute): Likewise.
5210
5211 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5212
5213 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5214 builtin define __VEC_ELEMENT_REG_ORDER__.
5215
5216 2014-08-20 Martin Jambor <mjambor@suse.cz>
5217 Wei Mi <wmi@google.com>
5218
5219 PR ipa/60449
5220 PR middle-end/61776
5221 * tree-ssa-operands.c (update_stmt_operands): Remove
5222 MODIFIED_NORETURN_CALLS.
5223 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5224 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5225 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5226 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5227 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5228 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5229 (gimple_call_set_ctrl_altering): New func.
5230 (gimple_call_ctrl_altering_p): Ditto.
5231 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5232 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5233 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5234 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5235 remove MODIFIED_NORETURN_CALLS.
5236
5237 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5238
5239 * coverage.c (coverage_compute_profile_id): Return non-0;
5240 also handle symbols with unique name.
5241 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5242
5243 2014-08-20 Steve Ellcey <sellcey@mips.com>
5244
5245 PR middle-end/49191
5246 * doc/sourcebuild.texi (non_strict_align): New.
5247
5248 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5249
5250 * cgraphunit.c (ipa_passes, compile): Reshedule
5251 symtab_remove_unreachable_nodes passes; update comments.
5252 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5253 TODO_remove_functions before the pass; the functions ought to be
5254 already removed.
5255 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5256 TODO_remove_functions.
5257 * passes.c (pass_data_early_local_passes): Do not schedule function
5258 removal.
5259 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5260
5261 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5262
5263 PR c/59304
5264 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5265 before setting the option.
5266 * diagnostic.c (diagnostic_classify_diagnostic): Record
5267 command-line status.
5268
5269 2014-08-20 Richard Biener <rguenther@suse.de>
5270
5271 PR lto/62190
5272 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5273 to build uint{16,32,64}_type_node.
5274
5275 2014-08-20 Terry Guo <terry.guo@arm.com>
5276
5277 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5278 with immediate_operand.
5279
5280 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5281
5282 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5283 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5284 NULL.
5285
5286 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5287
5288 PR preprocessor/51303
5289 * incpath.c (remove_duplicates): Use cpp_warning.
5290
5291 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5292
5293 PR c/60975
5294 PR c/53063
5295 * doc/options.texi (CPP): Document it.
5296 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5297 * optc-gen.awk: Handle CPP.
5298 * opth-gen.awk: Likewise.
5299
5300 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5301
5302 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5303 rtx_insn *.
5304 (duplicate_insn_chain): Likewise.
5305 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5306 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5307 checked cast for now (until we can strengthen the params in the
5308 same way).
5309 (duplicate_insn_chain): Likewise.
5310
5311 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5312
5313 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5314 rtx_insn *.
5315 (prev_cc0_setter): Likewise.
5316
5317 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5318 rtx_insn *, adding checked casts for now as necessary.
5319 (prev_cc0_setter): Likewise.
5320
5321 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5322
5323 * expr.h (emit_move_insn): Strengthen return type from rtx to
5324 rtx_insn *.
5325 (emit_move_insn_1): Likewise.
5326 (emit_move_complex_push): Likewise.
5327 (emit_move_complex_parts): Likewise.
5328
5329 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5330 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5331 with insns.
5332 (emit_move_complex_push): Strengthen return type from rtx to
5333 rtx_insn *.
5334 (emit_move_complex): Likewise, also for local "ret".
5335 (emit_move_ccmode): Likewise.
5336 (emit_move_multi_word): Likewise for return type and locals
5337 "last_insn", "seq".
5338 (emit_move_insn_1): Likewise for return type and locals "result",
5339 "ret".
5340 (emit_move_insn): Likewise for return type and local "last_insn".
5341 (compress_float_constant): Likewise.
5342
5343 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5344
5345 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5346 from rtx to rtx_insn *.
5347
5348 * rtl.h (emit_insn_before): Likewise.
5349 (emit_insn_before_noloc): Likewise.
5350 (emit_insn_before_setloc): Likewise.
5351 (emit_jump_insn_before): Likewise.
5352 (emit_jump_insn_before_noloc): Likewise.
5353 (emit_jump_insn_before_setloc): Likewise.
5354 (emit_call_insn_before): Likewise.
5355 (emit_call_insn_before_noloc): Likewise.
5356 (emit_call_insn_before_setloc): Likewise.
5357 (emit_debug_insn_before): Likewise.
5358 (emit_debug_insn_before_noloc): Likewise.
5359 (emit_debug_insn_before_setloc): Likewise.
5360 (emit_label_before): Likewise.
5361 (emit_insn_after): Likewise.
5362 (emit_insn_after_noloc): Likewise.
5363 (emit_insn_after_setloc): Likewise.
5364 (emit_jump_insn_after): Likewise.
5365 (emit_jump_insn_after_noloc): Likewise.
5366 (emit_jump_insn_after_setloc): Likewise.
5367 (emit_call_insn_after): Likewise.
5368 (emit_call_insn_after_noloc): Likewise.
5369 (emit_call_insn_after_setloc): Likewise.
5370 (emit_debug_insn_after): Likewise.
5371 (emit_debug_insn_after_noloc): Likewise.
5372 (emit_debug_insn_after_setloc): Likewise.
5373 (emit_label_after): Likewise.
5374 (emit_insn): Likewise.
5375 (emit_debug_insn): Likewise.
5376 (emit_jump_insn): Likewise.
5377 (emit_call_insn): Likewise.
5378 (emit_label): Likewise.
5379 (gen_clobber): Likewise.
5380 (emit_clobber): Likewise.
5381 (gen_use): Likewise.
5382 (emit_use): Likewise.
5383 (emit): Likewise.
5384
5385 (emit_barrier_before): Strengthen return type from rtx to
5386 rtx_barrier *.
5387 (emit_barrier_after): Likewise.
5388 (emit_barrier): Likewise.
5389
5390 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5391 from rtx to rtx_insn *. Add checked casts for now when converting
5392 "last" from rtx to rtx_insn *.
5393 (emit_insn_before_noloc): Likewise for return type.
5394 (emit_jump_insn_before_noloc): Likewise.
5395 (emit_call_insn_before_noloc): Likewise.
5396 (emit_debug_insn_before_noloc): Likewise.
5397 (emit_barrier_before): Strengthen return type and local "insn"
5398 from rtx to rtx_barrier *.
5399 (emit_label_before): Strengthen return type from rtx to
5400 rtx_insn *. Add checked cast for now when returning param
5401 (emit_pattern_after_noloc): Strengthen return type from rtx to
5402 rtx_insn *. Add checked casts for now when converting "last" from
5403 rtx to rtx_insn *.
5404 (emit_insn_after_noloc): Strengthen return type from rtx to
5405 rtx_insn *.
5406 (emit_jump_insn_after_noloc): Likewise.
5407 (emit_call_insn_after_noloc): Likewise.
5408 (emit_debug_insn_after_noloc): Likewise.
5409 (emit_barrier_after): Strengthen return type from rtx to
5410 rtx_barrier *.
5411 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5412 Add checked cast for now when converting "label" from rtx to
5413 rtx_insn *.
5414 (emit_pattern_after_setloc): Strengthen return type from rtx to
5415 rtx_insn *. Add checked casts for now when converting "last" from
5416 rtx to rtx_insn *.
5417 (emit_pattern_after): Strengthen return type from rtx to
5418 rtx_insn *.
5419 (emit_insn_after_setloc): Likewise.
5420 (emit_insn_after): Likewise.
5421 (emit_jump_insn_after_setloc): Likewise.
5422 (emit_jump_insn_after): Likewise.
5423 (emit_call_insn_after_setloc): Likewise.
5424 (emit_call_insn_after): Likewise.
5425 (emit_debug_insn_after_setloc): Likewise.
5426 (emit_debug_insn_after): Likewise.
5427 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5428 when converting "last" from rtx to rtx_insn *.
5429 (emit_pattern_before): Strengthen return type from rtx to
5430 rtx_insn *.
5431 (emit_insn_before_setloc): Likewise.
5432 (emit_insn_before): Likewise.
5433 (emit_jump_insn_before_setloc): Likewise.
5434 (emit_jump_insn_before): Likewise.
5435 (emit_call_insn_before_setloc): Likewise.
5436 (emit_call_insn_before): Likewise.
5437 (emit_debug_insn_before_setloc): Likewise.
5438 (emit_debug_insn_before): Likewise.
5439 (emit_insn): Strengthen return type and locals "last", "insn",
5440 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5441 within cases where we know we have an insn.
5442 (emit_debug_insn): Likewise.
5443 (emit_jump_insn): Likewise.
5444 (emit_call_insn): Strengthen return type and local "insn" from rtx
5445 to rtx_insn *.
5446 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5447 a checked cast to rtx_insn * for now on "label".
5448 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5449 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5450 (emit_use): Likewise.
5451 (gen_use): Likewise, also for local "seq".
5452 (emit): Likewise for return type and local "insn".
5453 (rtx_insn): Likewise for return type and local "new_rtx".
5454
5455 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5456 from rtx to rtx_barrier *.
5457
5458 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5459 changed return type from rtx to rtx_insn *, we must update
5460 "emit_fn" type, and this in turn means updating...
5461 (frame_insn): ...this. Strengthen return type from rtx to
5462 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5463
5464 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5465
5466 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5467 rtx to rtx_jump_table_data *. Also for local.
5468 * rtl.h (emit_jump_table_data): Likewise.
5469
5470 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5471
5472 * basic-block.h (create_basic_block_structure): Strengthen third
5473 param "bb_note" from rtx to rtx_note *.
5474 * rtl.h (emit_note_before): Strengthen return type from rtx to
5475 rtx_note *.
5476 (emit_note_after): Likewise.
5477 (emit_note): Likewise.
5478 (emit_note_copy): Likewise. Also, strengthen param similarly.
5479 * function.h (struct rtl_data): Strengthen field
5480 "x_stack_check_probe_note" from rtx to rtx_note *.
5481
5482 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5483 from rtx to rtx_note *.
5484 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5485 "bb_note" from rtx to rtx_note *.
5486 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5487 when calling emit_note_copy.
5488 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5489 rtx_note *.
5490 (emit_note_after): Likewise.
5491 (emit_note_before): Likewise.
5492 (emit_note_copy): Likewise. Also, strengthen param similarly.
5493 (emit_note): Likewise.
5494 * except.c (emit_note_eh_region_end): Likewise for return type.
5495 Strengthen local "next" from rtx to rtx_insn *.
5496 (convert_to_eh_region_ranges): Strengthen local "note"
5497 from rtx to rtx_note *.
5498 * final.c (change_scope): Likewise.
5499 (reemit_insn_block_notes): Likewise, for both locals named "note".
5500 Also, strengthen local "insn" from rtx to rtx_insn *.
5501 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5502 rtx to rtx_note *.
5503 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5504 strengthen local "seq" from rtx to rtx_insn *.
5505 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5506 to rtx_note *.
5507 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5508 vec<rtx_note *>.
5509 (get_bb_note_from_pool): Strengthen return type from rtx to
5510 rtx_note *.
5511 (sel_create_basic_block): Strengthen local "new_bb_note" from
5512 insn_t to rtx_note *.
5513 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5514 "note" from rtx to rtx_note *.
5515 (emit_notes_in_bb): Likewise.
5516
5517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5518
5519 * function.h (struct rtl_data): Strengthen field
5520 "x_parm_birth_insn" from rtx to rtx_insn *.
5521 * function.c (struct assign_parm_data_all): Strengthen fields
5522 "first_conversion_insn" and "last_conversion_insn" from rtx to
5523 rtx_insn *.
5524
5525 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5526
5527 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5528 to rtx_insn *; also for local "var_end_seq".
5529 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5530 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5531 "insn".
5532 (expand_gimple_cond): Likewise for locals "last2" and "last".
5533 (mark_transaction_restart_calls): Likewise for local "insn".
5534 (expand_gimple_stmt): Likewise for return type and locals "last"
5535 and "insn".
5536 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5537 (avoid_complex_debug_insns): Likewise for param "insn".
5538 (expand_debug_locations): Likewise for locals "insn", "last",
5539 "prev_insn" and "insn2".
5540 (expand_gimple_basic_block): Likewise for local "last".
5541 (construct_exit_block): Likewise for locals "head", "end",
5542 "orig_end".
5543 (pass_expand::execute): Likewise for locals "var_seq",
5544 "var_ret_seq", "next".
5545
5546 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5547
5548 * asan.h (asan_emit_stack_protection): Strengthen return type from
5549 rtx to rtx_insn *.
5550 * asan.c (asan_emit_stack_protection): Likewise. Add local
5551 "insns" to hold the return value.
5552
5553 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5554
5555 * basic-block.h (bb_note): Strengthen return type from rtx to
5556 rtx_note *.
5557 * sched-int.h (bb_note): Likewise.
5558 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5559
5560 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5561
5562 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5563 rtx_insn *.
5564
5565 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5566 "insn" from rtx to rtx_insn *.
5567 (make_debug_insn_raw): Strengthen return type from rtx to
5568 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5569 (make_jump_insn_raw): Strengthen return type from rtx to
5570 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5571 (make_call_insn_raw): Strengthen return type from rtx to
5572 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5573 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5574 callback from rtx to rtx_insn *; likewise for local "insn" and
5575 "next", adding a checked cast to rtx_insn in the relevant cases of
5576 the switch statement.
5577 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5578 callback from rtx to rtx_insn *.
5579 (emit_pattern_after_setloc): Likewise.
5580 (emit_pattern_after): Likewise.
5581 (emit_pattern_before_setloc): Likewise.
5582 (emit_pattern_before): Likewise.
5583
5584 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5585
5586 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5587 rtx_call_insn *.
5588 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5589 accepting an rtx_insn *.
5590 (last_call_insn): Strengthen return type from rtx to
5591 rtx_call_insn *.
5592
5593 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5594
5595 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5596 "insns" from rtx to rtx_insn *.
5597 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5598 locals "insn" and "prev".
5599
5600 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5601
5602 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5603 rtx_jump_table_data **.
5604
5605 * cfgbuild.c (make_edges): Introduce local "table", using it in
5606 place of "tmp" for jump table data.
5607 (find_bb_boundaries): Strengthen local "table" from rtx to
5608 rtx_jump_table_data *.
5609 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5610 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5611 (try_crossjump_to_edge): Likewise.
5612 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5613 "table".
5614 (patch_jump_insn): Introduce local "table", using it in place of
5615 "tmp" for jump table data.
5616 (force_nonfallthru_and_redirect): Introduce local "table", so that
5617 call to tablejump_p can receive an rtx_jump_table_data **. Update
5618 logic around the call to overwrite "note" appropriately if
5619 tablejump_p returns non-zero.
5620 (get_last_bb_insn): Introduce local "table", using it in place of
5621 "tmp" for jump table data.
5622 * dwarf2cfi.c (create_trace_edges): Likewise.
5623
5624 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5625 from rtx to rtx_jump_table_data *.
5626 (create_fix_barrier): Strengthen local "tmp" from rtx to
5627 rtx_jump_table_data *.
5628 (arm_reorg): Likewise for local "table".
5629
5630 * config/s390/s390.c (s390_chunkify_start): Likewise.
5631
5632 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5633
5634 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5635 rtx to rtx_jump_table_data *.
5636
5637 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5638 rtx_jump_table_data **. Add a checked cast when writing through
5639 the pointer: we know there that local "table" is non-NULL and that
5640 JUMP_TABLE_DATA_P (table) holds.
5641 (label_is_jump_target_p): Introduce local "table", using it in
5642 place of "tmp" for jump table data.
5643
5644 2014-08-19 Marek Polacek <polacek@redhat.com>
5645
5646 PR c++/62153
5647 * doc/invoke.texi: Document -Wbool-compare.
5648
5649 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5650
5651 * rtl.h (entry_of_function): Strengthen return type from rtx to
5652 rtx_insn *.
5653 * cfgrtl.c (entry_of_function): Likewise.
5654
5655 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5656
5657 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5658 rtx_insn *, adding a checked cast for now.
5659 (get_last_insn): Likewise.
5660
5661 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5662
5663 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5664 rtx_code_label *.
5665
5666 * emit-rtl.c (gen_label_rtx): Likewise.
5667
5668 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5669
5670 * rtl.h (previous_insn): Strengthen return type from rtx to
5671 rtx_insn *.
5672 (next_insn): Likewise.
5673 (prev_nonnote_insn): Likewise.
5674 (prev_nonnote_insn_bb): Likewise.
5675 (next_nonnote_insn): Likewise.
5676 (next_nonnote_insn_bb): Likewise.
5677 (prev_nondebug_insn): Likewise.
5678 (next_nondebug_insn): Likewise.
5679 (prev_nonnote_nondebug_insn): Likewise.
5680 (next_nonnote_nondebug_insn): Likewise.
5681 (prev_real_insn): Likewise.
5682 (next_real_insn): Likewise.
5683 (prev_active_insn): Likewise.
5684 (next_active_insn): Likewise.
5685
5686 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5687 rtx_insn *, adding a checked cast.
5688 (previous_insn): Likewise.
5689 (next_nonnote_insn): Likewise.
5690 (next_nonnote_insn_bb): Likewise.
5691 (prev_nonnote_insn): Likewise.
5692 (prev_nonnote_insn_bb): Likewise.
5693 (next_nondebug_insn): Likewise.
5694 (prev_nondebug_insn): Likewise.
5695 (next_nonnote_nondebug_insn): Likewise.
5696 (prev_nonnote_nondebug_insn): Likewise.
5697 (next_real_insn): Likewise.
5698 (prev_real_insn): Likewise.
5699 (next_active_insn): Likewise.
5700 (prev_active_insn): Likewise.
5701
5702 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5703 param "stepfunc" so that it returns an rtx_insn * rather than an
5704 rtx, to track the change to prev_nonnote_insn_bb, which is the
5705 only function this is called with.
5706 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5707
5708 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5709
5710 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5711 assert.
5712
5713 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5714
5715 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5716 (class rtx_nonjump_insn): Likewise.
5717 (class rtx_jump_insn): Likewise.
5718 (class rtx_call_insn): Likewise.
5719 (class rtx_jump_table_data): Likewise.
5720 (class rtx_barrier): Likewise.
5721 (class rtx_code_label): Likewise.
5722 (class rtx_note): Likewise.
5723
5724 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5725 adding the invariant DEBUG_INSN_P (X).
5726 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5727 the invariant NONJUMP_INSN_P (X).
5728 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5729 the invariant JUMP_P (X).
5730 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5731 the invariant CALL_P (X).
5732 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5733 invariant JUMP_TABLE_DATA_P (X).
5734 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5735 invariant BARRIER_P (X).
5736 (class rtx_code_label): New, a subclass of rtx_insn, adding
5737 the invariant LABEL_P (X).
5738 (class rtx_note): New, a subclass of rtx_insn, adding
5739 the invariant NOTE_P(X).
5740 (is_a_helper <rtx_debug_insn *>::test): New.
5741 (is_a_helper <rtx_nonjump_insn *>::test): New.
5742 (is_a_helper <rtx_jump_insn *>::test): New.
5743 (is_a_helper <rtx_call_insn *>::test): New.
5744 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5745 overloaded for both rtx and rtx_insn *.
5746 (is_a_helper <rtx_barrier *>::test): New.
5747 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5748 for both rtx and rtx_insn *.
5749 (is_a_helper <rtx_note *>::test): New.
5750
5751 2014-08-19 Marek Polacek <polacek@redhat.com>
5752
5753 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5754 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5755 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5756 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5757
5758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5759
5760 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5761 rtx_insn *. To help with transition, for now, convert from an
5762 access macro into a pair of functions: BND_TO, returning an
5763 rtx_insn *, and...
5764 (SET_BND_TO): New function, for use where BND_TO is used as an
5765 lvalue.
5766
5767 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5768 SET_BND_TO.
5769 (BND_TO): New function, adding a checked cast.
5770 (SET_BND_TO): New function.
5771
5772 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5773 SET_BND_TO.
5774 (compute_av_set_on_boundaries): Likewise.
5775
5776 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5777
5778 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5779 destination if it is used in source.
5780 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5781 (*popcount<mode>2_falsedep_1): Likewise.
5782
5783 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5784
5785 PR other/62168
5786 * configure.ac: Set install_gold_as_default to no first.
5787 * configure: Regenerated.
5788
5789 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5790
5791 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5792 "note_list" field will eventually be an rtx_insn *. To help with
5793 transition, for now, convert from an access macro into a pair of
5794 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5795 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5796 used as an lvalue.
5797
5798 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5799 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5800
5801 * sel-sched-ir.c (init_bb): Likewise.
5802 (sel_restore_notes): Likewise.
5803 (move_bb_info): Likewise.
5804 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5805 (SET_BB_NOTE_LIST): New function.
5806
5807 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5808
5809 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5810 field will eventually be an rtx_insn *. To help with transition,
5811 for now, convert from an access macro into a pair of functions:
5812 VINSN_INSN_RTX, returning an rtx_insn *, and...
5813 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5814 is used as an lvalue.
5815
5816 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5817 SET_VINSN_INSN_RTX where it's used as an lvalue.
5818 (VINSN_INSN_RTX): New function.
5819 (SET_VINSN_INSN_RTX): New function.
5820
5821 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5822
5823 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5824 eventually be rtx_insn *, but to help with transition, for now,
5825 convert from an access macro into a pair of functions: DEP_PRO
5826 returning an rtx_insn * and...
5827 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5828 lvalue, returning an rtx&.
5829 (DEP_CON): Analogous changes to DEP_PRO above.
5830 (SET_DEP_CON): Likewise.
5831
5832 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5833 an lvalue to SET_DEP_CON.
5834 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5835 (sd_copy_back_deps): Likewise for DEP_CON.
5836 (DEP_PRO): New function, adding a checked cast for now.
5837 (DEP_CON): Likewise.
5838 (SET_DEP_PRO): New function.
5839 (SET_DEP_CON): Likewise.
5840
5841 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5842
5843 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5844 (extra_options): Add i386/cygwin.opt.
5845 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5846 (CPP_SPEC): Accept -pthread.
5847 (LINK_SPEC): Ditto.
5848 (GOMP_SELF_SPECS): Update comment.
5849 * config/i386/cygwin.opt: New file for -pthread flag.
5850
5851 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5852
5853 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5854 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5855 that we can return an rtx_insn *.
5856
5857 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5858
5859 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5860 when building executables, not DLLs. Add --large-address-aware
5861 under the same conditions.
5862 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5863 when building executables, not DLLs. Add --large-address-aware
5864 under the same conditions when using -m32.
5865
5866 * config/i386/cygwin-stdint.h: Throughout, make type
5867 definitions dependent on target architecture, not host.
5868
5869 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5870
5871 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5872 the return type from rtx to rtx_insn *, which will enable various
5873 conversions in followup patches. For now this is is done by a
5874 checked cast.
5875 (NEXT_INSN): Likewise.
5876 (SET_PREV_INSN): Convert to an inline function. This is intended
5877 for use as an lvalue, and so returns an rtx& to allow in-place
5878 modification.
5879 (SET_NEXT_INSN): Likewise.
5880
5881 2014-07-08 Mark Wielaard <mjw@redhat.com>
5882
5883 PR debug/59051
5884 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5885
5886 2014-08-19 Marek Polacek <polacek@redhat.com>
5887
5888 PR c/61271
5889 * cgraphunit.c (handle_alias_pairs): Fix condition.
5890
5891 2014-08-19 Richard Biener <rguenther@suse.de>
5892
5893 * gimple-fold.c (fold_gimple_assign): Properly build a
5894 null-pointer constant when devirtualizing addresses.
5895
5896 2014-07-07 Mark Wielaard <mjw@redhat.com>
5897
5898 * dwarf2out.c (decl_quals): New function.
5899 (modified_type_die): Take one cv_quals argument instead of two,
5900 one for const and one for volatile.
5901 (add_type_attribute): Likewise.
5902 (generic_parameter_die): Call add_type_attribute with one modifier
5903 argument.
5904 (base_type_for_mode): Likewise.
5905 (add_bounds_info): Likewise.
5906 (add_subscript_info): Likewise.
5907 (gen_array_type_die): Likewise.
5908 (gen_descr_array_type_die): Likewise.
5909 (gen_entry_point_die): Likewise.
5910 (gen_enumeration_type_die): Likewise.
5911 (gen_formal_parameter_die): Likewise.
5912 (gen_subprogram_die): Likewise.
5913 (gen_variable_die): Likewise.
5914 (gen_const_die): Likewise.
5915 (gen_field_die): Likewise.
5916 (gen_pointer_type_die): Likewise.
5917 (gen_reference_type_die): Likewise.
5918 (gen_ptr_to_mbr_type_die): Likewise.
5919 (gen_inheritance_die): Likewise.
5920 (gen_subroutine_type_die): Likewise.
5921 (gen_typedef_die): Likewise.
5922 (force_type_die): Likewise.
5923
5924 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5925
5926 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5927 if unset.
5928 * configure: Regenerate.
5929
5930 2014-08-19 Richard Biener <rguenther@suse.de>
5931
5932 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5933 DECL_EXTERNALs in BLOCKs as non-references.
5934 * tree-streamer-out.c (streamer_write_chain): Likewise.
5935
5936 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5938 Anna Tikhonova <anna.tikhonova@intel.com>
5939 Ilya Tocar <ilya.tocar@intel.com>
5940 Andrey Turetskiy <andrey.turetskiy@intel.com>
5941 Ilya Verbin <ilya.verbin@intel.com>
5942 Kirill Yukhin <kirill.yukhin@intel.com>
5943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5944
5945 * config/i386/sse.md
5946 (define_mode_iterator VI48_AVX512F): Delete.
5947 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5948 (define_mode_iterator VI2_AVX512VL): Ditto.
5949 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5950 Delete.
5951 (define_insn
5952 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5953 New.
5954 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5955 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5956 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5957 with VI48_AVX512F_AVX512VL): New.
5958 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5959 with VI2_AVX512VL): Ditto.
5960
5961 2014-08-19 Marek Polacek <polacek@redhat.com>
5962
5963 * doc/invoke.texi: Document -Wc99-c11-compat.
5964
5965 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5966
5967 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5968 for rvalues, and...
5969 (SET_PREV_INSN): New macro, for use as an lvalue.
5970 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5971
5972 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5973 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5974 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5975 (fixup_abnormal_edges): Likewise.
5976 (unlink_insn_chain): Likewise.
5977 (fixup_reorder_chain): Likewise.
5978 (cfg_layout_delete_block): Likewise.
5979 (cfg_layout_merge_blocks): Likewise.
5980 * combine.c (update_cfg_for_uncondjump): Likewise.
5981 * emit-rtl.c (link_insn_into_chain): Likewise.
5982 (remove_insn): Likewise.
5983 (delete_insns_since): Likewise.
5984 (reorder_insns_nobb): Likewise.
5985 (emit_insn_after_1): Likewise.
5986 * final.c (rest_of_clean_state): Likewise.
5987 (final_scan_insn): Likewise.
5988 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5989 * haifa-sched.c (concat_note_lists): Likewise.
5990 (remove_notes): Likewise.
5991 (restore_other_notes): Likewise.
5992 (move_insn): Likewise.
5993 (unlink_bb_notes): Likewise.
5994 (restore_bb_notes): Likewise.
5995 * jump.c (delete_for_peephole): Likewise.
5996 * optabs.c (emit_libcall_block_1): Likewise.
5997 * reorg.c (emit_delay_sequence): Likewise.
5998 (fill_simple_delay_slots): Likewise.
5999 * sel-sched-ir.c (sel_move_insn): Likewise.
6000 (sel_remove_insn): Likewise.
6001 (get_bb_note_from_pool): Likewise.
6002 * sel-sched.c (move_nop_to_previous_block): Likewise.
6003
6004 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6005 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6006 (c6x_gen_bundles): Likewise.
6007 (hwloop_optimize): Likewise.
6008 * config/frv/frv.c (frv_function_prologue): Likewise.
6009 (frv_register_nop): Likewise.
6010 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6011 (ia64_reorg): Likewise.
6012 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6013 (mep_make_bundle): Likewise.
6014 (mep_bundle_insns): Likewise.
6015 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6016 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6017 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6018
6019 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6020
6021 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6022 return type from rtx to rtx_insn *.
6023 (BB_END): Likewise.
6024 (BB_HEADER): Likewise.
6025 (BB_FOOTER): Likewise.
6026 (SET_BB_HEAD): Convert to a function.
6027 (SET_BB_END): Likewise.
6028 (SET_BB_HEADER): Likewise.
6029 (SET_BB_FOOTER): Likewise.
6030
6031 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6032 Strengthen the return type from rtx to rtx_insn *. For now, this
6033 is done by adding a checked cast, but this will eventually
6034 become a field lookup.
6035 (BB_END): Likewise.
6036 (BB_HEADER): Likewise.
6037 (BB_FOOTER): Likewise.
6038 (SET_BB_HEAD): New function, from macro of same name. This is
6039 intended for use as an lvalue, and so returns an rtx& to allow
6040 in-place modification.
6041 (SET_BB_END): Likewise.
6042 (SET_BB_HEADER): Likewise.
6043 (SET_BB_FOOTER): Likewise.
6044
6045 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6046
6047 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6048 for rvalues, and...
6049 (SET_BB_HEAD): New macro, for use as a lvalue.
6050 (BB_END, SET_BB_END): Likewise.
6051 (BB_HEADER, SET_BB_HEADER): Likewise.
6052 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6053
6054 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6055 of BB_* macros into SET_BB_* macros.
6056 (fix_crossing_unconditional_branches): Likewise.
6057 * caller-save.c (save_call_clobbered_regs): Likewise.
6058 (insert_one_insn): Likewise.
6059 * cfgbuild.c (find_bb_boundaries): Likewise.
6060 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6061 (outgoing_edges_match): Likewise.
6062 (try_optimize_cfg): Likewise.
6063 * cfgexpand.c (expand_gimple_cond): Likewise.
6064 (expand_gimple_tailcall): Likewise.
6065 (expand_gimple_basic_block): Likewise.
6066 (construct_exit_block): Likewise.
6067 * cfgrtl.c (delete_insn): Likewise.
6068 (create_basic_block_structure): Likewise.
6069 (rtl_delete_block): Likewise.
6070 (rtl_split_block): Likewise.
6071 (emit_nop_for_unique_locus_between): Likewise.
6072 (rtl_merge_blocks): Likewise.
6073 (block_label): Likewise.
6074 (try_redirect_by_replacing_jump): Likewise.
6075 (emit_barrier_after_bb): Likewise.
6076 (fixup_abnormal_edges): Likewise.
6077 (record_effective_endpoints): Likewise.
6078 (relink_block_chain): Likewise.
6079 (fixup_reorder_chain): Likewise.
6080 (fixup_fallthru_exit_predecessor): Likewise.
6081 (cfg_layout_duplicate_bb): Likewise.
6082 (cfg_layout_split_block): Likewise.
6083 (cfg_layout_delete_block): Likewise.
6084 (cfg_layout_merge_blocks): Likewise.
6085 * combine.c (update_cfg_for_uncondjump): Likewise.
6086 * emit-rtl.c (add_insn_after): Likewise.
6087 (remove_insn): Likewise.
6088 (reorder_insns): Likewise.
6089 (emit_insn_after_1): Likewise.
6090 * haifa-sched.c (get_ebb_head_tail): Likewise.
6091 (restore_other_notes): Likewise.
6092 (move_insn): Likewise.
6093 (sched_extend_bb): Likewise.
6094 (fix_jump_move): Likewise.
6095 * ifcvt.c (noce_process_if_block): Likewise.
6096 (dead_or_predicable): Likewise.
6097 * ira.c (update_equiv_regs): Likewise.
6098 * reg-stack.c (change_stack): Likewise.
6099 * sel-sched-ir.c (sel_move_insn): Likewise.
6100 * sel-sched.c (move_nop_to_previous_block): Likewise.
6101
6102 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6103 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6104
6105 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6106
6107 * rtl.h (for_each_rtx_in_insn): New function.
6108 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6109
6110 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6111
6112 * coretypes.h (class rtx_insn): Add forward declaration.
6113
6114 * rtl.h: Include is-a.h.
6115 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6116 workaround to ensure gengtype knows inheritance is occurring,
6117 whilst continuing to use the pre-existing special-casing for
6118 rtx_def.
6119 (class rtx_insn): New subclass of rtx_def, adding the
6120 invariant that we're dealing with something we can sanely use
6121 INSN_UID, NEXT_INSN, PREV_INSN on.
6122 (is_a_helper <rtx_insn *>::test): New.
6123 (is_a_helper <const rtx_insn *>::test): New.
6124
6125 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6126
6127 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6128
6129 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6130
6131 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6132 comdats as extern.
6133
6134 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6135
6136 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6137 to BUILT_IN_UNREACHABLE.
6138
6139 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6140
6141 PR target/62011
6142 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6143 New tune flag.
6144 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6145 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6146 (ffs<mode>2): Do not expand with tzcnt for
6147 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6148 (ffssi2_no_cmove): Ditto.
6149 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6150 (ctz<mode>2): New expander.
6151 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6152 (*ctz<mode>2_falsedep): New insn.
6153 (*ctz<mode>2): Rename from ctz<mode>2.
6154 (clz<mode>2_lzcnt): New expander.
6155 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6156 (*clz<mode>2_lzcnt_falsedep): New insn.
6157 (*clz<mode>2): Rename from ctz<mode>2.
6158 (popcount<mode>2): New expander.
6159 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6160 (*popcount<mode>2_falsedep): New insn.
6161 (*popcount<mode>2): Rename from ctz<mode>2.
6162 (*popcount<mode>2_cmp): Remove.
6163 (*popcountsi2_cmp_zext): Ditto.
6164
6165 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6166
6167 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6168 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6169 * config/microblaze/microblaze.h
6170 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6171
6172 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6173
6174 PR other/62168
6175 * configure.ac: Set install_gold_as_default to no for
6176 --enable-gold=no.
6177 * configure: Regenerated.
6178
6179 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6180
6181 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6182 * config.in: Add undef of HAVE_isl.
6183 * configure: Regenerate.
6184 * configure.ac: Add definition of HAVE_isl.
6185 * graphite-blocking.c: Add checking of HAVE_isl.
6186 * graphite-dependences.c: Likewise.
6187 * graphite-interchange.c: Likewise.
6188 * graphite-isl-ast-to-gimple.c: Likewise.
6189 * graphite-optimize-isl.c: Likewise.
6190 * graphite-poly.c: Likewise.
6191 * graphite-scop-detection.c: Likewise.
6192 * graphite-sese-to-poly.c: Likewise.
6193 * graphite.c: Likewise.
6194 * toplev.c: Replace the checking of HAVE_cloog with the checking
6195 of HAVE_isl.
6196
6197 2014-08-18 Richard Biener <rguenther@suse.de>
6198
6199 PR tree-optimization/62090
6200 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6201 (fold_builtin_3): Do not fold snprintf.
6202 (fold_builtin_4): Likewise.
6203 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6204 moved from builtins.c.
6205 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6206 (gimple_fold_builtin): Do not fold sprintf here.
6207
6208 2014-08-18 Richard Biener <rguenther@suse.de>
6209
6210 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6211 code to ...
6212 (maybe_canonicalize_mem_ref_addr): ... this function.
6213 (fold_stmt_1): Apply it here before all simplification.
6214
6215 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6216
6217 PR ipa/61800
6218 * cgraph.h (cgraph_node::create_indirect_edge): Add
6219 compute_indirect_info param.
6220 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6221 indirect_info only when it is required.
6222 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6223 indirect_info fore cloned indirect edge.
6224
6225 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6227 Anna Tikhonova <anna.tikhonova@intel.com>
6228 Ilya Tocar <ilya.tocar@intel.com>
6229 Andrey Turetskiy <andrey.turetskiy@intel.com>
6230 Ilya Verbin <ilya.verbin@intel.com>
6231 Kirill Yukhin <kirill.yukhin@intel.com>
6232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6233
6234 * config/i386/sse.md
6235 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6236 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6237
6238 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6240 Anna Tikhonova <anna.tikhonova@intel.com>
6241 Ilya Tocar <ilya.tocar@intel.com>
6242 Andrey Turetskiy <andrey.turetskiy@intel.com>
6243 Ilya Verbin <ilya.verbin@intel.com>
6244 Kirill Yukhin <kirill.yukhin@intel.com>
6245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6246
6247 * config/i386/sse.md
6248 (define_mode_iterator VF1_AVX512VL): New.
6249 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6250 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6251 New.
6252
6253 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6254 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6255 Anna Tikhonova <anna.tikhonova@intel.com>
6256 Ilya Tocar <ilya.tocar@intel.com>
6257 Andrey Turetskiy <andrey.turetskiy@intel.com>
6258 Ilya Verbin <ilya.verbin@intel.com>
6259 Kirill Yukhin <kirill.yukhin@intel.com>
6260 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6261
6262 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6263 * config/i386/i386.md
6264 (define_code_iterator any_float): New.
6265 (define_code_attr floatsuffix): New.
6266 * config/i386/sse.md
6267 (define_mode_iterator VF1_128_256VL): New.
6268 (define_mode_iterator VF2_512_256VL): New.
6269 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6270 TARGET check.
6271 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6272 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6273 New.
6274 (define_mode_attr qq2pssuff): New.
6275 (define_mode_attr sselongvecmode): New.
6276 (define_mode_attr sselongvecmodelower): New.
6277 (define_mode_attr sseintvecmode3): New.
6278 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6279 New.
6280 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6281 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6282 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6283 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6284
6285 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6286 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6287 Anna Tikhonova <anna.tikhonova@intel.com>
6288 Ilya Tocar <ilya.tocar@intel.com>
6289 Andrey Turetskiy <andrey.turetskiy@intel.com>
6290 Ilya Verbin <ilya.verbin@intel.com>
6291 Kirill Yukhin <kirill.yukhin@intel.com>
6292 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6293
6294 * config/i386/sse.md
6295 (define_mode_iterator VF2_AVX512VL): New.
6296 (define_mode_attr sseintvecmode2): New.
6297 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6298 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6299 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6300 (define_insn
6301 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6302 Ditto.
6303 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6304 Ditto.
6305 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6306 Ditto.
6307
6308 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6309 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6310 Anna Tikhonova <anna.tikhonova@intel.com>
6311 Ilya Tocar <ilya.tocar@intel.com>
6312 Andrey Turetskiy <andrey.turetskiy@intel.com>
6313 Ilya Verbin <ilya.verbin@intel.com>
6314 Kirill Yukhin <kirill.yukhin@intel.com>
6315 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6316
6317 * config/i386/i386.md
6318 (define_insn "*movoi_internal_avx"): Add evex version.
6319 (define_insn "*movti_internal"): Ditto.
6320
6321 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6322 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6323 Anna Tikhonova <anna.tikhonova@intel.com>
6324 Ilya Tocar <ilya.tocar@intel.com>
6325 Andrey Turetskiy <andrey.turetskiy@intel.com>
6326 Ilya Verbin <ilya.verbin@intel.com>
6327 Kirill Yukhin <kirill.yukhin@intel.com>
6328 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6329
6330 * config/i386/i386.md
6331 (define_attr "isa"): Add avx512dq, noavx512dq.
6332 (define_attr "enabled"): Ditto.
6333 * config/i386/sse.md
6334 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6335
6336 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6337 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6338 Anna Tikhonova <anna.tikhonova@intel.com>
6339 Ilya Tocar <ilya.tocar@intel.com>
6340 Andrey Turetskiy <andrey.turetskiy@intel.com>
6341 Ilya Verbin <ilya.verbin@intel.com>
6342 Kirill Yukhin <kirill.yukhin@intel.com>
6343 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6344
6345 * config/i386/i386.c
6346 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6347 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6348 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6349 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6350 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6351 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6352 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6353 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6354 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6355 * config/i386/sse.md
6356 (define_mode_iterator VMOVE): Allow V4TI mode.
6357 (define_mode_iterator V_AVX512VL): New.
6358 (define_mode_iterator V): New handling for AVX512VL.
6359 (define_insn "avx512f_load<mode>_mask"): Delete.
6360 (define_insn "<avx512>_load<mode>_mask"): New.
6361 (define_insn "avx512f_store<mode>_mask"): Delete.
6362 (define_insn "<avx512>_store<mode>_mask"): New.
6363
6364
6365 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6366
6367 PR sanitizer/62089
6368 * asan.c (instrument_derefs): Fix bitfield check.
6369
6370 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6371
6372 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6373 * config/rs6000/htm.md (ttest): Remove clobber.
6374 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6375 (and_operand): Reformat.
6376 (and_2rld_operand): New predicate.
6377 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6378 parameter.
6379 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6380 parameter. Handle AND directly.
6381 (rs6000_split_logical_di): Remove last parameter.
6382 (rs6000_split_logical): Remove last parameter. Remove obsolete
6383 comment.
6384 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6385 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6386 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6387 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6388 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6389 and 5 anonymous splitters): Delete.
6390 (and<mode>3): New expander.
6391 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6392 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6393 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6394 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6395 (floatdisf2_internal1): Remove clobbers.
6396 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6397 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6398 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6399 (and<mode>3 for BOOL_128): Remove clobber.
6400 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6401 rs6000_split_logical.
6402 (*bool<mode>3_internal for BOOL_128): Adjust call of
6403 rs6000_split_logical.
6404 (*boolc<mode>3_internal1 for BOOL_128,
6405 *boolc<mode>3_internal2 for BOOL_128,
6406 *boolcc<mode>3_internal1 for BOOL_128,
6407 *boolcc<mode>3_internal2 for BOOL_128,
6408 *eqv<mode>3_internal1 for BOOL_128,
6409 *eqv<mode>3_internal2 for BOOL_128,
6410 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6411 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6412 clobber.
6413 (*vec_reload_and_reg_<mptrsize>): Delete.
6414
6415 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6416
6417 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6418 and split, *boolccsi3_internal3 and split): Delete.
6419 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6420 *boolccdi3_internal3 and split): Delete.
6421 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6422 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6423
6424 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6425
6426 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6427 and split, *boolcsi3_internal3 and split): Delete.
6428 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6429 *boolcdi3_internal3 and split): Delete.
6430 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6431
6432 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6433
6434 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6435 <'u'>: Also support printing the low-order 16 bits.
6436 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6437 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6438 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6439 *booldi3_internal3 and split): Delete.
6440 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6441 *bool<mode>3_dot2): New.
6442 (two anonymous define_splits for non_logical_cint_operand): Merge.
6443
6444 2014-08-17 Marek Polacek <polacek@redhat.com>
6445 Manuel López-Ibáñez <manu@gcc.gnu.org>
6446
6447 PR c/62059
6448 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6449 (diagnostic_show_locus): Don't print caret diagnostic
6450 if a column is larger than the line_width.
6451
6452 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6453
6454 * common.opt: Make the ISL AST generator to be the main code generator
6455 of Graphite.
6456
6457 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6458
6459 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6460
6461 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6462
6463 PR target/61641
6464 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6465 Declare.
6466 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6467 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6468 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6469 Define.
6470 * config/pa/pa.md (begin_brtab): Delete insn.
6471 (end_brtab): Likewise.
6472
6473 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6474
6475 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6476
6477 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6478
6479 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6480 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6481 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6482 (get_dynamic_type): Remove.
6483 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6484 (clear_speculation): Bring to ipa-deivrt.h
6485 (get_class_context): Rename to ...
6486 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6487 (contains_type_p): Update.
6488 (get_dynamic_type): Rename to ...
6489 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6490 (possible_polymorphic_call_targets): UPdate.
6491 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6492 * ipa-prop.c (ipa_analyze_call_uses): Update.
6493
6494 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6495
6496 * doc/invoke.texi (SH options): Document missing processor variant
6497 options. Remove references to Hitachi. Undocument deprecated mspace
6498 option.
6499
6500 2014-08-15 Jason Merrill <jason@redhat.com>
6501
6502 * tree.c (type_hash_canon): Uncomment assert.
6503
6504 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6505
6506 * input.h (in_system_header_at): Add comment.
6507
6508 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6509
6510 PR fortran/44054
6511 * diagnostic.c (build_message_string): Make it extern.
6512 * diagnostic.h (build_message_string): Make it extern.
6513
6514 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6515
6516 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6517 load/store from/to non-floating class pseudo.
6518
6519 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6520
6521 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6522
6523 2014-08-15 Richard Biener <rguenther@suse.de>
6524
6525 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6526 (get_constraint_for_ssa_var): Remove dead code.
6527 (get_constraint_for_1): Adjust.
6528 (find_what_var_points_to): Likewise.
6529 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6530
6531 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6532
6533 PR target/61878
6534 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6535 (_mm512_mask_cmpge_epu32_mask): Ditto.
6536 (_mm512_cmpge_epu32_mask): Ditto.
6537 (_mm512_mask_cmpge_epi64_mask): Ditto.
6538 (_mm512_cmpge_epi64_mask): Ditto.
6539 (_mm512_mask_cmpge_epu64_mask): Ditto.
6540 (_mm512_cmpge_epu64_mask): Ditto.
6541 (_mm512_mask_cmple_epi32_mask): Ditto.
6542 (_mm512_cmple_epi32_mask): Ditto.
6543 (_mm512_mask_cmple_epu32_mask): Ditto.
6544 (_mm512_cmple_epu32_mask): Ditto.
6545 (_mm512_mask_cmple_epi64_mask): Ditto.
6546 (_mm512_cmple_epi64_mask): Ditto.
6547 (_mm512_mask_cmple_epu64_mask): Ditto.
6548 (_mm512_cmple_epu64_mask): Ditto.
6549 (_mm512_mask_cmplt_epi32_mask): Ditto.
6550 (_mm512_cmplt_epi32_mask): Ditto.
6551 (_mm512_mask_cmplt_epu32_mask): Ditto.
6552 (_mm512_cmplt_epu32_mask): Ditto.
6553 (_mm512_mask_cmplt_epi64_mask): Ditto.
6554 (_mm512_cmplt_epi64_mask): Ditto.
6555 (_mm512_mask_cmplt_epu64_mask): Ditto.
6556 (_mm512_cmplt_epu64_mask): Ditto.
6557 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6558 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6559 (_mm512_cmpneq_epu32_mask): Ditto.
6560 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6561 (_mm512_cmpneq_epi64_mask): Ditto.
6562 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6563 (_mm512_cmpneq_epu64_mask): Ditto.
6564 (_mm512_castpd_ps): Ditto.
6565 (_mm512_castpd_si512): Ditto.
6566 (_mm512_castps_pd): Ditto.
6567 (_mm512_castps_si512): Ditto.
6568 (_mm512_castsi512_ps): Ditto.
6569 (_mm512_castsi512_pd): Ditto.
6570 (_mm512_castpd512_pd128): Ditto.
6571 (_mm512_castps512_ps128): Ditto.
6572 (_mm512_castsi512_si128): Ditto.
6573 (_mm512_castpd512_pd256): Ditto.
6574 (_mm512_castps512_ps256): Ditto.
6575 (_mm512_castsi512_si256): Ditto.
6576 (_mm512_castpd128_pd512): Ditto.
6577 (_mm512_castps128_ps512): Ditto.
6578 (_mm512_castsi128_si512): Ditto.
6579 (_mm512_castpd256_pd512): Ditto.
6580 (_mm512_castps256_ps512): Ditto.
6581 (_mm512_castsi256_si512): Ditto.
6582 (_mm512_cmpeq_epu32_mask): Ditto.
6583 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6584 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6585 (_mm512_cmpeq_epu64_mask): Ditto.
6586 (_mm512_cmpgt_epu32_mask): Ditto.
6587 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6588 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6589 (_mm512_cmpgt_epu64_mask): Ditto.
6590 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6591 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6592 * config/i386/i386.c (enum ix86_builtins): Add
6593 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6594 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6595 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6596 (bdesc_args): Add __builtin_ia32_si512_256si,
6597 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6598 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6599 __builtin_ia32_pd512_pd.
6600 (ix86_expand_args_builtin): Handle new FTYPEs.
6601 * config/i386/sse.md (castmode): Add 512-bit modes.
6602 (AVX512MODE2P): New.
6603 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6604 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6605
6606 2014-08-15 Richard Biener <rguenther@suse.de>
6607
6608 * fold-const.c (tree_swap_operands_p): Put all constants
6609 last, also strip sign-changing NOPs when considering further
6610 canonicalization. Canonicalize also when optimizing for size.
6611
6612 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6613
6614 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6615 one_match > zero_match case to just before simple_sequence.
6616
6617 2014-08-15 Richard Biener <rguenther@suse.de>
6618
6619 * data-streamer.h (streamer_string_index, string_for_index):
6620 Remove.
6621 * data-streamer-out.c (streamer_string_index): Make static.
6622 * data-streamer-in.c (string_for_index): Likewise.
6623 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6624 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6625
6626 2014-08-15 Richard Biener <rguenther@suse.de>
6627
6628 PR tree-optimization/62031
6629 * tree-data-ref.c (dr_analyze_indices): Do not set
6630 DR_UNCONSTRAINED_BASE.
6631 (dr_may_alias_p): All indirect accesses have to go the
6632 formerly DR_UNCONSTRAINED_BASE path.
6633 * tree-data-ref.h (struct indices): Remove
6634 unconstrained_base member.
6635 (DR_UNCONSTRAINED_BASE): Remove.
6636
6637 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6638
6639 PR middle-end/62092
6640 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6641 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6642 in OMP_CLAUSE_MAP in some outer target region.
6643
6644 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6645
6646 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6647 name_expansion_cache.
6648 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6649 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6650 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6651 (difference_cannot_overflow_p): New parameter. Use affine
6652 expansion for equality check.
6653 (iv_elimination_compare_lt): Pass new argument.
6654
6655 2014-08-14 DJ Delorie <dj@redhat.com>
6656
6657 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6658 variables to the accumulator.
6659
6660 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6661 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6662 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6663 with far-far moves.
6664
6665 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6666 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6667 (umulqihi3_virt): Likewise.
6668 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6669 (umulqihi3_real): Likewise.
6670
6671 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6672
6673 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6674
6675 PR tree-optimization/62091
6676 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6677 function_entry_reached.
6678 (walk_aliased_vdefs): Clear it here.
6679 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6680
6681 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6682
6683 * ipa-utils.h (compare_virtual_tables): Declare.
6684 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6685
6686 2014-08-14 Marek Polacek <polacek@redhat.com>
6687
6688 DR 458
6689 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6690 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6691
6692 2014-08-14 Tom de Vries <tom@codesourcery.com>
6693
6694 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6695
6696 2014-08-14 Tom de Vries <tom@codesourcery.com>
6697
6698 PR rtl-optimization/62004
6699 PR rtl-optimization/62030
6700 * ifcvt.c (rtx_interchangeable_p): New function.
6701 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6702 * emit-rtl.h (mem_attrs_eq_p): Declare.
6703
6704 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6705
6706 * graphite-scop-detection.c:
6707 Add inclusion of cp-tree.h.
6708 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6709 in case they are pointers to object types
6710
6711 2014-08-14 Richard Biener <rguenther@suse.de>
6712
6713 * BASE-VER: Change to 5.0.0
6714
6715 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6716 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6717 Anna Tikhonova <anna.tikhonova@intel.com>
6718 Ilya Tocar <ilya.tocar@intel.com>
6719 Andrey Turetskiy <andrey.turetskiy@intel.com>
6720 Ilya Verbin <ilya.verbin@intel.com>
6721 Kirill Yukhin <kirill.yukhin@intel.com>
6722 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6723
6724 * config/i386/sse.md (define_mode_attr avx512): New.
6725 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6726 V4DI modes.
6727 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6728 (define_mode_attr ssse3_avx2): Ditto.
6729 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6730 (define_mode_attr avx2_avx512bw): New.
6731 (define_mode_attr ssedoublemodelower): New.
6732 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6733 V32HI, V64QI modes.
6734 (define_mode_attr ssebytemode): Allow V8DI modes.
6735 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6736 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6737 (define_mode_attr ssePSmode2): New.
6738 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6739 V16HI, V32HI modes.
6740 (define_mode_attr dbpsadbwmode): New.
6741 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6742 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6743 (vi8_sse4_1_avx2_avx512): New.
6744 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6745 mode attribute.
6746 (define_mode_attr blendbits): Move before its immediate use.
6747
6748 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6749 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6750 Anna Tikhonova <anna.tikhonova@intel.com>
6751 Ilya Tocar <ilya.tocar@intel.com>
6752 Andrey Turetskiy <andrey.turetskiy@intel.com>
6753 Ilya Verbin <ilya.verbin@intel.com>
6754 Kirill Yukhin <kirill.yukhin@intel.com>
6755 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6756
6757 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6758 * config/i386/subst.md
6759 (define_mode_iterator SUBST_V): Update.
6760 (define_mode_iterator SUBST_A): Ditto.
6761 (define_subst_attr "mask_operand7"): New.
6762 (define_subst_attr "mask_operand10"): New.
6763 (define_subst_attr "mask_operand_arg34") : New.
6764 (define_subst_attr "mask_expand_op3"): New.
6765 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6766 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6767 (define_subst_attr "mask_avx512vl_condition"): New.
6768 (define_subst_attr "round_mask_operand4"): Ditto.
6769 (define_subst_attr "round_mask_scalar_op3"): Delete.
6770 (define_subst_attr "round_mask_op4"): New.
6771 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6772 V16SImode.
6773 (define_subst_attr "round_modev8sf_condition"): New.
6774 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6775 <MODE>mode.
6776 (define_subst_attr "round_saeonly_mask_operand4"): New.
6777 (define_subst_attr "round_saeonly_mask_op4"): New.
6778 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6779 V8DImode, V16SImode.
6780 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6781 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6782 (define_subst_attr "mask_expand4_args"): New.
6783 (define_subst "mask_expand4"): New.
6784
6785 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6786 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6787 Anna Tikhonova <anna.tikhonova@intel.com>
6788 Ilya Tocar <ilya.tocar@intel.com>
6789 Andrey Turetskiy <andrey.turetskiy@intel.com>
6790 Ilya Verbin <ilya.verbin@intel.com>
6791 Kirill Yukhin <kirill.yukhin@intel.com>
6792 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6793
6794 * config/i386/i386.md
6795 (define_attr "isa"): Add avx512bw,noavx512bw.
6796 (define_attr "enabled"): Ditto.
6797 (define_split): Add 32/64-bit mask logic.
6798 (define_insn "*k<logic>qi"): New.
6799 (define_insn "*k<logic>hi"): New.
6800 (define_insn "*anddi_1"): Add mask version.
6801 (define_insn "*andsi_1"): Ditto.
6802 (define_insn "*<code><mode>_1"): Ditto.
6803 (define_insn "*<code>hi_1"): Ditto.
6804 (define_insn "kxnor<mode>"): New.
6805 (define_insn "kunpcksi"): New.
6806 (define_insn "kunpckdi"): New.
6807 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6808 (define_insn "*one_cmplhi2_1"): Ditto.
6809
6810 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6812 Anna Tikhonova <anna.tikhonova@intel.com>
6813 Ilya Tocar <ilya.tocar@intel.com>
6814 Andrey Turetskiy <andrey.turetskiy@intel.com>
6815 Ilya Verbin <ilya.verbin@intel.com>
6816 Kirill Yukhin <kirill.yukhin@intel.com>
6817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6818
6819 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6820 V32HImode.
6821
6822 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6823 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6824 Anna Tikhonova <anna.tikhonova@intel.com>
6825 Ilya Tocar <ilya.tocar@intel.com>
6826 Andrey Turetskiy <andrey.turetskiy@intel.com>
6827 Ilya Verbin <ilya.verbin@intel.com>
6828 Kirill Yukhin <kirill.yukhin@intel.com>
6829 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6830
6831 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6832 registers.
6833 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6834 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6835 xmm/ymm16+ when availble.
6836 * config/i386/i386.h
6837 (HARD_REGNO_NREGS): Add mask regs.
6838 (VALID_AVX512F_REG_MODE): Ditto.
6839 (VALID_AVX512F_REG_MODE) : Define.
6840 (VALID_MASK_AVX512BW_MODE): Ditto.
6841 (reg_class) (MASK_REG_P(X)): Define.
6842 * config/i386/i386.md: Do not split long moves with mask register,
6843 use kmovb if avx512bw is availible.
6844 (movdi_internal): Handle mask registers.
6845
6846 2014-08-14 Richard Biener <rguenther@suse.de>
6847
6848 PR tree-optimization/62081
6849 * tree-ssa-loop.c (pass_fix_loops): New pass.
6850 (pass_tree_loop::gate): Do not fixup loops here.
6851 * tree-pass.h (make_pass_fix_loops): Declare.
6852 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6853
6854 2014-08-14 Richard Biener <rguenther@suse.de>
6855
6856 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6857 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6858
6859 2014-08-14 Richard Biener <rguenther@suse.de>
6860
6861 PR tree-optimization/62090
6862 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6863 (fold_builtin_2): Do not fold sprintf.
6864 (fold_builtin_3): Likewise.
6865 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6866 moved from builtins.c.
6867 (gimple_fold_builtin): Fold sprintf.
6868
6869 2014-08-14 Richard Biener <rguenther@suse.de>
6870
6871 PR rtl-optimization/62079
6872 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6873 run cleanup_cfg.
6874
6875 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6876
6877 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6878 current_function_decl.
6879
6880 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6881
6882 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6883 cgraph_function_node to cgraph_node::function_symbol
6884 refactoring.
6885
6886 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6887
6888 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6889 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6890
6891 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6892
6893 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6894 warning.
6895
6896 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6897
6898 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6899 generator.
6900
6901 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6902
6903 PR target/62025
6904 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6905 any registers that are used in mem_insn.
6906
6907 2014-08-12 Steve Ellcey <sellcey@mips.com>
6908
6909 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6910
6911 2014-08-12 Steve Ellcey <sellcey@mips.com>
6912
6913 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6914 (MULTILIB_DIRNAMES): Ditto.
6915 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6916 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6917 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6918 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6919 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6920 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6921
6922 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6923
6924 PR target/61413
6925 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6926 of __ARM_SIZEOF_WCHAR_T.
6927
6928 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6929
6930 PR target/62098
6931 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6932 Remove unnecessary attributes.
6933
6934 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6935
6936 * internal-fn.c (init_internal_fns): Fix off-by-one.
6937
6938 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6940 Anna Tikhonova <anna.tikhonova@intel.com>
6941 Ilya Tocar <ilya.tocar@intel.com>
6942 Andrey Turetskiy <andrey.turetskiy@intel.com>
6943 Ilya Verbin <ilya.verbin@intel.com>
6944 Kirill Yukhin <kirill.yukhin@intel.com>
6945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6946
6947 * config/i386/i386.c (standard_sse_constant_opcode): Use
6948 vpxord/vpternlog if avx512 is availible.
6949
6950 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6951
6952 PR middle-end/62103
6953 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6954 bitfields, that is when size doesn't match the size of type or the
6955 size of the constructor.
6956
6957 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6958
6959 * config/rs6000/constraints.md (wh constraint): New constraint,
6960 for FP registers if direct move is available.
6961 (wi constraint): New constraint, for VSX/FP registers that can
6962 handle 64-bit integers.
6963 (wj constraint): New constraint for VSX/FP registers that can
6964 handle 64-bit integers for direct moves.
6965 (wk constraint): New constraint for VSX/FP registers that can
6966 handle 64-bit doubles for direct moves.
6967 (wy constraint): Make documentation match implementation.
6968
6969 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6970 scalar_in_vmx_p field to simplify tests of whether SFmode or
6971 DFmode can go in the Altivec registers.
6972 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6973 (rs6000_setup_reg_addr_masks): Likewise.
6974 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6975 field, and wh/wi/wj/wk constraints.
6976 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6977 the wh/wi/wj/wk constraints.
6978 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6979 upper registers, prefer VSX registers unless the operation is a
6980 memory operation with REG+OFFSET addressing.
6981
6982 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6983 DImode. Change SFmode to use ww constraint instead of d to allow
6984 SF registers in the upper registers.
6985 (VSr2): Likewise.
6986 (VSr3): Likewise.
6987 (VSr5): Fix thinko in comment.
6988 (VSa): New mode attribute that is an alternative to wa, that
6989 returns the VSX register class that a mode can go in, but may not
6990 be the preferred register class.
6991 (VS_64dm): New mode attribute for appropriate register classes for
6992 referencing 64-bit elements of vectors for direct moves and normal
6993 moves.
6994 (VS_64reg): Likewise.
6995 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6996 register allocator to only registers the data type can handle.
6997 (vsx_le_perm_load_<mode>): Likewise.
6998 (vsx_le_perm_store_<mode>): Likewise.
6999 (vsx_xxpermdi2_le_<mode>): Likewise.
7000 (vsx_xxpermdi4_le_<mode>): Likewise.
7001 (vsx_lxvd2x2_le_<mode>): Likewise.
7002 (vsx_lxvd2x4_le_<mode>): Likewise.
7003 (vsx_stxvd2x2_le_<mode>): Likewise.
7004 (vsx_add<mode>3): Likewise.
7005 (vsx_sub<mode>3): Likewise.
7006 (vsx_mul<mode>3): Likewise.
7007 (vsx_div<mode>3): Likewise.
7008 (vsx_tdiv<mode>3_internal): Likewise.
7009 (vsx_fre<mode>2): Likewise.
7010 (vsx_neg<mode>2): Likewise.
7011 (vsx_abs<mode>2): Likewise.
7012 (vsx_nabs<mode>2): Likewise.
7013 (vsx_smax<mode>3): Likewise.
7014 (vsx_smin<mode>3): Likewise.
7015 (vsx_sqrt<mode>2): Likewise.
7016 (vsx_rsqrte<mode>2): Likewise.
7017 (vsx_tsqrt<mode>2_internal): Likewise.
7018 (vsx_fms<mode>4): Likewise.
7019 (vsx_nfma<mode>4): Likewise.
7020 (vsx_eq<mode>): Likewise.
7021 (vsx_gt<mode>): Likewise.
7022 (vsx_ge<mode>): Likewise.
7023 (vsx_eq<mode>_p): Likewise.
7024 (vsx_gt<mode>_p): Likewise.
7025 (vsx_ge<mode>_p): Likewise.
7026 (vsx_xxsel<mode>): Likewise.
7027 (vsx_xxsel<mode>_uns): Likewise.
7028 (vsx_copysign<mode>3): Likewise.
7029 (vsx_float<VSi><mode>2): Likewise.
7030 (vsx_floatuns<VSi><mode>2): Likewise.
7031 (vsx_fix_trunc<mode><VSi>2): Likewise.
7032 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7033 (vsx_x<VSv>r<VSs>i): Likewise.
7034 (vsx_x<VSv>r<VSs>ic): Likewise.
7035 (vsx_btrunc<mode>2): Likewise.
7036 (vsx_b2trunc<mode>2): Likewise.
7037 (vsx_floor<mode>2): Likewise.
7038 (vsx_ceil<mode>2): Likewise.
7039 (vsx_<VS_spdp_insn>): Likewise.
7040 (vsx_xscvspdp): Likewise.
7041 (vsx_xvcvspuxds): Likewise.
7042 (vsx_float_fix_<mode>2): Likewise.
7043 (vsx_set_<mode>): Likewise.
7044 (vsx_extract_<mode>_internal1): Likewise.
7045 (vsx_extract_<mode>_internal2): Likewise.
7046 (vsx_extract_<mode>_load): Likewise.
7047 (vsx_extract_<mode>_store): Likewise.
7048 (vsx_splat_<mode>): Likewise.
7049 (vsx_xxspltw_<mode>): Likewise.
7050 (vsx_xxspltw_<mode>_direct): Likewise.
7051 (vsx_xxmrghw_<mode>): Likewise.
7052 (vsx_xxmrglw_<mode>): Likewise.
7053 (vsx_xxsldwi_<mode>): Likewise.
7054 (vsx_xscvdpspn): Tighten constraints to only use register classes
7055 the types use.
7056 (vsx_xscvspdpn): Likewise.
7057 (vsx_xscvdpspn_scalar): Likewise.
7058
7059 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7060 wj, and wk constraints.
7061 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7062 general purpose registers.
7063
7064 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7065 direct moves.
7066 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7067 DImode instead of wm. Use wk constraint for direct move of DFmode
7068 instead of wm.
7069 (extendsidi2_lfiwax): Likewise.
7070 (lfiwax): Likewise.
7071 (lfiwzx): Likewise.
7072 (movdi_internal64): Likewise.
7073
7074 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7075 wk constraints. Make the wy constraint documentation match them
7076 implementation.
7077
7078 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7079
7080 Replacement of isl_int by isl_val
7081 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7082 (compute_bounds_for_param): use isl_val instead of isl_int
7083 (compute_bounds_for_loop): likewise
7084 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7085 (build_linearized_memory_access): use isl_val instead of isl_int
7086 (pdr_stride_in_loop): likewise
7087 * graphite-optimize-isl.c:
7088 (getPrevectorMap): use isl_val instead of isl_int
7089 * graphite-poly.c:
7090 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7091 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7092 (extern the_isl_ctx): declare
7093 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7094 (extract_affine_gmp): likewise
7095 (wrap): likewise
7096 (build_loop_iteration_domains): likewise
7097 (add_param_constraints): likewise
7098
7099 2014-08-11 Richard Biener <rguenther@suse.de>
7100
7101 PR tree-optimization/62075
7102 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7103 handle uses in patterns.
7104
7105 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7107 Anna Tikhonova <anna.tikhonova@intel.com>
7108 Ilya Tocar <ilya.tocar@intel.com>
7109 Andrey Turetskiy <andrey.turetskiy@intel.com>
7110 Ilya Verbin <ilya.verbin@intel.com>
7111 Kirill Yukhin <kirill.yukhin@intel.com>
7112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7113
7114 * common/config/i386/i386-common.c
7115 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7116 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7117 (ix86_handle_option): Handle OPT_mavx512vl.
7118 * config/i386/cpuid.h (bit_AVX512VL): Define.
7119 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7120 set -mavx512vl accordingly.
7121 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7122 OPTION_MASK_ISA_AVX512VL.
7123 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7124 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7125 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7126 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7127 * config/i386/i386.h (TARGET_AVX512VL): Define.
7128 (TARGET_AVX512VL_P(x)): Ditto.
7129 * config/i386/i386.opt: Add mavx512vl.
7130
7131 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7132
7133 PR tree-optimization/62073
7134 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7135 a basic block.
7136
7137 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7138 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7139 Anna Tikhonova <anna.tikhonova@intel.com>
7140 Ilya Tocar <ilya.tocar@intel.com>
7141 Andrey Turetskiy <andrey.turetskiy@intel.com>
7142 Ilya Verbin <ilya.verbin@intel.com>
7143 Kirill Yukhin <kirill.yukhin@intel.com>
7144 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7145
7146 * common/config/i386/i386-common.c
7147 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7148 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7149 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7150 (ix86_handle_option): Handle OPT_mavx512bw.
7151 * config/i386/cpuid.h (bit_AVX512BW): Define.
7152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7153 set -mavx512bw accordingly.
7154 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7155 OPTION_MASK_ISA_AVX512BW.
7156 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7157 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7158 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7159 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7160 * config/i386/i386.h (TARGET_AVX512BW): Define.
7161 (TARGET_AVX512BW_P(x)): Ditto.
7162 * config/i386/i386.opt: Add mavx512bw.
7163
7164 2014-08-11 Richard Biener <rguenther@suse.de>
7165
7166 PR tree-optimization/62070
7167 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7168 Remove SSA checking.
7169
7170 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7171
7172 * asan.c (asan_check_flags): New enum.
7173 (build_check_stmt_with_calls): Removed function.
7174 (build_check_stmt): Split inlining logic to
7175 asan_expand_check_ifn.
7176 (instrument_derefs): Rename parameter.
7177 (instrument_mem_region_access): Rename parameter.
7178 (instrument_strlen_call): Likewise.
7179 (asan_expand_check_ifn): New function.
7180 (asan_instrument): Remove old code.
7181 (pass_sanopt::execute): Change handling of
7182 asan-instrumentation-with-call-threshold.
7183 (asan_clear_shadow): Fix formatting.
7184 (asan_function_start): Likewise.
7185 (asan_emit_stack_protection): Likewise.
7186 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7187 Update description.
7188 * internal-fn.c (expand_ASAN_CHECK): New function.
7189 * internal-fn.def (ASAN_CHECK): New internal function.
7190 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7191 Update description.
7192 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7193 * tree.c: Small comment fix.
7194
7195 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7196
7197 * gimple.c (gimple_call_fnspec): Support internal functions.
7198 (gimple_call_return_flags): Use const.
7199 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7200 * internal-fn.def: Add fnspec information.
7201 * internal-fn.h (internal_fn_fnspec): New function.
7202 (init_internal_fns): Declare new function.
7203 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7204 (init_internal_fns): New function.
7205 * tree-core.h: Update macro call.
7206 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7207
7208 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7209
7210 * lto-streamer.h (struct output_block::symbol): Change from
7211 struct symtab_node to plain symtab_node.
7212 (referenced_from_this_partition_p): Change first parameter
7213 from struct symtab_node to plain symtab_node.
7214
7215 2014-08-10 Marek Polacek <polacek@redhat.com>
7216
7217 PR c/51849
7218 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7219
7220 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7221
7222 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7223 DECL correctly; do not give up on types in static storage.
7224
7225 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7226
7227 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7228
7229 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7230
7231 * graphite-isl-ast-to-gimple.c:
7232 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7233
7234 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7235
7236 2014-08-08 Guozhi Wei <carrot@google.com>
7237
7238 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7239
7240 2014-08-08 Cary Coutant <ccoutant@google.com>
7241
7242 * dwarf2out.c (get_skeleton_type_unit): Remove.
7243 (output_skeleton_debug_sections): Remove skeleton type units.
7244 (output_comdat_type_unit): Likewise.
7245 (dwarf2out_finish): Likewise.
7246
7247 2014-08-07 Yi Yang <ahyangyi@google.com>
7248
7249 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7250
7251 2014-08-08 Richard Biener <rguenther@suse.de>
7252
7253 * lto-streamer.h (struct lto_input_block): Make it a class
7254 with a constructor.
7255 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7256 (struct lto_function_header, struct lto_simple_header,
7257 struct lto_simple_header_with_strings,
7258 struct lto_decl_header, struct lto_function_header): Make
7259 a simple inheritance hieararchy. Remove unused fields.
7260 (struct lto_asm_header): Remove.
7261 * lto-streamer-out.c (produce_asm): Adjust.
7262 (lto_output_toplevel_asms): Likewise.
7263 (produce_asm_for_decls): Likewise.
7264 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7265 * data-streamer-in.c (string_for_index): Likewise.
7266 * ipa-inline-analysis.c (inline_read_section): Likewise.
7267 * ipa-prop.c (ipa_prop_read_section): Likewise.
7268 (read_replacements_section): Likewise.
7269 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7270 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7271 (lto_destroy_simple_input_block): Likewise.
7272 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7273 (lto_input_toplevel_asms): Likewise.
7274
7275 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7277 Anna Tikhonova <anna.tikhonova@intel.com>
7278 Ilya Tocar <ilya.tocar@intel.com>
7279 Andrey Turetskiy <andrey.turetskiy@intel.com>
7280 Ilya Verbin <ilya.verbin@intel.com>
7281 Kirill Yukhin <kirill.yukhin@intel.com>
7282 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7283
7284 * common/config/i386/i386-common.c
7285 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7286 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7287 (ix86_handle_option): Handle OPT_mavx512dq.
7288 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7289 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7290 set -mavx512dq accordingly.
7291 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7292 OPTION_MASK_ISA_AVX512DQ.
7293 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7294 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7295 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7296 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7297 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7298 (TARGET_AVX512DQ_P(x)): Ditto.
7299 * config/i386/i386.opt: Add mavx512dq.
7300
7301 2014-08-08 Richard Biener <rguenther@suse.de>
7302
7303 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7304 target_percent, target_percent_s): Export.
7305 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7306 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7307 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7308 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7309 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7310 Move to gimple-fold.c.
7311 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7312 strcat and strcpy.
7313 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7314 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7315 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7316 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7317 (rewrite_call_expr_array): Remove.
7318 (fold_builtin_sprintf_chk): Likewise.
7319 (fold_builtin_snprintf_chk): Likewise.
7320 (fold_builtin_varargs): Remove handling of sprintf_chk,
7321 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7322 (gimple_fold_builtin_sprintf_chk): Remove.
7323 (gimple_fold_builtin_snprintf_chk): Likewise.
7324 (gimple_fold_builtin_varargs): Likewise.
7325 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7326 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7327 * gimple.c (gimple_seq_add_seq_without_update): New function.
7328 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7329 * gimple-fold.c: Include output.h.
7330 (gsi_replace_with_seq_vops): New function, split out from ...
7331 (gimplify_and_update_call_from_tree): ... here.
7332 (replace_call_with_value): New function.
7333 (replace_call_with_call_and_fold): Likewise.
7334 (var_decl_component_p): Moved from builtins.c.
7335 (gimple_fold_builtin_memory_op): Moved from builtins.c
7336 fold_builtin_memory_op and rewritten to GIMPLE.
7337 (gimple_fold_builtin_memset): Likewise.
7338 (gimple_fold_builtin_strcpy): Likewise.
7339 (gimple_fold_builtin_strncpy): Likewise.
7340 (gimple_fold_builtin_strcat): Likewise.
7341 (gimple_fold_builtin_fputs): Likewise.
7342 (gimple_fold_builtin_memory_chk): Likewise.
7343 (gimple_fold_builtin_stxcpy_chk): Likewise.
7344 (gimple_fold_builtin_stxncpy_chk): Likewise.
7345 (gimple_fold_builtin_snprintf_chk): Likewise.
7346 (gimple_fold_builtin_sprintf_chk): Likewise.
7347 (gimple_fold_builtin_strlen): New function.
7348 (gimple_fold_builtin_with_strlen): New function split out from
7349 gimple_fold_builtin.
7350 (gimple_fold_builtin): Change signature and handle
7351 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7352 here. Call gimple_fold_builtin_with_strlen.
7353 (gimple_fold_call): Adjust.
7354
7355 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7356
7357 * calls.c (precompute_arguments): Check
7358 promoted_for_signed_and_unsigned_p and set the promoted mode.
7359 (promoted_for_signed_and_unsigned_p): New function.
7360 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7361 and set the promoted mode.
7362 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7363 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7364 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7365
7366
7367 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7368
7369 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7370 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7371 (expand_call): Likewise.
7372 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7373 to get promoted mode.
7374 * combine.c (record_promoted_value): Skip > 0 comparison with
7375 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7376 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7377 of SUBREG_PROMOTED_UNSIGNED_P.
7378 (convert_modes): Likewise.
7379 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7380 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7381 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7382 SUBREG_PROMOTED_UNSIGNED_SET.
7383 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7384 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7385 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7386 SUBREG_PROMOTED_SET.
7387 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7388 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7389 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7390 of SUBREG_PROMOTED_UNSIGNED_P.
7391 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7392 (SUBREG_PROMOTED_SET): New define.
7393 (SUBREG_PROMOTED_GET): Likewise.
7394 (SUBREG_PROMOTED_SIGN): Likewise.
7395 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7396 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7397 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7398 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7399 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7400 (nonzero_bits1): Skip > 0 comparison with the results as
7401 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7402 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7403 of !SUBREG_PROMOTED_UNSIGNED_P.
7404 * simplify-rtx.c (simplify_unary_operation_1): Use new
7405 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7406 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7407 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7408 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7409
7410 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7411
7412 * ipa-devirt.c: Include gimple-pretty-print.h
7413 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7414 further tests.
7415 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7416 (get_polymorphic_call_info): Fix return value
7417 (type_change_info): New sturcture based on ipa-prop
7418 variant.
7419 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7420 based on ipa-prop variant.
7421 (extr_type_from_vtbl_ptr_store): New function
7422 based on ipa-prop variant.
7423 (record_known_type): New function.
7424 (check_stmt_for_type_change): New function.
7425 (get_dynamic_type): New function.
7426 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7427 * tree-ssa-pre.c: ipa-utils.h
7428 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7429 machinery; sanity check with ipa-prop devirtualization.
7430 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7431 polymorphic flag.
7432
7433 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7434
7435 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7436 * alias.c, cfgexpand.c, cgraphbuild.c,
7437 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7438 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7439 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7440 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7441 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7442 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7443 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7444 dse.c, except.c, gengtype.c, gimple-expr.c,
7445 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7446 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7447 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7448 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7449 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7450 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7451 pointer-set.h.
7452 * pointer-set.c: Remove file.
7453 * pointer-set.h: Remove file.
7454
7455 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7456
7457 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7458 * config/arm/types.md (f_sels, f_seld): Delete.
7459
7460 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7461
7462 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7463 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7464 (aarch64_movdi_<mode>high): Likewise.
7465 (aarch64_mov<mode>high_di): Likewise.
7466 (aarch64_movdi_<mode>low): Likewise.
7467 (aarch64_mov<mode>low_di): Likewise.
7468 (aarch64_movtilow_tilow): Likewise.
7469 Add comment explaining usage of fp,simd attributes and of
7470 TARGET_FLOAT and TARGET_SIMD.
7471
7472 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7473 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7474
7475 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7476 Use MOVN when one of the half-words is 0xffff.
7477
7478 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7479
7480 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7481
7482 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7483
7484 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7485 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7486 (rfs_str): String corresponding to RFS_* constants.
7487 (rank_for_schedule_stats_t): New typedef.
7488 (rank_for_schedule_stats): New static variable.
7489 (rfs_result): New static function.
7490 (rank_for_schedule): Track statistics for deciding heuristics.
7491 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7492 static functions.
7493 (ready_sort): Use them for debug printouts.
7494 (schedule_block): Init statistics state. Print statistics on
7495 rank_for_schedule decisions.
7496
7497 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7498
7499 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7500
7501 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7502
7503 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7504 constraint.
7505
7506 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7507
7508 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7509 function to not conflict.
7510 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7511 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7512 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7513 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7514 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7515 of pointer_map.
7516
7517 2014-08-07 Marek Polacek <polacek@redhat.com>
7518
7519 * fold-const.c (fold_binary_loc): Add folding of
7520 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7521
7522 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7523
7524 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7525 instead of type size.
7526 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7527
7528 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7529
7530 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7531 (*thumb1_movqi_insn): Likewise.
7532 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7533
7534 2014-08-07 Tom de Vries <tom@codesourcery.com>
7535
7536 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7537 (glibc_2_11_or_earlier): Remove effective-target keywords.
7538
7539 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7540
7541 * config/arm/arm.c (bdesc_2arg): Fix typo.
7542 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7543
7544 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7545
7546 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7547
7548 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7549
7550 PR debug/61923
7551 * haifa-sched.c (advance_one_cycle): Fix dump.
7552 (schedule_block): Don't advance cycle if we are already at the
7553 beginning of the cycle.
7554
7555 2014-08-06 Martin Jambor <mjambor@suse.cz>
7556
7557 PR ipa/61393
7558 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7559
7560 2014-08-06 Richard Biener <rguenther@suse.de>
7561
7562 PR lto/62034
7563 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7564 SCCs here.
7565 (lto_input_tree): Pop SCCs here.
7566
7567 2014-08-06 Richard Biener <rguenther@suse.de>
7568
7569 PR tree-optimization/61320
7570 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7571 handle misaligned loads.
7572
7573 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7574
7575 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7576 (aarch64_expand_vec_perm_const): Check for dup before zip.
7577
7578 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7579
7580 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7581 CONST_INT_P instead of GET_CODE and compare.
7582 (aarch64_select_cc_mode): Likewise.
7583 (aarch64_print_operand): Likewise.
7584 (aarch64_rtx_costs): Likewise.
7585 (aarch64_simd_valid_immediate): Likewise.
7586 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7587 (aarch64_simd_emit_pair_result_insn): Likewise.
7588
7589 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7590
7591 * gdbhooks.py (find_gcc_source_dir): New helper function.
7592 (class PassNames): New class, locating and parsing passes.def.
7593 (class BreakOnPass): New command "break-on-pass".
7594
7595 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7596
7597 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7598 getting olde.
7599
7600 2014-08-05 Richard Biener <rguenther@suse.de>
7601
7602 PR rtl-optimization/61672
7603 * emit-rtl.h (mem_attrs_eq_p): Declare.
7604 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7605 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7606 * cfgcleanup.c (merge_memattrs): Likewise.
7607 Include emit-rtl.h.
7608
7609 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7610
7611 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7612 rather than singleton vectors.
7613 (vqdmlsls_lane_s32): Likewise.
7614
7615 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7616
7617 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7618 Use VSDQ_HSI mode iterator.
7619 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7620 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7621 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7622 Use BUILTIN_VDQHS macro.
7623 (sqrdmulh_laneq): Likewise.
7624 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7625 (vqdmlals_laneq_s32): Likewise.
7626 (vqdmlslh_laneq_s16): Likewise.
7627 (vqdmlsls_laneq_s32): Likewise.
7628 (vqdmulhh_laneq_s16): Likewise.
7629 (vqdmulhs_laneq_s32): Likewise.
7630 (vqrdmulhh_laneq_s16): Likewise.
7631 (vqrdmulhs_laneq_s32): Likewise.
7632
7633 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7634
7635 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7636 (vmuld_laneq_f64): Likewise.
7637 (vmuls_laneq_f32): Likewise.
7638 (vmul_n_f64): Likewise.
7639 (vmuld_lane_f64): Reimplement in C.
7640 (vmuls_lane_f32): Likewise.
7641
7642 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7643
7644 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7645 to reservation.
7646 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7647
7648 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7649
7650 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7651 (rbitsi2): Likewise.
7652 (*arm_rev): Set predicable and predicable_short_it attributes.
7653
7654 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7655
7656 * convert.c (convert_to_integer): Guard transformation to lrint by
7657 -fno-math-errno.
7658
7659 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7660
7661 * config/aarch64/aarch64-builtins.c
7662 (aarch64_simd_builtin_type_mode): Delete.
7663 (v8qi_UP): Remap to V8QImode.
7664 (v4hi_UP): Remap to V4HImode.
7665 (v2si_UP): Remap to V2SImode.
7666 (v2sf_UP): Remap to V2SFmode.
7667 (v1df_UP): Remap to V1DFmode.
7668 (di_UP): Remap to DImode.
7669 (df_UP): Remap to DFmode.
7670 (v16qi_UP):V16QImode.
7671 (v8hi_UP): Remap to V8HImode.
7672 (v4si_UP): Remap to V4SImode.
7673 (v4sf_UP): Remap to V4SFmode.
7674 (v2di_UP): Remap to V2DImode.
7675 (v2df_UP): Remap to V2DFmode.
7676 (ti_UP): Remap to TImode.
7677 (ei_UP): Remap to EImode.
7678 (oi_UP): Remap to OImode.
7679 (ci_UP): Map to CImode.
7680 (xi_UP): Remap to XImode.
7681 (si_UP): Remap to SImode.
7682 (sf_UP): Remap to SFmode.
7683 (hi_UP): Remap to HImode.
7684 (qi_UP): Remap to QImode.
7685 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7686 (VAR1): Build builtin name.
7687 (aarch64_init_simd_builtins): Remove dead code.
7688
7689 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7690
7691 * graphite-isl-ast-to-gimple.c:
7692 (set_options): New function.
7693 (scop_to_isl_ast): Add calling of set_options.
7694
7695 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7696
7697 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7698 (analyze_iv_to_split_insn): Don't initialize them.
7699 (get_ivts_expr): Removed.
7700 (allocate_basic_variable, insert_base_initialization): Use
7701 SET_SRC instead of *get_ivts_expr.
7702 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7703
7704 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7705
7706 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7707 (translate_isl_ast_for_loop): Add checking of the
7708 flag_loop_parallelize_all.
7709 (ast_build_before_for): New function.
7710 (scop_to_isl_ast): Add checking of the
7711 flag_loop_parallelize_all.
7712 * graphite-dependences.c: Move the defenition of the
7713 scop_get_dependences from graphite-optimize-isl.c to this file.
7714 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7715 (carries_deps): Add checking of the x's value.
7716 * graphite-optimize-isl.c: Move the defenition of the
7717 scop_get_dependences to graphite-dependences.c.
7718 * graphite-poly.h: Add declarations of scop_get_dependences
7719 and carries_deps.
7720
7721 2014-08-04 Rohit <rohitarulraj@freescale.com>
7722
7723 PR target/60102
7724 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7725 names.
7726 (alt_reg_names): Likewise.
7727 (rs6000_dwarf_register_span): For SPE high registers, replace
7728 dwarf register numbers with GCC hard register numbers.
7729 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7730 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7731 register number for the corresponding GCC hard register number.
7732 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7733 newly added GCC hard register numbers for SPE high registers.
7734 (DWARF_FRAME_REGISTERS): Likewise.
7735 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7736 (DWARF_FRAME_REGNUM): Likewise.
7737 (FIXED_REGISTERS): Likewise.
7738 (CALL_USED_REGISTERS): Likewise.
7739 (CALL_REALLY_USED_REGISTERS): Likewise.
7740 (REG_ALLOC_ORDER): Likewise.
7741 (enum reg_class): Likewise.
7742 (REG_CLASS_NAMES): Likewise.
7743 (REG_CLASS_CONTENTS): Likewise.
7744 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7745
7746 2014-08-04 Richard Biener <rguenther@suse.de>
7747
7748 * gimple-fold.h (gimple_fold_builtin): Remove.
7749 * gimple-fold.c (gimple_fold_builtin): Make static.
7750 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7751 fold_stmt, not gimple_fold_builtin.
7752
7753 2014-08-04 Martin Liska <mliska@suse.cz>
7754
7755 * cgraph.h (csi_end_p): Removed.
7756 (csi_next): Likewise.
7757 (csi_node): Likewise.
7758 (csi_start): Likewise.
7759 (cgraph_node_in_set_p): Likewise.
7760 (cgraph_node_set_size): Likewise.
7761 (vsi_end_p): Likewise.
7762 (vsi_next): Likewise.
7763 (vsi_node): Likewise.
7764 (vsi_start): Likewise.
7765 (varpool_node_set_size): Likewise.
7766 (cgraph_node_set_nonempty_p): Likewise.
7767 (varpool_node_set_nonempty_p): Likewise.
7768 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7769 cgraph_node_set.
7770 * ipa-inline-transform.c: Likewise.
7771 * ipa-utils.c (cgraph_node_set_new): Removed.
7772 (cgraph_node_set_add): Likewise.
7773 (cgraph_node_set_remove): Likewise.
7774 (cgraph_node_set_find): Likewise.
7775 (dump_cgraph_node_set): Likewise.
7776 (debug_cgraph_node_set): Likewise.
7777 (free_cgraph_node_set): Likewise.
7778 (varpool_node_set_new): Likewise.
7779 (varpool_node_set_add): Likewise.
7780 (varpool_node_set_remove): Likewise.
7781 (varpool_node_set_find): Likewise.
7782 (dump_varpool_node_set): Likewise.
7783 (free_varpool_node_set): Likewise.
7784 (debug_varpool_node_set): Likewise.
7785 * tree-emutls.c (struct tls_var_data):
7786 (emutls_index): Removed.
7787 (emutls_decl): Likewise.
7788 (gen_emutls_addr): Function implementation uses newly added
7789 hash_map<varpool_node *, tls_var_data>.
7790 (clear_access_vars): Likewise.
7791 (create_emultls_var): Likewise.
7792 (ipa_lower_emutls): Likewise.
7793 (reset_access): New function.
7794
7795 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7796
7797 * config/i386/i386.c (ix86_option_override_internal): Add
7798 PTA_RDRND and PTA_MOVBE for bdver4.
7799
7800 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7801 James Greenhalgh <james.greenhalgh@arm.com>
7802
7803 * doc/md.texi (clrsb): Document.
7804 (clz): Change reference to x into operand 1.
7805 (ctz): Likewise.
7806 (popcount): Likewise.
7807
7808 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7809
7810 PR target/61713
7811 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7812 move to subtarget in serial version if result is ignored.
7813
7814 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7815 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7816
7817 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7818 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7819 (sched_analyze_insn): Update use of try_group_insn to
7820 sched_macro_fuse_insns.
7821 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7822 arguments that are not conditional jumps.
7823
7824 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7825
7826 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7827 family information. Handle BTVER2 cpu with cpuid family value.
7828
7829 2014-08-04 Tom de Vries <tom@codesourcery.com>
7830
7831 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7832 (glibc_2_11_or_earlier): Document effective-target keywords.
7833
7834 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7835
7836 * ipa-devirt.c (odr_type_warn_count): Add type.
7837 (possible_polymorphic_call_targets): Set it.
7838 (ipa_devirt): Use it.
7839
7840 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7841
7842 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7843 Document.
7844 * ipa-devirt.c: Include hash-map.h
7845 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7846 (clear_speculation): Break out of ...
7847 (get_class_context): ... here; speed up handling obviously useless
7848 speculations.
7849 (odr_type_warn_count, decl_warn_count): New structures.
7850 (final_warning_record): New structure.
7851 (final_warning_records): New static variable.
7852 (possible_polymorphic_call_targets): Cleanup handling of
7853 speculative info; do not build speculation when user do not care;
7854 record info about warnings when asked for.
7855 (add_decl_warning): New function.
7856 (type_warning_cmp): New function.
7857 (decl_warning_cmp): New function.
7858 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7859 (gate): Enable pass when warnings are requested.
7860 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7861 options.
7862
7863 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7864
7865 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7866 Fix cast.
7867 (hash_map::remove): New method.
7868 (hash_map::traverse): New method.
7869 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7870 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7871 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7872 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7873 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7874 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7875 pointer_map.
7876
7877 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7878
7879 * hash-set.h: new File.
7880 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7881 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7882 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7883 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7884 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7885 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7886 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7887 varpool.c: Use hash_set instead of pointer_set.
7888
7889 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7890
7891 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7892
7893 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7894
7895 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7896 for frame access when strict_p is false.
7897
7898 2014-08-01 Renlin Li <renlin.li@arm.com>
7899 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7900
7901 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7902 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7903 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7904 Declaration.
7905 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7906 predicate.
7907 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7908 aarch64_mem_pair_offset.
7909
7910 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7911
7912 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7913 offset.
7914 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7915 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7916
7917 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7918
7919 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7920
7921 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7922
7923 PR regression/61510
7924 * cgraphunit.c (analyze_functions): Use get_create rather than get
7925 for decls which are clones of abstract functions.
7926
7927 2014-08-01 Martin Liska <mliska@suse.cz>
7928
7929 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7930 * ipa-prop.h (count_formal_params): Global function created from static.
7931 * ipa-prop.c (count_formal_params): Likewise.
7932 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7933 profiles for semantically equivalent functions.
7934 * passes.c (do_per_function): If we load body of a function
7935 during WPA, this condition should behave same.
7936 * varpool.c (ctor_for_folding): More tolerant assert for variable
7937 aliases created during WPA.
7938
7939 2014-08-01 Martin Liska <mliska@suse.cz>
7940
7941 * doc/invoke.texi (Options That Control Optimization): Documentation
7942 for -foptimize-strlen introduced. Optimization levels default options
7943 fixed.
7944
7945 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7946
7947 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7948 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7949 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7950 type to bool.
7951 * stor-layout.h (min_align_of_type): New prototype.
7952 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7953 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7954 check.
7955 * ubsan.c: Include builtins.h.
7956 (ubsan_expand_bounds_ifn): Change return type to bool,
7957 always return true.
7958 (ubsan_expand_null_ifn): Change return type to bool, change
7959 argument to gimple_stmt_iterator *. Handle both null and alignment
7960 sanitization, take type from ckind argument's type rather than
7961 first argument.
7962 (instrument_member_call): Removed.
7963 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7964 Handle both null and alignment sanitization, don't say whole
7965 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7966 call instead of 2 argument.
7967 (instrument_null): Adjust instrument_mem_ref caller. Don't
7968 instrument calls here.
7969 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7970 like SANITIZE_NULL.
7971 * stor-layout.c (min_align_of_type): New function.
7972 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7973 Or it into SANITIZE_UNDEFINED.
7974 * doc/invoke.texi (-fsanitize=alignment): Document.
7975
7976 2014-07-31 Andi Kleen <ak@linux.intel.com>
7977
7978 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7979
7980 2014-07-31 Andi Kleen <ak@linux.intel.com>
7981
7982 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7983 inchash.
7984 (vn_reference_compute_hash): Dito.
7985 (vn_nary_op_compute_hash): Dito.
7986 (vn_phi_compute_hash): Dito.
7987 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7988
7989 2014-07-31 Andi Kleen <ak@linux.intel.com>
7990
7991 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7992 Rename to inchash:add_expr_commutative. Convert to inchash.
7993 (iterative_hash_hashable_expr): Rename to
7994 inchash:add_hashable_expr. Convert to inchash.
7995 (avail_expr_hash): Dito.
7996
7997 2014-07-31 Andi Kleen <ak@linux.intel.com>
7998
7999 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8000 Convert to inchash.
8001
8002 2014-07-31 Andi Kleen <ak@linux.intel.com>
8003
8004 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8005
8006 2014-07-31 Andi Kleen <ak@linux.intel.com>
8007
8008 * Makefile.in (OBJS): Add rtlhash.o
8009 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8010 (loc_checksum): Dito.
8011 (loc_checksum_ordered): Dito.
8012 (hash_loc_operands): Dito.
8013 (hash_locs): Dito.
8014 (hash_loc_list): Dito.
8015 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8016 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8017 * rtlhash.c: New file.
8018 * rtlhash.h: New file.
8019
8020 2014-07-31 Andi Kleen <ak@linux.intel.com>
8021
8022 * inchash.h (inchash): Change inchash class to namespace.
8023 (class hash): ... Rename from inchash.
8024 (add_object): Move from macro to class template.
8025 * lto-streamer-out.c (hash_tree): Change inchash
8026 to inchash::hash.
8027 * tree.c (build_type_attribute_qual_variant): Dito.
8028 (type_hash_list): Dito.
8029 (attribute_hash_list): Dito.
8030 (iterative_hstate_expr): Rename to inchash::add_expr
8031 (build_range_type_1): Change inchash to inchash::hash
8032 and use hash::add_expr.
8033 (build_array_type_1): Dito.
8034 (build_function_type): Dito
8035 (build_method_type_directly): Dito.
8036 (build_offset_type): Dito.
8037 (build_complex_type): Dito.
8038 (make_vector_type): Dito.
8039 * tree.h (iterative_hash_expr): Dito.
8040
8041 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8042
8043 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8044
8045 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8046
8047 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8048 correct alphabetical position.
8049 (vpaddd_f64): Rewrite using builtins.
8050 (vpaddd_s64): Move to correct alphabetical position.
8051 (vpaddd_u64): New.
8052
8053 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8054
8055 PR target/61844
8056 * config/sh/sh.c (sh_legitimate_address_p,
8057 sh_legitimize_reload_address): Handle reg+reg address modes when
8058 ALLOW_INDEXED_ADDRESS is false.
8059 * config/sh/predicates.md (general_movsrc_operand,
8060 general_movdst_operand): Likewise.
8061
8062 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8063
8064 * config/aarch64/aarch64-builtins.c
8065 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8066 BYTES_BIG_ENDIAN.
8067
8068 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8069
8070 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8071 the generated mask based on BYTES_BIG_ENDIAN.
8072 (aarch64_simd_check_vect_par_cnst_half): New.
8073 * config/aarch64/aarch64-protos.h
8074 (aarch64_simd_check_vect_par_cnst_half): New.
8075 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8076 the check out to aarch64_simd_check_vect_par_cnst_half.
8077 (vect_par_cnst_lo_half): Likewise.
8078 * config/aarch64/aarch64-simd.md
8079 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8080 (move_hi_quad_<mode>): Always generate a low mask.
8081
8082 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8083
8084 * doc/invoke.texi (AVR Options): Add documentation about
8085 __AVR_DEVICE_NAME__ built-in macro.
8086
8087 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8088
8089 PR target/61948
8090 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8091 constraints are satisfied.
8092 (<shift>di3_neon): Likewise.
8093
8094 2014-07-31 Richard Biener <rguenther@suse.de>
8095
8096 PR tree-optimization/61964
8097 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8098 by structural equality.
8099
8100 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8101
8102 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8103 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8104 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8105 New enums.
8106 * gcc.c (sanitize_spec_function): Support new option.
8107 (SANITIZER_SPEC): Remove now redundant check.
8108 * opts.c (common_handle_option): Support new option.
8109 (finish_options): Check for incompatibilities.
8110 * toplev.c (process_options): Split userspace-specific checks.
8111
8112 2014-07-31 Richard Biener <rguenther@suse.de>
8113
8114 * lto-streamer.h (struct output_block): Remove global.
8115 (struct data_in): Remove labels, num_named_labels and
8116 num_unnamed_labels.
8117 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8118 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8119
8120 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8121
8122 PR c++/60517
8123 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8124 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8125 (isolate_path): New argument to avoid inserting a trap.
8126 (find_implicit_erroneous_behaviour): Handle returning the address
8127 of a local variable.
8128 (find_explicit_erroneous_behaviour): Likewise.
8129
8130 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8131
8132 PR lto/61868
8133 * toplev.c (init_random_seed): Move piece of code never called to
8134 set_random_seed.
8135 (set_random_seed): see above.
8136
8137 2014-07-31 Tom de Vries <tom@codesourcery.com>
8138
8139 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8140
8141 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8142
8143 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8144 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8145
8146 2014-07-31 Richard Biener <rguenther@suse.de>
8147
8148 * data-streamer.h (streamer_write_data_stream): Declare here,
8149 renamed from ...
8150 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8151 * lto-cgraph.c (lto_output_node): Adjust.
8152 (lto_output_varpool_node): Likewise.
8153 * data-streamer-out.c (streamer_string_index): Likewise.
8154 (streamer_write_data_stream, lto_append_block): Move from ...
8155 * lto-section-out.c (lto_output_data_stream,
8156 lto_append_block): ... here.
8157
8158 2014-07-30 Mike Stump <mikestump@comcast.net>
8159
8160 * configure.ac: Also check for popen.
8161 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8162 * configure: Regenerate.
8163 * config.in: Regenerate.
8164
8165 2014-07-30 Martin Jambor <mjambor@suse.cz>
8166
8167 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8168 parameter to gimple.
8169
8170 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8171
8172 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8173 address as second parameter to __tpf_eh_return routine.
8174
8175 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8176
8177 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8178 Thumb2.
8179
8180 2014-07-30 Tom Tromey <tromey@redhat.com>
8181
8182 PR c/59855
8183 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8184 * doc/extend.texi (Type Attributes): Document designated_init
8185 attribute.
8186
8187 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8188
8189 * graphite-isl-ast-to-gimple.c:
8190 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8191 (gcc_expression_from_isl_expression): Pass type to
8192 gcc_expression_from_isl_ast_expr_id.
8193
8194 2014-07-30 Richard Biener <rguenther@suse.de>
8195
8196 * lto-streamer.h (lto_write_data): New function.
8197 * langhooks.c (lhd_append_data): Do not free block.
8198 * lto-section-out.c (lto_write_data): New function writing
8199 raw data to the current section.
8200 (lto_write_stream): Adjust for langhook semantic change.
8201 (lto_destroy_simple_output_block): Write header directly.
8202 * lto-opts.c (lto_write_options): Write options directly.
8203 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8204 (lto_output_toplevel_asms): Likewise.
8205 (copy_function_or_variable): Copy data directly.
8206 (write_global_references): Output index table directly.
8207 (lto_output_decl_state_refs): Likewise.
8208 (write_symbol): Write data directly.
8209 (produce_symtab): Adjust.
8210 (produce_asm_for_decls): Output header and refs directly.
8211
8212 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8213
8214 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8215 to speculative_targets
8216 (get_class_context): Fix handling of contextes without outer type;
8217 avoid matching non-polymorphic types in LTO.
8218 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8219 parameter to speculative_targetsp; handle speculation.
8220 (dump_possible_polymorphic_call_targets): Update dumping.
8221
8222 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8223
8224 * common.opt (Wodr): Enable by default.
8225
8226 2014-07-29 Olivier Hainque <hainque@adacore.com>
8227
8228 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8229
8230 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8231
8232 PR bootstrap/61914
8233 * gengtype.c (strtoken): New function.
8234 (create_user_defined_type): Replace strtok with strtoken.
8235
8236 2014-07-29 Nathan Sidwell <nathan@acm.org>
8237
8238 * gcov-io.c (gcov_var): Make hidden.
8239 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8240 (gcov_do_dump): Declare.
8241 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8242
8243 2014-07-29 Martin Jambor <mjambor@suse.cz>
8244
8245 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8246 parameter to gimple.
8247 (sra_modify_assign): Likewise.
8248
8249 2014-07-29 Richard Biener <rguenther@suse.de>
8250
8251 PR middle-end/52478
8252 * expr.c (expand_expr_real_2): Revert last change.
8253
8254 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8255
8256 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8257 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8258 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8259 call.
8260 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8261 (contains_type_p): Forward declare.
8262 (polymorphic_call_target_hasher::hash): Hash speculative info.
8263 (polymorphic_call_target_hasher::equal): Compare speculative info.
8264 (get_class_context): Handle speuclation.
8265 (contains_type_p): Update.
8266 (get_polymorphic_call_info_for_decl): Update.
8267 (walk_ssa_copies): Break out from ...
8268 (get_polymorphic_call_info): ... here; set speculative context
8269 before giving up.
8270 * ipa-prop.c (ipa_write_indirect_edge_info,
8271 ipa_read_indirect_edge_info): Stream speculative context.
8272 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8273 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8274 SPECULATIVE_MAYBE_DERIVED_TYPE).
8275 (possible_polymorphic_call_targets overriders): Update.
8276 (dump_possible_polymorphic_call_targets overriders): Update.
8277 (dump_possible_polymorphic_call_target_p overriders): Update.
8278
8279 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8280
8281 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8282 ipa-devirt path; fix thinko there.
8283
8284 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8285
8286 * config/i386/i386.c (ix86_return_in_memory): Replace one
8287 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8288
8289 2014-07-28 Marek Polacek <polacek@redhat.com>
8290
8291 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8292
8293 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8294
8295 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8296 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8297 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8298 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8299 (USE_LD_AS_NEEDED): Likewise.
8300 (ASM_APP_ON): Likewise.
8301 (ASM_APP_OFF): Likewise.
8302 (TARGET_POSIX_IO): Likewise.
8303 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8304 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8305 (USE_LD_AS_NEEDED): Likewise.
8306 (ASM_APP_ON): Likewise.
8307 (ASM_APP_OFF): Likewise.
8308 (TARGET_POSIX_IO): Likewise.
8309
8310 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8311
8312 PR middle-end/61734
8313 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8314 operators other than the equality operators.
8315
8316 2014-07-28 Richard Biener <rguenther@suse.de>
8317
8318 PR middle-end/52478
8319 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8320 sure to register SImode ones, not only >= word_mode ones.
8321 * expr.c (expand_expr_real_2): When expanding -ftrapv
8322 binops do not use OPTAB_LIB_WIDEN.
8323
8324 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8325
8326 PR middle-end/61919
8327 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8328 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8329 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8330 inserting them in the insn stream.
8331
8332 2014-07-28 Marek Polacek <polacek@redhat.com>
8333
8334 PR middle-end/61913
8335 * common.opt (Wodr): Add Var.
8336
8337 2014-07-28 Richard Biener <rguenther@suse.de>
8338
8339 PR tree-optimization/61921
8340 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8341 if there is a varpool node before dereferencing it.
8342
8343 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8344
8345 * graphite-sese-to-poly.c:
8346 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8347 id of the pbb), which contains pointer to the pbb1.
8348
8349 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8350
8351 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8352
8353 * graphite-isl-ast-to-gimple.c:
8354 (graphite_create_new_guard): New function.
8355 (translate_isl_ast_node_if): New function.
8356 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8357
8358 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8359
8360 2014-07-27 Anthony Green <green@moxielogic.com>
8361
8362 * config.gcc: Add moxie-*-moxiebox* configuration.
8363 * config/moxie/moxiebox.h: New file.
8364
8365 2014-07-26 Andrew Pinski <apinski@cavium.com>
8366
8367 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8368 from the read only register.
8369
8370 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8371
8372 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8373 as the allocation class if it isn't likely to be spilled.
8374
8375 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8376
8377 * rtl.h (tls_referenced_p): Declare.
8378 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8379 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8380 (mips_cannot_force_const_mem): Use tls_referenced_p.
8381 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8382 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8383 instead of pa_tls_referenced_p.
8384 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8385 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8386 (pa_legitimate_constant_p): Likewise.
8387 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8388 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8389 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8390 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8391 rs6000_tls_referenced_p.
8392 (rs6000_tls_symbol_ref_1): Delete.
8393
8394 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8395
8396 PR target/44551
8397 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8398 Optimize inverse of a VEC_CONCAT.
8399
8400 2014-07-25 Xinliang David Li <davidxl@google.com>
8401
8402 * params.def: New parameter.
8403 * coverage.c (get_coverage_counts): Check new flag.
8404 (coverage_compute_profile_id): Check new flag.
8405 (coverage_begin_function): Check new flag.
8406 (coverage_end_function): Check new flag.
8407 * value-prof.c (coverage_node_map_initialized_p): New function.
8408 (init_node_map): Populate map with all functions.
8409 * doc/invoke.texi: Document new parameter.
8410
8411 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8412 Richard Biener <rguenther@suse.de>
8413
8414 * lto-streamer-out.c (struct sccs): Turn to ...
8415 (class DFS): ... this one; refactor the DFS walk so it can
8416 be re-done on per-SCC basis.
8417 (DFS::DFS): New constructor.
8418 (DFS::~DFS): New destructor.
8419 (hash_tree): Add new MAP argument holding in-SCC hash values;
8420 remove POINTER_TYPE hashing hack.
8421 (scc_entry_compare): Rename to ...
8422 (DFS::scc_entry_compare): ... this one.
8423 (hash_scc): Rename to ...
8424 (DFS::hash_scc): ... this one; pass output_block instead
8425 of streamer_cache; work harder to get unique and stable SCC
8426 hashes.
8427 (DFS_write_tree): Rename to ...
8428 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8429 (lto_output_tree): Update.
8430
8431 2014-07-25 Andi Kleen <ak@linux.intel.com>
8432
8433 * lto-streamer-out.c (hash_tree): Convert to inchash.
8434
8435 2014-07-25 Andi Kleen <ak@linux.intel.com>
8436
8437 * tree.c (build_type_attribute_qual_variant): Use inchash.
8438 (type_hash_list): Dito.
8439 (attribute_hash_list): Dito
8440 (iterative_hstate_expr): Dito.
8441 (iterative_hash_expr): Dito.
8442 (build_range_type_1): Dito.
8443 (build_array_type_1): Dito.
8444 (build_function_type): Dito.
8445 (build_method_type_directly): Dito.
8446 (build_offset_type): Dito.
8447 (build_complex_type): Dito.
8448 (make_vector_type): Dito.
8449 * tree.h (iterative_hash_expr): Add compat wrapper.
8450 (iterative_hstate_expr): Add.
8451
8452 2014-07-25 Andi Kleen <ak@linux.intel.com>
8453
8454 * Makefile.in (OBJS): Add inchash.o.
8455 (PLUGIN_HEADERS): Add inchash.h.
8456 * ipa-devirt.c: Include inchash.h.
8457 * lto-streamer-out.c: Dito.
8458 * tree-ssa-dom.c: Dito.
8459 * tree-ssa-pre.c: Dito.
8460 * tree-ssa-sccvn.c: Dito.
8461 * tree-ssa-tail-merge.c: Dito.
8462 * asan.c: Dito.
8463 * tree.c (iterative_hash_hashval_t): Move to ...
8464 (iterative_hash_host_wide_int): Move to ...
8465 * inchash.c: Here. New file.
8466 * tree.h (iterative_hash_hashval_t): Move to ...
8467 (iterative_hash_host_wide_int): Move to ...
8468 * inchash.h: Here. New file.
8469
8470 2014-07-25 Richard Biener <rguenther@suse.de>
8471
8472 PR middle-end/61762
8473 PR middle-end/61894
8474 * fold-const.c (native_encode_int): Add and handle offset
8475 parameter to do partial encodings of expr.
8476 (native_encode_fixed): Likewise.
8477 (native_encode_real): Likewise.
8478 (native_encode_complex): Likewise.
8479 (native_encode_vector): Likewise.
8480 (native_encode_string): Likewise.
8481 (native_encode_expr): Likewise.
8482 * fold-const.c (native_encode_expr): Add offset parameter
8483 defaulting to -1.
8484 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8485 (fold_ctor_reference): Handle all reads from tcc_constant
8486 ctors.
8487
8488 2014-07-25 Richard Biener <rguenther@suse.de>
8489
8490 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8491 as possibly unused.
8492
8493 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8494
8495 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8496
8497 2014-07-24 Kyle McMartin <kyle@redhat.com>
8498
8499 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8500
8501 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8502
8503 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8504 Add prototype.
8505 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8506 function.
8507 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8508 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8509 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8510
8511 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8512
8513 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8514 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8515 aggregate types. Instead, *all* aggregate types, except for single-
8516 element or homogeneous float/vector aggregates, are quadword-aligned
8517 if required by their type alignment. Issue -Wpsabi note when a type
8518 is now treated differently than before.
8519
8520 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8521
8522 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8523 does not fit fully into floating-point registers, and there is still
8524 space in the register parameter area, use GPRs to pass those parts
8525 of the argument. Issue -Wpsabi note if any parameter is now treated
8526 differently than before.
8527 (rs6000_arg_partial_bytes): Update.
8528
8529 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8530
8531 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8532
8533 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8534
8535 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8536 * toplev.c (initialize_rtl): Don't use it. Move previously
8537 "language-dependent" calls to...
8538 (backend_init): ...here.
8539 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8540 Assert that RTL initialization hasn't happend yet.
8541
8542 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8543
8544 PR rtl-optimization/61629
8545 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8546 they have already been initialized.
8547
8548 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8549
8550 PR middle-end/61268
8551 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8552 DECL_INCOMING_RTL and entry_parm.
8553 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8554 * calls.c (load_register_parameters): Likewise argument values.
8555 (emit_library_call_value_1, store_one_arg): Likewise argument
8556 save areas.
8557 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8558 stack slot.
8559 * explow.c (validize_mem): Modify the argument in-place.
8560
8561 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8562
8563 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8564 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8565
8566 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8567
8568 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8569 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8570
8571 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8572
8573 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8574 (aarch64_save_callee_saves): New parameter "skip_wb".
8575 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8576
8577 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8578
8579 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8580 "wb_candidate2".
8581 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8582
8583 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8584
8585 * graphite-isl-ast-to-gimple.c:
8586 (graphite_create_new_loop): Add calling of isl_id_free to properly
8587 decrement reference counts.
8588
8589 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8590
8591 2014-07-24 Martin Liska <mliska@suse.cz>
8592 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8593 function used.
8594 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8595 (rs6000_code_end): Likewise.
8596
8597 2014-07-24 Martin Liska <mliska@suse.cz>
8598
8599 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8600 symtab_node funtion used.
8601 (rs6000_xcoff_declare_object_name): Likewise.
8602
8603 2014-07-24 Martin Liska <mliska@suse.cz>
8604
8605 * cgraphunit.c (compile): Correct function used.
8606
8607 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8608
8609 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8610 as non-indexable.
8611
8612 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8613
8614 PR lto/61802
8615 * varasm.c (bss_initializer_p): Handle offlined ctors.
8616 (align_variable, get_variable_align): Likewise.
8617 (make_decl_one_only): Likewise.
8618 (default_binds_local_p_1): Likewise.
8619 (decl_binds_to_current_def_p): Likewise.
8620 (get_variable_section): Get constructor if it is offlined.
8621 (assemble_variable_contents): Sanity check that the caller
8622 streamed in the ctor in LTO.
8623
8624 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8625
8626 * graphite-isl-ast-to-gimple.c:
8627 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8628 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8629 isl_ast_op_pdiv_r to the different case.
8630
8631 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8632
8633 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8634
8635 PR middle-end/61876
8636 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8637 when flag_errno_math is on.
8638
8639 2014-07-24 Martin Liska <mliska@suse.cz>
8640
8641 * cgraph.h (varpool_node):
8642 (availability get_availability (void)):
8643 created from cgraph_variable_initializer_availability
8644 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8645 created from: cgraph_variable_initializer_availability
8646 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8647 (void finalize_named_section_flags (void)):
8648 created from varpool_finalize_named_section_flags
8649 (bool assemble_decl (void)): created from varpool_assemble_decl
8650 (void analyze (void)): created from varpool_analyze_node
8651 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8652 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8653 (void remove_initializer (void)): created from varpool_remove_initializer
8654 (tree get_constructor (void)): created from varpool_get_constructor
8655 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8656 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8657 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8658 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8659 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8660 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8661 (static bool output_variables (void)): created from varpool_output_variables
8662 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8663 created from varpool_extra_name_alias
8664 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8665 (static void dump_varpool (FILE *f)): created from dump_varpool
8666 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8667 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8668 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8669 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8670 (void assemble_aliases (void)): created from assemble_aliases
8671
8672 2014-07-24 Martin Liska <mliska@suse.cz>
8673
8674 * cgraph.h (symtab_node):
8675 (void register_symbol (void)): created from symtab_register_node
8676 (void remove (void)): created from symtab_remove_node
8677 (void dump (FILE *f)): created from dump_symtab_node
8678 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8679 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8680 (struct ipa_ref *add_reference (symtab_node *referred_node,
8681 enum ipa_ref_use use_type)): created from add_reference
8682 (struct ipa_ref *add_reference (symtab_node *referred_node,
8683 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8684 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8685 gimple stmt)): created from maybe_add_reference
8686 (bool semantically_equivalent_p (symtab_node *target)): created from
8687 symtab_semantically_equivalent_p
8688 (void remove_from_same_comdat_group (void)): created from
8689 remove_from_same_comdat_group
8690 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8691 symtab_add_to_same_comdat_group
8692 (void dissolve_same_comdat_group_list (void)): created from
8693 symtab_dissolve_same_comdat_group_list
8694 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8695 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8696 created from symtab_alias_ultimate_target
8697 (inline symtab_node *next_defined_symbol (void)): created from
8698 symtab_next_defined_symbol
8699 (bool resolve_alias (symtab_node *target)): created from
8700 symtab_resolve_alias
8701 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8702 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8703 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8704 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8705 (void set_section (const char *section)): created from set_section_1
8706 (enum availability get_availability (void)): created from symtab_node_availability
8707 (void make_decl_local (void)): created from symtab_make_decl_local
8708 (bool real_symbol_p (void)): created from symtab_read_node
8709 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8710 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8711 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8712 symtab_in_same_comdat_p;
8713 (bool address_taken_from_non_vtable_p (void)): created from
8714 address_taken_from_non_vtable_p
8715 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8716 (static void dump_table (FILE *)): created from dump_symtab
8717 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8718 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8719 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8720 symtab_used_from_object_file_p
8721 (void dump_base (FILE *)): created from dump_symtab_base
8722 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8723 (void unregister (void)): created from symtab_unregister_node
8724 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8725 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8726 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8727 symtab_nonoverwritable_alias_1
8728 * cgraph.h (cgraph_node):
8729 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8730 created from cgraph_remove_node_and_inline_clones
8731 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8732 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8733 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8734 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8735 created from cgraph_function_node
8736 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8737 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8738 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8739 created from cgraph_create_clone
8740 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8741 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8742 created from cgraph_create_virtual_clone
8743 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8744 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8745 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8746 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8747 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8748 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8749 created from cgraph_function_version_info
8750 (struct cgraph_function_version_info *insert_new_function_version (void)):
8751 created from insert_new_cgraph_node_version
8752 (struct cgraph_function_version_info *function_version (void)): created from
8753 get_cgraph_node_version
8754 (void analyze (void)): created from analyze_function
8755 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8756 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8757 tree real_alias) cgraph_add_thunk
8758 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8759 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8760 created from cgraph_function_or_thunk_node
8761 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8762 created from expand_thunk
8763 (void reset (void)): created from cgraph_reset_node
8764 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8765 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8766 (void remove (void)): created from cgraph_remove_node
8767 (void dump (FILE *f)): created from dump_cgraph_node
8768 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8769 (bool get_body (void)): created from cgraph_get_body
8770 (void release_body (void)): created from cgraph_release_function_body
8771 (void unnest (void)): created from cgraph_unnest_node
8772 (void make_local (void)): created from cgraph_make_node_local
8773 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8774 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8775 gcov_type count, int freq)): created from cgraph_create_edge
8776 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8777 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8778 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8779 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8780 created from cgraph_create_edge_including_clones
8781 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8782 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8783 (void remove_callers (void)): created from cgraph_node_remove_callers
8784 (void remove_callees (void)): created from cgraph_node_remove_callees
8785 (enum availability get_availability (void)): created from cgraph_function_body_availability
8786 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8787 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8788 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8789 (void call_duplication_hooks (cgraph_node *node2)): created from
8790 cgraph_call_node_duplication_hooks
8791 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8792 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8793 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8794 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8795 (void call_function_insertion_hooks (void)):
8796 created from cgraph_call_function_insertion_hooks
8797 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8798 (bool local_p (void)): created from cgraph_local_node
8799 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8800 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8801 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8802 (inline bool only_called_directly_or_aliased_p (void)):
8803 created from cgraph_only_called_directly_or_aliased_p
8804 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8805 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8806 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8807 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8808 (bool can_remove_if_no_direct_calls_p (void)):
8809 created from cgraph_can_remove_if_no_direct_calls_p
8810 (inline bool has_gimple_body_p (void)):
8811 created from cgraph_function_with_gimple_body_p
8812 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8813 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8814 (static inline void debug_cgraph (void)): created from debug_cgraph
8815 (static void record_function_versions (tree decl1, tree decl2)):
8816 created from record_function_versions
8817 (static void delete_function_version (tree decl)):
8818 created from delete_function_version
8819 (static void add_new_function (tree fndecl, bool lowered)):
8820 created from cgraph_add_new_function
8821 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8822 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8823 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8824 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8825 (static cgraph_node *get_for_asmname (tree asmname)):
8826 created from cgraph_node_for_asm
8827 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8828 created from cgraph_same_body_alias
8829 (static bool used_from_object_file_p_worker (cgraph_node *node,
8830 void *): new function
8831 (static bool non_local_p (cgraph_node *node, void *)):
8832 created from cgraph_non_local_node_p_1
8833 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8834 created from verify_cgraph
8835 (static bool make_local (cgraph_node *node, void *)):
8836 created from cgraph_make_node_local
8837 (static cgraph_node *create_alias (tree alias, tree target)):
8838 created from cgraph_create_function_alias
8839 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8840 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8841 created from cgraph_create_edge_1
8842 * cgraph.h (varpool_node):
8843 (void remove (void)): created from varpool_remove_node
8844 (void dump (FILE *f)): created from dump_varpool_node
8845
8846 2014-07-24 Richard Biener <rguenther@suse.de>
8847
8848 PR ipa/61823
8849 * tree-ssa-structalias.c (create_variable_info_for_1):
8850 Use varpool_get_constructor.
8851 (create_variable_info_for): Likewise.
8852
8853 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8854
8855 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8856 subtract outgoing area size when restoring stack_pointer_rtx.
8857
8858 2014-07-24 Nick Clifton <nickc@redhat.com>
8859
8860 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8861 that operations are taking place in parallel.
8862 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8863
8864 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8865
8866 * omp-low.c (extract_omp_for_data): Add missing break statement.
8867
8868 2014-07-24 Richard Biener <rguenther@suse.de>
8869
8870 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8871 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8872 and adjust MOVE_RATIO query accordingly.
8873 (estimate_num_insns): Adjust callers.
8874 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8875 * ipa-cp.c (gather_context_independent_values,
8876 estimate_local_effects): Likewise.
8877 * ipa-split.c (consider_split): Likewise.
8878
8879 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8880
8881 * config/i386/driver-i386.c: Remove names of unused arguments and
8882 unnecessary unused attributes.
8883 * config/i386/host-mingw32.c: Likewise.
8884 * config/i386/i386.c: Likewise.
8885 * config/i386/winnt-stubs.c: Likewise.
8886 * config/i386/winnt.c: Likewise.
8887
8888 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8889
8890 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8891 (aarch64_gen_loadwb_pair): New helper function.
8892 (aarch64_expand_epilogue): Simplify code using new helper functions.
8893 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8894
8895 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8896
8897 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8898 (aarch64_gen_storewb_pair): New helper function.
8899 (aarch64_expand_prologue): Simplify code using new helper functions.
8900 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8901
8902 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8903
8904 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8905 Rename to aarch64_save_callee_saves, remove restore code.
8906 (aarch64_restore_callee_saves): New function.
8907
8908 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8909
8910 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8911 (aarch64_save_callee_saves): New function to handle reg save
8912 for both core and vectore regs.
8913
8914 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8915
8916 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8917 (aarch64_gen_store_pair): New helper function.
8918 (aarch64_save_or_restore_callee_save_registers)
8919 (aarch64_save_or_restore_fprs): Use new helper functions.
8920
8921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8922
8923 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8924 (aarch64_save_or_restore_callee_save_registers)
8925 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8926
8927 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8928
8929 * config/aarch64/aarch64.c
8930 (aarch64_save_or_restore_callee_save_registers)
8931 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8932
8933 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8934
8935 * config/aarch64/aarch64.c
8936 (aarch64_save_or_restore_callee_save_registers)
8937 (aarch64_save_or_restore_fprs): Remove 'increment'.
8938
8939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8940
8941 * config/aarch64/aarch64.c
8942 (aarch64_save_or_restore_callee_save_registers)
8943 (aarch64_save_or_restore_fprs): Use register offset in
8944 cfun->machine->frame.reg_offset.
8945
8946 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8947
8948 * config/aarch64/aarch64.c
8949 (aarch64_save_or_restore_callee_save_registers)
8950 (aarch64_save_or_restore_fprs): Remove base_rtx.
8951
8952 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8953
8954 * config/aarch64/aarch64.c
8955 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8956 to 'start_offset'. Remove local variable 'start_offset'.
8957
8958 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8959
8960 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8961 type to HOST_WIDE_INT.
8962
8963 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8964
8965 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8966 (aarch64_save_or_restore_fprs)
8967 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8968
8969 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8970
8971 * config/arm/t-rtems-eabi: Add
8972 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8973 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8974 mbig-endian/mthumb/march=armv7-r, and
8975 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8976 multilibs.
8977
8978 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8979 Chris Johns <chrisj@rtems.org>
8980 Joel Sherrill <joel.sherrill@oarcorp.com>
8981
8982 * config.gcc: Add nios2-*-rtems*.
8983 * config/nios2/rtems.h: New file.
8984 * gcc/config/nios2/t-rtems: New file.
8985
8986 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8987
8988 PR target/61396
8989 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8990 constant numbers, not general constants.
8991 (rs6000_expand_vector_init): Ditto.
8992
8993 2014-07-23 Nathan Sidwell <nathan@acm.org>
8994
8995 * gcov-tool.c (gcov_list): Declare here.
8996 (set_gcov_list): Remove.
8997 (gcov_output_files): Set gcov_list directly.
8998
8999 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9000
9001 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9002
9003 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9004
9005 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9006 callee-saved registers are available for padding purpose
9007 and r3 is not mandatory, then prefer use those callee-saved
9008 instead of r3.
9009
9010 2014-07-23 Richard Biener <rguenther@suse.de>
9011
9012 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9013 * combine.c: Include statistics.h and params.h.
9014 (combine_instructions): Guard three and four insn combines
9015 with max-combine-insns value. Record statistics for combines
9016 performed.
9017 * doc/invoke.texi (max-combine-insns): Document new param.
9018
9019 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9020
9021 * graphite-isl-ast-to-gimple.c:
9022 (translate_isl_ast_node_block): New function.
9023 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9024
9025 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9026 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9027
9028 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9029
9030 * graphite-isl-ast-to-gimple.c:
9031 (get_max_schedule_dimensions): New function.
9032 (extend_schedule): Likewise.
9033 (generate_isl_schedule): Add calling of extend_schedule and
9034 get_max_schedule_dimensions.
9035
9036 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9037
9038 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9039 (case UNSPEC): Handle UNSPEC_RBIT.
9040
9041 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9042
9043 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9044 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9045
9046 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9047
9048 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9049
9050 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9051
9052 * graphite-isl-ast-to-gimple.c:
9053 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9054 (ivs_params_clear):
9055 (build_iv_mapping): New function.
9056 (translate_isl_ast_node_user): Likewise.
9057 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9058
9059 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9060 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9061 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9062
9063 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9064
9065 PR target/55701
9066 * config/arm/arm.md (setmem): New pattern.
9067 * config/arm/arm-protos.h (struct tune_params): New fields.
9068 (arm_gen_setmem): New prototype.
9069 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9070 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9071 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9072 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9073 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9074 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9075 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9076 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9077 (arm_const_inline_cost): New function.
9078 (arm_block_set_max_insns): New function.
9079 (arm_block_set_non_vect_profit_p): New function.
9080 (arm_block_set_vect_profit_p): New function.
9081 (arm_block_set_unaligned_vect): New function.
9082 (arm_block_set_aligned_vect): New function.
9083 (arm_block_set_unaligned_non_vect): New function.
9084 (arm_block_set_aligned_non_vect): New function.
9085 (arm_block_set_vect, arm_gen_setmem): New functions.
9086
9087 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9088
9089 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9090
9091 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9092
9093 PR target/61855
9094 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9095 out of #ifdef __OPTIMIZE__.
9096
9097 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9098
9099 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9100 different trapping status if -fnon-call-exceptions is enabled.
9101
9102 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9103
9104 * expr.c (store_field): Handle VOIDmode for calls that return values
9105 in multiple locations.
9106
9107 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9108
9109 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9110 (altivec_vsldoi_<mode>): Likewise.
9111
9112 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9113
9114 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9115 to the number of characters in the line.
9116
9117 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9118
9119 * graphite-isl-ast-to-gimple.c: Add using of
9120 build_nonstandard_integer_type instead of int128_integer_type_node.
9121
9122 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9123
9124 * toplev.c (output_stack_usage): Adjust the location of the warning.
9125
9126 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9127
9128 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9129 (*membar_storeload): Disable for LEON3.
9130
9131 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9132
9133 PR rtl-optimization/61461
9134 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9135
9136 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9137
9138 PR target/61794
9139 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9140 Fix instruction constraint.
9141 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9142
9143 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9144
9145 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9146
9147 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9148
9149 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9150 GNU coding standards.
9151 (nds32_register_move_cost): Likewise.
9152 (nds32_memory_move_cost): Likewise.
9153 (nds32_address_cost): Likewise.
9154
9155 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9156
9157 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9158
9159 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9160
9161 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9162 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9163 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9164 (HAVE_sync_compare_and_swapqi): Define.
9165 (HAVE_sync_compare_and_swaphi): Likewise.
9166 (HAVE_sync_compare_and_swapsi): Likewise.
9167
9168 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9169
9170 * config/mips/p5600.md: Add missing cpu tests.
9171
9172 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9173
9174 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9175 (vmla_f64): Likewise.
9176 (vfms_f64): Likewise.
9177 (vmls_f64): Likewise.
9178
9179 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9180
9181 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9182 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9183
9184 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9185
9186 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9187 (vmlal_high_lane_s32): Likewise.
9188 (vmlal_high_lane_u16): Likewise.
9189 (vmlal_high_lane_u32): Likewise.
9190 (vmlsl_high_lane_s16): Likewise.
9191 (vmlsl_high_lane_s32): Likewise.
9192 (vmlsl_high_lane_u16): Likewise.
9193 (vmlsl_high_lane_u32): Likewise.
9194
9195 2014-07-17 Terry Guo <terry.guo@arm.com>
9196
9197 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9198 (alus_reg): Renamed to alus_sreg.
9199 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9200 from alu_reg to alu_sreg. Change type of dsp instructions from
9201 alu_reg to alu_dsp_reg.
9202 * config/arm/thumb1.md: Likewise.
9203 * config/arm/thumb2.md: Likewise.
9204 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9205 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9206 with alu_sreg and alus_sreg.
9207 * config/arm/arm1026ejs.md (alu_op): Likewise.
9208 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9209 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9210 * config/arm/fa526.md (526_alu_op): Likewise.
9211 * config/arm/fa606te.md (606te_alu_op): Likewise.
9212 * config/arm/fa626te.md (626te_alu_op): Likewise.
9213 * config/arm/fa726te.md (726te_alu_op): Likewise.
9214 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9215 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9216 alu_sreg, alu_dsp_reg and alus_sreg.
9217 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9218 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9219 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9220 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9221 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9222 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9223 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9224 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9225 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9226 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9227 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9228 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9229 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9230 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9231 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9232 alus_reg to alus_sreg.
9233
9234 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9235
9236 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9237 infinity format.
9238
9239 2014-07-17 Richard Biener <rguenther@suse.de>
9240
9241 PR rtl-optimization/61801
9242 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9243 don't set reg_pending_barrier if it appears in a debug-insn.
9244
9245 2014-07-16 DJ Delorie <dj@redhat.com>
9246
9247 * config/rx/rx.c (rx_option_override): Fix alignment values.
9248 (rx_align_for_label): Likewise.
9249
9250 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9251
9252 PR target/61737.
9253 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9254 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9255 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9256 functions.
9257 (cris_print_index, cris_print_operand, cris_constant_index_p)
9258 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9259 (cris_address_cost): Ditto last CONSTANT_P.
9260 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9261 callers changed. Yield cris_offsettable_symbol for non-PIC
9262 constant symbolic expressions including labels. Yield cris_unspec
9263 for all unspecs.
9264 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9265 target to pic_offset_table_rtx for calls that will likely go
9266 through PLT, const0_rtx when they can't. All callers changed.
9267 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9268 symbolic expressions to be PICified. Remove second, redundant,
9269 assert on can_create_pseudo_p returning non-zero. Use
9270 replace_equiv_address_nv, not replace_equiv_address, for final
9271 operand update.
9272 * config/cris/cris.md ("movsi"): Move variable t to pattern
9273 toplevel. Adjust assert for new cris_symbol_type member. Use
9274 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9275 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9276 for lapc stricter.
9277 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9278 ("call", "call_value"): Use second incoming operand as a marker
9279 for pic-offset-table-register being used.
9280 ("*expanded_call_non_v32", "*expanded_call_v32")
9281 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9282 second incoming operand to CALL, match cris_call_type_marker.
9283 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9284 ("*expanded_call_side"): Ditto. Fix typo in comment.
9285 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9286 CONSTANT_P.
9287 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9288 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9289 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9290 users changed. Add members cris_offsettable_symbol and cris_unspec.
9291 (cris_symbol_type): Rename from cris_pic_symbol_type.
9292 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9293 just CONSTANT_P.
9294 * config/cris/cris-protos.h (cris_symbol_type_of,
9295 cris_expand_pic_call_address): Adjust prototypes.
9296 (cris_legitimate_constant_p): New prototype.
9297
9298 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9299 an existing tmake_file. Don't add t-slibgcc and t-linux.
9300
9301 2014-07-17 Jason Merrill <jason@redhat.com>
9302
9303 PR c++/61623
9304 * symtab.c (symtab_remove_from_same_comdat_group): Also
9305 set_comdat_group to NULL_TREE.
9306 (verify_symtab): Fix diagnostic.
9307
9308 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9309
9310 PR target/61662
9311 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9312
9313 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9314
9315 Support location tracking for built-in macro tokens
9316 * input.h (is_location_from_builtin_token): New function declaration.
9317 * input.c (is_location_from_builtin_token): New function definition.
9318 * toplev.c (general_init): Tell libcpp what the pre-defined
9319 spelling location for built-in tokens is.
9320
9321 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9322
9323 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9324 on the FUNCTION_DECL.
9325
9326 2014-07-16 Richard Biener <rguenther@suse.de>
9327
9328 PR other/61782
9329 * doc/extend.texi (always_inline): Clarify.
9330
9331 2014-07-15 Eric Christopher <echristo@gmail.com>
9332
9333 * doc/invoke.texi (Link Options): Document -z option.
9334
9335 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9336
9337 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9338 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9339
9340 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9341
9342 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9343
9344 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9345
9346 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9347 varpool_assemble_decl.
9348 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9349 true.
9350
9351 2014-07-15 Michael Matz <matz@suse.de>
9352
9353 PR rtl-optimization/61772
9354 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9355
9356 2014-07-15 Richard Biener <rguenther@suse.de>
9357
9358 * opts.c (default_options_table): Disable bit-ccp at -Og.
9359
9360 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9361
9362 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9363
9364 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9365
9366 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9367 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9368 call langhook for unknown declaration.
9369 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9370 * tree.h (DECL_ARGUMENTS): Update.
9371 * print-tree.c (print_node): Update.
9372 * tree-core.h (tree_decl_non_common): Remove arguments.
9373 (tree_function_decl): Add arguments.
9374
9375 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9376
9377 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9378
9379 2014-07-14 Richard Biener <rguenther@suse.de>
9380
9381 PR tree-optimization/61779
9382 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9383 simplifying a condition.
9384
9385 2014-07-14 Richard Biener <rguenther@suse.de>
9386
9387 * builtins.c (c_strlen): Make only_value == 2 really only
9388 affect warning generation.
9389
9390 2014-07-14 Richard Biener <rguenther@suse.de>
9391
9392 PR tree-optimization/61757
9393 PR tree-optimization/61783
9394 PR tree-optimization/61787
9395 * tree-ssa-dom.c (record_equality): Revert canonicalization
9396 change and add comment.
9397 (propagate_rhs_into_lhs): Revert previous fix, removing
9398 loop depth restriction again.
9399
9400 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9401
9402 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9403 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9404 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9405 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9406 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9407 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9408 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9409
9410 2014-07-14 Richard Biener <rguenther@suse.de>
9411
9412 * cgraph.h (decl_in_symtab_p): Make inline.
9413
9414 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9415
9416 PR middle-end/61294
9417 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9418
9419 PR target/61656
9420 * config/i386/i386.c (classify_argument): Don't merge classes above
9421 number of words.
9422
9423 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9424
9425 * cgraph.h (symtab_node): Add nonzero_address.
9426 (decl_in_symtab_p): Break out from ...
9427 (symtab_get_node): ... here.
9428 * fold-const.c: Include cgraph.h
9429 (tree_single_nonzero_warnv_p): Use symtab to determine
9430 if symbol is non-zero.
9431 * symtab.c (symtab_node::nonzero_address): New method.
9432
9433 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9434
9435 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9436 forgotten in previous commit.
9437
9438 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9439
9440 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9441 on builtin types.
9442 * ipa-devirt.c: Include stor-layout.h and intl.h
9443 (odr_subtypes_equivalent_p): New function.
9444 (warn_odr): New function.
9445 (warn_type_mismatch): New function.
9446 (odr_types_equivalent_p): New function.
9447 (add_type_duplicate): Use it.
9448 * common.opt (Wodr): New flag.
9449 * doc/invoke.texi (Wodr): Document new warning.
9450
9451 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9452
9453 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9454 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9455 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9456 (varpool_get_constructor): Push CTORS_IN timevar.
9457 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9458
9459 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9460
9461 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9462 Remove VOID_FTYPE_PUSHORT.
9463 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9464 Change code to USHORT_FTYPE_VOID.
9465 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9466 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9467 (ix86_atomic_assign_expand_fenv): Update for
9468 __builtin_ia32_fnstsw changes.
9469 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9470 (fnstsw): Change operand 0 to nonimmediate operand.
9471
9472 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9473
9474 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9475 (varpool_get_constructor): New function.
9476 (varpool_ctor_useable_for_folding_p): Break out from ...
9477 (ctor_for_folding): ... here; use varpool_get_constructor.
9478 (varpool_assemble_decl): Likewise.
9479 * lto-streamer.h (struct output_block): Turn cgraph_node
9480 to symbol filed.
9481 (lto_input_variable_constructor): Declare.
9482 * ipa-visibility.c (function_and_variable_visibility): Use
9483 varpool_get_constructor.
9484 * cgraph.h (varpool_get_constructor): Declare.
9485 (varpool_ctor_useable_for_folding_p): New function.
9486 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9487 parameter; return error_mark_node for non-trivial constructors.
9488 (lto_write_tree_1, DFS_write_tree): Update use of
9489 get_symbol_initial_value.
9490 (output_function): Update initialization of symbol.
9491 (output_constructor): New function.
9492 (copy_function): Rename to ..
9493 (copy_function_or_variable): ... this one; handle vars too.
9494 (lto_output): Output variable sections.
9495 * lto-streamer-in.c (input_constructor): New function.
9496 (lto_read_body): Rename from ...
9497 (lto_read_body_or_constructor): ... this one; handle vars too.
9498 (lto_input_variable_constructor): New function.
9499 * ipa-prop.c (ipa_prop_write_jump_functions,
9500 ipa_prop_write_all_agg_replacement): Update.
9501 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9502 (output_cgraph_opt_summary): Set symbol to NULL.
9503
9504 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9505
9506 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9507 non-polymorphic types.
9508 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9509 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9510 of types is not polymorphic.
9511
9512 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9513
9514 * lra-constraints.c (remove_inheritance_pseudos): Process
9515 destination pseudo too.
9516
9517 2014-07-11 Rong Xu <xur@google.com>
9518
9519 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9520 commit r212448.
9521
9522 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9523
9524 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9525 * config/avr/avr-devices.c (AVR_MCU): Same.
9526 (avr_mcu_types): add text start value to end of device list.
9527 * config/avr/avr-mcus.def: Add text section start for all devices.
9528 (ata5782): Add new avr5 device.
9529 (ata5831): Same.
9530 * config/avr/avr-tables.opt: Regenerate.
9531 * config/avr/avr.h: Add declaration for text section start handler.
9532 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9533 SPEC functions.
9534 (LINK_SPEC): Include text section start handler to linker spec.
9535 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9536 pass -Ttext option to linker if the text section start for the device
9537 is not zero.
9538 * config/avr/t-multilib: Regenerate.
9539 * doc/avr-mmcu.texi: Regenerate.
9540
9541 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9542
9543 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9544 * config/rs6000/aix52.h (LINK_SPEC): Same.
9545 * config/rs6000/aix53.h (LINK_SPEC): Same.
9546 * config/rs6000/aix61.h (LINK_SPEC): Same.
9547 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9548
9549 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9550
9551 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9552 (graphite_verify): New function.
9553 (ivs_params_clear): New function.
9554 (gcc_expression_from_isl_ast_expr_id): New function.
9555 (gcc_expression_from_isl_expr_int): New function.
9556 (binary_op_to_tree): New function.
9557 (ternary_op_to_tree): New function.
9558 (unary_op_to_tree): New function.
9559 (nary_op_to_tree): New function.
9560 (gcc_expression_from_isl_expr_op): New function.
9561 (gcc_expression_from_isl_expression): New function.
9562 (graphite_create_new_loop): New function.
9563 (translate_isl_ast_for_loop): New function.
9564 (get_upper_bound): New function.
9565 (graphite_create_new_loop_guard): New function.
9566 (translate_isl_ast_node_for): New function.
9567 (translate_isl_ast): New function.
9568 (add_parameters_to_ivs_params): New function.
9569 (scop_to_isl_ast): New parameter ip.
9570 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9571
9572 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9573
9574 * config/xtensa/predicates.md (call expander): Update for
9575 DECL_SECTION_NAME being string.
9576
9577 2014-07-11 Richard Biener <rguenther@suse.de>
9578
9579 PR middle-end/61473
9580 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9581 can be implemented with a single load followed by a single store.
9582 (c_strlen): Only warn when only_value is not 2.
9583
9584 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9585
9586 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9587
9588 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9589
9590 PR target/61561
9591 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9592 (*movhi_bytes): Likewise.
9593 (*arm_movqi_insn): Likewise.
9594
9595 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9596
9597 PR target/56858
9598 * config/alpha/alpha.c: Include tree-pass.h, context.h
9599 and pass_manager.h.
9600 (pass_data_handle_trap_shadows): New pass.
9601 (pass_handle_trap_shadows::gate): New pass gate function.
9602 (make_pass_handle_trap_shadows): New function.
9603 (rest_of_handle_trap_shadows): Ditto.
9604
9605 (alpha_align_insns_1): Rename from alpha_align_insns.
9606 (pass_data_align_insns): New pass.
9607 (pass_align_insns::gate): New pass gate function.
9608 (make_pass_aling_insns): New function.
9609 (rest_of_align_insns): Ditto.
9610 (alpha_align_insns): Ditto.
9611
9612 (alpha_option_override): Declare handle_trap_shadows info
9613 and align_insns_info. Register handle_trap_shadows and align_insns
9614 passes here.
9615 (alpha_reorg): Do not call alpha_trap_shadows and
9616 alpha_align_insn from here.
9617
9618 (alpha_pad_function_end): Do not skip BARRIERs.
9619
9620 2014-07-10 Rong Xu <xur@google.com>
9621
9622 Add gcov-tool: an offline gcda profile processing tool support.
9623 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9624 (gcov_is_error): Ditto.
9625 (gcov_read_string): Ditto.
9626 (gcov_read_sync): Ditto.
9627 * gcov-io.h: Move counter defines to gcov-counter.def.
9628 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9629 * coverage.c: Ditto.
9630 * gcov-tool.c: Offline gcda profile processing tool.
9631 (unlink_gcda_file): Remove one gcda file.
9632 (unlink_profile_dir): Remove gcda files from the profile path.
9633 (gcov_output_files): Output gcda files to an output dir.
9634 (profile_merge): Merge two profiles in directory.
9635 (print_merge_usage_message): Print merge usage.
9636 (merge_usage): Print merge usage and exit.
9637 (do_merge): Driver for profile merge sub-command.
9638 (profile_rewrite): Rewrite profile.
9639 (print_rewrite_usage_message): Print rewrite usage.
9640 (rewrite_usage): Print rewrite usage and exit.
9641 (do_rewrite): Driver for profile rewrite sub-command.
9642 (print_usage): Print gcov-info usage and exit.
9643 (print_version): Print gcov-info version.
9644 (process_args): Process arguments.
9645 (main): Main routine for gcov-tool.
9646 * Makefile.in: Build and install gcov-tool.
9647 * gcov-counter.def: New file split from gcov-io.h.
9648 * doc/gcc.texi: Include gcov-tool.texi.
9649 * doc/gcov-tool.texi: Document for gcov-tool.
9650
9651 2014-07-10 Richard Biener <rguenther@suse.de>
9652
9653 PR tree-optimization/61757
9654 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9655 (propagate_rhs_into_lhs): Revert part of last change.
9656
9657 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9658
9659 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9660 FUNCTION_DECLs.
9661
9662 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9663
9664 PR middle-end/53590
9665 * function.c (allocate_struct_function): Revert r188667 change.
9666
9667 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9668
9669 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9670
9671 * doc/install.texi: Remove links to defunct package providers for
9672 Solaris.
9673
9674 2014-07-09 Tom de Vries <tom@codesourcery.com>
9675
9676 * final.c (get_call_fndecl): Declare.
9677 (self_recursive_call_p): New function.
9678 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9679
9680 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9681
9682 * ipa-devirt.c (record_node): Walk through aliases.
9683
9684 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9685
9686 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9687
9688 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9689
9690 Revert:
9691 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9692
9693 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9694
9695 * ipa-visibility.c (function_and_variable_visibility): Remove
9696 temporary hack disabling local aliases on AIX.
9697
9698 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9699
9700 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9701 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9702
9703 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9704
9705 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9706 * rs6000/rs6000.c: Inline output of .set instruction.
9707 (declare_alias_data): New struct.
9708 (rs6000_declare_alias): New function.
9709 (rs6000_xcoff_declare_function_name): Use it.
9710 (rs6000_xcoff_declare_object_name): New function.
9711 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9712 (ASM_OUTPUT_DEF): Turn to empty definition.
9713
9714 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9715
9716 PR bootstrap/61679
9717 * hash-table.h: use hash_table::value_type instead of
9718 Descriptor::value_type in the return types of several methods.
9719
9720 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9721
9722 * tree-pass.h (pass_data): Remove has_execute member.
9723 * passes.c (execute_one_pass): Don't check pass->has_execute.
9724 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9725 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9726 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9727 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9728 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9729 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9730 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9731 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9732 gimple-low.c, gimple-ssa-isolate-paths.c,
9733 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9734 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9735 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9736 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9737 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9738 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9739 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9740 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9741 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9742 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9743 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9744 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9745 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9746 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9747 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9748 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9749 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9750 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9751 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9752 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9753 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9754 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9755 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9756 web.c: Remove initializer for pass_data::has_execute.
9757
9758 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9759
9760 * graphite-htab.h: Use hash_map instead of hash_table.
9761 * graphite-clast-to-gimple.c: Adjust.
9762 * passes.c: Use hash_map instead of hash_table.
9763 * sese.c: Likewise.
9764 * sese.h: Remove now unused code.
9765
9766 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9767
9768 PR target/61599
9769 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9770 than zero.
9771
9772 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9773
9774 PR rtl-optimization/61673
9775 * combine.c (simplify_comparison): Test just mode's sign bit
9776 in tmode rather than the sign bit and any bits above it.
9777
9778 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9779
9780 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9781 Add __isl_give to the declaration.
9782 (generate_isl_schedule): Likewise.
9783 (scop_to_isl_ast): Likewise.
9784
9785 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9786
9787 * config/arm/arm.c (cortexa5_extra_costs): New table.
9788 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9789
9790 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9791
9792 PR tree-optimization/61725
9793 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9794 range, use range_includes_zerop_p instead of integer_zerop on
9795 vr0->min, only use log2 of max if min is not negative.
9796
9797 2014-07-08 Richard Biener <rguenther@suse.de>
9798
9799 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9800 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9801 restriction on loop depth difference.
9802 (record_equality): Likewise.
9803 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9804 (loop_depth_of_name): Remove.
9805 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9806 restriction on loop depth difference.
9807 (init_copy_prop): Likewise.
9808
9809 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9810
9811 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9812 parameter.
9813 (walk_aliased_vdefs): Likewise.
9814 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9815 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9816 (detect_type_change_from_memory_writes): Check if entry was reached.
9817
9818 2014-07-08 Richard Biener <rguenther@suse.de>
9819
9820 PR tree-optimization/61681
9821 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9822 NONLOCAL inside ESCAPED.
9823
9824 2014-07-08 Richard Biener <rguenther@suse.de>
9825
9826 PR tree-optimization/61680
9827 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9828 Handle properly all read-write dependences with group accesses.
9829
9830 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9831
9832 PR tree-optimization/61576
9833 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9834 block containing reduction statement is predecessor of phi basi block.
9835
9836 2014-07-08 Marek Polacek <polacek@redhat.com>
9837
9838 PR c/60226
9839 * fold-const.c (round_up_loc): Change the parameter type.
9840 Remove assert.
9841 * fold-const.h (round_up_loc): Adjust declaration.
9842 * stor-layout.c (finalize_record_size): Check for too large types.
9843
9844 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9845
9846 * symtab.c: Include calls.h.
9847 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9848
9849 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9850
9851 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9852 little-endian code generation.
9853 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9854 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9855 (spe_evmergehilo): Rename to...
9856 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9857 (spe_evmergelo): Rename to...
9858 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9859 (spe_evmergelohi): Rename to...
9860 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9861 (spe_evmergehi, spe_evmergehilo): New expanders.
9862 (spe_evmergelo, spe_evmergelohi): Likewise.
9863 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9864 (*frob_tf_ti): Likewise.
9865 (*frob_<mode>_di_2): Likewise.
9866 (*frob_tf_di_8_2): Likewise.
9867 (*frob_di_<mode>): Likewise.
9868 (*frob_ti_tf): Likewise.
9869 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9870 (*frob_ti_<mode>_8_2): Likewise.
9871 (*frob_ti_tf_2): Likewise.
9872 (mov_si<mode>_e500_subreg0): Rename to...
9873 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9874 endianness only.
9875 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9876 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9877 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9878 the big endianness only.
9879 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9880 (*mov_si<mode>_e500_subreg0_2): Rename to...
9881 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9882 big big endianness only.
9883 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9884 (*mov_si<mode>_e500_subreg4): Rename to...
9885 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9886 endianness only.
9887 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9888 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9889 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9890 the big endianness only.
9891 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9892 pattern.
9893 (*mov_si<mode>_e500_subreg4_2): Rename to...
9894 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9895 endianness only.
9896 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9897 (*mov_sitf_e500_subreg8): Rename to...
9898 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9899 endianness only.
9900 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9901 (*mov_sitf_e500_subreg8_2): Rename to...
9902 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9903 endianness only.
9904 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9905 (*mov_sitf_e500_subreg12): Rename to...
9906 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9907 endianness only.
9908 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9909 (*mov_sitf_e500_subreg12_2): Rename to...
9910 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9911 endianness only.
9912 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9913
9914 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9915
9916 * asan.c (instrument_strlen_call): Do not instrument first byte
9917 in strlen if already instrumented.
9918
9919 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9920
9921 * config/arm/arm.opt (mwords-little-endian): Delete.
9922 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9923 of TARGET_LITTLE_WORDS.
9924 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9925 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9926 warning.
9927 * doc/invoke.texi: Remove references to -mwords-little-endian.
9928
9929 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9930
9931 * expmed.c (struct init_expmed_rtl): Change all fields but
9932 pow2 and cint from struct rtx_def to rtx.
9933 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9934 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9935 at the end again.
9936
9937 2014-07-06 Marek Polacek <polacek@redhat.com>
9938
9939 PR c/6940
9940 * doc/invoke.texi: Document -Wsizeof-array-argument.
9941
9942 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9943
9944 * wide-int.h (wide_int_storage): Change declaration from struct
9945 to class.
9946
9947 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9948
9949 * cgraph.c (cgraph_create_indirect_edge): Update call of
9950 get_polymorphic_call_info.
9951 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9952 (possible_polymorphic_call_targets): Add parameter call.
9953 (decl_maybe_in_construction_p): New predicate.
9954 (get_polymorphic_call_info): Add parameter call;
9955 use decl_maybe_in_construction_p.
9956 * gimple-fold.c (fold_gimple_assign): Update use of
9957 possible_polymorphic_call_targets.
9958 (gimple_fold_call): Likewise.
9959 * ipa-prop.c: Inlcude calls.h
9960 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9961 (param_type_may_change_p): New predicate.
9962 (detect_type_change_from_memory_writes): Break out from ...
9963 (detect_type_change): ... this one; use param_type_may_change_p.
9964 (detect_type_change_ssa): Use param_type_may_change_p.
9965 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9966
9967 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9968
9969 PR target/49423
9970 * config/arm/arm-protos.h (arm_legitimate_address_p,
9971 arm_is_constant_pool_ref): Add prototypes.
9972 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9973 (arm_is_constant_pool_ref) New function.
9974 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9975 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9976 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9977 operand. Remove pool_range and neg_pool_range attributes.
9978 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9979 pool_range and neg_pool_range attributes.
9980 * config/arm/constraints.md (Uh): New constraint.
9981 (Uq): Don't allow constant pool references.
9982
9983 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9984
9985 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9986 (move_lo_quad_internal_be_<mode>): Likewise.
9987 (move_lo_quad_<mode>): Convert to define_expand.
9988 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9989 (aarch64_simd_move_hi_quad_be_<mode>): New.
9990 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9991 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9992 (aarch64_combinez_be<mode>): New.
9993 (aarch64_combine<mode>): Convert to define_expand.
9994 (aarch64_combine_internal<mode>): New.
9995 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9996
9997 2014-07-04 Tom de Vries <tom@codesourcery.com>
9998
9999 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10000 combination of earlyclobber and read/write modifiers.
10001
10002 2014-07-04 Tom de Vries <tom@codesourcery.com>
10003
10004 * config/aarch64/aarch64-simd.md
10005 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10006
10007 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10008
10009 PR target/61714
10010 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10011
10012 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10013
10014 PR middle-end/61654
10015 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10016
10017 PR tree-optimization/61684
10018 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10019 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10020
10021 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10022 Kito Cheng <kito@0xlab.org>
10023 Monk Chiang <sh.chiang04@gmail.com>
10024
10025 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10026 (nds32_symbol_load_store_p): Move to ...
10027 (nds32_fp_as_gp_check_available): Move to ...
10028 * config/nds32/nds32-fp-as-gp.c: ... here.
10029 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10030 extern declaration.
10031
10032 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10033 Kito Cheng <kito@0xlab.org>
10034 Monk Chiang <sh.chiang04@gmail.com>
10035
10036 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10037 (nds32_expand_store_multiple): Move to ...
10038 (nds32_expand_movmemqi): Move to ...
10039 * config/nds32/nds32-memory-manipulation.c: ... here.
10040
10041 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10042 Kito Cheng <kito@0xlab.org>
10043 Monk Chiang <sh.chiang04@gmail.com>
10044
10045 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10046 (nds32_output_casesi_pc_relative): Move to ...
10047 (nds32_output_casesi): Move to ...
10048 (nds32_mem_format): Move to ...
10049 (nds32_output_16bit_store): Move to ...
10050 (nds32_output_16bit_load): Move to ...
10051 (nds32_output_32bit_store): Move to ...
10052 (nds32_output_32bit_load): Move to ...
10053 (nds32_output_32bit_load_s): Move to ...
10054 (nds32_output_stack_push): Move to ...
10055 (nds32_output_stack_pop): Move to ...
10056 * config/nds32/nds32-md-auxiliary.c: ... here.
10057
10058 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10059 Ling-Hua Tseng <uranus@tinlans.org>
10060
10061 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10062 the purpose of this file.
10063
10064 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10065 Kito Cheng <kito@0xlab.org>
10066 Monk Chiang <sh.chiang04@gmail.com>
10067
10068 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10069 (nds32_address_cost): Move implementation to ...
10070 * config/nds32/nds32-cost.c: ... here.
10071 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10072 (nds32_address_cost_impl): Declare.
10073
10074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10075 Kito Cheng <kito@0xlab.org>
10076 Monk Chiang <sh.chiang04@gmail.com>
10077
10078 * config/nds32/nds32.c
10079 (nds32_consecutive_registers_load_store_p): Move to ...
10080 (nds32_valid_multiple_load_store): Move to ...
10081 (nds32_valid_stack_push_pop): Move to ...
10082 (nds32_can_use_bclr_p): Move to ...
10083 (nds32_can_use_bset_p): Move to ...
10084 (nds32_can_use_btgl_p): Move to ...
10085 (nds32_can_use_bitci_p): Move to ...
10086 * config/nds32/nds32-predicates.c: ... here.
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/nds32/nds32.c
10093 (nds32_expand_builtin_null_ftype_reg): Move to ...
10094 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10095 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10096 (nds32_init_builtins): Move implementation to ...
10097 (nds32_expand_builtin): Move implementation to ...
10098 * config/nds32/nds32-intrinsic.c: ... here.
10099 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10100 (nds32_expand_builtin_impl): Declare.
10101
10102 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10103 Kito Cheng <kito@0xlab.org>
10104 Monk Chiang <sh.chiang04@gmail.com>
10105
10106 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10107 (nds32_emit_section_tail_template): Move to ...
10108 (nds32_emit_isr_jmptbl_section): Move to ...
10109 (nds32_emit_isr_vector_section): Move to ...
10110 (nds32_emit_isr_reset_conten): Move to ...
10111 (nds32_check_isr_attrs_conflict): Move to ...
10112 (nds32_construct_isr_vectors_information): Move to ...
10113 (nds32_asm_file_start): Move implementation to ...
10114 (nds32_asm_file_end): Move implementation to ...
10115 * config/nds32/nds32-isr.c: ... here.
10116 * config/nds32/nds32-protos.h
10117 (nds32_check_isr_attrs_conflict): Declare.
10118 (nds32_construct_isr_vectors_information): Declare.
10119 (nds32_asm_file_start_for_isr): Declare.
10120 (nds32_asm_file_end_for_isr): Declare.
10121
10122 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10123 Kito Cheng <kito@0xlab.org>
10124 Monk Chiang <sh.chiang04@gmail.com>
10125
10126 * config.gcc (nds32*): Add new modules to extra_objs.
10127 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10128 (nds32be-*-*): Likewise.
10129 * config/nds32/nds32-cost.c: New file.
10130 * config/nds32/nds32-fp-as-gp.c: New file.
10131 * config/nds32/nds32-intrinsic.c: New file.
10132 * config/nds32/nds32-isr.c: New file.
10133 * config/nds32/nds32-md-auxiliary.c: New file.
10134 * config/nds32/nds32-memory-manipulation.c: New file.
10135 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10136 * config/nds32/nds32-predicates.c: New file.
10137 * config/nds32/t-nds32: New file.
10138
10139 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10140
10141 PR tree-optimization/61682
10142 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10143 using cases and when one of the operands is equal to 1.
10144
10145 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10146
10147 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10148 ashr<mode>3): Correct mode of operands[2].
10149 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10150 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10151 Correct mode of operands[2]. Fix split condition.
10152
10153 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10154
10155 * arm.md (arch): Add armv6_or_vfpv3.
10156 (arch_enabled): Add test for the above.
10157 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10158 on VFP9.
10159 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10160
10161 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10162
10163 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10164 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10165 HWI 1 and negate the unsigned value.
10166 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10167 use AND instead of shift.
10168 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10169
10170 2014-07-03 Marek Polacek <polacek@redhat.com>
10171
10172 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10173 (-fsanitize=float-divide-by-zero): Move to the table with
10174 -fsanitize=undefined suboptions.
10175 (-fsanitize=float-cast-overflow): Likewise.
10176
10177 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10178
10179 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10180 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10181 endianness.
10182
10183 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10184
10185 * loop-invariant.c (struct invariant): Add a new member: eqno;
10186 (find_identical_invariants): Update eqno;
10187 (create_new_invariant): Init eqno;
10188 (get_inv_cost): Compute comp_cost with eqno;
10189
10190 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10191
10192 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10193 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10194 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10195 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10196 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10197
10198 2014-07-02 Christian Bruel <christian.bruel@st.com>
10199
10200 PR target/29349
10201 PR target/53513
10202 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10203 (make_preds_opaque): Delete.
10204 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10205 (commit_mode_sets): New function.
10206 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10207 Process all modes at once.
10208 * basic-block.h (pre_edge_lcm_avs): Declare.
10209 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10210 Call clear_aux_for_edges. Fix comments.
10211 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10212 (pre_edge_rev_lcm): Idem.
10213 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10214 parameter.
10215 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10216 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10217 Idem.
10218 * config/i386/i386.c (x96_emit_mode_set): Idem.
10219 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10220 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10221 (fpscr_toggle) Disallow from delay slot.
10222 * target.def (emit_mode_set): Add prev_mode parameter.
10223 * doc/tm.texi: Regenerate.
10224
10225 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10226
10227 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10228 variable i.
10229
10230 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10231
10232 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10233 vtable_pointer_value_to_vtable): Constify.
10234 (contains_polymorphic_type_p): Declare.
10235 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10236 vtable_pointer_value_to_vtable): Constify.
10237 (contains_polymorphic_type_p): New predicate.
10238 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10239 polymorphic types.
10240 (ipa_set_ancestor_jf): Likewise.
10241 (detect_type_change): Return false in easy cases.
10242 (compute_complex_assign_jump_func): Require type to contain
10243 polymorphic type.
10244 (compute_known_type_jump_func): Likewise.
10245
10246 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10247
10248 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10249 Remove.
10250 (type_in_anonymous_namespace_p): Constify argument.
10251 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10252 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10253 (main_odr_variant): New function.
10254 (hash_type_name): Make static; update assert; do not ICE on
10255 non-records.
10256 (types_same_for_odr): Bring here from tree.c; simplify and remove
10257 old structural comparing code that doesn't work for templates.
10258 (odr_hasher::equal): Update assert.
10259 (add_type_duplicate): Return true when bases should be computed;
10260 replace incomplete loader by complete; do not output duplicated
10261 warnings; do not ICE on non-records; set odr_violated flag.
10262 (get_odr_type): Be ready to replace incomplete type by complete
10263 one; work on ODR variants instead of main variants; reorder item
10264 in array so bases have still smaller indexes.
10265 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10266 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10267
10268 2014-07-01 Cary Coutant <ccoutant@google.com>
10269
10270 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10271 lookup.
10272 (resolve_addr_in_expr): When replacing the rtx in a location list
10273 entry, get a new address table entry.
10274 (dwarf2out_finish): Call index_location_lists even if there are no
10275 addr_index_table entries yet.
10276
10277 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10278
10279 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10280 change for not being obvious.
10281
10282 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10283
10284 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10285 unused argument.
10286
10287 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10288
10289 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10290 (vcagt_f64): Likewise.
10291 (vcale_f64): Likewise.
10292 (vcaled_f64): Likewise.
10293 (vcales_f32): Likewise.
10294 (vcalt_f64): Likewise.
10295 (vcaltd_f64): Likewise.
10296 (vcalts_f32): Likewise.
10297
10298 2014-07-01 Marek Polacek <polacek@redhat.com>
10299
10300 * doc/invoke.texi: Document -Wint-conversion.
10301
10302 2014-07-01 Marek Polacek <polacek@redhat.com>
10303
10304 PR c/58286
10305 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10306
10307 2014-07-01 Martin Liska <mliska@suse.cz>
10308
10309 IPA REF alias refactoring
10310 * cgraph.h (iterate_direct_aliases): New function.
10311 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10312 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10313 FOR_EACH_ALIAS added.
10314 (cgraph_for_node_and_aliases): Likewise.
10315 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10316 * ipa-inline.c (reset_edge_caches): Likewise.
10317 (update_caller_keys): Likewise.
10318 * trans-mem.c (ipa_tm_execute): Likewise.
10319 *varpool.c (varpool_analyze_node): Likewise.
10320 (varpool_for_node_and_aliases): Likewise.
10321 * ipa-ref.h (first_alias): New function.
10322 (last_alias): Likewise.
10323 (has_aliases_p): Likewise.
10324 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10325 is sensitive to IPA_REF_ALIASes.
10326 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10327 are put at the beginning of the list.
10328 (symtab_node::iterate_direct_aliases): New function.
10329
10330 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10331
10332 Revert:
10333 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10334 type is complete.
10335 (write_ts_type_common_tree_pointers): Do not stream fields not set
10336 for incomplete types; do not stream duplicated fields for variants;
10337 sanity check that variant and type match.
10338 (write_ts_type_non_common_tree_pointers): Likewise.
10339 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10340 TYPE_SIZE whether type is complete.
10341 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10342 write_ts_type_common_tree_pointers
10343 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10344
10345 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10346
10347 * var-tracking.c (add_stores): Return instead of asserting if old
10348 and new values for conditional store are the same.
10349
10350 2014-06-30 Richard Henderson <rth@redhat.com>
10351
10352 PR rtl-opt/61608
10353 PR target/39284
10354 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10355 the cfg if there were any changes.
10356 * passes.def: Revert move of peephole2 after reorder_blocks;
10357 move duplicate_computed_gotos before peephole2.
10358
10359 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10360
10361 * except.c (emit_note_eh_region_end): New helper function.
10362 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10363 emit EH_REGION_END note.
10364 * jump.c (cleanup_barriers): Do not split a call and its
10365 corresponding CALL_ARG_LOCATION note.
10366
10367 2014-06-30 Jeff Law <law@redhat.com>
10368
10369 PR tree-optimization/61607
10370 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10371 deeper into the SSA_NAME_VALUE chain.
10372
10373 2014-06-30 Marek Polacek <polacek@redhat.com>
10374
10375 * convert.c (convert_to_integer): Don't instrument conversions if the
10376 function has no_sanitize_undefined attribute.
10377 * ubsan.c: Don't run the ubsan pass if the function has
10378 no_sanitize_undefined attribute.
10379
10380 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10381
10382 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10383 -fsanitize=undefined suboptions.
10384
10385 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10386
10387 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10388 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10389 against bigendian and adjust indices.
10390
10391 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10392
10393 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10394
10395 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10396
10397 PR target/61633
10398 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10399 Add alternative; make early clobber. Adjust both split patterns
10400 to use operand 0 as the working register.
10401
10402 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10403
10404 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10405 as ira_object_id_map might be NULL, or 1.
10406
10407 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10408
10409 * loop-invariant.c (get_inv_cost): Handle register class.
10410 (gain_for_invariant): Check the register pressure of the inv
10411 and its overlapped register class, other than all.
10412
10413 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10414
10415 * doc/invoke.texi (Optimize Options): Fix descriptions of
10416 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10417
10418 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10419
10420 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10421 documentation.
10422
10423 2014-06-29 Tobias Grosser <tobias@grosser.es>
10424
10425 PR bootstrap/61650
10426 * graphite-isl-ast-to-gimple.c: Add missing guards.
10427
10428 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10429
10430 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10431 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10432 * flag-types.h: Add new enum fgraphite_generator.
10433 * graphite-isl-ast-to-gimple.c: New.
10434 * graphite-isl-ast-to-gimple.h: New.
10435 * graphite.c (graphite_transform_loops): Add choice of Graphite
10436 code generator, which depends on flag_graphite_code_gen.
10437
10438 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10439
10440 * graphite-dependences.c (subtract_commutative_associative_deps):
10441 Add NULL checking of the following variables: must_raw_no_source,
10442 may_raw_no_source, must_war_no_source, may_war_no_source,
10443 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10444 must_war, may_war, must_waw, may_waw.
10445
10446 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10447
10448 * graphite-clast-to-gimple.c: gloog is renamed to
10449 graphite_regenerate_ast_cloog. gloog_error is renamed to
10450 graphite_regenerate_error.
10451 * graphite-clast-to-gimple.h: The definition of the struct
10452 bb_pbb_def is moved to graphite-htab.h.
10453 Add inclusion of the hash-table.h.
10454 * graphite-htab.h: The declaration of the function gloog is moved
10455 to graphite-clast-to-gimple.h and renamed to
10456 graphite_regenerate_ast_cloog.
10457 * graphite.c (graphite_transform_loops): gloog is renamed
10458 to graphite_regenerate_ast_cloog.
10459
10460 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10461
10462 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10463 type is complete.
10464 (write_ts_type_common_tree_pointers): Do not stream fields not set
10465 for incomplete types; do not stream duplicated fields for variants;
10466 sanity check that variant and type match.
10467 (write_ts_type_non_common_tree_pointers): Likewise.
10468 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10469 TYPE_SIZE whether type is complete.
10470 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10471 write_ts_type_common_tree_pointers
10472 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10473
10474 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10475
10476 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10477
10478 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10479
10480 * tree-inline.c (remap_type_1): Do not duplicate fields
10481 that are shared in between type and its main variant.
10482
10483 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10484
10485 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10486 of the type.
10487 (ipa_set_ancestor_jf) Likewise.
10488 (check_stmt_for_type_change): Check that we work on main variant.
10489 (detect_type_change): Look into main variant.
10490 (compute_known_type_jump_func): Check that main variant has BINFO.
10491
10492 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10493
10494 * ipa-devirt.c (set_type_binfo): New function.
10495 (add_type_duplicate): Use it.
10496 (get_odr_type): Sanity check that binfos points to main variants.
10497 (get_class_context): Be sure the context's outer_type is main variant.
10498 (contains_type_p): Walk main variant.
10499 (get_polymorphic_call_info_for_decl): Set outer_type to be
10500 main variant.
10501 (get_polymorphic_call_info): Likewise.
10502 (possible_polymorphic_call_targets): Sanity check that we operate
10503 on main variant.
10504
10505 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10506
10507 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10508
10509 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10510
10511 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10512 accidental change due to wide-int branch merge.
10513
10514 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10515
10516 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10517 compressed debug support.
10518 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10519 * configure: Regenerate.
10520 * config.in: Regenerate.
10521 * common.opt (compressed_debug_sections): New enum.
10522 (gz, gz=): New options.
10523 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10524 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10525 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10526 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10527 LINK_COMPRESS_DEBUG_SPEC.
10528 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10529 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10530 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10531 (Debugging Options): Document -gz[=type].
10532
10533 2014-06-27 Martin Jambor <mjambor@suse.cz>
10534
10535 PR ipa/61160
10536 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10537 args_to_skip, use those from node instead. Copy args_to_skip and
10538 combined_args_to_skip from node to the new thunk.
10539 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10540 (cgraph_create_virtual_clone): Moved computation of
10541 combined_args_to_skip...
10542 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10543
10544 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10545
10546 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10547 redundant diagnostic machinary.
10548
10549 2014-06-27 Richard Biener <rguenther@suse.de>
10550
10551 * tree-ssa-math-opts.c (bswap_replace): Fix
10552 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10553
10554 2014-06-27 Martin Liska <mliska@suse.cz>
10555
10556 * gimple.h (gimple_location_safe): New function introduced.
10557 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10558 of gimple_location_safe replaces gimple_location.
10559 (gimple_fold_call): Likewise.
10560 * ipa-devirt.c (ipa_devirt): Likewise.
10561 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10562 * ipa.c (walk_polymorphic_call_targets): Likewise.
10563 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10564
10565 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10566
10567 PR tree-optimization/57233
10568 PR tree-optimization/61299
10569 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10570 functions.
10571 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10572 would be lowered to scalar shifts, check if corresponding
10573 shifts and vector BIT_IOR_EXPR are supported and don't lower
10574 or lower just to narrower vector type in that case.
10575 * expmed.c (expand_shift_1): Fix up handling of vector
10576 shifts and rotates.
10577
10578 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10579
10580 PR target/61586
10581 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10582
10583 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10584
10585 * doc/invoke.texi (-fsemantic-interposition): Document.
10586 * common.opt (fsemantic-interposition): New flag.
10587 * varasm.c (decl_replaceable_p): Use it.
10588
10589 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10590
10591 PR target/61542
10592 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10593 extraction other than index 3.
10594
10595 2014-06-26 Teresa Johnson <tejohnson@google.com>
10596
10597 * doc/invoke.texi: Fix typo.
10598 * dumpfile.c: Add support for documented -fdump-* options
10599 optimized/missed/note/optall.
10600
10601 2014-06-26 Martin Jambor <mjambor@suse.cz>
10602
10603 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10604 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10605 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10606 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10607 * opts.c (default_options_optimization): Set
10608 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10609 * doc/invoke.texi (allow-load-data-races)
10610 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10611 (allow-store-data-races): Document the new default.
10612
10613 2014-06-26 Martin Jambor <mjambor@suse.cz>
10614
10615 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10616 renamed to ipa_impossible_devirt_target. Fix typo.
10617 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10618 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10619 ipa_impossible_devirt_target.
10620
10621 2014-06-26 Richard Biener <rguenther@suse.de>
10622
10623 PR tree-optimization/61607
10624 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10625 explaining why we restrict copies on loop depth.
10626 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10627 on loop depth.
10628 (record_equivalences_from_phis): Instead add it here.
10629
10630 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10631
10632 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10633 (LTO_WRAPPER_OBJS): New variable.
10634 (lto-wrapper$(exeext)): Use it.
10635 * collect2.c: Include "collect-utils.h".
10636 (verbose, debug): Remove variables.
10637 (at_file_supplied): No longer static.
10638 (tool_name): New variable.
10639 (do_wait, fork_execute, maybe_unlink): Don't declare.
10640 (tool_cleanup): No longer static.
10641 (notice): Remove function.
10642 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10643 fork_execute calls.
10644 (collect_wait, do_wait, collect_execute): Remove functions.
10645 (maybe_unlink): No longer static.
10646 * collect2.h (verbose, debug): Don't declare.
10647 (at_file_supplied): Declare.
10648 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10649 changed.
10650 (collect_execute): Replace with implementation from collect2, plus a
10651 new arg use_atfile. All callers changed.
10652 (collect_wait): Replace with implementation from collect2.
10653 (maybe_unlink_file): Remove function.
10654 (fork_execute): Replace with implementation from collect2, plus a
10655 new arg use_atfile. All callers changed.
10656 (do_wait): Add call to utils_cleanup to the error path.
10657 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10658 (tool_cleanup): Adjust declarations.
10659 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10660 * tlink.c: Include "collect-utils.h".
10661 (tlink_execute): New arg use_atfile. All callers changed.
10662 (tlink_init, tlink_execute): Remove declarations.
10663
10664 * collect-utils.c (save_temps): New variable.
10665 (do_wait): Use it instead of debug. Use fatal_error.
10666 * collect-utils.h (save_temps): Declare.
10667 * collect2.c (verbose): Rename from vflag. All uses changed.
10668 (tool_cleanup): New function, copied from collect_atexit.
10669 (collect_atexit, handler): Just call it.
10670 * collect2.h (verbose): Declaration renamed from vflag.
10671 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10672 debug.
10673
10674 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10675 (lto-wrapper$(exeext)): Link with collect-utils.o.
10676 * collect-utils.c: New file.
10677 * collect-utils.h: New file.
10678 * lto-wrapper.c: Include "collect-utils.h".
10679 (args_name): Delete variable.
10680 (tool_name): New variable.
10681 (tool_cleanup): New function.
10682 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10683 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10684 (fork_execute): Remove functions.
10685
10686 2014-06-26 Nick Clifton <nickc@redhat.com>
10687
10688 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10689
10690 * doc/extend.texi (Function Attributes): Fix typo in description
10691 of RX vector attribute.
10692
10693 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10694
10695 * config.gcc (supported_defaults): Error when passing either
10696 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10697
10698 2014-06-26 Richard Biener <rguenther@suse.de>
10699
10700 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10701 propagating volatile pointers.
10702
10703 2014-06-26 Richard Biener <rguenther@suse.de>
10704
10705 PR tree-optimization/61607
10706 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10707 loop if we redirected its latch edge.
10708 (thread_block_1): Do not cancel loops prematurely.
10709
10710 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10711
10712 * toplev.c (backend_init_target): Move init_emit_regs and
10713 init_regs to...
10714 (backend_init) ... here; skip ira_init_once and backend_init_target.
10715 (target_reinit) ... and here; clear
10716 this_target_rtl->lang_dependent_initialized.
10717 (lang_dependent_init_target): Clear
10718 this_target_rtl->lang_dependent_initialized;
10719 break out rtl initialization to ...
10720 (initialize_rtl): ... here; call also backend_init_target
10721 and ira_init_once.
10722 * toplev.h (initialize_rtl): New function.
10723 * function.c: Include toplev.h
10724 (init_function_start): Call initialize_rtl.
10725 * rtl.h (target_rtl): Add target_specific_initialized,
10726 lang_dependent_initialized.
10727
10728 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10729 Jakub Jelinek <jakub@redhat.com>
10730
10731 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10732
10733 2014-06-25 Tom de Vries <tom@codesourcery.com>
10734
10735 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10736
10737 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10738
10739 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10740 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10741 Issue a strict overflow warning if appropriate.
10742
10743 2014-06-25 Martin Liska <mliska@suse.cz>
10744
10745 IPA REF refactoring
10746 * Makefile.in: Removed header file (ipa-ref-inline.h).
10747 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10748 called.
10749 (cgraph_speculative_call_info): Likewise.
10750 (cgraph_for_node_thunks_and_aliases): Likewise.
10751 (cgraph_for_node_and_aliases): Likewise.
10752 (verify_cgraph_node): Likewise.
10753 * cgraph.h: Batch of IPA REF functions become member functions of
10754 symtab_node: add_reference, maybe_add_reference, clone_references,
10755 clone_referring, clone_reference, find_reference,
10756 remove_stmt_references, remove_all_references,
10757 remove_all_referring, dump_references, dump_referring,
10758 has_alias_p, iterate_reference, iterate_referring.
10759 * cgraphbuild.c (record_reference): New IPA REF function used.
10760 (record_type_list): Likewise.
10761 (record_eh_tables): Likewise.
10762 (mark_address): Likewise.
10763 (mark_load): Likewise.
10764 (mark_store): Likewise.
10765 (pass_build_cgraph_edges): Likewise.
10766 (rebuild_cgraph_edge): Likewise.
10767 (cgraph_rebuild_references): Likewise.
10768 (pass_remove_cgraph_callee_edges): Likewise.
10769 * cgraphclones.c (cgraph_clone_node): Likewise.
10770 (cgraph_create_virtual_clone): Likewise.
10771 (cgraph_materialize_clone): Likewise.
10772 (cgraph_materialize_all_clones): Likewise.
10773 * cgraphunit.c (cgraph_reset_node): Likewise.
10774 (cgraph_reset_node): Likewise.
10775 (analyze_function): Likewise.
10776 (assemble_thunks_and_aliases): Likewise.
10777 (expand_function): Likewise.
10778 * ipa-comdats.c (propagate_comdat_group): Likewise.
10779 (enqueue_references): Likewise.
10780 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10781 (create_specialized_node): Likewise.
10782 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10783 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10784 * ipa-inline.c (reset_edge_caches): Likewise.
10785 (update_caller_keys): Likewise.
10786 (execute): Likewise.
10787 * ipa-prop.c (remove_described_reference): Likewise.
10788 (propagate_controlled_uses): Likewise.
10789 (ipa_edge_duplication_hook): Likewise.
10790 (ipa_modify_call_arguments): Likewise.
10791 * ipa-pure-const.c (propagate_pure_const): Likewise.
10792 * ipa-ref-inline.h: Header file removed, functions moved
10793 to symtab_node class.
10794 * ipa-ref.c (remove_reference): New class member function.
10795 (cannot_lead_to_return): New class member function.
10796 (referring_ref_list): Likewise.
10797 (referred_ref_list): Likewise.
10798 Rest of functions moved to symtab_node class.
10799 * ipa-ref.h: New member functions remove_reference,
10800 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10801 to ipa_ref class.
10802 ipa_ref_list class has new member functions: first_reference,
10803 first_referring, clear, nreferences.
10804 * ipa-reference.c (analyze_function): New IPA REF function used.
10805 (write_node_summary_p): Likewise.
10806 (ipa_reference_write_optimization_summary): Likewise.
10807 * ipa-split.c (split_function): Likewise.
10808 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10809 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10810 (function_and_variable_visibility): Likewise.
10811 * ipa.c (has_addr_references_p): Likewise.
10812 (process_references): Argument type changed.
10813 (symtab_remove_unreachable_nodes): New IPA REF function used.
10814 (process_references): Likewise.
10815 (set_writeonly_bit): Likewise.
10816 * lto-cgraph.c: Implementation of new symtab_node member functions
10817 that uses new IPA REF functions.
10818 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10819 function used.
10820 * lto-streamer-out.c (output_symbol_p): Likewise.
10821 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10822 changed.
10823 * symtab.c: Implementation of new IPA REF API.
10824 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10825 (ipa_tm_create_version): Likewise.
10826 (ipa_tm_execute): Likewise.
10827 * tree-emutls.c (gen_emutls_addr): Likewise.
10828 * tree-inline.c (copy_bb): Likewise.
10829 (delete_unreachable_blocks_update_callgraph): Likewise.
10830 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10831 (varpool_for_node_and_aliases): Likewise.
10832
10833 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10834
10835 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10836
10837 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10838
10839 PR bootstrap/61598
10840 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10841 tree_node * instead of tree_node *.
10842 (fold): Adjust.
10843 (print_fold_checksum): Likewise.
10844 (fold_check_failed): Likewise.
10845 (debug_fold_checksum): Likewise.
10846 (fold_build1_stat_loc): Likewise.
10847 (fold_build2_stat_loc): Likewise.
10848 (fold_build3_stat_loc): Likewise.
10849 (fold_build_call_array_loc): Likewise.
10850
10851 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10852
10853 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10854 implementation with call to...
10855 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10856 function.
10857 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10858 Declare.
10859
10860 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10861
10862 PR tree-optimization/57742
10863 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10864 after replacing the statement.
10865
10866 2014-06-25 Nick Clifton <nickc@redhat.com>
10867
10868 * config/v850/v850.c (GHS_default_section_names): Change to const
10869 char * type.
10870 (GHS_current_section_names): Likewise.
10871 (v850_insert_attributes): Do not build strings, just assign the
10872 names directly. Change the type of 'chosen_section' to const
10873 char*.
10874 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10875 directly to the array entry.
10876 * config/v850/v850.h (GHS_default_section_names): Change to const
10877 char * type.
10878 (GHS_current_section_names): Likewise.
10879
10880 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10881
10882 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10883 (LANG_HOOKS_DECLS): Add it.
10884 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10885 has correct type.
10886 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10887 * langhooks.h (struct lang_hooks_for_decls): Add
10888 omp_clause_linear_ctor hook.
10889 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10890 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10891 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10892 combined simd loop use omp_clause_linear_ctor hook.
10893
10894 2014-06-24 Cong Hou <congh@google.com>
10895
10896 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10897 pattern recognition.
10898 (type_conversion_p): PROMOTION is true if it's a type promotion
10899 conversion, and false otherwise. Return true if the given expression
10900 is a type conversion one.
10901 * tree-vectorizer.h: Adjust the number of patterns.
10902 * tree.def: Add SAD_EXPR.
10903 * optabs.def: Add sad_optab.
10904 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10905 * expr.c (expand_expr_real_2): Likewise.
10906 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10907 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10908 * optabs.c (optab_for_tree_code): Likewise.
10909 * tree-cfg.c (estimate_operator_cost): Likewise.
10910 * tree-ssa-operands.c (get_expr_operands): Likewise.
10911 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10912 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10913 * doc/generic.texi: Add document for SAD_EXPR.
10914 * doc/md.texi: Add document for ssad and usad.
10915
10916 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10917
10918 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10919 qualification in cast.
10920
10921 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10922
10923 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10924 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10925 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10926 (tree_function_decl): ... here.
10927 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10928 streaming of vindex to ...
10929 (write_ts_function_decl_tree_pointers): ... here.
10930 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10931 Do not stream DECL_VINDEX.
10932 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10933
10934 2014-06-24 Catherine Moore <clm@codesourcery.com>
10935 Sandra Loosemore <sandra@codesourcery.com>
10936
10937 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10938 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10939 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10940
10941 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10942
10943 * doc/invoke.texi (Warning Options): Remove duplicated
10944 -Wmaybe-uninitialized.
10945
10946 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10947
10948 PR tree-optimization/57742
10949 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10950 (handle_builtin_malloc, handle_builtin_memset): New functions.
10951 (strlen_optimize_stmt): Call them.
10952 * passes.def: Move strlen after loop+dom but before vrp.
10953
10954 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10955
10956 PR target/61570
10957 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10958 model family 6 CPU with has_longmode never use a CPU without
10959 64-bit support.
10960
10961 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10962
10963 PR target/61570
10964 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10965 the last change.
10966
10967 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10968
10969 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10970 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10971 pointer_map.
10972 * hash-map.h: New file.
10973 * ipa-comdats.c: Use hash_map instead of pointer_map.
10974 * ipa.c: Likewise.
10975 * lto-section-out.c: Adjust.
10976 * lto-streamer.h: Replace pointer_map with hash_map.
10977 * symtab.c (verify_symtab): Likewise.
10978 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10979 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10980 * tree-streamer.h: Likewise.
10981 * tree-streamer.c: Adjust.
10982 * pointer-set.h: Remove pointer_map.
10983
10984 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10985
10986 * hash-table.h: Add a template arg to choose between storing values
10987 and storing pointers to values, and then provide partial
10988 specializations for both.
10989 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10990 should store, not the type values should point to.
10991 * tree-into-ssa.c (var_info_hasher): Likewise.
10992 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10993 * tree-complex.c: Adjust.
10994 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10995 table instead of int_tree_map *.
10996 * tree-parloops.c: Adjust.
10997 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10998 type is being stored.
10999 * tree-vectorizer.c: Adjust.
11000
11001 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11002
11003 * hash-table.h: Remove a layer of indirection from hash_table so that
11004 it contains the hash table's data instead of a pointer to the data.
11005 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11006 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11007 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11008 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11009 fold-const.c, gcse.c, ggc-common.c,
11010 gimple-ssa-strength-reduction.c, gimplify.c,
11011 graphite-clast-to-gimple.c, graphite-dependences.c,
11012 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11013 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11014 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11015 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11016 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11017 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11018 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11019 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11020 tree-ssa-live.c, tree-ssa-loop-im.c,
11021 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11022 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11023 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11024 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11025 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11026 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11027 vtable-verify.c, vtable-verify.h: Adjust.
11028
11029 2014-06-24 Richard Biener <rguenther@suse.de>
11030
11031 PR tree-optimization/61572
11032 * tree-ssa-sink.c (statement_sink_location): Do not sink
11033 loads from hard registers.
11034
11035 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11036
11037 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11038 not mentioned in clauses use private clause if the iterator is
11039 declared in #pragma omp for simd, and when adding lastprivate
11040 instead, add it to the outer #pragma omp for too. Diagnose
11041 if the variable is private in outer context. For simd collapse > 1
11042 loops, replace all iterators with temporaries.
11043 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11044 same even in collapse > 1 loops.
11045
11046 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11047 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11048 non-NULL.
11049 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11050 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11051 non-NULL.
11052 (gimplify_adjust_omp_clauses): Likewise.
11053 * omp-low.c (lower_rec_simd_input_clauses,
11054 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11055 safelen the same as safelen(1).
11056 * tree-nested.c (convert_nonlocal_omp_clauses,
11057 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11058 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11059 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11060 Fixup handling of GIMPLE_OMP_TARGET.
11061 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11062 GIMPLE_OMP_TARGET.
11063
11064 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11065
11066 PR tree-optimization/61554
11067 * tree-ssa-propagate.c: Include "bitmap.h".
11068 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11069 properly update constructor/destructor.
11070 (substitute_and_fold_dom_walker::before_dom_children):
11071 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11072 need_eh_cleaup instead.
11073 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11074 need_eh_cleanup.
11075
11076 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11077
11078 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11079 * tree-pass.h (make_pass_ipa_single_use): New pass.
11080 * cgraph.h (used_by_single_function): New flag.
11081 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11082 Stream it.
11083 * passes.def (pass_ipa_single_use): Scedule.
11084 * ipa.c (BOTTOM): New macro.
11085 (meet): New function
11086 (propagate_single_user): New function.
11087 (ipa_single_use): New function.
11088 (pass_data_ipa_single_use): New pass.
11089 (pass_ipa_single_use): New pass.
11090 (pass_ipa_single_use::gate): New gate.
11091 (make_pass_ipa_single_use): New function.
11092
11093 2014-06-23 Kai Tietz <ktietz@redhat.com>
11094
11095 PR target/39284
11096 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11097 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11098
11099 2014-06-23 Richard Biener <rguenther@suse.de>
11100
11101 * tree-ssa-loop.c (gate_loop): New function.
11102 (pass_tree_loop::gate): Call it.
11103 (pass_data_tree_no_loop, pass_tree_no_loop,
11104 make_pass_tree_no_loop): New.
11105 * tree-vectorizer.c: Include tree-scalar-evolution.c
11106 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11107 required.
11108 (pass_slp_vectorize::clone): New method.
11109 * timevar.def (TV_TREE_NOLOOP): New.
11110 * tree-pass.h (make_pass_tree_no_loop): Declare.
11111 * passes.def (pass_tree_no_loop): New pass group with
11112 SLP vectorizer.
11113
11114 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11115
11116 PR target/61570
11117 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11118 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11119
11120 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11121
11122 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11123 "yes" where needed.
11124
11125 2014-06-23 Alan Modra <amodra@gmail.com>
11126
11127 PR bootstrap/61583
11128 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11129 to zero on debug statements.
11130
11131 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11132
11133 PR target/60825
11134 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11135 Ignore third operand if present by marking qualifier_internal.
11136
11137 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11138
11139 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11140 vector extension.
11141 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11142 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11143 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11144 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11145 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11146 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11147 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11148 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11149 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11150 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11151 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11152 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11153 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11154 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11155 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11156 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11157 logic in GCC vector extensions
11158
11159 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11160 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11161 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11162 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11163 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11164 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11165 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11166 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11167 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11168 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11169
11170 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11171
11172 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11173 extensions.
11174
11175 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11176 (vget_low_s64): Use __GET_LOW macro.
11177 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11178 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11179 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11180 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11181 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11182
11183 (vcombine_s64): Use GCC vector extensions; remove cast.
11184 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11185 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11186 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11187 Fix type signature; remove cast.
11188
11189 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11190
11191 PR target/60825
11192 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11193 V1DFmode.
11194 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11195 add V1DFmode
11196 (BUILTIN_VD1): New.
11197 (BUILTIN_VD_RE): Remove.
11198 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11199 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11200 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11201 variant but not df.
11202 (vreinterpretv1df*, vreinterpret*v1df): New.
11203 (vreinterpretdf*, vreinterpret*df): Remove.
11204 * config/aarch64/aarch64-simd.md (aarch64_create,
11205 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11206 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11207 (VD1): New.
11208 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11209 (vcreate_f64): Remove cast, use v1df builtin.
11210 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11211 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11212 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11213 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11214 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11215 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11216 add range check using __builtin_aarch64_im_lane_boundsi.
11217 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11218 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11219 type signature, use gcc vector extensions.
11220 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11221 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11222 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11223 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11224 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11225 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11226 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11227 vreinterpret_u64_f64): Use v1df builtin not df.
11228
11229 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11230
11231 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11232 vector registers.
11233
11234 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11235
11236 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11237 priority directly.
11238
11239 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11240
11241 * loop-invariant.c (pre_check_invariant_p): New function.
11242 (find_invariant_insn): Call pre_check_invariant_p.
11243
11244 2014-06-22 Richard Henderson <rth@redhat.com>
11245
11246 PR target/61565
11247 * compare-elim.c (struct comparison): Add eh_note.
11248 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11249 a redundant comparison in a different EH region. Purge EH edges if
11250 necessary.
11251
11252 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11253
11254 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11255 (var_shift): Use it.
11256 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11257 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11258 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11259 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11260 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11261 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11262 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11263 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11264 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11265 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11266 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11267 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11268 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11269 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11270 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11271 *rotldi3_internal15be): Use the new attribute. Merge register and
11272 integer alternatives.
11273
11274 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11275
11276 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11277 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11278 split, *ashrdi3_internal3 and split): Delete, merge into...
11279 (ashr<mode>3): New expander.
11280 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11281 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11282
11283 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11284
11285 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11286 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11287 *rotldi3_internal3 and split): Delete, merge into...
11288 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11289 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11290 Use "rotlw" extended mnemonic.
11291
11292 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11293
11294 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11295 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11296 and split, *ashldi3_internal3 and split): Delete, merge into...
11297 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11298 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11299
11300 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11301
11302 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11303 (lshrsi3, two anonymous define_insns and define_splits,
11304 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11305 *lshrdi3_internal3 and split): Delete, merge into...
11306 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11307 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11308
11309 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11310
11311 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11312 Remove "O" alternative.
11313
11314 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11315
11316 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11317 (mips_move_from_gpr_cost): Likewise.
11318 (mips_register_move_cost): Update accordingly.
11319 (mips_secondary_reload_class): Remove name of in_p.
11320
11321 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11322
11323 PR target/61503
11324 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11325 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11326
11327 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11328
11329 * config/nios2/nios2.c: Include "builtins.h".
11330
11331 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11332
11333 * cgraph.h (tls_model_names): New variable.
11334 * print-tree.c (print_node): Simplify.
11335 * varpool.c (tls_model_names): New variable.
11336 (dump_varpool_node): Output tls model.
11337
11338 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11339
11340 * ipa-visibility.c (function_and_variable_visibility): Disable
11341 temporarily local aliases for some targets.
11342
11343 2014-06-20 Marek Polacek <polacek@redhat.com>
11344
11345 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11346 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11347 into SANITIZE_UNDEFINED.
11348 * doc/invoke.texi: Describe -fsanitize=bounds.
11349 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11350 functions created in the FEs.
11351 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11352 (expand_UBSAN_BOUNDS): New function.
11353 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11354 * internal-fn.h: Don't define internal functions here.
11355 * opts.c (common_handle_option): Add -fsanitize=bounds.
11356 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11357 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11358 * tree-core.h: Define internal functions here.
11359 (struct tree_base): Add ifn field.
11360 * tree-pretty-print.c: Include "internal-fn.h".
11361 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11362 * tree.c (get_callee_fndecl): Likewise.
11363 (build_call_expr_internal_loc): New function.
11364 * tree.def (CALL_EXPR): Update description.
11365 * tree.h (CALL_EXPR_IFN): Define.
11366 (build_call_expr_internal_loc): Declare.
11367 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11368 types.
11369 (ubsan_type_descriptor): Change bool parameter to enum
11370 ubsan_print_style. Adjust the code. Add handling of
11371 UBSAN_PRINT_ARRAY.
11372 (ubsan_expand_bounds_ifn): New function.
11373 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11374 (ubsan_build_overflow_builtin): Likewise.
11375 (instrument_bool_enum_load): Likewise.
11376 (ubsan_instrument_float_cast): Likewise.
11377 * ubsan.h (enum ubsan_print_style): New enum.
11378 (ubsan_expand_bounds_ifn): Declare.
11379 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11380
11381 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11382
11383 * config/rs6000/rs6000.md: Append `DONE' to preparation
11384 statements of `bswap' pattern splitters.
11385
11386 2014-06-20 Tom de Vries <tom@codesourcery.com>
11387
11388 * target.def (call_fusage_contains_non_callee_clobbers): Update
11389 definition.
11390 * doc/tm.texi: Regenerate.
11391
11392 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11393 Max Ostapenko <m.ostapenko@partner.samsung.com>
11394
11395 PR sanitizer/61547
11396 * asan.c (instrument_strlen_call): Fixed instrumentation of
11397 trailing byte.
11398
11399 2014-06-20 Martin Jambor <mjambor@suse.cz>
11400
11401 PR ipa/61540
11402 * ipa-prop.c (impossible_devirt_target): New function.
11403 (try_make_edge_direct_virtual_call): Use it, also instead of
11404 asserting.
11405
11406 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11407 Max Ostapenko <m.ostapenko@partner.samsung.com>
11408
11409 PR sanitizer/61530
11410 * asan.c (build_check_stmt): Add condition.
11411
11412 2014-06-20 Martin Jambor <mjambor@suse.cz>
11413
11414 PR ipa/61211
11415 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11416 expanded clones.
11417
11418 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11419
11420 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11421 Update comments.
11422 (VCONQ): Make comment more helpful.
11423 (VCON): Delete.
11424 * config/aarch64/aarch64-simd.md
11425 (aarch64_sqdmulh_lane<mode>):
11426 Use VCOND for operands 2. Update lane checking and flipping logic.
11427 (aarch64_sqrdmulh_lane<mode>): Likewise.
11428 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11429 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11430 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11431 attribute of operand 3 to VCOND.
11432 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11433 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11434 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11435 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11436 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11437 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11438 define_insn.
11439 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11440 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11441 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11442 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11443 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11444 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11445 operand to VCOND. Update lane flipping and bounds checking logic.
11446 (aarch64_sqdmlal2_lane<mode>): Likewise.
11447 (aarch64_sqdmlsl_lane<mode>): Likewise.
11448 (aarch64_sqdmull_lane<mode>): Likewise.
11449 (aarch64_sqdmull2_lane<mode>): Likewise.
11450 (aarch64_sqdmlal_laneq<mode>):
11451 Replace VCON usage with VCONQ.
11452 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11453 (aarch64_sqdmlal2_laneq<mode>): Emit
11454 aarch64_sqdmlal2_laneq<mode>_internal insn.
11455 Replace VCON with VCONQ.
11456 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11457 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11458 (aarch64_sqdmull_laneq<mode>): Emit
11459 aarch64_sqdmull_laneq<mode>_internal insn.
11460 Replace VCON with VCONQ.
11461 (aarch64_sqdmull2_laneq<mode>): Emit
11462 aarch64_sqdmull2_laneq<mode>_internal insn.
11463 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11464 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11465 of 3rd argument to int16x4_t.
11466 (vqdmlalh_lane_s16): Likewise.
11467 (vqdmlslh_lane_s16): Likewise.
11468 (vqdmull_high_lane_s16): Likewise.
11469 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11470 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11471 (vqdmlsl_lane_s16): Likewise.
11472 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11473 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11474 (vqdmlals_lane_s32): Likewise.
11475 (vqdmlsls_lane_s32): Likewise.
11476 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11477 (vqdmulls_lane_s32): Likewise.
11478 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11479 (vqdmlsl_lane_s32): Likewise.
11480 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11481 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11482 (vqrdmulhh_lane_s16): Likewise.
11483 (vqdmlsl_high_lane_s16): Likewise.
11484 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11485 (vqdmlsl_high_lane_s32): Likewise.
11486 (vqrdmulhs_lane_s32): Likewise.
11487
11488 2014-06-20 Tom de Vries <tom@codesourcery.com>
11489
11490 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11491 get_call_reg_set_usage.
11492
11493 2014-06-20 Tom de Vries <tom@codesourcery.com>
11494
11495 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11496 it contains all call_used_regs.
11497
11498 2014-06-20 Tom de Vries <tom@codesourcery.com>
11499
11500 * final.c (collect_fn_hard_reg_usage): Add and use variable
11501 function_used_regs.
11502
11503 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11504
11505 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11506 (set_init_priority, get_init_priority, set_fini_priority,
11507 get_fini_priority): New methods.
11508 * tree.c (init_priority_for_decl): Remove.
11509 (init_ttree): Do not initialize init priority.
11510 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11511 (decl_priority_info): Remove.
11512 (decl_init_priority_insert): Rewrite.
11513 (decl_fini_priority_insert): Rewrite.
11514 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11515 tree_priority_map_marked_p): Remove.
11516 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11517 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11518 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11519 not output priorities.
11520 (pack_ts_function_decl_value_fields): Likewise.
11521 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11522 not input priorities.
11523 (unpack_ts_function_decl_value_fields): Likewise.
11524 * symtab.c (symbol_priority_map): Declare.
11525 (init_priority_hash): Declare.
11526 (symtab_unregister_node): Unregister from priority hash, too.
11527 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11528 New methods.
11529 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11530 (symbol_priority_info): New function.
11531 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11532 New methods.
11533 * tree-core.h (tree_priority_map): Remove.
11534
11535 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11536
11537 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11538 0xff to uint64_t before shifting it up.
11539
11540 2014-06-20 Julian Brown <julian@codesourcery.com>
11541 Chung-Lin Tang <cltang@codesourcery.com>
11542
11543 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11544 TARGET_THUMB1_ONLY. Add comments.
11545
11546 2014-06-19 Tom de Vries <tom@codesourcery.com>
11547
11548 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11549 return type to void.
11550 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11551
11552 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11553
11554 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11555 as "move", from depends_on.
11556
11557 2014-06-19 Terry Guo <terry.guo@arm.com>
11558
11559 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11560 stage.
11561
11562 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11563
11564 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11565 Remove cr5.
11566 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11567
11568 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11569
11570 PR target/61550
11571 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11572 addresses here if reload in progress or completed.
11573
11574 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11575
11576 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11577 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11578 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11579 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11580 (mips_register_priority): New function that implements the target
11581 hook TARGET_REGISTER_PRIORITY.
11582 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11583 (mips_lra_p): Likewise for TARGET_LRA_P.
11584 (TARGET_REGISTER_PRIORITY): Define macro.
11585 (TARGET_SPILL_CLASS): Likewise.
11586 (TARGET_LRA_P): Likewise.
11587 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11588 classes.
11589 (REG_CLASS_NAMES): Likewise.
11590 (REG_CLASS_CONTENTS): Likewise.
11591 (BASE_REG_CLASS): Use M16_SP_REGS.
11592 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11593 New set attribute to enable alternatives depending on the register
11594 allocator used.
11595 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11596 (*lea64): Disable pattern for MIPS16.
11597 * config/mips/mips.opt (mlra): New option.
11598
11599 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11600
11601 * lra-constraints.c (base_to_reg): New function.
11602 (process_address): Use new function.
11603
11604 2014-06-18 Tom de Vries <tom@codesourcery.com>
11605
11606 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11607 * config/aarch64/aarch64.c
11608 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11609 (aarch64_emit_call_insn): New function.
11610 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11611 of emit_call_insn.
11612 * config/aarch64/aarch64.md (define_expand "call_internal")
11613 (define_expand "call_value_internal", define_expand "sibcall_internal")
11614 (define_expand "sibcall_value_internal"): New.
11615 (define_expand "call", define_expand "call_value")
11616 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11617 expand variant and aarch64_emit_call_insn.
11618
11619 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11620 Tom de Vries <tom@codesourcery.com>
11621
11622 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11623 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11624 Redefine to true.
11625 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11626 clobbers to CALL_INSN_FUNCTION_USAGE.
11627 (define_expand "sibcall_internal")
11628 (define_expand "sibcall_value_internal"): New.
11629 (define_expand "call", define_expand "call_value"): Add argument to
11630 arm_emit_call_insn.
11631 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11632 (define_expand "sibcall_value"): Use sibcall_value_internal and
11633 arm_emit_call_insn.
11634
11635 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11636
11637 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11638
11639 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11640
11641 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11642 __udivmoddi4.
11643
11644 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11645
11646 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11647 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11648 annotations. Fix DWARF information.
11649
11650 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11651
11652 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11653 __udivmoddi4, and fixups for negative operands.
11654
11655 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11656
11657 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11658
11659 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11660
11661 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11662 to __udivmoddi4.
11663
11664 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11665
11666 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11667 manipulation.
11668
11669 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11670
11671 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11672 describing register usage on function entry and exit.
11673
11674 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11675
11676 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11677 (__aeabi_ldivmod): Fix whitespace.
11678
11679 2014-06-18 Andreas Schwab <schwab@suse.de>
11680
11681 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11682 Remove blank line after @item.
11683
11684 2014-06-18 Richard Henderson <rth@redhat.com>
11685
11686 PR target/61545
11687 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11688
11689 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11690
11691 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11692 POST_MODIFY for neon loads and stores.
11693 (arm_print_operand): Output post-index register for neon loads and
11694 stores.
11695
11696 2014-06-18 Richard Biener <rguenther@suse.de>
11697
11698 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11699
11700 2014-06-18 Richard Biener <rguenther@suse.de>
11701
11702 * tree-pass.h (make_pass_dce_loop): Remove.
11703 * passes.def: Replace pass_dce_loop with pass_dce.
11704 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11705 changed free niter estimates and reset the scev cache.
11706 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11707 make_pass_dce_loop): Remove.
11708 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11709 (fini_copy_prop): Return whether something changed. Always
11710 let substitute_and_fold perform DCE and free niter estimates
11711 and reset the scev cache if so.
11712 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11713 (pass_data_copy_prop): Do not unconditionally schedule
11714 cleanup-cfg or update-ssa.
11715
11716 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11717
11718 PR tree-optimization/61518
11719 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11720 reduction var is used in reduction stmt or phi-function only.
11721
11722 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11723
11724 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11725
11726 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11727
11728 PR tree-optimization/61517
11729 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11730 whose rhs's first tree is the source expression instead of the
11731 expression itself.
11732 (find_bswap_or_nop): Likewise.
11733 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11734 gimple stmt whose rhs's first tree is the source. In the memory source
11735 case, move the stmt to be replaced close to one of the original load to
11736 avoid the problem of a store between the load and the stmt's original
11737 location.
11738 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11739 signature.
11740
11741 2014-06-18 Andreas Schwab <schwab@suse.de>
11742
11743 PR rtl-optimization/54555
11744 * postreload.c (move2add_use_add2_insn): Substitute
11745 STRICT_LOW_PART only if it is cheaper.
11746
11747 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11748
11749 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11750 Do not use unspec as call operand. Use memory_operand instead of
11751 memory_nox32_operand and add "m" operand constraint. Disable
11752 pattern for TARGET_X32.
11753 (*sibcall_pop_memory): Ditto.
11754 (*sibcall_value_memory): Ditto.
11755 (*sibcall_value_pop_memory): Ditto.
11756 (sibcall peepholes): Merge SImode and DImode patterns using
11757 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11758 Disable pattern for TARGET_X32. Check if eliminated register is
11759 really dead after call insn. Generate call RTX without unspec operand.
11760 (sibcall_value peepholes): Ditto.
11761 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11762 instead of memory_nox32_operand. Check if eliminated register is
11763 really dead after call insn. Generate call RTX without unspec operand.
11764 (sibcall_value_pop peepholes): Ditto.
11765 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11766
11767 2014-06-18 Terry Guo <terry.guo@arm.com>
11768
11769 PR target/61544
11770 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11771 reach the head.
11772
11773 2014-06-18 Olivier Hainque <hainque@adacore.com>
11774
11775 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11776 memorization of the end of block source location.
11777 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11778 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11779 end source location info we have on the block entry/exit code we
11780 generate.
11781
11782 2014-06-18 Richard Biener <rguenther@suse.de>
11783
11784 * common.opt (fssa-phiopt): New option.
11785 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11786 but not with -Og.
11787 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11788 * doc/invoke.texi (-fssa-phiopt): Document.
11789
11790 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11791
11792 * genattrtab.c (n_bypassed): New variable.
11793 (process_bypasses): Initialise n_bypassed.
11794 Count number of bypassed reservations.
11795 (make_automaton_attrs): Allocate space for bypassed reservations
11796 rather than number of bypasses.
11797
11798 2014-06-18 Richard Biener <rguenther@suse.de>
11799
11800 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11801 we propagated anything.
11802 (substitute_and_fold_dom_walker::before_dom_children): Something
11803 changed if we propagated into PHI arguments.
11804 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11805 we removed a stmt.
11806
11807 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11808
11809 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11810 vector case.
11811 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11812 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11813 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11814 Introduces alternative way of loads group permutaions.
11815 (vect_transform_grouped_load): Try alternative way of permutations.
11816
11817 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11818
11819 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11820 changed in ORT_TARGET region, don't jump to do_outer.
11821 (struct gimplify_adjust_omp_clauses_data): New type.
11822 (gimplify_adjust_omp_clauses_1): Adjust for data being
11823 a struct gimplify_adjust_omp_clauses_data pointer instead
11824 of tree *. Pass pre_p as a new argument to
11825 lang_hooks.decls.omp_finish_clause hook.
11826 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11827 splay_tree_foreach to pass both list_p and pre_p.
11828 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11829 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11830 gimplify_adjust_omp_clauses callers.
11831 * langhooks.c (lhd_omp_finish_clause): New function.
11832 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11833 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11834 * langhooks.h (struct lang_hooks_for_decls): Add a new
11835 gimple_seq * argument to omp_finish_clause hook.
11836 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11837 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11838 (scan_omp_parallel, lower_omp_for): When adding
11839 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11840 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11841 * tree-nested.c (convert_nonlocal_omp_clauses,
11842 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11843 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11844
11845 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11846
11847 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11848 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11849
11850 2014-06-17 Xinliang David Li <davidxl@google.com>
11851
11852 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11853 * passes.c (pass_init_dump_file): Do not set initialize
11854 flag to false unconditionally.
11855
11856 2014-06-17 Richard Biener <rguenther@suse.de>
11857
11858 * genopinit.c (main): Use vec<>::qsort method.
11859 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11860 Likewise.
11861 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11862
11863 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11864
11865 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11866 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11867 (mips_move_to_gpr_cost): Remove ST_REGS case.
11868 (mips_move_from_gpr_cost): Likewise.
11869 (mips_register_move_cost): Likewise.
11870 (mips_secondary_reload_class): Likewise.
11871
11872 2014-06-17 Richard Biener <rguenther@suse.de>
11873
11874 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11875 (pass_all_optimizations): Move 3rd copy-prop pass from after
11876 fre to before ifcombine/phiopt.
11877
11878 2014-06-17 Richard Biener <rguenther@suse.de>
11879
11880 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11881 and allow all blocks to be forwarders.
11882
11883 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11884
11885 PR target/61483
11886 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11887 variable 'size'; calculate 'size' right in the front; use
11888 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11889 pcum->aapcs_stack_words.
11890
11891 2014-06-17 Nick Clifton <nickc@redhat.com>
11892
11893 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11894 (umulhi3, mulsidi3, umulsidi3): Likewise.
11895
11896 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11897
11898 PR middle-end/61508
11899 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11900 check for section name.
11901
11902 2014-06-17 Richard Biener <rguenther@suse.de>
11903
11904 * tree-ssa-propagate.c: Include domwalk.h.
11905 (substitute_and_fold): Outline main worker into a domwalker ...
11906 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11907 Schedule stmts we can fully propagate for removal. Remove
11908 poor-mans DCE.
11909 (substitute_and_fold): Apply a dominator walk to perform
11910 substitution. Process stmts scheduled for removal here.
11911
11912 2014-06-17 Richard Biener <rguenther@suse.de>
11913
11914 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11915 of PHI node moving.
11916
11917 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11918
11919 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11920 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11921 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11922 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11923 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11924 TARGET_HARD_FLOAT.
11925 (get_fpscr) : Likewise.
11926
11927 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11928
11929 PR rtl-optimization/61325
11930 * lra-constraints.c (valid_address_p): Add forward declaration.
11931 (simplify_operand_subreg): Check address validity before and after
11932 alter_reg of memory subreg.
11933
11934 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11935
11936 * config/i386/i386.c (decide_alg): Correctly handle
11937 maximum size of stringop algorithm.
11938
11939 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11940
11941 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11942
11943 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11944
11945 PR rtl-optimization/61522
11946 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11947
11948 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11949
11950 Revert:
11951 * symtab.c (symtab_node::reset_section): New method.
11952 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11953 for localization.
11954 * cgraph.h (reset_section): Declare.
11955 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11956 do not consider comdat locals.
11957 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11958 for new symbol.
11959 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11960 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11961 reset sections of symbols dragged out of the comdats.
11962 (function_and_variable_visibility): Reset sections of
11963 localized symbols.
11964
11965 2014-06-16 Richard Biener <rguenther@suse.de>
11966
11967 PR tree-optimization/61482
11968 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11969 [-INF(OVF), +INF(OVF)] range.
11970
11971 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11972
11973 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11974 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11975 handling 32-bit multiplication.
11976
11977 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11978
11979 PR middle-end/61430
11980 * lra-lives.c (process_bb_lives): Skip creating copy during
11981 insn scan when src/dest has constrained to same regno.
11982
11983 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11984
11985 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11986 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11987
11988 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11989
11990 * asan.c (check_func): New function.
11991 (maybe_create_ssa_name): Likewise.
11992 (build_check_stmt_with_calls): Likewise.
11993 (use_calls_p): Likewise.
11994 (report_error_func): Change interface.
11995 (build_check_stmt): Allow non-integer lengths; add support
11996 for new parameter.
11997 (asan_instrument): Likewise.
11998 (instrument_mem_region_access): Moved code to build_check_stmt.
11999 (instrument_derefs): Likewise.
12000 (instrument_strlen_call): Likewise.
12001 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12002 * doc/invoke.texi: Describe new parameter.
12003 * params.def: Define new parameter.
12004 * params.h: Likewise.
12005 * sanitizer.def: Describe new builtins.
12006
12007 2014-06-16 Richard Biener <rguenther@suse.de>
12008
12009 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12010 Make all defs available at the end.
12011 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12012
12013 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12014
12015 PR plugins/45078
12016 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12017
12018 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12019
12020 PR bootstrap/61516
12021 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12022 initialization. Replace remaining use of uid.
12023
12024 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12025
12026 * c-family/c-common.c (handle_tls_model_attribute): Use
12027 set_decl_tls_model.
12028 * c-family/c-common.c (handle_tls_model_attribute): Use
12029 set_decl_tls_model.
12030 * cgraph.h (struct varpool_node): Add tls_model.
12031 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12032 * tree.h (DECL_TLS_MODEL): Update.
12033 (DECL_THREAD_LOCAL_P): Check that variable is static.
12034 (decl_tls_model): Declare.
12035 (set_decl_tls_model): Declare.
12036 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12037 set symbol prorperties.
12038 (get_emutls_init_templ_addr): Cleanup.
12039 (new_emutls_decl): Update.
12040 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12041 (lto_input_varpool_node): Likewise.
12042 * lto-streamer-out.c (hash_tree): Likewise.
12043 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12044 not stream DECL_TLS_MODEL.
12045 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12046 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12047
12048 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12049
12050 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12051
12052 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12053
12054 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12055 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12056 lists.
12057 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12058 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12059 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12060 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12061 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12062 (df_get_artificial_defs, df_get_artificial_uses)
12063 (df_single_def, df_single_use): Update accordingly.
12064 (df_refs_chain_dump): Take the first element in a linked list as
12065 parameter, rather than a pointer to an array of pointers.
12066 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12067 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12068 (df_chain_create_bb_process_use): Likewise.
12069 (df_md_bb_local_compute_process_def): Likewise.
12070 * fwprop.c (process_defs, process_uses): Likewise.
12071 (register_active_defs, update_uses): Likewise.
12072 (forward_propagate_asm): Update for new df_ref linking.
12073 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12074 (df_null_ref_rec, df_null_mw_rec): Likewise.
12075 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12076 explicitly.
12077 (df_scan_free_bb_info): Remove check for null artificial_defs.
12078 (df_install_ref_incremental): Adjust for new df_ref linking.
12079 Use a single-element insertion rather than a full sort.
12080 (df_ref_chain_delete_du_chain): Take the first element
12081 in a linked list as parameter, rather than a pointer to an array of
12082 pointers.
12083 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12084 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12085 (df_insn_info_delete): Remove check for null defs and call to
12086 df_scan_free_mws_vec.
12087 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12088 null rather than df_null_*_rec.
12089 (df_insn_rescan_debug_internal): Likewise, and update null
12090 checks in the same way. Remove check for null defs.
12091 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12092 Move a single element rather doing a full sort.
12093 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12094 linking.
12095 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12096 Initialize df_ref and df_mw_hardreg lists to null rather than
12097 df_null_*_rec.
12098 (df_ref_compare): Take df_refs as parameter, transferring the
12099 old interface to...
12100 (df_ref_ptr_compare): ...this new function.
12101 (df_sort_and_compress_refs): Update accordingly.
12102 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12103 old interface to...
12104 (df_mw_ptr_compare): ...this new function.
12105 (df_sort_and_compress_mws): Update accordingly.
12106 (df_install_refs, df_install_mws): Return a linked list rather than
12107 an array of pointers.
12108 (df_refs_add_to_chains): Assert that old lists are empty rather
12109 than freeing them.
12110 (df_insn_refs_verify): Don't handle null defs speciailly.
12111 * web.c (union_match_dups): Update for new df_ref linking.
12112
12113 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12114
12115 * df.h (df_ref_create, df_ref_remove): Delete.
12116 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12117 (df_ref_remove): Likewise.
12118
12119 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12120
12121 * df.h (df_single_def, df_single_use): New functions.
12122 * ira.c (find_moveable_pseudos): Use them.
12123
12124 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12125
12126 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12127 * df-problems.c (df_note_bb_compute): Use it.
12128 * regstat.c (regstat_bb_compute_ri): Likewise.
12129
12130 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12131
12132 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12133 * cse.c (cse_extended_basic_block): Use them.
12134 * dce.c (mark_artificial_use): Likewise.
12135 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12136 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12137 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12138 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12139 (df_simulate_initialize_backwards): Likewise.
12140 (df_simulate_finalize_backwards): Likewise.
12141 (df_simulate_initialize_forwards): Likewise.
12142 (df_md_simulate_artificial_defs_at_top): Likewise.
12143 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12144 * regrename.c (init_rename_info): Likewise.
12145 * regstat.c (regstat_bb_compute_ri): Likewise.
12146 (regstat_bb_compute_calls_crossed): Likewise.
12147
12148 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12149
12150 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12151 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12152 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12153 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12154 * combine.c (create_log_links): Likewise.
12155 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12156 (try_eliminate_compare): Likewise.
12157 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12158 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12159 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12160 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12161 (word_dce_process_block, dce_process_block): Likewise.
12162 * ddg.c (def_has_ccmode_p): Likewise.
12163 * df-core.c (df_bb_regno_first_def_find): Likewise.
12164 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12165 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12166 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12167 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12168 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12169 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12170 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12171 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12172 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12173 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12174 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12175 * fwprop.c (local_ref_killed_between_p): Likewise.
12176 (all_uses_available_at, free_load_extend): Likewise.
12177 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12178 * hw-doloop.c (scan_loop): Likewise.
12179 * ifcvt.c (dead_or_predicable): Likewise.
12180 * init-regs.c (initialize_uninitialized_regs): Likewise.
12181 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12182 (process_bb_node_lives): Likewise.
12183 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12184 (find_moveable_pseudos): Likewise.
12185 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12186 * recog.c (peep2_find_free_register): Likewise.
12187 * ree.c (get_defs): Likewise.
12188 * regstat.c (regstat_bb_compute_ri): Likewise.
12189 (regstat_bb_compute_calls_crossed): Likewise.
12190 * sched-deps.c (find_inc, find_mem): Likewise.
12191 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12192 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12193 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12194 (prepare_shrink_wrap): Likewise.
12195 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12196 * web.c (union_defs, pass_web::execute): Likewise.
12197 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12198 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12199
12200 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12201
12202 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12203 to inheritance pseudos.
12204 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12205
12206 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12207
12208 PR target/61415
12209 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12210 (BU_MISC_2): Rename to ...
12211 (BU_LDBL128_2): ... this.
12212 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12213 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12214 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12215 RS6000_BTM_LDBL128.
12216 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12217 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12218 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12219 (unpacktf_1): Likewise.
12220 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12221 (__builtin_longdouble_dw1): Likewise.
12222 * doc/sourcebuild.texi (longdouble128): Document.
12223
12224 2014-06-13 Jeff Law <law@redhat.com>
12225
12226 PR rtl-optimization/61094
12227 PR rtl-optimization/61446
12228 * ree.c (combine_reaching_defs): Get the mode for the copy from
12229 the extension insn rather than the defining insn.
12230
12231 2014-06-13 Dehao Chen <dehao@google.com>
12232
12233 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12234
12235 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12236
12237 * doc/install.texi (--enable-linker-plugin-configure-flags)
12238 (--enable-linker-plugin-flags): Document new flags.
12239
12240 2014-06-13 Martin Jambor <mjambor@suse.cz>
12241
12242 PR ipa/61186
12243 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12244 cache_token if returning early.
12245
12246 2014-06-13 Nick Clifton <nickc@redhat.com>
12247
12248 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12249 requested alignment is active.
12250 (LABEL_ALIGN): Likewise.
12251 (LOOP_ALIGN): Likewise.
12252
12253 2014-06-13 Richard Biener <rguenther@suse.de>
12254
12255 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12256 Rewrite to propagate the VN result into all uses where
12257 possible and to remove stmts becoming dead because of that.
12258 (eliminate): Generalize stmt removal handling, remove in
12259 reverse dominator order to support proper debug stmt
12260 generation. Update stmts before removing stmts.
12261 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12262
12263 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12264
12265 PR tree-optimization/61375
12266 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12267 symbolic number cannot be represented in an uint64_t.
12268 (find_bswap_or_nop_1): Likewise.
12269
12270 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12271
12272 * symtab.c (symtab_node::reset_section): New method.
12273 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12274 for localization.
12275 * cgraph.h (reset_section): Declare.
12276 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12277 do not consider comdat locals.
12278 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12279 for new symbol.
12280 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12281 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12282 reset sections of symbols dragged out of the comdats.
12283 (function_and_variable_visibility): Reset sections of
12284 localized symbols.
12285
12286 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12287
12288 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12289 to use symtab and decl_binds_to_current_def_p
12290 * tree-vectorizer.c (increase_alignment): Increase alignment
12291 of alias target, too.
12292
12293 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12294
12295 PR middle-end/61486
12296 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12297 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12298 if outer combined construct is distribute.
12299 (gimplify_omp_for): For OMP_DISTRIBUTE set
12300 gimplify_omp_ctxp->distribute.
12301 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12302 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12303 mapping into decl map.
12304
12305 2014-06-12 Jason Merrill <jason@redhat.com>
12306
12307 * common.opt (fabi-version): Change default to 0.
12308
12309 2014-06-12 Jason Merrill <jason@redhat.com>
12310
12311 * toplev.c (process_options): Reject -fabi-version=1.
12312
12313 2014-06-12 Jeff Law <law@redhat.com>
12314
12315 PR tree-optimization/61009
12316 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12317 value when we stop processing a block due to problematic PHIs.
12318
12319 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12320
12321 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12322 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12323 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12324 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12325 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12326 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12327 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12328 are not in the spec.
12329
12330 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12331
12332 PR target/59843
12333 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12334 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12335 Support V1DFmode.
12336
12337 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12338
12339 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12340
12341 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12342
12343 PR target/61443
12344 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12345 loading from address spaces.
12346
12347 2014-06-12 Martin Liska <mliska@suse.cz>
12348
12349 PR ipa/61462
12350 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12351 statement is reachable.
12352
12353 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12354
12355 * symtab.c (section_hash): New hash.
12356 (symtab_unregister_node): Clear section before freeing.
12357 (hash_section_hash_entry): New haser.
12358 (eq_sections): New function.
12359 (symtab_node::set_section_for_node): New method.
12360 (set_section_1): Update.
12361 (symtab_node::set_section): Take string instead of tree as parameter.
12362 (symtab_resolve_alias): Update.
12363 * cgraph.h (section_hash_entry_d): New structure.
12364 (section_hash_entry): New typedef.
12365 (cgraph_node): Change comdat_group_ to x_comdat_group,
12366 change section_ to x_section and turn into section_hash_entry;
12367 update accestors; put set_section_for_node offline.
12368 * tree.c (decl_section_name): Turn into string.
12369 (set_decl_section_name): Change parameter to be string.
12370 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12371 * sdbout.c (sdbout_one_type): Update.
12372 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12373 * varasm.c (IN_NAMED_SECTION, get_named_section,
12374 resolve_unique_section, hot_function_section, get_named_text_section,
12375 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12376 make_decl_rtl, default_unique_section): Update.
12377 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12378 (c6x_elf_unique_section): Update.
12379 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12380 * config/pa/pa.c (pa_function_section): Update.
12381 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12382 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12383 * config/arc/arc.c (arc_in_small_data_p): Update.
12384 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12385 * config/mcore/mcore.c (mcore_unique_section): Update.
12386 * config/mips/mips.c (mips16_build_function_stub): Update.
12387 (mips16_build_call_stub): Update.
12388 (mips_function_rodata_section): Update.
12389 (mips_in_small_data_p): Update.
12390 * config/score/score.c (score_in_small_data_p): Update.
12391 * config/rx/rx.c (rx_in_small_data): Update.
12392 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12393 (rs6000_xcoff_asm_named_section): Update.
12394 (rs6000_xcoff_unique_section): Update.
12395 * config/frv/frv.c (frv_string_begins_with): Update.
12396 (frv_in_small_data_p): Update.
12397 * config/v850/v850.c (v850_encode_data_area): Update.
12398 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12399 (bfin_handle_l1_data_attribute): Update.
12400 (bfin_handle_l2_attribute): Update.
12401 * config/mep/mep.c (mep_unique_section): Update.
12402 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12403 Update.
12404 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12405 (h8300_handle_tiny_data_attribute): Update.
12406 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12407 (m32r_in_small_data_p): Update.
12408 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12409 * config/i386/i386.c (ix86_in_large_data_p): Update.
12410 * config/i386/winnt.c (i386_pe_unique_section): Update.
12411 * config/darwin.c (darwin_function_section): Update.
12412 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12413 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12414 (new_emutls_decl): Update.
12415 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12416 input_varpool_node): Update.
12417 (ead_string_cst): Turn to ...
12418 (read_string): ... this one.
12419 * dwarf2out.c (secname_for_decl): Update.
12420 * asan.c (asan_protect_global): Update.
12421
12422 2014-06-11 DJ Delorie <dj@redhat.com>
12423
12424 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12425 cache lines.
12426 * config/rx/rx.c (rx_option_override): Likewise.
12427 (rx_align_for_label): Likewise.
12428
12429 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12430
12431 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12432
12433 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12434 prototype.
12435
12436 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12437
12438 * common.md: New file.
12439 * doc/md.texi: Update description of generic, machine-independent
12440 constraints.
12441 * config/s390/constraints.md (e): Delete.
12442 * Makefile.in (md_file): Include common.md.
12443 * config/m32c/t-m32c (md_file): Likewise.
12444 * genpreds.c (general_mem): New array.
12445 (generic_constraint_letters): Remove constraints now defined by
12446 common.md.
12447 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12448 Allow the first character to be '<' or '>' as well.
12449 * genoutput.c (general_mem): New array.
12450 (indep_constraints): Remove constraints now defined by common.md.
12451 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12452 Remove special handling of 'm'.
12453 * ira-costs.c (record_reg_classes): Remove special handling of
12454 constraints now defined by common.md.
12455 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12456 * ira-lives.c (single_reg_class): Likewise.
12457 (ira_implicitly_set_insn_hard_regs): Likewise.
12458 * lra-constraints.c (reg_class_from_constraints): Likewise.
12459 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12460 * postreload.c (reload_cse_simplify_operands): Likewise.
12461 * reload.c (push_secondary_reload, scratch_reload_class)
12462 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12463 * reload1.c (maybe_fix_stack_asms): Likewise.
12464 * targhooks.c (default_secondary_reload): Likewise.
12465 * stmt.c (parse_output_constraint): Likewise.
12466 * recog.c (preprocess_constraints): Likewise.
12467 (constrain_operands, peep2_find_free_register): Likewise.
12468 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12469 must be handled specially.
12470
12471 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12472
12473 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12474 * genpreds.c (have_const_dbl_constraints): Delete.
12475 (add_constraint): Don't set it.
12476 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12477 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12478 constraints using the lookup_constraint logic.
12479 * ira-lives.c (single_reg_class): Likewise.
12480 * ira.c (ira_setup_alts): Likewise.
12481 * lra-constraints.c (process_alt_operands): Likewise.
12482 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12483 * reload.c (find_reloads): Likewise.
12484
12485 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12486
12487 * genpreds.c (const_int_start, const_int_end): New variables.
12488 (choose_enum_order): Output CONST_INT constraints before memory
12489 constraints.
12490 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12491 Add CT_CONST_INT.
12492 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12493 * ira.c (ira_setup_alts): Likewise.
12494 * lra-constraints.c (process_alt_operands): Likewise.
12495 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12496 * reload.c (find_reloads): Likewise.
12497
12498 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12499
12500 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12501 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12502 * recog.c (preprocess_constraints): Update accordingly.
12503
12504 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12505
12506 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12507 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12508 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12509 * genpreds.c (print_type_tree): New function.
12510 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12511 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12512 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12513 Write out enum constraint_type and get_constraint_type.
12514 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12515 constraint_num rather than a constraint string.
12516 (satisfies_address_constraint_p): Likewise.
12517 (reg_class_from_constraints): Avoid old constraint macros.
12518 (process_alt_operands, process_address_1): Likewise.
12519 (curr_insn_transform): Likewise.
12520 * ira-costs.c (record_reg_classes): Likewise.
12521 (record_operand_costs): Likewise.
12522 * ira-lives.c (single_reg_class): Likewise.
12523 (ira_implicitly_set_insn_hard_regs): Likewise.
12524 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12525 * postreload.c (reload_cse_simplify_operands): Likewise.
12526 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12527 (constrain_operands, peep2_find_free_register): Likewise.
12528 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12529 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12530 * reload1.c (maybe_fix_stack_asms): Likewise.
12531 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12532 * targhooks.c (default_secondary_reload): Likewise.
12533 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12534 to EXTRA_CONSTRAINT_STR.
12535 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12536
12537 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12538
12539 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12540 (write_constraint_satisfied_p_array): ...this new function.
12541 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12542 an array.
12543 (write_insn_preds_c): Update accordingly.
12544
12545 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12546
12547 * genpreds.c (write_lookup_constraint): Rename to...
12548 (write_lookup_constraint_1): ...this.
12549 (write_lookup_constraint_array): New function.
12550 (write_tm_preds_h): Define lookup_constraint as an inline function
12551 that uses write_lookup_constraint_array where possible.
12552 (write_insn_preds_c): Update for the changes above.
12553
12554 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12555
12556 * doc/md.texi (regclass_for_constraint): Rename to...
12557 (reg_class_for_constraint): ...this.
12558 * genpreds.c (num_constraints, enum_order, register_start)
12559 (register_end, satisfied_start, memory_start, memory_end)
12560 (address_start, address_end): New variables.
12561 (add_constraint): Count the number of constraints.
12562 (choose_enum_order): New function.
12563 (write_enum_constraint_num): Iterate over enum_order.
12564 (write_regclass_for_constraint): Rename to...
12565 (write_reg_class_for_constraint_1): ...this and update output
12566 accordingly.
12567 (write_constraint_satisfied_p): Rename to...
12568 (write_constraint_satisfied_p_1): ...this and update output
12569 accordingly. Do nothing if all extra constraints are register
12570 constraints.
12571 (write_insn_extra_memory_constraint): Delete.
12572 (write_insn_extra_address_constraint): Delete.
12573 (write_range_function): New function.
12574 (write_tm_preds_h): Define constraint_satisfied_p and
12575 reg_class_for_constraint as inline functions that do a range check
12576 before calling the out-of-line function. Use write_range_function
12577 to implement insn_extra_{register,memory,address}_constraint,
12578 the first of which is new.
12579 (write_insn_preds_c): Update after above changes to write_* functions.
12580 (main): Call choose_enum_order.
12581
12582 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12583
12584 PR tree-optimization/61306
12585 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12586 expression instead of its size.
12587 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12588 false to prevent optimization when the result is unpredictable due to
12589 arithmetic right shift of signed type with highest byte is set.
12590 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12591 (init_symbolic_number): Likewise.
12592 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12593 when the result is unpredictable due to sign extension.
12594
12595 2014-06-11 Terry Guo <terry.guo@arm.com>
12596
12597 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12598 (*thumb1_addsi3): Ditto.
12599 (*thumb_subdi3): Ditto.
12600 (thumb1_subsi3_insn): Ditto.
12601 (*thumb_mulsi3): Ditto.
12602 (*thumb_mulsi3_v6): Ditto.
12603 (*thumb1_andsi3_insn): Ditto.
12604 (thumb1_bicsi3): Ditto.
12605 (*thumb1_iorsi3_insn): Ditto.
12606 (*thumb1_xorsi3_insn): Ditto.
12607 (*thumb1_ashlsi3): Ditto.
12608 (*thumb1_ashrsi3): Ditto.
12609 (*thumb1_lshrsi3): Ditto.
12610 (*thumb1_rotrsi3): Ditto.
12611 (*thumb1_negdi2): Ditto.
12612 (*thumb1_negsi2): Ditto.
12613 (*thumb1_abssi2): Ditto.
12614 (*thumb1_neg_abssi2): Ditto.
12615 (*thumb1_one_cmplsi2): Ditto.
12616 (*thumb1_zero_extendhisi2): Ditto.
12617 (*thumb1_zero_extendqisi2): Ditto.
12618 (*thumb1_zero_extendqisi2_v6): Ditto.
12619 (thumb1_extendhisi2): Ditto.
12620 (thumb1_extendqisi2): Ditto.
12621 (*thumb1_movdi_insn): Ditto.
12622 (*thumb1_movsi_insn): Ditto.
12623 (*thumb1_movhi_insn): Ditto.
12624 (thumb_movhi_clobber): Ditto.
12625 (*thumb1_movqi_insn): Ditto.
12626 (*thumb1_movhf): Ditto.
12627 (*thumb1_movsf_insn): Ditto.
12628 (*thumb_movdf_insn): Ditto.
12629 (movmem12b): Ditto.
12630 (movmem8b): Ditto.
12631 (cbranchqi4): Ditto.
12632 (cbranchsi4_insn): Ditto.
12633 (cbranchsi4_scratch): Ditto.
12634 (*negated_cbranchsi4): Ditto.
12635 (*tbit_cbranch): Ditto.
12636 (*tlobits_cbranch): Ditto.
12637 (*tstsi3_cbranch): Ditto.
12638 (*cbranchne_decr1): Ditto.
12639 (*addsi3_cbranch): Ditto.
12640 (*addsi3_cbranch_scratch): Ditto.
12641 (*thumb_cmpdi_zero): Ditto.
12642 (cstoresi_eq0_thumb1): Ditto.
12643 (cstoresi_ne0_thumb1): Ditto.
12644 (*cstoresi_eq0_thumb1_insn): Ditto.
12645 (*cstoresi_ne0_thumb1_insn): Ditto.
12646 (cstoresi_nltu_thumb1): Ditto.
12647 (cstoresi_ltu_thumb1): Ditto.
12648 (thumb1_addsi3_addgeu): Ditto.
12649 (*thumb_jump): Ditto.
12650 (*call_reg_thumb1_v5): Ditto.
12651 (*call_reg_thumb1): Ditto.
12652 (*call_value_reg_thumb1_v5): Ditto.
12653 (*call_value_reg_thumb1): Ditto.
12654 (*call_insn): Ditto.
12655 (*call_value_insn): Ditto.
12656 (thumb1_casesi_internal_pic): Ditto.
12657 (thumb1_casesi_dispatch): Ditto.
12658 (*thumb1_indirect_jump): Ditto.
12659 (prologue_thumb1_interwork): Ditto.
12660 (*epilogue_insns): Ditto.
12661 (consttable_1): Ditto.
12662 (consttable_2): Ditto.
12663 (tablejump): Ditto.
12664 (*thumb1_tablejump): Ditto.
12665 (thumb_eh_return): Ditto.
12666 (define_peephole2): Two of them are thumb1 only and got moved into
12667 new file thumb1.md.
12668 (define_split): Six of them are thumb1 only and got moved into new
12669 file thumb1.md.
12670 * config/arm/thumb1.md: New file comprised of above thumb1 only
12671 patterns.
12672
12673 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12674
12675 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12676 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12677 dependencies.
12678 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12679 (aarch64_crc_builtin_datum): New struct.
12680 (aarch64_crc_builtin_data): New.
12681 (aarch64_init_crc32_builtins): New function.
12682 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12683 (aarch64_crc32_expand_builtin): New.
12684 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12685 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12686 __ARM_FEATURE_CRC32 when appropriate.
12687 (TARGET_CRC32): Define.
12688 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12689 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12690 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12691 (aarch64_<crc_variant>): New pattern.
12692 * config/aarch64/arm_acle.h: New file.
12693 * config/aarch64/iterators.md (CRC): New int iterator.
12694 (crc_variant, crc_mode): New int attributes.
12695 * doc/aarch64-acle-intrinsics.texi: New file.
12696 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12697 Include aarch64-acle-intrinsics.texi.
12698
12699 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12700
12701 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12702 check for stores group of length 3.
12703 (vect_permute_store_chain): New permutations for stores group of
12704 length 3.
12705 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12706 of vec_perm_shuffle for the new permutations.
12707
12708 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12709
12710 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12711 table rewriting temporarily on targets not supporting ONE_ONLY.
12712
12713 2014-06-11 Richard Biener <rguenther@suse.de>
12714
12715 PR middle-end/61437
12716 Revert
12717 2014-06-04 Richard Biener <rguenther@suse.de>
12718
12719 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12720 TREE_PUBLIC and DECL_EXTERNAL decls.
12721
12722 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12723
12724 * varasm.c (set_implicit_section): New function.
12725 (resolve_unique_section): Use it to set implicit section
12726 for aliases, too.
12727 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12728 (default_function_section): Likewise.
12729 (decl_binds_to_current_def_p): Constify argument.
12730 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12731 * asan.c (asan_protect_global): Use
12732 symtab_get_node (decl)->implicit_section.
12733 * symtab.c (dump_symtab_base): Dump implicit sections.
12734 (verify_symtab_base): Verify sanity of sectoins and comdats.
12735 (symtab_resolve_alias): Alias share the section of its target.
12736 (set_section_1): New function.
12737 (symtab_node::set_section): Move here, recurse to aliases.
12738 (verify_symtab): Check for duplicated symtab lists.
12739 * tree-core.h (implicit_section_name_p): Remove.
12740 * tree-vect-data-refs.c: Include varasm.h.
12741 (vect_can_force_dr_alignment_p): Fix conditional on when
12742 decl bints to current definition; use
12743 symtab_get_node (decl)->implicit_section.
12744 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12745 * cgraph.h (struct symtab_node): Add implicit_section.
12746 (set_section): Rename to ...
12747 (set_section_for_node): ... this one.
12748 (set_section): Declare.
12749 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12750 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12751 input_overwrite_node, input_varpool_node): Stream implicit_section.
12752 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12753 removal; it will fail in LTO.
12754
12755 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12756
12757 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12758 Change second alternative type to f_mcr.
12759 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12760 and 12th alternatives' types to f_mcr and f_mrc.
12761 (*movdi_aarch64): Same for 12th and 13th alternatives.
12762 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12763 (aarch64_movtilow_tilow): Change type to fmov.
12764
12765 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12766
12767 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12768 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12769
12770 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12771
12772 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12773 New expander.
12774 (aarch64_sqrdmulh_lane<mode>): Likewise.
12775 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12776 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12777 (aarch64_sqdmulh_laneq<mode>): New expander.
12778 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12779 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12780 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12781 (aarch64_sqdmulh_lane<mode>): New expander.
12782 (aarch64_sqrdmulh_lane<mode>): Likewise.
12783 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12784 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12785 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12786 (aarch64_sqdmlal_laneq<mode>): Likewise.
12787 (aarch64_sqdmlsl_lane<mode>): Likewise.
12788 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12789 (aarch64_sqdmlal2_lane<mode>): Likewise.
12790 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12791 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12792 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12793 (aarch64_sqdmull_lane<mode>): Likewise.
12794 (aarch64_sqdmull_laneq<mode>): Likewise.
12795 (aarch64_sqdmull2_lane<mode>): Likewise.
12796 (aarch64_sqdmull2_laneq<mode>): Likewise.
12797
12798 2014-06-10 Richard Biener <rguenther@suse.de>
12799
12800 PR tree-optimization/61438
12801 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12802 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12803 insertion of IVs if running PRE.
12804 (eliminate): Adjust.
12805 (pass_pre::execute): Likewise.
12806 (pass_fre::execute): Likewise.
12807
12808 2014-06-10 Richard Biener <rguenther@suse.de>
12809
12810 PR middle-end/61456
12811 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12812 Do not use the main variant for the type comparison.
12813 (ncr_compar): Likewise.
12814 (nonoverlapping_component_refs_p): Likewise.
12815
12816 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12817
12818 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12819 REG_CFA_RESTORE mode.
12820
12821 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12822
12823 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12824 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12825 expand_vec_perm_pblendv.
12826
12827 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12828
12829 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12830 available.
12831 Simplify description of __crc32d and __crc32cd intrinsics.
12832 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12833 availability.
12834
12835 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12836
12837 PR lto/61334
12838 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12839 * config.in: Regenerate.
12840 * configure: Likewise.
12841
12842 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12843
12844 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12845 and public vars.
12846 (intersect_static_var_sets): Remove.
12847 (propagate): Do not prune local statics.
12848
12849 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12850
12851 PR fortran/60928
12852 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12853 Set lastprivate_firstprivate even if omp_private_outer_ref
12854 langhook returns true.
12855 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12856 langhook, call unshare_expr on new_var and call
12857 build_outer_var_ref to get the last argument.
12858
12859 2014-06-10 Marek Polacek <polacek@redhat.com>
12860
12861 PR c/60988
12862 * doc/extend.texi: Add cindex for transparent_union.
12863
12864 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12865
12866 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12867 init_symbolic_number ().
12868
12869 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12870
12871 PR middle-end/61141
12872 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12873 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12874 (verify_rtl_sharing): Likewise.
12875
12876 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12877
12878 PR c++/54442
12879 * tree.c (build_qualified_type): Use a canonical type for
12880 TYPE_CANONICAL.
12881
12882 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12883
12884 * config/arm/arm-modes.def: Remove XFmode.
12885
12886 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12887
12888 PR target/61062
12889 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12890 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12891 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12892 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12893 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12894 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12895 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12896 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12897 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12898
12899 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12900
12901 * tree-core.h (tree_decl_with_vis): Remove section_name.
12902
12903 2014-06-09 Kito Cheng <kito@0xlab.org>
12904
12905 * ira.c (ira): Don't call init_caller_save if LRA enabled
12906 since LRA use its own infrastructure to handle that.
12907
12908 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12909
12910 * symtab.c (dump_symtab_base): Update dumping.
12911 (symtab_make_decl_local): Clear only DECL_COMDAT.
12912 * tree-vect-data-refs.c (Check that variable is static before
12913 tampering with sections.
12914 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12915 (cgraph_create_virtual_clone): Likewise.
12916 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12917 (decl_section_name, set_decl_section_name): New accessors.
12918 (find_decls_types_r): Do not walk section name
12919 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12920 (decl_comdat_group, decl_comdat_group_id): Constify.
12921 (decl_section_name, set_decl_section_name): Update.
12922 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12923 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12924 (cgraph_make_node_local_1): Clear section and comdat group.
12925 * cgraph.h (set_comdat_group): Sanity check.
12926 (get_section, set_section): New.
12927 * ipa-comdats.c (ipa_comdats): Use get_section.
12928 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12929 * lto-streamer-out.c: Do not follow section names.
12930 * c-family/c-common.c (handle_section_attribute): Update.
12931 * lto-cgraph.c (lto_output_node): Output section.
12932 (lto_output_varpool_node): Likewise.
12933 (read_comdat_group): Rename to ...
12934 (read_identifier): ... this one.
12935 (read_string_cst): New function.
12936 (input_node, input_varpool_node): Input section names.
12937 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12938 (new_emutls_decl): Update.
12939 (secname_for_decl): Check section names only of static vars.
12940 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12941 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12942 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12943 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12944 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12945 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12946 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12947 * config/v850/v850.c (v850_insert_attributes): Likewise.
12948 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12949 Likewise.
12950 (h8300_handle_tiny_data_attribute): Likewise.
12951 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12952 (bfin_handle_l2_attribute): Likewise.
12953
12954 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12955
12956 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12957 remove static initializer.
12958
12959 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12960
12961 * varasm.c (use_blocks_for_decl_p): Check symbol table
12962 instead of alias attribute.
12963 (place_block_symbol): Recurse on aliases.
12964
12965 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12966
12967 * ipa-visibility.c: Include varasm.h
12968 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12969
12970 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12971
12972 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12973 outputting aliases.
12974
12975 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12976
12977 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12978 from test_insn into GGC space escape via SET_SRC.
12979
12980 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12981
12982 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12983 call statement, if any.
12984 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12985 statements, if any. Tidy up.
12986
12987 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12988
12989 PR target/61431
12990 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12991 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12992 handles swapping the two 64-bit double words on little endian
12993 systems. Include V1TImode and optionally TImode in VSX_LE so that
12994 these types are properly swapped. Change all of the insns and
12995 splits that do the 64-bit swaps to use VSX_LE.
12996 (vsx_le_perm_load_<mode>): Likewise.
12997 (vsx_le_perm_store_<mode>): Likewise.
12998 (splitters for little endian memory operations): Likewise.
12999 (vsx_xxpermdi2_le_<mode>): Likewise.
13000 (vsx_lxvd2x2_le_<mode>): Likewise.
13001 (vsx_stxvd2x2_le_<mode>): Likewise.
13002
13003 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13004
13005 PR target/61423
13006 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13007 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13008 and corresponding splitters. Zero extend general register
13009 or memory input operand to XMM temporary. Enable for
13010 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13011 (floatunssi<mode>2): Update expander predicate.
13012
13013 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13014
13015 PR rtl-optimization/61325
13016 * lra-constraints.c (process_address_1): Check scale equal to one
13017 to prevent transformation: base + scale * index => base + new_reg.
13018
13019 2014-06-06 Richard Biener <rguenther@suse.de>
13020
13021 PR tree-optimization/59299
13022 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13023 a def operand.
13024 (nearest_common_dominator_of_uses): Likewise.
13025 (statement_sink_location): Adjust. Support sinking loads.
13026
13027 2014-06-06 Martin Jambor <mjambor@suse.cz>
13028
13029 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13030 (build_agg_jump_func_from_list): Likewise.
13031 (determine_known_aggregate_parts): Renamed to
13032 determine_locally_known_aggregate_parts. Moved some functionality
13033 to the two functions above, removed bound checks.
13034
13035 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13036
13037 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13038 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13039 (aarch64_progress_pointer): Likewise.
13040 (aarch64_copy_one_part_and_move_pointers): Likewise.
13041 (aarch64_expand_movmen): Likewise.
13042 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13043 * config/aarch64/aarch64.md (movmem<mode>): New.
13044
13045 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13046
13047 * targhooks.c (default_add_stmt_cost): Call target specific
13048 hook instead of default one.
13049
13050 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13051
13052 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13053 endianness instead of host endianness.
13054 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13055 comments.
13056
13057 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13058
13059 PR debug/53927
13060 * function.c (instantiate_decls): Process the saved static chain.
13061 (expand_function_start): If not optimizing, save the static chain
13062 onto the stack.
13063 * tree-nested.c (convert_all_function_calls): Always create the static
13064 chain for nested functions if not optimizing.
13065
13066 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13067
13068 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13069
13070 2014-06-06 Richard Biener <rguenther@suse.de>
13071
13072 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13073 (construct_init_block): Likewise.
13074 (construct_exit_block): Likewise.
13075 (pass_expand::execute): Likewise.
13076 * graphite.c (graphite_transforms): Replace check for current_loops
13077 with a check for > 1 loops.
13078 (pass_graphite_transforms::execute): Adjust.
13079 * ipa-split.c (split_function): Remove check for current_loops.
13080 * omp-low.c (expand_parallel_call): Likewise.
13081 (expand_omp_for_init_counts): Likewise.
13082 (extract_omp_for_update_vars): Likewise.
13083 (expand_omp_for_generic): Likewise.
13084 (expand_omp_sections): Likewise.
13085 (expand_omp_target): Likewise.
13086 * tracer.c (tail_duplicate): Likewise.
13087 (pass_tracer::execute): Likewise.
13088 * trans-mem.c (expand_transaction): Likewise.
13089 * tree-complex.c (expand_complex_div_wide): Likewise.
13090 * tree-eh.c (lower_resx): Likewise.
13091 (cleanup_empty_eh_merge_phis): Likewise.
13092 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13093 current_loops with a check for > 1 loops.
13094 (pass_predcom::execute): Adjust.
13095 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13096 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13097 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13098 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13099 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13100 * tree-switch-conversion.c (process_switch): Likewise.
13101 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13102 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13103 (execute_vrp): Likewise.
13104 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13105
13106 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13107
13108 * rtl.h (insn_location): Declare.
13109 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13110 with UNKNOWN_LOCATION.
13111 * emit-rtl.c (insn_location): New function.
13112 * final.c (notice_source_line): Check that the instruction has a
13113 location before retrieving it and use insn_location.
13114 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13115 * print-rtl.c (print_rtx): Likewise.
13116
13117 2014-06-06 Richard Biener <rguenther@suse.de>
13118
13119 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13120
13121 2014-06-06 Christian Bruel <christian.bruel@st.com>
13122
13123 PR tree-optimization/43934
13124 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13125 cost.
13126
13127 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13128
13129 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13130 return NO_REGS for extra address and memory constraints. Handle
13131 operands that match (or are equivalent to something that matches)
13132 extra constant constraints. Ignore other non-register operands.
13133
13134 2014-06-06 Alan Modra <amodra@gmail.com>
13135
13136 PR target/61300
13137 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13138 * doc/tm.texi: Regenerate.
13139 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13140 Use throughout in place of REG_PARM_STACK_SPACE.
13141 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13142 "incoming" param. Pass to rs6000_function_parms_need_stack.
13143 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13144 prototype_p when incoming. Use function decl when incoming
13145 to handle K&R style functions.
13146 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13147 (INCOMING_REG_PARM_STACK_SPACE): Define.
13148
13149 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13150
13151 PR target/52472
13152 * cfgexpand.c (expand_debug_expr): Use address space of nested
13153 TREE_TYPE for ADDR_EXPR and MEM_REF.
13154
13155 2014-06-05 Jeff Law <law@redhat.com>
13156
13157 PR tree-optimization/61289
13158 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13159 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13160 looking for those which match LHS. All callers changed.
13161 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13162 parameters and code which manipulated them. All callers changed.
13163 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13164 and DST_MAP parameters. Simplify invalidation code by just calling
13165 invalidate_equivalences. All callers changed.
13166 (thread_across_edge): Simplify now that we don't need to maintain
13167 the map of equivalences to invalidate.
13168
13169 2014-06-05 Kai Tietz <ktietz@redhat.com>
13170 Richard Henderson <rth@redhat.com>
13171
13172 PR target/46219
13173 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13174 checking for !TARGET_X32.
13175 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13176 (sibcall_intern): New define_insn, plus required peepholes.
13177 (sibcall_pop_intern): Likewise.
13178 (sibcall_value_intern): Likewise.
13179 (sibcall_value_pop_intern): Likewise.
13180
13181 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13182
13183 * tree-inline.c (tree_function_versioning): Check DF info existence
13184 before accessing it.
13185
13186 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13187
13188 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13189 frame_size.
13190 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13191 aarch64_frame hard_fp_offset and frame_size.
13192 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13193 frame_size; remove original_frame_size.
13194 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13195 (aarch64_initial_elimination_offset): Remove frame_size and
13196 offset. Use aarch64_frame frame_size.
13197
13198 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13199 Jiong Wang <jiong.wang@arm.com>
13200 Renlin <renlin.li@arm.com>
13201
13202 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13203 initialization of R30 offset. Update offset. Iterate core
13204 regisers upto X30. Remove X29, X30 specific code.
13205
13206 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13207 Jiong Wang <jiong.wang@arm.com>
13208
13209 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13210 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13211 (aarch64_register_saved_on_entry): Adjust test.
13212
13213 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13214
13215 * config/aarch64/aarch64.h (machine_function): Move
13216 saved_varargs_size from here...
13217 (aarch64_frame): ... to here.
13218
13219 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13220 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13221 (aarch64_initial_elimination_offset)
13222 (aarch64_setup_incoming_varargs): Adjust location of
13223 saved_varargs_size.
13224
13225 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13226
13227 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13228 layout comment.
13229
13230 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13231 Prachi Godbole <Prachi.Godbole@imgtec.com>
13232
13233 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13234 mips32r5 entry to use PROCESSOR_P5600.
13235 * config/mips/mips-tables.opt: Regenerate.
13236 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13237 * config/mips/mips.c (mips_fmadd_bypass): New function.
13238 (mips_rtx_cost_data): Add costs for p5600.
13239 (mips_issue_rate): Add support for p5600.
13240 (mips_multipass_dfa_lookahead): Likewise.
13241 * config/mips/mips.h (TUNE_P5600): New define.
13242 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13243 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13244 * config/mips/mips.md: Include p5600.md.
13245 (processor): Add p5600.
13246 * config/mips/p5600.md: New file.
13247
13248 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13249
13250 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13251 * config/i386/predicates.md (palignr_operand): New.
13252 Indicates if permutation is suitable for palignr instruction.
13253
13254 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13255
13256 PR tree-optimization/61319
13257 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13258 stmt belongs to loop.
13259
13260 2014-06-05 Richard Biener <rguenther@suse.de>
13261
13262 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13263 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13264 (lookup_tmp_var): Adjust.
13265 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13266
13267 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13268
13269 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13270
13271 2014-06-05 Marek Polacek <polacek@redhat.com>
13272
13273 PR c/49706
13274 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13275
13276 2014-06-04 Tom de Vries <tom@codesourcery.com>
13277
13278 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13279 CONST_INT.
13280
13281 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13282
13283 PR tree-optimization/61385
13284 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13285
13286 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13287
13288 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13289 changed to use fatal_error.
13290 (main): Ensure lto_wrapper_cleanup is run atexit.
13291
13292 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13293
13294 * lra-constraints.c (valid_address_p): Move earlier in file.
13295 (address_eliminator): New structure.
13296 (satisfies_memory_constraint_p): New function.
13297 (satisfies_address_constraint_p): Likewise.
13298 (process_alt_operands, process_address, curr_insn_transform): Use them.
13299
13300 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13301
13302 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13303 const pointer.
13304 (target_lra_int, default_target_lra_int, this_target_lra_int)
13305 (op_alt_data): Delete.
13306 * lra.h (lra_init): Delete.
13307 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13308 (init_insn_code_data_once): Remove op_alt_data handling.
13309 (finish_insn_code_data_once): Likewise.
13310 (init_op_alt_data): Delete.
13311 (get_static_insn_data): Initialize operand_alternative to null.
13312 (free_insn_recog_data): Cast operand_alternative before freeing it.
13313 (setup_operand_alternative): Take the operand_alternative as
13314 parameter and assume it isn't already cached in the static
13315 insn data.
13316 (lra_set_insn_recog_data): Update accordingly.
13317 (lra_init): Delete.
13318 * ira.c (ira_init): Don't call lra_init.
13319 * target-globals.h (this_target_lra_int): Declare.
13320 (target_globals): Remove lra_int.
13321 (restore_target_globals): Update accordingly.
13322 * target-globals.c: Don't include lra-int.h.
13323 (default_target_globals, save_target_globals): Remove lra_int.
13324
13325 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13326
13327 * recog.h (operand_alternative): Convert reg_class, reject,
13328 matched and matches into bitfields.
13329 (preprocess_constraints): New overload.
13330 (preprocess_insn_constraints): New function.
13331 (preprocess_constraints): Take the insn as parameter.
13332 (recog_op_alt): Change into a pointer.
13333 (target_recog): Add x_op_alt.
13334 * recog.c (asm_op_alt): New variable.
13335 (recog_op_alt): Change into a pointer.
13336 (preprocess_constraints): New overload, replacing the old function
13337 definition with one that doesn't use global state.
13338 (preprocess_insn_constraints): New function.
13339 (preprocess_constraints): Use them. Take the insn as parameter.
13340 Use asm_op_alt for asms.
13341 (recog_init): Free existing x_op_alt entries.
13342 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13343 pointer const.
13344 (make_early_clobber_and_input_conflicts): Likewise.
13345 (process_bb_node_lives): Pass the insn to process_constraints.
13346 * reg-stack.c (check_asm_stack_operands): Likewise.
13347 (subst_asm_stack_regs): Likewise.
13348 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13349 * regrename.c (build_def_use): Likewise.
13350 * sched-deps.c (sched_analyze_insn): Likewise.
13351 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13352 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13353 (note_invalid_constants): Likewise.
13354 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13355 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13356 const.
13357
13358 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13359
13360 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13361 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13362 alternatives.
13363 (make_early_clobber_and_input_conflicts): Likewise.
13364 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13365
13366 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13367
13368 * recog.h (alternative_class): New function.
13369 (which_op_alt): Return a const recog_op_alt.
13370 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13371 (subst_asm_stack_regs): Likewise.
13372 * config/arm/arm.c (note_invalid_constants): Likewise.
13373 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13374 the operand_alternative; use alternative class instead.
13375 * sel-sched.c (get_reg_class): Likewise.
13376 * regrename.c (build_def_use): Likewise.
13377 (hide_operands, restore_operands, record_out_operands): Update type
13378 accordingly.
13379
13380 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13381
13382 * recog.h (recog_op_alt): Convert to a flat array.
13383 (which_op_alt): New function.
13384 * recog.c (recog_op_alt): Convert to a flat array.
13385 (preprocess_constraints): Update accordingly, grouping all
13386 operands of the same alternative together, rather than the
13387 other way around.
13388 * ira-lives.c (check_and_make_def_conflict): Likewise.
13389 (make_early_clobber_and_input_conflicts): Likewise.
13390 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13391 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13392 (subst_asm_stack_regs): Likewise.
13393 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13394 * regrename.c (hide_operands, record_out_operands): Likewise.
13395 (build_def_use): Likewise.
13396 * sel-sched.c (get_reg_class): Likewise.
13397 * config/arm/arm.c (note_invalid_constants): Likewise.
13398
13399 2014-06-04 Jason Merrill <jason@redhat.com>
13400
13401 PR c++/51253
13402 PR c++/61382
13403 * gimplify.c (gimplify_arg): Non-static.
13404 * gimplify.h: Declare it.
13405
13406 2014-06-04 Richard Biener <rguenther@suse.de>
13407
13408 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13409 TREE_PUBLIC and DECL_EXTERNAL decls.
13410
13411 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13412
13413 * regcprop.c (copyprop_hardreg_forward_1): Account for
13414 HARD_REGNO_CALL_PART_CLOBBERED.
13415
13416 2014-06-04 Richard Biener <rguenther@suse.de>
13417
13418 * configure.ac: Check whether the underlying type of int64_t
13419 is long or long long.
13420 * configure: Regenerate.
13421 * config.in: Likewise.
13422 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13423 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13424
13425 2014-06-04 Richard Biener <rguenther@suse.de>
13426
13427 PR tree-optimization/60098
13428 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13429 we hit a kill.
13430 (dse_optimize_stmt): Simplify, now that we found a kill
13431 earlier.
13432
13433 2014-06-04 Richard Biener <rguenther@suse.de>
13434
13435 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13436 of accesses with non-invariant address.
13437
13438 2014-06-04 Martin Liska <mliska@suse.cz>
13439
13440 * cgraph.h (cgraph_make_wrapper): New function introduced.
13441 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13442 * ipa-inline.h (inline_analyze_function): The function is global.
13443 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13444
13445 2014-06-04 Martin Liska <mliska@suse.cz>
13446
13447 * tree.h (private_lookup_attribute_starting): New function.
13448 (lookup_attribute_starting): Likewise.
13449 * tree.c (private_lookup_attribute_starting): Likewise.
13450
13451 2014-06-04 Martin Liska <mliska@suse.cz>
13452
13453 * cgraph.h (expand_thunk): New argument added.
13454 (address_taken_from_non_vtable_p): New global function.
13455 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13456 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13457 * cgraphunit.c (analyze_function): Likewise.
13458 (assemble_thunks_and_aliases): Argument added to call.
13459 (expand_thunk): New argument forces to produce GIMPLE thunk.
13460
13461 2014-06-04 Martin Liska <mliska@suse.cz>
13462
13463 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13464 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13465 * profile.c (branch_prob): Likewise.
13466
13467 2014-06-04 Martin Jambor <mjambor@suse.cz>
13468
13469 PR ipa/61340
13470 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13471 handler for switch on an ipa_ref_use enum.
13472 * ipa-reference.c (analyze_function): Likewise.
13473
13474 2014-06-04 Kai Tietz <ktietz@redhat.com>
13475
13476 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13477 from old call-instruction.
13478
13479 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13480
13481 * config/aarch64/aarch64.c (aarch64_classify_address)
13482 (aarch64_legitimize_reload_address): Support full addressing modes
13483 for vector modes.
13484 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13485 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13486
13487 2014-06-03 Andrew Pinski <apinski@cavium.com>
13488
13489 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13490 for OP0.
13491
13492 2014-06-03 Andrew Pinski <apinski@cavium.com>
13493
13494 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13495 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13496
13497 2014-06-03 Kai Tietz <ktietz@redhat.com>
13498
13499 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13500 for 64-bit ms-abi.
13501
13502 2014-06-03 Dehao Chen <dehao@google.com>
13503
13504 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13505 the same loop.
13506
13507 2014-06-03 Marek Polacek <polacek@redhat.com>
13508
13509 PR c/60439
13510 * doc/invoke.texi: Document -Wswitch-bool.
13511 * function.c (stack_protect_epilogue): Cast controlling expression of
13512 the switch to int.
13513 * gengtype.c (walk_type): Generate switch expression with its
13514 controlling expression cast to int.
13515
13516 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13517
13518 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13519 and attiny841.
13520 * config/avr/avr-tables.opt: Regenerate.
13521 * config/avr/t-multilib: Regenerate.
13522 * doc/avr-mmcu.texi: Regenerate.
13523
13524 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13525 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13526
13527 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13528 (ata6617c, ata664251): Add new avr35 devices.
13529 (ata6612c): Add new avr4 device.
13530 (ata6613c, ata6614q): Add new avr5 devices.
13531 * config/avr/avr-tables.opt: Regenerate.
13532 * config/avr/t-multilib: Regenerate.
13533 * doc/avr-mmcu.texi: Regenerate.
13534
13535 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13536
13537 * gcc/config/aarch64/aarch64-builtins.c
13538 (aarch64_types_binop_ssu_qualifiers): New static data.
13539 (TYPES_BINOP_SSU): Define.
13540 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13541 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13542 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13543 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13544 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13545 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13546 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13547 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13548 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13549 suffix to builtin function name, remove cast.
13550 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13551 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13552 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13553
13554 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13555
13556 * gcc/config/aarch64/aarch64-builtins.c
13557 (aarch64_types_binop_uus_qualifiers,
13558 aarch64_types_shift_to_unsigned_qualifiers,
13559 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13560 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13561 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13562 sqshlu_n, uqshl_n): Update qualifiers.
13563 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13564 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13565 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13566 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13567 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13568 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13569 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13570 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13571 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13572 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13573 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13574 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13575 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13576 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13577 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13578 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13579 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13580 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13581 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13582 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13583 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13584 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13585 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13586 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13587 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13588 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13589 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13590
13591 2014-06-03 Teresa Johnson <tejohnson@google.com>
13592
13593 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13594
13595 2014-06-02 Jason Merrill <jason@redhat.com>
13596
13597 PR c++/61020
13598 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13599
13600 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13601
13602 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13603 location == 0.
13604
13605 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13606
13607 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13608 New pattern.
13609 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13610 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13611 * config/aarch64/iterators.md (REVERSE): New iterator.
13612 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13613 (rev_op): New int_attribute.
13614 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13615 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13616 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13617 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13618 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13619 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13620 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13621 Replace temporary __asm__ with __builtin_shuffle.
13622
13623 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13624
13625 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13626 mips64r5.
13627 * config/mips/mips-tables.opt: Regenerate.
13628 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13629 to use mips_isa_rev rather than ISA_MIPS32R2.
13630 * config/mips/mips.h (ISA_MIPS32R3): New define.
13631 (ISA_MIPS32R5): New define.
13632 (ISA_MIPS64R3): New define.
13633 (ISA_MIPS64R5): New define.
13634 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13635 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13636 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13637 and mips64r5.
13638 (MIPS_ISA_SYNCI_SPEC): Likewise.
13639 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13640 (LINK_SPEC): Added mips32r3 and mips32r5.
13641 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13642 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13643 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13644 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13645 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13646 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13647 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13648
13649 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13650
13651 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13652 options.
13653 * config/mips/mips.opt (mxpa): New option.
13654 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13655 assembler.
13656
13657 2014-06-03 Martin Jambor <mjambor@suse.cz>
13658
13659 PR ipa/61160
13660 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13661 thunks.
13662
13663 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13664
13665 PR tree-optimization/61328
13666 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13667 initialization from find_bswap_or_nop_1.
13668 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13669 in source_expr2 before using the size value the function sets. Also
13670 make use of init_symbolic_number () in both the old place and
13671 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13672 doing recursion in the GIMPLE_BINARY_RHS case.
13673
13674 2014-06-03 Richard Biener <rguenther@suse.de>
13675
13676 PR tree-optimization/61383
13677 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13678 stmts can't trap.
13679
13680 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13681
13682 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13683 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13684 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13685 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13686 in this file.
13687 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13688 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13689 * system.h: ...here and make it unconditional.
13690 * target.def (conditional_register_usage): Mention
13691 define_register_constraint instead of old-style constraint macros.
13692 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13693 * doc/tm.texi: Regenerate.
13694 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13695 protected by !USE_MD_CONSTRAINTS.
13696 * config/frv/frv.md: Remove quote from old version of documentation.
13697 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13698 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13699 CONST_DOUBLE_OK_FOR_LETTER.
13700 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13701
13702 2014-06-02 Andrew Pinski <apinski@cavium.com>
13703
13704 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13705 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13706 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13707 file whose name depends on -mabi= and -mbig-endian.
13708 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13709 Handle LP64 better and handle ilp32 too.
13710 (MULTILIB_OPTIONS): Delete.
13711 (MULTILIB_DIRNAMES): Delete.
13712
13713 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13714
13715 * expr.h: Remove prototypes of functions defined in builtins.c.
13716 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13717 Remove prototypes of functions defined in builtins.c.
13718 * builtins.h: Update prototype list to include all exported functions.
13719 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13720 no_c99_libc_has_function): Move to targhooks.c
13721 (build_string_literal, build_call_expr_loc_array,
13722 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13723 to tree.c.
13724 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13725 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13726 no_c99_libc_has_function): Relocate from builtins.c.
13727 * tree.c: Include builtins.h.
13728 (build_call_expr_loc_array, build_call_expr_loc_vec,
13729 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13730 from builtins.c.
13731 * fold-const.h (fold_fma): Move prototype to builtins.h.
13732 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13733 * asan.c: Include builtins.h.
13734 * cfgexpand.c: Likewise.
13735 * convert.c: Likewise.
13736 * emit-rtl.c: Likewise.
13737 * except.c: Likewise.
13738 * expr.c: Likewise.
13739 * fold-const.c: Likewise.
13740 * gimple-fold.c: Likewise.
13741 * gimple-ssa-strength-reduction.c: Likewise.
13742 * gimplify.c: Likewise.
13743 * ipa-inline.c: Likewise.
13744 * ipa-prop.c: Likewise.
13745 * lto-streamer-out.c: Likewise.
13746 * stmt.c: Likewise.
13747 * tree-inline.c: Likewise.
13748 * tree-object-size.c: Likewise.
13749 * tree-sra.c: Likewise.
13750 * tree-ssa-ccp.c: Likewise.
13751 * tree-ssa-forwprop.c: Likewise.
13752 * tree-ssa-loop-ivcanon.c: Likewise.
13753 * tree-ssa-loop-ivopts.c: Likewise.
13754 * tree-ssa-math-opts.c: Likewise.
13755 * tree-ssa-reassoc.c: Likewise.
13756 * tree-ssa-threadedge.c: Likewise.
13757 * tree-streamer-in.c: Likewise.
13758 * tree-vect-data-refs.c: Likewise.
13759 * tree-vect-patterns.c: Likewise.
13760 * tree-vect-stmts.c: Likewise.
13761 * config/aarch64/aarch64.c: Likewise.
13762 * config/alpha/alpha.c: Likewise.
13763 * config/arc/arc.c: Likewise.
13764 * config/arm/arm.c: Likewise.
13765 * config/avr/avr.c: Likewise.
13766 * config/bfin/bfin.c: Likewise.
13767 * config/c6x/c6x.c: Likewise.
13768 * config/cr16/cr16.c: Likewise.
13769 * config/cris/cris.c: Likewise.
13770 * config/epiphany/epiphany.c: Likewise.
13771 * config/fr30/fr30.c: Likewise.
13772 * config/frv/frv.c: Likewise.
13773 * config/h8300/h8300.c: Likewise.
13774 * config/i386/i386.c: Likewise.
13775 * config/i386/winnt.c: Likewise.
13776 * config/ia64/ia64.c: Likewise.
13777 * config/iq2000/iq2000.c: Likewise.
13778 * config/lm32/lm32.c: Likewise.
13779 * config/m32c/m32c.c: Likewise.
13780 * config/m32r/m32r.c: Likewise.
13781 * config/m68k/m68k.c: Likewise.
13782 * config/mcore/mcore.c: Likewise.
13783 * config/mep/mep.c: Likewise.
13784 * config/microblaze/microblaze.c: Likewise.
13785 * config/mips/mips.c: Likewise.
13786 * config/mmix/mmix.c: Likewise.
13787 * config/mn10300/mn10300.c: Likewise.
13788 * config/moxie/moxie.c: Likewise.
13789 * config/msp430/msp430.c: Likewise.
13790 * config/nds32/nds32.c: Likewise.
13791 * config/pa/pa.c: Likewise.
13792 * config/pdp11/pdp11.c: Likewise.
13793 * config/picochip/picochip.c: Likewise.
13794 * config/rl78/rl78.c: Likewise.
13795 * config/rs6000/rs6000.c: Likewise.
13796 * config/rx/rx.c: Likewise.
13797 * config/s390/s390.c: Likewise.
13798 * config/score/score.c: Likewise.
13799 * config/sh/sh.c: Likewise.
13800 * config/sparc/sparc.c: Likewise.
13801 * config/spu/spu.c: Likewise.
13802 * config/stormy16/stormy16.c: Likewise.
13803 * config/tilegx/tilegx.c: Likewise.
13804 * config/tilepro/tilepro.c: Likewise.
13805 * config/v850/v850.c: Likewise.
13806 * config/vax/vax.c: Likewise.
13807 * config/xtensa/xtensa.c: Likewise.
13808
13809 2014-06-02 Jeff Law <law@redhat.com>
13810
13811 PR rtl-optimization/61094
13812 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13813 was marked as do_no_reextend. If a copy is needed to eliminate
13814 an extension, then mark it as do_not_reextend.
13815
13816 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13817
13818 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13819
13820 2014-06-02 Richard Henderson <rth@redhat.com>
13821
13822 PR target/61336
13823 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13824 addresses inside asms. Use output_operand_lossage instead of
13825 gcc_unreachable.
13826
13827 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13828
13829 PR target/61239
13830 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13831 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13832
13833 2014-06-02 Tom de Vries <tom@codesourcery.com>
13834
13835 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13836 case that x has VOIDmode.
13837
13838 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13839
13840 * varasm.c (copy_constant): Delete function.
13841 (build_constant_desc): Don't call it.
13842
13843 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13844
13845 PR target/61154
13846 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13847 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13848 with immediate_operand.
13849
13850 2014-06-02 Andreas Schwab <schwab@suse.de>
13851
13852 * config/ia64/ia64.c
13853 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13854 pending_data_specs first.
13855
13856 2014-06-02 Richard Biener <rguenther@suse.de>
13857
13858 PR tree-optimization/61378
13859 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13860 valueized_anything.
13861
13862 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13863
13864 * config/i386/constraints.md (Bw): Rename from 'w'.
13865 (Bz): Rename from 'z'.
13866 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13867
13868 2014-06-01 Kai Tietz <ktietz@redhat.com>
13869
13870 PR target/61377
13871 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13872 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13873 instead of m constraint.
13874
13875 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13876
13877 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13878 a separate alternative where the scratch operand 2 is marked as
13879 early clobber.
13880
13881 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13882
13883 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13884 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13885 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13886 and __builtins_arm_get_fpscr.
13887 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13888 __builtins_arm_get_fpscr.
13889 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13890 __builtins_arm_ldfpscr.
13891 (arm_atomic_assign_expand_fenv): New function.
13892 * config/arm/vfp.md (set_fpscr): New pattern.
13893 (get_fpscr) : Likewise.
13894 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13895 VUNSPEC_SET_FPSCR.
13896 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13897 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13898
13899 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13900
13901 * asan.c (report_error_func): Add SLOW_P argument, use
13902 BUILT_IN_ASAN_*_N if set.
13903 (build_check_stmt): Likewise.
13904 (instrument_derefs): If T has insufficient alignment,
13905 force same handling as for odd sizes.
13906
13907 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13908 BUILT_IN_ASAN_REPORT_STORE_N): New.
13909 * asan.c (struct asan_mem_ref): Change access_size type to
13910 HOST_WIDE_INT.
13911 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13912 update_mem_ref_hash_table): Likewise.
13913 (asan_mem_ref_hasher::hash): Hash in a HWI.
13914 (report_error_func): Change size_in_bytes argument to HWI.
13915 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13916 two.
13917 (build_shadow_mem_access): New function.
13918 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13919 Handle size_in_bytes not power of two or larger than 16.
13920 (instrument_derefs): Don't give up if size_in_bytes is not
13921 power of two or is larger than 16.
13922
13923 2014-05-30 Kai Tietz <ktietz@redhat.com>
13924
13925 PR target/60104
13926 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13927 for sibling-tail-calls.
13928 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13929 to its use.
13930 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13931 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13932
13933 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13934
13935 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13936 * config/avr/avr-tables.opt: Regenerate.
13937 * config/avr/t-multilib: Regenerate.
13938 * doc/avr-mmcu.texi: Regenerate.
13939
13940 2014-05-30 Ian Lance Taylor <iant@google.com>
13941
13942 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13943 target("sse").
13944
13945 2014-05-30 Tom de Vries <tom@codesourcery.com>
13946
13947 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13948 Redefine as true.
13949
13950 2014-05-30 Tom de Vries <tom@codesourcery.com>
13951
13952 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13953 * lra.c (initialize_lra_reg_info_element): Add init of
13954 actual_call_used_reg_set field.
13955 (lra): Call lra_create_live_ranges before lra_inheritance for
13956 -fuse-caller-save.
13957 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13958 -fuse-caller-save.
13959 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13960 instead of call_used_reg_set for -fuse-caller-save.
13961 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13962
13963 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13964
13965 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13966 to mov_imm.
13967 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13968
13969 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13970
13971 * ira.c (ira_get_dup_out_num): Check for output operands at
13972 the start of the loop. Handle cases where an included alternative
13973 follows an excluded one.
13974
13975 2014-05-29 Mike Stump <mikestump@comcast.net>
13976
13977 PR debug/61352
13978 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13979 post ld passes when lto is used.
13980
13981 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13982
13983 PR rtl-optimization/61325
13984 * lra-constraints.c (process_address): Rename to process_address_1.
13985 (process_address): New function.
13986
13987 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13988
13989 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13990 TYPES_BINOPV): New static data.
13991 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13992 New builtin.
13993 * config/aarch64/aarch64-simd.md (aarch64_ext,
13994 aarch64_im_lane_boundsi): New patterns.
13995 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13996 patterns for EXT.
13997 (aarch64_evpc_ext): New function.
13998
13999 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14000
14001 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14002 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14003 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14004 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14005 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14006
14007 2014-05-29 Tom de Vries <tom@codesourcery.com>
14008
14009 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14010
14011 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14012 Richard Sandiford <rdsandiford@googlemail.com>
14013
14014 * arm/iterators.md (shiftable_ops): New code iterator.
14015 (t2_binop0, arith_shift_insn): New code attributes.
14016 * arm/predicates.md (shift_nomul_operator): New predicate.
14017 * arm/arm.md (insn_enabled): Delete.
14018 (enabled): Remove insn_enabled test.
14019 (*arith_shiftsi): Delete. Replace with ...
14020 (*<arith_shift_insn>_multsi): ... new pattern.
14021 (*<arith_shift_insn>_shiftsi): ... new pattern.
14022 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14023
14024 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14025 Tom de Vries <tom@codesourcery.com>
14026
14027 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14028 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14029 clobber.
14030 (mips_split_call): Use POST_CALL_TMP_REG.
14031 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14032
14033 2014-05-29 Tom de Vries <tom@codesourcery.com>
14034
14035 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14036 with #ifdef STACK_REGS.
14037
14038 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14039
14040 * varasm.c (get_variable_section): Walk aliases.
14041 (place_block_symbol): Walk aliases.
14042
14043 2014-05-28 Tom de Vries <tom@codesourcery.com>
14044
14045 Revert:
14046 2014-05-28 Tom de Vries <tom@codesourcery.com>
14047
14048 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14049 * lra.c (initialize_lra_reg_info_element): Add init of
14050 actual_call_used_reg_set field.
14051 (lra): Call lra_create_live_ranges before lra_inheritance for
14052 -fuse-caller-save.
14053 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14054 -fuse-caller-save.
14055 * lra-constraints.c (need_for_call_save_p): Use
14056 actual_call_used_reg_set instead of call_used_reg_set for
14057 -fuse-caller-save.
14058 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14059
14060 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14061
14062 * doc/md.texi: Document that the % constraint character must
14063 be at the beginning of the string.
14064 * genoutput.c (validate_insn_alternatives): Check that '=',
14065 '+' and '%' only appear at the beginning of a constraint.
14066 * ira.c (commutative_constraint_p): Delete.
14067 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14068 at the start of the string.
14069 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14070 duplicate '='s.
14071 * config/arm/neon.md (bicdi3_neon): Likewise.
14072 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14073 (slt_si, sltu_si): Likewise.
14074 * config/vax/vax.md (sbcdi3): Likewise.
14075 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14076 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14077 (mul64): Move '%' to beginning of constraint.
14078 * config/arm/arm.md (*xordi3_insn): Likewise.
14079 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14080 (xorsi3): Likewise.
14081
14082 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14083
14084 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14085
14086 2014-05-28 Jason Merrill <jason@redhat.com>
14087
14088 PR c++/47202
14089 * cgraph.h (symtab_node::get_comdat_group_id): New.
14090 * cgraphunit.c (analyze_functions): Call it.
14091 * symtab.c (dump_symtab_node): Likewise.
14092 * tree.c (decl_comdat_group_id): New.
14093 * tree.h: Declare it.
14094 * lto-streamer-out.c (write_symbol): Use it.
14095 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14096
14097 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14098
14099 PR bootstrap/PR61146
14100 * wide-int.cc: Do not include longlong.h when compiling with clang.
14101
14102 2014-05-28 Richard Biener <rguenther@suse.de>
14103
14104 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14105 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14106 (vrp_visit_assignment_or_call): Print less vertical space.
14107 (vrp_visit_stmt): Likewise.
14108 (vrp_visit_phi_node): Likewise. For a PHI argument with
14109 VR_VARYING range consider recording it as copy.
14110
14111 2014-05-28 Richard Biener <rguenther@suse.de>
14112
14113 Revert
14114 2014-05-28 Richard Biener <rguenther@suse.de>
14115
14116 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14117
14118 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14119
14120 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14121 sufficiently aligned and an offset is used at the same time.
14122 (expand_expr_real_1): Likewise.
14123
14124 2014-05-28 Richard Biener <rguenther@suse.de>
14125
14126 PR middle-end/61045
14127 * fold-const.c (fold_comparison): When folding
14128 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14129 the sign of the remaining constant operand stays the same.
14130
14131 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14132
14133 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14134 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14135 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14136 to the assembler.
14137 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14138 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14139 (m32bit-doubles) Likewise.
14140 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14141 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14142 option for RL78.
14143
14144 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14145
14146 * configure.ac ($gcc_cv_ld_clearcap): New test.
14147 * configure: Regenerate.
14148 * config.in: Regenerate.
14149 * config/sol2.opt (mclear-hwcap): New option.
14150 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14151 * config/sol2-clearcap.map: Moved here from
14152 testsuite/gcc.target/i386/clearcap.map.
14153 * config/sol2-clearcapv2.map: Move here from
14154 gcc.target/i386/clearcapv2.map.
14155 * config/t-sol2 (install): Depend on install-clearcap-map.
14156 (install-clearcap-map): New target.
14157 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14158 -mclear-hwcap.
14159
14160 2014-05-28 Richard Biener <rguenther@suse.de>
14161
14162 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14163 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14164 ... here and remove the rest.
14165 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14166
14167 2014-05-28 Richard Biener <rguenther@suse.de>
14168
14169 PR tree-optimization/61335
14170 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14171 new range fails, drop to varying.
14172
14173 2014-05-28 Olivier Hainque <hainque@adacore.com>
14174
14175 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14176 (CPP_SPEC): Add entry for -mcpu=8548.
14177 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14178 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14179
14180 2014-05-28 Tom de Vries <tom@codesourcery.com>
14181
14182 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14183 * lra.c (initialize_lra_reg_info_element): Add init of
14184 actual_call_used_reg_set field.
14185 (lra): Call lra_create_live_ranges before lra_inheritance for
14186 -fuse-caller-save.
14187 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14188 -fuse-caller-save.
14189 * lra-constraints.c (need_for_call_save_p): Use
14190 actual_call_used_reg_set instead of call_used_reg_set for
14191 -fuse-caller-save.
14192 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14193
14194 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14195 Tom de Vries <tom@codesourcery.com>
14196
14197 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14198 to gccoptlist.
14199 (@item -fuse-caller-save): New item.
14200
14201 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14202 Tom de Vries <tom@codesourcery.com>
14203
14204 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14205 OPT_fuse_caller_save.
14206
14207 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14208 Tom de Vries <tom@codesourcery.com>
14209
14210 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14211 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14212 get_call_reg_set_usage.
14213 * resource.c (mark_set_resources, mark_target_live_regs): Use
14214 get_call_reg_set_usage.
14215 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14216 field.
14217 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14218 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14219 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14220 * ira-build.c (ira_create_allocno): Init
14221 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14222 (create_cap_allocno, propagate_allocno_info)
14223 (propagate_some_info_from_allocno)
14224 (copy_info_to_removed_store_destinations): Handle
14225 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14226 * ira-costs.c (ira_tune_allocno_costs): Use
14227 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14228
14229 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14230 Tom de Vries <tom@codesourcery.com>
14231
14232 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14233 and function_used_regs_valid fields.
14234 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14235 find_all_hard_reg_sets.
14236 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14237 (get_call_reg_set_usage): New function.
14238 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14239 * regs.h (get_call_reg_set_usage): Declare.
14240
14241 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14242
14243 PR libgcc/61152
14244 * config/dbx.h (License): Add Runtime Library Exception.
14245 * config/newlib-stdint.h (License): Same.
14246 * config/rtems.h (License): Same
14247 * config/initfini-array.h (License): Same
14248 * config/v850/v850.h (License): Same.
14249 * config/v850/v850-opts.h (License): Same
14250 * config/v850/rtems.h (License): Same.
14251
14252 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14253
14254 PR target/61044
14255 * doc/extend.texi (Local Labels): Note that label differences are
14256 not supported for AVR.
14257
14258 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14259 Olivier Hainque <hainque@adacore.com>
14260
14261 * rtl.h (set_for_reg_notes): Declare.
14262 * emit-rtl.c (set_for_reg_notes): New function.
14263 (set_unique_reg_note): Use it.
14264 * optabs.c (add_equal_note): Likewise
14265
14266 2014-05-27 Andrew Pinski <apinski@cavium.com>
14267
14268 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14269 Use <w> for the register in assembly template.
14270 (stack_protect_test): Use the mode of operands[0] for the result.
14271 (stack_protect_test_<mode>): Use <w> for the register
14272 in assembly template.
14273
14274 2014-05-27 DJ Delorie <dj@redhat.com>
14275
14276 * config/rx/rx.c (add_vector_labels): New.
14277 (rx_output_function_prologue): Call it.
14278 (rx_handle_func_attribute): Don't require empty arguments.
14279 (rx_handle_vector_attribute): New.
14280 (rx_attribute_table): Add "vector" attribute.
14281 * doc/extend.texi (interrupt, vector): Document new/changed
14282 RX-specific attributes.
14283
14284 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14285
14286 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14287
14288 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14289 predicate to detect a negative quotient.
14290
14291 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14292
14293 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14294 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14295 Add X - Y CMP 0 to X CMP Y transformation.
14296 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14297
14298 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14299
14300 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14301 before printing.
14302
14303 2014-05-27 Steve Ellcey <sellcey@mips.com>
14304
14305 * config/mips/mips.c: Add include of cgraph.h.
14306
14307 2014-05-27 Richard Biener <rguenther@suse.de>
14308
14309 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14310
14311 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14312
14313 PR libgcc/61152
14314 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14315 * config/arm/arm-cores.def (License): Same.
14316 * config/arm/arm-opts.h (License): Same.
14317 * config/arm/aout.h (License): Same.
14318 * config/arm/bpabi.h (License): Same.
14319 * config/arm/elf.h (License): Same.
14320 * config/arm/linux-elf.h (License): Same.
14321 * config/arm/linux-gas.h (License): Same.
14322 * config/arm/netbsd-elf.h (License): Same.
14323 * config/arm/uclinux-eabi.h (License): Same.
14324 * config/arm/uclinux-elf.h (License): Same.
14325 * config/arm/vxworks.h (License): Same.
14326
14327 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14328
14329 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14330 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14331 (arm_init_neon_builtins): Handle NEON_BSWAP.
14332 Define required type nodes.
14333 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14334 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14335 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14336 * config/arm/iterators.md (VDQHSD): New mode iterator.
14337
14338 2014-05-27 Richard Biener <rguenther@suse.de>
14339
14340 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14341 Try using literal operands when comparing value-ranges failed.
14342
14343 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14344
14345 * ira.c (commutative_operand): Adjust for change to recog_data.
14346 [Missing from previous commit.]
14347
14348 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14349
14350 * system.h (TEST_BIT): New macro.
14351 * recog.h (alternative_mask): New type.
14352 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14353 (recog_data_d): Replace alternative_enabled_p array with
14354 enabled_alternatives.
14355 (target_recog): New structure.
14356 (default_target_recog, this_target_recog): Declare.
14357 (get_enabled_alternatives, recog_init): Likewise.
14358 * recog.c (default_target_recog, this_target_recog): New variables.
14359 (get_enabled_alternatives): New function.
14360 (extract_insn): Use it.
14361 (recog_init): New function.
14362 (preprocess_constraints, constrain_operands): Adjust for change to
14363 recog_data.
14364 * postreload.c (reload_cse_simplify_operands): Likewise.
14365 * reload.c (find_reloads): Likewise.
14366 * ira-costs.c (record_reg_classes): Likewise.
14367 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14368 all alternatives after a disabled one would be skipped.
14369 (ira_implicitly_set_insn_hard_regs): Likewise.
14370 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14371 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14372 with enabled_alternatives.
14373 * lra.c (free_insn_recog_data): Update accordingly.
14374 (lra_update_insn_recog_data): Likewise.
14375 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14376 * lra-constraints.c (process_alt_operands): Likewise. Handle
14377 only_alternative as part of the enabled mask.
14378 * target-globals.h (this_target_recog): Declare.
14379 (target_globals): Add a recog field.
14380 (restore_target_globals): Restore this_target_recog.
14381 * target-globals.c: Include recog.h.
14382 (default_target_globals): Initialize recog field.
14383 (save_target_globals): Likewise.
14384 * reginfo.c (reinit_regs): Call recog_init.
14385 * toplev.c (backend_init_target): Likewise.
14386
14387 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14388
14389 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14390 rather than any named insn's code.
14391
14392 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14393
14394 PR libgcc/61152
14395 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14396 * config/arm/arm-cores.def (License): Same.
14397
14398 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14399
14400 * tree.h (decl_comdat_group): Declare.
14401 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14402 * tree.c (decl_comdat_group): Here.
14403
14404 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14405
14406 PR rtl-optimization/61222
14407 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14408 the shift, truncate the PLUS operand to the result mode.
14409
14410 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14411
14412 PR target/61271
14413 * config/i386/i386.c (ix86_rtx_costs)
14414 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14415 Fix condition.
14416
14417 2014-05-26 Martin Jambor <mjambor@suse.cz>
14418
14419 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14420 subreg uses.
14421
14422 2014-05-26 Richard Biener <rguenther@suse.de>
14423
14424 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14425 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14426 Provide specializations.
14427 (wi::int_traits <HOST_WIDE_INT>,
14428 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14429
14430 2014-05-26 Alan Modra <amodra@gmail.com>
14431
14432 PR target/61098
14433 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14434 params and return a bool. Remove dead code. Update comment.
14435 Assert we have a const_int source. Remove bogus code from
14436 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14437 handling of constants > 2G and reg_equal note, from..
14438 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14439 return value. Update comment. If we can, use a new pseudo
14440 for intermediate calculations.
14441 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14442 prototype.
14443 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14444 call to rs6000_emit_set_const in splitter.
14445 (movdi_internal64+2, +3): Likewise.
14446
14447 2014-05-26 Richard Biener <rguenther@suse.de>
14448
14449 * system.h: Define __STDC_FORMAT_MACROS before
14450 including inttypes.h.
14451 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14452 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14453 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14454 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14455 HOST_WIDEST_INT_C): Remove.
14456 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14457 if C99 inttypes.h is not available.
14458 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14459 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14460 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14461 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14462 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14463 (struct output_info): Likewise.
14464 (print_statistics): Adjust.
14465 (dump_bitmap_statistics): Likewise.
14466 * bt-load.c (migrate_btr_defs): Print with PRId64.
14467 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14468 (MAX_SAFE_MULTIPLIER): Adjust.
14469 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14470 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14471 dump_cgraph_node): Likewise.
14472 * final.c (dump_basic_block_info): Likewise.
14473 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14474 * gcov.c (format_gcov): Likewise.
14475 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14476 for calculation.
14477 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14478 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14479 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14480 Use PRId64 for dumping.
14481 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14482 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14483 (add_allocno_hard_regs): Adjust.
14484 * loop-doloop.c (doloop_modify): Print using PRId64.
14485 * loop-iv.c (inverse): Compute in uint64_t.
14486 (determine_max_iter, iv_number_of_iterations): Likewise.
14487 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14488 Print using PRId64.
14489 * lto-streamer-out.c (write_symbol): Use uint64_t.
14490 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14491 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14492 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14493 * modulo-sched.c (const_iteration_count): Use int64_t.
14494 (sms_schedule): Dump using PRId64.
14495 * predict.c (dump_prediction): Likewise.
14496 * pretty-print.h (pp_widest_integer): Remove.
14497 * profile.c (get_working_sets, is_edge_inconsistent,
14498 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14499 * tree-pretty-print.c (pp_double_int): Remove case handling
14500 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14501 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14502 and adjust users.
14503 (pass_optimize_bswap::execute): Remove restriction on hosts.
14504 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14505 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14506 * tree.c (widest_int_cst_value): Remove.
14507 * tree.h (widest_int_cst_value): Likewise.
14508 * value-prof.c (dump_histogram_value): Print using PRId64.
14509 * gengtype.c (main): Also inject int64_t.
14510 * ggc-page.c (struct max_alignment): Use int64_t.
14511 * alloc-pool.c (struct allocation_object_def): Likewise.
14512 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14513 for computation.
14514 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14515 * doc/tm.texi: Regenerated.
14516 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14517 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14518 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14519 mmix_output_register_setting): Use [u]int64_t in prototypes.
14520 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14521 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14522 mmix_output_octa, mmix_output_shifted_value): Adjust.
14523 (mmix_intval): Adjust. Remove unreachable case.
14524 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14525
14526 2014-05-26 Richard Biener <rguenther@suse.de>
14527
14528 * configure.ac: Drop __int64 type check. Insist that we
14529 found uint64_t and int64_t.
14530 * hwint.h (HOST_BITS_PER___INT64): Remove.
14531 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14532 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14533 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14534 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14535 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14536 for dst_q_src_df_rms_cdt.
14537 * configure: Regenerate.
14538 * config.in: Likewise.
14539
14540 2014-05-26 Michael Tautschnig <mt@debian.org>
14541
14542 PR target/61249
14543 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14544 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14545
14546 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14547
14548 PR rtl-optimization/61278
14549 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14550
14551 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14552
14553 PR rtl-optimization/61220
14554 Part of PR rtl-optimization/61225
14555 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14556 insn; skip split_edge for a block with only one successor.
14557
14558 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14559
14560 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14561 for variables.
14562
14563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14564
14565 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14566 (update_vtable_references): New function.
14567 (function_and_variable_visibility): Rewrite also vtable initializers.
14568 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14569
14570 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14571
14572 * ggc.h (ggc_grow): New function.
14573 * ggc-none.c (ggc_grow): New function.
14574 * ggc-page.c (ggc_grow): Likewise.
14575
14576 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14577
14578 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14579 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14580 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14581 varpool_externally_visible_p, can_replace_by_local_alias,
14582 update_visibility_by_resolution_info, function_and_variable_visibility,
14583 pass_data_ipa_function_and_variable_visibility,
14584 make_pass_ipa_function_and_variable_visibility,
14585 whole_program_function_and_variable_visibility,
14586 pass_data_ipa_whole_program_visibility,
14587 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14588 * cgraph.h (cgraph_local_node_p): Declare.
14589 * ipa-visibility.c: New file.
14590 * Makefile.in (OBJS): Add ipa-visiblity.o
14591
14592 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14593
14594 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14595 that var decl is available.
14596
14597 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14598
14599 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14600 symtab_node pointer.
14601 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14602 (find_decls_types_r): Do not walk COMDAT_GROUP.
14603 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14604 * varasm.c (make_decl_one_only): Use set_comdat_group;
14605 create node if needed.
14606 * ipa-inline-transform.c (save_inline_function_body): Update
14607 way we decl->symtab mapping.
14608 * symtab.c (symtab_hash, hash_node, eq_node
14609 symtab_insert_node_to_hashtable): Remove.
14610 (symtab_register_node): Update.
14611 (symtab_unregister_node): Update.
14612 (symtab_get_node): Reimplement as inline function.
14613 (symtab_add_to_same_comdat_group): Update.
14614 (symtab_dissolve_same_comdat_group_list): Update.
14615 (dump_symtab_base): Update.
14616 (verify_symtab_base): Update.
14617 (symtab_make_decl_local): Update.
14618 (fixup_same_cpp_alias_visibility): Update.
14619 (symtab_nonoverwritable_alias): Update.
14620 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14621 * ipa.c (update_visibility_by_resolution_info): UPdate.
14622 * bb-reorder.c: Include cgraph.h
14623 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14624 with comdat groups.
14625 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14626 * cgraph.c (cgraph_get_create_node): Update.
14627 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14628 and comdat_group_.
14629 (symtab_get_node): Make inline.
14630 (symtab_insert_node_to_hashtable): Remove.
14631 (symtab_can_be_discarded): Update.
14632 (decl_comdat_group): New function.
14633 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14634 Update.
14635 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14636 comdat group name.
14637 (read_comdat_group): New function.
14638 (input_node, input_varpool_node): Use it.
14639 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14640 comdat groups.
14641 * mips.c (mips_start_unique_function): Likewise.
14642 (ix86_code_end): Likewise.
14643 (rs6000_code_end): Likweise.
14644 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14645
14646 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14647
14648 * gengtype-state.c (fatal_reading_state): Bring offline.
14649 * optabs.c (widening_optab_handler): Bring offline.
14650 * optabs.h (widening_optab_handler): Likewise.
14651 * final.c (get_attr_length_1): Likewise.
14652
14653 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14654
14655 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14656
14657 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14658
14659 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14660 (ppc440-compare): Include shift with dot.
14661 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14662 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14663 without dot.
14664 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14665 without dot.
14666 (e6500_sfx2): Include it.
14667 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14668 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14669 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14670 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14671 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14672 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14673 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14674 *lshiftrt_internal1le, *lshiftrt_internal1be,
14675 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14676 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14677 *rotldi3_internal10le, *rotldi3_internal10be,
14678 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14679 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14680 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14681 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14682 define_insns): Use type "shift" in the appropriate alternatives.
14683
14684 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14685
14686 * config/rs6000/rs6000.md (type): Add "logical". Delete
14687 "fast_compare".
14688 (dot): Adjust comment.
14689 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14690 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14691 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14692 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14693 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14694 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14695 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
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/603.md (ppc603-integer, ppc603-compare): Adjust.
14702 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14703 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14704 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14705 * config/rs6000/8540.md (ppc8540_su): Adjust.
14706 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14707 cell-cmp-microcoded): Adjust.
14708 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14709 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14710 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14711 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14712 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14713 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14714 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14715 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14716 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14717 Adjust.
14718 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14719 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14720 Adjust. Adjust comment.
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): Add "add".
14727 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14728 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14729 define_insns): Use it.
14730 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14731
14732 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14733 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14734 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14735 * config/rs6000/601.md (ppc601-integer): Adjust.
14736 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14737 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14738 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14739 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14740 * config/rs6000/8540.md (ppc8540_su): Adjust.
14741 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14742 cell-cmp-microcoded): Adjust.
14743 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14744 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14745 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14746 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14747 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14748 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14749 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14750 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14751 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14752 Adjust.
14753 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14754 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14755 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14756 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14757
14758 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14759
14760 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14761 "delayed_compare", "var_delayed_compare".
14762 (var_shift): New attribute.
14763 (cell_micro): Adjust.
14764 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14765 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14766 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14767 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14768 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14769 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14770 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14771 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14772 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14773 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14774 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14775 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14776 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14777 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14778 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14779 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14780 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14781 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14782 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14783 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14784 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14785 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14786 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14787 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14788 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14789
14790 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14791 * config/rs6000/440.md (ppc440-integer): Adjust.
14792 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14793 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14794 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14795 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14796 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14797 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14798 * config/rs6000/8540.md (ppc8540_su): Adjust.
14799 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14800 cell-cmp-microcoded): Adjust.
14801 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14802 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14803 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14804 e500mc64_delayed): Adjust.
14805 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14806 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14807 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14808 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14809 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14810 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14811 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14812 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14813 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14814 Adjust comment.
14815 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14816 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14817
14818 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14819
14820 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14821 (bits): New mode_attr.
14822 (idiv_ldiv): Delete mode_attr.
14823 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14824 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14825 rs6000_adjust_priority, is_nonpipeline_insn,
14826 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14827
14828 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14829 * config/rs6000/440.md (ppc440-idiv): Adjust.
14830 * config/rs6000/476.md (ppc476-idiv): Adjust.
14831 * config/rs6000/601.md (ppc601-idiv): Adjust.
14832 * config/rs6000/603.md (ppc603-idiv): Adjust.
14833 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14834 ppc620-ldiv): Adjust.
14835 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14836 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14837 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14838 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14839 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14840 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14841 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14842 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14843 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14844 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14845 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14846 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14847 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14848 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14849 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14850 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14851 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14852 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14853
14854 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14855
14856 * config/rs6000/rs6000.md (type): Delete "insert_word",
14857 "insert_dword". Add "insert".
14858 (size): Update comment.
14859 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14860 insn_must_be_first_in_group): Adjust.
14861 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14862 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14863 *insvsi_internal6, insvdi_internal): Adjust.
14864
14865 * config/rs6000/40x.md (ppc403-integer): Adjust.
14866 * config/rs6000/440.md (ppc440-integer): Adjust.
14867 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14868 * config/rs6000/601.md (ppc601-integer): Adjust.
14869 * config/rs6000/603.md (ppc603-integer): Adjust.
14870 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14871 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14872 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14873 * config/rs6000/8540.md (ppc8540_su): Adjust.
14874 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14875 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14876 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14877 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14878 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14879 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14880 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14881 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14882 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14883 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14884 * config/rs6000/power7.md (power7-integer): Adjust.
14885 * config/rs6000/power8.md (power8-1cyc): Adjust.
14886 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14887 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14888
14889 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14890
14891 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14892 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14893 (size): New attribute.
14894 (dot): New attribute.
14895 (cell_micro): Adjust.
14896 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14897 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14898 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14899 umuldi3_highpart): Adjust.
14900 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14901 rs6000_adjust_priority, is_nonpipeline_insn,
14902 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14903
14904 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14905 ppc405-imul3): Adjust.
14906 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14907 * config/rs6000/476.md (ppc476-imul): Adjust.
14908 * config/rs6000/601.md (ppc601-imul): Adjust.
14909 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14910 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14911 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14912 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14913 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14914 Adjust.
14915 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14916 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14917 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14918 cell-imul): Adjust.
14919 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14920 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14921 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14922 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14923 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14924 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14925 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14926 power4-lmul, power4-imul, power4-imul3): Adjust.
14927 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14928 power5-lmul, power5-imul, power5-imul3): Adjust.
14929 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14930 power6-lmul, power6-imul, power6-imul3): Adjust.
14931 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14932 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14933
14934 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14935 rs64a-lmul): Adjust.
14936 * config/rs6000/titan.md (titan_imul): Adjust.
14937
14938 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14939
14940 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14941 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14942 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14943 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14944 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14945 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14946 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14947 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14948 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14949 * config/rs6000/titan.md: Delete nonsensical comment.
14950 (titan_imul): Add type imul3.
14951 (titan_mulhw): Remove type imul3; add type halfmul.
14952
14953 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14954
14955 * config/rs6000/rs6000.md (type): Reorder, reformat.
14956
14957 2014-05-23 Martin Jambor <mjambor@suse.cz>
14958
14959 PR tree-optimization/53787
14960 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14961 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14962 analysis_done, update all uses.
14963 * ipa-prop.c: Include domwalk.h
14964 (param_analysis_info): Removed.
14965 (param_aa_status): New type.
14966 (ipa_bb_info): Likewise.
14967 (func_body_info): Likewise.
14968 (ipa_get_bb_info): New function.
14969 (aa_overwalked): Likewise.
14970 (find_dominating_aa_status): Likewise.
14971 (parm_bb_aa_status_for_bb): Likewise.
14972 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14973 (load_from_unmodified_param): Accept func_body_info as a parameter
14974 instead of parms_ainfo.
14975 (parm_ref_data_preserved_p): Changed to use new param AA info.
14976 (parm_ref_data_pass_through_p): Likewise.
14977 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14978 (compute_complex_assign_jump_func): Changed to use new param AA info.
14979 (compute_complex_ancestor_jump_func): Likewise.
14980 (ipa_compute_jump_functions_for_edge): Likewise.
14981 (ipa_compute_jump_functions): Removed.
14982 (ipa_compute_jump_functions_for_bb): New function.
14983 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14984 declarations down.
14985 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14986 and info, moved variable declarations down.
14987 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14988 node and info.
14989 (ipa_analyze_stmt_uses): Likewise.
14990 (ipa_analyze_params_uses): Removed.
14991 (ipa_analyze_params_uses_in_bb): New function.
14992 (ipa_analyze_controlled_uses): Likewise.
14993 (free_ipa_bb_info): Likewise.
14994 (analysis_dom_walker): New class.
14995 (ipa_analyze_node): Handle node-specific forbidden analysis,
14996 initialize and free func_body_info, use dominator walker.
14997 (ipcp_modif_dom_walker): New class.
14998 (ipcp_transform_function): Create and free func_body_info, use
14999 ipcp_modif_dom_walker, moved a lot of functionality there.
15000
15001 2014-05-23 Marek Polacek <polacek@redhat.com>
15002 Jakub Jelinek <jakub@redhat.com>
15003
15004 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15005 * gcc.c (sanitize_spec_function): Likewise.
15006 * convert.c (convert_to_integer): Include "ubsan.h". Add
15007 floating-point to integer instrumentation.
15008 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15009 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15010 SANITIZE_NONDEFAULT.
15011 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15012 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15013 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15014 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15015 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15016 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15017 float/double/long double.
15018 (ubsan_instrument_float_cast): New function.
15019 * ubsan.h (ubsan_instrument_float_cast): Declare.
15020
15021 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15022
15023 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15024 predicate.
15025 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15026 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15027 Adjust for tailcalling through registers.
15028 * config/aarch64/aarch64.h (enum reg_class): New caller save
15029 register class.
15030 (REG_CLASS_NAMES): Likewise.
15031 (REG_CLASS_CONTENTS): Likewise.
15032 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15033 Allow tailcalling without decls.
15034
15035 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15036
15037 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15038 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15039
15040 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15041 gsi, and variables v_* to v*.
15042
15043 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15044
15045 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15046
15047 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15048
15049 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15050 * omp-low.c: Update accordingly.
15051
15052 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15053 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15054 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15055 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15056 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15057 GF_OMP_TARGET_KIND_UPDATE.
15058
15059 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15060 Explicitly enumerate the expected region types.
15061
15062 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15063
15064 PR other/56955
15065 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15066 documentation; the old documentation didn't clearly state the
15067 constraints on the contents of the pointed-to storage.
15068
15069 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15070
15071 Fix bootstrap error on ia64
15072 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15073 Return default value.
15074
15075 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15076
15077 PR tree-optimization/54733
15078 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15079 (CMPNOP): Define.
15080 (find_bswap_or_nop_load): New.
15081 (find_bswap_1): Renamed to ...
15082 (find_bswap_or_nop_1): This. Also add support for memory source.
15083 (find_bswap): Renamed to ...
15084 (find_bswap_or_nop): This. Also add support for memory source and
15085 detection of bitwise operations equivalent to load in target
15086 endianness.
15087 (execute_optimize_bswap): Likewise. Also move its leading comment back
15088 in place and split statement transformation into ...
15089 (bswap_replace): This.
15090
15091 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15092
15093 PR rtl-optimization/61215
15094 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15095 simplify_gen_subreg until final substitution.
15096
15097 2014-05-23 Alan Modra <amodra@gmail.com>
15098
15099 PR target/61231
15100 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15101 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15102 Use "Y" constraint rather than "m".
15103
15104 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15105
15106 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15107 define.
15108 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15109 New function declaration.
15110 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15111 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15112 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15113 (aarch64_init_builtins) : Initialize builtins
15114 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15115 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15116 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15117 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15118 and __builtins_aarch64_set_fpsr.
15119 (aarch64_atomic_assign_expand_fenv): New function.
15120 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15121 (get_fpcr) : Likewise.
15122 (set_fpsr) : Likewise.
15123 (get_fpsr) : Likewise.
15124 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15125 and UNSPECV_SET_FPSR.
15126 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15127 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15128 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15129
15130 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15131
15132 PR rtl-optimization/60969
15133 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15134 constraints. Set up mem cost for NO_REGS case.
15135
15136 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15137
15138 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15139
15140 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15141
15142 * config/darwin.c: Include "lto-section-names.h".
15143 (LTO_SEGMENT_NAME): Don't define.
15144 * config/i386/winnt.c: Include "lto-section-names.h".
15145 * lto-streamer.c: Include "lto-section-names.h".
15146 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15147 * lto-wrapper.c: Include "lto-section-names.h".
15148 (LTO_SECTION_NAME_PREFIX): Don't define.
15149 * lto-section-names.h: New file.
15150 * cgraphunit.c: Include "lto-section-names.h".
15151
15152 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15153
15154 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15155
15156 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15157
15158 PR target/61208
15159 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15160
15161 2014-05-22 Nick Clifton <nickc@redhat.com>
15162
15163 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15164
15165 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15166
15167 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15168 -> (T)A transformation to integer types.
15169
15170 2014-05-22 Teresa Johnson <tejohnson@google.com>
15171
15172 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15173 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15174 (gcov_rewrite): Use gcov_nonruntime_assert.
15175 (gcov_open): Ditto.
15176 (gcov_write_words): Ditto.
15177 (gcov_write_length): Ditto.
15178 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15179 gcc_assert from IN_LIBGCOV code.
15180 (gcov_read_summary): Use gcov_error to flag profile corruption.
15181 (gcov_sync): Use gcov_nonruntime_assert.
15182 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15183 (gcov_histo_index): Use gcov_nonruntime_assert.
15184 (static void gcov_histogram_merge): Ditto.
15185 (compute_working_sets): Ditto.
15186 * gcov-io.h (gcov_nonruntime_assert): Define.
15187 (gcov_error): Define for !IN_LIBGCOV
15188
15189 2014-05-22 Richard Biener <rguenther@suse.de>
15190
15191 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15192 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15193 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15194 and deallocation site.
15195 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15196 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15197 passing through the incoming points-to set.
15198 (handle_lhs_call): Use flags argument instead of recomputing it.
15199 (find_func_aliases_for_call): Call handle_lhs_call with proper
15200 call return flags.
15201
15202 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15203
15204 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15205 all padding bits in REAL_VALUE_TYPE are cleared.
15206
15207 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15208
15209 Cleanup and improve multipass_dfa_lookahead_guard
15210 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15211 (core2i7_first_cycle_multipass_begin,)
15212 (core2i7_first_cycle_multipass_issue,)
15213 (core2i7_first_cycle_multipass_backtrack): Update signature.
15214 * config/ia64/ia64.c
15215 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15216 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15217 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15218 hook definition.
15219 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15220 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15221 values.
15222 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15223 return values.
15224 * doc/tm.texi: Regenerate.
15225 * doc/tm.texi.in
15226 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15227 * haifa-sched.c (ready_try): Make signed to allow negative values.
15228 (rebug_ready_list_1): Update.
15229 (choose_ready): Simplify.
15230 (sched_extend_ready_list): Update.
15231
15232 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15233
15234 Remove IA64 speculation tweaking flags
15235 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15236 speculation tuning flags.
15237 (msched-prefer-non-data-spec-insns,)
15238 (msched-prefer-non-control-spec-insns): Obsolete options.
15239 * haifa-sched.c (choose_ready): Remove handling of
15240 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15241 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15242 and PREFER_NON_DATA_SPEC.
15243 * sel-sched.c (process_spec_exprs): Remove handling of
15244 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15245
15246 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15247
15248 Improve scheduling debug output
15249 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15250 (advance_one_cycle): Update.
15251 (schedule_insn, queue_to_ready): Add debug printouts.
15252 (debug_ready_list_1): New static function.
15253 (debug_ready_list): Update.
15254 (max_issue): Add debug printouts.
15255 (dump_insn_stream): New static function.
15256 (schedule_block): Use it. Also better indent printouts.
15257
15258 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15259
15260 Fix sched_insn debug counter
15261 * haifa-sched.c (schedule_insn): Update.
15262 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15263 (save_backtrack_point, restore_backtrack_point): Update.
15264 (first_nonscheduled_insn): New static function.
15265 (queue_to_ready, choose_ready): Use it.
15266 (schedule_block): Init nonscheduled_insns_begin.
15267 (sched_emit_insn): Update.
15268
15269
15270 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15271
15272 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15273 to GENERAL_REGS.
15274 (aarch64_secondary_reload) : LikeWise.
15275 (aarch64_class_max_nregs) : Remove CORE_REGS.
15276 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15277 (REG_CLASS_NAMES) : Likewise.
15278 (REG_CLASS_CONTENTS) : LikeWise.
15279 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15280
15281 2014-05-21 Guozhi Wei <carrot@google.com>
15282
15283 PR target/61202
15284 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15285 constraint.
15286 (vqdmulhq_n_s16): Likewise.
15287
15288 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15289
15290 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15291
15292 2014-05-21 Marek Polacek <polacek@redhat.com>
15293
15294 PR sanitizer/61272
15295 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15296
15297 2014-05-21 Martin Jambor <mjambor@suse.cz>
15298
15299 * doc/invoke.texi (Optimize Options): Document parameters
15300 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15301 ipa-cp-array-index-hint-bonus.
15302
15303 2014-05-21 Mark Wielaard <mjw@redhat.com>
15304
15305 PR debug/16063
15306 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15307 version >= 3 or not strict DWARF.
15308 * langhooks.h (struct lang_hooks_for_types): Add
15309 enum_underlying_base_type.
15310 * langhooks.c (lhd_enum_underlying_base_type): New function.
15311 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15312 enum_underlying_base_type.
15313 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15314 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15315 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15316
15317 2014-05-21 Richard Biener <rguenther@suse.de>
15318
15319 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15320
15321 2014-05-21 John Marino <gnugcc@marino.st>
15322
15323 * config.gcc (*-*-dragonfly*): New target.
15324 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15325 * configure: Regenerate.
15326 * config/dragonfly-stdint.h: New.
15327 * config/dragonfly.h: New.
15328 * config/dragonfly.opt: New.
15329 * config/i386/dragonfly.h: New.
15330 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15331
15332 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15333
15334 * tree.def (VOID_CST): New.
15335 * tree-core.h (TI_VOID): New.
15336 * tree.h (void_node): New.
15337 * tree.c (tree_node_structure_for_code, tree_code_size)
15338 (iterative_hash_expr): Handle VOID_CST.
15339 (build_common_tree_nodes): Initialize void_node.
15340
15341 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15342
15343 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15344 functions.
15345 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15346
15347 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15348 more places.
15349
15350 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15351 flag_reorder_blocks_and_partition.
15352 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15353
15354 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15355
15356 PR target/54236
15357 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15358 constraints.
15359 (*addc_r_t): Add new insn_and_split.
15360
15361 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15362
15363 PR middle-end/61252
15364 * omp-low.c (handle_simd_reference): New function.
15365 (lower_rec_input_clauses): Use it. Defer adding reference
15366 initialization even for reduction without placeholder if in simd,
15367 handle it properly later on.
15368
15369 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15370
15371 PR tree-optimization/60899
15372 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15373 assume all static symbols will have definition wile parsing and
15374 check the do have definition later in compilation; check that
15375 variable referring symbol will be output before concluding that
15376 reference is safe; be conservative for referring local statics;
15377 be more precise about when comdat is output in other partition.
15378
15379 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15380
15381 PR bootstrap/60984
15382 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15383 parameter.
15384 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15385 (ipa_inline): Loop inline_to_all_callers until no more aliases
15386 are removed.
15387
15388 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15389
15390 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15391 set writeonly flag only for vars actually written to.
15392
15393 2014-05-20 Dehao Chen <dehao@google.com>
15394
15395 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15396 and callee count to get clone count.
15397 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15398 count in copy_body.
15399
15400 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15401
15402 PR rtl-optimization/61243
15403 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15404
15405 2014-05-20 Xinliang David Li <davidxl@google.com>
15406
15407 * cgraphunit.c (walk_polymorphic_call_targets): Add
15408 dbgcnt and fopt-info support.
15409 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15410 * ipa-devirt.c (ipa_devirt): Ditto.
15411 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15412 * ipa.c (walk_polymorphic_call_targets): Ditto.
15413 * gimple-fold.c (fold_gimple_assign): Ditto.
15414 (gimple_fold_call): Ditto.
15415 * dbgcnt.def: New counter.
15416
15417 2014-05-20 DJ Delorie <dj@redhat.com>
15418
15419 * config/msp430/msp430.md (split): Don't allow subregs when
15420 splitting SImode adds.
15421 (andneghi): Fix subtraction logic.
15422 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15423
15424 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15425
15426 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15427 symbols.
15428 * except.c (switch_to_exception_section, resolve_unique_section,
15429 get_named_text_section, default_function_rodata_section,
15430 align_variable, get_block_for_decl, default_section_type_flags):
15431 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15432 * symtab.c (symtab_add_to_same_comdat_group,
15433 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15434 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15435 Likewise.
15436 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15437 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15438 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15439 (c6x_function_in_section_p): Likewise.
15440 * config/darwin.c (machopic_select_section): Likewise.
15441 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15442 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15443 * config/mep/mep.c (mep_select_section): LIkewise.
15444 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15445
15446 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15447
15448 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15449 EH region of calls to pure functions that can throw an exception.
15450 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15451 (copy_reference_ops_from_call): Also copy the EH region of the call if
15452 it can throw an exception.
15453
15454 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15455
15456 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15457 nested VEC_SELECTs that are inverses of each other.
15458
15459 2014-05-20 Richard Biener <rguenther@suse.de>
15460
15461 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15462 (extract_and_process_scc_for_name): not here.
15463 (cond_dom_walker::before_dom_children): Only process
15464 stmts that end the BB in interesting ways.
15465 (run_scc_vn): Mark param uses as visited.
15466
15467 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15468
15469 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15470 arm_restrict_it.
15471
15472 2014-05-20 Nick Clifton <nickc@redhat.com>
15473
15474 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15475 (msp430_gimplify_va_arg_expr): New function.
15476 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15477
15478 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15479 operand 0 in order to prevent confusion about the number of
15480 registers involved.
15481
15482 2014-05-20 Richard Biener <rguenther@suse.de>
15483
15484 PR tree-optimization/61221
15485 * tree-ssa-pre.c (el_to_update): Remove.
15486 (eliminate_dom_walker::before_dom_children): Handle released
15487 VDEFs by value-numbering them to the associated VUSE. Update
15488 stmt immediately for substituted call address.
15489 (eliminate): Remove delayed stmt updating code.
15490 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15491 possibly late re-numbered vuses.
15492 (vn_reference_lookup_2): Adjust.
15493 (vn_reference_lookup_pieces): Likewise.
15494 (vn_reference_lookup): Likewise.
15495
15496 2014-05-20 Richard Biener <rguenther@suse.de>
15497
15498 * config.gcc: Remove need_64bit_hwint.
15499 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15500 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15501 it to be true.
15502 * config.in: Regenerate.
15503 * configure: Likewise.
15504
15505 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15506
15507 * doc/extend.texi: Create Label Attributes section,
15508 move all label attributes into it and reference it.
15509
15510 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15511
15512 * arm.c (thumb1_reorg): When scanning backwards skip anything
15513 that's not a proper insn.
15514
15515 2014-05-19 Richard Biener <rguenther@suse.de>
15516
15517 PR tree-optimization/61221
15518 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15519 Do nothing for unreachable blocks.
15520 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15521 Improve unreachability detection.
15522
15523 2014-05-19 Richard Biener <rguenther@suse.de>
15524
15525 PR tree-optimization/61209
15526 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15527
15528 2014-05-19 Nick Clifton <nickc@redhat.com>
15529
15530 * except.c (init_eh): Fix computation of builtin setjmp buffer
15531 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15532
15533 2014-05-19 Richard Biener <rguenther@suse.de>
15534
15535 PR tree-optimization/61184
15536 * tree-vrp.c (is_negative_overflow_infinity): Use
15537 TREE_OVERFLOW_P and do that check first.
15538 (is_positive_overflow_infinity): Likewise.
15539 (is_overflow_infinity): Likewise.
15540 (vrp_operand_equal_p): Properly treat operands with
15541 differing overflow as not equal.
15542
15543 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15544
15545 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15546 shift simplification where it was intended.
15547
15548 2014-05-19 Christian Bruel <christian.bruel@st.com>
15549
15550 PR target/61195
15551 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15552
15553 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15554
15555 PR target/61084
15556 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15557 than wide_int.
15558
15559 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15560
15561 * reg-notes.def (CROSSING_JUMP): Likewise.
15562 * rtl.h (rtx_def): Update comment for jump flag.
15563 (CROSSING_JUMP_P): Define.
15564 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15565 of a REG_CROSSING_JUMP note.
15566 * cfghooks.c (tidy_fallthru_edges): Likewise.
15567 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15568 * emit-rtl.c (try_split): Likewise.
15569 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15570 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15571 * jump.c (redirect_jump_2): Likewise.
15572 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15573 (relax_delay_slots): Likewise.
15574 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15575 (bbit_di): Likewise.
15576 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15577 * config/sh/sh.md (jump_compact): Likewise.
15578 * bb-reorder.c (rotate_loop): Likewise.
15579 (pass_duplicate_computed_gotos::execute): Likewise.
15580 (add_reg_crossing_jump_notes): Rename to...
15581 (update_crossing_jump_flags): ...this.
15582 (pass_partition_blocks::execute): Update accordingly.
15583
15584 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15585
15586 * tree.h: Remove extraneous template <>.
15587
15588 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15589
15590 * ipa.c (symtab_remove_unreachable_nodes): Remove
15591 symbol from comdat group if its body was eliminated.
15592 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15593 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15594 (symtab_unregister_node): ... this one.
15595 (verify_symtab_base): More strict checking of comdats.
15596 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15597
15598 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15599
15600 * tree-pass.h (make_pass_ipa_comdats): New pass.
15601 * timevar.def (TV_IPA_COMDATS): New timevar.
15602 * passes.def (pass_ipa_comdats): Add.
15603 * Makefile.in (OBJS): Add ipa-comdats.o
15604 * ipa-comdats.c: New file.
15605
15606 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15607
15608 * ipa.c (update_visibility_by_resolution_info): New function.
15609 (function_and_variable_visibility): Use it.
15610
15611 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15612
15613 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15614 New functions.
15615 (FOR_EACH_DEFINED_SYMBOL): New macro.
15616 (varpool_first_static_initializer, varpool_next_static_initializer,
15617 varpool_first_defined_variable, varpool_next_defined_variable):
15618 Fix comments.
15619 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15620
15621 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15622
15623 * ggc-page.c (ggc_handle_finalizers): Add comment.
15624
15625 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15626
15627 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15628 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15629 (ggc_internal_cleared_alloc): Likewise.
15630 * ggc-page.c (finalizer): New class.
15631 (vec_finalizer): Likewise.
15632 (globals::finalizers): New member.
15633 (globals::vec_finalizers): Likewise.
15634 (ggc_internal_alloc): Record the finalizer if any for the block being
15635 allocated.
15636 (ggc_handle_finalizers): New function.
15637 (ggc_collect): Call ggc_handle_finalizers.
15638 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15639 finalizer.
15640 (ggc_internal_cleared_alloc): Likewise.
15641 (finalize): New function.
15642 (need_finalization_p): Likewise.
15643 (ggc_alloc): Install the type's destructor as the finalizer if it
15644 might do something.
15645 (ggc_cleared_alloc): Likewise.
15646 (ggc_vec_alloc): Likewise.
15647 (ggc_cleared_vec_alloc): Likewise.
15648
15649 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15650
15651 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15652
15653 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15654
15655 * alias.c (record_alias_subset): Adjust.
15656 * bitmap.c (bitmap_element_allocate): Likewise.
15657 (bitmap_gc_alloc_stat): Likewise.
15658 * cfg.c (init_flow): Likewise.
15659 (alloc_block): Likewise.
15660 (unchecked_make_edge): Likewise.
15661 * cfgloop.c (alloc_loop): Likewise.
15662 (flow_loops_find): Likewise.
15663 (rescan_loop_exit): Likewise.
15664 * cfgrtl.c (init_rtl_bb_info): Likewise.
15665 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15666 (cgraph_allocate_node): Likewise.
15667 (cgraph_create_edge_1): Likewise.
15668 (cgraph_allocate_init_indirect_info): Likewise.
15669 * cgraphclones.c (cgraph_clone_edge): Likewise.
15670 * cgraphunit.c (add_asm_node): Likewise.
15671 (init_lowered_empty_function): Likewise.
15672 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15673 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15674 (alpha_use_linkage): Likewise.
15675 * config/arc/arc.c (arc_init_machine_status): Likewise.
15676 * config/arm/arm.c (arm_init_machine_status): Likewise.
15677 * config/avr/avr.c (avr_init_machine_status): Likewise.
15678 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15679 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15680 * config/cris/cris.c (cris_init_machine_status): Likewise.
15681 * config/darwin.c (machopic_indirection_name): Likewise.
15682 (darwin_build_constant_cfstring): Likewise.
15683 (darwin_enter_string_into_cfstring_table): Likewise.
15684 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15685 * config/frv/frv.c (frv_init_machine_status): Likewise.
15686 * config/i386/i386.c (get_dllimport_decl): Likewise.
15687 (ix86_init_machine_status): Likewise.
15688 (assign_386_stack_local): Likewise.
15689 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15690 (i386_pe_maybe_record_exported_symbol): Likewise.
15691 (i386_pe_record_stub): Likewise.
15692 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15693 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15694 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15695 (m32c_note_pragma_address): Likewise.
15696 * config/mep/mep.c (mep_init_machine_status): Likewise.
15697 (mep_note_pragma_flag): Likewise.
15698 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15699 (mips16_local_alias): Likewise.
15700 (mips_init_machine_status): Likewise.
15701 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15702 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15703 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15704 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15705 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15706 * config/pa/pa.c (pa_init_machine_status): Likewise.
15707 (pa_get_deferred_plabel): Likewise.
15708 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15709 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15710 (rs6000_init_machine_status): Likewise.
15711 (output_toc): Likewise.
15712 * config/s390/s390.c (s390_init_machine_status): Likewise.
15713 * config/score/score.c (score_output_external): Likewise.
15714 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15715 * config/spu/spu.c (spu_init_machine_status): Likewise.
15716 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15717 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15718 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15719 * coverage.c (coverage_end_function): Likewise.
15720 * dbxout.c (dbxout_init): Likewise.
15721 * doc/gty.texi: Don't mention variable_size attribute.
15722 * dwarf2cfi.c (new_cfi): Adjust.
15723 (new_cfi_row): Likewise.
15724 (copy_cfi_row): Likewise.
15725 (create_cie_data): Likewise.
15726 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15727 (new_loc_descr): Likewise.
15728 (find_AT_string_in_table): Likewise.
15729 (add_addr_table_entry): Likewise.
15730 (new_die): Likewise.
15731 (add_var_loc_to_decl): Likewise.
15732 (clone_die): Likewise.
15733 (clone_as_declaration): Likewise.
15734 (break_out_comdat_types): Likewise.
15735 (new_loc_list): Likewise.
15736 (add_loc_descr_to_each): Likewise.
15737 (add_location_or_const_value_attribute): Likewise.
15738 (add_linkage_name): Likewise.
15739 (lookup_filename): Likewise.
15740 (dwarf2out_var_location): Likewise.
15741 (new_line_info_table): Likewise.
15742 (dwarf2out_init): Likewise.
15743 (mem_loc_descriptor): Likewise.
15744 (loc_descriptor): Likewise.
15745 (add_const_value_attribute): Likewise.
15746 (tree_add_const_value_attribute): Likewise.
15747 (comp_dir_string): Likewise.
15748 (dwarf2out_vms_debug_main_pointer): Likewise.
15749 (string_cst_pool_decl): Likewise.
15750 * emit-rtl.c (set_mem_attrs): Likewise.
15751 (get_reg_attrs): Likewise.
15752 (start_sequence): Likewise.
15753 (init_emit): Likewise.
15754 (init_emit_regs): Likewise.
15755 * except.c (init_eh_for_function): Likewise.
15756 (gen_eh_region): Likewise.
15757 (gen_eh_region_catch): Likewise.
15758 (gen_eh_landing_pad): Likewise.
15759 (add_call_site): Likewise.
15760 * function.c (add_frame_space): Likewise.
15761 (insert_temp_slot_address): Likewise.
15762 (assign_stack_temp_for_type): Likewise.
15763 (get_hard_reg_initial_val): Likewise.
15764 (allocate_struct_function): Likewise.
15765 (prepare_function_start): Likewise.
15766 (types_used_by_var_decl_insert): Likewise.
15767 * gengtype.c (variable_size_p): Remove function.
15768 (enum alloc_quantity): Remove enum.
15769 (write_typed_alloc_def): Remove function.
15770 (write_typed_struct_alloc_def): Likewise.
15771 (write_typed_typedef_alloc_def): Likewise.
15772 (write_typed_alloc_defns): Likewise.
15773 (main): Adjust.
15774 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15775 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15776 * ggc.h (ggc_alloc): new function.
15777 (ggc_cleared_alloc): Likewise.
15778 (ggc_vec_alloc): Template on type of vector element, and remove
15779 element size argument.
15780 (ggc_cleared_vec_alloc): Likewise.
15781 * gimple.c (gimple_build_omp_for): Adjust.
15782 (gimple_copy): Likewise.
15783 * ipa-cp.c (get_replacement_map): Likewise.
15784 (find_aggregate_values_for_callers_subset): Likewise.
15785 (known_aggs_to_agg_replacement_list): Likewise.
15786 * ipa-devirt.c (get_odr_type): Likewise.
15787 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15788 (read_agg_replacement_chain): Likewise.
15789 * loop-iv.c (get_simple_loop_desc): Likewise.
15790 * lto-cgraph.c (input_node_opt_summary): Likewise.
15791 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15792 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15793 (input_eh_region): Likewise.
15794 (input_eh_lp): Likewise.
15795 (input_cfg): Likewise.
15796 * optabs.c (set_optab_libfunc): Likewise.
15797 (init_tree_optimization_optabs): Likewise.
15798 (set_conv_libfunc): Likewise.
15799 * passes.c (do_per_function_toporder): Likewise.
15800 * rtl.h: Don't use variable_size gty attribute.
15801 * sese.c (if_region_set_false_region): Adjust.
15802 * stringpool.c (gt_pch_save_stringpool): Likewise.
15803 * target-globals.c (save_target_globals): Likewise.
15804 * toplev.c (general_init): Likewise.
15805 * trans-mem.c (record_tm_replacement): Likewise.
15806 (split_bb_make_tm_edge): Likewise.
15807 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15808 * tree-data-ref.h (lambda_vector_new): Likewise.
15809 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15810 * tree-iterator.c (tsi_link_before): Likewise.
15811 (tsi_link_after): Likewise.
15812 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15813 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15814 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15815 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15816 * tree-ssa.c (init_tree_ssa): Adjust.
15817 * tree-ssanames.c (set_range_info): Likewise.
15818 (get_ptr_info): Likewise.
15819 (duplicate_ssa_name_ptr_info): Likewise.
15820 (duplicate_ssa_name_range_info): Likewise.
15821 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15822 (unpack_ts_fixed_cst_value_fields): Likewise.
15823 * tree.c (build_fixed): Likewise.
15824 (build_real): Likewise.
15825 (build_string): Likewise.
15826 (decl_priority_info): Likewise.
15827 (decl_debug_expr_insert): Likewise.
15828 (decl_value_expr_insert): Likewise.
15829 (decl_debug_args_insert): Likewise.
15830 (type_hash_add): Likewise.
15831 (build_omp_clause): Likewise.
15832 * ubsan.c (decl_for_type_insert): Likewise.
15833 * varasm.c (get_unnamed_section): Likewise.
15834 (get_noswitch_section): Likewise.
15835 (get_section): Likewise.
15836 (get_block_for_section): Likewise.
15837 (create_block_symbol): Likewise.
15838 (build_constant_desc): Likewise.
15839 (create_constant_pool): Likewise.
15840 (force_const_mem): Likewise.
15841 (record_tm_clone_pair): Likewise.
15842 * varpool.c (varpool_create_empty_node): Likewise.
15843
15844 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15845
15846 * dwarf2out.c (tree_add_const_value_attribute): Call
15847 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15848 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15849 instead of ggc_internal_<x>alloc_stat.
15850 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15851 (ggc_realloc): Likewise.
15852 * ggc-none.c (ggc_internal_alloc): Likewise.
15853 (ggc_internal_cleared_alloc): Likewise.
15854 * ggc-page.c: Likewise.
15855 * ggc.h (ggc_internal_alloc_stat): Likewise.
15856 (ggc_internal_alloc): Remove macro.
15857 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15858 (ggc_internal_cleared_alloc): Remove macro.
15859 (GGC_RESIZEVEC): Adjust.
15860 (ggc_resizevar): Remove macro.
15861 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15862 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15863 (ggc_internal_vec_cleared_alloc): Remove macro.
15864 (ggc_alloc_atomic_stat): Drop _stat suffix.
15865 (ggc_alloc_atomic): Remove macro.
15866 (ggc_alloc_cleared_atomic): Remove macro.
15867 (ggc_alloc_string_stat): Drop _stat suffix.
15868 (ggc_alloc_string): Remove macro.
15869 (ggc_alloc_rtx_def_stat): Adjust.
15870 (ggc_alloc_tree_node_stat): Likewise.
15871 (ggc_alloc_cleared_tree_node_stat): Likewise.
15872 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15873 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15874 * gimple.c (gimple_build_omp_for): Likewise.
15875 (gimple_copy): Likewise.
15876 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15877 * toplev.c (realloc_for_line_map): Adjust.
15878 * tree-data-ref.h (lambda_vector_new): Likewise.
15879 * tree-phinodes.c (allocate_phi_node): Likewise.
15880 * tree.c (grow_tree_vec_stat): Likewise.
15881 * vec.h (va_gc::reserve): Adjust.
15882
15883 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15884
15885 * config/microblaze/microblaze.c (break_handler): New Declaration.
15886 (microblaze_break_function_p,microblaze_is_break_handler): New.
15887 (compute_frame_size): Use microblaze_break_function_p.
15888 Add the test of break_handler.
15889 (microblaze_function_prologue) : Add the test of variable
15890 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15891 (microblaze_function_epilogue) : Add the test of break_handler.
15892 (microblaze_globalize_label) : Add the test of break_handler.
15893 Check the name by BREAK_HANDLER_NAME.
15894
15895 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15896
15897 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15898 microblaze_is_break_handler test.
15899 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15900 Use SYMBOL_REF_DECL.
15901
15902 * config/microblaze/microblaze-protos.h
15903 (microblaze_break_function_p,microblaze_is_break_handler):
15904 New Declaration.
15905
15906 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15907 new MicroBlaze break_handler functions.
15908
15909 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15910
15911 * doc/extend.texi (Size of an asm): Move node text according
15912 to its @menu entry position.
15913
15914 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15915
15916 PR tree-optimization/61140
15917 PR tree-optimization/61150
15918 PR tree-optimization/61197
15919 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15920
15921 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15922
15923 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15924
15925 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15926
15927 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15928 __SIZEOF_INT128__ is defined.
15929
15930 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15931
15932 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15933 (rs6000_delegitimize_address): Use it.
15934
15935 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15936
15937 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15938 inplace argument. Store the new address in the original MEM when true.
15939 * emit-rtl.c (change_address_1): Likewise.
15940 (adjust_address_1, adjust_automodify_address_1, offset_address):
15941 Update accordingly.
15942 * rtl.h (plus_constant): Add an inplace argument.
15943 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15944 when true. Avoid generating (plus X (const_int 0)).
15945 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15946 in-place. Pass true to plus_constant.
15947 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15948
15949 2014-05-16 Dehao Chen <dehao@google.com>
15950
15951 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15952
15953 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15954
15955 PR target/54089
15956 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15957 patterns.
15958 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15959
15960 2014-05-16 Dehao Chen <dehao@google.com>
15961
15962 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15963 optimize_function_for_size_p.
15964 * regs.h (REG_FREQ_FROM_BB): Likewise.
15965
15966 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15967
15968 PR target/51244
15969 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15970 negt_reg_operand cases.
15971 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15972 predicate.
15973 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15974
15975 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15976
15977 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15978 target variants.
15979
15980 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15981
15982 Revert:
15983 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15984
15985 * tree-cfg.c (dump_function_to_file): Dump the return type of
15986 functions, in a line to itself before the function body, mimicking
15987 the layout of a C function.
15988
15989 2014-05-16 Dehao Chen <dehao@google.com>
15990
15991 * cfghooks.c (make_forwarder_block): Use direct computation to
15992 get fall-through edge's count and frequency.
15993
15994 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15995
15996 * config/arc/arc.c (arc_init): Fix typo in error message.
15997 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15998 (split_stack_prologue_scratch_regno): Likewise.
15999 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16000 word from error message.
16001
16002 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16003
16004 * ira-costs.c: Fix typo in comment.
16005
16006 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16007
16008 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16009
16010 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16011
16012 * varpool.c (dump_varpool_node): Dump write-only flag.
16013 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16014 write-only flag.
16015 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16016 write-only variables.
16017 * ipa.c (process_references): New function.
16018 (set_readonly_bit): New function.
16019 (set_writeonly_bit): New function.
16020 (clear_addressable_bit): New function.
16021 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16022 fix handling of aliases.
16023 * cgraph.h (struct varpool_node): Add writeonly flag.
16024
16025 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16026
16027 PR rtl-optimization/60969
16028 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16029 Calculate costs for this case.
16030
16031 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16032
16033 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16034 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16035
16036 2014-05-16 Richard Biener <rguenther@suse.de>
16037
16038 PR tree-optimization/61194
16039 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16040 bool patterns ending in a COND_EXPR.
16041
16042 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16043
16044 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16045
16046 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16047
16048 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16049 where we were unable to cost an RTX.
16050
16051 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16052
16053 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16054 HIGH, LO_SUM.
16055
16056 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16057 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16058
16059 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16060
16061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16062 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16063
16064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16065 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16066
16067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16068 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16069
16070 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16071 operators.
16072
16073 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16074 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16075
16076 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16077 DIV/MOD.
16078
16079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16080 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16081
16082 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16083 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16084
16085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16086 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16087
16088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16089 rotates and shifts.
16090
16091 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16092 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16093
16094 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16095 ZERO_EXTEND and SIGN_EXTEND better.
16096
16097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16098 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16099
16100 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16101 logical operations.
16102
16103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16104 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16105
16106 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16107 costs when costing loads and stores to memory.
16108
16109 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16110 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16111
16112 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16113 for SET RTX.
16114
16115 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16116
16117 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16118
16119 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16120 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16121
16122 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16123 to...
16124 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16125 well formed.
16126 (aarch64_rtx_mult_cost): New.
16127 (aarch64_rtx_costs): Use it, refactor as appropriate.
16128
16129 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16130 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16131
16132 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16133 emit instructions, return number of instructions which would
16134 be emitted.
16135 (aarch64_add_constant): Update call to aarch64_build_constant.
16136 (aarch64_output_mi_thunk): Likewise.
16137 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16138 a CONST_DOUBLE.
16139
16140 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16141
16142 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16143 (TARGET_RTX_COSTS): Call it.
16144
16145 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16146
16147 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16148 (cortexa57_vector_cost): Likewise.
16149 (cortexa57_tunings): Use them.
16150
16151 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16152
16153 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16154 (cpu_addrcost_table): Use it.
16155 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16156 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16157 move it.
16158
16159 2014-05-16 Richard Biener <rguenther@suse.de>
16160
16161 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16162 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16163 (visit_phi): Ignore edges marked as not executable.
16164 (class cond_dom_walker): New.
16165 (cond_dom_walker::before_dom_children): Value-number
16166 control statements and mark successor edges as not
16167 executable if possible.
16168 (run_scc_vn): First walk all control statements in
16169 dominator order, marking edges as not executable.
16170 * tree-inline.c (copy_edges_for_bb): Be not confused
16171 about random edge flags.
16172
16173 2014-05-16 Richard Biener <rguenther@suse.de>
16174
16175 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16176
16177 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16178
16179 PR target/61193
16180 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16181 (__TM_simple_begin): Use it.
16182 (__TM_begin): Likewise.
16183
16184 2014-05-15 Martin Jambor <mjambor@suse.cz>
16185
16186 PR ipa/61085
16187 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16188 type_preserved flag when the indirect edge is polymorphic.
16189
16190 2014-05-15 Martin Jambor <mjambor@suse.cz>
16191
16192 PR tree-optimization/61090
16193 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16194 build_ref_for_model.
16195
16196 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16197
16198 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16199 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16200
16201 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16202
16203 PR tree-optimization/61158
16204 * fold-const.c (fold_binary_loc): If X is zero-extended and
16205 shiftc >= prec, make sure zerobits is all ones instead of
16206 invoking undefined behavior.
16207
16208 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16209
16210 * regcprop.h: New file.
16211 * regcprop.c (skip_debug_insn_p): New decl.
16212 (replace_oldest_value_reg): Check skip_debug_insn_p.
16213 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16214 * shrink-wrap.c: Include regcprop.h.
16215 (prepare_shrink_wrap): Call
16216 copyprop_hardreg_forward_bb_without_debug_insn.
16217
16218 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16219
16220 * shrink-wrap.h: Update comment.
16221 * shrink-wrap.c: Update comment.
16222 (next_block_for_reg): Rename to live_edge_for_reg.
16223 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16224 (move_insn_for_shrink_wrap): Split live_edge.
16225 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16226
16227 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16228
16229 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16230 Delete.
16231 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16232 * config/sparc/sparc.md (fptype_ut699): New attribute.
16233 (in_branch_delay): Return false if -mfix-ut699 is specified and
16234 fptype_ut699 is set to single.
16235 (truncdfsf2): Add fptype_ut699 attribute.
16236 (fix_truncdfsi2): Likewise.
16237 (floatsisf2): Change fptype attribute.
16238 (fix_truncsfsi2): Likewise.
16239 (negtf2_notv9): Delete.
16240 (negtf2_v9): Likewise.
16241 (negtf2_hq): New instruction.
16242 (negtf2): New instruction and splitter.
16243 (negdf2_notv9): Rewrite.
16244 (abstf2_notv9): Delete.
16245 (abstf2_hq_v9): Likewise.
16246 (abstf2_v9): Likewise.
16247 (abstf2_hq): New instruction.
16248 (abstf2): New instruction and splitter.
16249 (absdf2_notv9): Rewrite.
16250
16251 2014-05-14 Cary Coutant <ccoutant@google.com>
16252
16253 PR debug/61013
16254 * opts.c (common_handle_option): Don't special-case "-g".
16255 (set_debug_level): Default to at least level 2 with "-g".
16256
16257 2014-05-14 DJ Delorie <dj@redhat.com>
16258
16259 * config/msp430/msp430.c (msp430_builtin): Add
16260 MSP430_BUILTIN_DELAY_CYCLES.
16261 (msp430_init_builtins): Register void __delay_cycles(long long).
16262 (msp430_builtin_decl): Add it.
16263 (cg_magic_constant): New.
16264 (msp430_expand_delay_cycles): New.
16265 (msp430_expand_builtin): Call it.
16266 (msp430_print_operand_raw): Change integer printing from "int" to
16267 HOST_WIDE_INT.
16268 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16269 (delay_cycles_start): New.
16270 (delay_cycles_end): New.
16271 (delay_cycles_32): New.
16272 (delay_cycles_32x): New.
16273 (delay_cycles_16): New.
16274 (delay_cycles_16x): New.
16275 (delay_cycles_2): New.
16276 (delay_cycles_1): New.
16277 * doc/extend.texi: Document __delay_cycles().
16278
16279 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16280
16281 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16282 length attribute computation.
16283
16284 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16285
16286 PR debug/61188
16287 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16288
16289 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16290
16291 PR target/61084
16292 * config/sparc/sparc.md: Fix types of low and high in DI constant
16293 splitter. Use gen_int_mode in some other splitters.
16294
16295 2014-05-14 Martin Jambor <mjambor@suse.cz>
16296
16297 PR ipa/60897
16298 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16299
16300 2014-05-14 James Norris <jnorris@codesourcery.com>
16301
16302 * omp-low.c (expand_parallel_call): Remove shadow variable.
16303 (expand_omp_taskreg): Likewise.
16304
16305 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16306
16307 * common/config/i386/i386-common.c
16308 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16309 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16310 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16311 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16312 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16313 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16314 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16315 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16316 xsavecintrin.h, xsavesintrin.h.
16317 (x86_64-*-*): Ditto.
16318 * config/i386/clflushoptintrin.h: New.
16319 * config/i386/xsavecintrin.h: Ditto.
16320 * config/i386/xsavesintrin.h: Ditto.
16321 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16322 (bit_XSAVES): Ditto.
16323 (bit_XSAVES): Ditto.
16324 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16325 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16326 -mno-clflushopt.
16327 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16328 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16329 OPTION_MASK_ISA_XSAVES.
16330 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16331 -mxsavec, -mxsaves.
16332 (PTA_CLFLUSHOPT) Define.
16333 (PTA_XSAVEC): Ditto.
16334 (PTA_XSAVES): Ditto.
16335 (ix86_option_override_internal): Handle new options.
16336 (ix86_valid_target_attribute_inner_p): Ditto.
16337 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16338 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16339 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16340 (bdesc_special_args): Add __builtin_ia32_xsaves,
16341 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16342 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16343 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16344 (ix86_expand_builtin): Handle new builtins.
16345 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16346 (TARGET_CLFLUSHOPT_P): Ditto.
16347 (TARGET_XSAVEC): Ditto.
16348 (TARGET_XSAVEC_P): Ditto.
16349 (TARGET_XSAVES): Ditto.
16350 (TARGET_XSAVES_P): Ditto.
16351 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16352 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16353 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16354 (ANY_XRSTOR): New.
16355 (ANY_XRSTOR64): Ditto.
16356 (xrstor): Ditto.
16357 (xrstor): Change into <xrstor>.
16358 (xrstor_rex64): Change into <xrstor>_rex64.
16359 (xrstor64): Change into <xrstor>64
16360 (clflushopt): New.
16361 * config/i386/i386.opt (mclflushopt): New.
16362 (mxsavec): Ditto.
16363 (mxsaves): Ditto.
16364 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16365 xsavecintrin.h.
16366 * doc/invoke.texi: Document new options.
16367
16368 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16369
16370 PR rtl-optimization/60866
16371 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16372 Default it to -1. Pass it down to init_simplejump_data.
16373 (init_simplejump_data): New parameter old_seqno. Pass it down
16374 to get_seqno_for_a_jump.
16375 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16376 initializing new jump seqno as a last resort. Add comment.
16377 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16378 jump and pass it down to sel_init_new_insn.
16379 (sel_redirect_edge_and_branch_force): Likewise.
16380
16381 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16382
16383 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16384 shifted values to avoid build warning.
16385
16386 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16387
16388 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16389 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16390 (cfg_layout_merge_blocks): Likewise.
16391 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16392
16393 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16394
16395 PR rtl-optimization/60901
16396 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16397 bb predecessor belongs to the same scheduling region. Adjust comment.
16398
16399 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16400
16401 * doc/sourcebuild.texi: (dfp_hw): Document.
16402 (p8vector_hw): Likewise.
16403 (powerpc_eabi_ok): Likewise.
16404 (powerpc_elfv2): Likewise.
16405 (powerpc_htm_ok): Likewise.
16406 (ppc_recip_hw): Likewise.
16407 (vsx_hw): Likewise.
16408
16409 2014-05-13 Cary Coutant <ccoutant@google.com>
16410
16411 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16412
16413 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16414
16415 * gengtype-parse.c (require3): Eliminate in favor of...
16416 (require4): New.
16417 (require_template_declaration): Update to support optional single *
16418 on a type.
16419
16420 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16421 (create_user_defined_type): Handle a single level of explicit
16422 pointerness within template arguments.
16423 (struct write_types_data): Add field "kind".
16424 (filter_type_name): Handle "*" character.
16425 (write_user_func_for_structure_ptr): Require a write_types_data
16426 rather than just a prefix string, so that we can look up the kind
16427 of the wtd and use it as an index into wrote_user_func_for_ptr,
16428 ensuring that such functions are written at most once. Support
16429 subclasses by invoking the marking function of the ultimate base class.
16430 (write_user_func_for_structure_body): Require a write_types_data
16431 rather than just a prefix string, so that we can pass this to
16432 write_user_func_for_structure_ptr.
16433 (write_func_for_structure): Likewise.
16434 (ggc_wtd): Add initializer of new "kind" field.
16435 (pch_wtd): Likewise.
16436
16437 * gengtype.h (enum write_types_kinds): New.
16438 (struct type): Add field wrote_user_func_for_ptr to the "s"
16439 union member.
16440
16441 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16442
16443 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16444 instead of const_binop.
16445 (fold_binary_loc): Likewise.
16446
16447 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16448
16449 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16450 calculation to match get_ref_base_and_extent.
16451
16452 2014-05-13 Catherine Moore <clm@codesourcery.com>
16453 Sandra Loosemore <sandra@codesourcery.com>
16454
16455 * configure.ac: Fix assembly for explicit JALR relocation check.
16456 * configure: Regenerate.
16457
16458 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16459
16460 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16461 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16462 Remove associated type declarations and initialisations.
16463 (arm_expand_neon_builtin): Likewise.
16464 (neon_emit_pair_result_insn): Delete.
16465 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16466 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16467 (neon_vzip<mode>): Likewise.
16468 (neon_vuzp<mode>): Likewise.
16469
16470 2014-05-13 Richard Biener <rguenther@suse.de>
16471
16472 PR ipa/60973
16473 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16474 it needs revisiting whether the call still may be tail-called.
16475
16476 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16477
16478 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16479 * rtl.h (block_symbol): Reduce number of fields to 2.
16480 (rtx_def): Add u2.symbol_ref_flags.
16481 (SYMBOL_REF_FLAGS): Use it.
16482 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16483 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16484 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16485 Lower index of SYMBOL_REF_DATA.
16486 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16487 Print SYMBOL_REF_FLAGS at the same time.
16488 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16489
16490 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16491
16492 * rtl.def (VAR_LOCATION): Remove "i" field.
16493 * rtl.h (rtx_def): Add u2.var_location_status.
16494 (PAT_VAR_LOCATION_STATUS): Use it.
16495 (gen_rtx_VAR_LOCATION): Declare.
16496 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16497 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16498 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16499
16500 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16501
16502 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16503 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16504
16505 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16506
16507 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16508 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16509 * rtl.h (rtx_def): Add insn_uid to u2 field.
16510 (RTX_FLAG_CHECK8): Delete in favor of...
16511 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16512 (INSN_DELETED_P): Update accordingly.
16513 (INSN_UID): Use u2.insn_uid.
16514 (INSN_CHAIN_CODE_P): Define.
16515 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16516 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16517 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16518 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16519 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16520 indices accordingly.
16521 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16522 Update indices for insn-chain rtxes.
16523 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16524 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16525 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16526 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16527 * combine.c (try_combine): Likewise.
16528 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16529
16530 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16531
16532 * rtl.def (REG): Remove middle field.
16533 * rtl.h (rtx_def): Add orignal_regno to u2.
16534 (ORIGINAL_REGNO): Use it instead of field 1.
16535 (REG_ATTRS): Lower field index accordingly.
16536 * gengtype.c (adjust_field_rtx_def): Remove handling of
16537 ORIGINAL_REGNO. Move REG_ATTRS index down.
16538 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16539 code that prints the REGNO.
16540
16541 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16542
16543 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16544 GENERATOR_FILE.
16545
16546 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16547
16548 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16549
16550 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16551
16552 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16553 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16554
16555 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16556
16557 * config/aarch64/aarch64-protos.h
16558 (aarch64_hard_regno_caller_save_mode): New prototype.
16559 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16560 New function.
16561 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16562
16563 2014-05-13 Christian Bruel <christian.bruel@st.com>
16564
16565 * target.def (mode_switching): New hook vector.
16566 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16567 (mode_exit, modepriority_to_mode): Likewise.
16568 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16569 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16570 * target.h: Include tm.h and hard-reg-set.h.
16571 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16572 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16573 * doc/tm.texi Regenerate.
16574 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16575 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16576 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16577 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16578 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16579 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16580 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16581 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16582 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16583 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16584 (ix86_emit_mode_set): Hookify.
16585 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16586 Delete.
16587 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16588 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16589 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16590 (epiphany_mode_priority_to_mode): Remove declaration.
16591 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16592 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16593 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16594 Likewise.
16595 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16596 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16597 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16598
16599 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16600
16601 PR target/61060
16602 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16603 is const0_rtx, return immediately. Don't test count == 0 when
16604 it is always true.
16605
16606 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16607
16608 * Makefile.in: add shrink-wrap.o.
16609 * config/i386/i386.c: include "shrink-wrap.h"
16610 * function.c: Likewise.
16611 (requires_stack_frame_p, next_block_for_reg,
16612 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16613 dup_block_and_redirect): Move to shrink-wrap.c
16614 (thread_prologue_and_epilogue_insns): Extract three code segments
16615 as functions in shrink-wrap.c
16616 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16617 shrink-wrap.h
16618 * shrink-wrap.c: New file.
16619 * shrink-wrap.h: New file.
16620
16621 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16622
16623 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16624 reference to Solaris.
16625
16626 2014-05-12 Mike Stump <mikestump@comcast.net>
16627
16628 PR other/31778
16629 * genattrtab.c (filename): Add.
16630 (convert_set_attr_alternative): Improve error message.
16631 (check_defs): Restore read_md_filename for error messages.
16632 (gen_insn): Save filename.
16633
16634 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16635
16636 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16637 -fno-local-ivars and -fivar-visibility.
16638 * c-family/c.opt: Make -Wshadow also implicitly enable
16639 -Wshadow-ivar.
16640
16641 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16642
16643 * doc/tm.texi: Remove reference to deleted macro.
16644 * doc/tm.texi.in: Likewise.
16645
16646 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16647
16648 PR target/60991
16649 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16650 to restore Y.
16651
16652 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16653
16654 PR libgcc/61152
16655 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16656 * config/arm/aout.h (License): Same.
16657 * config/arm/bpabi.h (License): Same.
16658 * config/arm/elf.h (License): Same.
16659 * config/arm/linux-elf.h (License): Same.
16660 * config/arm/linux-gas.h (License): Same.
16661 * config/arm/netbsd-elf.h (License): Same.
16662 * config/arm/uclinux-eabi.h (License): Same.
16663 * config/arm/uclinux-elf.h (License): Same.
16664 * config/arm/vxworks.h (License): Same.
16665
16666 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16667
16668 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16669 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16670 number of operands to 3.
16671 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16672 * tree-nested.c (convert_nonlocal_omp_clauses,
16673 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16674 * gimplify.c (gimplify_scan_omp_clauses): Handle
16675 OMP_CLAUSE_LINEAR_STMT.
16676 * omp-low.c (lower_rec_input_clauses): Fix typo.
16677 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16678 cast between Fortran boolean_type_node and C _Bool if
16679 needed.
16680
16681 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16682
16683 PR tree-optimization/61136
16684 * wide-int.h (multiple_of_p): Define a version that doesn't return
16685 the quotient.
16686 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16687 integer_zerop/const_binop pair.
16688 (multiple_of_p): Likewise, converting both operands to widest_int
16689 precision.
16690
16691 2014-05-09 Teresa Johnson <tejohnson@google.com>
16692
16693 * cgraphunit.c (analyze_functions): Use correct dump file.
16694
16695 2014-05-09 Florian Weimer <fweimer@redhat.com>
16696
16697 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16698 expand_used_vars.
16699 (stack_protect_return_slot_p): New function.
16700 (expand_used_vars): Call stack_protect_decl_p and
16701 stack_protect_return_slot_p for -fstack-protector-strong.
16702
16703 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16704 Andrew Haley <aph@redhat.com>
16705 Richard Sandiford <rdsandiford@googlemail.com>
16706
16707 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16708 pages.
16709
16710 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16711
16712 PR middle-end/61111
16713 * fold-const.c (fold_binary_loc): Changed width of mask.
16714
16715 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16716
16717 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16718 unsigned int initializers for regno_in, regno_out.
16719
16720 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16721
16722 PR target/61055
16723 * config/avr/avr.md (cc): Add new attribute set_vzn.
16724 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16725 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16726 with INC, DEC or NEG.
16727 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16728 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16729 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16730
16731 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16732
16733 Revert:
16734 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16735
16736 * wide-int.cc (UTItype): Define.
16737 (UDWtype): Define for appropriate W_TYPE_SIZE.
16738
16739 2014-05-09 Richard Biener <rguenther@suse.de>
16740
16741 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16742 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16743 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16744 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16745 ssa_propagate): Adjust.
16746
16747 2014-05-08 Jeff Law <law@redhat.com>
16748
16749 PR tree-optimization/61009
16750 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16751 tri-state rather than a boolean. When a block is too big to
16752 thread through, inform caller via negative return value.
16753 (thread_across_edge): If a block was too big for normal threading,
16754 then it's too big for a joiner too, so remove temporary equivalences
16755 and return immediately.
16756
16757 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16758 Matthias Klose <doko@ubuntu.com>
16759
16760 PR driver/61106
16761 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16762
16763 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16764
16765 PR target/59952
16766 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16767
16768 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16769
16770 PR target/61092
16771 * config/alpha/alpha.c: Include gimple-iterator.h.
16772 (alpha_gimple_fold_builtin): New function. Move
16773 ALPHA_BUILTIN_UMULH folding from ...
16774 (alpha_fold_builtin): ... here.
16775 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16776
16777 2014-05-08 Wei Mi <wmi@google.com>
16778
16779 PR target/58066
16780 * config/i386/i386.c (ix86_compute_frame_layout): Update
16781 preferred_stack_boundary for call, expanded from tls descriptor.
16782 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16783 to depend on SP register.
16784 (*tls_local_dynamic_base_32_gnu): Ditto.
16785 (*tls_local_dynamic_32_once): Ditto.
16786 (tls_global_dynamic_64_<mode>): Set
16787 ix86_tls_descriptor_calls_expanded_in_cfun.
16788 (tls_local_dynamic_base_64_<mode>): Ditto.
16789 (tls_global_dynamic_32): Set
16790 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16791 to depend on SP register.
16792 (tls_local_dynamic_base_32): Ditto.
16793
16794 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16795
16796 * config/arm/arm_neon.h: Update comment.
16797 * config/arm/neon-docgen.ml: Delete.
16798 * config/arm/neon-gen.ml: Delete.
16799 * doc/arm-neon-intrinsics.texi: Update comment.
16800
16801 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16802
16803 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16804 and v4sf versions.
16805 (vand, vorr, veor, vorn, vbic): Remove.
16806 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16807 iterator.
16808 (neon_vsub_unspec): Likewise.
16809 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16810
16811 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16812
16813 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16814 (vadd_s16): Likewise.
16815 (vadd_s32): Likewise.
16816 (vadd_f32): Likewise.
16817 (vadd_u8): Likewise.
16818 (vadd_u16): Likewise.
16819 (vadd_u32): Likewise.
16820 (vadd_s64): Likewise.
16821 (vadd_u64): Likewise.
16822 (vaddq_s8): Likewise.
16823 (vaddq_s16): Likewise.
16824 (vaddq_s32): Likewise.
16825 (vaddq_s64): Likewise.
16826 (vaddq_f32): Likewise.
16827 (vaddq_u8): Likewise.
16828 (vaddq_u16): Likewise.
16829 (vaddq_u32): Likewise.
16830 (vaddq_u64): Likewise.
16831 (vmul_s8): Likewise.
16832 (vmul_s16): Likewise.
16833 (vmul_s32): Likewise.
16834 (vmul_f32): Likewise.
16835 (vmul_u8): Likewise.
16836 (vmul_u16): Likewise.
16837 (vmul_u32): Likewise.
16838 (vmul_p8): Likewise.
16839 (vmulq_s8): Likewise.
16840 (vmulq_s16): Likewise.
16841 (vmulq_s32): Likewise.
16842 (vmulq_f32): Likewise.
16843 (vmulq_u8): Likewise.
16844 (vmulq_u16): Likewise.
16845 (vmulq_u32): Likewise.
16846 (vsub_s8): Likewise.
16847 (vsub_s16): Likewise.
16848 (vsub_s32): Likewise.
16849 (vsub_f32): Likewise.
16850 (vsub_u8): Likewise.
16851 (vsub_u16): Likewise.
16852 (vsub_u32): Likewise.
16853 (vsub_s64): Likewise.
16854 (vsub_u64): Likewise.
16855 (vsubq_s8): Likewise.
16856 (vsubq_s16): Likewise.
16857 (vsubq_s32): Likewise.
16858 (vsubq_s64): Likewise.
16859 (vsubq_f32): Likewise.
16860 (vsubq_u8): Likewise.
16861 (vsubq_u16): Likewise.
16862 (vsubq_u32): Likewise.
16863 (vsubq_u64): Likewise.
16864 (vand_s8): Likewise.
16865 (vand_s16): Likewise.
16866 (vand_s32): Likewise.
16867 (vand_u8): Likewise.
16868 (vand_u16): Likewise.
16869 (vand_u32): Likewise.
16870 (vand_s64): Likewise.
16871 (vand_u64): Likewise.
16872 (vandq_s8): Likewise.
16873 (vandq_s16): Likewise.
16874 (vandq_s32): Likewise.
16875 (vandq_s64): Likewise.
16876 (vandq_u8): Likewise.
16877 (vandq_u16): Likewise.
16878 (vandq_u32): Likewise.
16879 (vandq_u64): Likewise.
16880 (vorr_s8): Likewise.
16881 (vorr_s16): Likewise.
16882 (vorr_s32): Likewise.
16883 (vorr_u8): Likewise.
16884 (vorr_u16): Likewise.
16885 (vorr_u32): Likewise.
16886 (vorr_s64): Likewise.
16887 (vorr_u64): Likewise.
16888 (vorrq_s8): Likewise.
16889 (vorrq_s16): Likewise.
16890 (vorrq_s32): Likewise.
16891 (vorrq_s64): Likewise.
16892 (vorrq_u8): Likewise.
16893 (vorrq_u16): Likewise.
16894 (vorrq_u32): Likewise.
16895 (vorrq_u64): Likewise.
16896 (veor_s8): Likewise.
16897 (veor_s16): Likewise.
16898 (veor_s32): Likewise.
16899 (veor_u8): Likewise.
16900 (veor_u16): Likewise.
16901 (veor_u32): Likewise.
16902 (veor_s64): Likewise.
16903 (veor_u64): Likewise.
16904 (veorq_s8): Likewise.
16905 (veorq_s16): Likewise.
16906 (veorq_s32): Likewise.
16907 (veorq_s64): Likewise.
16908 (veorq_u8): Likewise.
16909 (veorq_u16): Likewise.
16910 (veorq_u32): Likewise.
16911 (veorq_u64): Likewise.
16912 (vbic_s8): Likewise.
16913 (vbic_s16): Likewise.
16914 (vbic_s32): Likewise.
16915 (vbic_u8): Likewise.
16916 (vbic_u16): Likewise.
16917 (vbic_u32): Likewise.
16918 (vbic_s64): Likewise.
16919 (vbic_u64): Likewise.
16920 (vbicq_s8): Likewise.
16921 (vbicq_s16): Likewise.
16922 (vbicq_s32): Likewise.
16923 (vbicq_s64): Likewise.
16924 (vbicq_u8): Likewise.
16925 (vbicq_u16): Likewise.
16926 (vbicq_u32): Likewise.
16927 (vbicq_u64): Likewise.
16928 (vorn_s8): Likewise.
16929 (vorn_s16): Likewise.
16930 (vorn_s32): Likewise.
16931 (vorn_u8): Likewise.
16932 (vorn_u16): Likewise.
16933 (vorn_u32): Likewise.
16934 (vorn_s64): Likewise.
16935 (vorn_u64): Likewise.
16936 (vornq_s8): Likewise.
16937 (vornq_s16): Likewise.
16938 (vornq_s32): Likewise.
16939 (vornq_s64): Likewise.
16940 (vornq_u8): Likewise.
16941 (vornq_u16): Likewise.
16942 (vornq_u32): Likewise.
16943 (vornq_u64): Likewise.
16944
16945 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16946
16947 * wide-int.cc (UTItype): Define.
16948 (UDWtype): Define for appropriate W_TYPE_SIZE.
16949
16950 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16951
16952 PR tree-optimization/59100
16953 * tree-ssa-phiopt.c: Include tree-inline.h.
16954 (neutral_element_p, absorbing_element_p): New functions.
16955 (value_replacement): Handle conditional binary operations with a
16956 neutral or absorbing element.
16957
16958 2014-05-08 Richard Biener <rguenther@suse.de>
16959
16960 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16961 folding the expression.
16962 (valueize_expr): Remove.
16963 (visit_reference_op_load): Do not valueize the result of
16964 vn_get_expr_for.
16965 (simplify_binary_expression): Likewise.
16966 (simplify_unary_expression): Likewise.
16967
16968 2014-05-08 Richard Biener <rguenther@suse.de>
16969
16970 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16971 looking at TYPE_ARG_TYPES.
16972
16973 2014-05-08 Richard Biener <rguenther@suse.de>
16974
16975 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16976 pointer propagation special-case.
16977
16978 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16979
16980 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16981 core part of address expressions.
16982
16983 2014-05-08 Alan Modra <amodra@gmail.com>
16984
16985 PR target/60737
16986 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16987 loads and stores when -mno-strict-align at any alignment.
16988 (expand_block_clear): Similarly. Also correct calculation of
16989 instruction count.
16990
16991 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16992
16993 PR middle-end/39246
16994 * tree-complex.c (expand_complex_move): Keep line info when expanding
16995 complex move.
16996 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16997 of complex expression. Use new argument to display correct location
16998 for values coming from phi statement.
16999 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17000 (warn_uninitialized_phi): Pass location of phi argument to
17001 warn_uninit.
17002 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17003 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17004
17005 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17006
17007 * config/rs6000/predicates.md (indexed_address_mem): New.
17008 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17009 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17010 fpstore_ux, fpstore_u.
17011 (sign_extend, indexed, update): New.
17012 (cell_micro): Adjust.
17013 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17014 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17015 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17016 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17017 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17018 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17019 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17020 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17021 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17022 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17023 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17024 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17025 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17026 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17027 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17028
17029 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17030 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17031 *vsx_extract_<mode>_store): Adjust.
17032 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17033 is_cracked_insn, insn_must_be_first_in_group,
17034 insn_must_be_last_in_group): Adjust.
17035
17036 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17037 Adjust.
17038 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17039 ppc440-fpstore): Adjust.
17040 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17041 ppc476-fpstore): Adjust.
17042 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17043 ppc601-fpstore): Adjust.
17044 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17045 Adjust.
17046 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17047 Adjust.
17048 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17049 ppc7450-fpstore): Adjust.
17050 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17051 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17052 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17053 Adjust.
17054 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17055 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17056 cell-fpstore, cell-fpstore-update): Adjust.
17057 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17058 ppce300c3_store, ppce300c3_fpstore): Adjust.
17059 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17060 e500mc_fpstore): Adjust.
17061 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17062 e500mc64_store, e500mc64_fpstore): Adjust.
17063 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17064 e5500_fpstore): Adjust.
17065 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17066 e6500_fpstore): Adjust.
17067 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17068 Adjust.
17069 * config/rs6000/power4.md (power4-load, power4-load-ext,
17070 power4-load-ext-update, power4-load-ext-update-indexed,
17071 power4-load-update-indexed, power4-load-update, power4-fpload,
17072 power4-fpload-update, power4-store, power4-store-update,
17073 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17074 Adjust.
17075 * config/rs6000/power5.md (power5-load, power5-load-ext,
17076 power5-load-ext-update, power5-load-ext-update-indexed,
17077 power5-load-update-indexed, power5-load-update, power5-fpload,
17078 power5-fpload-update, power5-store, power5-store-update,
17079 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17080 Adjust.
17081 * config/rs6000/power6.md (power6-load, power6-load-ext,
17082 power6-load-update, power6-load-update-indexed,
17083 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17084 power6-fpload-update, power6-store, power6-store-update,
17085 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17086 Adjust.
17087 * config/rs6000/power7.md (power7-load, power7-load-ext,
17088 power7-load-update, power7-load-update-indexed,
17089 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17090 power7-fpload-update, power7-store, power7-store-update,
17091 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17092 Adjust.
17093 * config/rs6000/power8.md (power8-load, power8-load-update,
17094 power8-load-ext, power8-load-ext-update, power8-fpload,
17095 power8-fpload-update, power8-store, power8-store-update-indexed,
17096 power8-fpstore, power8-fpstore-update): Adjust.
17097 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17098 Adjust.
17099 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17100 titan_lsu_store, titan_lsu_fpstore): Adjust.
17101 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17102
17103 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17104
17105 PR target/60884
17106 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17107 unrolled byte insns. Emit address increments after move insns.
17108
17109 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17110
17111 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17112 const_gimple, rather than a gimple.
17113 (gimple_call_builtin_p): Likewise, for the three variants.
17114
17115 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17116 (gimple_call_builtin_p): Likewise, for the three variants.
17117
17118 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17119
17120 PR tree-optimization/61095
17121 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17122
17123 2014-05-07 Richard Biener <rguenther@suse.de>
17124
17125 PR tree-optimization/61034
17126 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17127 (maybe_skip_until): Use translate to take into account
17128 lattices when trying to do disambiguations.
17129 (get_continuation_for_phi_1): Likewise.
17130 (get_continuation_for_phi): Adjust for added translate arguments.
17131 (walk_non_aliased_vuses): Likewise.
17132 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17133 (walk_non_aliased_vuses): Likewise.
17134 (call_may_clobber_ref_p_1): Declare.
17135 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17136 calls. Stop early if we are only supposed to disambiguate.
17137 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17138
17139 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17140
17141 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17142 Emit an error when the function has arguments.
17143
17144 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17145
17146 * cfgloop.h (unswitch_loops): Remove.
17147 * doc/passes.texi: Remove references to loop-unswitch.c
17148 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17149
17150 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17151
17152 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17153 check for loads group of length 3.
17154 (vect_permute_load_chain): New permutations for loads group of
17155 length 3.
17156 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17157 of vec_perm_shuffle for the new permutations.
17158
17159 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17160
17161 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17162 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17163 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17164 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17165 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17166 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17167 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17168 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17169
17170 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17171
17172 * loop-unswitch.c: Delete.
17173
17174 2014-05-07 Richard Biener <rguenther@suse.de>
17175
17176 * config.gcc: Always set need_64bit_hwint to yes.
17177
17178 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17179
17180 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17181 of using optimize_size.
17182
17183 2014-05-06 Mike Stump <mikestump@comcast.net>
17184
17185 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17186
17187 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17188
17189 * config/i386/sse.md (*mov<mode>_internal)
17190 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17191 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17192 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17193 (*<code><mode>3, *andnot<mode>3<mask_name>)
17194 (<mask_codefor><code><mode>3<mask_name>): Only consider
17195 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17196
17197 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17198
17199 Revert:
17200 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17201
17202 * lra-constraints.c (valid_address_p): Move earlier in file.
17203 Add a constraint argument to the address_info version.
17204 (satisfies_memory_constraint_p): New function.
17205 (satisfies_address_constraint_p): Likewise.
17206 (process_alt_operands, curr_insn_transform): Use them.
17207 (process_address): Pass the constraint to valid_address_p when
17208 checking address operands.
17209
17210 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17211
17212 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17213 to their respective blocks. Fix inadvertent use of "node".
17214
17215 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17216
17217 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17218 out from...
17219 (init_emit_once): ...here.
17220 * rtl.h (init_derived_machine_modes): Declare.
17221 * toplev.c (do_compile): Call it even if no_backend.
17222
17223 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17224 Mike Stump <mikestump@comcast.net>
17225 Richard Sandiford <rdsandiford@googlemail.com>
17226 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17227
17228 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17229 (rtx_equal_for_memref_p): Update comment.
17230 (adjust_offset_for_component_ref): Use wide-int interfaces.
17231 * builtins.c (get_object_alignment_2): Likewise.
17232 (c_readstr): Likewise.
17233 (target_char_cast): Add comment.
17234 (determine_block_size): Use wide-int interfaces.
17235 (expand_builtin_signbit): Likewise.
17236 (fold_builtin_int_roundingfn): Likewise.
17237 (fold_builtin_bitop): Likewise.
17238 (fold_builtin_bswap): Likewise.
17239 (fold_builtin_logarithm): Use signop.
17240 (fold_builtin_pow): Likewise.
17241 (fold_builtin_memory_op): Use wide-int interfaces.
17242 (fold_builtin_object_size): Likewise.
17243 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17244 nb_iterations_estimate.
17245 (record_niter_bound): Use wide-int interfaces.
17246 (get_estimated_loop_iterations_int): Likewise.
17247 (get_estimated_loop_iterations): Likewise.
17248 (get_max_loop_iterations): Likewise.
17249 * cfgloop.h: Include wide-int.h.
17250 (struct nb_iter_bound): Change bound to widest_int.
17251 (struct loop): Change nb_iterations_upper_bound and
17252 nb_iterations_estimate to widest_int.
17253 (record_niter_bound): Switch to use widest_int.
17254 (get_estimated_loop_iterations): Likewise.
17255 (get_max_loop_iterations): Likewise.
17256 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17257 update for wide-int.
17258 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17259 * combine.c (try_combine): Likewise.
17260 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17261 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17262 interfaces.
17263 (aarch64_float_const_representable_p): Likewise.
17264 * config/arc/arc.c: Include wide-int.h.
17265 (arc_can_use_doloop_p): Use wide-int interfaces.
17266 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17267 (vfp3_const_double_index): Likewise.
17268 * config/avr/avr.c (avr_out_round): Likewise.
17269 (avr_fold_builtin): Likewise.
17270 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17271 (bfin_can_use_doloop_p): Likewise.
17272 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17273 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17274 * config/i386/i386.c: Include wide-int.h.
17275 (ix86_data_alignment): Use wide-int interfaces.
17276 (ix86_local_alignment): Likewise.
17277 (ix86_emit_swsqrtsf): Update real_from_integer.
17278 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17279 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17280 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17281 (zero_constant): Likewise.
17282 (input_operand): Likewise.
17283 (splat_input_operand): Likewise.
17284 (non_logical_cint_operand): Change const_double to const_wide_int.
17285 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17286 (easy_altivec_constant): Remove comment.
17287 (paired_expand_vector_init): Use CONSTANT_P.
17288 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17289 (rs6000_emit_move): Update checks.
17290 (rs6000_aggregate_candidate): Use wide-int interfaces.
17291 (rs6000_expand_ternop_builtin): Likewise.
17292 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17293 (rs6000_assemble_integer): Likewise.
17294 (rs6000_hash_constant): Likewise.
17295 (output_toc): Likewise.
17296 (rs6000_rtx_costs): Likewise.
17297 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17298 * config/rs6000/rs6000-c.c: Include wide-int.h.
17299 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17300 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17301 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17302 Handle CONST_WIDE_INT.
17303 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17304 Use tree_fits_uhwi_p.
17305 * config/sparc/sparc.c: Include wide-int.h.
17306 (sparc_fold_builtin): Use wide-int interfaces.
17307 * config/vax/vax.c: Include wide-int.h.
17308 (vax_float_literal): Use real_from_integer.
17309 * coretypes.h (struct hwivec_def): New.
17310 (hwivec): New.
17311 (const_hwivec): New.
17312 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17313 (equiv_constant): Handle CONST_WIDE_INT.
17314 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17315 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17316 * dbxout.c (stabstr_U): Use wide-int interfaces.
17317 (dbxout_type): Update to use cst_fits_shwi_p.
17318 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17319 (TARGET_SUPPORTS_WIDE_INT): Add default.
17320 * dfp.c: Include wide-int.h.
17321 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17322 decimal_real_to_integer.
17323 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17324 decimal_real_to_integer.
17325 * doc/generic.texi (Constant expressions): Update for wide_int.
17326 * doc/rtl.texi (const_double): Likewise.
17327 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17328 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17329 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17330 (REAL_VALUE_FROM_INT): Remove.
17331 (TARGET_SUPPORTS_WIDE_INT): New.
17332 * doc/tm.texi: Regenerate.
17333 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17334 * double-int.h: Include wide-int.h.
17335 (struct wi::int_traits): New.
17336 * dwarf2out.c (get_full_len): New.
17337 (dw_val_equal_p): Add case dw_val_class_wide_int.
17338 (size_of_loc_descr): Likewise.
17339 (output_loc_operands): Likewise.
17340 (insert_double): Remove.
17341 (insert_wide_int): New.
17342 (add_AT_wide): New.
17343 (print_die): Add case dw_val_class_wide_int.
17344 (attr_checksum): Likewise.
17345 (attr_checksum_ordered): Likewise.
17346 (same_dw_val_p): Likewise.
17347 (size_of_die): Likewise.
17348 (value_format): Likewise.
17349 (output_die): Likewise.
17350 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17351 Use wide-int.
17352 (clz_loc_descriptor): Use wide-int interfaces.
17353 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17354 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17355 (round_up_to_align): Use wide-int interfaces.
17356 (field_byte_offset): Likewise.
17357 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17358 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17359 CONST_DOUBLE handling. Use wide-int interfaces.
17360 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17361 (gen_enumeration_type_die): Use add_AT_wide.
17362 (hash_loc_operands): Add case dw_val_class_wide_int.
17363 (compare_loc_operands): Likewise.
17364 * dwarf2out.h: Include wide-int.h.
17365 (wide_int_ptr): New.
17366 (enum dw_val_class): Add dw_val_class_wide_int.
17367 (struct dw_val_struct): Add val_wide.
17368 * emit-rtl.c (const_wide_int_htab): New.
17369 (const_wide_int_htab_hash): New.
17370 (const_wide_int_htab_eq): New.
17371 (lookup_const_wide_int): New.
17372 (const_double_htab_hash): Use wide-int interfaces.
17373 (const_double_htab_eq): Likewise.
17374 (rtx_to_double_int): Conditionally compile for wide-int.
17375 (immed_double_int_const): Rename to immed_wide_int_const and
17376 update for wide-int.
17377 (immed_double_const): Conditionally compile for wide-int.
17378 (init_emit_once): Use wide-int interfaces.
17379 * explow.c (plus_constant): Likewise.
17380 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17381 (lshift_value): Use wide-int interfaces.
17382 (expand_mult): Likewise.
17383 (choose_multiplier): Likewise.
17384 (expand_smod_pow2): Likewise.
17385 (make_tree): Likewise.
17386 * expr.c (convert_modes): Consolidate handling of constants.
17387 Use wide-int interfaces.
17388 (emit_group_load_1): Add note.
17389 (store_expr): Update comment.
17390 (get_inner_reference): Use wide-int interfaces.
17391 (expand_constructor): Update comment.
17392 (expand_expr_real_2): Use wide-int interfaces.
17393 (expand_expr_real_1): Likewise.
17394 (reduce_to_bit_field_precision): Likewise.
17395 (const_vector_from_tree): Likewise.
17396 * final.c: Include wide-int-print.h.
17397 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17398 * fixed-value.c: Include wide-int.h.
17399 (fixed_from_string): Use wide-int interfaces.
17400 (fixed_to_decimal): Likewise.
17401 (fixed_convert_from_real): Likewise.
17402 (real_convert_from_fixed): Likewise.
17403 * fold-const.h (mem_ref_offset): Return an offset_int.
17404 (div_if_zero_remainder): Remove code parameter.
17405 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17406 Use wide-int interfaces.
17407 (may_negate_without_overflow_p): Use wide-int interfaces.
17408 (negate_expr_p): Likewise.
17409 (fold_negate_expr): Likewise.
17410 (int_const_binop_1): Likewise.
17411 (const_binop): Likewise.
17412 (fold_convert_const_int_from_int): Likewise.
17413 (fold_convert_const_int_from_real): Likewise.
17414 (fold_convert_const_int_from_fixed): Likewise.
17415 (fold_convert_const_fixed_from_int): Likewise.
17416 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17417 (sign_bit_p): Use wide-int interfaces.
17418 (make_range_step): Likewise.
17419 (build_range_check): Likewise. Pass an integer of the correct type
17420 instead of using integer_one_node.
17421 (range_predecessor): Pass an integer of the correct type instead
17422 of using integer_one_node.
17423 (range_successor): Likewise.
17424 (merge_ranges): Likewise.
17425 (unextend): Use wide-int interfaces.
17426 (extract_muldiv_1): Likewise.
17427 (fold_div_compare): Likewise.
17428 (fold_single_bit_test): Likewise.
17429 (fold_sign_changed_comparison): Likewise.
17430 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17431 (fold_plusminus_mult_expr): Use wide-int interfaces.
17432 (native_encode_int): Likewise.
17433 (native_interpret_int): Likewise.
17434 (fold_unary_loc): Likewise.
17435 (pointer_may_wrap_p): Likewise.
17436 (size_low_cst): Likewise.
17437 (mask_with_tz): Likewise.
17438 (fold_binary_loc): Likewise.
17439 (fold_ternary_loc): Likewise.
17440 (multiple_of_p): Likewise.
17441 (tree_call_nonnegative_warnv_p): Update calls to
17442 tree_int_cst_min_precision and real_from_integer.
17443 (fold_negate_const): Use wide-int interfaces.
17444 (fold_abs_const): Likewise.
17445 (fold_relational_const): Use tree_int_cst_lt.
17446 (round_up_loc): Use wide-int interfaces.
17447 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17448 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17449 * gengtype.c: Remove include of double-int.h.
17450 (do_typedef): Use wide-int interfaces.
17451 (open_base_files): Add wide-int.h.
17452 (main): Add offset_int and widest_int typedefs.
17453 * gengtype-lex.l: Handle "^".
17454 (CXX_KEYWORD): Add "static".
17455 * gengtype-parse.c (require3): New.
17456 (require_template_declaration): Handle constant template arguments
17457 and nested templates.
17458 * gengtype-state.c: Don't include "double-int.h".
17459 * genpreds.c (write_one_predicate_function): Update comment.
17460 (write_tm_constrs_h): Add check for hval and lval use in
17461 CONST_WIDE_INT.
17462 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17463 (add_to_sequence): Likewise.
17464 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17465 and const_double_operand.
17466 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17467 interfaces.
17468 * gimple-fold.c (get_base_constructor): Likewise.
17469 (fold_array_ctor_reference): Likewise.
17470 (fold_nonarray_ctor_reference): Likewise.
17471 (fold_const_aggregate_ref_1): Likewise.
17472 (gimple_val_nonnegative_real_p): Likewise.
17473 (gimple_fold_indirect_ref): Likewise.
17474 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17475 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17476 (struct slsr_cand_d): Change index to be widest_int.
17477 (struct incr_info_d): Change incr to be widest_int.
17478 (alloc_cand_and_find_basis): Use wide-int interfaces.
17479 (slsr_process_phi): Likewise.
17480 (backtrace_base_for_ref): Likewise. Return a widest_int.
17481 (restructure_reference): Take a widest_int instead of a double_int.
17482 (slsr_process_ref): Use wide-int interfaces.
17483 (create_mul_ssa_cand): Likewise.
17484 (create_mul_imm_cand): Likewise.
17485 (create_add_ssa_cand): Likewise.
17486 (create_add_imm_cand): Take a widest_int instead of a double_int.
17487 (slsr_process_add): Use wide-int interfaces.
17488 (slsr_process_cast): Likewise.
17489 (slsr_process_copy): Likewise.
17490 (dump_candidate): Likewise.
17491 (dump_incr_vec): Likewise.
17492 (replace_ref): Likewise.
17493 (cand_increment): Likewise. Return a widest_int.
17494 (cand_abs_increment): Likewise.
17495 (replace_mult_candidate): Take a widest_int instead of a double_int.
17496 (replace_unconditional_candidate): Use wide-int interfaces.
17497 (incr_vec_index): Take a widest_int instead of a double_int.
17498 (create_add_on_incoming_edge): Likewise.
17499 (create_phi_basis): Use wide-int interfaces.
17500 (replace_conditional_candidate): Likewise.
17501 (record_increment): Take a widest_int instead of a double_int.
17502 (record_phi_increments): Use wide-int interfaces.
17503 (phi_incr_cost): Take a widest_int instead of a double_int.
17504 (lowest_cost_path): Likewise.
17505 (total_savings): Likewise.
17506 (analyze_increments): Use wide-int interfaces.
17507 (ncd_with_phi): Take a widest_int instead of a double_int.
17508 (ncd_of_cand_and_phis): Likewise.
17509 (nearest_common_dominator_for_cands): Likewise.
17510 (insert_initializers): Use wide-int interfaces.
17511 (all_phi_incrs_profitable): Likewise.
17512 (replace_one_candidate): Likewise.
17513 (replace_profitable_candidates): Likewise.
17514 * godump.c: Include wide-int-print.h.
17515 (go_output_typedef): Use wide-int interfaces.
17516 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17517 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17518 (build_loop_iteration_domains): Likewise.
17519 * hooks.h: Include wide-int.h rather than double-int.h.
17520 (hook_bool_dint_dint_uint_bool_true): Delete.
17521 (hook_bool_wint_wint_uint_bool_true): Declare.
17522 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17523 (hook_bool_wint_wint_uint_bool_true): New.
17524 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17525 interfaces.
17526 (ubsan_expand_si_overflow_mul_check): Likewise.
17527 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17528 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17529 (get_ancestor_addr_info): Likewise.
17530 (ipa_modify_call_arguments): Likewise.
17531 * loop-doloop.c (doloop_modify): Likewise.
17532 (doloop_optimize): Likewise.
17533 * loop-iv.c (iv_number_of_iterations): Likewise.
17534 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17535 (unroll_loop_constant_iterations): Likewise.
17536 (decide_unroll_runtime_iterations): Likewise.
17537 (unroll_loop_runtime_iterations): Likewise.
17538 (decide_peel_simple): Likewise.
17539 (decide_unroll_stupid): Likewise.
17540 * lto-streamer-in.c (streamer_read_wi): Add.
17541 (input_cfg): Use wide-int interfaces.
17542 (lto_input_tree_1): Likewise.
17543 * lto-streamer-out.c (streamer_write_wi): Add.
17544 (hash_tree): Use wide-int interfaces.
17545 (output_cfg): Likewise.
17546 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17547 (GTFILES): Add wide-int.h and signop.h.
17548 (TAGS): Look for .cc files too.
17549 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17550 * optabs.c (expand_subword_shift): Likewise.
17551 (expand_doubleword_shift): Likewise.
17552 (expand_absneg_bit): Likewise.
17553 (expand_copysign_absneg): Likewise.
17554 (expand_copysign_bit): Likewise.
17555 * postreload.c (reload_cse_simplify_set): Likewise.
17556 * predict.c (predict_iv_comparison): Likewise.
17557 * pretty-print.h: Include wide-int-print.h.
17558 (pp_wide_int) New.
17559 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17560 * print-tree.c: Include wide-int-print.h.
17561 (print_node_brief): Use wide-int interfaces.
17562 (print_node): Likewise.
17563 * read-rtl.c (validate_const_wide_int): New.
17564 (read_rtx_code): Add CONST_WIDE_INT case.
17565 * real.c: Include wide-int.h.
17566 (real_to_integer2): Delete.
17567 (real_to_integer): New function, returning a wide_int.
17568 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17569 (ten_to_ptwo): Update call to real_from_integer.
17570 (real_digit): Likewise.
17571 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17572 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17573 (REAL_VALUE_TO_INT): Delete.
17574 (real_to_integer): Declare a wide-int form.
17575 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17576 * recog.c (const_int_operand): Improve comment.
17577 (const_scalar_int_operand): New.
17578 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17579 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17580 (split_double): Likewise.
17581 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17582 (rtx_size): Likewise.
17583 (rtx_alloc_stat_v): New.
17584 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17585 (cwi_output_hex): New.
17586 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17587 (cwi_check_failed_bounds): New.
17588 * rtl.def (CONST_WIDE_INT): New.
17589 * rtl.h: Include <utility> and wide-int.h.
17590 (struct hwivec_def): New.
17591 (CWI_GET_NUM_ELEM): New.
17592 (CWI_PUT_NUM_ELEM): New.
17593 (struct rtx_def): Add num_elem and hwiv.
17594 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17595 (CASE_CONST_UNIQUE): Likewise.
17596 (CASE_CONST_ANY): Likewise.
17597 (CONST_SCALAR_INT_P): Likewise.
17598 (CONST_WIDE_INT_P): New.
17599 (CWI_ELT): New.
17600 (HWIVEC_CHECK): New.
17601 (cwi_check_failed_bounds): New.
17602 (CWI_ELT): New.
17603 (HWIVEC_CHECK): New.
17604 (CONST_WIDE_INT_VEC) New.
17605 (CONST_WIDE_INT_NUNITS) New.
17606 (CONST_WIDE_INT_ELT) New.
17607 (rtx_mode_t): New type.
17608 (wi::int_traits <rtx_mode_t>): New.
17609 (wi::shwi): New.
17610 (wi::min_value): New.
17611 (wi::max_value): New.
17612 (rtx_alloc_v) New.
17613 (const_wide_int_alloc): New.
17614 (immed_wide_int_const): New.
17615 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17616 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17617 * signop.h: New file.
17618 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17619 (simplify_const_unary_operation): Use wide-int interfaces.
17620 (simplify_binary_operation_1): Likewise.
17621 (simplify_const_binary_operation): Likewise.
17622 (simplify_const_relational_operation): Likewise.
17623 (simplify_immed_subreg): Likewise.
17624 * stmt.c (expand_case): Likewise.
17625 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17626 signop rather than a bool.
17627 * stor-layout.c (layout_type): Use wide-int interfaces.
17628 (initialize_sizetypes): Update calls to
17629 set_min_and_max_values_for_integral_type.
17630 (set_min_and_max_values_for_integral_type): Take a signop rather
17631 than a bool. Use wide-int interfaces.
17632 (fixup_signed_type): Update accordingly. Remove
17633 HOST_BITS_PER_DOUBLE_INT limit.
17634 (fixup_unsigned_type): Likewise.
17635 * system.h (STATIC_CONSTANT_P): New.
17636 (STATIC_ASSERT): New.
17637 * target.def (can_use_doloop_p): Take widest_ints rather than
17638 double_ints.
17639 * target.h: Include wide-int.h rather than double-int.h.
17640 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17641 than double_ints.
17642 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17643 rather than INT_CST_LT_UNSIGNED.
17644 (can_use_doloop_if_innermost): Take widest_ints rather than
17645 double_ints.
17646 * tree-affine.c: Include wide-int-print.h.
17647 (double_int_ext_for_comb): Delete.
17648 (wide_int_ext_for_comb): New.
17649 (aff_combination_zero): Use wide-int interfaces.
17650 (aff_combination_const): Take a widest_int instead of a double_int.
17651 (aff_combination_elt): Use wide-int interfaces.
17652 (aff_combination_scale): Take a widest_int instead of a double_int.
17653 (aff_combination_add_elt): Likewise.
17654 (aff_combination_add_cst): Likewise.
17655 (aff_combination_add): Use wide-int interfaces.
17656 (aff_combination_convert): Likewise.
17657 (tree_to_aff_combination): Likewise.
17658 (add_elt_to_tree): Take a widest_int instead of a double_int.
17659 (aff_combination_to_tree): Use wide-int interfaces.
17660 (aff_combination_remove_elt): Likewise.
17661 (aff_combination_add_product): Take a widest_int instead of
17662 a double_int.
17663 (aff_combination_mult): Use wide-int interfaces.
17664 (aff_combination_expand): Likewise.
17665 (double_int_constant_multiple_p): Delete.
17666 (wide_int_constant_multiple_p): New.
17667 (aff_combination_constant_multiple_p): Take a widest_int pointer
17668 instead of a double_int pointer.
17669 (print_aff): Use wide-int interfaces.
17670 (get_inner_reference_aff): Take a widest_int pointer
17671 instead of a double_int pointer.
17672 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17673 * tree-affine.h: Include wide-int.h.
17674 (struct aff_comb_elt): Change type of coef to widest_int.
17675 (struct affine_tree_combination): Change type of offset to widest_int.
17676 (double_int_ext_for_comb): Delete.
17677 (wide_int_ext_for_comb): New.
17678 (aff_combination_const): Use widest_int instead of double_int.
17679 (aff_combination_scale): Likewise.
17680 (aff_combination_add_elt): Likewise.
17681 (aff_combination_constant_multiple_p): Likewise.
17682 (get_inner_reference_aff): Likewise.
17683 (aff_comb_cannot_overlap_p): Likewise.
17684 (aff_combination_zero_p): Use wide-int interfaces.
17685 * tree.c: Include tree.h.
17686 (init_ttree): Use make_int_cst.
17687 (tree_code_size): Removed code for INTEGER_CST case.
17688 (tree_size): Add INTEGER_CST case.
17689 (make_node_stat): Update comment.
17690 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17691 (build_int_cst_type): Use wide-int interfaces.
17692 (double_int_to_tree): Likewise.
17693 (double_int_fits_to_tree_p): Delete.
17694 (force_fit_type_double): Delete.
17695 (force_fit_type): New.
17696 (int_cst_hash_hash): Use wide-int interfaces.
17697 (int_cst_hash_eq): Likewise.
17698 (build_int_cst_wide): Delete.
17699 (wide_int_to_tree): New.
17700 (cache_integer_cst): Use wide-int interfaces.
17701 (build_low_bits_mask): Likewise.
17702 (cst_and_fits_in_hwi): Likewise.
17703 (real_value_from_int_cst): Likewise.
17704 (make_int_cst_stat): New.
17705 (integer_zerop): Use wide_int interfaces.
17706 (integer_onep): Likewise.
17707 (integer_all_onesp): Likewise.
17708 (integer_pow2p): Likewise.
17709 (integer_nonzerop): Likewise.
17710 (tree_log2): Likewise.
17711 (tree_floor_log2): Likewise.
17712 (tree_ctz): Likewise.
17713 (int_size_in_bytes): Likewise.
17714 (mem_ref_offset): Return an offset_int rather than a double_int.
17715 (build_type_attribute_qual_variant): Use wide_int interfaces.
17716 (type_hash_eq): Likewise
17717 (tree_int_cst_equal): Likewise.
17718 (tree_int_cst_lt): Delete.
17719 (tree_int_cst_compare): Likewise.
17720 (tree_fits_shwi_p): Use wide_int interfaces.
17721 (tree_fits_uhwi_p): Likewise.
17722 (tree_int_cst_sign_bit): Likewise.
17723 (tree_int_cst_sgn): Likewise.
17724 (tree_int_cst_min_precision): Take a signop rather than a bool.
17725 (simple_cst_equal): Use wide_int interfaces.
17726 (compare_tree_int): Likewise.
17727 (iterative_hash_expr): Likewise.
17728 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17729 INT_CST_LT.
17730 (get_type_static_bounds): Use wide_int interfaces.
17731 (tree_int_cst_elt_check_failed): New.
17732 (build_common_tree_nodes): Reordered to set prec before filling in
17733 value.
17734 (int_cst_value): Check cst_and_fits_in_hwi.
17735 (widest_int_cst_value): Use wide_int interfaces.
17736 (upper_bound_in_type): Likewise.
17737 (lower_bound_in_type): Likewise.
17738 (num_ending_zeros): Likewise.
17739 (drop_tree_overflow): Likewise.
17740 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17741 (gen_conditions_for_pow_cst_base): Likewise.
17742 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17743 (group_case_labels_stmt): Use wide-int interfaces.
17744 (verify_gimple_assign_binary): Likewise.
17745 (print_loop): Likewise.
17746 * tree-chrec.c (tree_fold_binomial): Likewise.
17747 * tree-core.h (struct tree_base): Add int_length.
17748 (struct tree_int_cst): Change rep of value.
17749 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17750 (dr_may_alias_p): Likewise.
17751 (max_stmt_executions_tree): Likewise.
17752 * tree.def (INTEGER_CST): Update comment.
17753 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17754 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17755 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17756 (dequeue_and_dump): Use wide-int interfaces.
17757 * tree.h: Include wide-int.h.
17758 (NULL_TREE): Moved to earlier loc in file.
17759 (TREE_INT_CST_ELT_CHECK): New.
17760 (tree_int_cst_elt_check_failed): New.
17761 (TYPE_SIGN): New.
17762 (TREE_INT_CST): Delete.
17763 (TREE_INT_CST_LOW): Use wide-int interfaces.
17764 (TREE_INT_CST_HIGH): Delete.
17765 (TREE_INT_CST_NUNITS): New.
17766 (TREE_INT_CST_EXT_NUNITS): Likewise.
17767 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17768 (TREE_INT_CST_ELT): Likewise.
17769 (INT_CST_LT): Delete.
17770 (tree_int_cst_elt_check): New (two forms).
17771 (type_code_size): Update comment.
17772 (make_int_cst_stat, make_int_cst): New.
17773 (tree_to_double_int): Delete.
17774 (double_int_fits_to_tree_p): Delete.
17775 (force_fit_type_double): Delete.
17776 (build_int_cstu): Replace with out-of-line function.
17777 (build_int_cst_wide): Delete.
17778 (tree_int_cst_lt): Define inline.
17779 (tree_int_cst_le): New.
17780 (tree_int_cst_compare): Define inline.
17781 (tree_int_cst_min_precision): Take a signop rather than a bool.
17782 (wi::int_traits <const_tree>): New.
17783 (wi::int_traits <tree>): New.
17784 (wi::extended_tree): New.
17785 (wi::int_traits <wi::extended_tree>): New.
17786 (wi::to_widest): New.
17787 (wi::to_offset): New.
17788 (wi::fits_to_tree_p): New.
17789 (wi::min_value): New.
17790 (wi::max_value): New.
17791 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17792 (copy_tree_body_r): Likewise.
17793 * tree-object-size.c (compute_object_offset): Likewise.
17794 (addr_object_size): Likewise.
17795 * tree-predcom.c: Include wide-int-print.h.
17796 (struct dref_d): Change type of offset to widest_int.
17797 (dump_dref): Call wide-int printer.
17798 (aff_combination_dr_offset): Use wide-int interfaces.
17799 (determine_offset): Take a widest_int pointer rather than a
17800 double_int pointer.
17801 (split_data_refs_to_components): Use wide-int interfaces.
17802 (suitable_component_p): Likewise.
17803 (order_drefs): Likewise.
17804 (add_ref_to_chain): Likewise.
17805 (valid_initializer_p): Likewise.
17806 (determine_roots_comp): Likewise.
17807 * tree-pretty-print.c: Include wide-int-print.h.
17808 (dump_generic_node): Use wide-int interfaces.
17809 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17810 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17811 (move_fixed_address_to_symbol): Likewise.
17812 (move_hint_to_base): Likewise.
17813 (move_pointer_to_base): Likewise.
17814 (move_variant_to_index): Likewise.
17815 (most_expensive_mult_to_index): Likewise.
17816 (addr_to_parts): Likewise.
17817 (copy_ref_info): Likewise.
17818 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17819 (indirect_refs_may_alias_p): Likewise.
17820 (stmt_kills_ref_p_1): Likewise.
17821 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17822 * tree-ssa-ccp.c: Update comment at top of file. Include
17823 wide-int-print.h.
17824 (struct prop_value_d): Change type of mask to widest_int.
17825 (extend_mask): New function.
17826 (dump_lattice_value): Use wide-int interfaces.
17827 (get_default_value): Likewise.
17828 (set_constant_value): Likewise.
17829 (set_value_varying): Likewise.
17830 (valid_lattice_transition): Likewise.
17831 (set_lattice_value): Likewise.
17832 (value_to_double_int): Delete.
17833 (value_to_wide_int): New.
17834 (get_value_from_alignment): Use wide-int interfaces.
17835 (get_value_for_expr): Likewise.
17836 (do_dbg_cnt): Likewise.
17837 (ccp_finalize): Likewise.
17838 (ccp_lattice_meet): Likewise.
17839 (bit_value_unop_1): Use widest_ints rather than double_ints.
17840 (bit_value_binop_1): Likewise.
17841 (bit_value_unop): Use wide-int interfaces.
17842 (bit_value_binop): Likewise.
17843 (bit_value_assume_aligned): Likewise.
17844 (evaluate_stmt): Likewise.
17845 (ccp_fold_stmt): Likewise.
17846 (visit_cond_stmt): Likewise.
17847 (ccp_visit_stmt): Likewise.
17848 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17849 (constant_pointer_difference): Likewise.
17850 (associate_pointerplus): Likewise.
17851 (combine_conversions): Likewise.
17852 * tree-ssa-loop.h: Include wide-int.h.
17853 (struct tree_niter_desc): Change type of max to widest_int.
17854 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17855 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17856 (remove_redundant_iv_tests): Likewise.
17857 (canonicalize_loop_induction_variables): Likewise.
17858 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17859 (constant_multiple_of): Take a widest_int pointer instead of
17860 a double_int pointer.
17861 (get_computation_aff): Use wide-int interfaces.
17862 (ptr_difference_cost): Likewise.
17863 (difference_cost): Likewise.
17864 (get_loop_invariant_expr_id): Likewise.
17865 (get_computation_cost_at): Likewise.
17866 (iv_elimination_compare_lt): Likewise.
17867 (may_eliminate_iv): Likewise.
17868 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17869 instead of double_int.
17870 (max_loop_iterations): Likewise.
17871 (max_stmt_executions): Likewise.
17872 (estimated_stmt_executions): Likewise.
17873 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17874 (split_to_var_and_offset): Use wide-int interfaces.
17875 (determine_value_range): Likewise.
17876 (bound_difference_of_offsetted_base): Likewise.
17877 (bounds_add): Take a widest_int instead of a double_int.
17878 (number_of_iterations_ne_max): Use wide-int interfaces.
17879 (number_of_iterations_ne): Likewise.
17880 (number_of_iterations_lt_to_ne): Likewise.
17881 (assert_loop_rolls_lt): Likewise.
17882 (number_of_iterations_lt): Likewise.
17883 (number_of_iterations_le): Likewise.
17884 (number_of_iterations_cond): Likewise.
17885 (number_of_iterations_exit): Likewise.
17886 (finite_loop_p): Likewise.
17887 (derive_constant_upper_bound_assign): Likewise.
17888 (derive_constant_upper_bound): Return a widest_int.
17889 (derive_constant_upper_bound_ops): Likewise.
17890 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17891 (record_estimate): Take a widest_int rather than a double_int.
17892 (record_nonwrapping_iv): Use wide-int interfaces.
17893 (double_int_cmp): Delete.
17894 (wide_int_cmp): New.
17895 (bound_index): Take a widest_int rather than a double_int.
17896 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17897 (maybe_lower_iteration_bound): Likewise.
17898 (estimate_numbers_of_iterations_loop): Likewise.
17899 (estimated_loop_iterations): Take a widest_int pointer than than
17900 a double_int pointer.
17901 (estimated_loop_iterations_int): Use wide-int interfaces.
17902 (max_loop_iterations): Take a widest_int pointer than than
17903 a double_int pointer.
17904 (max_loop_iterations_int): Use wide-int interfaces.
17905 (max_stmt_executions): Take a widest_int pointer than than
17906 a double_int pointer.
17907 (estimated_stmt_executions): Likewise.
17908 (n_of_executions_at_most): Use wide-int interfaces.
17909 (scev_probably_wraps_p): Likewise.
17910 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17911 to real_to_integer.
17912 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17913 interfaces.
17914 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17915 double_ints. Adjust for trailing_wide_ints <3> representation.
17916 (set_nonzero_bits): Likewise.
17917 (get_range_info): Return wide_ints rather than double_ints.
17918 Adjust for trailing_wide_ints <3> representation.
17919 (get_nonzero_bits): Likewise.
17920 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17921 representation.
17922 * tree-ssanames.h (struct range_info_def): Replace min, max and
17923 nonzero_bits with a trailing_wide_ints <3>.
17924 (set_range_info): Use wide_int_refs rather than double_ints.
17925 (set_nonzero_bits): Likewise.
17926 (get_range_info): Return wide_ints rather than double_ints.
17927 (get_nonzero_bits): Likewise.
17928 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17929 * tree-ssa-pre.c (phi_translate_1): Likewise.
17930 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17931 (acceptable_pow_call): Likewise.
17932 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17933 interfaces.
17934 (vn_reference_fold_indirect): Likewise.
17935 (vn_reference_maybe_forwprop_address): Likewise.
17936 (valueize_refs_1): Likewise.
17937 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17938 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17939 tree_int_cst_lt and tree_int_cst_le.
17940 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17941 interfaces.
17942 (streamer_alloc_tree): Likewise.
17943 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17944 (streamer_write_tree_header): Likewise.
17945 (streamer_write_integer_cst): Likewise.
17946 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17947 (build_constructors): Likewise.
17948 (array_value_type): Likewise.
17949 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17950 (vect_check_gather): Likewise.
17951 * tree-vect-generic.c (build_replicated_const): Likewise.
17952 (expand_vector_divmod): Likewise.
17953 * tree-vect-loop.c (vect_transform_loop): Likewise.
17954 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17955 (vect_do_peeling_for_alignment): Likewise.
17956 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17957 * tree-vrp.c: Include wide-int.h.
17958 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17959 (extract_range_from_assert): Use wide-int interfaces.
17960 (vrp_int_const_binop): Likewise.
17961 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17962 double_int pointers.
17963 (ranges_from_anti_range): Use wide-int interfaces.
17964 (quad_int_cmp): Delete.
17965 (quad_int_pair_sort): Likewise.
17966 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17967 (extract_range_from_unary_expr_1): Likewise.
17968 (adjust_range_with_scev): Likewise.
17969 (masked_increment): Take and return wide_ints rather than double_ints.
17970 (register_edge_assert_for_2): Use wide-int interfaces.
17971 (check_array_ref): Likewise.
17972 (search_for_addr_array): Likewise.
17973 (maybe_set_nonzero_bits): Likewise.
17974 (union_ranges): Pass an integer of the correct type instead of
17975 using integer_one_node.
17976 (intersect_ranges): Likewise.
17977 (simplify_truth_ops_using_ranges): Likewise.
17978 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17979 (range_fits_type_p): Likewise.
17980 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17981 a bool.
17982 (simplify_conversion_using_ranges): Use wide-int interfaces.
17983 (simplify_float_conversion_using_ranges): Likewise.
17984 (vrp_finalize): Likewise.
17985 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17986 (gimple_stringops_transform): Likewise.
17987 * varasm.c (decode_addr_const): Likewise.
17988 (const_hash_1): Likewise.
17989 (const_rtx_hash_1): Likewise
17990 (output_constant): Likewise.
17991 (array_size_for_constructor): Likewise.
17992 (output_constructor_regular_field): Likewise.
17993 (output_constructor_bitfield): Likewise.
17994 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17995 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17996 GENERATOR_FILEs.
17997 * gencheck.c: Define BITS_PER_UNIT.
17998 * wide-int.cc: New.
17999 * wide-int.h: New.
18000 * wide-int-print.cc: New.
18001 * wide-int-print.h: New.
18002
18003 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18004
18005 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18006
18007 2014-05-06 Richard Biener <rguenther@suse.de>
18008
18009 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18010 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18011 (TODO_verify_all): Adjust.
18012 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18013 TODO_verify_stmts and TODO_verify_rtl_sharing.
18014 * bb-reorder.c: Likewise.
18015 * cfgexpand.c: Likewise.
18016 * cprop.c: Likewise.
18017 * cse.c: Likewise.
18018 * function.c: Likewise.
18019 * fwprop.c: Likewise.
18020 * gcse.c: Likewise.
18021 * gimple-ssa-isolate-paths.c: Likewise.
18022 * gimple-ssa-strength-reduction.c: Likewise.
18023 * ipa-split.c: Likewise.
18024 * loop-init.c: Likewise.
18025 * loop-unroll.c: Likewise.
18026 * lower-subreg.c: Likewise.
18027 * modulo-sched.c: Likewise.
18028 * postreload-gcse.c: Likewise.
18029 * predict.c: Likewise.
18030 * recog.c: Likewise.
18031 * sched-rgn.c: Likewise.
18032 * store-motion.c: Likewise.
18033 * tracer.c: Likewise.
18034 * trans-mem.c: Likewise.
18035 * tree-call-cdce.c: Likewise.
18036 * tree-cfg.c: Likewise.
18037 * tree-cfgcleanup.c: Likewise.
18038 * tree-complex.c: Likewise.
18039 * tree-eh.c: Likewise.
18040 * tree-emutls.c: Likewise.
18041 * tree-if-conv.c: Likewise.
18042 * tree-into-ssa.c: Likewise.
18043 * tree-loop-distribution.c: Likewise.
18044 * tree-object-size.c: Likewise.
18045 * tree-parloops.c: Likewise.
18046 * tree-pass.h: Likewise.
18047 * tree-sra.c: Likewise.
18048 * tree-ssa-ccp.c: Likewise.
18049 * tree-ssa-copy.c: Likewise.
18050 * tree-ssa-copyrename.c: Likewise.
18051 * tree-ssa-dce.c: Likewise.
18052 * tree-ssa-dom.c: Likewise.
18053 * tree-ssa-dse.c: Likewise.
18054 * tree-ssa-forwprop.c: Likewise.
18055 * tree-ssa-ifcombine.c: Likewise.
18056 * tree-ssa-loop-ch.c: Likewise.
18057 * tree-ssa-loop-ivcanon.c: Likewise.
18058 * tree-ssa-loop.c: Likewise.
18059 * tree-ssa-math-opts.c: Likewise.
18060 * tree-ssa-phiopt.c: Likewise.
18061 * tree-ssa-phiprop.c: Likewise.
18062 * tree-ssa-pre.c: Likewise.
18063 * tree-ssa-reassoc.c: Likewise.
18064 * tree-ssa-sink.c: Likewise.
18065 * tree-ssa-strlen.c: Likewise.
18066 * tree-ssa-tail-merge.c: Likewise.
18067 * tree-ssa-uncprop.c: Likewise.
18068 * tree-switch-conversion.c: Likewise.
18069 * tree-tailcall.c: Likewise.
18070 * tree-vect-generic.c: Likewise.
18071 * tree-vectorizer.c: Likewise.
18072 * tree-vrp.c: Likewise.
18073 * tsan.c: Likewise.
18074 * var-tracking.c: Likewise.
18075 * bt-load.c: Likewise.
18076 * cfgcleanup.c: Likewise.
18077 * combine-stack-adj.c: Likewise.
18078 * combine.c: Likewise.
18079 * compare-elim.c: Likewise.
18080 * config/epiphany/resolve-sw-modes.c: Likewise.
18081 * config/i386/i386.c: Likewise.
18082 * config/mips/mips.c: Likewise.
18083 * config/s390/s390.c: Likewise.
18084 * config/sh/sh_treg_combine.cc: Likewise.
18085 * config/sparc/sparc.c: Likewise.
18086 * dce.c: Likewise.
18087 * dse.c: Likewise.
18088 * final.c: Likewise.
18089 * ifcvt.c: Likewise.
18090 * mode-switching.c: Likewise.
18091 * passes.c: Likewise.
18092 * postreload.c: Likewise.
18093 * ree.c: Likewise.
18094 * reg-stack.c: Likewise.
18095 * regcprop.c: Likewise.
18096 * regrename.c: Likewise.
18097 * web.c: Likewise.
18098
18099 2014-05-06 Richard Biener <rguenther@suse.de>
18100
18101 PR middle-end/61070
18102 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18103 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18104
18105 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18106
18107 PR ipa/60965
18108 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18109
18110 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18111 Tom de Vries <tom@codesourcery.com>
18112
18113 * target.def (call_fusage_contains_non_callee_clobbers): New
18114 DEFHOOKPOD.
18115 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18116 Hooks to @menu.
18117 (@node Miscellaneous Register Hooks): New node.
18118 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18119 * doc/tm.texi: Regenerate.
18120
18121 2014-05-05 Marek Polacek <polacek@redhat.com>
18122
18123 PR driver/61065
18124 * opts.c (common_handle_option): Call error_at instead of warning_at.
18125
18126 2014-05-05 Richard Biener <rguenther@suse.de>
18127
18128 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18129 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18130 under the TODO_verify_il umbrella.
18131
18132 2014-05-05 Richard Biener <rguenther@suse.de>
18133
18134 * passes.c (execute_function_todo): Move TODO_verify_flow under
18135 the TODO_verify_ul umbrella.
18136
18137 2014-05-05 Richard Biener <rguenther@suse.de>
18138
18139 PR middle-end/61010
18140 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18141 X & CST away from a CST that is the mask of a mode.
18142
18143 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18144
18145 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18146 int argument to enum machine_mode.
18147 (picochip_class_max_nregs): Ditto.
18148 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18149 (picochip_class_max_nregs): Ditto.
18150
18151 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18152
18153 * target.def: Add new target hook.
18154 * doc/tm.texi: Regenerate.
18155 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18156 * targhooks.c (default_keep_leaf_when_profiled): New function.
18157
18158 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18159 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18160
18161 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18162
18163 PR tree-optimization/60363
18164 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18165 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18166 (update_destination_phis): New parameter.
18167 (create_edge_and_update_destination_phis): Ditto.
18168 (ssa_fix_duplicate_block_edges): Pass new arguments.
18169 (thread_single_edge): Ditto.
18170
18171 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18172
18173 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18174 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18175 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18176 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18177 Use RS6000_BTM_HARD_FLOAT.
18178 (BU_MISC_2): Likewise.
18179 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18180 RS6000_BTM_HARD_FLOAT.
18181 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18182 is explicitly used.
18183 (rs6000_invalid_builtin): Add hard floating builtin support.
18184 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18185 hard float builtins.
18186 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18187
18188 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18189
18190 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18191 Add missing function* argument.
18192
18193 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18194
18195 * lra-constraints.c (valid_address_p): Move earlier in file.
18196 Add a constraint argument to the address_info version.
18197 (satisfies_memory_constraint_p): New function.
18198 (satisfies_address_constraint_p): Likewise.
18199 (process_alt_operands, curr_insn_transform): Use them.
18200 (process_address): Pass the constraint to valid_address_p when
18201 checking address operands.
18202
18203 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18204
18205 * config/mips/mips.c (mips_isa_rev): New variable.
18206 (mips_set_architecture): Set it.
18207 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18208 from mips_isa_rev.
18209 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18210 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18211 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18212 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18213 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18214 conditions in terms of mips_isa_rev.
18215 (mips_isa_rev): Declare.
18216
18217 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18218
18219 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18220 (prob_unlikely, prob_likely): Make variables const.
18221
18222 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18223
18224 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18225
18226 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18227
18228 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18229
18230 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18231
18232 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18233 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18234 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18235 functions.
18236 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18237 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18238 sh_pass_in_reg_p.
18239 Replace usage of ROUND_REG with sh_round_reg.
18240 Use CEIL instead of ROUND_ADVANCE.
18241
18242 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18243
18244 PR target/61026
18245 * config/sh/sh.c: Include stdlib headers before everything else.
18246
18247 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18248
18249 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18250 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18251 (gimplify_adjust_omp_clauses): Simd region is never
18252 directly nested in combined parallel. Instead, for linear
18253 with copyin/copyout, if in combined for simd loop, make decl
18254 firstprivate/lastprivate on OMP_FOR.
18255 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18256 expand_omp_for_static_chunk): When setting endvar, also set
18257 fd->loop.v to the same value.
18258
18259 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18260
18261 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18262
18263 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18264
18265 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18266 expression.
18267
18268 2014-05-02 Marek Polacek <polacek@redhat.com>
18269
18270 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18271
18272 2014-05-02 Kito Cheng <kito@0xlab.org>
18273
18274 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18275 to a C expression marco.
18276 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18277 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18278 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18279 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18280 HONOR_REG_ALLOC_ORDER.
18281 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18282
18283 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18284
18285 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18286
18287 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18288
18289 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18290
18291 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18292
18293 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18294 (convert_scalar_cond_reduction): Likewise.
18295 (predicate_scalar_phi): Add recognition and transformation
18296 of simple conditioanl reduction to be vectorizable.
18297
18298 2014-05-01 Marek Polacek <polacek@redhat.com>
18299
18300 PR c/43245
18301 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18302
18303 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18304
18305 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18306 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18307 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18308 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18309 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18310 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18311 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18312 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18313
18314 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18315
18316 * config/arc/arc.opt (mlra): Move comment above option name
18317 to avoid mis-parsing as language options.
18318
18319 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18320
18321 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18322 * config/sol2.h: ... here.
18323 * config/sol2-10.h: Remove.
18324
18325 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18326 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18327 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18328 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18329 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18330 * config/sol2.h: ... here.
18331 (SECTION_NAME_FORMAT): Don't redefine.
18332 (STARTFILE_ARCH32_SPEC): Rename to ...
18333 (STARTFILE_ARCH_SPEC): ... this.
18334 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18335 * config/sparc/sol2.h: ... here.
18336 (SECTION_NAME_FORMAT): Don't undef.
18337 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18338 (SUBTARGET_EXTRA_SPECS): Remove.
18339 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18340
18341 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18342 (MD_STARTFILE_PREFIX): Remove.
18343 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18344 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18345 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18346 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18347 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18348 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18349 * config/i386/sol2.h: ... here.
18350 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18351 * config/i386/sol2-bi.h: Remove.
18352 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18353 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18354
18355 * config/i386/t-sol2-64: Rename to ...
18356 * config/i386/t-sol2: ... this.
18357 * config/sparc/t-sol2-64: Rename to ...
18358 * config/sparc/t-sol2: ... this.
18359
18360 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18361 sol2_tm_file_head, sol2_tm_file_tail.
18362 Include ${cpu_type}/sol2.h before sol2.h.
18363 Remove sol2-10.h.
18364 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18365 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18366 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18367 Reflect i386/t-sol2-64 renaming.
18368 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18369 Reflect sparc/t-sol2-64 renaming.
18370
18371 2014-04-30 Richard Biener <rguenther@suse.de>
18372
18373 * passes.c (execute_function_todo): Move TODO_verify_stmts
18374 and TODO_verify_ssa under the TODO_verify_il umbrella.
18375 * tree-ssa.h (verify_ssa): Adjust prototype.
18376 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18377 we should verify SSA operands.
18378 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18379 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18380 whether we should verify whether not throwing stmts have EH info.
18381 * graphite-scop-detection.c (create_sese_edges): Adjust.
18382 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18383 * tree-eh.c (lower_try_finally_switch): Do not add the
18384 default case label twice.
18385
18386 2014-04-30 Marek Polacek <polacek@redhat.com>
18387
18388 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18389 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18390 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18391 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18392
18393 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18394
18395 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18396 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18397 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18398 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18399 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18400 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18401 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18402 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18403
18404 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18405
18406 * tree-cfg.c (dump_function_to_file): Dump the return type of
18407 functions, in a line to itself before the function body, mimicking
18408 the layout of a C function.
18409
18410 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18411
18412 PR tree-optimization/60971
18413 * tree-tailcall.c (process_assignment): Reject conversions which
18414 reduce precision.
18415
18416 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18417
18418 * calls.c (initialize_argument_information): Always treat
18419 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18420 (expand_call): Likewise.
18421 (emit_library_call_calue_1): Likewise.
18422 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18423 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18424 code accordingly.
18425
18426 2014-04-29 Nick Clifton <nickc@redhat.com>
18427
18428 * config/msp430/msp430.md (umulsidi): Fix typo.
18429 (mulhisi3): Enable even inside interrupt handlers.
18430 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18431 bigger return address pushed in large mode.
18432
18433 2014-04-29 Nick Clifton <nickc@redhat.com>
18434
18435 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18436 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18437 available modes.
18438 * config/m32r/m32r.c (init_reg_tables): Likewise.
18439 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18440 enum to hold the modes.
18441
18442 2014-04-29 Richard Biener <rguenther@suse.de>
18443
18444 * dominance.c (free_dominance_info): Add overload with
18445 function parameter.
18446 (dom_info_state): Likewise.
18447 (dom_info_available_p): Likewise.
18448 * basic-block.h (free_dominance_info, dom_info_state,
18449 dom_info_available_p): Declare overloads.
18450 * passes.c (execute_function_todo): Verify that verifiers
18451 don't change dominator info state. Drop dominator info
18452 for IPA pass invocations.
18453 * cgraph.c (release_function_body): Restore asserts that
18454 dominator information is released.
18455
18456 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18457
18458 * doc/invoke.texi: Fix typo.
18459 * tree-vrp.c: Fix typos.
18460 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18461
18462 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18463
18464 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18465
18466 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18467
18468 * config/aarch64/aarch64-builtins.c
18469 (aarch64_types_storestruct_lane_qualifiers): New.
18470 (TYPES_STORESTRUCT_LANE): Likewise.
18471 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18472 (st3_lane): Likewise.
18473 (st4_lane): Likewise.
18474 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18475 (vec_store_lanesci_lane<mode>): Likewise.
18476 (vec_store_lanesxi_lane<mode>): Likewise.
18477 (aarch64_st2_lane<VQ:mode>): Likewise.
18478 (aarch64_st3_lane<VQ:mode>): Likewise.
18479 (aarch64_st4_lane<VQ:mode>): Likewise.
18480 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18481 * config/aarch64/arm_neon.h
18482 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18483 use new macro arguments.
18484 (__ST3_LANE_FUNC): Likewise.
18485 (__ST4_LANE_FUNC): Likewise.
18486 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18487 (V_THREE_ELEM): Likewise.
18488 (V_FOUR_ELEM): Likewise.
18489
18490 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18491
18492 * doc/gimple.texi: Replace the description of the now-defunct
18493 union gimple_statement_d with a diagram showing the
18494 gimple_statement_base class hierarchy and its relationships to
18495 the GSS_ and GIMPLE_ enums.
18496
18497 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18498
18499 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18500 * config/aarch64/aarch64.c
18501 (aarch64_cannot_change_mode_class): Weaken conditions.
18502 (aarch64_modes_tieable_p): New.
18503 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18504
18505 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18506
18507 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18508 (loadsync_<mode>): Change mode.
18509 (load_quadpti, store_quadpti): New.
18510 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18511 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18512
18513 2014-04-28 Martin Jambor <mjambor@suse.cz>
18514
18515 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18516 same alias type as the original statement.
18517 (subreplacement_assignment_data): New type.
18518 (handle_unscalarized_data_in_subtree): New type of parameter,
18519 generate new memory accesses with same alias type as the original
18520 statement.
18521 (load_assign_lhs_subreplacements): Likewise.
18522 (sra_modify_constructor_assign): Generate new memory accesses with
18523 same alias type as the original statement.
18524
18525 2014-04-28 Richard Biener <rguenther@suse.de>
18526
18527 * tree-pass.h (TODO_verify_il): Define.
18528 (TODO_verify_all): Complete properly.
18529 * passes.c (execute_function_todo): Move existing loop-closed
18530 SSA verification under TODO_verify_il.
18531 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18532 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18533 Fix tree sharing issue.
18534
18535 2014-04-28 Richard Biener <rguenther@suse.de>
18536
18537 PR middle-end/60092
18538 * builtins.def (DEF_C11_BUILTIN): Add.
18539 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18540 * coretypes.h (enum function_class): Add function_c11_misc.
18541 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18542 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18543 (call_may_clobber_ref_p_1): Likewise.
18544 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18545 (mark_all_reaching_defs_necessary_1): Likewise.
18546 (propagate_necessity): Likewise.
18547 (eliminate_unnecessary_stmts): Likewise.
18548 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18549
18550 2014-04-28 Richard Biener <rguenther@suse.de>
18551
18552 * tree-vrp.c (vrp_var_may_overflow): Remove.
18553 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18554 with overflow immediately bump to one before that value and
18555 let iteration figure out overflow status.
18556
18557 2014-04-28 Richard Biener <rguenther@suse.de>
18558
18559 * configure.ac: Do valgrind header checks unconditionally.
18560 Add --enable-valgrind-annotations.
18561 * system.h: Guard valgrind header inclusion with
18562 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18563 * alloc-pool.c (pool_alloc, pool_free): Use
18564 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18565 to guard possibly dead code.
18566 * config.in: Regenerated.
18567 * configure: Likewise.
18568
18569 2014-04-28 Jeff Law <law@redhat.com>
18570
18571 PR tree-optimization/60902
18572 * tree-ssa-threadedge.c
18573 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18574 over real defs when invalidating outputs from statements that do not
18575 produce useful outputs for threading.
18576
18577 2014-04-28 Richard Biener <rguenther@suse.de>
18578
18579 PR tree-optimization/60979
18580 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18581 SCOPs that end in a block with a successor with abnormal
18582 predecessors.
18583
18584 2014-04-28 Richard Biener <rguenther@suse.de>
18585
18586 * tree-pass.h (execute_pass_list): Adjust prototype.
18587 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18588 (do_per_function): Change callback signature, push all actual
18589 work to the callbals.
18590 (do_per_function_toporder): Likewise.
18591 (execute_function_dump): Adjust.
18592 (execute_function_todo): Likewise.
18593 (clear_last_verified): Likewise.
18594 (verify_curr_properties): Likewise.
18595 (update_properties_after_pass): Likewise.
18596 (execute_pass_list_1): Split out from ...
18597 (execute_pass_list): ... here. Adjust.
18598 (execute_ipa_pass_list): Likewise.
18599 * cgraphunit.c (cgraph_add_new_function): Adjust.
18600 (analyze_function): Likewise.
18601 (expand_function): Likewise.
18602 * cgraph.c (release_function_body): Free dominance info
18603 here instead of asserting it was magically freed elsewhere.
18604
18605 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18606
18607 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18608 * configure: Regenerate.
18609 * config/sparc/sparc.opt (muser-mode): New option.
18610 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18611 for LEON3.
18612 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18613 * doc/invoke.texi (SPARC options): Document -muser-mode.
18614
18615 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18616
18617 * cselib.c (find_slot_memmode): Delete.
18618 (cselib_hasher): Change compare_type to a struct.
18619 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18620 constants.
18621 (preserve_constants_and_equivs): Adjust for new compare_type.
18622 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18623 (wrap_constant): Delete.
18624 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18625
18626 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18627
18628 * doc/install.texi (Building with profile feedback): Remove
18629 outdated sentence.
18630
18631 2014-04-26 Tom de Vries <tom@codesourcery.com>
18632
18633 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18634 array accesses.
18635
18636 2014-04-25 Cary Coutant <ccoutant@google.com>
18637
18638 PR debug/60929
18639 * dwarf2out.c (should_move_die_to_comdat): A type definition
18640 can contain a subprogram definition, but don't move it to a
18641 comdat unit.
18642 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18643 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18644 from original DIE.
18645 (clone_tree_hash): Rename to...
18646 (clone_tree_partial): ...this; change callers. Copy
18647 DW_TAG_subprogram DIEs as declarations.
18648 (copy_decls_walk): Don't copy children of a declaration into a
18649 type unit.
18650
18651 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18652
18653 PR target/60969
18654 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18655 alternative 12.
18656
18657 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18658
18659 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18660 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18661 reg for long_call.
18662 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18663 restriction.
18664
18665 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18666
18667 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18668
18669 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18670
18671 PR tree-optimization/60930
18672 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18673 creating a multiply candidate by folding two constant
18674 multiplicands when the result overflows.
18675
18676 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18677
18678 PR tree-optimization/60960
18679 * tree-vect-generic.c (expand_vector_operation): Only call
18680 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18681
18682 2014-04-25 Tom de Vries <tom@codesourcery.com>
18683
18684 * expr.c (clobber_reg_mode): New function.
18685 * expr.h (clobber_reg): New function.
18686
18687 2014-04-25 Tom de Vries <tom@codesourcery.com>
18688
18689 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18690 clobbers.
18691
18692 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18693 Tom de Vries <tom@codesourcery.com>
18694
18695 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18696 handle.
18697 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18698 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18699 new argument to find_all_hard_reg_sets call.
18700
18701 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18702
18703 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18704 Use HOST_WIDE_INT_C for mask literal.
18705 (aarch_rev16_shleft_mask_imm_p): Likewise.
18706
18707 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18708
18709 PR target/60941
18710 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18711
18712 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18713
18714 PR preprocessor/56540
18715 * config/i386/i386-c.c (ix86_target_macros): Define
18716 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18717
18718 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18719
18720 * configure.ac (tga_func): Remove.
18721 (LIB_TLS_SPEC): Remove.
18722 * configure: Regenerate.
18723 * config.in: Regenerate.
18724 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18725
18726 2014-04-25 Richard Biener <rguenther@suse.de>
18727
18728 PR ipa/60912
18729 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18730 call stmt use/clobber sets during stmt walk instead of
18731 walking the possibly incomplete set of caller edges.
18732
18733 2014-04-25 Richard Biener <rguenther@suse.de>
18734
18735 PR ipa/60911
18736 * passes.c (apply_ipa_transforms): Inline into only caller ...
18737 (execute_one_pass): ... here. Properly bring in function
18738 bodies for nodes we want to apply IPA transforms to.
18739
18740 2014-04-24 Cong Hou <congh@google.com>
18741
18742 PR tree-optimization/60896
18743 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18744 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18745 (vect_mark_pattern_stmts): Set the def type of all statements in
18746 PATTERN_DEF_SEQ as vect_internal_def.
18747
18748 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18749
18750 * doc/extend.texi (PowerPC Built-in Functions): Document new
18751 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18752 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18753
18754 * config/rs6000/predicates.md (const_0_to_3_operand): New
18755 predicate to match 0..3 integer constants.
18756
18757 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18758 to support adding miscellaneous builtin functions.
18759 (BU_DFP_MISC_2): Likewise.
18760 (BU_P7_MISC_1): Likewise.
18761 (BU_P7_MISC_2): Likewise.
18762 (BU_P8V_MISC_3): Likewise.
18763 (BU_MISC_1): Likewise.
18764 (BU_MISC_2): Likewise.
18765 (DIVWE): Add extended divide builtin functions.
18766 (DIVWEO): Likewise.
18767 (DIVWEU): Likewise.
18768 (DIVWEUO): Likewise.
18769 (DIVDE): Likewise.
18770 (DIVDEO): Likewise.
18771 (DIVDEU): Likewise.
18772 (DIVDEUO): Likewise.
18773 (DXEX): Add decimal floating-point builtin functions.
18774 (DXEXQ): Likewise.
18775 (DDEDPD): Likewise.
18776 (DDEDPDQ): Likewise.
18777 (DENBCD): Likewise.
18778 (DENBCDQ): Likewise.
18779 (DIEX): Likewise.
18780 (DIEXQ): Likewise.
18781 (DSCLI): Likewise.
18782 (DSCLIQ): Likewise.
18783 (DSCRI): Likewise.
18784 (DSCRIQ): Likewise.
18785 (CDTBCD): Add new BCD builtin functions.
18786 (CBCDTD): Likewise.
18787 (ADDG6S): Likewise.
18788 (BCDADD): Likewise.
18789 (BCDADD_LT): Likewise.
18790 (BCDADD_EQ): Likewise.
18791 (BCDADD_GT): Likewise.
18792 (BCDADD_OV): Likewise.
18793 (BCDSUB): Likewise.
18794 (BCDSUB_LT): Likewise.
18795 (BCDSUB_EQ): Likewise.
18796 (BCDSUB_GT): Likewise.
18797 (BCDSUB_OV): Likewise.
18798 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18799 (UNPACK_TD): Likewise.
18800 (PACK_TF): Likewise.
18801 (UNPACK_TF): Likewise.
18802 (UNPACK_TF_0): Likewise.
18803 (UNPACK_TF_1): Likewise.
18804 (PACK_V1TI): Likewise.
18805 (UNPACK_V1TI): Likewise.
18806
18807 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18808 support for decimal floating point builtin functions.
18809 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18810 functions that take constant arguments.
18811 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18812 (rs6000_init_builtins): Setup long double, _Decimal64, and
18813 _Decimal128 types for new builtin functions.
18814 (builtin_function_type): Set the unsigned flags appropriately for
18815 the new builtin functions.
18816 (rs6000_opt_masks): Add support for decimal floating point builtin
18817 functions.
18818
18819 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18820 floating point builtin functions.
18821 (RS6000_BTM_COMMON): Likewise.
18822 (RS6000_BTI_long_double): Likewise.
18823 (RS6000_BTI_dfloat64): Likewise.
18824 (RS6000_BTI_dfloat128): Likewise.
18825 (long_double_type_internal_node): Likewise.
18826 (dfloat64_type_internal_node): Likewise.
18827 (dfloat128_type_internal_node): Likewise.
18828
18829 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18830 2.07 bcd arithmetic instructions.
18831 (UNSPEC_BCDSUB): Likewise.
18832 (UNSPEC_BCD_OVERFLOW): Likewise.
18833 (UNSPEC_BCD_ADD_SUB): Likewise.
18834 (bcd_add_sub): Likewise.
18835 (BCD_TEST): Likewise.
18836 (bcd<bcd_add_sub>): Likewise.
18837 (bcd<bcd_add_sub>_test): Likewise.
18838 (bcd<bcd_add_sub>_test2): Likewise.
18839 (bcd<bcd_add_sub>_<code>): Likewise.
18840 (peephole2 for combined bcd ops): Likewise.
18841
18842 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18843 decimal floating point builtin functions.
18844 (UNSPEC_DENBCD): Likewise.
18845 (UNSPEC_DXEX): Likewise.
18846 (UNSPEC_DIEX): Likewise.
18847 (UNSPEC_DSCLI): Likewise.
18848 (UNSPEC_DSCRI): Likewise.
18849 (D64_D128): Likewise.
18850 (dfp_suffix): Likewise.
18851 (dfp_ddedpd_<mode>): Likewise.
18852 (dfp_denbcd_<mode>): Likewise.
18853 (dfp_dxex_<mode>): Likewise.
18854 (dfp_diex_<mode>): Likewise.
18855 (dfp_dscli_<mode>): Likewise.
18856 (dfp_dscri_<mode>): Likewise.
18857
18858 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18859 builtin functions.
18860 (UNSPEC_CDTBCD): Likewise.
18861 (UNSPEC_CBCDTD): Likewise.
18862 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18863 (UNSPEC_DIVEO): Likewise.
18864 (UNSPEC_DIVEU): Likewise.
18865 (UNSPEC_DIVEUO): Likewise.
18866 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18867 pack/unpack 128-bit types.
18868 (UNSPEC_PACK_128BIT): Likewise.
18869 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18870 (udiv<mode>3): Use idiv_ldiv mode attribute.
18871 (div<mode>3): Likewise.
18872 (addg6s): Add new BCD builtin functions.
18873 (cdtbcd): Likewise.
18874 (cbcdtd): Likewise.
18875 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18876 (div_extend): Likewise.
18877 (div<div_extend>_<mode>"): Likewise.
18878 (FP128_64): Add support for new builtin functions to pack/unpack
18879 128-bit types.
18880 (unpack<mode>): Likewise.
18881 (unpacktf_0): Likewise.
18882 (unpacktf_1): Likewise.
18883 (unpack<mode>_dm): Likewise.
18884 (unpack<mode>_nodm): Likewise.
18885 (pack<mode>): Likewise.
18886 (unpackv1ti): Likewise.
18887 (packv1ti): Likewise.
18888
18889 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18890
18891 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18892 is disabled.
18893
18894 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18895
18896 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18897 * gimplify.c (omp_is_private): Change last argument's type to int.
18898 Only diagnose lastprivate if the simd argument is 1, only diagnose
18899 linear if the simd argument is 2.
18900 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18901 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18902 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18903 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18904 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18905 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18906 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18907 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18908 * tree-nested.c (convert_nonlocal_omp_clauses,
18909 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18910
18911 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18912
18913 PR target/60822
18914 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18915 operand 1.
18916
18917 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18918
18919 * flag-types.h (enum ivar_visibility): Add.
18920
18921 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18922
18923 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18924 function * argument.
18925
18926 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18927
18928 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18929
18930 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18931 Tom de Vries <tom@codesourcery.com>
18932
18933 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18934 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18935 reg-note.
18936 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18937 * emit-rtl.c (try_split): Same.
18938
18939 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18940 Tom de Vries <tom@codesourcery.com>
18941
18942 * common.opt (fuse-caller-save): New option.
18943
18944 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18945
18946 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18947 elements for big-endian.
18948
18949 2014-04-24 Richard Biener <rguenther@suse.de>
18950
18951 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18952 during TER and instead use the sepops interface for expanding
18953 non-GIMPLE_SINGLE_RHS.
18954
18955 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18956
18957 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18958 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18959
18960 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18961
18962 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18963 assembler 64-bit option.
18964 * configure: Regenerate.
18965
18966 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18967
18968 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18969 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18970 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18971 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18972 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18973
18974 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18975
18976 * config/aarch64/aarch64-builtins.c
18977 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18978 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18979 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18980 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18981 builtins.
18982 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18983 (Vrevsuff): New mode attribute.
18984
18985 2014-04-24 Terry Guo <terry.guo@arm.com>
18986
18987 * config/arm/arm.h (machine_function): Define variable
18988 after_arm_reorg here.
18989 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18990 (arm_split_constant): Update the way to access variable
18991 after_arm_reorg.
18992 (arm_reorg): Ditto.
18993 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18994
18995 2014-04-23 Tom de Vries <tom@codesourcery.com>
18996
18997 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18998
18999 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19000
19001 * is-a.h: Update comments to reflect the following changes to the
19002 "pointerness" of the API, making the template parameter match the
19003 return type, allowing use of is-a.h with typedefs of pointers.
19004 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19005 that the return type matches the parameter to the is_a_helper.
19006 (as_a): Likewise.
19007 (dyn_cast): Likewise.
19008
19009 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19010 pointer from the is-a.h API.
19011
19012 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19013 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19014 is-a.h API.
19015 (is_a_helper <varpool_node>::test): Likewise, convert to...
19016 (is_a_helper <varpool_node *>::test): ...this.
19017
19018 (varpool_first_variable): Update for removal of implicit pointer
19019 from the is-a.h API.
19020 (varpool_next_variable): Likewise.
19021 (varpool_first_static_initializer): Likewise.
19022 (varpool_next_static_initializer): Likewise.
19023 (varpool_first_defined_variable): Likewise.
19024 (varpool_next_defined_variable): Likewise.
19025 (cgraph_first_defined_function): Likewise.
19026 (cgraph_next_defined_function): Likewise.
19027 (cgraph_first_function): Likewise.
19028 (cgraph_next_function): Likewise.
19029 (cgraph_first_function_with_gimple_body): Likewise.
19030 (cgraph_next_function_with_gimple_body): Likewise.
19031 (cgraph_alias_target): Likewise.
19032 (varpool_alias_target): Likewise.
19033 (cgraph_function_or_thunk_node): Likewise.
19034 (varpool_variable_node): Likewise.
19035 (symtab_real_symbol_p): Likewise.
19036 * cgraphunit.c (referred_to_p): Likewise.
19037 (analyze_functions): Likewise.
19038 (handle_alias_pairs): Likewise.
19039 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19040 * gimple-ssa.h (gimple_vuse_op): Likewise.
19041 (gimple_vdef_op): Likewise.
19042 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19043 * gimple.c (gimple_build_asm_1): Likewise.
19044 (gimple_build_try): Likewise.
19045 (gimple_build_resx): Likewise.
19046 (gimple_build_eh_dispatch): Likewise.
19047 (gimple_build_omp_for): Likewise.
19048 (gimple_omp_for_set_clauses): Likewise.
19049
19050 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19051 (is_a_helper <gimple_statement_asm *>::test): ...this.
19052 (is_a_helper <gimple_statement_bind>::test): Convert to...
19053 (is_a_helper <gimple_statement_bind *>::test): ...this.
19054 (is_a_helper <gimple_statement_call>::test): Convert to...
19055 (is_a_helper <gimple_statement_call *>::test): ...this.
19056 (is_a_helper <gimple_statement_catch>::test): Convert to...
19057 (is_a_helper <gimple_statement_catch *>::test): ...this.
19058 (is_a_helper <gimple_statement_resx>::test): Convert to...
19059 (is_a_helper <gimple_statement_resx *>::test): ...this.
19060 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19061 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19062 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19063 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19064 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19065 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19066 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19067 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19068 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19069 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19070 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19071 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19072 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19073 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19074 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19075 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19076 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19077 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19078 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19079 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19080 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19081 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19082 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19083 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19084 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19085 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19086 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19087 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19088 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19089 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19090 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19091 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19092 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19093 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19094 (is_a_helper <gimple_statement_phi>::test): Convert to...
19095 (is_a_helper <gimple_statement_phi *>::test): ...this.
19096 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19097 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19098 (is_a_helper <gimple_statement_try>::test): Convert to...
19099 (is_a_helper <gimple_statement_try *>::test): ...this.
19100 (is_a_helper <gimple_statement_wce>::test): Convert to...
19101 (is_a_helper <gimple_statement_wce *>::test): ...this.
19102 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19103 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19104 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19105 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19106 (is_a_helper <const gimple_statement_call>::test): Convert to...
19107 (is_a_helper <const gimple_statement_call *>::test): ...this.
19108 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19109 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19110 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19111 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19112 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19113 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19114 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19115 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19116 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19117 Convert to...
19118 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19119 ...this.
19120 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19121 Convert to...
19122 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19123 ...this.
19124 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19125 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19126 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19127 to...
19128 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19129 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19130 to...
19131 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19132 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19133 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19134 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19135 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19136 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19137 to...
19138 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19139 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19140 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19141 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19142 to...
19143 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19144 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19145 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19146 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19147 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19148 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19149 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19150 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19151 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19152 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19153 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19154 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19155 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19156 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19157 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19158 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19159 to...
19160 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19161 ...this.
19162 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19163 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19164
19165 (gimple_use_ops): Update for removal of implicit pointer from the
19166 is-a.h API.
19167 (gimple_set_use_ops): Likewise.
19168 (gimple_vuse): Likewise.
19169 (gimple_vdef): Likewise.
19170 (gimple_vuse_ptr): Likewise.
19171 (gimple_vdef_ptr): Likewise.
19172 (gimple_set_vuse): Likewise.
19173 (gimple_set_vdef): Likewise.
19174 (gimple_omp_return_set_lhs): Likewise.
19175 (gimple_omp_return_lhs): Likewise.
19176 (gimple_omp_return_lhs_ptr): Likewise.
19177 (gimple_call_fntype): Likewise.
19178 (gimple_call_set_fntype): Likewise.
19179 (gimple_call_set_internal_fn): Likewise.
19180 (gimple_call_use_set): Likewise.
19181 (gimple_call_clobber_set): Likewise.
19182 (gimple_bind_vars): Likewise.
19183 (gimple_bind_set_vars): Likewise.
19184 (gimple_bind_body_ptr): Likewise.
19185 (gimple_bind_set_body): Likewise.
19186 (gimple_bind_add_stmt): Likewise.
19187 (gimple_bind_block): Likewise.
19188 (gimple_bind_set_block): Likewise.
19189 (gimple_asm_ninputs): Likewise.
19190 (gimple_asm_noutputs): Likewise.
19191 (gimple_asm_nclobbers): Likewise.
19192 (gimple_asm_nlabels): Likewise.
19193 (gimple_asm_input_op): Likewise.
19194 (gimple_asm_input_op_ptr): Likewise.
19195 (gimple_asm_output_op): Likewise.
19196 (gimple_asm_output_op_ptr): Likewise.
19197 (gimple_asm_set_output_op): Likewise.
19198 (gimple_asm_clobber_op): Likewise.
19199 (gimple_asm_set_clobber_op): Likewise.
19200 (gimple_asm_label_op): Likewise.
19201 (gimple_asm_set_label_op): Likewise.
19202 (gimple_asm_string): Likewise.
19203 (gimple_catch_types): Likewise.
19204 (gimple_catch_types_ptr): Likewise.
19205 (gimple_catch_handler_ptr): Likewise.
19206 (gimple_catch_set_types): Likewise.
19207 (gimple_catch_set_handler): Likewise.
19208 (gimple_eh_filter_types): Likewise.
19209 (gimple_eh_filter_types_ptr): Likewise.
19210 (gimple_eh_filter_failure_ptr): Likewise.
19211 (gimple_eh_filter_set_types): Likewise.
19212 (gimple_eh_filter_set_failure): Likewise.
19213 (gimple_eh_must_not_throw_fndecl): Likewise.
19214 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19215 (gimple_eh_else_n_body_ptr): Likewise.
19216 (gimple_eh_else_e_body_ptr): Likewise.
19217 (gimple_eh_else_set_n_body): Likewise.
19218 (gimple_eh_else_set_e_body): Likewise.
19219 (gimple_try_eval_ptr): Likewise.
19220 (gimple_try_cleanup_ptr): Likewise.
19221 (gimple_try_set_eval): Likewise.
19222 (gimple_try_set_cleanup): Likewise.
19223 (gimple_wce_cleanup_ptr): Likewise.
19224 (gimple_wce_set_cleanup): Likewise.
19225 (gimple_phi_capacity): Likewise.
19226 (gimple_phi_num_args): Likewise.
19227 (gimple_phi_result): Likewise.
19228 (gimple_phi_result_ptr): Likewise.
19229 (gimple_phi_set_result): Likewise.
19230 (gimple_phi_arg): Likewise.
19231 (gimple_phi_set_arg): Likewise.
19232 (gimple_resx_region): Likewise.
19233 (gimple_resx_set_region): Likewise.
19234 (gimple_eh_dispatch_region): Likewise.
19235 (gimple_eh_dispatch_set_region): Likewise.
19236 (gimple_omp_critical_name): Likewise.
19237 (gimple_omp_critical_name_ptr): Likewise.
19238 (gimple_omp_critical_set_name): Likewise.
19239 (gimple_omp_for_clauses): Likewise.
19240 (gimple_omp_for_clauses_ptr): Likewise.
19241 (gimple_omp_for_set_clauses): Likewise.
19242 (gimple_omp_for_collapse): Likewise.
19243 (gimple_omp_for_index): Likewise.
19244 (gimple_omp_for_index_ptr): Likewise.
19245 (gimple_omp_for_set_index): Likewise.
19246 (gimple_omp_for_initial): Likewise.
19247 (gimple_omp_for_initial_ptr): Likewise.
19248 (gimple_omp_for_set_initial): Likewise.
19249 (gimple_omp_for_final): Likewise.
19250 (gimple_omp_for_final_ptr): Likewise.
19251 (gimple_omp_for_set_final): Likewise.
19252 (gimple_omp_for_incr): Likewise.
19253 (gimple_omp_for_incr_ptr): Likewise.
19254 (gimple_omp_for_set_incr): Likewise.
19255 (gimple_omp_for_pre_body_ptr): Likewise.
19256 (gimple_omp_for_set_pre_body): Likewise.
19257 (gimple_omp_parallel_clauses): Likewise.
19258 (gimple_omp_parallel_clauses_ptr): Likewise.
19259 (gimple_omp_parallel_set_clauses): Likewise.
19260 (gimple_omp_parallel_child_fn): Likewise.
19261 (gimple_omp_parallel_child_fn_ptr): Likewise.
19262 (gimple_omp_parallel_set_child_fn): Likewise.
19263 (gimple_omp_parallel_data_arg): Likewise.
19264 (gimple_omp_parallel_data_arg_ptr): Likewise.
19265 (gimple_omp_parallel_set_data_arg): Likewise.
19266 (gimple_omp_task_clauses): Likewise.
19267 (gimple_omp_task_clauses_ptr): Likewise.
19268 (gimple_omp_task_set_clauses): Likewise.
19269 (gimple_omp_task_child_fn): Likewise.
19270 (gimple_omp_task_child_fn_ptr): Likewise.
19271 (gimple_omp_task_set_child_fn): Likewise.
19272 (gimple_omp_task_data_arg): Likewise.
19273 (gimple_omp_task_data_arg_ptr): Likewise.
19274 (gimple_omp_task_set_data_arg): Likewise.
19275 (gimple_omp_taskreg_clauses): Likewise.
19276 (gimple_omp_taskreg_clauses_ptr): Likewise.
19277 (gimple_omp_taskreg_set_clauses): Likewise.
19278 (gimple_omp_taskreg_child_fn): Likewise.
19279 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19280 (gimple_omp_taskreg_set_child_fn): Likewise.
19281 (gimple_omp_taskreg_data_arg): Likewise.
19282 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19283 (gimple_omp_taskreg_set_data_arg): Likewise.
19284 (gimple_omp_task_copy_fn): Likewise.
19285 (gimple_omp_task_copy_fn_ptr): Likewise.
19286 (gimple_omp_task_set_copy_fn): Likewise.
19287 (gimple_omp_task_arg_size): Likewise.
19288 (gimple_omp_task_arg_size_ptr): Likewise.
19289 (gimple_omp_task_set_arg_size): Likewise.
19290 (gimple_omp_task_arg_align): Likewise.
19291 (gimple_omp_task_arg_align_ptr): Likewise.
19292 (gimple_omp_task_set_arg_align): Likewise.
19293 (gimple_omp_single_clauses): Likewise.
19294 (gimple_omp_single_clauses_ptr): Likewise.
19295 (gimple_omp_single_set_clauses): Likewise.
19296 (gimple_omp_target_clauses): Likewise.
19297 (gimple_omp_target_clauses_ptr): Likewise.
19298 (gimple_omp_target_set_clauses): Likewise.
19299 (gimple_omp_target_child_fn): Likewise.
19300 (gimple_omp_target_child_fn_ptr): Likewise.
19301 (gimple_omp_target_set_child_fn): Likewise.
19302 (gimple_omp_target_data_arg): Likewise.
19303 (gimple_omp_target_data_arg_ptr): Likewise.
19304 (gimple_omp_target_set_data_arg): Likewise.
19305 (gimple_omp_teams_clauses): Likewise.
19306 (gimple_omp_teams_clauses_ptr): Likewise.
19307 (gimple_omp_teams_set_clauses): Likewise.
19308 (gimple_omp_sections_clauses): Likewise.
19309 (gimple_omp_sections_clauses_ptr): Likewise.
19310 (gimple_omp_sections_set_clauses): Likewise.
19311 (gimple_omp_sections_control): Likewise.
19312 (gimple_omp_sections_control_ptr): Likewise.
19313 (gimple_omp_sections_set_control): Likewise.
19314 (gimple_omp_for_set_cond): Likewise.
19315 (gimple_omp_for_cond): Likewise.
19316 (gimple_omp_atomic_store_set_val): Likewise.
19317 (gimple_omp_atomic_store_val): Likewise.
19318 (gimple_omp_atomic_store_val_ptr): Likewise.
19319 (gimple_omp_atomic_load_set_lhs): Likewise.
19320 (gimple_omp_atomic_load_lhs): Likewise.
19321 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19322 (gimple_omp_atomic_load_set_rhs): Likewise.
19323 (gimple_omp_atomic_load_rhs): Likewise.
19324 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19325 (gimple_omp_continue_control_def): Likewise.
19326 (gimple_omp_continue_control_def_ptr): Likewise.
19327 (gimple_omp_continue_set_control_def): Likewise.
19328 (gimple_omp_continue_control_use): Likewise.
19329 (gimple_omp_continue_control_use_ptr): Likewise.
19330 (gimple_omp_continue_set_control_use): Likewise.
19331 (gimple_transaction_body_ptr): Likewise.
19332 (gimple_transaction_label): Likewise.
19333 (gimple_transaction_label_ptr): Likewise.
19334 (gimple_transaction_set_body): Likewise.
19335 (gimple_transaction_set_label): Likewise.
19336
19337 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19338 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19339 * ipa-ref.c (ipa_record_reference): Likewise.
19340 * ipa-reference.c (analyze_function): Likewise.
19341 (ipa_reference_write_optimization_summary): Likewise.
19342 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19343 (address_taken_from_non_vtable_p): Likewise.
19344 (comdat_can_be_unshared_p_1): Likewise.
19345 * lto-cgraph.c (lto_output_ref): Likewise.
19346 (add_references): Likewise.
19347 (compute_ltrans_boundary): Likewise.
19348 (output_symtab): Likewise.
19349 (input_ref): Likewise.
19350 (input_cgraph_1): Likewise.
19351 (output_cgraph_opt_summary): Likewise.
19352 * lto-streamer-out.c (lto_output): Likewise.
19353 (output_symbol_p): Likewise.
19354 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19355 (lsei_start_function_in_partition): Likewise.
19356 (lsei_next_variable_in_partition): Likewise.
19357 (lsei_start_variable_in_partition): Likewise.
19358 * symtab.c (insert_to_assembler_name_hash): Likewise.
19359 (unlink_from_assembler_name_hash): Likewise.
19360 (symtab_unregister_node): Likewise.
19361 (symtab_remove_node): Likewise.
19362 (dump_symtab_node): Likewise.
19363 (verify_symtab_base): Likewise.
19364 (verify_symtab_node): Likewise.
19365 (symtab_make_decl_local): Likewise.
19366 (symtab_alias_ultimate_target): Likewise.
19367 (symtab_resolve_alias): Likewise.
19368 (symtab_get_symbol_partitioning_class): Likewise.
19369 * tree-phinodes.c (allocate_phi_node): Likewise.
19370 (reserve_phi_args_for_new_edge): Likewise.
19371 (remove_phi_args): Likewise.
19372 * varpool.c (varpool_node_for_asm): Likewise.
19373 (varpool_remove_unreferenced_decls): Likewise.
19374
19375 2014-04-23 Jeff Law <law@redhat.com>
19376
19377 PR tree-optimization/60902
19378 * tree-ssa-threadedge.c
19379 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19380 invalidate outputs from statements that do not produce useful
19381 outputs for threading.
19382
19383 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19384
19385 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19386 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19387 machine descriptions for Stack Smashing Protector.
19388
19389 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19390
19391 * aarch64.md (<optab>_rol<mode>3): New pattern.
19392 (<optab>_rolsi3_uxtw): Likewise.
19393 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19394
19395 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19396
19397 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19398 (arm_cortex_a12_tune): Likewise.
19399
19400 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19401
19402 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19403
19404 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19405
19406 * config/arm/arm.md (arm_rev16si2): New pattern.
19407 (arm_rev16si2_alt): Likewise.
19408 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19409
19410 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19411
19412 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19413 (rev16<mode>2_alt): Likewise.
19414 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19415 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19416 (aarch_rev16_shleft_mask_imm_p): Likewise.
19417 (aarch_rev16_p_1): Likewise.
19418 (aarch_rev16_p): Likewise.
19419 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19420 (aarch_rev16_shright_mask_imm_p): Likewise.
19421 (aarch_rev16_shleft_mask_imm_p): Likewise.
19422
19423 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19424
19425 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19426 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19427 rev cost.
19428 (cortex_a53_extra_costs): Likewise.
19429 (cortex_a57_extra_costs): Likewise.
19430 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19431 (cortexa7_extra_costs): Likewise.
19432 (cortexa8_extra_costs): Likewise.
19433 (cortexa12_extra_costs): Likewise.
19434 (cortexa15_extra_costs): Likewise.
19435 (v7m_extra_costs): Likewise.
19436 (arm_new_rtx_costs): Handle BSWAP.
19437
19438 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19439
19440 * config/arm/arm.c (cortexa8_extra_costs): New table.
19441 (arm_cortex_a8_tune): New tuning struct.
19442 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19443
19444 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19445
19446 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19447
19448 2014-04-23 Richard Biener <rguenther@suse.de>
19449
19450 * Makefile.in (OBJS): Remove loop-unswitch.o.
19451 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19452 * passes.def (pass_rtl_unswitch): Likewise.
19453 * loop-init.c (gate_rtl_unswitch): Likewise.
19454 (rtl_unswitch): Likewise.
19455 (pass_data_rtl_unswitch): Likewise.
19456 (pass_rtl_unswitch): Likewise.
19457 (make_pass_rtl_unswitch): Likewise.
19458 * rtl.h (reversed_condition): Likewise.
19459 (compare_and_jump_seq): Likewise.
19460 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19461 and make static.
19462 * loop-unroll.c (compare_and_jump_seq): Likewise.
19463
19464 2014-04-23 Richard Biener <rguenther@suse.de>
19465
19466 PR tree-optimization/60903
19467 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19468 commented code block.
19469 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19470 loop flags to newly created BBs and edges.
19471
19472 2014-04-23 Nick Clifton <nickc@redhat.com>
19473
19474 * config/msp430/msp430.c (msp430_handle_option): Move function
19475 to msp430-common.c
19476 (msp430_option_override): Simplify mcu and mcpu option handling.
19477 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19478 support for -mhwmult command line option.
19479 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19480 -mhwmult command line option.
19481 (msp430_hwmult_enabled): Delete.
19482 (msp43o_output_labelref): Add support for -mhwmult command line option.
19483 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19484 (umulsidi3): Likewise.
19485 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19486 (mcpu, mlarge, msmall): Likewise.
19487 (mhwmult): New option.
19488 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19489 prototype.
19490 (msp430_is_f5_mcu): Remove prototype.
19491 (msp430_use_f5_series_hwmult): Add prototype.
19492 * config/msp430/msp430-opts.h: New file.
19493 * common/config/msp430: New directory.
19494 * common/config/msp430/msp430-common.c: New file.
19495 * config.gcc (msp430): Remove target_has_targetm_common.
19496 * doc/invoke.texi: Document -mhwmult command line option.
19497
19498 2014-04-23 Nick Clifton <nickc@redhat.com>
19499
19500 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19501 default-manifest.o if it can be found in the search path.
19502 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19503
19504 2014-04-23 Terry Guo <terry.guo@arm.com>
19505
19506 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19507
19508 2014-04-23 Richard Biener <rguenther@suse.de>
19509
19510 PR middle-end/60895
19511 * tree-inline.c (declare_return_variable): Use mark_addressable.
19512
19513 2014-04-23 Richard Biener <rguenther@suse.de>
19514
19515 PR middle-end/60891
19516 * loop-init.c (loop_optimizer_init): Make sure to apply
19517 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19518
19519 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19520
19521 PR sanitizer/60275
19522 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19523 New options.
19524 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19525 if flag_sanitize_undefined_trap_on_error.
19526 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19527 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19528 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19529 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19530 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19531 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19532 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19533 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19534 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19535 * ubsan.c (ubsan_instrument_unreachable): Return
19536 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19537 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19538 if flag_sanitize_undefined_trap_on_error and
19539 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19540 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19541 instrument_bool_enum_load): Emit __builtin_trap () if
19542 flag_sanitize_undefined_trap_on_error and
19543 __builtin_handle_*_abort () if !flag_sanitize_recover.
19544 * doc/invoke.texi (-fsanitize-recover,
19545 -fsanitize-undefined-trap-on-error): Document.
19546
19547 2014-04-22 Christian Bruel <christian.bruel@st.com>
19548
19549 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19550 Force immediates to SImode.
19551
19552 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19553
19554 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19555 (lroundsfsi2): New.
19556 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19557 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19558 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19559 (nios2_fpu_insn): Add entry for round.
19560 (N2FPU_NO_ERRNO_P): Define.
19561 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19562 flag_errno_math.
19563 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19564
19565 2014-04-22 Richard Henderson <rth@redhat.com>
19566
19567 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19568 (add<GPI>3_compare0): Remove leading * from name.
19569 (add<GPI>3_carryin): Likewise.
19570 (sub<GPI>3_compare0): Likewise.
19571 (sub<GPI>3_carryin): Likewise.
19572 (<su_optab>mulditi3): New expander.
19573 (multi3): New expander.
19574 (madd<GPI>): Remove leading * from name.
19575
19576 2014-04-22 Martin Jambor <mjambor@suse.cz>
19577
19578 * cgraphclones.c (cgraph_function_versioning): Copy
19579 ipa_transforms_to_apply instead of asserting it is empty.
19580
19581 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19582
19583 PR target/60868
19584 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19585 on count_exp to get mode.
19586
19587 2014-04-22 Andrew Pinski <apinski@cavium.com>
19588
19589 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19590 Handle TLS for ILP32.
19591 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19592 (tlsie_small_<mode>): this and handle PTR.
19593 (tlsie_small_sidi): New pattern.
19594 (tlsle_small): Change to an expand to handle ILP32.
19595 (tlsle_small_<mode>): New pattern.
19596 (tlsdesc_small): Rename to ...
19597 (tlsdesc_small_<mode>): this and handle PTR.
19598
19599 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19600
19601 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19602
19603 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19604
19605 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19606 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19607 (aarch64_types_signed_poly_qualifiers): Likewise.
19608 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19609 (aarch64_types_poly_signed_qualifiers): Likewise.
19610 (TYPES_REINTERP_SS): Type macro added.
19611 (TYPES_REINTERP_SU): Likewise.
19612 (TYPES_REINTERP_SP): Likewise.
19613 (TYPES_REINTERP_US): Likewise.
19614 (TYPES_REINTERP_PS): Likewise.
19615 (aarch64_fold_builtin): New expression folding added.
19616 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19617 Declarations removed.
19618 (REINTERP_SS): Declarations added.
19619 (REINTERP_US): Likewise.
19620 (REINTERP_PS): Likewise.
19621 (REINTERP_SU): Likewise.
19622 (REINTERP_SP): Likewise.
19623 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19624 (vreinterpretq_p8_f64): Likewise.
19625 (vreinterpret_p16_f64): Likewise.
19626 (vreinterpretq_p16_f64): Likewise.
19627 (vreinterpret_f32_f64): Likewise.
19628 (vreinterpretq_f32_f64): Likewise.
19629 (vreinterpret_f64_f32): Likewise.
19630 (vreinterpret_f64_p8): Likewise.
19631 (vreinterpret_f64_p16): Likewise.
19632 (vreinterpret_f64_s8): Likewise.
19633 (vreinterpret_f64_s16): Likewise.
19634 (vreinterpret_f64_s32): Likewise.
19635 (vreinterpret_f64_s64): Likewise.
19636 (vreinterpret_f64_u8): Likewise.
19637 (vreinterpret_f64_u16): Likewise.
19638 (vreinterpret_f64_u32): Likewise.
19639 (vreinterpret_f64_u64): Likewise.
19640 (vreinterpretq_f64_f32): Likewise.
19641 (vreinterpretq_f64_p8): Likewise.
19642 (vreinterpretq_f64_p16): Likewise.
19643 (vreinterpretq_f64_s8): Likewise.
19644 (vreinterpretq_f64_s16): Likewise.
19645 (vreinterpretq_f64_s32): Likewise.
19646 (vreinterpretq_f64_s64): Likewise.
19647 (vreinterpretq_f64_u8): Likewise.
19648 (vreinterpretq_f64_u16): Likewise.
19649 (vreinterpretq_f64_u32): Likewise.
19650 (vreinterpretq_f64_u64): Likewise.
19651 (vreinterpret_s64_f64): Likewise.
19652 (vreinterpretq_s64_f64): Likewise.
19653 (vreinterpret_u64_f64): Likewise.
19654 (vreinterpretq_u64_f64): Likewise.
19655 (vreinterpret_s8_f64): Likewise.
19656 (vreinterpretq_s8_f64): Likewise.
19657 (vreinterpret_s16_f64): Likewise.
19658 (vreinterpretq_s16_f64): Likewise.
19659 (vreinterpret_s32_f64): Likewise.
19660 (vreinterpretq_s32_f64): Likewise.
19661 (vreinterpret_u8_f64): Likewise.
19662 (vreinterpretq_u8_f64): Likewise.
19663 (vreinterpret_u16_f64): Likewise.
19664 (vreinterpretq_u16_f64): Likewise.
19665 (vreinterpret_u32_f64): Likewise.
19666 (vreinterpretq_u32_f64): Likewise.
19667
19668 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19669
19670 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19671 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19672 (vreinterpret_p8_s8): Likewise.
19673 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19674 (vreinterpret_p8_s16): Likewise.
19675 (vreinterpret_p8_s32): Likewise.
19676 (vreinterpret_p8_s64): Likewise.
19677 (vreinterpret_p8_f32): Likewise.
19678 (vreinterpret_p8_u8): Likewise.
19679 (vreinterpret_p8_u16): Likewise.
19680 (vreinterpret_p8_u32): Likewise.
19681 (vreinterpret_p8_u64): Likewise.
19682 (vreinterpret_p8_p16): Likewise.
19683 (vreinterpretq_p8_s8): Likewise.
19684 (vreinterpretq_p8_s16): Likewise.
19685 (vreinterpretq_p8_s32): Likewise.
19686 (vreinterpretq_p8_s64): Likewise.
19687 (vreinterpretq_p8_f32): Likewise.
19688 (vreinterpretq_p8_u8): Likewise.
19689 (vreinterpretq_p8_u16): Likewise.
19690 (vreinterpretq_p8_u32): Likewise.
19691 (vreinterpretq_p8_u64): Likewise.
19692 (vreinterpretq_p8_p16): Likewise.
19693 (vreinterpret_p16_s8): Likewise.
19694 (vreinterpret_p16_s16): Likewise.
19695 (vreinterpret_p16_s32): Likewise.
19696 (vreinterpret_p16_s64): Likewise.
19697 (vreinterpret_p16_f32): Likewise.
19698 (vreinterpret_p16_u8): Likewise.
19699 (vreinterpret_p16_u16): Likewise.
19700 (vreinterpret_p16_u32): Likewise.
19701 (vreinterpret_p16_u64): Likewise.
19702 (vreinterpret_p16_p8): Likewise.
19703 (vreinterpretq_p16_s8): Likewise.
19704 (vreinterpretq_p16_s16): Likewise.
19705 (vreinterpretq_p16_s32): Likewise.
19706 (vreinterpretq_p16_s64): Likewise.
19707 (vreinterpretq_p16_f32): Likewise.
19708 (vreinterpretq_p16_u8): Likewise.
19709 (vreinterpretq_p16_u16): Likewise.
19710 (vreinterpretq_p16_u32): Likewise.
19711 (vreinterpretq_p16_u64): Likewise.
19712 (vreinterpretq_p16_p8): Likewise.
19713 (vreinterpret_f32_s8): Likewise.
19714 (vreinterpret_f32_s16): Likewise.
19715 (vreinterpret_f32_s32): Likewise.
19716 (vreinterpret_f32_s64): Likewise.
19717 (vreinterpret_f32_u8): Likewise.
19718 (vreinterpret_f32_u16): Likewise.
19719 (vreinterpret_f32_u32): Likewise.
19720 (vreinterpret_f32_u64): Likewise.
19721 (vreinterpret_f32_p8): Likewise.
19722 (vreinterpret_f32_p16): Likewise.
19723 (vreinterpretq_f32_s8): Likewise.
19724 (vreinterpretq_f32_s16): Likewise.
19725 (vreinterpretq_f32_s32): Likewise.
19726 (vreinterpretq_f32_s64): Likewise.
19727 (vreinterpretq_f32_u8): Likewise.
19728 (vreinterpretq_f32_u16): Likewise.
19729 (vreinterpretq_f32_u32): Likewise.
19730 (vreinterpretq_f32_u64): Likewise.
19731 (vreinterpretq_f32_p8): Likewise.
19732 (vreinterpretq_f32_p16): Likewise.
19733 (vreinterpret_s64_s8): Likewise.
19734 (vreinterpret_s64_s16): Likewise.
19735 (vreinterpret_s64_s32): Likewise.
19736 (vreinterpret_s64_f32): Likewise.
19737 (vreinterpret_s64_u8): Likewise.
19738 (vreinterpret_s64_u16): Likewise.
19739 (vreinterpret_s64_u32): Likewise.
19740 (vreinterpret_s64_u64): Likewise.
19741 (vreinterpret_s64_p8): Likewise.
19742 (vreinterpret_s64_p16): Likewise.
19743 (vreinterpretq_s64_s8): Likewise.
19744 (vreinterpretq_s64_s16): Likewise.
19745 (vreinterpretq_s64_s32): Likewise.
19746 (vreinterpretq_s64_f32): Likewise.
19747 (vreinterpretq_s64_u8): Likewise.
19748 (vreinterpretq_s64_u16): Likewise.
19749 (vreinterpretq_s64_u32): Likewise.
19750 (vreinterpretq_s64_u64): Likewise.
19751 (vreinterpretq_s64_p8): Likewise.
19752 (vreinterpretq_s64_p16): Likewise.
19753 (vreinterpret_u64_s8): Likewise.
19754 (vreinterpret_u64_s16): Likewise.
19755 (vreinterpret_u64_s32): Likewise.
19756 (vreinterpret_u64_s64): Likewise.
19757 (vreinterpret_u64_f32): Likewise.
19758 (vreinterpret_u64_u8): Likewise.
19759 (vreinterpret_u64_u16): Likewise.
19760 (vreinterpret_u64_u32): Likewise.
19761 (vreinterpret_u64_p8): Likewise.
19762 (vreinterpret_u64_p16): Likewise.
19763 (vreinterpretq_u64_s8): Likewise.
19764 (vreinterpretq_u64_s16): Likewise.
19765 (vreinterpretq_u64_s32): Likewise.
19766 (vreinterpretq_u64_s64): Likewise.
19767 (vreinterpretq_u64_f32): Likewise.
19768 (vreinterpretq_u64_u8): Likewise.
19769 (vreinterpretq_u64_u16): Likewise.
19770 (vreinterpretq_u64_u32): Likewise.
19771 (vreinterpretq_u64_p8): Likewise.
19772 (vreinterpretq_u64_p16): Likewise.
19773 (vreinterpret_s8_s16): Likewise.
19774 (vreinterpret_s8_s32): Likewise.
19775 (vreinterpret_s8_s64): Likewise.
19776 (vreinterpret_s8_f32): Likewise.
19777 (vreinterpret_s8_u8): Likewise.
19778 (vreinterpret_s8_u16): Likewise.
19779 (vreinterpret_s8_u32): Likewise.
19780 (vreinterpret_s8_u64): Likewise.
19781 (vreinterpret_s8_p8): Likewise.
19782 (vreinterpret_s8_p16): Likewise.
19783 (vreinterpretq_s8_s16): Likewise.
19784 (vreinterpretq_s8_s32): Likewise.
19785 (vreinterpretq_s8_s64): Likewise.
19786 (vreinterpretq_s8_f32): Likewise.
19787 (vreinterpretq_s8_u8): Likewise.
19788 (vreinterpretq_s8_u16): Likewise.
19789 (vreinterpretq_s8_u32): Likewise.
19790 (vreinterpretq_s8_u64): Likewise.
19791 (vreinterpretq_s8_p8): Likewise.
19792 (vreinterpretq_s8_p16): Likewise.
19793 (vreinterpret_s16_s8): Likewise.
19794 (vreinterpret_s16_s32): Likewise.
19795 (vreinterpret_s16_s64): Likewise.
19796 (vreinterpret_s16_f32): Likewise.
19797 (vreinterpret_s16_u8): Likewise.
19798 (vreinterpret_s16_u16): Likewise.
19799 (vreinterpret_s16_u32): Likewise.
19800 (vreinterpret_s16_u64): Likewise.
19801 (vreinterpret_s16_p8): Likewise.
19802 (vreinterpret_s16_p16): Likewise.
19803 (vreinterpretq_s16_s8): Likewise.
19804 (vreinterpretq_s16_s32): Likewise.
19805 (vreinterpretq_s16_s64): Likewise.
19806 (vreinterpretq_s16_f32): Likewise.
19807 (vreinterpretq_s16_u8): Likewise.
19808 (vreinterpretq_s16_u16): Likewise.
19809 (vreinterpretq_s16_u32): Likewise.
19810 (vreinterpretq_s16_u64): Likewise.
19811 (vreinterpretq_s16_p8): Likewise.
19812 (vreinterpretq_s16_p16): Likewise.
19813 (vreinterpret_s32_s8): Likewise.
19814 (vreinterpret_s32_s16): Likewise.
19815 (vreinterpret_s32_s64): Likewise.
19816 (vreinterpret_s32_f32): Likewise.
19817 (vreinterpret_s32_u8): Likewise.
19818 (vreinterpret_s32_u16): Likewise.
19819 (vreinterpret_s32_u32): Likewise.
19820 (vreinterpret_s32_u64): Likewise.
19821 (vreinterpret_s32_p8): Likewise.
19822 (vreinterpret_s32_p16): Likewise.
19823 (vreinterpretq_s32_s8): Likewise.
19824 (vreinterpretq_s32_s16): Likewise.
19825 (vreinterpretq_s32_s64): Likewise.
19826 (vreinterpretq_s32_f32): Likewise.
19827 (vreinterpretq_s32_u8): Likewise.
19828 (vreinterpretq_s32_u16): Likewise.
19829 (vreinterpretq_s32_u32): Likewise.
19830 (vreinterpretq_s32_u64): Likewise.
19831 (vreinterpretq_s32_p8): Likewise.
19832 (vreinterpretq_s32_p16): Likewise.
19833 (vreinterpret_u8_s8): Likewise.
19834 (vreinterpret_u8_s16): Likewise.
19835 (vreinterpret_u8_s32): Likewise.
19836 (vreinterpret_u8_s64): Likewise.
19837 (vreinterpret_u8_f32): Likewise.
19838 (vreinterpret_u8_u16): Likewise.
19839 (vreinterpret_u8_u32): Likewise.
19840 (vreinterpret_u8_u64): Likewise.
19841 (vreinterpret_u8_p8): Likewise.
19842 (vreinterpret_u8_p16): Likewise.
19843 (vreinterpretq_u8_s8): Likewise.
19844 (vreinterpretq_u8_s16): Likewise.
19845 (vreinterpretq_u8_s32): Likewise.
19846 (vreinterpretq_u8_s64): Likewise.
19847 (vreinterpretq_u8_f32): Likewise.
19848 (vreinterpretq_u8_u16): Likewise.
19849 (vreinterpretq_u8_u32): Likewise.
19850 (vreinterpretq_u8_u64): Likewise.
19851 (vreinterpretq_u8_p8): Likewise.
19852 (vreinterpretq_u8_p16): Likewise.
19853 (vreinterpret_u16_s8): Likewise.
19854 (vreinterpret_u16_s16): Likewise.
19855 (vreinterpret_u16_s32): Likewise.
19856 (vreinterpret_u16_s64): Likewise.
19857 (vreinterpret_u16_f32): Likewise.
19858 (vreinterpret_u16_u8): Likewise.
19859 (vreinterpret_u16_u32): Likewise.
19860 (vreinterpret_u16_u64): Likewise.
19861 (vreinterpret_u16_p8): Likewise.
19862 (vreinterpret_u16_p16): Likewise.
19863 (vreinterpretq_u16_s8): Likewise.
19864 (vreinterpretq_u16_s16): Likewise.
19865 (vreinterpretq_u16_s32): Likewise.
19866 (vreinterpretq_u16_s64): Likewise.
19867 (vreinterpretq_u16_f32): Likewise.
19868 (vreinterpretq_u16_u8): Likewise.
19869 (vreinterpretq_u16_u32): Likewise.
19870 (vreinterpretq_u16_u64): Likewise.
19871 (vreinterpretq_u16_p8): Likewise.
19872 (vreinterpretq_u16_p16): Likewise.
19873 (vreinterpret_u32_s8): Likewise.
19874 (vreinterpret_u32_s16): Likewise.
19875 (vreinterpret_u32_s32): Likewise.
19876 (vreinterpret_u32_s64): Likewise.
19877 (vreinterpret_u32_f32): Likewise.
19878 (vreinterpret_u32_u8): Likewise.
19879 (vreinterpret_u32_u16): Likewise.
19880 (vreinterpret_u32_u64): Likewise.
19881 (vreinterpret_u32_p8): Likewise.
19882 (vreinterpret_u32_p16): Likewise.
19883 (vreinterpretq_u32_s8): Likewise.
19884 (vreinterpretq_u32_s16): Likewise.
19885 (vreinterpretq_u32_s32): Likewise.
19886 (vreinterpretq_u32_s64): Likewise.
19887 (vreinterpretq_u32_f32): Likewise.
19888 (vreinterpretq_u32_u8): Likewise.
19889 (vreinterpretq_u32_u16): Likewise.
19890 (vreinterpretq_u32_u64): Likewise.
19891 (vreinterpretq_u32_p8): Likewise.
19892 (vreinterpretq_u32_p16): Likewise.
19893
19894 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19895
19896 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19897 Pattern extended.
19898 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19899 (sqabs): Likewise.
19900 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19901 (vqnegd_s64): Likewise.
19902 (vqabs_s64): Likewise.
19903 (vqabsd_s64): Likewise.
19904
19905 2014-04-22 Richard Henderson <rth@redhat.com>
19906
19907 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19908 computation to the top of the loop.
19909
19910 2014-04-22 Renlin <renlin.li@arm.com>
19911 Jiong Wang <jiong.wang@arm.com>
19912
19913 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19914 * config/aarch64/aarch64.c (aarch64_layout_frame)
19915 (aarch64_initial_elimination_offset): Likewise.
19916
19917 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19918
19919 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19920 Fix indentation.
19921
19922 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19923
19924 * machmode.h (bitwise_mode_for_mode): Declare.
19925 * stor-layout.h (bitwise_type_for_mode): Likewise.
19926 * stor-layout.c (bitwise_mode_for_mode): New function.
19927 (bitwise_type_for_mode): Likewise.
19928 * builtins.c (fold_builtin_memory_op): Use it instead of
19929 int_mode_for_mode and build_nonstandard_integer_type.
19930
19931 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19932
19933 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19934 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19935 (*-*-solaris2*): Simplify.
19936 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19937 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19938 *-*-solaris2.9* handling.
19939
19940 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19941 as bug.
19942 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19943 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19944 handling, simplify.
19945 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19946 * configure: Regenerate.
19947
19948 * config/i386/sol2-9.h: Remove.
19949
19950 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19951 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19952 Remove Solaris 9 references.
19953
19954 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19955
19956 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19957 (floatuns<GPI:mode><GPF:mode>2): Remove.
19958 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19959 and floatuns conversions.
19960 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19961 and floatuns conversions.
19962 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19963 (w1,w2): New mode attributes for inequal width conversions.
19964
19965 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19966
19967 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19968 the output asm format.
19969
19970 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19971
19972 * config/aarch64/aarch64-simd.md
19973 (aarch64_cm<optab>di): Always split.
19974 (*aarch64_cm<optab>di): New.
19975 (aarch64_cmtstdi): Always split.
19976 (*aarch64_cmtstdi): New.
19977
19978 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19979
19980 PR tree-optimization/60823
19981 * omp-low.c (ipa_simd_modify_function_body): Go through
19982 all SSA_NAMEs and for those refering to vector arguments
19983 which are going to be replaced adjust SSA_NAME_VAR and,
19984 if it is a default definition, change it into a non-default
19985 definition assigned at the beginning of function from new_decl.
19986 (ipa_simd_modify_stmt_ops): Rewritten.
19987 * tree-dfa.c (set_ssa_default_def): When removing default def,
19988 check for NULL loc instead of NULL *loc.
19989
19990 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19991
19992 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19993 restrictions on core registers for DImode values in Thumb2.
19994
19995 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19996
19997 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19998 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19999
20000 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20001
20002 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20003 (*iordi_notzesidi_di): Likewise.
20004 (*iordi_notsesidi_di): Likewise.
20005
20006 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20007
20008 * config/arm/arm-protos.h (tune_params): New struct members.
20009 * config/arm/arm.c: Initialise tune_params per processor.
20010 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20011 for speed, based on new tune_params.
20012
20013 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20014
20015 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20016 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20017 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20018 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20019 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20020 (vrnda_f64): Likewise.
20021 (vrndi_f64): Likewise.
20022 (vrndm_f64): Likewise.
20023 (vrndn_f64): Likewise.
20024 (vrndp_f64): Likewise.
20025 (vrndx_f64): Likewise.
20026
20027 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20028
20029 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20030 GET_MODE_SIZE argument is enum machine_mode.
20031
20032 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20033
20034 PR target/60910
20035 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20036 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20037
20038 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20039
20040 PR middle-end/60281
20041 * asan.c (asan_emit_stack_protection): Force the base to align to
20042 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20043 appropriate bits if STRICT_ALIGNMENT.
20044 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20045 when asan is on.
20046 (expand_used_vars): Leave a space in the stack frame for alignment
20047 if STRICT_ALIGNMENT.
20048
20049 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20050
20051 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20052 than a gimple.
20053 (gimple_store_p): Likewise.
20054 (gimple_assign_load_p): Likewise.
20055 (gimple_assign_cast_p): Likewise.
20056 (gimple_clobber_p): Likewise.
20057
20058 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20059 rather than a gimple.
20060 (gimple_assign_cast_p): Likewise.
20061
20062 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20063
20064 PR target/60735
20065 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20066 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20067
20068 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20069 more debug information for E500 if -mdebug=reg.
20070
20071 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20072
20073 PR target/60909
20074 * config/i386/i386.c (ix86_expand_builtin)
20075 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20076 register for target RTX.
20077 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20078
20079 2014-04-18 Cong Hou <congh@google.com>
20080
20081 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20082 the widen-mult pattern by handling two operands with different sizes,
20083 and operands whose size is smaller than half of the result type.
20084
20085 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20086
20087 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20088 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20089 (do_estimate_edge_time): Compute it.
20090 * ipa-inline.c (want_inline_small_function_p): Bypass
20091 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20092
20093 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20094
20095 * ipa-inline.c (spec_rem): New static variable.
20096 (dump_overall_stats): New function.
20097 (dump_inline_stats): New function.
20098
20099 2014-04-18 Richard Henderson <rth@redhat.com>
20100
20101 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20102 to GET_MODE_SIZE, not a reg_class_t.
20103
20104 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20105
20106 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20107 (vsx_xxmrglw_<mode>): Likewise.
20108
20109 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20110
20111 PR target/60876
20112 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20113 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20114 (rs6000_init_hard_regno_mode_ok): Likewise.
20115
20116 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20117
20118 * ipa-inline.c (inline_small_functions): Account only non-cold
20119 functions.
20120 * doc/invoke.texi (inline-unit-growth): Update documentation.
20121
20122 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20123
20124 * config/rs6000/rs6000.md (addti3, subti3): New.
20125
20126 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20127
20128 PR target/60863
20129 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20130 comment. Check optimize_insn_for_size_p instead of
20131 optimize_insn_for_speed_p.
20132
20133 2014-04-17 Martin Jambor <mjambor@suse.cz>
20134
20135 * gimple-iterator.c (gsi_start_edge): New function.
20136 * gimple-iterator.h (gsi_start_edge): Declare.
20137 * tree-sra.c (single_non_eh_succ): New function.
20138 (disqualify_ops_if_throwing_stmt): Renamed to
20139 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20140 having one non-EH successor BB.
20141 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20142 generate loads into replacements.
20143 (sra_modify_assign): Likewise and and also use the simple path for
20144 such statements.
20145 (sra_modify_function_body): Commit statements on edges.
20146
20147 2014-04-17 Richard Biener <rguenther@suse.de>
20148
20149 PR middle-end/60849
20150 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20151 comparison results and add clarifying comment.
20152
20153 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20154
20155 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20156 (blank_mode): Initialize it.
20157 (emit_mode_size_inline, emit_mode_nunits_inline,
20158 emit_mode_inner_inline): New functions.
20159 (emit_insn_modes_h): Call them and surround their output with
20160 #if GCC_VERSION >= 4001 ... #endif.
20161 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20162 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20163 mode_* arrays if the argument is __builtin_constant_p.
20164 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20165 is enum machine_mode.
20166
20167 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20168
20169 * passes.c (opt_pass::execute): Adjust.
20170 (pass_manager::execute_pass_mode_switching): Likewise.
20171 (early_local_passes::execute): Likewise.
20172 (execute_one_pass): Pass cfun to the pass's execute method.
20173 * tree-pass.h (opt_pass::execute): Add function * argument.
20174 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20175 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20176 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20177 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20178 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20179 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20180 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20181 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20182 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20183 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20184 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20185 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20186 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20187 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20188 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20189 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20190 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20191 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20192 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20193 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20194 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20195 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20196 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20197 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20198 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20199 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20200 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20201 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20202 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20203 Adjust.
20204
20205 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20206
20207 * passes.c (opt_pass::gate): Take function * argument.
20208 (gate_all_early_local_passes): Merge into
20209 (early_local_passes::gate): this.
20210 (gate_all_early_optimizations): Merge into
20211 (all_early_optimizations::gate): this.
20212 (gate_all_optimizations): Mege into
20213 (all_optimizations::gate): this.
20214 (gate_all_optimizations_g): Merge into
20215 (all_optimizations_g::gate): this.
20216 (gate_rest_of_compilation): Mege into
20217 (rest_of_compilation::gate): this.
20218 (gate_postreload): Merge into
20219 (postreload::gate): this.
20220 (dump_one_pass): Pass cfun to the pass's gate method.
20221 (execute_ipa_summary_passes): Likewise.
20222 (execute_one_pass): Likewise.
20223 (ipa_write_summaries_2): Likewise.
20224 (ipa_write_optimization_summaries_1): Likewise.
20225 (ipa_read_summaries_1): Likewise.
20226 (ipa_read_optimization_summaries_1): Likewise.
20227 (execute_ipa_stmt_fixups): Likewise.
20228 * tree-pass.h (opt_pass::gate): Add function * argument.
20229 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20230 combine-stack-adj.c, combine.c, compare-elim.c,
20231 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20232 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20233 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20234 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20235 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20236 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20237 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20238 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20239 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20240 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20241 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20242 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20243 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20244 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20245 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20246 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20247 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20248 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20249 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20250 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20251 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20252 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20253 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20254 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20255 var-tracking.c, vtable-verify.c, web.c: Adjust.
20256
20257 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20258
20259 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20260 * configure: Regenerate.
20261
20262 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20263
20264 * passes.c (dump_one_pass): don't check pass->has_gate.
20265 (execute_ipa_summary_passes): Likewise.
20266 (execute_one_pass): Likewise.
20267 (ipa_write_summaries_2): Likewise.
20268 (ipa_write_optimization_summaries_1): Likewise.
20269 (ipa_read_optimization_summaries_1): Likewise.
20270 (execute_ipa_stmt_fixups): Likewise.
20271 * tree-pass.h (pass_data::has_gate): Remove.
20272 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20273 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20274 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20275 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20276 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20277 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20278 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20279 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20280 gimple-low.c, gimple-ssa-isolate-paths.c,
20281 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20282 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20283 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20284 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20285 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20286 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20287 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20288 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20289 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20290 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20291 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20292 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20293 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20294 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20295 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20296 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20297 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20298 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20299 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20300 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20301 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20302 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20303 Adjust.
20304
20305 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20306
20307 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20308 declaration.
20309 * passes.c (pass_manager::register_dump_files_1): Merge into
20310 (pass_manager::register_dump_files): this, and remove its handling of
20311 properties since the pass always has the properties anyway.
20312 (pass_manager::pass_manager): Adjust.
20313
20314 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20315
20316 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20317 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20318 dealing with properties.
20319 (pass_manager::register_dump_files): Adjust.
20320
20321 2014-03-20 Mark Wielaard <mjw@redhat.com>
20322
20323 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20324 then represent the bound as normal constant value.
20325
20326 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20327
20328 PR target/60847
20329 Forward port from 4.8 branch
20330 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20331
20332 * config/i386/bmiintrin.h (_blsi_u32): New.
20333 (_blsi_u64): Ditto.
20334 (_blsr_u32): Ditto.
20335 (_blsr_u64): Ditto.
20336 (_blsmsk_u32): Ditto.
20337 (_blsmsk_u64): Ditto.
20338 (_tzcnt_u32): Ditto.
20339 (_tzcnt_u64): Ditto.
20340
20341 2014-04-17 Kito Cheng <kito@0xlab.org>
20342
20343 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20344
20345 2014-04-17 Richard Biener <rguenther@suse.de>
20346
20347 PR middle-end/60849
20348 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20349 boolean results for comparisons.
20350
20351 2014-04-17 Richard Biener <rguenther@suse.de>
20352
20353 PR tree-optimization/60836
20354 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20355 initial PHI args to be gimple values.
20356
20357 2014-04-17 Richard Biener <rguenther@suse.de>
20358
20359 PR tree-optimization/60841
20360 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20361 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20362 of stmts to SLP build.
20363 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20364 (vect_analyze_slp): Likewise.
20365 (vect_analyze_slp_instance): Likewise.
20366 (vect_build_slp_tree): Limit overall SLP tree growth.
20367 * tree-vectorizer.h (vect_analyze_data_refs,
20368 vect_analyze_slp): Adjust prototypes.
20369
20370 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20371
20372 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20373 Silvermont.
20374
20375 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20376
20377 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20378 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20379 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20380 for TARGET_SLOW_PSHUFB
20381
20382 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20383
20384 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20385 * config/i386/i386.c (intel_cost): Ditto.
20386
20387 2014-04-17 Joey Ye <joey.ye@arm.com>
20388
20389 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20390
20391 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20392
20393 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20394 with -fuse-profile.
20395
20396 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20397
20398 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20399 (type_all_derivations_known_p): New predicate.
20400 (type_all_ctors_visible_p): New predicate.
20401 (type_possibly_instantiated_p): New predicate.
20402 (get_odr_type): Compute all_derivations_known.
20403 (dump_odr_type): Dump the flag.
20404 (maybe_record_type): Cleanup.
20405 (record_target_from_binfo): Add bases_to_consider array;
20406 record bases for types w/o instances and skip CXX destructor.
20407 (possible_polymorphic_call_targets_1): Add bases_to_consider
20408 and consider_construction parameters; check if type may have instance.
20409 (get_polymorphic_call_info): Set maybe_in_construction to true
20410 when we know nothing.
20411 (record_targets_from_bases): Skip CXX destructors; they are
20412 never called for types in construction.
20413 (possible_polymorphic_call_targets): Do not record target when
20414 type may not have instance.
20415
20416 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20417
20418 PR ipa/60854
20419 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20420 external aliases alive, too.
20421
20422 2014-04-16 Andrew Pinski <apinski@cavium.com>
20423
20424 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20425 definition.
20426
20427 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20428
20429 * final.c (compute_alignments): Do not apply loop alignment to a block
20430 falling through to the exit.
20431
20432 2014-04-16 Catherine Moore <clm@codesourcery.com>
20433
20434 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20435 Adjust constraints for microMIPS store patterns.
20436
20437 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20438
20439 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20440
20441 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20442
20443 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20444 (append_use): Run at -O0.
20445 (append_vdef): Likewise.
20446 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20447 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20448
20449 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20450
20451 PR tree-optimization/60844
20452 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20453 (propagate_op_to_single_use, remove_visited_stmt_chain,
20454 linearize_expr, repropagate_negates, reassociate_bb): Use it
20455 instead of gsi_remove.
20456
20457 2014-04-16 Martin Jambor <mjambor@suse.cz>
20458
20459 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20460 ipa_transforms_to_apply.
20461 (cgraph_function_versioning): Assert that old_node has empty
20462 ipa_transforms_to_apply.
20463 * trans-mem.c (ipa_tm_create_version): Likewise.
20464 * tree-inline.c (tree_function_versioning): Do not duplicate
20465 ipa_transforms_to_apply.
20466
20467 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20468
20469 PR target/60817
20470 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20471 x86_64-*-* cases.
20472 Pass necessary as flags on 64-bit Solaris/x86.
20473 Use lowercase relocs for x86_64-*-*.
20474 * configure: Regenerate.
20475
20476 2014-04-15 Jan Hubicka <jh@suse.cz>
20477
20478 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20479 (maybe_record_node, likely_target_p): Use it.
20480
20481 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20482
20483 PR target/60839
20484 Revert following patch
20485
20486 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20487
20488 PR target/60735
20489 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20490 software floating point or no floating point registers, do not
20491 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20492 in GPRs that occurs after we tested for GPRs that would never be
20493 true.
20494
20495 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20496 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20497 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20498 specifically allow DDmode, since that does not use the SPE SIMD
20499 instructions.
20500
20501 2014-03-21 Mark Wielaard <mjw@redhat.com>
20502
20503 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20504 as unsigned or int depending on type and value used.
20505
20506 2014-04-15 Richard Biener <rguenther@suse.de>
20507
20508 PR rtl-optimization/56965
20509 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20510 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20511 ... here.
20512 * alias.c (true_dependence_1): Do not call
20513 nonoverlapping_component_refs_p.
20514 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20515 nonoverlapping_component_refs_p.
20516 (indirect_refs_may_alias_p): Likewise.
20517
20518 2014-04-15 Teresa Johnson <tejohnson@google.com>
20519
20520 * cfg.c (dump_bb_info): Fix flags check.
20521 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20522
20523 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20524
20525 PR rtl-optimization/60663
20526 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20527 avoid 0 cost.
20528
20529 2014-04-15 Richard Biener <rguenther@suse.de>
20530
20531 * lto-streamer.h (LTO_major_version): Bump to 4.
20532
20533 2014-04-15 Richard Biener <rguenther@suse.de>
20534
20535 * common.opt (lto_partition_model): New enum.
20536 (flto-partition=): Merge separate options with a single with argument,
20537 add -flto-partition=one support.
20538 * flag-types.h (enum lto_partition_model): Declare.
20539 * opts.c (finish_options): Remove duplicate -flto-partition=
20540 option check.
20541 * lto-wrapper.c (run_gcc): Adjust.
20542
20543 2014-04-15 Richard Biener <rguenther@suse.de>
20544
20545 * alias.c (ncr_compar): New function.
20546 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20547
20548 2014-04-15 Richard Biener <rguenther@suse.de>
20549
20550 * alias.c (record_component_aliases): Do not walk BINFOs.
20551
20552 2014-04-15 Richard Biener <rguenther@suse.de>
20553
20554 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20555 Add struct function argument and adjust.
20556 (find_func_aliases_for_call): Likewise.
20557 (find_func_aliases): Likewise.
20558 (find_func_clobbers): Likewise.
20559 (intra_create_variable_infos): Likewise.
20560 (compute_points_to_sets): Likewise.
20561 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20562
20563 2014-04-15 Richard Biener <rguenther@suse.de>
20564
20565 * tree.c (iterative_hash_expr): Use enum tree_code_class
20566 to store TREE_CODE_CLASS.
20567 (tree_block): Likewise.
20568 (tree_set_block): Likewise.
20569 * tree.h (fold_build_pointer_plus_loc): Use
20570 convert_to_ptrofftype_loc.
20571
20572 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20573
20574 PR plugins/59335
20575 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20576 added in 4.9.
20577
20578 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20579
20580 * cfgloop.h (struct loop): Move force_vectorize down.
20581 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20582 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20583 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20584 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20585 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20586 * tree-core.h (enum annot_expr_kind): Add new kind values.
20587 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20588 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20589 kinds.
20590 * tree.def (ANNOTATE_EXPR): Tweak comment.
20591
20592 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20593
20594 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20595 cxa_pure_virtual).
20596
20597 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20598
20599 * tree.h (TYPE_IDENTIFIER): Declare.
20600 * tree.c (subrange_type_for_debug_p): Use it.
20601 * godump.c (go_format_type): Likewise.
20602 * dwarf2out.c (is_cxx_auto, modified_type_die,
20603 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20604 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20605
20606 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20607
20608 PR lto/60820
20609 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20610
20611 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20612
20613 * config/i386/i386.c (examine_argument): Return bool. Return true if
20614 parameter should be passed in memory.
20615 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20616 (construct_container): Update calls to examine_argument.
20617 (function_arg_advance_64): Ditto.
20618 (return_in_memory_32): Merge with ix86_return_in_memory.
20619 (return_in_memory_64): Ditto.
20620 (return_in_memory_ms_64): Ditto.
20621
20622 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20623
20624 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20625 * coverage.c (coverage_compute_profile_id): Handle externally visible
20626 symbols.
20627
20628 2014-04-14 Martin Jambor <mjambor@suse.cz>
20629
20630 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20631 DECL_DISREGARD_INLINE_LIMITS functions.
20632
20633 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20634
20635 PR target/60827
20636 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20637
20638 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20639
20640 PR target/60827
20641 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20642 optimize_insn_for_speed_p instead of
20643 optimize_function_for_speed_p.
20644
20645 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20646
20647 * doc/invoke.texi (free): Document AArch64.
20648
20649 2014-04-14 Richard Biener <rguenther@suse.de>
20650
20651 PR tree-optimization/60042
20652 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20653 (insert_into_preds_of_block): Do not prevent PHI insertion
20654 for REFERENCE exprs here ...
20655 (eliminate_dom_walker::before_dom_children): ... but prevent
20656 their use here under similar conditions when applied to the
20657 IL after PRE optimizations.
20658
20659 2014-04-14 Richard Biener <rguenther@suse.de>
20660
20661 * passes.def: Move early points-to after early SRA.
20662
20663 2014-04-14 Richard Biener <rguenther@suse.de>
20664
20665 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20666 check for which sign-changes we allow when forwarding
20667 a converted value into a switch.
20668
20669 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20670
20671 * stor-layout.c (place_field): Finalize non-constant offset for the
20672 field, if any.
20673
20674 2014-04-14 Richard Biener <rguenther@suse.de>
20675
20676 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20677 as argument.
20678 (expand_switch_using_bit_tests_p): Likewise.
20679 (process_switch): Compute and pass on speed_p based on the
20680 switch stmt.
20681 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20682 optimize_bb_for_speed_p.
20683
20684 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20685
20686 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20687 * function.h (struct function): Rename has_force_vect_loops into
20688 has_force_vectorize_loops.
20689 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20690 (input_struct_function_base): Likewise.
20691 * lto-streamer-out.c (output_cfg): Likewise.
20692 (output_struct_function_base): Likewise.
20693 * omp-low.c (expand_omp_simd): Likewise.
20694 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20695 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20696 (version_loop_for_if_conversion): Likewise.
20697 (tree_if_conversion): Likewise.
20698 (main_tree_if_conversion): Likewise.
20699 (gate_tree_if_conversion): Likewise.
20700 * tree-inline.c (copy_loops): Likewise.
20701 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20702 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20703 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20704 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20705 * tree-vectorizer.c (vectorize_loops): Likewise.
20706 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20707
20708 2014-04-14 Richard Biener <rguenther@suse.de>
20709
20710 PR lto/60720
20711 * lto-streamer-out.c (wrap_refs): New function.
20712 (lto_output): Wrap symbol references in global initializes in
20713 type-preserving MEM_REFs.
20714
20715 2014-04-14 Christian Bruel <christian.bruel@st.com>
20716
20717 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20718
20719 2014-04-14 Christian Bruel <christian.bruel@st.com>
20720
20721 * config/sh/sh.md (setmemqi): New expand pattern.
20722 * config/sh/sh.h (CLEAR_RATIO): Define.
20723 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20724 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20725
20726 2014-04-14 Richard Biener <rguenther@suse.de>
20727
20728 PR middle-end/55022
20729 * fold-const.c (negate_expr_p): Don't negate directional rounding
20730 division.
20731 (fold_negate_expr): Likewise.
20732
20733 2014-04-14 Richard Biener <rguenther@suse.de>
20734
20735 PR tree-optimization/59817
20736 PR tree-optimization/60453
20737 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20738 recursion to catch all CHRECs in the scalar evolution and restrict
20739 the predicate for the remains appropriately.
20740
20741 2014-04-12 Catherine Moore <clm@codesourcery.com>
20742
20743 * config/mips/constraints.md: Add new register constraint "kb".
20744 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20745 (*movhi_internal): Likewise.
20746 (*movqi_internal): Likewise.
20747 * config/mips/mips.h (M16_STORE_REGS): New register class.
20748 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20749 (REG_CLASS_CONTENTS): Likewise.
20750 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20751
20752 2014-04-11 Tobias Burnus <burnus@net-b.de>
20753
20754 PR c/60194
20755 * doc/invoke.texi (-Wformat-signedness): Document it.
20756 (Wformat=2): Mention that this enables -Wformat-signedness.
20757
20758 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20759
20760 * common/config/epiphany/epiphany-common.c
20761 (epiphany_option_optimization_table): Enable section anchors by
20762 default at -O1 or higher.
20763 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20764 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20765 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20766 carries no extra cost.
20767 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20768 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20769 * config/epiphany/predicates.md (memclob_operand): New predicate.
20770 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20771 Use memclob_operand predicate and X constraint for operand 3.
20772
20773 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20774
20775 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20776 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20777 its operands.
20778
20779 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20780
20781 PR rtl-optimization/60651
20782 * mode-switching.c (optimize_mode_switching): Make sure to emit
20783 sets of a lower numbered entity before sets of a higher numbered
20784 entity to a mode of the same or lower priority.
20785 When creating a seginfo for a basic block that starts with a code
20786 label, move the insertion point past the code label.
20787 (new_seginfo): Document and enforce requirement that
20788 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20789 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20790 * doc/tm.texi: Regenerate.
20791
20792 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20793
20794 PR target/60811
20795 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20796
20797 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20798
20799 * BASE-VER: Set to 4.10.0.
20800
20801 2014-04-11 Tobias Burnus <burnus@net-b.de>
20802
20803 PR other/59055
20804 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20805 * doc/gcc.texi (Service): Update description in the @menu
20806 * doc/invoke.texi (Option Summary): Remove misplaced and
20807 duplicated @menu.
20808
20809 2014-04-11 Steve Ellcey <sellcey@mips.com>
20810 Jakub Jelinek <jakub@redhat.com>
20811
20812 PR middle-end/60556
20813 * expr.c (convert_move): Use emit_store_flag_force instead of
20814 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20815 argument to it.
20816
20817 2014-04-11 Richard Biener <rguenther@suse.de>
20818
20819 PR middle-end/60797
20820 * varasm.c (assemble_alias): Avoid endless error reporting
20821 recursion by setting TREE_ASM_WRITTEN.
20822
20823 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20824
20825 * config/s390/s390.md: Add a splitter for NOT rtx.
20826
20827 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20828
20829 PR rtl-optimization/60663
20830 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20831
20832 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20833 Jakub Jelinek <jakub@redhat.com>
20834
20835 PR lto/60567
20836 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20837 flag from decl_node to node.
20838
20839 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20840
20841 PR debug/60655
20842 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20843 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20844 ameliorating the cases where it can be.
20845
20846 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20847
20848 Revert
20849 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20850
20851 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20852 (loadsync_<mode>): Change mode.
20853 (load_quadpti, store_quadpti): New.
20854 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20855 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20856 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20857
20858 2014-04-09 Cong Hou <congh@google.com>
20859
20860 PR testsuite/60773
20861 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20862 documentation.
20863
20864 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20865
20866 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20867 instead of vnor to exploit possible fusion opportunity in the
20868 future.
20869 (altivec_expand_vec_perm_const_le): Likewise.
20870
20871 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20872
20873 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20874 (loadsync_<mode>): Change mode.
20875 (load_quadpti, store_quadpti): New.
20876 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20877 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20878
20879 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20880
20881 PR target/60763
20882 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20883 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20884 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20885
20886 2014-04-08 Richard Biener <rguenther@suse.de>
20887
20888 PR middle-end/60706
20889 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20890 a 64bit widest int print double-int similar to on HWI64 hosts.
20891
20892 2014-04-08 Richard Biener <rguenther@suse.de>
20893
20894 PR tree-optimization/60785
20895 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20896 default defs properly.
20897
20898 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20899
20900 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20901 (Weffc++): Likewise.
20902
20903 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20904
20905 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20906 set completep to false rather than true.
20907
20908 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20909
20910 PR target/60504
20911 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20912 ARM_TARGET2_DWARF_FORMAT.
20913
20914 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20915
20916 PR target/60609
20917 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20918 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20919 ADDR_DIFF_VEC.
20920
20921 2014-04-07 Richard Biener <rguenther@suse.de>
20922
20923 PR tree-optimization/60766
20924 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20925 (may_eliminate_iv): Convert cand_value_at result to desired type.
20926
20927 2014-04-07 Jason Merrill <jason@redhat.com>
20928
20929 PR c++/60731
20930 * common.opt (-fno-gnu-unique): Add.
20931 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20932
20933 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20934
20935 * haifa-sched.c: Fix outdated function reference and minor
20936 grammar errors in introductory comment.
20937
20938 2014-04-07 Richard Biener <rguenther@suse.de>
20939
20940 PR middle-end/60750
20941 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20942 for noreturn calls.
20943 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20944
20945 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20946
20947 PR debug/55794
20948 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20949 size accounting for thunks.
20950 (pa_asm_output_mi_thunk): Use final_start_function() and
20951 final_end_function() to output function start and end directives.
20952
20953 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20954
20955 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20956 device specific ISA/ feature information. Remove short_sp and
20957 errata_skip ds. Add avr_device_specific_features enum to have device
20958 specific info.
20959 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20960 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20961 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20962 updated device specific info.
20963 * config/avr/avr-mcus.def: Merge device specific details to
20964 dev_attribute field.
20965 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20966 errata_skip.
20967 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20968 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20969 assembler if RMW isa supported by current device.
20970 * config/avr/genmultilib.awk: Update as device info structure changed.
20971 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20972
20973 2014-04-04 Cong Hou <congh@google.com>
20974
20975 PR tree-optimization/60656
20976 * tree-vect-stmts.c (supportable_widening_operation):
20977 Fix a bug that elements in a vector with vect_used_by_reduction
20978 property are incorrectly reordered when the operation on it is not
20979 consistant with the one in reduction operation.
20980
20981 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20982
20983 PR rtl-optimization/60155
20984 * gcse.c (record_set_data): New function.
20985 (single_set_gcse): New function.
20986 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20987 (hoist_code): Likewise.
20988 (get_pressure_class_and_nregs): Likewise.
20989
20990 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20991
20992 * explow.c (probe_stack_range): Emit a final optimization blockage.
20993
20994 2014-04-04 Anthony Green <green@moxielogic.com>
20995
20996 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20997 typos.
20998
20999 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21000
21001 PR ipa/59626
21002 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21003 flags are set only during streaming.
21004 * ipa.c (process_references, walk_polymorphic_call_targets,
21005 symtab_remove_unreachable_nodes): Drop bodies of always inline
21006 after early inlining.
21007 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21008
21009 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21010 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21011
21012 PR debug/60655
21013 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21014 containing a NOT.
21015
21016 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21017
21018 PR bootstrap/60743
21019 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21020 duration.
21021 (cortex_a53_fdivd): Likewise.
21022
21023 2014-04-04 Martin Jambor <mjambor@suse.cz>
21024
21025 PR ipa/60640
21026 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21027 Adjust all callers.
21028 * cgraph.c (clone_of_p): Also return true if thunks match.
21029 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21030 cgraph_function_or_thunk_node and an obsolete comment.
21031 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21032 file.
21033 (build_function_decl_skip_args): Likewise.
21034 (set_new_clone_decl_and_node_flags): New function.
21035 (duplicate_thunk_for_node): Likewise.
21036 (redirect_edge_duplicating_thunks): Likewise.
21037 (cgraph_clone_node): New parameter args_to_skip, pass it to
21038 redirect_edge_duplicating_thunks which is called instead of
21039 cgraph_redirect_edge_callee.
21040 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21041 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21042
21043 2014-04-04 Jeff Law <law@redhat.com>
21044
21045 PR target/60657
21046 * config/arm/predicates.md (const_int_I_operand): New predicate.
21047 (const_int_M_operand): Similarly.
21048 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21049 const_int_operand.
21050 (insv_t2, extv_reg, extzv_t2): Likewise.
21051 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21052 (pop_multiple_with_writeback_and_return): Likewise.
21053 (vfp_pop_multiple_with_writeback): Likewise
21054
21055 2014-04-04 Richard Biener <rguenther@suse.de>
21056
21057 PR ipa/60746
21058 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21059 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21060 non-GIMPLE_LABELs.
21061 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21062 * gimplify.c (gimple_add_tmp_var_fn): New function.
21063 * gimple-expr.h (create_tmp_reg_fn): Declare.
21064 * gimple-expr.c (create_tmp_reg_fn): New function.
21065 * gimple-low.c (record_vars_into): Don't change cfun.
21066 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21067 code generation without cfun.
21068
21069 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21070
21071 PR bootstrap/60719
21072 * Makefile.in (install-driver): Fix shell scripting.
21073
21074 2014-04-03 Cong Hou <congh@google.com>
21075
21076 PR tree-optimization/60505
21077 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21078 threshold of number of iterations below which no vectorization
21079 will be done.
21080 * tree-vect-loop.c (new_loop_vec_info):
21081 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21082 * tree-vect-loop.c (vect_analyze_loop_operations):
21083 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21084 * tree-vect-loop.c (vect_transform_loop):
21085 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21086 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21087 of iterations of the loop and see if we should build the epilogue.
21088
21089 2014-04-03 Richard Biener <rguenther@suse.de>
21090
21091 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21092 (streamer_tree_cache_create): Adjust.
21093 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21094 to allow optional nodes array.
21095 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21096 (streamer_tree_cache_append): Likewise.
21097 (streamer_tree_cache_create): Create nodes array optionally
21098 as specified by parameter.
21099 * lto-streamer-out.c (create_output_block): Avoid maintaining
21100 the node array in the writer cache.
21101 (DFS_write_tree): Remove assertion.
21102 (produce_asm_for_decls): Free the out decl state hash table early.
21103 * lto-streamer-in.c (lto_data_in_create): Adjust for
21104 streamer_tree_cache_create prototype change.
21105
21106 2014-04-03 Richard Biener <rguenther@suse.de>
21107
21108 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21109 set TREE_CHAIN to NULL_TREE.
21110
21111 2014-04-03 Richard Biener <rguenther@suse.de>
21112
21113 PR tree-optimization/60740
21114 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21115 over all GIMPLE_COND operands.
21116
21117 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21118
21119 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21120 (Weffc++): Remove Scott's numbering, merge lists and reference
21121 Wnon-virtual-dtor.
21122
21123 2014-04-03 Nick Clifton <nickc@redhat.com>
21124
21125 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21126 properly.
21127
21128 2014-04-03 Martin Jambor <mjambor@suse.cz>
21129
21130 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21131 mention gcc_unreachable before failing.
21132 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21133 removed symbols.
21134
21135 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21136
21137 PR ipa/60659
21138 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21139 inconsistent code and instead mark the context inconsistent.
21140 (possible_polymorphic_call_targets): For inconsistent contexts
21141 return empty complete list.
21142
21143 2014-04-02 Anthony Green <green@moxielogic.com>
21144
21145 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21146 (extendqisi2, extendhisi2): Define.
21147 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21148 (WCHAR_TYPE): Change to unsigned int.
21149
21150 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21151
21152 PR tree-optimization/60733
21153 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21154 insertion point for PHI candidates to be the end of the feeding
21155 block for the PHI argument.
21156
21157 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21158
21159 PR rtl-optimization/60650
21160 * lra-constraints.c (process_alt_operands): Decrease reject for
21161 earlyclobber matching.
21162
21163 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21164
21165 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21166
21167 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21168
21169 * config/spu/spu.c (pad_bb): Do not crash when the last
21170 insn is CODE_FOR_blockage.
21171
21172 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21173
21174 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21175 lies outside the target mode.
21176
21177 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21178
21179 PR target/60735
21180 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21181 software floating point or no floating point registers, do not
21182 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21183 in GPRs that occurs after we tested for GPRs that would never be
21184 true.
21185
21186 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21187 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21188 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21189 specifically allow DDmode, since that does not use the SPE SIMD
21190 instructions.
21191
21192 2014-04-02 Richard Biener <rguenther@suse.de>
21193
21194 PR middle-end/60729
21195 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21196 MODE_INTs. Properly use negv_optab.
21197 (expand_abs): Likewise.
21198
21199 2014-04-02 Richard Biener <rguenther@suse.de>
21200
21201 PR bootstrap/60719
21202 * Makefile.in (install-driver): Guard extra installs with special
21203 names properly.
21204
21205 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21206
21207 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21208 Document vec_vgbbd.
21209
21210 2014-04-01 Richard Henderson <rth@redhat.com>
21211
21212 PR target/60704
21213 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21214 alternative enabled before register allocation.
21215
21216 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21217
21218 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21219 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21220 typo.
21221 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21222 (nios2_got_address): Update nios2_large_got_address call site.
21223 (nios2_delegitimize_address): New function.
21224 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21225 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21226 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21227
21228 2014-04-01 Martin Husemann <martin@duskware.de>
21229
21230 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21231 for -mabi=32.
21232
21233 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21234
21235 PR rtl-optimization/60604
21236 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21237 check from register_operand.
21238 (register_operand): Redefine in terms of general_operand.
21239 (nonmemory_operand): Use register_operand for the non-constant cases.
21240
21241 2014-04-01 Richard Biener <rguenther@suse.de>
21242
21243 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21244
21245 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21246
21247 * doc/invoke.texi (mapp-regs): Clarify.
21248
21249 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21250
21251 * config/i386/avx512fintrin.h (__v32hi): Define type.
21252 (__v64qi): Likewise.
21253 (_mm512_set1_epi8): Define.
21254 (_mm512_set1_epi16): Define.
21255 (_mm512_set4_epi32): Define.
21256 (_mm512_set4_epi64): Define.
21257 (_mm512_set4_pd): Define.
21258 (_mm512_set4_ps): Define.
21259 (_mm512_setr4_epi64): Define.
21260 (_mm512_setr4_epi32): Define.
21261 (_mm512_setr4_pd): Define.
21262 (_mm512_setr4_ps): Define.
21263 (_mm512_setzero_epi32): Define.
21264
21265 2014-03-31 Martin Jambor <mjambor@suse.cz>
21266
21267 PR middle-end/60647
21268 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21269 callsite_arguments_match_p. Updated all callers. Also check types of
21270 corresponding formal parameters and actual arguments.
21271 (not_all_callers_have_enough_arguments_p) Renamed to
21272 some_callers_have_mismatched_arguments_p.
21273
21274 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21275
21276 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21277
21278 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21279
21280 PR target/60034
21281 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21282 section anchor.
21283
21284 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21285
21286 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21287 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21288 Split out
21289 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21290 Use FMAMODE_NOVF512 mode iterator.
21291 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21292 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21293 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21294 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21295 Split out
21296 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21297 Use VF_128_256 mode iterator.
21298 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21299 Ditto.
21300
21301 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21302
21303 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21304 static chain if needed.
21305
21306 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21307
21308 PR target/60697
21309 * lra-constraints.c (index_part_to_reg): New.
21310 (process_address): Use it.
21311
21312 2014-03-27 Jeff Law <law@redhat.com>
21313 Jakub Jelinek <jakub@redhat.com>
21314
21315 PR target/60648
21316 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21317 gen_rtx_{PLUS,MULT} to build up the address expression.
21318
21319 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21320 creating non-canonical RTL.
21321
21322 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21323
21324 PR ipa/60243
21325 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21326 functions; reorganize to make cheap checks first.
21327 (inline_small_functions): Do not estimate growth when dumping;
21328 it is expensive.
21329 * ipa-inline.h (inline_summary): Add min_size.
21330 (growth_likely_positive): New function.
21331 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21332 (set_cond_stmt_execution_predicate): Cleanup.
21333 (estimate_edge_size_and_time): Compute min_size.
21334 (estimate_calls_size_and_time): Likewise.
21335 (estimate_node_size_and_time): Likewise.
21336 (inline_update_overall_summary): Update min_size.
21337 (do_estimate_edge_time): Likewise.
21338 (do_estimate_edge_size): Update.
21339 (do_estimate_edge_hints): Update.
21340 (growth_likely_positive): New function.
21341
21342 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21343
21344 PR target/60693
21345 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21346 also if addr has VOIDmode.
21347
21348 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21349
21350 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21351 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21352 Declare extern.
21353 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21354 instructions as well as AdvancedSIMD loads.
21355
21356 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21357
21358 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21359 Use crypto_aese type.
21360 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21361 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21362 crypto_aese, crypto_aesmc. Move to types.md.
21363 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21364 crypto_aesmc.
21365 * config/arm/iterators.md (crypto_type): Likewise.
21366
21367 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21368
21369 * cgraph.c: Include expr.h and tree-dfa.h.
21370 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21371 remove LHS.
21372
21373 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21374
21375 PR target/60675
21376 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21377 regs from checking multi-reg pseudos.
21378
21379 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21380
21381 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21382
21383 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21384
21385 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21386 if it would clobber the stack pointer, even temporarily.
21387
21388 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21389
21390 * mode-switching.c: Make small adjustments to the top comment.
21391
21392 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21393
21394 * config/rs6000/constraints.md (wD constraint): New constraint to
21395 match the constant integer to get the top DImode/DFmode out of a
21396 vector in a VSX register.
21397
21398 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21399 match the constant integer to get the top DImode/DFmode out of a
21400 vector in a VSX register.
21401
21402 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21403 for ISA 2.07.
21404
21405 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21406 vbpermq builtins.
21407
21408 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21409 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21410
21411 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21412 Optimize vec_extract of 64-bit values, where the value being
21413 extracted is in the top word, where we can use scalar
21414 instructions. Add direct move and store support. Combine the big
21415 endian/little endian vector select load support into a single insn.
21416 (vsx_extract_<mode>_internal1): Likewise.
21417 (vsx_extract_<mode>_internal2): Likewise.
21418 (vsx_extract_<mode>_load): Likewise.
21419 (vsx_extract_<mode>_store): Likewise.
21420 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21421 combined into vsx_extract_<mode>_load.
21422 (vsx_extract_<mode>_one_le): Likewise.
21423
21424 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21425 define the top 64-bit vector element.
21426
21427 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21428 constraint.
21429
21430 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21431 Document vec_vbpermq builtin.
21432
21433 PR target/60672
21434 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21435 enable use of xxsldwi and xxpermdi builtin functions.
21436 (vec_xxpermdi): Likewise.
21437
21438 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21439 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21440
21441 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21442
21443 PR rtl-optimization/60650
21444 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21445 first_p. Use it.
21446 (find_spills_for): New.
21447 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21448 Spill all pseudos on the second iteration.
21449
21450 2014-03-27 Marek Polacek <polacek@redhat.com>
21451
21452 PR c/50347
21453 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21454 types.
21455
21456 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21457
21458 * config/s390/s390.c (s390_can_use_return_insn): Check for
21459 call-saved FPRs on 31 bit.
21460
21461 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21462
21463 PR middle-end/60682
21464 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21465 if they need regimplification, just drop them instead of
21466 calling gimple_regimplify_operands on them.
21467
21468 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21469
21470 PR target/60580
21471 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21472 (aarch64_frame_pointer_required): Adjust logic.
21473 (aarch64_can_eliminate): Adjust logic.
21474 (aarch64_override_options_after_change): Adjust logic.
21475
21476 2014-03-27 Dehao Chen <dehao@google.com>
21477
21478 * ipa-inline.c (early_inliner): Update node's inline info.
21479
21480 2014-03-26 Dehao Chen <dehao@google.com>
21481
21482 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21483 compiler inserted conditional jumps for NAN float check.
21484
21485 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21486
21487 * ubsan.h (ubsan_create_data): Change second argument's type
21488 to const location_t *.
21489 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21490 _("<unknown>").
21491 (ubsan_create_data): Change second argument to const location_t *PLOC.
21492 Create Loc field whenever PLOC is non-NULL.
21493 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21494 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21495 callers.
21496
21497 PR other/59545
21498 * real.c (real_to_integer2): Change type of low to UHWI.
21499
21500 2014-03-26 Tobias Burnus <burnus@net-b.de>
21501
21502 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21503 (CILK_SELF_SPECS): New define.
21504 (driver_self_specs): Use it.
21505
21506 2014-03-26 Richard Biener <rguenther@suse.de>
21507
21508 * tree-pretty-print.c (percent_K_format): Implement special
21509 case for LTO and its stripped down BLOCK tree.
21510
21511 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21512
21513 PR sanitizer/60636
21514 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21515
21516 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21517 one range is range_int_cst_p, but not both, at least optimize
21518 addition/subtraction of 0 and multiplication by 0 or 1.
21519 * gimple-fold.c (gimple_fold_call): Fold
21520 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21521 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21522 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21523
21524 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21525
21526 PR rtl-optimization/60452
21527 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21528 <case REG>: Return 1 for invalid offsets from the frame pointer.
21529
21530 2014-03-26 Marek Polacek <polacek@redhat.com>
21531
21532 PR c/37428
21533 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21534 a structure/union.
21535
21536 2014-03-26 Marek Polacek <polacek@redhat.com>
21537
21538 PR c/39525
21539 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21540 field members.
21541
21542 2014-03-26 Marek Polacek <polacek@redhat.com>
21543
21544 PR other/59545
21545 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21546 multiplication in unsigned type.
21547
21548 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21549
21550 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21551
21552 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21553
21554 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21555
21556 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21557
21558 PR ipa/60315
21559 * cif-code.def (UNREACHABLE) New code.
21560 * ipa-inline.c (inline_small_functions): Skip edges to
21561 __builtlin_unreachable.
21562 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21563 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21564 predicate to __bulitin_unreachable.
21565 (set_cond_stmt_execution_predicate): Fix issue when
21566 invert_tree_comparison returns ERROR_MARK.
21567 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21568 propagate to inline clones.
21569 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21570 to unreachable.
21571 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21572 * cgraphclones.c (cgraph_clone_node): If call destination is already
21573 ureachable, do not redirect it back.
21574 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21575 unreachable.
21576
21577 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21578
21579 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21580 Do not modify inline clones.
21581
21582 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21583
21584 * config/i386/i386.md (general_sext_operand): New mode attr.
21585 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21586 don't generate (sign_extend (const_int)).
21587 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21588 operands[2]. Use We constraint instead of <i> and
21589 <general_sext_operand> predicate instead of <general_operand>.
21590 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21591 * config/i386/constraints.md (We): New constraint.
21592 * config/i386/predicates.md (x86_64_sext_operand,
21593 sext_operand): New predicates.
21594
21595 2014-03-25 Martin Jambor <mjambor@suse.cz>
21596
21597 PR ipa/60600
21598 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21599 inconsistent devirtualizations to __builtin_unreachable.
21600
21601 2014-03-25 Marek Polacek <polacek@redhat.com>
21602
21603 PR c/35449
21604 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21605
21606 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21607
21608 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21609 order of elements for big-endian.
21610
21611 2014-03-25 Richard Biener <rguenther@suse.de>
21612
21613 PR middle-end/60635
21614 * gimplify-me.c (gimple_regimplify_operands): Update the
21615 re-gimplifed stmt.
21616
21617 2014-03-25 Martin Jambor <mjambor@suse.cz>
21618
21619 PR ipa/59176
21620 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21621 (lto_output_varpool_node): Likewise.
21622 (input_overwrite_node): Likewise.
21623 (input_varpool_node): Likewise.
21624
21625 2014-03-25 Richard Biener <rguenther@suse.de>
21626
21627 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21628 (run_gcc): Likewise.
21629
21630 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21631
21632 * combine.c (simplify_compare_const): Add MODE argument.
21633 Handle mode_width 0 as very large mode_width.
21634 (try_combine, simplify_comparison): Adjust callers.
21635
21636 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21637 type to avoid signed integer overflow.
21638 * explow.c (plus_constant): Likewise.
21639
21640 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21641
21642 * doc/generic.texi: Correct typos.
21643
21644 2014-03-24 Tobias Burnus <burnus@net-b.de>
21645
21646 * doc/invoke.texi (-flto): Expand section about
21647 using static libraries with LTO.
21648
21649 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21650
21651 PR rtl-optimization/60501
21652 * optabs.def (addptr3_optab): New optab.
21653 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21654 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21655 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21656
21657 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21658
21659 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21660
21661 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21662
21663 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21664 _mm512_set1_pd.
21665
21666 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21667 (_mm256_undefined_ps): Define.
21668 (_mm256_undefined_pd): Define.
21669 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21670 (_mm_undefined_pd): Define.
21671 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21672 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21673 (_mm512_undefined_ps): Define.
21674 (_mm512_undefined_pd): Define.
21675 Use _mm*_undefined_*.
21676 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21677
21678 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21679
21680 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21681 (lshr_simd): DI mode added.
21682 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21683 (aarch64_ushr_simddi): Likewise.
21684 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21685 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21686 (vshrd_n_u64): Likewise.
21687
21688 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21689
21690 * Makefile.in (s-macro_list): Depend on cc1.
21691
21692 2014-03-23 Teresa Johnson <tejohnson@google.com>
21693
21694 * ipa-utils.c (ipa_print_order): Use specified dump file.
21695
21696 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21697
21698 PR rtl-optimization/60601
21699 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21700
21701 * gcc.c (eval_spec_function): Initialize save_growing_value.
21702
21703 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21704
21705 PR sanitizer/60613
21706 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21707 code == MINUS_EXPR, never swap op0 with op1.
21708
21709 * toplev.c (init_local_tick): Avoid signed integer multiplication
21710 overflow.
21711 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21712 shift by first operand's bitsize.
21713
21714 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21715
21716 PR target/60610
21717 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21718 redefine to 1 or 0.
21719 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21720 TARGET_ISA_64BIT_P(x).
21721
21722 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21723
21724 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21725 pattern for vector nor instead of subtract from splat(-1).
21726 (altivec_expand_vec_perm_const_le): Likewise.
21727
21728 2014-03-21 Richard Henderson <rth@twiddle.net>
21729
21730 PR target/60598
21731 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21732 related insns after epilogue_completed.
21733
21734 2014-03-21 Martin Jambor <mjambor@suse.cz>
21735
21736 PR ipa/59176
21737 * cgraph.h (symtab_node): New flag body_removed.
21738 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21739 when removing bodies.
21740 * symtab.c (dump_symtab_base): Dump body_removed flag.
21741 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21742 had their bodies removed.
21743
21744 2014-03-21 Martin Jambor <mjambor@suse.cz>
21745
21746 PR ipa/60419
21747 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21748 in the border.
21749
21750 2014-03-21 Richard Biener <rguenther@suse.de>
21751
21752 PR tree-optimization/60577
21753 * tree-core.h (struct tree_base): Document nothrow_flag use
21754 in DECL_NONALIASED.
21755 * tree.h (DECL_NONALIASED): New.
21756 (may_be_aliased): Adjust.
21757 * coverage.c (build_var): Set DECL_NONALIASED.
21758
21759 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21760
21761 * expr.c (expand_expr_real_1): Remove outdated comment.
21762
21763 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21764
21765 PR middle-end/60597
21766 * ira.c (adjust_cleared_regs): Call copy_rtx on
21767 *reg_equiv[REGNO (loc)].src_p before passing it to
21768 simplify_replace_fn_rtx.
21769
21770 PR target/60568
21771 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21772 into CONST, put pic register as first operand of PLUS. Use
21773 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21774
21775 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21776
21777 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21778
21779 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21780
21781 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21782 around for store forwarding issue in the FPU on the UT699.
21783 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21784 loads and operations if -mfix-ut699 is specified.
21785 (divtf3_hq): Tweak attribute.
21786 (sqrttf2_hq): Likewise.
21787
21788 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21789
21790 * calls.c (store_one_arg): Remove incorrect const qualification on the
21791 type of the temporary.
21792 * cfgexpand.c (expand_return): Likewise.
21793 * expr.c (expand_constructor): Likewise.
21794 (expand_expr_real_1): Likewise.
21795
21796 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21797
21798 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21799 of parts.
21800
21801 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21802
21803 PR target/60039
21804 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21805
21806 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21807
21808 * config/arm/aarch-common-protos.h
21809 (alu_cost_table): Fix spelling of "extend".
21810 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21811
21812 2014-03-19 Richard Biener <rguenther@suse.de>
21813
21814 PR middle-end/60553
21815 * tree-core.h (tree_type_common): Re-order pointer members
21816 to reduce recursion depth during GC walks.
21817
21818 2014-03-19 Marek Polacek <polacek@redhat.com>
21819
21820 PR sanitizer/60569
21821 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21822 before accessing it.
21823
21824 2014-03-19 Richard Biener <rguenther@suse.de>
21825
21826 PR lto/59543
21827 * lto-streamer-in.c (input_function): In WPA stage do not drop
21828 debug stmts.
21829
21830 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21831
21832 PR tree-optimization/60559
21833 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21834 with build_zero_cst assignment.
21835
21836 2014-03-18 Kai Tietz <ktietz@redhat.com>
21837
21838 PR rtl-optimization/56356
21839 * sdbout.c (sdbout_parms): Verify that parms'
21840 incoming argument is valid.
21841 (sdbout_reg_parms): Likewise.
21842
21843 2014-03-18 Richard Henderson <rth@redhat.com>
21844
21845 PR target/60562
21846 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21847 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21848 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21849
21850 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21851
21852 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21853 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21854 Italicize plugin event names in description. Explain that
21855 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21856 Remind that no GCC functions should be called after PLUGIN_FINISH.
21857 Explain what pragmas with expansion are.
21858
21859 2014-03-18 Martin Liska <mliska@suse.cz>
21860
21861 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21862 gimple call statement is update.
21863 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21864 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21865
21866 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21867
21868 PR sanitizer/60557
21869 * ubsan.c (ubsan_instrument_unreachable): Call
21870 initialize_sanitizer_builtins.
21871 (ubsan_pass): Likewise.
21872
21873 PR sanitizer/60535
21874 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21875 varpool_finalize_decl instead of rest_of_decl_compilation.
21876
21877 2014-03-18 Richard Biener <rguenther@suse.de>
21878
21879 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21880 by using bitmap_and_compl instead of bitmap_and_compl_into.
21881 (df_rd_transfer_function): Likewise.
21882
21883 2014-03-18 Richard Biener <rguenther@suse.de>
21884
21885 * doc/lto.texi (fresolution): Fix typo.
21886
21887 2014-03-18 Richard Biener <rguenther@suse.de>
21888
21889 * doc/invoke.texi (flto): Update for changes in 4.9.
21890
21891 2014-03-18 Richard Biener <rguenther@suse.de>
21892
21893 * doc/loop.texi: Remove section on the removed lambda framework.
21894 Update loop docs with recent changes in preserving loop structure.
21895
21896 2014-03-18 Richard Biener <rguenther@suse.de>
21897
21898 * doc/lto.texi (-fresolution): Document.
21899
21900 2014-03-18 Richard Biener <rguenther@suse.de>
21901
21902 * doc/contrib.texi: Adjust my name.
21903
21904 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21905
21906 PR ipa/58721
21907 * internal-fn.c: Include diagnostic-core.h.
21908 (expand_BUILTIN_EXPECT): New function.
21909 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21910 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21911 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21912 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21913 IFN_BUILTIN_EXPECT.
21914 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21915 Revert 3 argument __builtin_expect code.
21916 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21917 * gimple-fold.c (gimple_fold_call): Likewise.
21918 * tree.h (fold_builtin_expect): New prototype.
21919 * builtins.c (build_builtin_expect_predicate): Add predictor
21920 argument, if non-NULL, create 3 argument __builtin_expect.
21921 (fold_builtin_expect): No longer static. Add ARG2 argument,
21922 pass it through to build_builtin_expect_predicate.
21923 (fold_builtin_2): Adjust caller.
21924 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21925 * internal-fn.def (BUILTIN_EXPECT): New.
21926
21927 2014-03-18 Tobias Burnus <burnus@net-b.de>
21928
21929 PR ipa/58721
21930 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21931 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21932 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21933
21934 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21935
21936 PR ipa/58721
21937 * predict.c (combine_predictions_for_bb): Fix up formatting.
21938 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21939 fill what it points to if non-NULL.
21940 (tree_predict_by_opcode): Adjust caller, use the predictor.
21941 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21942
21943 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21944
21945 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21946 proper constant for the store mode.
21947
21948 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21949
21950 * symtab.c (change_decl_assembler_name): Fix transparent alias
21951 chain construction.
21952
21953 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21954
21955 * config/aarch64/aarch64.c: Correct the comments about the
21956 aarch64 stack layout.
21957
21958 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21959
21960 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21961 check for GF_OMP_FOR_KIND_FOR.
21962
21963 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21964
21965 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21966 ymm and zmm register names.
21967
21968 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21969
21970 PR target/60516
21971 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21972 note creation for the 2010-08-31 changes.
21973
21974 2014-03-17 Marek Polacek <polacek@redhat.com>
21975
21976 PR middle-end/60534
21977 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21978 as -fno-tree-loop-vectorize.
21979 (expand_omp_simd): Likewise.
21980
21981 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21982
21983 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21984 (eligible_for_call_delay): New prototype.
21985 * config/sparc/sparc.c (tls_call_delay): Rename into...
21986 (eligible_for_call_delay): ...this. Return false if the instruction
21987 cannot be put in the delay slot of a branch.
21988 (eligible_for_restore_insn): Simplify.
21989 (eligible_for_return_delay): Return false if the instruction cannot be
21990 put in the delay slot of a branch and simplify.
21991 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21992 put in the delay slot of a branch.
21993 * config/sparc/sparc.md (fix_ut699): New attribute.
21994 (tls_call_delay): Delete.
21995 (in_call_delay): Reimplement.
21996 (eligible_for_sibcall_delay): Rename into...
21997 (in_sibcall_delay): ...this.
21998 (eligible_for_return_delay): Rename into...
21999 (in_return_delay): ...this.
22000 (in_branch_delay): Reimplement.
22001 (in_uncond_branch_delay): Delete.
22002 (in_annul_branch_delay): Delete.
22003
22004 2014-03-14 Richard Henderson <rth@redhat.com>
22005
22006 PR target/60525
22007 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22008 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22009 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22010 (floathi splitters): Remove.
22011 (float<SWI48x>xf2): New pattern.
22012 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22013 code that tried to handle DImode for 32-bit, but which was excluded
22014 by the pattern's condition. Drop allocation of stack temporary.
22015 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22016 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22017 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22018 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22019 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22020 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22021 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22022 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22023 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22024 (*float<SWI48x><X87MODEF>2_i387): Remove.
22025 (all float _with_temp splitters): Remove.
22026 (*float<SWI48x><MODEF>2_i387): New pattern.
22027 (*float<SWI48><MODEF>2_sse): New pattern.
22028 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22029 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22030
22031 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22032 Marek Polacek <polacek@redhat.com>
22033
22034 PR middle-end/60484
22035 * common.opt (dump_base_name_prefixed): New Variable.
22036 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22037 if x_dump_base_name_prefixed is already set, set it at the end.
22038
22039 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22040
22041 PR rtl-optimization/60508
22042 * lra-constraints.c (get_reload_reg): Add new parameter
22043 in_subreg_p.
22044 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22045 Pass the new parameter values.
22046
22047 2014-03-14 Richard Biener <rguenther@suse.de>
22048
22049 * common.opt: Revert unintented changes from r205065.
22050 * opts.c: Likewise.
22051
22052 2014-03-14 Richard Biener <rguenther@suse.de>
22053
22054 PR middle-end/60518
22055 * cfghooks.c (split_block): Properly adjust all loops the
22056 block was a latch of.
22057
22058 2014-03-14 Martin Jambor <mjambor@suse.cz>
22059
22060 PR lto/60461
22061 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22062 and simplify it.
22063
22064 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22065
22066 PR target/59396
22067 * config/avr/avr.c (avr_set_current_function): Pass function name
22068 through default_strip_name_encoding before sanity checking instead
22069 of skipping the first char of the assembler name.
22070
22071 2014-03-13 Richard Henderson <rth@redhat.com>
22072
22073 PR debug/60438
22074 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22075 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22076 * config/i386/i386-protos.h: Likewise.
22077 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22078 in the expander instead of a splitter.
22079 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22080 any possibility of requiring a memory.
22081 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22082 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22083 (fp branch splitters): Update for ix86_split_fp_branch.
22084 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22085 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22086 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22087 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22088 (*fop_<MODEF>_3_i387): Likewise.
22089 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22090 (splitters for the fop_* register patterns): Remove.
22091 (fscalexf4_i387): Rename from *fscalexf4_i387.
22092 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22093
22094 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22095
22096 PR tree-optimization/59779
22097 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22098 type for bitsize and maxsize instead of HOST_WIDE_INT.
22099
22100 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22101
22102 PR rtl-optimization/57320
22103 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22104 the CFG after thread_prologue_and_epilogue_insns.
22105
22106 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22107
22108 PR rtl-optimization/57189
22109 * lra-constraints.c (process_alt_operands): Disfavor spilling
22110 vector pseudos.
22111
22112 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22113
22114 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22115
22116 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22117
22118 PR tree-optimization/59025
22119 PR middle-end/60418
22120 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22121 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22122
22123 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22124
22125 PR target/60486
22126 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22127 calls of avr_out_plus_1.
22128
22129 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22130
22131 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22132 BB's single pred and update the father loop's latch info later.
22133
22134 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22135
22136 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22137 (VEC_M): Likewise.
22138 (VEC_N): Likewise.
22139 (VEC_R): Likewise.
22140 (VEC_base): Likewise.
22141 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22142 registers, we need to swap double words in little endian mode.
22143
22144 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22145 to be a container mode for 128-bit integer operations added in ISA
22146 2.07. Unlike TImode and PTImode, the preferred register set is
22147 the Altivec/VMX registers for the 128-bit operations.
22148
22149 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22150 declarations.
22151 (rs6000_split_128bit_ok_p): Likewise.
22152
22153 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22154 macros for creating ISA 2.07 normal and overloaded builtin
22155 functions with 3 arguments.
22156 (BU_P8V_OVERLOAD_3): Likewise.
22157 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22158 for use as overloaded functions.
22159 (VPERM_1TI_UNS): Likewise.
22160 (VSEL_1TI): Likewise.
22161 (VSEL_1TI_UNS): Likewise.
22162 (ST_INTERNAL_1ti): Likewise.
22163 (LD_INTERNAL_1ti): Likewise.
22164 (XXSEL_1TI): Likewise.
22165 (XXSEL_1TI_UNS): Likewise.
22166 (VPERM_1TI): Likewise.
22167 (VPERM_1TI_UNS): Likewise.
22168 (XXPERMDI_1TI): Likewise.
22169 (SET_1TI): Likewise.
22170 (LXVD2X_V1TI): Likewise.
22171 (STXVD2X_V1TI): Likewise.
22172 (VEC_INIT_V1TI): Likewise.
22173 (VEC_SET_V1TI): Likewise.
22174 (VEC_EXT_V1TI): Likewise.
22175 (EQV_V1TI): Likewise.
22176 (NAND_V1TI): Likewise.
22177 (ORC_V1TI): Likewise.
22178 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22179 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22180 overloaded builtin.
22181 (VADDUQM): Likewise.
22182 (VSUBCUQ): Likewise.
22183 (VADDEUQM): Likewise.
22184 (VADDECUQ): Likewise.
22185 (VSUBEUQM): Likewise.
22186 (VSUBECUQ): Likewise.
22187
22188 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22189 __int128_t and __uint128_t types.
22190 (__uint128_type): Likewise.
22191 (altivec_categorize_keyword): Add support for vector __int128_t,
22192 vector __uint128_t, vector __int128, and vector unsigned __int128
22193 as a container type for TImode operations that need to be done in
22194 VSX/Altivec registers.
22195 (rs6000_macro_to_expand): Likewise.
22196 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22197 to support 128-bit integer instructions vaddcuq, vadduqm,
22198 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22199 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22200
22201 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22202 for V1TImode, and set up preferences to use VSX/Altivec registers.
22203 Setup VSX reload handlers.
22204 (rs6000_debug_reg_global): Likewise.
22205 (rs6000_init_hard_regno_mode_ok): Likewise.
22206 (rs6000_preferred_simd_mode): Likewise.
22207 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22208 (easy_altivec_constant): Likewise.
22209 (output_vec_const_move): Likewise.
22210 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22211 simple move.
22212 (rs6000_expand_vector_extract): Likewise.
22213 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22214 addressing.
22215 (rs6000_const_vec): Add support for V1TImode.
22216 (rs6000_emit_le_vsx_load): Swap double words when loading or
22217 storing TImode/V1TImode.
22218 (rs6000_emit_le_vsx_store): Likewise.
22219 (rs6000_emit_le_vsx_move): Likewise.
22220 (rs6000_emit_move): Add support for V1TImode.
22221 (altivec_expand_ld_builtin): Likewise.
22222 (altivec_expand_st_builtin): Likewise.
22223 (altivec_expand_vec_init_builtin): Likewise.
22224 (altivec_expand_builtin): Likewise.
22225 (rs6000_init_builtins): Add support for V1TImode type. Add
22226 support for ISA 2.07 128-bit integer builtins. Define type names
22227 for the VSX/Altivec vector types.
22228 (altivec_init_builtins): Add support for overloaded vector
22229 functions with V1TImode type.
22230 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22231 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22232 external function.
22233 (rs6000_split_128bit_ok_p): Likewise.
22234 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22235 __int128_t and vector __uint128_t.
22236
22237 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22238 and mode attributes.
22239 (VSX_M): Likewise.
22240 (VSX_M2): Likewise.
22241 (VSm): Likewise.
22242 (VSs): Likewise.
22243 (VSr): Likewise.
22244 (VSv): Likewise.
22245 (VS_scalar): Likewise.
22246 (VS_double): Likewise.
22247 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22248
22249 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22250 we support the ISA 2.07 128-bit integer arithmetic instructions.
22251 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22252 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22253 and TImode types for use with the builtin functions.
22254 (V1TI_type_node): Likewise.
22255 (unsigned_V1TI_type_node): Likewise.
22256 (intTI_type_internal_node): Likewise.
22257 (uintTI_type_internal_node): Likewise.
22258
22259 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22260 128-bit builtin functions.
22261 (UNSPEC_VADDEUQM): Likewise.
22262 (UNSPEC_VADDECUQ): Likewise.
22263 (UNSPEC_VSUBCUQ): Likewise.
22264 (UNSPEC_VSUBEUQM): Likewise.
22265 (UNSPEC_VSUBECUQ): Likewise.
22266 (VM): Add V1TImode to vector mode iterators.
22267 (VM2): Likewise.
22268 (VI_unit): Likewise.
22269 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22270 (altivec_vaddcuq): Likewise.
22271 (altivec_vsubuqm): Likewise.
22272 (altivec_vsubcuq): Likewise.
22273 (altivec_vaddeuqm): Likewise.
22274 (altivec_vaddecuq): Likewise.
22275 (altivec_vsubeuqm): Likewise.
22276 (altivec_vsubecuq): Likewise.
22277
22278 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22279 mode iterators.
22280 (BOOL_128): Likewise.
22281 (BOOL_REGS_OUTPUT): Likewise.
22282 (BOOL_REGS_OP1): Likewise.
22283 (BOOL_REGS_OP2): Likewise.
22284 (BOOL_REGS_UNARY): Likewise.
22285 (BOOL_REGS_AND_CR0): Likewise.
22286
22287 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22288 128-bit integer builtin support.
22289 (vec_vadduqm): Likewise.
22290 (vec_vaddecuq): Likewise.
22291 (vec_vaddeuqm): Likewise.
22292 (vec_vsubecuq): Likewise.
22293 (vec_vsubeuqm): Likewise.
22294 (vec_vsubcuq): Likewise.
22295 (vec_vsubuqm): Likewise.
22296
22297 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22298 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22299 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22300 128-bit integer add/subtract to ISA 2.07.
22301
22302 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22303
22304 * config/arc/arc.c (arc_predicate_delay_insns):
22305 Fix third argument passed to conditionalize_nonjump.
22306
22307 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22308
22309 * config/aarch64/aarch64-builtins.c
22310 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22311 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22312 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22313 instead of __builtin_lfloor.
22314 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22315
22316 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22317
22318 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22319 (tree_ssa_ifcombine_bb_1): New function.
22320 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22321 is an empty forwarder block to then_bb or vice versa and then_bb
22322 and else_bb are effectively swapped.
22323
22324 2014-03-12 Christian Bruel <christian.bruel@st.com>
22325
22326 PR target/60264
22327 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22328 REG_CFA_DEF_CFA note.
22329 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22330 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22331
22332 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22333
22334 PR tree-optimization/60454
22335 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22336
22337 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22338
22339 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22340 Do not define target_cpu_default2 to generic.
22341 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22342 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22343 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22344
22345 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22346 Marc Glisse <marc.glisse@inria.fr>
22347
22348 PR tree-optimization/60502
22349 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22350 instead of build_low_bits_mask.
22351
22352 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22353
22354 PR middle-end/60482
22355 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22356 if there are multiple uses, but op doesn't live on E edge.
22357 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22358 clobber stmts before __builtin_unreachable.
22359
22360 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22361
22362 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22363 hard_frame_pointer_rtx.
22364 * cse.c (cse_insn): Remove volatile check.
22365 * cselib.c (cselib_process_insn): Likewise.
22366 * dse.c (scan_insn): Likewise.
22367
22368 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22369
22370 * config/arc/arc.c (conditionalize_nonjump): New function,
22371 broken out of ...
22372 (arc_ifcvt): ... this.
22373 (arc_predicate_delay_insns): Use it.
22374
22375 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22376
22377 * config/arc/predicates.md (extend_operand): During/after reload,
22378 allow const_int_operand.
22379 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22380 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22381 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22382 to "i".
22383 (umulsi3_highpart_i): Likewise.
22384
22385 2014-03-11 Richard Biener <rguenther@suse.de>
22386
22387 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22388 Add asserts to guard possible wrong-code bugs.
22389
22390 2014-03-11 Richard Biener <rguenther@suse.de>
22391
22392 PR tree-optimization/60429
22393 PR tree-optimization/60485
22394 * tree-ssa-structalias.c (set_union_with_increment): Properly
22395 take into account all fields that overlap the shifted vars.
22396 (do_sd_constraint): Likewise.
22397 (do_ds_constraint): Likewise.
22398 (get_constraint_for_ptr_offset): Likewise.
22399
22400 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22401
22402 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22403 (nios2_compute_frame_layout):
22404 Add calculation of cfun->machine->fp_save_offset.
22405 (nios2_expand_prologue): Correct setting of frame pointer register
22406 in prologue.
22407 (nios2_expand_epilogue): Update recovery of stack pointer from
22408 frame pointer accordingly.
22409 (nios2_initial_elimination_offset): Update calculation of offset
22410 for eliminating to HARD_FRAME_POINTER_REGNUM.
22411
22412 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22413
22414 PR ipa/60457
22415 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22416 cgraph_get_create_node on VAR_DECLs.
22417
22418 2014-03-10 Richard Biener <rguenther@suse.de>
22419
22420 PR middle-end/60474
22421 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22422
22423 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22424
22425 * config/vms/vms.opt (vms_float_format): New variable.
22426
22427 2014-03-08 Tobias Burnus <burnus@net-b.de>
22428
22429 * doc/invoke.texi (-fcilkplus): Update implementation status.
22430
22431 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22432 Richard Biener <rguenther@suse.de>
22433
22434 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22435 consistently accross all TUs.
22436 (run_gcc): Enable -fshort-double automatically at link at link-time
22437 and disallow override.
22438
22439 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22440
22441 PR target/58271
22442 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22443 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22444 if they can't be used.
22445
22446 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22447
22448 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22449 for Solaris 11/x86 ld.
22450 * configure: Regenerate.
22451
22452 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22453
22454 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22455 (LIB_TLS_SPEC): Save as ld_tls_libs.
22456 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22457 (HAVE_AS_IX86_TLSLDM): New test.
22458 * configure, config.in: Regenerate.
22459 * config/i386/i386.c (legitimize_tls_address): Fall back to
22460 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22461 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22462 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22463 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22464
22465 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22466
22467 * common.opt (fira-loop-pressure): Mark as optimization.
22468
22469 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22470
22471 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22472 an OpenMP mappable type.
22473
22474 2014-03-06 Matthias Klose <doko@ubuntu.com>
22475
22476 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22477 MULTILIB_OSDIRNAMES is not defined.
22478
22479 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22480 Meador Inge <meadori@codesourcery.com>
22481
22482 PR target/58595
22483 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22484 (arm_legitimize_address): Call legitimize_tls_address for any
22485 arm_tls_referenced_p expression, handle constant addend. Call it
22486 before testing for !TARGET_ARM.
22487 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22488
22489 2014-03-06 Richard Biener <rguenther@suse.de>
22490
22491 PR middle-end/60445
22492 PR lto/60424
22493 PR lto/60427
22494 Revert
22495 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22496
22497 * tree-streamer.c (record_common_node): Assert we don't record
22498 nodes with type double.
22499 (preload_common_node): Skip type double, complex double and double
22500 pointer since it is now frontend dependent due to fshort-double option.
22501
22502 2014-03-06 Richard Biener <rguenther@suse.de>
22503
22504 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22505 or -fno-lto is specified and the linker has full plugin support.
22506 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22507 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22508 * lto-wrapper.c (merge_and_complain): Merge compile-time
22509 optimization levels.
22510 (run_gcc): And pass it through to the link options.
22511
22512 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22513
22514 PR debug/60381
22515 Revert:
22516 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22517 PR debug/59992
22518 * cselib.c (remove_useless_values): Skip to avoid quadratic
22519 behavior if the condition moved from...
22520 (cselib_process_insn): ... here holds.
22521
22522 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22523
22524 PR plugins/59335
22525 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22526 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22527
22528 PR plugins/59335
22529 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22530 (TM_H): Add x86-tune.def.
22531
22532 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22533
22534 * config/aarch64/aarch64.c (generic_tunings):
22535 Use cortexa57_extra_costs.
22536
22537 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22538
22539 PR lto/60404
22540 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22541 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22542 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22543 cost for in_lto_p.
22544
22545 2014-03-04 Heiher <r@hev.cc>
22546
22547 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22548 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22549
22550 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22551
22552 * config/i386/predicates.md (const2356_operand): Change to ...
22553 (const2367_operand): ... this.
22554 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22555 const2367_operand.
22556 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22557 (*avx512pf_scatterpf<mode>sf): Ditto.
22558 (avx512pf_scatterpf<mode>df): Ditto.
22559 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22560 (*avx512pf_scatterpf<mode>df): Ditto.
22561 * config/i386/i386.c (ix86_expand_builtin): Update
22562 incorrect hint operand error message.
22563
22564 2014-03-04 Richard Biener <rguenther@suse.de>
22565
22566 * lto-section-in.c (lto_get_section_data): Fix const cast.
22567
22568 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22569
22570 * tree-streamer.c (record_common_node): Assert we don't record
22571 nodes with type double.
22572 (preload_common_node): Skip type double, complex double and double
22573 pointer since it is now frontend dependent due to fshort-double option.
22574
22575 2014-03-04 Richard Biener <rguenther@suse.de>
22576
22577 PR lto/60405
22578 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22579 (lto_input_toplevel_asms): Likewise.
22580 * lto-section-in.c (lto_get_section_data): Instead do it here
22581 for every section.
22582
22583 2014-03-04 Richard Biener <rguenther@suse.de>
22584
22585 PR tree-optimization/60382
22586 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22587 dead PHIs a reduction.
22588
22589 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22590
22591 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22592 hint value.
22593 (_mm_prefetch): Move out of GCC target("sse") pragma.
22594 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22595 GCC target("prfchw") pragma.
22596 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22597 for locality <= 2.
22598 * config/i386/i386.c (ix86_option_override_internal): Enable
22599 -mprfchw with -mprefetchwt1.
22600
22601 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22602
22603 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22604 Mark as varying.
22605
22606 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22607
22608 * opts.h (CL_PCH_IGNORE): Define.
22609 * targhooks.c (option_affects_pch_p):
22610 Return false for options that have CL_PCH_IGNORE set.
22611 * opt-functions.awk: Process PchIgnore.
22612 * doc/options.texi: Document PchIgnore.
22613
22614 * config/arc/arc.opt (misize): Add PchIgnore property.
22615
22616 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22617
22618 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22619 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22620 constraint on constants to permit them being loaded into
22621 GENERAL_REGS or BASE_REGS.
22622
22623 2014-03-03 Nick Clifton <nickc@redhat.com>
22624
22625 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22626 anti-cacnonical alternatives.
22627 (negandhi3_real): New pattern.
22628 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22629
22630 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22631
22632 * config/avr/avr-mcus.def: Remove atxmega16x1.
22633 * config/avr/avr-tables.opt: Regenerate.
22634 * config/avr/t-multilib: Regenerate.
22635 * doc/avr-mmcu.texi: Regenerate.
22636
22637 2014-03-03 Tobias Grosser <tobias@grosser.es>
22638 Mircea Namolaru <mircea.namolaru@inria.fr>
22639
22640 PR tree-optimization/58028
22641 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22642 scalar dimensions.
22643
22644 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22645
22646 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22647 not handled by recognizers.
22648
22649 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22650
22651 PR middle-end/60175
22652 * function.c (expand_function_end): Don't emit
22653 clobber_return_register sequence if clobber_after is a BARRIER.
22654 * cfgexpand.c (construct_exit_block): Append instructions before
22655 return_label to prev_bb.
22656
22657 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22658
22659 * config/rs6000/constraints.md: Document reserved use of "wc".
22660
22661 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22662
22663 PR ipa/60150
22664 * ipa.c (function_and_variable_visibility): When dissolving comdat
22665 group, also set all symbols to local.
22666
22667 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22668
22669 PR ipa/60306
22670
22671 Revert:
22672 2013-12-14 Jan Hubicka <jh@suse.cz>
22673 PR middle-end/58477
22674 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22675
22676 2014-03-02 Jon Beniston <jon@beniston.com>
22677
22678 PR bootstrap/48230
22679 PR bootstrap/50927
22680 PR bootstrap/52466
22681 PR target/46898
22682 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22683 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22684 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22685 (simple_return, *simple_return): New patterns
22686 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22687 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22688
22689 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22690
22691 * dwarf2out.c (gen_subprogram_die): Tidy.
22692
22693 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22694
22695 PR target/60071
22696 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22697 (*mov_t_msb_neg_negc): ... this new insn.
22698
22699 2014-02-28 Jason Merrill <jason@redhat.com>
22700
22701 PR c++/58678
22702 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22703 function.
22704
22705 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22706
22707 PR c++/60314
22708 * dwarf2out.c (decltype_auto_die): New static.
22709 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22710 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22711 (is_cxx_auto): Likewise.
22712
22713 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22714
22715 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22716 we are not using general regs only.
22717
22718 2014-02-28 Richard Biener <rguenther@suse.de>
22719
22720 PR target/60280
22721 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22722 previous fix and only allow to remove trivial pre-headers
22723 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22724 (remove_forwarder_block): Properly update the latch of a loop.
22725
22726 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22727
22728 PR debug/59992
22729 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22730 (cselib_preserved_hash_table): New.
22731 (preserve_constants_and_equivs): Move preserved vals to it.
22732 (cselib_find_slot): Look it up first.
22733 (cselib_init): Initialize it.
22734 (cselib_finish): Release it.
22735 (dump_cselib_table): Dump it.
22736
22737 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22738
22739 PR debug/59992
22740 * cselib.c (remove_useless_values): Skip to avoid quadratic
22741 behavior if the condition moved from...
22742 (cselib_process_insn): ... here holds.
22743
22744 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22745
22746 PR debug/57232
22747 * var-tracking.c (vt_initialize): Apply the same condition to
22748 preserve the CFA base value.
22749
22750 2014-02-28 Joey Ye <joey.ye@arm.com>
22751
22752 PR target/PR60169
22753 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22754 if reload in progress or completed.
22755
22756 2014-02-28 Tobias Burnus <burnus@net-b.de>
22757
22758 PR middle-end/60147
22759 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22760 NAMELIST_DECL.
22761
22762 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22763
22764 * doc/tm.texi.in (Condition Code Status): Update documention for
22765 relative locations of cc0-setter and cc0-user.
22766
22767 2014-02-27 Jeff Law <law@redhat.com>
22768
22769 PR rtl-optimization/52714
22770 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22771 into two independent simple sets, if I3 is a jump, ensure the
22772 pattern we place into I3 is a (set (pc) ...).
22773
22774 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22775 Jeff Law <law@redhat.com>
22776
22777 PR rtl-optimization/49847
22778 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22779 are in different blocks.
22780 * doc/tm.texi (Condition Code Status): Update documention for
22781 relative locations of cc0-setter and cc0-user.
22782
22783 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22784
22785 PR target/59222
22786 * lra.c (lra_emit_add): Check SUBREG too.
22787
22788 2014-02-27 Andreas Schwab <schwab@suse.de>
22789
22790 * config/m68k/m68k.c (m68k_option_override): Disable
22791 -flive-range-shrinkage for classic m68k.
22792 (m68k_override_options_after_change): Likewise.
22793
22794 2014-02-27 Marek Polacek <polacek@redhat.com>
22795
22796 PR middle-end/59223
22797 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22798 -Wmaybe-uninitialized.
22799
22800 2014-02-27 Alan Modra <amodra@gmail.com>
22801
22802 PR target/57936
22803 * reload1.c (emit_input_reload_insns): When reload_override_in,
22804 set old to rl->in_reg when rl->in_reg is a subreg.
22805
22806 2014-02-26 Richard Biener <rguenther@suse.de>
22807
22808 PR bootstrap/60343
22809 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22810
22811 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22812
22813 * common/config/i386/predicates.md (const1256_operand): Remove.
22814 (const2356_operand): New.
22815 (const_1_to_2_operand): Remove.
22816 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22817 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22818 (*avx512pf_gatherpf<mode>sf): Ditto.
22819 (avx512pf_gatherpf<mode>df): Ditto.
22820 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22821 (*avx512pf_gatherpf<mode>df): Ditto.
22822 (avx512pf_scatterpf<mode>sf): Ditto.
22823 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22824 (*avx512pf_scatterpf<mode>sf): Ditto.
22825 (avx512pf_scatterpf<mode>df): Ditto.
22826 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22827 (*avx512pf_scatterpf<mode>df): Ditto.
22828 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22829
22830 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22831
22832 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22833 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22834 (_mm512_mask_testn_epi64_mask): Move to ...
22835 * config/i386/avx512cdintrin.h: Here.
22836 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22837 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22838 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22839 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22840 TARGET_AVX512F from TARGET_AVX512CD.
22841
22842 2014-02-26 Richard Biener <rguenther@suse.de>
22843
22844 PR ipa/60327
22845 * ipa.c (walk_polymorphic_call_targets): Properly guard
22846 call to inline_update_overall_summary.
22847
22848 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22849
22850 PR target/60280
22851 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22852 and latches only if requested. Fix latch if it is removed.
22853 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22854 LOOPS_HAVE_PREHEADERS.
22855
22856 2014-02-25 Andrew Pinski <apinski@cavium.com>
22857
22858 * builtins.c (expand_builtin_thread_pointer): Create a new target
22859 when the target is NULL.
22860
22861 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22862
22863 PR rtl-optimization/60317
22864 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22865 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22866 * lra-assigns.c: Include params.h.
22867 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22868 other reload pseudos considerations.
22869
22870 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22871
22872 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22873 to use canonical form for nor<mode>3.
22874
22875 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22876
22877 PR target/55426
22878 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22879 conversions.
22880
22881 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22882
22883 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22884 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22885 (ix86_handle_option): Handle OPT_mprefetchwt1.
22886 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22887 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22888 PREFETCHWT1 CPUID.
22889 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22890 OPTION_MASK_ISA_PREFETCHWT1.
22891 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22892 (PTA_PREFETCHWT1): New.
22893 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22894 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22895 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22896 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22897 (*prefetch_avx512pf_<mode>_: Change into ...
22898 (*prefetch_prefetchwt1_<mode>: This.
22899 * config/i386/i386.opt (mprefetchwt1): New.
22900 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22901 (_mm_prefetch): Handle intent to write.
22902 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22903
22904 2014-02-25 Richard Biener <rguenther@suse.de>
22905
22906 PR middle-end/60291
22907 * emit-rtl.c (mem_attrs_htab): Remove.
22908 (mem_attrs_htab_hash): Likewise.
22909 (mem_attrs_htab_eq): Likewise.
22910 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22911 (init_emit_once): Do not allocate mem_attrs_htab.
22912
22913 2014-02-25 Richard Biener <rguenther@suse.de>
22914
22915 PR lto/60319
22916 * lto-opts.c (lto_write_options): Output non-explicit conservative
22917 -fwrapv, -fno-trapv and -fno-strict-overflow.
22918 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22919 (run_gcc): And pass them through.
22920
22921 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22922
22923 * sel-sched.c (calculate_new_fences): New parameter ptime.
22924 Calculate it as a maximum over all fence cycles.
22925 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22926 Print the final schedule timing when sched_verbose.
22927
22928 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22929
22930 PR rtl-optimization/60292
22931 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22932 bit fot the fence instruction.
22933
22934 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22935
22936 * calls.h: Fix typo in comment.
22937
22938 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22939
22940 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22941 adjusting offsetable addresses.
22942
22943 2014-02-24 Guozhi Wei <carrot@google.com>
22944
22945 * sparseset.h (sparseset_pop): Fix the wrong index.
22946
22947 2014-02-24 Walter Lee <walt@tilera.com>
22948
22949 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22950 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22951 triplet.
22952 * common/config/tilegx/tilegx-common.c
22953 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22954 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22955 (LINK_SPEC): Ditto.
22956 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22957 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22958 (tilegx_gimplify_va_arg_expr): Handle big endian.
22959 (tilegx_expand_unaligned_load): Ditto.
22960 (tilegx_expand_unaligned_store): Ditto.
22961 (TARGET_RETURN_IN_MSB): New.
22962 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22963 (TARGET_ENDIAN_DEFAULT): New.
22964 (TARGET_BIG_ENDIAN): Handle big endian.
22965 (BYTES_BIG_ENDIAN): Ditto.
22966 (WORDS_BIG_ENDIAN): Ditto.
22967 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22968 (ENDIAN_SPEC): New.
22969 (EXTRA_SPECS): New.
22970 * config/tilegx/tilegx.md (extv): Handle big endian.
22971 (extzv): Ditto.
22972 (insn_st<n>): Ditto.
22973 (insn_st<n>_add<bitsuffix>): Ditto.
22974 (insn_stnt<n>): Ditto.
22975 (insn_stnt<n>_add<bitsuffix>):Ditto.
22976 (vec_interleave_highv8qi): Handle big endian.
22977 (vec_interleave_highv8qi_be): New.
22978 (vec_interleave_highv8qi_le): New.
22979 (insn_v1int_h): Handle big endian.
22980 (vec_interleave_lowv8qi): Handle big endian.
22981 (vec_interleave_lowv8qi_be): New.
22982 (vec_interleave_lowv8qi_le): New.
22983 (insn_v1int_l): Handle big endian.
22984 (vec_interleave_highv4hi): Handle big endian.
22985 (vec_interleave_highv4hi_be): New.
22986 (vec_interleave_highv4hi_le): New.
22987 (insn_v2int_h): Handle big endian.
22988 (vec_interleave_lowv4hi): Handle big endian.
22989 (vec_interleave_lowv4hi_be): New.
22990 (vec_interleave_lowv4hi_le): New.
22991 (insn_v2int_l): Handle big endian.
22992 (vec_interleave_highv2si): Handle big endian.
22993 (vec_interleave_highv2si_be): New.
22994 (vec_interleave_highv2si_le): New.
22995 (insn_v4int_h): Handle big endian.
22996 (vec_interleave_lowv2si): Handle big endian.
22997 (vec_interleave_lowv2si_be): New.
22998 (vec_interleave_lowv2si_le): New.
22999 (insn_v4int_l): Handle big endian.
23000 * config/tilegx/tilegx.opt (mbig-endian): New option.
23001 (mlittle-endian): New option.
23002 * doc/install.texi: Document tilegxbe-linux.
23003 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23004
23005 2014-02-24 Martin Jambor <mjambor@suse.cz>
23006
23007 PR ipa/60266
23008 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23009 there are no parameter descriptors.
23010
23011 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23012
23013 PR rtl-optimization/60268
23014 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23015 initialization to ...
23016 (sched_rgn_init): ... here.
23017 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23018
23019 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23020
23021 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23022 names.
23023
23024 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23025
23026 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23027 definition.
23028
23029 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23030
23031 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23032 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23033
23034 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23035
23036 * config/microblaze/predicates.md: Add cmp_op predicate.
23037 * config/microblaze/microblaze.md: Add branch_compare instruction
23038 which uses cmp_op predicate and emits cmp insn before branch.
23039 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23040 to microblaze_expand_conditional_branch and consolidate logic.
23041 (microblaze_expand_conditional_branch): emit branch_compare
23042 insn instead of handling cmp op separate from branch insn.
23043
23044 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23045
23046 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23047 to permit subregs.
23048
23049 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23050
23051 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23052 define_insn with define_expand and new define_insn
23053 *altivec_lve<VI_char>x_internal.
23054 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23055 and new define_insn *altivec_stve<VI_char>x_internal.
23056 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23057 prototype.
23058 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23059 lve*x built-ins.
23060 (altivec_expand_stvex_be): New function.
23061
23062 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23063
23064 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23065 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23066 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23067 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23068
23069 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23070
23071 PR target/60298
23072 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23073 instead of emit_move_insn.
23074
23075 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23076
23077 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23078 vspltw with vsldoi.
23079 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23080 gen_altivec_vsumsws.
23081
23082 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23083
23084 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23085 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23086 (altivec_lvxl_<mode>): New define_expand incorporating
23087 -maltivec=be semantics where needed.
23088 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23089 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23090 semantics where needed.
23091 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23092 (altivec_stvx_<mode>): New define_expand incorporating
23093 -maltivec=be semantics where needed.
23094 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23095 VM2 iterator instead of V4SI.
23096 (altivec_stvxl_<mode>): New define_expand incorporating
23097 -maltivec=be semantics where needed.
23098 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23099 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23100 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23101 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23102 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23103 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23104 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23105 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23106 ALTIVEC_BUILTIN_STVXL.
23107 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23108 (altivec_expand_stvx_be): Likewise.
23109 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23110 (altivec_expand_lvx_be): Likewise.
23111 (altivec_expand_stvx_be): Likewise.
23112 (altivec_expand_builtin): Add cases for
23113 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23114 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23115 (altivec_init_builtins): Add definitions for
23116 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23117 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23118
23119 2014-02-21 Catherine Moore <clm@codesourcery.com>
23120
23121 * doc/invoke.texi (mvirt, mno-virt): Document.
23122 * config/mips/mips.opt (mvirt): New option.
23123 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23124
23125 2014-02-21 Richard Biener <rguenther@suse.de>
23126
23127 PR tree-optimization/60276
23128 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23129 (STMT_VINFO_MIN_NEG_DIST): New macro.
23130 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23131 STMT_VINFO_MIN_NEG_DIST.
23132 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23133 made for negative dependence distances still hold.
23134
23135 2014-02-21 Richard Biener <rguenther@suse.de>
23136
23137 PR middle-end/60291
23138 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23139 DECL_INITIAL for globals not in the current function context.
23140
23141 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23142
23143 PR tree-optimization/56490
23144 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23145 * tree-ssa-uninit.c: Include params.h.
23146 (compute_control_dep_chain): Add num_calls argument, return false
23147 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23148 num_calls to recursive call.
23149 (find_predicates): Change dep_chain into normal array,
23150 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23151 variable and adjust compute_control_dep_chain caller.
23152 (find_def_preds): Likewise.
23153
23154 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23155
23156 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23157 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23158
23159 2014-02-21 Nick Clifton <nickc@redhat.com>
23160
23161 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23162 (pushhi1): Likewise.
23163 (popqi1): Add mode to pre_dec.
23164 (pophi1): Likewise.
23165
23166 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23167
23168 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23169 mode for mask of V8SFmode permutation.
23170
23171 2014-02-20 Richard Henderson <rth@redhat.com>
23172
23173 PR c++/60272
23174 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23175 a new pseudo for OLDVAL.
23176
23177 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23178
23179 PR target/57896
23180 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23181 gen_reg_rtx if d->testing_p.
23182 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23183 if d->testing_p and we will certainly return true.
23184 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23185 if d->testing_p.
23186
23187 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23188
23189 * emit-rtl.c (gen_reg_rtx): Assert that
23190 crtl->emit.regno_pointer_align_length is non-zero.
23191
23192 2014-02-20 Richard Henderson <rth@redhat.com>
23193
23194 PR c++/60272
23195 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23196 on failure the store back into EXPECT.
23197
23198 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23199 Sandra Loosemore <sandra@codesourcery.com>
23200
23201 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23202 * config/nios2/nios2.c (nios2_function_profiler): Add
23203 -fPIC (flag_pic == 2) support.
23204 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23205 (nios2_large_offset_p): New function.
23206 (nios2_unspec_reloc_p): Move up position, update to use
23207 nios2_large_offset_p.
23208 (nios2_unspec_address): Remove function.
23209 (nios2_unspec_offset): New function.
23210 (nios2_large_got_address): New function.
23211 (nios2_got_address): Add large offset support.
23212 (nios2_legitimize_tls_address): Update usage of removed and new
23213 functions.
23214 (nios2_symbol_binds_local_p): New function.
23215 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23216 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23217 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23218 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23219 processing for (const (unspec ...)).
23220 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23221
23222 2014-02-20 Richard Biener <rguenther@suse.de>
23223
23224 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23225 doing the substitution.
23226 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23227
23228 2014-02-20 Martin Jambor <mjambor@suse.cz>
23229
23230 PR ipa/55260
23231 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23232 info when checking whether lattices are bottom.
23233
23234 2014-02-20 Richard Biener <rguenther@suse.de>
23235
23236 PR middle-end/60221
23237 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23238 regions at -O0.
23239
23240 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23241
23242 PR ipa/58555
23243 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23244 parameter specifying the scaling.
23245 (inline_call): Update.
23246 (want_inline_recursively): Guard division by zero.
23247 (recursive_inlining): Update.
23248 * ipa-inline.h (clone_inlined_nodes): Update.
23249
23250 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23251
23252 PR target/60204
23253 * config/i386/i386.c (classify_argument): Pass structures of size
23254 64 bytes or less in register.
23255
23256 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23257 Kirill Yukhin <kirill.yukhin@intel.com>
23258
23259 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23260 (_mm_rcp28_round_ss): Ditto.
23261 (_mm_rsqrt28_round_sd): Ditto.
23262 (_mm_rsqrt28_round_ss): Ditto.
23263 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23264 (_mm_rcp14_round_ss): Ditto.
23265 (_mm_rsqrt14_round_sd): Ditto.
23266 (_mm_rsqrt14_round_ss): Ditto.
23267 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23268 the first input operand, get rid of match_dup.
23269 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23270 attribute to sse.
23271 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23272 Ditto.
23273 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23274 operand as the first input operand, set type attribute.
23275 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23276 Set type attribute.
23277 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23278 operand as the first input operand, set type attribute.
23279
23280 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23281
23282 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23283 bit of zero.
23284
23285 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23286
23287 PR target/60207
23288 * config/i386/i386.c (construct_container): Remove TFmode check
23289 for X86_64_INTEGER_CLASS.
23290
23291 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23292
23293 PR target/59794
23294 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23295 only when -Wpsabi is enabled.
23296
23297 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23298
23299 PR target/59799
23300 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23301 passing arrays in registers are the same as for structs, so remove the
23302 special case for them.
23303
23304 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23305
23306 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23307 destination type, extract only the valid bits if the source type is not
23308 integral and has a different mode.
23309
23310 2014-02-19 Richard Biener <rguenther@suse.de>
23311
23312 PR ipa/60243
23313 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23314 for all calls.
23315
23316 2014-02-19 Richard Biener <rguenther@suse.de>
23317
23318 PR ipa/60243
23319 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23320 (ipa_modify_call_arguments): Emit an argument load explicitely and
23321 preserve virtual SSA form there and for the replacement call.
23322 Do not update SSA form nor free dominance info.
23323
23324 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23325
23326 * ipa.c (function_and_variable_visibility): Also clear WEAK
23327 flag when disolving COMDAT_GROUP.
23328
23329 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23330
23331 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23332 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23333 not devirtualizing.
23334 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23335 do more sanity checks.
23336 (detect_type_change): Return true when giving up early.
23337 (compute_complex_assign_jump_func): Fix type parameter of
23338 ipa_set_ancestor_jf.
23339 (compute_complex_ancestor_jump_func): Likewise.
23340 (update_jump_functions_after_inlining): Fix updating of
23341 ancestor function.
23342 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23343
23344 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23345
23346 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23347 inline clones when edge disappears.
23348
23349 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23350
23351 PR target/60203
23352 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23353 Split 64-bit moves into 2 patterns. Do not allow the use of
23354 direct move for TDmode in little endian, since the decimal value
23355 has little endian bytes within a word, but the 64-bit pieces are
23356 ordered in a big endian fashion, and normal subreg's of TDmode are
23357 not allowed.
23358 (mov<mode>_64bit_dm): Likewise.
23359 (movtd_64bit_nodm): Likewise.
23360
23361 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23362
23363 PR tree-optimization/60174
23364 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23365 statement of an SSA_NAME that occurs in an abnormal PHI node.
23366
23367 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23368
23369 PR sanitizer/60142
23370 * final.c (SEEN_BB): Remove.
23371 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23372 (final_scan_insn): Don't force_source_line on second
23373 NOTE_INSN_BASIC_BLOCK.
23374
23375 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23376
23377 PR target/60205
23378 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23379 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23380 (type_natural_mode): Warn ABI change when %zmm register is not
23381 available for AVX512F vector value passing.
23382
23383 2014-02-18 Kai Tietz <ktietz@redhat.com>
23384
23385 PR target/60193
23386 * config/i386/i386.c (ix86_expand_prologue): Use value in
23387 rax register as displacement when restoring %r10 or %rax.
23388 Fix wrong offset when restoring both registers.
23389
23390 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23391
23392 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23393 assertion with conditional return.
23394
23395 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23396 Uros Bizjak <ubizjak@gmail.com>
23397
23398 PR driver/60233
23399 * config/i386/driver-i386.c (host_detect_local_cpu): If
23400 YMM state is not saved by the OS, also clear has_f16c. Move
23401 CPUID 0x80000001 handling before YMM state saving checking.
23402
23403 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23404
23405 PR rtl-optimization/58960
23406 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23407 factored out from ...
23408 (sched_init): ... here.
23409 (free_global_sched_pressure_data): New, factored out from ...
23410 (sched_finish): ... here.
23411 * sched-int.h (free_global_sched_pressure_data): Declare.
23412 * sched-rgn.c (nr_regions_initial): New static global.
23413 (haifa_find_rgns): Initialize it.
23414 (schedule_region): Disable sched-pressure for the newly
23415 generated regions.
23416
23417 2014-02-17 Richard Biener <rguenther@suse.de>
23418
23419 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23420 release SSA defs of pattern stmts.
23421
23422 2014-02-17 Richard Biener <rguenther@suse.de>
23423
23424 * tree-inline.c (expand_call_inline): Release the virtual
23425 operand defined by the call we are about to inline.
23426
23427 2014-02-17 Richard Biener <rguenther@suse.de>
23428
23429 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23430
23431 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23432 Ilya Tocar <ilya.tocar@intel.com>
23433
23434 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23435 arguments order in builtin.
23436 (_mm512_permutexvar_epi64): Ditto.
23437 (_mm512_mask_permutexvar_epi64): Ditto
23438 (_mm512_maskz_permutexvar_epi32): Ditto
23439 (_mm512_permutexvar_epi32): Ditto
23440 (_mm512_mask_permutexvar_epi32): Ditto
23441
23442 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23443
23444 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23445 (p8_vmrgow): Likewise.
23446
23447 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23448
23449 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23450 endian targets.
23451
23452 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23453
23454 PR target/60203
23455 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23456 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23457 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23458 using direct move instructions on ISA 2.07. Also adjust
23459 instruction length for 64-bit.
23460 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23461 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23462
23463 2014-02-15 Alan Modra <amodra@gmail.com>
23464
23465 PR target/58675
23466 PR target/57935
23467 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23468 find_replacement on parts of insn rtl that might be reloaded.
23469
23470 2014-02-15 Richard Biener <rguenther@suse.de>
23471
23472 PR tree-optimization/60183
23473 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23474 (tree_ssa_phiprop): Calculate and free post-dominators.
23475
23476 2014-02-14 Jeff Law <law@redhat.com>
23477
23478 PR rtl-optimization/60131
23479 * ree.c (get_extended_src_reg): New function.
23480 (combine_reaching_defs): Use it rather than assuming location of REG.
23481 (find_and_remove_re): Verify first operand of extension is
23482 a REG before adding the insns to the copy list.
23483
23484 2014-02-14 Roland McGrath <mcgrathr@google.com>
23485
23486 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23487 * configure: Regenerated.
23488 * config.in: Regenerated.
23489 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23490 instead of ASM_SHORT.
23491
23492 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23493 Richard Earnshaw <rearnsha@arm.com>
23494
23495 PR rtl-optimization/59535
23496 * lra-constraints.c (process_alt_operands): Encourage alternative
23497 when unassigned pseudo class is superset of the alternative class.
23498 (inherit_reload_reg): Don't inherit when optimizing for code size.
23499 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23500 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23501 modes not less than 4 for Thumb1.
23502
23503 2014-02-14 Kyle McMartin <kyle@redhat.com>
23504
23505 PR pch/60010
23506 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23507
23508 2014-02-14 Richard Biener <rguenther@suse.de>
23509
23510 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23511 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23512 Do not strip INDIRECT_REFs.
23513
23514 2014-02-14 Richard Biener <rguenther@suse.de>
23515
23516 PR lto/60179
23517 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23518 DECL_FUNCTION_SPECIFIC_TARGET.
23519 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23520 * tree-streamer-out.c (pack_ts_target_option): Remove.
23521 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23522 (write_ts_function_decl_tree_pointers): Do not stream
23523 DECL_FUNCTION_SPECIFIC_TARGET.
23524 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23525 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23526 (lto_input_ts_function_decl_tree_pointers): Do not stream
23527 DECL_FUNCTION_SPECIFIC_TARGET.
23528
23529 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23530
23531 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23532 (get_initial_def_for_induction, vectorizable_induction): Ignore
23533 debug stmts when looking for exit_phi.
23534 (vectorizable_live_operation): Fix up condition.
23535
23536 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23537
23538 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23539 nreverse() because it changes the content of original tree list.
23540
23541 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23542
23543 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23544 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23545
23546 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23547
23548 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23549 GNU coding standards.
23550
23551 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23552
23553 PR debug/60152
23554 * dwarf2out.c (gen_subprogram_die): Don't call
23555 add_calling_convention_attribute if subr_die is old_die.
23556
23557 2014-02-13 Sharad Singhai <singhai@google.com>
23558
23559 * doc/optinfo.texi: Fix order of nodes.
23560
23561 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23562
23563 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23564 operands[2], not operands[3].
23565
23566 2014-02-13 Richard Biener <rguenther@suse.de>
23567
23568 PR bootstrap/59878
23569 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23570 mention the possibility of an in-tree build.
23571 (CLooG): Update recommended version to 0.18.1, mention the
23572 possibility of an in-tree build and clarify that the ISL
23573 bundled with CLooG does not work.
23574
23575 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23576
23577 PR target/43546
23578 * expr.c (compress_float_constant): If x is a hard register,
23579 extend into a pseudo and then move to x.
23580
23581 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23582
23583 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23584 caused by bad second argument to warning_at() with -mhotpatch and
23585 nested functions (e.g. with gfortran).
23586
23587 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23588
23589 * opts.c (option_name): Remove "enabled by default" rider.
23590
23591 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23592
23593 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23594
23595 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23596 Uros Bizjak <ubizjak@gmail.com>
23597
23598 PR target/60151
23599 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23600 * configure: Regenerated.
23601
23602 2014-02-12 Richard Biener <rguenther@suse.de>
23603
23604 * vec.c (vec_prefix::calculate_allocation): Move as
23605 inline variant to vec.h.
23606 (vec_prefix::calculate_allocation_1): New out-of-line version.
23607 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23608 (vec_prefix::m_has_auto_buf): Rename to ...
23609 (vec_prefix::m_using_auto_storage): ... this.
23610 (vec_prefix::calculate_allocation): Inline the easy cases
23611 and dispatch to calculate_allocation_1 which doesn't need the
23612 prefix address.
23613 (va_heap::reserve): Use gcc_checking_assert.
23614 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23615 m_using_auto_storage.
23616 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23617 member and adjust.
23618 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23619 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23620 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23621
23622 2014-02-12 Richard Biener <rguenther@suse.de>
23623
23624 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23625 when we found a dependence.
23626
23627 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23628
23629 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23630 common code...
23631 (maybe_fold_stmt): ... into this new function.
23632 * omp-low.c (lower_omp): Update comment.
23633
23634 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23635 last use.
23636
23637 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23638 dereference.
23639
23640 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23641
23642 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23643 identifiers in comments.
23644 (cortexa53_extra_costs): Likewise.
23645 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23646 (cortexa7_extra_costs): Likewise.
23647 (cortexa12_extra_costs): Likewise.
23648 (cortexa15_extra_costs): Likewise.
23649 (v7m_extra_costs): Likewise.
23650
23651 2014-02-12 Richard Biener <rguenther@suse.de>
23652
23653 PR middle-end/60092
23654 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23655 of posix_memalign being successful.
23656 (lower_stmt): Restrict lowering of posix_memalign to when
23657 -ftree-bit-ccp is enabled.
23658
23659 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23660
23661 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23662 arg_loc.
23663 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23664
23665 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23666
23667 PR rtl-optimization/60116
23668 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23669 other_insn once the combination has been validated.
23670
23671 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23672
23673 PR lto/59468
23674 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23675 and wrapper.
23676 * ipa-devirt.c: Include demangle.h
23677 (odr_violation_reported): New static variable.
23678 (add_type_duplicate): Update odr_violations.
23679 (maybe_record_node): Add completep parameter; update it.
23680 (record_target_from_binfo): Add COMPLETEP parameter;
23681 update it as needed.
23682 (possible_polymorphic_call_targets_1): Likewise.
23683 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23684 rename FINAL to COMPLETE.
23685 (record_targets_from_bases): Sanity check we found the binfo;
23686 fix COMPLETEP updating.
23687 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23688 parameter, fix computing of COMPLETEP.
23689 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23690 at LTO time do demangling.
23691 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23692 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23693 parameter.
23694 (gimple_get_virt_method_for_binfo): Likewise.
23695 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23696 gimple_get_virt_method_for_vtable): Update prototypes.
23697
23698 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23699
23700 PR target/49008
23701 * genautomata.c (add_presence_absence): Fix typo with
23702 {final_}presence_list.
23703
23704 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23705
23706 PR target/60137
23707 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23708 for VSX/Altivec vectors that land in GPR registers.
23709
23710 2014-02-11 Richard Henderson <rth@redhat.com>
23711 Jakub Jelinek <jakub@redhat.com>
23712
23713 PR debug/59776
23714 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23715 around drhs if type conversion to lacc->type is not useless.
23716
23717 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23718
23719 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23720 tuning struct.
23721 (cortex-a57.cortex-a53): Likewise.
23722 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23723
23724 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23725
23726 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23727 arm_restrict_it.
23728
23729 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23730
23731 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23732 add_options_for_arm_vfp3.
23733
23734 2014-02-11 Jeff Law <law@redhat.com>
23735
23736 PR middle-end/54041
23737 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23738 object with an undesirable mode.
23739
23740 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23741
23742 PR libgomp/60107
23743 * config/i386/sol2-9.h: New file.
23744 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23745 *-*-solaris2.9*): Use it.
23746
23747 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23748
23749 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23750 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23751
23752 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23753
23754 * config/microblaze/microblaze.c: Extend mcpu version format
23755
23756 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23757
23758 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23759
23760 2014-02-10 Richard Henderson <rth@redhat.com>
23761
23762 PR target/59927
23763 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23764 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23765 ms-abi vs -mno-accumulate-outgoing-args.
23766 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23767 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23768 respect to ms-abi.
23769
23770 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23771
23772 PR middle-end/60080
23773 * cfgexpand.c (expand_asm_operands): Attach source location to
23774 ASM_INPUT rtx objects.
23775 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23776
23777 2014-02-10 Nick Clifton <nickc@redhat.com>
23778
23779 * config/mn10300/mn10300.c (popcount): New function.
23780 (mn10300_expand_prologue): Include saved registers in stack usage
23781 count.
23782
23783 2014-02-10 Jeff Law <law@redhat.com>
23784
23785 PR middle-end/52306
23786 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23787 when changing the SET_DEST of a prior insn to avoid an input reload.
23788
23789 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23790
23791 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23792 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23793 -mcall-openbsd, or -mcall-linux.
23794 (CC1_ENDIAN_BIG_SPEC): Remove.
23795 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23796 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23797 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23798 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23799 and %cc1_endian_default.
23800 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23801
23802 2014-02-10 Richard Biener <rguenther@suse.de>
23803
23804 PR tree-optimization/60115
23805 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23806 MEM_REF handling. Properly verify that the accesses are not
23807 out of the objects bound.
23808
23809 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23810
23811 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23812 coretex to cortex.
23813
23814 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23815
23816 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23817 proper constants and fix formatting.
23818 (possible_polymorphic_call_targets): Fix formatting.
23819
23820 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23821 Ilya Tocar <ilya.tocar@intel.com>
23822
23823 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23824 (_mm512_loadu_epi32): Renamed into...
23825 (_mm512_loadu_si512): This.
23826 (_mm512_storeu_epi32): Renamed into...
23827 (_mm512_storeu_si512): This.
23828 (_mm512_maskz_ceil_ps): Removed.
23829 (_mm512_maskz_ceil_pd): Ditto.
23830 (_mm512_maskz_floor_ps): Ditto.
23831 (_mm512_maskz_floor_pd): Ditto.
23832 (_mm512_floor_round_ps): Ditto.
23833 (_mm512_floor_round_pd): Ditto.
23834 (_mm512_ceil_round_ps): Ditto.
23835 (_mm512_ceil_round_pd): Ditto.
23836 (_mm512_mask_floor_round_ps): Ditto.
23837 (_mm512_mask_floor_round_pd): Ditto.
23838 (_mm512_mask_ceil_round_ps): Ditto.
23839 (_mm512_mask_ceil_round_pd): Ditto.
23840 (_mm512_maskz_floor_round_ps): Ditto.
23841 (_mm512_maskz_floor_round_pd): Ditto.
23842 (_mm512_maskz_ceil_round_ps): Ditto.
23843 (_mm512_maskz_ceil_round_pd): Ditto.
23844 (_mm512_expand_pd): Ditto.
23845 (_mm512_expand_ps): Ditto.
23846 * config/i386/i386.c (ix86_builtins): Remove
23847 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23848 (bdesc_args): Ditto.
23849 * config/i386/predicates.md (const1256_operand): New.
23850 (const_1_to_2_operand): Ditto.
23851 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23852 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23853 (*avx512pf_gatherpf<mode>sf): Ditto.
23854 (avx512pf_gatherpf<mode>df): Ditto.
23855 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23856 (*avx512pf_gatherpf<mode>df): Ditto.
23857 (avx512pf_scatterpf<mode>sf): Ditto.
23858 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23859 (*avx512pf_scatterpf<mode>sf): Ditto.
23860 (avx512pf_scatterpf<mode>df): Ditto.
23861 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23862 (*avx512pf_scatterpf<mode>df): Ditto.
23863 (avx512f_expand<mode>): Removed.
23864 (<shift_insn><mode>3<mask_name>): Change predicate type.
23865
23866 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23867
23868 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23869 not at the end of datarefs vector use ordered_remove to avoid
23870 reordering datarefs vector.
23871
23872 PR c/59984
23873 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23874 mark local addressable non-static vars as GOVD_PRIVATE
23875 instead of GOVD_LOCAL.
23876 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23877 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23878 than copying them.
23879
23880 PR middle-end/60092
23881 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23882 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23883 assume_aligned or alloc_align attributes.
23884 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23885 arguments. Handle also assume_aligned and alloc_align attributes.
23886 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23887 calls to functions with assume_aligned or alloc_align attributes.
23888 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23889
23890 2014-02-08 Terry Guo <terry.guo@arm.com>
23891
23892 * doc/invoke.texi: Document ARM -march=armv7e-m.
23893
23894 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23895
23896 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23897 flag on __cilkrts_rethrow builtin.
23898
23899 PR ipa/60026
23900 * ipa-cp.c (determine_versionability): Fail at -O0
23901 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23902 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23903
23904 Revert:
23905 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23906
23907 PR ipa/60026
23908 * tree-inline.c (copy_forbidden): Fail for
23909 __attribute__((optimize (0))) functions.
23910
23911 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23912
23913 * varpool.c: Include pointer-set.h.
23914 (varpool_remove_unreferenced_decls): Variables in other partitions
23915 will not be output; be however careful to not lose information
23916 about partitioning.
23917
23918 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23919
23920 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23921 lookup in the vtable constructor.
23922
23923 2014-02-07 Jeff Law <law@redhat.com>
23924
23925 PR target/40977
23926 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23927 define_insn_and_split.
23928
23929 * ipa-inline.c (inline_small_functions): Fix typos.
23930
23931 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23932
23933 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23934 (s390_can_use_return_insn): Declare.
23935 * config/s390/s390.h (EPILOGUE_USES): Define.
23936 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23937 instructions.
23938 (s390_chunkify_start): Handle return JUMP_LABELs.
23939 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23940 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23941 (s390_can_use_return_insn): New functions.
23942 (s390_fix_long_loop_prediction): Handle conditional returns.
23943 (TARGET_SET_UP_BY_PROLOGUE): Define.
23944 * config/s390/s390.md (ANY_RETURN): New code iterator.
23945 (*creturn, *csimple_return, return, simple_return): New patterns.
23946
23947 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23948
23949 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23950 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23951 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23952 REG_CFA_RESTORE list when deciding not to restore a register.
23953
23954 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23955
23956 * config/s390/s390.c: Include tree-pass.h and context.h.
23957 (s390_early_mach): New function, split out from...
23958 (s390_emit_prologue): ...here.
23959 (pass_data_s390_early_mach): New pass structure.
23960 (pass_s390_early_mach): New class.
23961 (s390_option_override): Create and register early_mach pass.
23962 Move to end of file.
23963
23964 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23965
23966 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23967 to match for the exit block.
23968
23969 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23970
23971 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23972 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23973 Reject misaligned operands.
23974
23975 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23976
23977 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23978
23979 2014-02-07 Richard Biener <rguenther@suse.de>
23980
23981 PR middle-end/60092
23982 * gimple-low.c (lower_builtin_posix_memalign): New function.
23983 (lower_stmt): Call it to lower posix_memalign in a way
23984 to make alignment info accessible.
23985
23986 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23987
23988 PR c++/60082
23989 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23990 __builtin_setjmp_receiver.
23991
23992 2014-02-07 Richard Biener <rguenther@suse.de>
23993
23994 PR middle-end/60092
23995 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23996 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23997 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23998 Handle BUILT_IN_POSIX_MEMALIGN.
23999 (find_func_clobbers): Likewise.
24000 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24001 (call_may_clobber_ref_p_1): Likewise.
24002
24003 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24004
24005 PR ipa/59918
24006 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24007 sanity check.
24008
24009 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24010
24011 PR ipa/59469
24012 * lto-cgraph.c (lto_output_node): Use
24013 symtab_get_symbol_partitioning_class.
24014 (lto_output_varpool_node): likewise.
24015 (symtab_get_symbol_partitioning_class): Move here from
24016 lto/lto-partition.c
24017 * cgraph.h (symbol_partitioning_class): Likewise.
24018 (symtab_get_symbol_partitioning_class): Declare.
24019
24020 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24021
24022 * ggc.h (ggc_internal_cleared_alloc): New macro.
24023 * vec.h (vec_safe_copy): Handle memory stats.
24024 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24025 * target-globals.c (save_target_globals): Likewise.
24026
24027 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24028
24029 PR target/60077
24030 * expr.c (emit_move_resolve_push): Export; be bit more selective
24031 on when to clear alias set.
24032 * expr.h (emit_move_resolve_push): Declare.
24033 * function.h (struct function): Add tail_call_marked.
24034 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24035 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24036 * config/i386/i386.md (TImode move expander): De not call
24037 ix86_expand_push.
24038 (FP push expanders): Preserve memory attributes.
24039 * config/i386/sse.md (push<mode>1): Remove.
24040 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24041 (ix86_expand_push): Remove.
24042 * config/i386/mmx.md (push<mode>1): Remove.
24043
24044 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24045
24046 PR rtl-optimization/60030
24047 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24048 lopart with paradoxical subreg before shifting it up by hprec.
24049
24050 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24051
24052 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24053 Remove extra newline at end of file.
24054 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24055 (arm_issue_rate): Handle cortexa57.
24056 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24057 (cortex-a57.cortex-a53): Likewise.
24058
24059 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24060
24061 PR target/59575
24062 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24063 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24064 bitmask.
24065 (arm_expand_prologue): Adjust all callers.
24066 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24067 info, registers also at the lowest numbered registers side. Use
24068 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24069 XEXP.
24070
24071 PR debug/59992
24072 * var-tracking.c (adjust_mems): Before adding a SET to
24073 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24074
24075 2014-02-06 Alan Modra <amodra@gmail.com>
24076
24077 PR target/60032
24078 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24079 change SDmode to DDmode when lra_in_progress.
24080
24081 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24082
24083 PR middle-end/59150
24084 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24085 free_data_ref on the dr first, and before goto again also set dr
24086 to the next dr. For simd_lane_access, free old datarefs[i] before
24087 overwriting it. For get_vectype_for_scalar_type failure, don't
24088 free_data_ref if simd_lane_access.
24089
24090 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24091
24092 PR target/60062
24093 * tree.h (opts_for_fn): New inline function.
24094 (opt_for_fn): Define.
24095 * config/i386/i386.c (ix86_function_regparm): Use
24096 opt_for_fn (decl, optimize) instead of optimize.
24097
24098 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24099
24100 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24101 for SYMBOL_REF in large memory model.
24102
24103 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24104
24105 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24106 and crypto support.
24107 (cortex-a57): Likewise.
24108 (cortex-a57.cortex-a53): Likewise.
24109
24110 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24111 Kugan Vivekanandarajah <kuganv@linaro.org>
24112
24113 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24114 unaligned_access.
24115 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24116
24117 2014-02-06 Richard Biener <rguenther@suse.de>
24118
24119 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24120 set_loop_copy and initialize_original_copy_tables.
24121
24122 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24123
24124 * config/aarch64/aarch64-simd.md
24125 (aarch64_ashr_simddi): Change QI to SI.
24126
24127 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24128 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR middle-end/60013
24131 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24132 of the dataflow.
24133
24134 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24135
24136 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24137 CODE_FOR_altivec_vpku[hw]um to
24138 CODE_FOR_altivec_vpku[hw]um_direct.
24139 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24140 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24141 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24142 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24143
24144 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24145
24146 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24147 generation for -maltivec=be.
24148 (altivec_vsumsws): Simplify redundant test.
24149
24150 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24151
24152 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24153 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24154 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24155 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24156 gen_altivec_vpkuwum.
24157 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24158 BYTES_BIG_ENDIAN.
24159 (altivec_vpks<VI_char>ss): Likewise.
24160 (altivec_vpks<VI_char>us): Likewise.
24161 (altivec_vpku<VI_char>us): Likewise.
24162 (altivec_vpku<VI_char>um): Likewise.
24163 (altivec_vpku<VI_char>um_direct): New (copy of
24164 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24165 internal use).
24166 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24167 target is little endian and -maltivec=be is not specified.
24168 (*altivec_vupkhs<VU_char>_direct): New (copy of
24169 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24170 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24171 target is little endian and -maltivec=be is not specified.
24172 (*altivec_vupkls<VU_char>_direct): New (copy of
24173 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24174 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24175 little endian and -maltivec=be is not specified.
24176 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24177 little endian and -maltivec=be is not specified.
24178
24179 2014-02-05 Richard Henderson <rth@redhat.com>
24180
24181 PR debug/52727
24182 * combine-stack-adj.c: Revert r206943.
24183 * sched-int.h (struct deps_desc): Add last_args_size.
24184 * sched-deps.c (init_deps): Initialize it.
24185 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24186 contain REG_ARGS_SIZE notes.
24187
24188 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24189
24190 * lto-cgraph.c (asm_nodes_output): Make global.
24191 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24192 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24193 (driver_handle_option): Handle OPT_fwpa.
24194
24195 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24196
24197 PR ipa/59947
24198 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24199 a comment typo and formatting issue. If odr_hash hasn't been
24200 created, return vNULL and set *completep to false.
24201
24202 PR middle-end/57499
24203 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24204 bb with no successors.
24205
24206 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24207
24208 PR target/59718
24209 * doc/invoke.texi (-march): Clarify documentation for ARM.
24210 (-mtune): Likewise.
24211 (-mcpu): Likewise.
24212
24213 2014-02-05 Richard Biener <rguenther@suse.de>
24214
24215 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24216 when not vectorizing because of too many alias checks.
24217 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24218 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24219
24220 2014-02-05 Nick Clifton <nickc@redhat.com>
24221
24222 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24223 accept extended registers in any mode when compiling for the MN10300.
24224
24225 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24226
24227 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24228 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24229 sanitization attributes.
24230 (can_inline_edge_p): Likewise.
24231 (sanitize_attrs_match_for_inline_p): New function.
24232
24233 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24234
24235 * ipa-prop.c (detect_type_change): Shor circuit testing of
24236 type changes on THIS pointer.
24237
24238 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24239
24240 PR target/59777
24241 * config/pa/pa.c (legitimize_tls_address): Return original address
24242 if not passed a SYMBOL_REF rtx.
24243 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24244 addresses.
24245 (pa_emit_move_sequence): Simplify TLS source operands.
24246 (pa_legitimate_constant_p): Reject all TLS constants.
24247 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24248 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24249
24250 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24251
24252 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24253 groups when we know they are controlled by LTO.
24254 * varasm.c (default_binds_local_p_1): If object is in other partition,
24255 it will be resolved locally.
24256
24257 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24258
24259 * config/host-linux.c (linux_gt_pch_use_address): Don't
24260 use SSIZE_MAX because it is not always defined.
24261
24262 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24263
24264 PR bootstrap/59913
24265 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24266 threshold for pseudo splitting.
24267 (update_ebb_live_info): Process call argument hard registers and
24268 hard registers from insn definition too.
24269 (max_small_class_regs_num): New constant.
24270 (inherit_in_ebb): Update live hard regs through EBBs. Update
24271 reloads_num only for small register classes. Don't split for
24272 outputs of jumps.
24273
24274 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24275
24276 PR ipa/60058
24277 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24278 is non-null.
24279
24280 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24281
24282 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24283 visibility is safe.
24284
24285 2014-02-04 Marek Polacek <polacek@redhat.com>
24286
24287 * gdbinit.in (pel): Define.
24288
24289 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24290
24291 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24292 behavior.
24293
24294 2014-02-04 Richard Biener <rguenther@suse.de>
24295
24296 PR lto/59723
24297 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24298 in function context local.
24299 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24300 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24301 similar to LTO_imported_decl_ref.
24302
24303 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24304
24305 PR tree-optimization/60002
24306 * cgraphclones.c (build_function_decl_skip_args): Clear
24307 DECL_LANG_SPECIFIC.
24308
24309 PR tree-optimization/60023
24310 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24311 false to gsi_replace.
24312 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24313 has been in some EH region and vec_stmt could throw, add
24314 vec_stmt into the same EH region.
24315 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24316 has no lhs, ignore it.
24317 * internal-fn.c (expand_MASK_LOAD): Likewise.
24318
24319 PR ipa/60026
24320 * tree-inline.c (copy_forbidden): Fail for
24321 __attribute__((optimize (0))) functions.
24322
24323 PR other/58712
24324 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24325 is set, copy one less argument.
24326 (expand_simd_clones): Don't subtract clone_info->inbranch
24327 from simd_clone_struct_alloc argument.
24328
24329 PR rtl-optimization/57915
24330 * recog.c (simplify_while_replacing): If all unary/binary/relational
24331 operation arguments are constant, attempt to simplify those.
24332
24333 PR middle-end/59261
24334 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24335 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24336
24337 2014-02-04 Richard Biener <rguenther@suse.de>
24338
24339 PR tree-optimization/60012
24340 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24341 TBAA disambiguation to all DDRs.
24342
24343 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24344
24345 PR target/59788
24346 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24347 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24348
24349 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24350
24351 PR ipa/59882
24352 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24353
24354 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24355
24356 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24357 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
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): Use ipa-devirt
24363 to figure out targets of polymorphic calls with known decl.
24364 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24365 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24366 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24367 (get_polymorphic_call_info): ... here.
24368 (get_polymorphic_call_info_from_invariant): New function.
24369
24370 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24371
24372 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24373 lookup via vtable pointer; check for type consistency
24374 and turn inconsitent facts into UNREACHABLE.
24375 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24376 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24377 type inconsistent querries; return UNREACHABLE instead.
24378
24379 2014-02-03 Richard Henderson <rth@twiddle.net>
24380
24381 PR tree-opt/59924
24382 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24383 already processed this node.
24384 (normalize_one_pred_1): Pass along mark_set.
24385 (normalize_one_pred): Create and destroy a pointer_set_t.
24386 (normalize_one_pred_chain): Likewise.
24387
24388 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24389
24390 PR gcov-profile/58602
24391 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24392
24393 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24394
24395 PR ipa/59831
24396 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24397 -fno-devirtualize; try to devirtualize by the knowledge of
24398 virtual table pointer given by aggregate propagation.
24399 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24400 (ipa_print_node_jump_functions): Dump also offset that
24401 is relevant for polymorphic calls.
24402 (determine_known_aggregate_parts): Add arg_type parameter; use it
24403 instead of determining the type from pointer type.
24404 (ipa_compute_jump_functions_for_edge): Update call of
24405 determine_known_aggregate_parts.
24406 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24407 (gimple_get_virt_method_for_binfo): ... here; simplify using
24408 vtable_pointer_value_to_vtable.
24409 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24410 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24411 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24412 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24413 POINTER_PLUS_EXPR.
24414 (vtable_pointer_value_to_binfo): ... here.
24415 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24416
24417 2014-02-03 Teresa Johnson <tejohnson@google.com>
24418
24419 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24420 redef of outer loop index variable.
24421
24422 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24423
24424 PR c++/53017
24425 PR c++/59211
24426 * doc/extend.texi (Function Attributes): Typo.
24427
24428 2014-02-03 Cong Hou <congh@google.com>
24429
24430 PR tree-optimization/60000
24431 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24432 if the vectorized statement is a store. A store statement can only
24433 appear at the end of pattern statements.
24434
24435 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24436
24437 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24438 (ix86_option_override_internal): Default long double to 64-bit for
24439 32-bit Bionic and to 128-bit for 64-bit Bionic.
24440
24441 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24442 TARGET_LONG_DOUBLE_128 is true.
24443 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24444
24445 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24446 (mlong-double-64): Negate -mlong-double-128.
24447 (mlong-double-128): New option.
24448
24449 * config/i386/i386-c.c (ix86_target_macros): Define
24450 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24451
24452 * doc/invoke.texi: Document -mlong-double-128.
24453
24454 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24455
24456 PR rtl-optimization/60024
24457 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24458
24459 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24460
24461 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24462
24463 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24464
24465 PR rtl-optimization/57662
24466 * sel-sched.c (code_motion_path_driver): Do not mark already not
24467 existing blocks in the visiting bitmap.
24468
24469 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24470
24471 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24472 on the insn being emitted.
24473
24474 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24475 Will Deacon <will.deacon@arm.com>
24476
24477 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24478
24479 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24480
24481 * config/arm/arm-tables.opt: Regenerate.
24482
24483 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24484
24485 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24486 for vector types other than V16QImode.
24487 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24488 define_expand, and call altivec_expand_vec_perm_le when producing
24489 code with little endian element order.
24490 (*altivec_vperm_<mode>_internal): New insn having previous
24491 behavior of altivec_vperm_<mode>.
24492 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24493 altivec_expand_vec_perm_le when producing code with little endian
24494 element order.
24495 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24496 behavior of altivec_vperm_<mode>_uns.
24497
24498 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24499
24500 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24501 (altivec_vsumsws): Add handling for -maltivec=be with a little
24502 endian target.
24503 (altivec_vsumsws_direct): New.
24504 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24505 gen_altivec_vsumsws.
24506
24507 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24508
24509 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24510 vtable_pointer_value_to_binfo): New functions.
24511 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24512 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24513
24514 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24515
24516 * config/nios2/nios2.md (load_got_register): Initialize GOT
24517 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24518 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24519
24520 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24521
24522 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24523 preserverd by passthrough, do not propagate the type.
24524
24525 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24526
24527 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24528 (mips_atomic_assign_expand_fenv): New function.
24529 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24530
24531 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24532
24533 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24534 (__builtin_mips_set_fcsr): Likewise.
24535 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24536 MIPS_USI_FTYPE_VOID.
24537 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24538 (mips16_expand_set_fcsr): Likewise.
24539 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24540 (mips16_set_fcsr_stub): Likewise.
24541 (mips16_get_fcsr_one_only_stub): New class.
24542 (mips16_set_fcsr_one_only_stub): Likewise.
24543 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24544 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24545 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24546 (hard_float): New availability predicate.
24547 (mips_builtins): Add get_fcsr and set_fcsr.
24548 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24549 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24550 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24551 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24552 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24553 patterns.
24554
24555 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24556
24557 * config/mips/mips.c (mips_one_only_stub): New class.
24558 (mips_need_mips16_rdhwr_p): Replace with...
24559 (mips16_rdhwr_stub): ...this new variable.
24560 (mips16_stub_call_address): New function.
24561 (mips16_rdhwr_one_only_stub): New class.
24562 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24563 (mips_output_mips16_rdhwr): Delete.
24564 (mips_finish_stub): New function.
24565 (mips_code_end): Use it to handle rdhwr stubs.
24566
24567 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24568
24569 PR target/60017
24570 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24571 when calculating size of integer atomic types.
24572
24573 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24574
24575 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24576
24577 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24578
24579 PR tree-optimization/60003
24580 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24581 * profile.c (branch_prob): Use gimple_call_builtin_p
24582 to check for BUILT_IN_SETJMP_RECEIVER.
24583 * tree-inline.c (copy_bb): Call notice_special_calls.
24584
24585 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24586
24587 PR bootstrap/59985
24588 * lra-constraints.c (process_alt_operands): Update reload_sum only
24589 on the first pass.
24590
24591 2014-01-31 Richard Henderson <rth@redhat.com>
24592
24593 PR middle-end/60004
24594 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24595 until after else_eh is processed.
24596
24597 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24598
24599 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24600 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24601 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24602 in smmintrin.h, remove them.
24603 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24604 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24605 * config/i386/i386.md (ROUND_SAE): Fix value.
24606 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24607 (const48_operand): New.
24608 * config/i386/subst.md (round), (round_expand): Use
24609 const_4_or_8_to_11_operand.
24610 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24611
24612 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24613
24614 * config/i386/constraints.md (Yk): Swap meaning with k.
24615 * config/i386/i386.md (movhi_internal): Change Yk to k.
24616 (movqi_internal): Ditto.
24617 (*k<logic><mode>): Ditto.
24618 (*andhi_1): Ditto.
24619 (*andqi_1): Ditto.
24620 (kandn<mode>): Ditto.
24621 (*<code>hi_1): Ditto.
24622 (*<code>qi_1): Ditto.
24623 (kxnor<mode>): Ditto.
24624 (kortestzhi): Ditto.
24625 (kortestchi): Ditto.
24626 (kunpckhi): Ditto.
24627 (*one_cmplhi2_1): Ditto.
24628 (*one_cmplqi2_1): Ditto.
24629 * config/i386/sse.md (): Change k to Yk.
24630 (avx512f_load<mode>_mask): Ditto.
24631 (avx512f_blendm<mode>): Ditto.
24632 (avx512f_store<mode>_mask): Ditto.
24633 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24634 (avx512f_storedqu<mode>_mask): Ditto.
24635 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24636 Ditto.
24637 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24638 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24639 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24640 (avx512f_maskcmp<mode>3): Ditto.
24641 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24642 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24643 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24644 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24645 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24646 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24647 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24648 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24649 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24650 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24651 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24652 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24653 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24654 (vec_extract_lo_<mode>_maskm): Ditto.
24655 (vec_extract_hi_<mode>_maskm): Ditto.
24656 (avx512f_vternlog<mode>_mask): Ditto.
24657 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24658 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24659 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24660 (avx512f_<code>v8div16qi2_mask): Ditto.
24661 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24662 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24663 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24664 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24665 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24666 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24667 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24668 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24669 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24670 (avx512cd_maskb_vec_dupv8di): Ditto.
24671 (avx512cd_maskw_vec_dupv16si): Ditto.
24672 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24673 (avx512f_vpermi2var<mode>3_mask): Ditto.
24674 (avx512f_vpermi2var<mode>3_mask): Ditto.
24675 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24676 (*avx512f_gathersi<mode>): Ditto.
24677 (*avx512f_gathersi<mode>_2): Ditto.
24678 (*avx512f_gatherdi<mode>): Ditto.
24679 (*avx512f_gatherdi<mode>_2): Ditto.
24680 (*avx512f_scattersi<mode>): Ditto.
24681 (*avx512f_scatterdi<mode>): Ditto.
24682 (avx512f_compress<mode>_mask): Ditto.
24683 (avx512f_compressstore<mode>_mask): Ditto.
24684 (avx512f_expand<mode>_mask): Ditto.
24685 * config/i386/subst.md (mask): Change k to Yk.
24686 (mask_scalar_merge): Ditto.
24687 (sd): Ditto.
24688
24689 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24690
24691 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24692
24693 2014-01-31 Richard Biener <rguenther@suse.de>
24694
24695 PR middle-end/59990
24696 * builtins.c (fold_builtin_memory_op): Make sure to not
24697 use a floating-point mode or a boolean or enumeral type for
24698 the copy operation.
24699
24700 2014-01-30 DJ Delorie <dj@redhat.com>
24701
24702 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24703 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24704 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24705 whenever main() has an epilogue.
24706
24707 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24708
24709 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24710 unused variable "field".
24711 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24712 (vsx_mergeh_<mode>): Likewise.
24713 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24714 (altivec_vmrghh): Likewise.
24715 (altivec_vmrghw): Likewise.
24716 (altivec_vmrglb): Likewise.
24717 (altivec_vmrglh): Likewise.
24718 (altivec_vmrglw): Likewise.
24719 (altivec_vspltb): Add missing uses.
24720 (altivec_vsplth): Likewise.
24721 (altivec_vspltw): Likewise.
24722 (altivec_vspltsf): Likewise.
24723
24724 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24725
24726 PR target/59923
24727 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24728 frame related instructions.
24729
24730 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24731
24732 PR rtl-optimization/59959
24733 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24734 any reload of register whose subreg is invalid.
24735
24736 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24737
24738 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24739 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24740 Add missing return type - void.
24741
24742 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24743
24744 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24745 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24746 remove element index adjustment for endian (now handled in vsx.md
24747 and altivec.md).
24748 (altivec_expand_vec_perm_const): Use
24749 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24750 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24751 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24752 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24753 define_expand and a new define_insn *altivec_vspltb_internal;
24754 adjust for -maltivec=be on a little endian target.
24755 (altivec_vspltb_direct): New.
24756 (altivec_vsplth): Divide into a define_expand and a new
24757 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24758 little endian target.
24759 (altivec_vsplth_direct): New.
24760 (altivec_vspltw): Divide into a define_expand and a new
24761 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24762 little endian target.
24763 (altivec_vspltw_direct): New.
24764 (altivec_vspltsf): Divide into a define_expand and a new
24765 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24766 a little endian target.
24767
24768 2014-01-30 Richard Biener <rguenther@suse.de>
24769
24770 PR tree-optimization/59993
24771 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24772 can propagate form the earlier stmt and avoid the transform
24773 when the intermediate result is needed.
24774
24775 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24776
24777 * README.Portability: Fix typo.
24778
24779 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24780
24781 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24782 comparison_operator with ordered_comparison_operator.
24783
24784 2014-01-30 Nick Clifton <nickc@redhat.com>
24785
24786 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24787 Rename to mn10300_store_multiple_regs.
24788 * config/mn10300/mn10300.c: Likewise.
24789 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24790 store_multiple_regs.
24791 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24792 Call mn10300_store_multiple_regs.
24793
24794 2014-01-30 Nick Clifton <nickc@redhat.com>
24795 DJ Delorie <dj@redhat.com>
24796
24797 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24798 %fp 2 to keep registers after it properly word-aligned.
24799 (rl78_alloc_physical_registers_umul): Handle the case where both
24800 input operands are the same.
24801
24802 2014-01-30 Richard Biener <rguenther@suse.de>
24803
24804 PR tree-optimization/59903
24805 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24806 check properly.
24807
24808 2014-01-30 Jason Merrill <jason@redhat.com>
24809
24810 PR c++/59633
24811 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24812
24813 PR c++/59645
24814 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24815
24816 2014-01-30 Richard Biener <rguenther@suse.de>
24817
24818 PR tree-optimization/59951
24819 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24820
24821 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24822
24823 PR target/59784
24824 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24825 SFmode to DFmode case.
24826
24827 2014-01-29 DJ Delorie <dj@redhat.com>
24828
24829 * config/msp430/msp430.opt (-minrt): New.
24830 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24831 if -minrt given.
24832 (ENDFILE_SPEC): Likewise.
24833
24834 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24835
24836 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24837 (estimate_function_body_sizes): Use it.
24838
24839 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24840
24841 PR c++/58561
24842 * dwarf2out.c (is_cxx_auto): New.
24843 (is_base_type): Use it.
24844 (gen_type_die_with_usage): Likewise.
24845
24846 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24847
24848 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24849 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24850 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24851 -maltivec=be with LE targets.
24852 (vsx_mergeh_<mode>): Likewise.
24853 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24854 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24855 (altivec_vmrghb): Replace with define_expand and new
24856 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24857 (altivec_vmrghb_direct): New define_insn.
24858 (altivec_vmrghh): Replace with define_expand and new
24859 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24860 (altivec_vmrghh_direct): New define_insn.
24861 (altivec_vmrghw): Replace with define_expand and new
24862 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24863 (altivec_vmrghw_direct): New define_insn.
24864 (*altivec_vmrghsf): Adjust for endianness.
24865 (altivec_vmrglb): Replace with define_expand and new
24866 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24867 (altivec_vmrglb_direct): New define_insn.
24868 (altivec_vmrglh): Replace with define_expand and new
24869 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24870 (altivec_vmrglh_direct): New define_insn.
24871 (altivec_vmrglw): Replace with define_expand and new
24872 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24873 (altivec_vmrglw_direct): New define_insn.
24874 (*altivec_vmrglsf): Adjust for endianness.
24875 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24876 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24877 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24878 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24879 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24880 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24881 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24882 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24883
24884 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24885
24886 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24887 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24888 whitespace.
24889
24890 2014-01-29 Richard Biener <rguenther@suse.de>
24891
24892 PR tree-optimization/58742
24893 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24894 associate_pointerplus_align.
24895 (associate_pointerplus_diff): New function.
24896 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24897 and associate_pointerplus_diff.
24898
24899 2014-01-29 Richard Biener <rguenther@suse.de>
24900
24901 * lto-streamer.h (LTO_major_version): Bump to 3.
24902 (LTO_minor_version): Reset to 0.
24903
24904 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24905
24906 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24907 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24908 (arm_file_start): Generate correct asm header for armv7ve.
24909 * config/arm/bpabi.h: Add multilib support for armv7ve.
24910 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24911 and cortex-a15 to armv7ve.
24912 * config/arm/t-aprofile: Add multilib support for armv7ve.
24913 * doc/invoke.texi: Document -march=armv7ve.
24914
24915 2014-01-29 Richard Biener <rguenther@suse.de>
24916
24917 PR tree-optimization/58742
24918 * tree-ssa-forwprop.c (associate_plusminus): Return true
24919 if we changed sth, defer EH cleanup to ...
24920 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24921 (simplify_mult): New function.
24922
24923 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24924
24925 PR middle-end/59917
24926 PR tree-optimization/59920
24927 * tree.c (build_common_builtin_nodes): Remove
24928 __builtin_setjmp_dispatcher initialization.
24929 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24930 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24931 instead of gsi_after_labels + manually skipping debug stmts.
24932 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24933 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24934 * tree-inline.c (copy_edges_for_bb): Remove
24935 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24936 argument. Ignore computed_goto_p stmts. Don't call
24937 make_abnormal_goto_edges. If a call might need abnormal edges
24938 for non-local gotos, see if it already has an edge to
24939 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24940 with true argument, don't do anything then, otherwise add
24941 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24942 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24943 caller.
24944 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24945 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24946 (lower_stmt): Don't set data->calls_builtin_setjmp.
24947 (lower_builtin_setjmp): Adjust comment.
24948 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24949 * tree-cfg.c (found_computed_goto): Remove.
24950 (factor_computed_gotos): Remove.
24951 (make_goto_expr_edges): Return bool, true for computed gotos.
24952 Don't call make_abnormal_goto_edges.
24953 (build_gimple_cfg): Don't set found_computed_goto, don't call
24954 factor_computed_gotos.
24955 (computed_goto_p): No longer static.
24956 (make_blocks): Don't set found_computed_goto.
24957 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24958 (make_edges): If make_goto_expr_edges returns true, push bb
24959 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24960 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24961 vector. Record mapping between bbs and OpenMP regions if there
24962 are any, adjust make_gimple_omp_edges caller. Call
24963 handle_abnormal_edges.
24964 (make_abnormal_goto_edges): Remove.
24965 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24966 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24967 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24968 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24969 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24970 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24971 filling *region also set *region_idx to (*region)->entry->index.
24972
24973 PR other/58712
24974 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24975 For REGs set ORIGINAL_REGNO.
24976
24977 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24978
24979 * doc/md.texi: Mention that a target shouldn't implement
24980 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24981 than hi/lo pair.
24982
24983 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24984
24985 PR tree-optimization/59594
24986 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24987 a copy of the datarefs vector rather than the vector itself.
24988
24989 2014-01-28 Jason Merrill <jason@redhat.com>
24990
24991 PR c++/53756
24992 * dwarf2out.c (auto_die): New static.
24993 (gen_type_die_with_usage): Handle C++1y 'auto'.
24994 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24995 on definition.
24996
24997 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24998
24999 PR target/59672
25000 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25001 (SPEC_X32): Likewise.
25002 (SPEC_64): Likewise.
25003 * config/i386/i386.c (ix86_option_override_internal): Turn off
25004 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25005 for TARGET_16BIT.
25006 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25007 * config/i386/i386.h (TARGET_16BIT): New macro.
25008 (TARGET_16BIT_P): Likewise.
25009 * config/i386/i386.opt: Add m16.
25010 * doc/invoke.texi: Document -m16.
25011
25012 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25013
25014 PR preprocessor/59935
25015 * input.c (location_get_source_line): Bail out on when line number
25016 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25017
25018 2014-01-28 Richard Biener <rguenther@suse.de>
25019
25020 PR tree-optimization/58742
25021 * tree-ssa-forwprop.c (associate_plusminus): Handle
25022 pointer subtraction of the form (T)(P + A) - (T)P.
25023
25024 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25025
25026 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25027 at const_int_cost.
25028
25029 2014-01-28 Richard Biener <rguenther@suse.de>
25030
25031 Revert
25032 2014-01-28 Richard Biener <rguenther@suse.de>
25033
25034 PR rtl-optimization/45364
25035 PR rtl-optimization/59890
25036 * var-tracking.c (local_get_addr_clear_given_value): Handle
25037 already cleared slot.
25038 (val_reset): Handle not allocated local_get_addr_cache.
25039 (vt_find_locations): Use post-order on the inverted CFG.
25040
25041 2014-01-28 Richard Biener <rguenther@suse.de>
25042
25043 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25044
25045 2014-01-28 Richard Biener <rguenther@suse.de>
25046
25047 PR rtl-optimization/45364
25048 PR rtl-optimization/59890
25049 * var-tracking.c (local_get_addr_clear_given_value): Handle
25050 already cleared slot.
25051 (val_reset): Handle not allocated local_get_addr_cache.
25052 (vt_find_locations): Use post-order on the inverted CFG.
25053
25054 2014-01-28 Alan Modra <amodra@gmail.com>
25055
25056 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25057 * configure.ac <recursive call for build != host>: Define
25058 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25059 and LD_FOR_BUILD too.
25060 * configure: Regenerate.
25061
25062 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25063
25064 * config/i386/i386.c (get_builtin_code_for_version): Separate
25065 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25066 Broadwell from Haswell.
25067
25068 2014-01-27 Steve Ellcey <sellcey@mips.com>
25069
25070 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25071 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25072 * config/mips/mips.c (mips_option_override): Change setting
25073 of TARGET_DSP.
25074 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25075 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25076 Change from Mask to Var.
25077
25078 2014-01-27 Jeff Law <law@redhat.com>
25079
25080 * ipa-inline.c (inline_small_functions): Fix typo.
25081
25082 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25083
25084 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25085 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25086 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25087 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25088 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25089 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25090 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25091 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25092 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25093 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25094 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25095 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25096 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25097 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25098 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25099 (_mm512_storeu_epi64): Ditto.
25100 (_mm512_cmpge_epi32_mask): Ditto.
25101 (_mm512_cmpge_epu32_mask): Ditto.
25102 (_mm512_cmpge_epi64_mask): Ditto.
25103 (_mm512_cmpge_epu64_mask): Ditto.
25104 (_mm512_cmple_epi32_mask): Ditto.
25105 (_mm512_cmple_epu32_mask): Ditto.
25106 (_mm512_cmple_epi64_mask): Ditto.
25107 (_mm512_cmple_epu64_mask): Ditto.
25108 (_mm512_cmplt_epi32_mask): Ditto.
25109 (_mm512_cmplt_epu32_mask): Ditto.
25110 (_mm512_cmplt_epi64_mask): Ditto.
25111 (_mm512_cmplt_epu64_mask): Ditto.
25112 (_mm512_cmpneq_epi32_mask): Ditto.
25113 (_mm512_cmpneq_epu32_mask): Ditto.
25114 (_mm512_cmpneq_epi64_mask): Ditto.
25115 (_mm512_cmpneq_epu64_mask): Ditto.
25116 (_mm512_expand_pd): Ditto.
25117 (_mm512_expand_ps): Ditto.
25118 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25119 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25120 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25121 * config/i386/i386.c (ix86_builtins): Add
25122 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25123 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25124 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25125 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25126 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25127 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25128 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25129 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25130 IX86_BUILTIN_PMOVUSQW512_MEM.
25131 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25132 __builtin_ia32_pmovsqd512mem_mask,
25133 __builtin_ia32_pmovqd512mem_mask,
25134 __builtin_ia32_pmovusqw512mem_mask,
25135 __builtin_ia32_pmovsqw512mem_mask,
25136 __builtin_ia32_pmovqw512mem_mask,
25137 __builtin_ia32_pmovusdw512mem_mask,
25138 __builtin_ia32_pmovsdw512mem_mask,
25139 __builtin_ia32_pmovdw512mem_mask,
25140 __builtin_ia32_pmovqb512mem_mask,
25141 __builtin_ia32_pmovusqb512mem_mask,
25142 __builtin_ia32_pmovsqb512mem_mask,
25143 __builtin_ia32_pmovusdb512mem_mask,
25144 __builtin_ia32_pmovsdb512mem_mask,
25145 __builtin_ia32_pmovdb512mem_mask.
25146 (bdesc_args): Add __builtin_ia32_expanddf512,
25147 __builtin_ia32_expandsf512.
25148 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25149 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25150 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25151 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25152 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25153 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25154 (avx512f_<code>v8div16qi2_mask_store): This.
25155 (avx512f_expand<mode>): New.
25156
25157 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25158
25159 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25160 New.
25161 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25162 (_mm512_prefetch_i32scatter_pd): Ditto.
25163 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25164 (_mm512_prefetch_i64scatter_pd): Ditto.
25165 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25166 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25167 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25168 (_mm512_prefetch_i32scatter_ps): Ditto.
25169 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25170 (_mm512_prefetch_i64scatter_ps): Ditto.
25171 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25172 * config/i386/i386-builtin-types.def: Define
25173 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25174 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25175 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25176 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25177 IX86_BUILTIN_SCATTERPFQPD.
25178 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25179 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25180 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25181 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25182 __builtin_ia32_scatterpfqps.
25183 (ix86_expand_builtin): Expand new built-ins.
25184 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25185 fix memory access data type.
25186 (*avx512pf_gatherpf<mode>_mask): Ditto.
25187 (*avx512pf_gatherpf<mode>): Ditto.
25188 (avx512pf_scatterpf<mode>): Ditto.
25189 (*avx512pf_scatterpf<mode>_mask): Ditto.
25190 (*avx512pf_scatterpf<mode>): Ditto.
25191 (GATHER_SCATTER_SF_MEM_MODE): New.
25192 (avx512pf_gatherpf<mode>df): Ditto.
25193 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25194 (*avx512pf_scatterpf<mode>df): Ditto.
25195
25196 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25197
25198 PR bootstrap/59934
25199 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25200 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25201 reached.
25202
25203 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25204
25205 * common/config/arm/arm-common.c
25206 (arm_rewrite_mcpu): Handle multiple names.
25207 * config/arm/arm.h
25208 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25209
25210 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25211
25212 * gimple-builder.h (create_gimple_tmp): Delete.
25213
25214 2014-01-27 Christian Bruel <christian.bruel@st.com>
25215
25216 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25217 words comparisons.
25218
25219 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25220
25221 * config/pa/pa.md (call): Generate indirect long calls to non-local
25222 functions when outputing 32-bit code.
25223 (call_value): Likewise except for special call to buggy powf function.
25224
25225 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25226 portable runtime and PIC indirect calls.
25227 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25228 and PIC call sequences. Use ldo instead of blr to set return register
25229 in PIC call sequence.
25230
25231 2014-01-25 Walter Lee <walt@tilera.com>
25232
25233 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25234 avoid clobbering a live register.
25235
25236 2014-01-25 Walter Lee <walt@tilera.com>
25237
25238 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25239 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25240 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25241 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25242
25243 2014-01-25 Walter Lee <walt@tilera.com>
25244
25245 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25246 arguments on even registers.
25247 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25248 STACK_BOUNDARY.
25249 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25250 (BIGGEST_ALIGNMENT): Ditto.
25251 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25252
25253 2014-01-25 Walter Lee <walt@tilera.com>
25254
25255 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25256 insns before bundling.
25257 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25258
25259 2014-01-25 Walter Lee <walt@tilera.com>
25260
25261 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25262 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25263 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25264
25265 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25266
25267 * config/mips/constraints.md (kl): Delete.
25268 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25269 define expands, using...
25270 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25271 instructions for MIPS16.
25272 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25273 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25274
25275 2014-01-25 Walter Lee <walt@tilera.com>
25276
25277 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25278 (clzdi2): Ditto.
25279 (ffsdi2): Ditto.
25280
25281 2014-01-25 Walter Lee <walt@tilera.com>
25282
25283 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25284 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25285
25286 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25287
25288 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25289 Handle XOR.
25290
25291 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25292
25293 * print-rtl.c (in_call_function_usage): New var.
25294 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25295 EXPR_LIST mode as mode and not as reg note name.
25296
25297 PR middle-end/59561
25298 * cfgloopmanip.c (copy_loop_info): If
25299 loop->warned_aggressive_loop_optimizations, make sure
25300 the flag is set in target loop too.
25301
25302 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25303
25304 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25305 flag_cilkplus.
25306 * builtins.def: Likewise.
25307 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25308 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25309 * ira.c (ira_setup_eliminable_regset): Likewise.
25310 * omp-low.c (gate_expand_omp): Likewise.
25311 (execute_lower_omp): Likewise.
25312 (diagnose_sb_0): Likewise.
25313 (gate_diagnose_omp_blocks): Likewise.
25314 (simd_clone_clauses_extract): Likewise.
25315 (gate): Likewise.
25316
25317 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25318
25319 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25320 correction for little endian...
25321 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25322 here.
25323
25324 2014-01-24 Jeff Law <law@redhat.com>
25325
25326 PR tree-optimization/59919
25327 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25328 for non-returning calls.
25329
25330 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25331
25332 * common/config/aarch64/aarch64-common.c
25333 (aarch64_rewrite_mcpu): Handle multiple names.
25334 * config/aarch64/aarch64.h
25335 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25336
25337 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25338
25339 * input.c (add_file_to_cache_tab): Handle the case where fopen
25340 returns NULL.
25341
25342 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25343
25344 PR target/59929
25345 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25346 from push operand if code of push isn't PRE_DEC.
25347
25348 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25349
25350 PR target/59909
25351 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25352 -mquad-memory-atomic. Update -mquad-memory documentation to say
25353 it is only used for non-atomic loads/stores.
25354
25355 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25356 -mquad-memory or -mquad-memory-atomic switches.
25357
25358 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25359 -mquad-memory-atomic to ISA 2.07 support.
25360
25361 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25362 to separate support of normal quad word memory operations (ldq, stq)
25363 from the atomic quad word memory operations.
25364
25365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25366 support to separate non-atomic quad word operations from atomic
25367 quad word operations. Disable non-atomic quad word operations in
25368 little endian mode so that we don't have to swap words after the
25369 load and before the store.
25370 (quad_load_store_p): Add comment about atomic quad word support.
25371 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25372 options printed with -mdebug=reg.
25373
25374 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25375 -mquad-memory-atomic as the test for whether we have quad word
25376 atomic instructions.
25377 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25378 or -mp8-vector are used, allow byte/half-word atomic operations.
25379
25380 * config/rs6000/sync.md (load_lockedti): Insure that the address
25381 is a proper indexed or indirect address for the lqarx instruction.
25382 On little endian systems, swap the hi/lo registers after the lqarx
25383 instruction.
25384 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25385 insure the address is valid for the lqarx instruction.
25386 (store_conditionalti): Insure that the address is a proper indexed
25387 or indirect address for the stqcrx. instruction. On little endian
25388 systems, swap the hi/lo registers before doing the stqcrx.
25389 instruction.
25390 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25391 insure the address is valid for the stqcrx. instruction.
25392
25393 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25394 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25395 type of quad memory support is available.
25396
25397 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25398
25399 PR regression/59915
25400 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25401 there is a danger of looping.
25402
25403 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25404
25405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25406 force flag_ira_loop_pressure if set via command line.
25407
25408 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25409
25410 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25411 (ashr_simd): New builtin handling DI mode.
25412 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25413 (aarch64_sshr_simddi): New match pattern.
25414 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25415 (vshrd_n_s64): Likewise.
25416 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25417
25418 2014-01-23 Nick Clifton <nickc@redhat.com>
25419
25420 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25421 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25422 favour of mcu specific scripts.
25423 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25424 430x multilibs.
25425
25426 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25427 Alex Velenko <Alex.Velenko@arm.com>
25428
25429 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25430 (vaddv_s16): Likewise.
25431 (vaddv_s32): Likewise.
25432 (vaddv_u8): Likewise.
25433 (vaddv_u16): Likewise.
25434 (vaddv_u32): Likewise.
25435 (vaddvq_s8): Likewise.
25436 (vaddvq_s16): Likewise.
25437 (vaddvq_s32): Likewise.
25438 (vaddvq_s64): Likewise.
25439 (vaddvq_u8): Likewise.
25440 (vaddvq_u16): Likewise.
25441 (vaddvq_u32): Likewise.
25442 (vaddvq_u64): Likewise.
25443 (vaddv_f32): Likewise.
25444 (vaddvq_f32): Likewise.
25445 (vaddvq_f64): Likewise.
25446 (vmaxv_f32): Likewise.
25447 (vmaxv_s8): Likewise.
25448 (vmaxv_s16): Likewise.
25449 (vmaxv_s32): Likewise.
25450 (vmaxv_u8): Likewise.
25451 (vmaxv_u16): Likewise.
25452 (vmaxv_u32): Likewise.
25453 (vmaxvq_f32): Likewise.
25454 (vmaxvq_f64): Likewise.
25455 (vmaxvq_s8): Likewise.
25456 (vmaxvq_s16): Likewise.
25457 (vmaxvq_s32): Likewise.
25458 (vmaxvq_u8): Likewise.
25459 (vmaxvq_u16): Likewise.
25460 (vmaxvq_u32): Likewise.
25461 (vmaxnmv_f32): Likewise.
25462 (vmaxnmvq_f32): Likewise.
25463 (vmaxnmvq_f64): Likewise.
25464 (vminv_f32): Likewise.
25465 (vminv_s8): Likewise.
25466 (vminv_s16): Likewise.
25467 (vminv_s32): Likewise.
25468 (vminv_u8): Likewise.
25469 (vminv_u16): Likewise.
25470 (vminv_u32): Likewise.
25471 (vminvq_f32): Likewise.
25472 (vminvq_f64): Likewise.
25473 (vminvq_s8): Likewise.
25474 (vminvq_s16): Likewise.
25475 (vminvq_s32): Likewise.
25476 (vminvq_u8): Likewise.
25477 (vminvq_u16): Likewise.
25478 (vminvq_u32): Likewise.
25479 (vminnmv_f32): Likewise.
25480 (vminnmvq_f32): Likewise.
25481 (vminnmvq_f64): Likewise.
25482
25483 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25484
25485 * config/aarch64/aarch64-simd.md
25486 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25487 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25488 (*aarch64_mul3_elt<mode>): Likewise.
25489 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25490 (*aarch64_mul3_elt_to_64v2df): Likewise.
25491 (*aarch64_mla_elt<mode>): Likewise.
25492 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25493 (*aarch64_mls_elt<mode>): Likewise.
25494 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25495 (*aarch64_fma4_elt<mode>): Likewise.
25496 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25497 (*aarch64_fma4_elt_to_64v2df): Likewise.
25498 (*aarch64_fnma4_elt<mode>): Likewise.
25499 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25500 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25501 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25502 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25503 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25504 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25505 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25506 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25507 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25508
25509 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25510
25511 * config/aarch64/aarch64-simd.md
25512 (aarch64_be_checked_get_lane<mode>): New define_expand.
25513 * config/aarch64/aarch64-simd-builtins.def
25514 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25515 New builtin definition.
25516 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25517 Use new safe be builtin.
25518
25519 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25520
25521 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25522 New define_insn.
25523 (aarch64_be_st1<mode>): Likewise.
25524 (aarch_ld1<VALL:mode>): Define_expand modified.
25525 (aarch_st1<VALL:mode>): Likewise.
25526 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25527 (UNSPEC_ST1): Likewise.
25528
25529 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25530
25531 * config/microblaze/microblaze.md: Add trap insn and attribute
25532
25533 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25534
25535 PR preprocessor/58580
25536 * input.h (location_get_source_line): Take an additional line_size
25537 parameter.
25538 (void diagnostics_file_cache_fini): Declare new function.
25539 * input.c (struct fcache): New type.
25540 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25541 New static constants.
25542 (diagnostic_file_cache_init, total_lines_num)
25543 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25544 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25545 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25546 (get_next_line, read_next_line, goto_next_line, read_line_num):
25547 New static function definitions.
25548 (diagnostic_file_cache_fini): New function.
25549 (location_get_source_line): Take an additional output line_len
25550 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25551 read_line_num.
25552 * diagnostic.c (diagnostic_finish): Call
25553 diagnostic_file_cache_fini.
25554 (adjust_line): Take an additional input parameter for the length
25555 of the line, rather than calculating it with strlen.
25556 (diagnostic_show_locus): Adjust the use of
25557 location_get_source_line and adjust_line with respect to their new
25558 signature. While displaying a line now, do not stop at the first
25559 null byte. Rather, display the zero byte as a space and keep
25560 going until we reach the size of the line.
25561 * Makefile.in: Add vec.o to OBJS-libcommon
25562
25563 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25564 Ilya Tocar <ilya.tocar@intel.com>
25565
25566 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25567 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25568 (__builtin_ia32_kmov16): Ditto.
25569 * config/i386/i386.md (UNSPEC_KMOV): New.
25570 (kmovw): Ditto.
25571
25572 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25573
25574 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25575 (_mm512_storeu_si512): Ditto.
25576
25577 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25578
25579 PR target/52125
25580 * rtl.h (get_referenced_operands): Declare.
25581 * recog.c (get_referenced_operands): New function.
25582 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25583 operands have been referenced when recording LO_SUM references.
25584
25585 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25586
25587 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25588
25589 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25590
25591 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25592 Enable for generic and recent AMD targets.
25593
25594 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25595
25596 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25597 ARG_SIZE note when adjustment was eliminated.
25598
25599 2014-01-22 Jeff Law <law@redhat.com>
25600
25601 PR tree-optimization/59597
25602 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25603 in file. Accept new argument REGISTERING and use it to modify
25604 dump output appropriately.
25605 (register_jump_thread): Corresponding changes.
25606 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25607 thread paths involving joiner blocks. Add code to dump cancelled
25608 jump threading paths.
25609
25610 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25611
25612 PR rtl-optimization/59477
25613 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25614 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25615
25616 2014-01-22 Tom Tromey <tromey@redhat.com>
25617
25618 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25619 PARAMS.
25620 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25621
25622 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25623
25624 PR rtl-optimization/59896
25625 * lra-constraints.c (process_alt_operands): Check unused note for
25626 matched operands of insn with no output reloads.
25627
25628 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25629
25630 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25631 (mips_move_from_gpr_cost): Likewise.
25632
25633 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25634
25635 PR rtl-optimization/59858
25636 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25637 ira_class_hard_regs_num.
25638 (process_alt_operands): Increase reject for dying matched operand.
25639
25640 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25641
25642 PR target/59003
25643 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25644 smaller than size, perform several stores or loads and stores
25645 at dst + count - size to store or copy all of size bytes, rather
25646 than just last modesize bytes.
25647
25648 2014-01-20 DJ Delorie <dj@redhat.com>
25649
25650 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25651 that CLOBBERs are REGs before propogating their values.
25652
25653 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25654
25655 PR middle-end/59789
25656 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25657 (cgraph_inline_failed_type): New function.
25658 * cgraph.h (DEFCIFCODE): Add type.
25659 (cgraph_inline_failed_type_t): New enum.
25660 (cgraph_inline_failed_type): New prototype.
25661 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25662 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25663 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25664 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25665 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25666 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25667 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25668 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25669 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25670 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25671 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25672 OPTIMIZATION_MISMATCH.
25673 * tree-inline.c (expand_call_inline): Emit errors during
25674 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25675
25676 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25677
25678 PR target/59685
25679 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25680 mode attribute in insn output.
25681
25682 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25683
25684 * output.h (output_constant): Delete.
25685 * varasm.c (output_constant): Make private.
25686
25687 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25688
25689 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25690
25691 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25692
25693 PR middle-end/59860
25694 * tree.h (fold_builtin_strcat): New prototype.
25695 * builtins.c (fold_builtin_strcat): No longer static. Add len
25696 argument, if non-NULL, don't call c_strlen. Optimize
25697 directly into __builtin_memcpy instead of __builtin_strcpy.
25698 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25699 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25700
25701 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25702
25703 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25704 for SImode_address_operand operands, having only a REG argument.
25705
25706 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25707
25708 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25709 loader name using mbig-endian.
25710 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25711
25712 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25713
25714 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25715 (-mtune): Likewise.
25716 (-mcpu): Likewise.
25717
25718 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25719
25720 * config/aarch64/aarch64-protos.h
25721 (aarch64_cannot_change_mode_class_ptr): Declare.
25722 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25723 aarch64_cannot_change_mode_class_ptr): New.
25724 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25725 backend hook aarch64_cannot_change_mode_class.
25726
25727 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25728
25729 * common/config/aarch64/aarch64-common.c
25730 (aarch64_handle_option): Don't handle any option order logic here.
25731 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25732 selected_cpu, warn on architecture version mismatch.
25733 (aarch64_override_options): Fix parsing order for option strings.
25734
25735 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25736 Iain Sandoe <iain@codesourcery.com>
25737
25738 PR bootstrap/59496
25739 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25740 warning. Amend comment to reflect current functionality.
25741
25742 2014-01-20 Richard Biener <rguenther@suse.de>
25743
25744 PR middle-end/59860
25745 * builtins.c (fold_builtin_strcat): Remove case better handled
25746 by tree-ssa-strlen.c.
25747
25748 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25749
25750 * config/aarch64/aarch64.opt
25751 (mcpu, march, mtune): Make case-insensitive.
25752
25753 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25754
25755 PR target/59880
25756 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25757 if operands[1] is a REG or ZERO_EXTEND of a REG.
25758
25759 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25760
25761 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25762
25763 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25764
25765 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25766 long non-pic millicode calls.
25767
25768 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25769
25770 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25771
25772 2014-01-19 Kito Cheng <kito@0xlab.org>
25773
25774 * builtins.c (expand_movstr): Check movstr expand done or fail.
25775
25776 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25777 H.J. Lu <hongjiu.lu@intel.com>
25778
25779 PR target/59379
25780 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25781 to DImode for zero-extended addresses.
25782
25783 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25784
25785 PR rtl-optimization/57763
25786 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25787 on the new indirect jump_insn and increment LABEL_NUSES (label).
25788
25789 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25790
25791 PR bootstrap/59580
25792 PR bootstrap/59583
25793 * config.gcc (x86_archs): New variable.
25794 (x86_64_archs): Likewise.
25795 (x86_cpus): Likewise.
25796 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25797 --with-arch/--with-cpu= options.
25798 Support --with-arch=/--with-cpu={nehalem,westmere,
25799 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25800
25801 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25802
25803 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25804 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25805
25806 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25807
25808 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25809
25810 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25811
25812 PR target/58944
25813 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25814 clear cpp_get_options (parse_in)->warn_unused_macros for
25815 ix86_target_macros_internal with cpp_define.
25816
25817 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25818
25819 * jump.c (delete_related_insns): Keep (use (insn))s.
25820 * reorg.c (redundant_insn): Check for barriers too.
25821
25822 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25823
25824 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25825
25826 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25827
25828 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25829 call to $$dyncall when TARGET_LONG_CALLS is true.
25830
25831 2014-01-17 Jeff Law <law@redhat.com>
25832
25833 * ree.c (combine_set_extension): Temporarily disable test for
25834 changing number of hard registers.
25835
25836 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25837
25838 PR middle-end/58125
25839 * ipa-inline-analysis.c (inline_free_summary):
25840 Do not free summary of aliases.
25841
25842 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25843
25844 PR middle-end/59706
25845 * gimplify.c (gimplify_expr): Use create_tmp_var
25846 instead of create_tmp_var_raw. If cond doesn't have
25847 integral type, don't add the IFN_ANNOTATE builtin at all.
25848
25849 2014-01-17 Martin Jambor <mjambor@suse.cz>
25850
25851 PR ipa/59736
25852 * ipa-cp.c (prev_edge_clone): New variable.
25853 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25854 Also resize prev_edge_clone vector.
25855 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25856 (ipcp_edge_removal_hook): New function.
25857 (ipcp_driver): Register ipcp_edge_removal_hook.
25858
25859 2014-01-17 Andrew Pinski <apinski@cavium.com>
25860 Steve Ellcey <sellcey@mips.com>
25861
25862 PR target/59462
25863 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25864 of operator mode.
25865
25866 2014-01-17 Jeff Law <law@redhat.com>
25867
25868 PR middle-end/57904
25869 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25870 so that pass_ccp runs first.
25871
25872 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25873
25874 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25875 (ix86_adjust_cost): Use !TARGET_XXX.
25876 (do_reorder_for_imul): Likewise.
25877 (swap_top_of_ready_list): Likewise.
25878 (ix86_sched_reorder): Likewise.
25879
25880 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25881
25882 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25883 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25884 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25885 (intel_memset): New. Duplicate slm_memset.
25886 (intel_cost): New. Duplicate slm_cost.
25887 (m_INTEL): New macro.
25888 (processor_target_table): Add "intel".
25889 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25890 with PROCESSOR_INTEL for "intel".
25891 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25892 PROCESSOR_SILVERMONT.
25893 (ix86_issue_rate): Likewise.
25894 (ix86_adjust_cost): Likewise.
25895 (ia32_multipass_dfa_lookahead): Likewise.
25896 (swap_top_of_ready_list): Likewise.
25897 (ix86_sched_reorder): Likewise.
25898 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25899 instead of TARGET_OPT_AGU.
25900 * config/i386/i386.h (TARGET_INTEL): New.
25901 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25902 (processor_type): Add PROCESSOR_INTEL.
25903 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25904 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25905
25906 2014-01-17 Marek Polacek <polacek@redhat.com>
25907
25908 PR c/58346
25909 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25910 size is zero.
25911
25912 2014-01-17 Richard Biener <rguenther@suse.de>
25913
25914 PR tree-optimization/46590
25915 * opts.c (default_options_table): Add entries for
25916 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25917 all enabled at -O1 but not for -Og.
25918 * common.opt (fbranch-count-reg): Remove Init(1).
25919 (fmove-loop-invariants): Likewise.
25920 (ftree-pta): Likewise.
25921
25922 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25923
25924 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25925 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25926 decls to at least the GCC 4.8 used alignments.
25927
25928 PR fortran/59440
25929 * tree-nested.c (convert_nonlocal_reference_stmt,
25930 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25931 of GIMPLE_BIND stmts, adjust associated decls.
25932
25933 2014-01-17 Richard Biener <rguenther@suse.de>
25934
25935 PR tree-optimization/46590
25936 * vec.h (vec<>::bseach): New member function implementing
25937 binary search according to C89 bsearch.
25938 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25939 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25940 bitmap pointer again. Make accesses_in_loop a flat array.
25941 (mem_ref_obstack): New global.
25942 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25943 (mark_ref_stored): Likewise.
25944 (ref_indep_loop_p_2): Likewise.
25945 (set_ref_stored_in_loop): New helper function.
25946 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25947 (memref_free): Adjust.
25948 (record_mem_ref_loc): Simplify.
25949 (gather_mem_refs_stmt): Adjust.
25950 (sort_locs_in_loop_postorder_cmp): New function.
25951 (analyze_memory_references): Sort accesses_in_loop after
25952 loop postorder number.
25953 (find_ref_loc_in_loop_cmp): New function.
25954 (for_all_locs_in_loop): Find relevant cluster of locs in
25955 accesses_in_loop and iterate without recursion.
25956 (execute_sm): Avoid uninit warning.
25957 (struct ref_always_accessed): Simplify.
25958 (ref_always_accessed::operator ()): Likewise.
25959 (ref_always_accessed_p): Likewise.
25960 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25961 loop postorder numbers here.
25962 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25963 numbers.
25964
25965 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25966
25967 PR c++/57945
25968 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25969 on decls for which assemble_alias has been called.
25970
25971 2014-01-17 Nick Clifton <nickc@redhat.com>
25972
25973 * config/msp430/msp430.opt: (mcpu): New option.
25974 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25975 (msp430_option_override): Parse target_cpu. If the MCU name
25976 matches a generic string, clear target_mcu.
25977 (msp430_attr): Allow numeric interrupt values up to 63.
25978 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25979 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25980 option.
25981 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25982 Add mcpu matches.
25983 * config/msp430/msp430.md (popm): Use %J rather than %I.
25984 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25985 (addhi_cy_i): Use immediate_operand for operand 2.
25986 * doc/invoke.texi: Document -mcpu option.
25987
25988 2014-01-17 Richard Biener <rguenther@suse.de>
25989
25990 PR rtl-optimization/38518
25991 * df.h (df_analyze_loop): Declare.
25992 * df-core.c: Include cfgloop.h.
25993 (df_analyze_1): Split out main part of df_analyze.
25994 (df_analyze): Adjust.
25995 (loop_inverted_post_order_compute): New function.
25996 (loop_post_order_compute): Likewise.
25997 (df_analyze_loop): New function avoiding whole-function
25998 postorder computes.
25999 * loop-invariant.c (find_defs): Use df_analyze_loop.
26000 (find_invariants): Adjust.
26001 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26002
26003 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26004
26005 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26006 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26007
26008 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26009
26010 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26011 traversal when removing references.
26012
26013 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26014
26015 PR ipa/59775
26016 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26017
26018 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26019
26020 PR middle-end/56791
26021 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26022 pushing a reload for an autoinc when we had previously reloaded an
26023 inner part of the address.
26024
26025 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26026
26027 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26028 field.
26029 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26030 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26031 when not giving up or versioning for alias only because of
26032 loop->safelen.
26033 (vect_analyze_data_ref_dependences): Set to true.
26034 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26035 is a GIMPLE_PHI.
26036 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26037 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26038 to the condition.
26039
26040 PR middle-end/58344
26041 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26042
26043 PR target/59839
26044 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26045 operand 0 predicate for gathers, use a new pseudo as subtarget.
26046
26047 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26048
26049 PR middle-end/59609
26050 * lra-constraints.c (process_alt_operands): Add printing debug info.
26051 Check absence of input/output reloads for matched operands too.
26052
26053 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26054
26055 PR rtl-optimization/59835
26056 * ira.c (ira_init_register_move_cost): Increase cost for
26057 impossible modes.
26058
26059 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26060
26061 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26062
26063 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26064
26065 PR target/59780
26066 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26067 non-register objects. Use gen_(high/low)part more consistently.
26068 Fix assertions.
26069
26070 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26071
26072 PR target/59844
26073 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26074 endian support, remove tests for WORDS_BIG_ENDIAN.
26075 (p8_mfvsrd_3_<mode>): Likewise.
26076 (reload_gpr_from_vsx<mode>): Likewise.
26077 (reload_gpr_from_vsxsf): Likewise.
26078 (p8_mfvsrd_4_disf): Likewise.
26079
26080 2014-01-16 Richard Biener <rguenther@suse.de>
26081
26082 PR rtl-optimization/46590
26083 * lcm.c (compute_antinout_edge): Use postorder iteration.
26084 (compute_laterin): Use inverted postorder iteration.
26085
26086 2014-01-16 Nick Clifton <nickc@redhat.com>
26087
26088 PR middle-end/28865
26089 * varasm.c (output_constant): Return the number of bytes actually
26090 emitted.
26091 (output_constructor_array_range): Update the field size with the
26092 number of bytes emitted by output_constant.
26093 (output_constructor_regular_field): Likewise. Also do not
26094 complain if the total number of bytes emitted is now greater
26095 than the expected fieldpos.
26096 * output.h (output_constant): Update prototype and descriptive comment.
26097
26098 2014-01-16 Marek Polacek <polacek@redhat.com>
26099
26100 PR middle-end/59827
26101 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26102 it is error_mark_node.
26103
26104 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26105
26106 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26107 VALID_AVX256_REG_OR_OI_MODE.
26108
26109 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26110
26111 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26112 current procedure should be profiled.
26113
26114 2014-01-15 Andrew Pinski <apinski@cavium.com>
26115
26116 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26117 of moving from/to the STACK_REG register class.
26118
26119 2014-01-15 Richard Henderson <rth@redhat.com>
26120
26121 PR debug/54694
26122 * reginfo.c (global_regs_decl): Globalize.
26123 * rtl.h (global_regs_decl): Declare.
26124 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26125 reserved via global_regs.
26126
26127 2014-01-15 Teresa Johnson <tejohnson@google.com>
26128
26129 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26130
26131 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26132
26133 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26134 and vmulosh rather than call gen_vec_widen_smult_*.
26135 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26136 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26137 (vec_widen_smult_even_v16qi): Likewise.
26138 (vec_widen_umult_even_v8hi): Likewise.
26139 (vec_widen_smult_even_v8hi): Likewise.
26140 (vec_widen_umult_odd_v16qi): Likewise.
26141 (vec_widen_smult_odd_v16qi): Likewise.
26142 (vec_widen_umult_odd_v8hi): Likewise.
26143 (vec_widen_smult_odd_v8hi): Likewise.
26144 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26145 vmuloub rather than call gen_vec_widen_umult_*.
26146 (vec_widen_umult_lo_v16qi): Likewise.
26147 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26148 vmulosb rather than call gen_vec_widen_smult_*.
26149 (vec_widen_smult_lo_v16qi): Likewise.
26150 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26151 rather than call gen_vec_widen_umult_*.
26152 (vec_widen_umult_lo_v8hi): Likewise.
26153 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26154 rather than call gen_vec_widen_smult_*.
26155 (vec_widen_smult_lo_v8hi): Likewise.
26156
26157 2014-01-15 Jeff Law <law@redhat.com>
26158
26159 PR tree-optimization/59747
26160 * ree.c (find_and_remove_re): Properly handle case where a second
26161 eliminated extension requires widening a copy created for elimination
26162 of a prior extension.
26163 (combine_set_extension): Ensure that the number of hard regs needed
26164 for a destination register does not change when we widen it.
26165
26166 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26167
26168 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26169 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26170 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26171 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26172 (avr-*-rtems*): Likewise.
26173 (bfin*-rtems*): Likewise.
26174 (moxie-*-rtems*): Likewise.
26175 (h8300-*-rtems*): Likewise.
26176 (i[34567]86-*-rtems*): Likewise.
26177 (lm32-*-rtems*): Likewise.
26178 (m32r-*-rtems*): Likewise.
26179 (m68k-*-rtems*): Likewise.
26180 (microblaze*-*-rtems*): Likewise.
26181 (mips*-*-rtems*): Likewise.
26182 (powerpc-*-rtems*): Likewise.
26183 (sh-*-rtems*): Likewise.
26184 (sparc-*-rtems*): Likewise.
26185 (sparc64-*-rtems*): Likewise.
26186 (v850-*-rtems*): Likewise.
26187 (m32c-*-rtems*): Likewise.
26188
26189 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26190
26191 PR rtl-optimization/59511
26192 * ira.c (ira_init_register_move_cost): Use memory costs for some
26193 cases of register move cost calculations.
26194 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26195 instead of BB frequency.
26196 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26197 * lra-assigns.c (find_hard_regno_for): Ditto.
26198
26199 2014-01-15 Richard Biener <rguenther@suse.de>
26200
26201 PR tree-optimization/59822
26202 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26203 (vectorizable_load): Use it to hoist defs of uses of invariant
26204 loads out of the loop.
26205
26206 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26207 Kugan Vivekanandarajah <kuganv@linaro.org>
26208
26209 PR target/59695
26210 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26211 truncation.
26212
26213 2014-01-15 Richard Biener <rguenther@suse.de>
26214
26215 PR rtl-optimization/59802
26216 * lcm.c (compute_available): Use inverted postorder to seed
26217 the initial worklist.
26218
26219 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26220
26221 PR target/59803
26222 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26223 ADDR_REGS for invalid symrefs in non-PIC code.
26224
26225 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26226
26227 PR other/58712
26228 * builtins.c (determine_block_size): Initialize *probable_max_size
26229 even if len_rtx is CONST_INT.
26230
26231 2014-01-14 Andrew Pinski <apinski@cavium.com>
26232
26233 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26234 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26235 (cortexa53_tunings): Likewise.
26236 (aarch64_sched_issue_rate): New function.
26237 (TARGET_SCHED_ISSUE_RATE): Define.
26238
26239 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26240
26241 * ira-costs.c (find_costs_and_classes): Add missed
26242 ira_init_register_move_cost_if_necessary.
26243
26244 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26245
26246 PR target/59787
26247 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26248
26249 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26250
26251 PR target/59794
26252 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26253 to indicate if type is used for function return value. Warn ABI
26254 change if the vector mode isn't available for function return value.
26255 (ix86_function_arg_advance): Pass false to type_natural_mode.
26256 (ix86_function_arg): Likewise.
26257 (ix86_gimplify_va_arg): Likewise.
26258 (function_arg_32): Don't warn ABI change.
26259 (ix86_function_value): Pass true to type_natural_mode.
26260 (ix86_return_in_memory): Likewise.
26261 (ix86_struct_value_rtx): Removed.
26262 (TARGET_STRUCT_VALUE_RTX): Likewise.
26263
26264 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26265
26266 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26267 converting a conditional jump into a conditional return.
26268
26269 2014-01-14 Richard Biener <rguenther@suse.de>
26270
26271 PR tree-optimization/58921
26272 PR tree-optimization/59006
26273 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26274 hoisting invariant stmts.
26275 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26276 invariant loads on the preheader edge if possible.
26277
26278 2014-01-14 Joey Ye <joey.ye@arm.com>
26279
26280 * doc/plugin.texi (Building GCC plugins): Update to C++.
26281
26282 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26283
26284 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26285 (_mm_rcp28_round_ss): Ditto.
26286 (_mm_rsqrt28_round_sd): Ditto.
26287 (_mm_rsqrt28_round_ss): Ditto.
26288 (_mm_rcp28_sd): Ditto.
26289 (_mm_rcp28_ss): Ditto.
26290 (_mm_rsqrt28_sd): Ditto.
26291 (_mm_rsqrt28_ss): Ditto.
26292 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26293 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26294 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26295 (IX86_BUILTIN_RCP28SD): Ditto.
26296 (IX86_BUILTIN_RCP28SS): Ditto.
26297 (IX86_BUILTIN_RSQRT28SD): Ditto.
26298 (IX86_BUILTIN_RSQRT28SS): Ditto.
26299 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26300 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26301 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26302 (ix86_expand_special_args_builtin): Expand new FTYPE.
26303 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26304 (srcp14<mode>): Make insn unary.
26305 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26306 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26307 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26308 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26309 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26310 Fix rounding: make it SAE only.
26311 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26312 Ditto.
26313 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26314 Ditto.
26315 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26316 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26317 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26318 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26319 (round_saeonly_mask_scalar_operand4): Ditto.
26320 (round_saeonly_mask_scalar_op3): Ditto.
26321 (round_saeonly_mask_scalar_op4): Ditto.
26322
26323 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26324
26325 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26326 Implement -maltivec=be for vec_insert and vec_extract.
26327
26328 2014-01-10 DJ Delorie <dj@redhat.com>
26329
26330 * config/msp430/msp430.md (call_internal): Don't allow memory
26331 references with SP as the base register.
26332 (call_value_internal): Likewise.
26333 * config/msp430/constraints.md (Yc): New. For memory references
26334 that don't use SP as a base register.
26335
26336 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26337 "an integer without a # prefix"
26338 * config/msp430/msp430.md (epilogue_helper): Use it.
26339
26340 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26341
26342 PR target/59617
26343 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26344 AVX512F gather builtins.
26345 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26346 on gather decls with INTEGER_TYPE masktype.
26347 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26348 directly into the builtin rather than hoisting it before loop.
26349
26350 PR tree-optimization/59387
26351 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26352 (scev_const_prop): If folded_casts and type has undefined overflow,
26353 use force_gimple_operand instead of force_gimple_operand_gsi and
26354 for each added stmt if it is assign with
26355 arith_code_with_undefined_signed_overflow, call
26356 rewrite_to_defined_overflow.
26357 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26358 gimple-fold.h instead.
26359 (arith_code_with_undefined_signed_overflow,
26360 rewrite_to_defined_overflow): Moved to ...
26361 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26362 rewrite_to_defined_overflow): ... here. No longer static.
26363 Include gimplify-me.h.
26364 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26365 rewrite_to_defined_overflow): New prototypes.
26366
26367 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26368
26369 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26370
26371 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26372
26373 * builtins.c (get_object_alignment_2): Minor tweak.
26374 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26375
26376 2014-01-13 Christian Bruel <christian.bruel@st.com>
26377
26378 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26379 optimized non constant lengths.
26380
26381 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26382
26383 PR libgomp/59194
26384 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26385 load as __atomic_load_N if possible.
26386
26387 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26388
26389 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26390 target parameter.
26391 (rs6000_expand_builtin): Adjust call.
26392
26393 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26394
26395 PR target/58115
26396 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26397 * config/rs6000/rs6000.c: Include target-globals.h.
26398 (rs6000_set_current_function): Instead of doing target_reinit
26399 unconditionally, use save_target_globals_default_opts and
26400 restore_target_globals.
26401
26402 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26403 FPSCR.
26404 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26405 (rs6000_expand_builtin): Handle mffs and mtfsf.
26406 (rs6000_init_builtins): Define mffs and mtfsf.
26407 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26408 (rs6000_mffs): New pattern.
26409 (rs6000_mtfsf): New pattern.
26410
26411 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26412
26413 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26414 Start narrowing with START. Apply candidate-use pair
26415 and check overall cost in narrowing.
26416 (iv_ca_prune): Pass new argument.
26417
26418 2014-01-10 Jeff Law <law@redhat.com>
26419
26420 PR middle-end/59743
26421 * ree.c (combine_reaching_defs): Ensure the defining statement
26422 occurs before the extension when optimizing extensions with
26423 different source and destination hard registers.
26424
26425 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26426
26427 PR ipa/58585
26428 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26429 vtables into the type inheritance graph.
26430
26431 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26432
26433 PR rtl-optimization/59754
26434 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26435 modes in the REGNO != REGNO case.
26436
26437 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26438
26439 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26440
26441 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26442
26443 PR tree-optimization/59745
26444 * tree-predcom.c (tree_predictive_commoning_loop): Call
26445 free_affine_expand_cache if giving up because components is NULL.
26446
26447 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26448 GC in payload of target_globals struct instead of allocating them on
26449 the heap and the larger structs separately using GC.
26450 * target-globals.h (struct target_globals): Make regs, hard_regs,
26451 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26452 of GTY((skip)) and change type to void *.
26453 (reset_target_globals): Cast loads from those fields to corresponding
26454 types.
26455
26456 2014-01-10 Steve Ellcey <sellcey@mips.com>
26457
26458 PR plugins/59335
26459 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26460 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26461 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26462
26463 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26464
26465 PR target/59744
26466 * aarch64-modes.def (CC_Zmode): New flags mode.
26467 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26468 represents an equality.
26469 (aarch64_get_condition_code): Handle CC_Zmode.
26470 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26471
26472 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26473
26474 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26475 extraction in good case.
26476
26477 2014-01-10 Richard Biener <rguenther@suse.de>
26478
26479 PR tree-optimization/59374
26480 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26481 checking after SLP discovery. Mark stmts not participating
26482 in any SLP instance properly.
26483
26484 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26485
26486 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26487 when handling a SET rtx.
26488
26489 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26490
26491 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26492 (cortex-a57): Likewise.
26493 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26494
26495 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26496
26497 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26498 non-iwmmxt builtins.
26499
26500 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26501
26502 PR ipa/58252
26503 PR ipa/59226
26504 * ipa-devirt.c record_target_from_binfo): Take as argument
26505 stack of binfos and lookup matching one for virtual inheritance.
26506 (possible_polymorphic_call_targets_1): Update.
26507
26508 2014-01-10 Huacai Chen <chenhc@lemote.com>
26509
26510 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26511 kernel strings for Loongson-2E/2F/3A.
26512
26513 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26514
26515 PR middle-end/59670
26516 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26517 is_gimple_call before calling gimple_call_internal_p.
26518
26519 2014-01-09 Steve Ellcey <sellcey@mips.com>
26520
26521 * Makefile.in (TREE_FLOW_H): Remove.
26522 (TREE_SSA_H): Add file names from tree-flow.h.
26523 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26524 * tree.h: Remove tree-flow.h reference.
26525 * hash-table.h: Remove tree-flow.h reference.
26526 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26527 reference with tree-ssa-loop.h.
26528
26529 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26530
26531 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26532 default element-order behavior for -maltivec.
26533 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26534 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26535 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26536 when targeting big endian, at least for now.
26537 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26538
26539 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26540
26541 PR middle-end/47735
26542 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26543 var satisfies use_register_for_decl, just take into account type
26544 alignment, rather than decl alignment.
26545
26546 PR tree-optimization/59622
26547 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26548 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26549 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26550 Don't devirtualize for inplace at all. For targets.length () == 1,
26551 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26552
26553 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26554
26555 * config/i386/i386.md (cpu): Remove the unused btver1.
26556
26557 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26558
26559 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26560
26561 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26562
26563 PR target/58115
26564 * tree-core.h (struct target_globals): New forward declaration.
26565 (struct tree_target_option): Add globals field.
26566 * tree.h (TREE_TARGET_GLOBALS): Define.
26567 (prepare_target_option_nodes_for_pch): New prototype.
26568 * target-globals.h (struct target_globals): Define even if
26569 !SWITCHABLE_TARGET.
26570 * tree.c (prepare_target_option_node_for_pch,
26571 prepare_target_option_nodes_for_pch): New functions.
26572 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26573 * config/i386/i386.c: Include target-globals.h.
26574 (ix86_set_current_function): Instead of doing target_reinit
26575 unconditionally, use save_target_globals_default_opts and
26576 restore_target_globals.
26577
26578 2014-01-09 Richard Biener <rguenther@suse.de>
26579
26580 PR tree-optimization/59715
26581 * tree-cfg.h (split_critical_edges): Declare.
26582 * tree-cfg.c (split_critical_edges): Export.
26583 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26584
26585 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26586
26587 * cfgexpand.c (expand_stack_vars): Optionally disable
26588 asan stack protection.
26589 (expand_used_vars): Likewise.
26590 (partition_stack_vars): Likewise.
26591 * asan.c (asan_emit_stack_protection): Optionally disable
26592 after return stack usage.
26593 (instrument_derefs): Optionally disable memory access instrumentation.
26594 (instrument_builtin_call): Likewise.
26595 (instrument_strlen_call): Likewise.
26596 (asan_protect_global): Optionally disable global variables protection.
26597 * doc/invoke.texi: Added doc for new options.
26598 * params.def: Added new options.
26599 * params.h: Likewise.
26600
26601 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26602
26603 PR rtl-optimization/59724
26604 * ifcvt.c (cond_exec_process_if_block): Don't call
26605 flow_find_head_matching_sequence with 0 longest_match.
26606 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26607 non-active insns if !stop_after.
26608 (try_head_merge_bb): Revert 2014-01-07 changes.
26609
26610 2014-01-08 Jeff Law <law@redhat.com>
26611
26612 * ree.c (get_sub_rtx): New function, extracted from...
26613 (merge_def_and_ext): Here.
26614 (combine_reaching_defs): Use get_sub_rtx.
26615
26616 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26617
26618 * cgraph.h (varpool_variable_node): Do not choke on null node.
26619
26620 2014-01-08 Catherine Moore <clm@codesourcery.com>
26621
26622 * config/mips/mips.md (simple_return): Attempt to use JRC
26623 for microMIPS.
26624 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26625
26626 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26627
26628 PR rtl-optimization/59137
26629 * reorg.c (steal_delay_list_from_target): Call update_block for
26630 elided insns.
26631 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26632
26633 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26634
26635 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26636 two duplicate entries.
26637
26638 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26639
26640 Revert:
26641 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26642
26643 * config/mips/mips.c (mips_truncated_op_cost): New function.
26644 (mips_rtx_costs): Adjust test for BADDU.
26645 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26646
26647 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26648
26649 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26650 (*baddu_si): ...this new pattern.
26651
26652 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26653
26654 PR ipa/59722
26655 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26656
26657 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26658
26659 PR middle-end/57748
26660 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26661 inner_reference_p.
26662 (expand_expr, expand_normal): Adjust.
26663 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26664 inner_reference_p. Use inner_reference_p to expand inner references.
26665 (store_expr): Adjust.
26666 * cfgexpand.c (expand_call_stmt): Adjust.
26667
26668 2014-01-08 Rong Xu <xur@google.com>
26669
26670 * gcov-io.c (gcov_var): Move from gcov-io.h.
26671 (gcov_position): Ditto.
26672 (gcov_is_error): Ditto.
26673 (gcov_rewrite): Ditto.
26674 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26675 only part to libgcc/libgcov.h.
26676
26677 2014-01-08 Marek Polacek <polacek@redhat.com>
26678
26679 PR middle-end/59669
26680 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26681
26682 2014-01-08 Marek Polacek <polacek@redhat.com>
26683
26684 PR sanitizer/59667
26685 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26686
26687 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26688
26689 PR rtl-optimization/59649
26690 * stor-layout.c (get_mode_bounds): For BImode return
26691 0 and STORE_FLAG_VALUE.
26692
26693 2014-01-08 Richard Biener <rguenther@suse.de>
26694
26695 PR middle-end/59630
26696 * gimple.h (is_gimple_builtin_call): Remove.
26697 (gimple_builtin_call_types_compatible_p): New.
26698 (gimple_call_builtin_p): New overload.
26699 * gimple.c (is_gimple_builtin_call): Remove.
26700 (validate_call): Rename to ...
26701 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26702 check return types.
26703 (validate_type): New static function.
26704 (gimple_call_builtin_p): New overload and adjust.
26705 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26706 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26707 (gimple_fold_stmt_to_constant_1): Likewise.
26708 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26709
26710 2014-01-08 Richard Biener <rguenther@suse.de>
26711
26712 PR middle-end/59471
26713 * gimplify.c (gimplify_expr): Gimplify register-register type
26714 VIEW_CONVERT_EXPRs to separate stmts.
26715
26716 2014-01-07 Jeff Law <law@redhat.com>
26717
26718 PR middle-end/53623
26719 * ree.c (combine_set_extension): Handle case where source
26720 and destination registers in an extension insn are different.
26721 (combine_reaching_defs): Allow source and destination registers
26722 in extension to be different under limited circumstances.
26723 (add_removable_extension): Remove restriction that the
26724 source and destination registers in the extension are the same.
26725 (find_and_remove_re): Emit a copy from the extension's
26726 destination to its source after the defining insn if
26727 the source and destination registers are different.
26728
26729 PR middle-end/59285
26730 * ifcvt.c (merge_if_block): If we are merging a block with more than
26731 one successor with a block with no successors, remove any BARRIER
26732 after the second block.
26733
26734 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26735
26736 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26737
26738 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26739
26740 PR target/59652
26741 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26742 for 14-bit register offsets when INT14_OK_STRICT is false.
26743
26744 2014-01-07 Roland Stigge <stigge@antcom.de>
26745 Michael Meissner <meissner@linux.vnet.ibm.com>
26746
26747 PR 57386/target
26748 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26749 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26750
26751 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26752
26753 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26754 -mcpu.
26755
26756 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26757
26758 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26759 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26760 rtx is const0_rtx or not.
26761
26762 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26763
26764 PR target/58115
26765 * target-globals.c (save_target_globals): Remove this_fn_optab
26766 handling.
26767 * toplev.c: Include optabs.h.
26768 (target_reinit): Temporarily restore the global options if another
26769 set of options are in force.
26770
26771 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26772
26773 PR rtl-optimization/58668
26774 * cfgcleanup.c (flow_find_cross_jump): Don't count
26775 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26776 to determine what is counted.
26777 (flow_find_head_matching_sequence): Use active_insn_p to determine
26778 what is counted.
26779 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26780 counting change.
26781 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26782 determine what is counted.
26783
26784 PR tree-optimization/59643
26785 * tree-predcom.c (split_data_refs_to_components): If one dr is
26786 read and one write, determine_offset fails and the write isn't
26787 in the bad component, just put the read into the bad component.
26788
26789 2014-01-07 Mike Stump <mikestump@comcast.net>
26790 Jakub Jelinek <jakub@redhat.com>
26791
26792 PR pch/59436
26793 * tree-core.h (struct tree_optimization_option): Change optabs
26794 type from unsigned char * to void *.
26795 * optabs.c (init_tree_optimization_optabs): Adjust
26796 TREE_OPTIMIZATION_OPTABS initialization.
26797
26798 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26799
26800 PR target/59644
26801 * config/i386/i386.h (struct machine_function): Add
26802 no_drap_save_restore field.
26803 * config/i386/i386.c (ix86_save_reg): Use
26804 !cfun->machine->no_drap_save_restore instead of
26805 crtl->stack_realign_needed.
26806 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26807 this function clears frame_pointer_needed. Set
26808 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26809 and DRAP reg is needed.
26810
26811 2014-01-06 Marek Polacek <polacek@redhat.com>
26812
26813 PR c/57773
26814 * doc/implement-c.texi: Mention that other integer types are
26815 permitted as bit-field types in strictly conforming mode.
26816
26817 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26818
26819 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26820 is newly allocated.
26821
26822 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26823
26824 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26825
26826 2014-01-06 Martin Jambor <mjambor@suse.cz>
26827
26828 PR ipa/59008
26829 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26830 to int.
26831 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26832
26833 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26834
26835 PR debug/59350
26836 PR debug/59510
26837 * var-tracking.c (add_stores): Preserve the value of the source even if
26838 we don't record the store.
26839
26840 2014-01-06 Terry Guo <terry.guo@arm.com>
26841
26842 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26843
26844 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26845
26846 PR bootstrap/59541
26847 * config/darwin.c (darwin_function_section): Adjust return values to
26848 correspond to optimisation changes made in r206070.
26849
26850 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26851
26852 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26853 from prefetch_block tune setting.
26854 (nocona_cost): Correct size of prefetch block to 64.
26855
26856 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26857
26858 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26859 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26860 used to save the static chain register in the computation of the offset
26861 from which the FP registers need to be restored.
26862
26863 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26864
26865 PR tree-optimization/59519
26866 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26867 ICE if get_current_def (current_new_name) is already non-NULL, as long
26868 as it is a phi result of some other phi in *new_exit_bb that has
26869 the same argument.
26870
26871 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26872 or vmovdqu* for misaligned_operand.
26873 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26874 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26875 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26876 aligned_mem for AVX512F masked aligned load and store builtins and for
26877 non-temporal moves.
26878
26879 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26880
26881 PR tree-optimization/59651
26882 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26883 Address range for negative step should be added by TYPE_SIZE_UNIT.
26884
26885 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26886
26887 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26888 overlapping registers also for registers other than the stack pointer.
26889
26890 2014-01-03 Marek Polacek <polacek@redhat.com>
26891
26892 PR other/59661
26893 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26894 __builtin_FILE.
26895
26896 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26897
26898 PR target/59625
26899 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26900 asm goto as jump.
26901
26902 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26903 (push splitter): Use <P:MODE_SIZE> instead of
26904 GET_MODE_SIZE (<P:MODE>mode).
26905 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26906 (mov -1, reg peephole2): Likewise.
26907 * config/i386/sse.md (*mov<mode>_internal,
26908 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26909 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26910 *<code><mode>3, *andnot<mode>3<mask_name>,
26911 <mask_codefor><code><mode>3<mask_name>): Likewise.
26912 * config/i386/subst.md (mask_mode512bit_condition,
26913 sd_mask_mode512bit_condition): Likewise.
26914
26915 2014-01-02 Xinliang David Li <davidxl@google.com>
26916
26917 PR tree-optimization/59303
26918 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26919 (dump_predicates): Better output format.
26920 (pred_equal_p): New function.
26921 (is_neq_relop_p): Ditto.
26922 (is_neq_zero_form_p): Ditto.
26923 (pred_expr_equal_p): Ditto.
26924 (pred_neg_p): Ditto.
26925 (simplify_pred): Ditto.
26926 (simplify_preds_2): Ditto.
26927 (simplify_preds_3): Ditto.
26928 (simplify_preds_4): Ditto.
26929 (simplify_preds): Ditto.
26930 (push_pred): Ditto.
26931 (push_to_worklist): Ditto.
26932 (get_pred_info_from_cmp): Ditto.
26933 (is_degenerated_phi): Ditto.
26934 (normalize_one_pred_1): Ditto.
26935 (normalize_one_pred): Ditto.
26936 (normalize_one_pred_chain): Ditto.
26937 (normalize_preds): Ditto.
26938 (normalize_cond_1): Remove function.
26939 (normalize_cond): Ditto.
26940 (is_gcond_subset_of): Ditto.
26941 (is_subset_of_any): Ditto.
26942 (is_or_set_subset_of): Ditto.
26943 (is_and_set_subset_of): Ditto.
26944 (is_norm_cond_subset_of): Ditto.
26945 (pred_chain_length_cmp): Ditto.
26946 (convert_control_dep_chain_into_preds): Type change.
26947 (find_predicates): Ditto.
26948 (find_def_preds): Ditto.
26949 (destroy_predicates_vecs): Ditto.
26950 (find_matching_predicates_in_rest_chains): Ditto.
26951 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26952 (is_pred_expr_subset): Ditto.
26953 (is_pred_chain_subset_of): Ditto.
26954 (is_included_in): Ditto.
26955 (is_superset_of): Ditto.
26956
26957 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26958
26959 Update copyright years.
26960
26961 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26962
26963 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26964 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26965 config/arc/arc.md, config/arc/arc.opt,
26966 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26967 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26968 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26969 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26970 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26971 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26972 vtable-verify.c, vtable-verify.h: Use the standard form for the
26973 copyright notice.
26974
26975 2014-01-02 Tobias Burnus <burnus@net-b.de>
26976
26977 * gcc.c (process_command): Update copyright notice dates.
26978 * gcov-dump.c: Ditto.
26979 * gcov.c: Ditto.
26980 * doc/cpp.texi: Bump @copying's copyright year.
26981 * doc/cppinternals.texi: Ditto.
26982 * doc/gcc.texi: Ditto.
26983 * doc/gccint.texi: Ditto.
26984 * doc/gcov.texi: Ditto.
26985 * doc/install.texi: Ditto.
26986 * doc/invoke.texi: Ditto.
26987
26988 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26989
26990 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26991
26992 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26993
26994 * config/i386/sse.md (*mov<mode>_internal): Guard
26995 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26996
26997 PR rtl-optimization/59647
26998 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26999 new_rtx into UNSIGNED_FLOAT rtxes.
27000 \f
27001 Copyright (C) 2014 Free Software Foundation, Inc.
27002
27003 Copying and distribution of this file, with or without modification,
27004 are permitted in any medium without royalty provided the copyright
27005 notice and this notice are preserved.