dwarf2out.c: Include rtl-iter.h.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * dwarf2out.c: Include rtl-iter.h.
4 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5 Remove unused data parameter. Return a bool, inverting the result
6 so that 0/false means "not ok".
7 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8 instead of for_each_rtx.
9
10 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
11
12 * dse.c: Include rtl-iter.h.
13 (check_mem_read_rtx): Change void * parameter to real type.
14 Remove return value.
15 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
16 for_each_rtx. Don't handle null rtxes.
17
18 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19
20 * df-problems.c: Include rtl-iter.h.
21 (find_memory): Turn from being a for_each_rtx callback to being
22 a function that examines each subrtx itself. Continue to look for
23 volatile references even after a nonvolatile one has been found.
24 (can_move_insns_across): Update calls accordingly.
25
26 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
27
28 * ddg.c (walk_mems_2, walk_mems_1): Delete.
29 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
30 to iterate over subrtxes. Return a bool rather than an int.
31
32 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
33
34 * ddg.c: Include rtl-iter.h.
35 (mark_mem_use_1): Rename to...
36 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
37 instead of for_each_rtx.
38 (mem_read_insn_p): Update accordingly.
39
40 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
41
42 * cse.c (change_cc_mode_args): Delete.
43 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
44 a function that examines each subrtx itself. Take the fields of
45 change_cc_mode_args as argument and return void.
46 (cse_change_cc_mode_insn): Update calls accordingly.
47
48 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
49
50 * cse.c (is_dead_reg): Change argument to const_rtx.
51 (dead_debug_insn_data): Delete.
52 (is_dead_debug_insn): Expand commentary. Turn from being a
53 for_each_rtx callback to being a function that examines
54 each subrtx itself. Take the fields of dead_debug_insn_data
55 as argument.
56 (delete_trivially_dead_insns): Update call accordingly.
57
58 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
59
60 * cse.c (check_for_label_ref): Move earlier in file. Turn from
61 being a for_each_rtx callback to being a function that examines
62 each subrtx itself.
63 (cse_extended_basic_block): Update call accordingly.
64
65 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
66
67 * cse.c (check_dependence_data): Delete.
68 (check_dependence): Change from being a for_each_rtx callback to being
69 a function that examines all subrtxes itself. Don't handle null rtxes.
70 (invalidate): Update call accordingly.
71
72 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
73
74 * cse.c: Include rtl-iter.h.
75 (approx_reg_cost_1): Delete.
76 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
77 Don't handle null rtxes.
78
79 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
80
81 * cfgcleanup.c: Include rtl-iter.h.
82 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
83 to being a function that examines each subrtx itself.
84 (thread_jump): Update accordingly.
85
86 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
87
88 * combine-stack-adj.c: Include rtl-iter.h.
89 (record_stack_refs_data): Delete.
90 (record_stack_refs): Turn from being a for_each_rtx callback
91 to being a function that examines each subrtx itself.
92 Take a pointer to the reflist. Invert sense of return value
93 so that true means success and false means failure. Don't
94 handle null rtxes.
95 (combine_stack_adjustments_for_block): Update accordingly.
96
97 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
98
99 * combine.c (record_truncated_value): Turn from being a for_each_rtx
100 callback to a function that takes an rtx and returns a bool
101 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
102 for_each_rtx.
103
104 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
105
106 * combine.c: Include rtl-iter.h.
107 (unmentioned_reg_p_1): Delete.
108 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
109 Don't handle null rtxes.
110
111 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
112
113 * calls.c: Include rtl-iter.h.
114 (internal_arg_pointer_based_exp_1): Delete.
115 (internal_arg_pointer_based_exp): Take a const_rtx.
116 Use FOR_EACH_SUBRTX to iterate over subrtxes.
117
118 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
119
120 * caller-save.c: Include rtl-iter.h.
121 (add_used_regs_1): Delete.
122 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
123 to iterate over subrtxes. Assert that any remaining pseudos
124 have been spilled.
125
126 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
127
128 * bt-load.c: Include rtl-iter.h.
129 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
130 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
131 to iterate over subrtxes.
132 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
133 find_btr_use rather than btr_referenced_p.
134
135 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
136
137 * alias.c: Include rtl-iter.h.
138 (refs_newer_value_cb): Delete.
139 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
140
141 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
142
143 * rtl-iter.h: New file.
144 * rtlanal.c: Include it.
145 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
146 (generic_subrtx_iterator <T>::add_single_to_queue)
147 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
148 (generic_subrtx_iterator <T>::free_array): New functions.
149 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
150 (generic_subrtx_iterator <const_rtx_accessor>)
151 (generic_subrtx_iterator <rtx_var_accessor>
152 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
153 (setup_reg_subrtx_bounds): New function.
154 (init_rtlanal): Call it.
155
156 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
157
158 PR target/62261
159 * config/sh/sh.md (ashlsi3): Handle negative shift count for
160 TARGET_SHMEDIA.
161 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
162
163 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
164
165 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
166
167 2014-08-27 David Malcolm <dmalcolm@redhat.com>
168
169 * rtl.h (JUMP_LABEL_AS_INSN): New.
170
171 2014-08-27 David Malcolm <dmalcolm@redhat.com>
172
173 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
174 rtx_expr_list **.
175 (alloc_EXPR_LIST): Strengthen return type from rtx to
176 rtx_expr_list *.
177 (remove_free_EXPR_LIST_node): Likewise for param.
178 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
179 from rtx to rtx_expr_list *.
180 * sched-int.h (struct deps_desc): Strengthen fields
181 "pending_read_mems" and "pending_write_mems" from rtx to
182 rtx_expr_list *.
183
184 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
185 rtx to rtx_expr_list *.
186 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
187 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
188 rtx_expr_list **.
189 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
190 from rtx to rtx_expr_list *.
191 * loop-iv.c (simplify_using_initial_values): Strengthen local
192 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
193 "pnote_next" from rtx * to rtx_expr_list **.
194 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
195 param "exprp" from rtx * to rtx_expr_list **.
196 (add_insn_mem_dependence): Strengthen local "mem_list" from
197 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
198 to rtx_expr_list *.
199 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
200 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
201 param "old_mems_p" from rtx * to rtx_expr_list **.
202 * var-tracking.c (struct adjust_mem_data): Strengthen field
203 "side_effects" from rtx to rtx_expr_list *.
204 (adjust_insn): Replace NULL_RTX with NULL when assigning to
205 rtx_expr_list *.
206 (prepare_call_arguments): Likewise.
207
208 2014-08-27 David Malcolm <dmalcolm@redhat.com>
209
210 * function.h (struct rtl_data): Strengthen field
211 "x_stack_slot_list" from rtx to rtx_expr_list *.
212
213 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
214 when assigning to stack_slot_list.
215
216 2014-08-27 David Malcolm <dmalcolm@redhat.com>
217
218 * function.h (struct rtl_data): Strengthen field
219 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
220 * rtl.h (remove_node_from_expr_list): Strengthen second param from
221 rtx * to rtx_expr_list **.
222
223 * cfgbuild.c (make_edges): In loop over
224 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
225 rtx_expr_list *, and use methods of the latter class to clarify
226 the code.
227 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
228 rtx_expr_list *, and use methods of the latter class to clarify
229 the code.
230 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
231 * reload1.c (set_initial_label_offsets): Likewise for local "x".
232 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
233 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
234 to rtx_expr_list *. Use methods of the latter class to clarify
235 the code.
236
237 2014-08-27 David Malcolm <dmalcolm@redhat.com>
238
239 * function.h (struct expr_status): Strengthen field
240 "x_forced_labels" from rtx to rtx_expr_list *.
241
242 * cfgbuild.c (make_edges): Split local "x" into two locals,
243 strengthening one from rtx to rtx_expr_list *, and using methods
244 of said class.
245 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
246 loop over forced_labels, introduce strengthen it from rtx to
247 rtx_expr_list *, using methods to clarify the code.
248 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
249 to rtx_expr_list *, using methods of said class to clarify the
250 code.
251 * reload1.c (set_initial_label_offsets): Split local "x" into two
252 per-loop variables, strengthening the first from rtx to
253 rtx_expr_list * and using methods.
254
255 2014-08-27 David Malcolm <dmalcolm@redhat.com>
256
257 * coretypes.h (class rtx_expr_list): Add forward declaration.
258 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
259 * gengenrtl.c (special_rtx): Add EXPR_LIST.
260 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
261 invariant: GET_CODE (X) == EXPR_LIST.
262 (is_a_helper <rtx_expr_list *>::test): New.
263 (rtx_expr_list::next): New.
264 (rtx_expr_list::element): New.
265 (gen_rtx_EXPR_LIST): New.
266
267 2014-08-27 David Malcolm <dmalcolm@redhat.com>
268
269 * varasm.c (mark_constants): Convert a GET_CODE check into a
270 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
271 Use methods of rtx_sequence to clarify the code.
272
273 2014-08-27 David Malcolm <dmalcolm@redhat.com>
274
275 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
276 local "seq" via a checked cast, and use methods of rtx_sequence
277 to simplify the code.
278
279 2014-08-27 David Malcolm <dmalcolm@redhat.com>
280
281 * resource.c (mark_referenced_resources): Strengthen local
282 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
283 using methods of rtx_sequence to clarify the code.
284 (find_dead_or_set_registers): Within the switch statement, convert
285 a GET_CODE check to a dyn_cast, introducing local "seq". Within
286 the JUMP_P handling, introduce another local "seq", adding a
287 checked cast to rtx_sequence *. In both cases, use methods of
288 rtx_sequence to clarify the code.
289 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
290 via a checked cast, and use methods of rtx_sequence to simplify
291 the code.
292
293 2014-08-27 David Malcolm <dmalcolm@redhat.com>
294
295 * reorg.c (redundant_insn): In two places in the function, replace
296 a check of GET_CODE with a dyn_cast, introducing local "seq", and
297 usings methods of rtx_sequence to clarify the code.
298
299 2014-08-27 David Malcolm <dmalcolm@redhat.com>
300
301 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
302 local "seq" with a checked cast, and use methods of rtx_sequence
303 to clarify the code.
304
305 2014-08-27 David Malcolm <dmalcolm@redhat.com>
306
307 * function.c (contains): Introduce local "seq" for PATTERN (insn),
308 with a checked cast, in the region for where we know it's a
309 SEQUENCE. Use methods of rtx_sequence.
310
311 2014-08-27 David Malcolm <dmalcolm@redhat.com>
312
313 * final.c (get_attr_length_1): Replace GET_CODE check with a
314 dyn_cast, introducing local "seq" and the use of methods of
315 rtx_sequence.
316 (shorten_branches): Likewise, introducing local "body_seq".
317 Strengthen local "inner_insn" from rtx to rtx_insn *.
318 (reemit_insn_block_notes): Replace GET_CODE check with a
319 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
320 Use methods of rtx_sequence.
321 (final_scan_insn): Likewise, introducing local "seq" for when
322 "body" is known to be a SEQUENCE, using its methods.
323
324 2014-08-27 David Malcolm <dmalcolm@redhat.com>
325
326 * except.c (can_throw_external): Strengthen local "seq" from rtx
327 to rtx_sequence *. Use methods of rtx_sequence.
328 (insn_nothrow_p): Likewise.
329
330 2014-08-27 David Malcolm <dmalcolm@redhat.com>
331
332 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
333 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
334 Use methods of rtx_sequence.
335 (scan_trace): Likewise for local "pat".
336
337 2014-08-27 David Malcolm <dmalcolm@redhat.com>
338
339 * coretypes.h (class rtx_sequence): Add forward declaration.
340 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
341 invariant: GET_CODE (X) == SEQUENCE.
342 (is_a_helper <rtx_sequence *>::test): New.
343 (is_a_helper <const rtx_sequence *>::test): New.
344 (rtx_sequence::len): New.
345 (rtx_sequence::element): New.
346 (rtx_sequence::insn): New.
347
348 2014-08-27 David Malcolm <dmalcolm@redhat.com>
349
350 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
351 rtx_insn_list **.
352 (alloc_INSN_LIST): Strengthen return type from rtx to
353 rtx_insn_list *.
354 (copy_INSN_LIST): Likewise for return type and param.
355 (concat_INSN_LIST): Likewise for both params and return type.
356 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
357 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
358 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
359 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
360
361 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
362 "implicit_sets", "control_uses", "clobbers" from rtx to
363 rtx_insn_list *.
364 (struct deps_desc): Likewise for fields "pending_read_insns",
365 "pending_write_insns", "pending_jump_insns",
366 "last_pending_memory_flush", "last_function_call",
367 "last_function_call_may_noreturn", "sched_before_next_call",
368 "sched_before_next_jump".
369 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
370 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
371
372 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
373 from rtx to rtx_insn_list *.
374 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
375 rtx_insn_list *.
376
377 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
378 to rtx_insn_list **.
379 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
380 rtx_insn_list *.
381 (queue_insn): Likewise for local "link".
382 (struct haifa_saved_data): Strengthen field "insn_queue" from
383 rtx * to rtx_insn_list **.
384 (save_backtrack_point): Update allocation of save->insn_queue to
385 reflect the strengthening of elements from rtx to rtx_insn_list *.
386 (queue_to_ready): Strengthen local "link" from rtx to
387 rtx_insn_list *; use methods "next" and "insn" when traversing the
388 list.
389 (early_queue_to_ready): Likewise for locals "link", "next_link",
390 "prev_link".
391 (schedule_block): Update allocation of insn_queue to reflect the
392 strengthening of elements from rtx to rtx_insn_list *. Strengthen
393 local "link" from rtx to rtx_insn_list *, and use methods when
394 working it.
395 (add_to_speculative_block): Strengthen locals "twins" and
396 "next_node" from rtx to rtx_insn_list *, and use methods when
397 working with them. Strengthen local "twin" from rtx to
398 rtx_insn *, eliminating a checked cast.
399 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
400 from rtx to rtx_insn_list *, and use methods when working with
401 them.
402
403 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
404 from rtx to rtx_insn_list *, adding a checked cast.
405 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
406 rtx_insn_list **.
407 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
408 "newlink" from rtx to rtx_insn_list *. Strengthen local
409 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
410 from rtx to rtx_insn *.
411 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
412 from rtx to rtx_insn_list *. Use methods of the latter class.
413 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
414 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
415 (remove_free_INSN_LIST_node): Strengthen return type and local
416 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
417 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
418 rtx_insn_list *, using "insn" method.
419
420 * sched-deps.c (add_dependence_list): Strengthen param "list"
421 from rtx to rtx_insn_list *, and use methods when working with it.
422 (add_dependence_list_and_free): Strengthen param "listp" from
423 rtx * to rtx_insn_list **.
424 (remove_from_dependence_list): Strenghten param "listp" from rtx *
425 to rtx_insn_list **, and use methods when working with *listp.
426 (remove_from_both_dependence_lists): Strengthen param "listp" from
427 rtx * to rtx_insn_list **
428 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
429 to rtx_insn_list **. Eliminate local "link", in favor of two new
430 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
431 respectively.
432 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
433 by introducing local "cond_deps".
434 (remove_from_deps): Strengthen param "insn" from rtx to
435 rtx_insn *.
436
437 * sched-rgn.c (concat_insn_mem_list): Strengthen param
438 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
439 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
440 Use methods of rtx_insn_list.
441
442 * store-motion.c (struct st_expr): Strengthen fields
443 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
444 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
445 rtx_insn_list *.
446 (find_moveable_store): Split out "tmp" into multiple more-tightly
447 scoped locals. Use methods of rtx_insn_list *.
448 (compute_store_table): Strengthen local "tmp" from rtx to
449 rtx_insn *. Use methods of rtx_insn_list *.
450
451 2014-08-27 David Malcolm <dmalcolm@redhat.com>
452
453 * coretypes.h (class rtx_insn_list): Add forward declaration.
454 * rtl.h (class rtx_insn_list): New subclass of rtx_def
455 (is_a_helper <rtx_insn_list *>::test): New.
456 (rtx_insn_list::next): New.
457 (rtx_insn_list::insn): New.
458 (gen_rtx_INSN_LIST): Add prototype.
459 * emit-rtl.c (gen_rtx_INSN_LIST): New.
460 * gengenrtl.c (special_rtx): Add INSN_LIST.
461
462 2014-08-27 David Malcolm <dmalcolm@redhat.com>
463
464 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
465 "prev" from rtx to rtx_insn *.
466
467 2014-08-27 David Malcolm <dmalcolm@redhat.com>
468
469 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
470 functions. Require merely an rtx for now, not an rtx_insn *.
471 (BLOCK_FOR_INSN): Likewise.
472 (INSN_LOCATION): Likewise.
473 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
474
475 2014-08-27 David Malcolm <dmalcolm@redhat.com>
476
477 * rtl.h (PATTERN): Convert this macro into a pair of inline
478 functions, for now, requiring const_rtx and rtx.
479
480 2014-08-27 David Malcolm <dmalcolm@redhat.com>
481
482 * target.def (unwind_emit): Strengthen param "insn" from rtx to
483 rtx_insn *.
484 (final_postscan_insn): Likewise.
485 (adjust_cost): Likewise.
486 (adjust_priority): Likewise.
487 (variable_issue): Likewise.
488 (macro_fusion_pair_p): Likewise.
489 (dfa_post_cycle_insn): Likewise.
490 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
491 (first_cycle_multipass_issue): Likewise.
492 (dfa_new_cycle): Likewise.
493 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
494 (speculate_insn): Likewise for param "insn".
495 (gen_spec_check): Likewise for params "insn" and "label".
496 (get_insn_spec_ds): Likewise for param "insn".
497 (get_insn_checked_ds): Likewise.
498 (dispatch_do): Likewise.
499 (dispatch): Likewise.
500 (cannot_copy_insn_p): Likewise.
501 (invalid_within_doloop): Likewise.
502 (legitimate_combined_insn): Likewise.
503 (needed): Likewise.
504 (after): Likewise.
505
506 * doc/tm.texi: Automatically updated to reflect changes to
507 target.def.
508
509 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
510 working with insn.
511 (schedule_block): Likewise.
512 (sched_init): Likewise.
513 (sched_speculate_insn): Strengthen param "insn" from rtx to
514 rtx_insn *.
515 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
516 working with insn.
517 * hooks.c (hook_bool_rtx_true): Rename to...
518 hook_bool_rtx_insn_true): ...this, and strengthen first param from
519 rtx to rtx_insn *.
520 (hook_constcharptr_const_rtx_null): Rename to...
521 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
522 first param from const_rtx to const rtx_insn *.
523 (hook_bool_rtx_int_false): Rename to...
524 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
525 param from rtx to rtx_insn *.
526 (hook_void_rtx_int): Rename to...
527 (hook_void_rtx_insn_int): ...this, and strengthen first param from
528 rtx to rtx_insn *.
529
530 * hooks.h (hook_bool_rtx_true): Rename to...
531 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
532 rtx to rtx_insn *.
533 (hook_bool_rtx_int_false): Rename to...
534 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
535 param from rtx to rtx_insn *.
536 (hook_void_rtx_int): Rename to...
537 (hook_void_rtx_insn_int): ...this, and strengthen first param from
538 rtx to rtx_insn *.
539 (hook_constcharptr_const_rtx_null): Rename to...
540 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
541 first param from const_rtx to const rtx_insn *.
542
543 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
544 and local "prev" from rtx to rtx_insn *.
545
546 * sched-int.h (sched_speculate_insn): Strengthen first param from
547 rtx to rtx_insn *.
548
549 * sel-sched.c (create_speculation_check): Likewise for local "label".
550 * targhooks.c (default_invalid_within_doloop): Strengthen param
551 "insn" from const_rtx to const rtx_insn *.
552 * targhooks.h (default_invalid_within_doloop): Strengthen param
553 from const_rtx to const rtx_insn *.
554
555 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
556 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
557
558 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
559 "insn".
560 (arc_invalid_within_doloop): Likewise, with const.
561
562 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
563 (arm_cannot_copy_insn_p): Likewise for param "insn".
564 (arm_unwind_emit): Likewise.
565
566 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
567 "dep_insn".
568
569 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
570 (c6x_variable_issue): Likewise. Removed now-redundant checked
571 cast.
572 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
573
574 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
575 Likewise for param "insn".
576 (epiphany_mode_after): Likewise.
577 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
578 params "insn", "dep_insn".
579 (epiphany_mode_needed): Likewise for param "insn".
580 (epiphany_mode_after): Likewise.
581
582 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
583 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
584 (ix86_avx_u128_mode_needed): Likewise.
585 (ix86_i387_mode_needed): Likewise.
586 (ix86_mode_needed): Likewise.
587 (ix86_avx_u128_mode_after): Likewise.
588 (ix86_mode_after): Likewise.
589 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
590 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
591 (ix86_adjust_priority): Likewise for param "insn".
592 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
593 (do_dispatch): Likewise.
594 (has_dispatch): Likewise.
595 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
596
597 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
598 reflect renaming of default hook implementation from
599 hook_constcharptr_const_rtx_null to
600 hook_constcharptr_const_rtx_insn_null.
601 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
602 rtx to rtx_insn *.
603 (ia64_variable_issue): Likewise for param "insn".
604 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
605 (ia64_dfa_new_cycle): Likewise.
606 (ia64_get_insn_spec_ds): Likewise.
607 (ia64_get_insn_checked_ds): Likewise.
608 (ia64_speculate_insn): Likewise.
609 (ia64_gen_spec_check): Likewise for params "insn", "label".
610 (ia64_asm_unwind_emit): Likewise for param "insn".
611
612 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
613
614 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
615 "insn", "def_insn".
616 (m68k_sched_variable_issue): Likewise for param "insn".
617
618 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
619 "def_insn".
620
621 * config/microblaze/microblaze.c (microblaze_adjust_cost):
622 Likewise for params "insn", "dep".
623
624 * config/mips/mips.c (mips_adjust_cost): Likewise.
625 (mips_variable_issue): Likewise for param "insn".
626 (mips_final_postscan_insn): Likewise.
627
628 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
629 for params "insn", "dep".
630
631 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
632 "dep_insn".
633 (pa_adjust_priority): Likewise for param "insn".
634
635 * config/picochip/picochip.c (picochip_sched_adjust_cost):
636 Likewise for params "insn", "dep_insn".
637
638 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
639 param "insn".
640 (rs6000_variable_issue): Likewise.
641 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
642 (rs6000_debug_adjust_cost): Likewise.
643 (rs6000_adjust_priority): Likewise for param "insn".
644 (rs6000_use_sched_lookahead_guard): Likewise.
645 (get_next_active_insn): Likewise for return type and both params.
646 (redefine_groups): Likewise for params "prev_head_insn", "tail"
647 and locals "insn", "next_insn".
648 (pad_groups): Likewise.
649
650 * config/s390/s390.c (s390_adjust_priority): Likewise for param
651 "insn".
652 (s390_cannot_copy_insn_p): Likewise.
653 (s390_sched_variable_issue): Likewise for third param, eliminating
654 checked cast.
655 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
656 default hook implementation from hook_constcharptr_const_rtx_null
657 to hook_constcharptr_const_rtx_insn_null.
658
659 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
660 from rtx to rtx_insn *.
661 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
662 (sh_variable_issue): Likewise for param "insn".
663 (sh_dfa_new_cycle): Likewise.
664 (sh_mode_needed): Likewise.
665 (sh_mode_after): Likewise.
666
667 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
668 params "insn", "dep_insn".
669 (hypersparc_adjust_cost): Likewise.
670 (sparc_adjust_cost): Likewise.
671
672 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
673 param, eliminated checked cast.
674 (spu_sched_adjust_cost): Likewise for first and third params.
675
676 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
677 params "insn" and "dep_insn" from rtx to rtx_insn *.
678
679 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
680
681 2014-08-27 David Malcolm <dmalcolm@redhat.com>
682
683 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
684 (set_is_load_p): ...this, updating to work on a SET pattern rather
685 than an insn.
686 (is_store_insn): Rename to...
687 (set_is_store_p): ...this, updating to work on a SET pattern
688 rather than an insn.
689 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
690 top of function to where it is needed. Rewrite the bogus
691 condition that checks for "insn" and "dep" being PARALLEL to
692 instead use single_set, introducing locals "insn_set" and
693 "dep_set". Given that we only ever returned "cost" for a non-pair
694 of SETs, bail out early if we don't have a pair of SET.
695 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
696 use the new locals "insn_set" and "dep_set", and update calls to
697 is_load_insn and is_store_insn to be calls to set_is_load_p and
698 set_is_store_p.
699
700 2014-08-27 Guozhi Wei <carrot@google.com>
701
702 PR target/62262
703 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
704 amount before using it.
705
706 2014-08-27 Richard Biener <rguenther@suse.de>
707
708 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
709 get_maxval_strlen inside a more useful API.
710 (gimple_fold_builtin_with_strlen): Remove and fold into ...
711 (gimple_fold_builtin): ... caller.
712 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
713 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
714 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
715 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
716 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
717 gimple_fold_builtin_sprintf): Adjust to compute maxval
718 themselves.
719
720 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
721
722 PR other/62248
723 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
724
725 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
726 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
727 Anna Tikhonova <anna.tikhonova@intel.com>
728 Ilya Tocar <ilya.tocar@intel.com>
729 Andrey Turetskiy <andrey.turetskiy@intel.com>
730 Ilya Verbin <ilya.verbin@intel.com>
731 Kirill Yukhin <kirill.yukhin@intel.com>
732 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
733
734 * config/i386/sse.md
735 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
736 Use `concat_tg_mode' attribute to determine asm register size.
737
738 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
740 Anna Tikhonova <anna.tikhonova@intel.com>
741 Ilya Tocar <ilya.tocar@intel.com>
742 Andrey Turetskiy <andrey.turetskiy@intel.com>
743 Ilya Verbin <ilya.verbin@intel.com>
744 Kirill Yukhin <kirill.yukhin@intel.com>
745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
746
747 * config/i386/sse.md
748 (define_mode_iterator VI48_AVX512VL): New.
749 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
750 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
751 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
752 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
753 with VI1): Change mode iterator.
754 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
755 with VI_ULOADSTORE_BW_AVX512VL): New.
756 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
757 with VI_ULOADSTORE_F_AVX512VL): Ditto.
758 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
759 with VI1): Change mode iterator.
760 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
761 with VI_ULOADSTORE_BW_AVX512VL): New.
762 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
763 with VI_ULOADSTORE_F_AVX512VL): Ditto.
764 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
765 with VI1): Change mode iterator.
766 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
767 with VI_ULOADSTORE_BW_AVX512VL): New.
768 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
769 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
770 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
771 (define_insn "<avx512>_storedqu<mode>_mask" with
772 VI48_AVX512VL): New.
773 (define_insn "<avx512>_storedqu<mode>_mask" with
774 VI12_AVX512VL): Ditto.
775
776 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
777 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
778 Anna Tikhonova <anna.tikhonova@intel.com>
779 Ilya Tocar <ilya.tocar@intel.com>
780 Andrey Turetskiy <andrey.turetskiy@intel.com>
781 Ilya Verbin <ilya.verbin@intel.com>
782 Kirill Yukhin <kirill.yukhin@intel.com>
783 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
784
785 * config/i386/sse.md
786 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
787 (define_mode_iterator VI48_AVX512BW): New.
788 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
789 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
790 with VI48_AVX2_48_AVX512F): New.
791 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
792 with VI2_AVX512VL): Ditto.
793
794 2014-08-27 Richard Biener <rguenther@suse.de>
795
796 PR middle-end/62239
797 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
798 (fold_builtin_3): Do not fold strcat_chk here.
799 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
800 from builtins.c.
801 (gimple_fold_builtin): Fold strcat_chk here.
802
803 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
804
805 * dwarf2out.h (dwarf2out_decl): Remove prototype.
806 * dwarf2out.c (dwarf2out_decl): Make static.
807
808 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
809
810 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
811
812 2014-08-26 David Malcolm <dmalcolm@redhat.com>
813
814 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
815 from rtx to rtx_insn *.
816 (cselib_lookup_from_insn): Likewise for final param.
817 (cselib_subst_to_values_from_insn): Likewise.
818 (cselib_add_permanent_equiv): Likewise.
819
820 * cselib.c (cselib_current_insn): Likewise for this variable.
821 (cselib_subst_to_values_from_insn): Likewise for param "insn".
822 (cselib_lookup_from_insn): Likewise.
823 (cselib_add_permanent_equiv): Likewise for param "insn" and local
824 "save_cselib_current_insn".
825 (cselib_process_insn): Replace use of NULL_RTX with NULL.
826
827 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
828 from rtx to rtx_insn *.
829
830 2014-08-26 David Malcolm <dmalcolm@redhat.com>
831
832 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
833 rtx_insn *.
834
835 2014-08-26 David Malcolm <dmalcolm@redhat.com>
836
837 * df.h (df_dump_insn_problem_function): Strengthen first param of
838 this callback from const_rtx to const rtx_insn *.
839 (struct df_insn_info): Strengthen field "insn" from rtx to
840 rtx_insn *.
841 (DF_REF_INSN): Eliminate this function, reinstating the older
842 macro definition.
843 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
844 (df_reg_defined): Likewise.
845 (df_find_use): Likewise.
846 (df_reg_used): Likewise.
847 (df_dump_insn_top): Strengthen param 1 from const_rtx to
848 const rtx_insn *.
849 (df_dump_insn_bottom): Likewise.
850 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
851 (df_insn_debug_regno): Likewise.
852 (debug_df_insn): Likewise.
853 (df_rd_simulate_one_insn): Likewise for param 2.
854 (df_word_lr_simulate_defs): Likewise for param 1.
855 (df_word_lr_simulate_uses): Likewise.
856 (df_md_simulate_one_insn): Likewise for param 2.
857 (df_simulate_find_noclobber_defs): Likewise for param 1.
858 (df_simulate_find_defs): Likewise.
859 (df_simulate_defs): Likewise.
860 (df_simulate_uses): Likewise.
861 (df_simulate_one_insn_backwards): Likewise for param 2.
862 (df_simulate_one_insn_forwards): Likewise.
863 (df_uses_create): Likewise for param 2.
864 (df_insn_create_insn_record): Likewise for param 1.
865 (df_insn_delete): Likewise.
866 (df_insn_rescan): Likewise.
867 (df_insn_rescan_debug_internal): Likewise.
868 (df_insn_change_bb): Likewise.
869 (df_notes_rescan): Likewise.
870 * rtl.h (remove_death): Likewise for param 2.
871 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
872 const rtx_insn *.
873 * sched-int.h (reemit_notes): Strengthen param from rtx to
874 rtx_insn *.
875 * valtrack.h (propagate_for_debug): Likewise for param 1.
876
877 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
878 local "tmp_rtx" from const_rtx to const rtx_insn *.
879 * combine.c (remove_death): Strengthen param "insn" from rtx to
880 rtx_insn *.
881 (move_deaths): Likewise for local "where_dead".
882 * cse.c (delete_trivially_dead_insns): Introduce local
883 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
884 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
885 rtx_insn *.
886 (df_reg_defined): Likewise.
887 (df_find_use): Likewise.
888 (df_reg_used): Likewise.
889 (df_dump_insn_problem_data): Strengthen param "insn" from
890 const_rtx to const rtx_insn *.
891 (df_dump_insn_top): Likewise.
892 (df_dump_insn_bottom): Likewise.
893 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
894 (df_insn_debug_regno): Likewise.
895 (debug_df_insn): Likewise.
896 (DF_REF_INSN): Delete.
897 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
898 from rtx to rtx_insn *.
899 (df_chain_insn_top_dump): Strengthen param "insn" from
900 const_rtx to const rtx_insn *.
901 (df_chain_insn_bottom_dump): Likewise.
902 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
903 rtx_insn *.
904 (df_word_lr_simulate_uses): Likewise.
905 (df_print_note): Likewise.
906 (df_remove_dead_and_unused_notes): Likewise.
907 (df_set_unused_notes_for_mw): Likewise.
908 (df_set_dead_notes_for_mw): Likewise.
909 (df_create_unused_note): Likewise.
910 (df_simulate_find_defs): Likewise.
911 (df_simulate_find_uses): Likewise.
912 (df_simulate_find_noclobber_defs): Likewise.
913 (df_simulate_defs): Likewise.
914 (df_simulate_uses): Likewise.
915 (df_simulate_one_insn_backwards): Likewise.
916 (df_simulate_one_insn_forwards): Likewise.
917 (df_md_simulate_one_insn): Likewise.
918 * df-scan.c (df_uses_create): Likewise.
919 (df_insn_create_insn_record): Likewise.
920 (df_insn_delete): Likewise.
921 (df_insn_rescan): Likewise.
922 (df_insn_rescan_debug_internal): Likewise.
923 (df_insn_change_bb): Likewise.
924 (df_notes_rescan): Likewise.
925 (df_refs_add_to_chains): Likewise.
926 (df_insn_refs_verify): Likewise.
927 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
928 when invoking df_insn_delete.
929 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
930 (set_unique_reg_note): Add checked cast.
931 * final.c (cleanup_subreg_operands): Likewise.
932 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
933 "insn" from rtx to rtx_insn *.
934 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
935 "last" from rtx to rtx_insn *.
936 * ira-emit.c (change_regs_in_insn): New function.
937 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
938 Invoke change_regs_in_insn rather than change_regs.
939 * ira.c (update_equiv_regs): Strengthen locals "insn",
940 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
941 for_each_rtx_in_insn rather than for_each_rtx.
942 * recog.c (confirm_change_group): Add checked casts.
943 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
944 Add checked cast.
945 (peep2_fill_buffer): Add checked cast.
946 * rtlanal.c (remove_note): Likewise.
947 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
948 locals "next" "end" from rtx to rtx_insn *.
949
950 2014-08-26 David Malcolm <dmalcolm@redhat.com>
951
952 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
953 to rtx_insn *.
954 (struct reg_use_data): Likewise for field "insn".
955 (insn_cost): Likewise for param.
956 (real_insn_for_shadow): Likewise for return type and param.
957 (increase_insn_priority): Likewise for param 1.
958 (debug_dependencies): Likewise for both params.
959
960 * haifa-sched.c (insn_delay): Likewise for param "insn".
961 (real_insn_for_shadow): Likewise for return type and param "insn".
962 (update_insn_after_change): Likewise for param "insn".
963 (recompute_todo_spec): Likewise for param "next" and locals "pro",
964 "other".
965 (insn_cost): Likewise for param "insn".
966 (increase_insn_priority): Likewise.
967 (calculate_reg_deaths): Likewise.
968 (setup_insn_reg_pressure_info): Likewise.
969 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
970 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
971 (model_recompute): Likewise.
972 (must_restore_pattern_p): Likewise for param "next".
973 (model_excess_cost): Likewise for param "insn".
974 (queue_remove): Likewise.
975 (adjust_priority): Likewise for param "prev".
976 (update_register_pressure): Likewise for param "insn".
977 (setup_insn_max_reg_pressure): Likewise for local "insn".
978 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
979 (model_add_to_schedule): Likewise.
980 (model_reset_queue_indices): Likewise for local "insn".
981 (unschedule_insns_until): Strengthen local "recompute_vec" from
982 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
983 "con" from rtx to rtx_insn *.
984 (restore_last_backtrack_point): Likewise for both locals "x". Add
985 checked casts.
986 (estimate_insn_tick): Likewise for param "insn".
987 (commit_schedule): Likewise for params "prev_head", "tail" and
988 local "x".
989 (verify_shadows): Likewise for locals "i1", "i2".
990 (dump_insn_stream): Likewise for params "head", "tail" and locals
991 "next_tail", "insn".
992 (schedule_block): Likewise for locals "insn", "x". Add a checked
993 cast.
994 (fix_inter_tick): Likewise for params "head", "tail".
995 (create_check_block_twin): Likewise for local "jump".
996 (haifa_change_pattern): Likewise for param "insn".
997 (haifa_speculate_insn): Likewise.
998 (dump_new_block_header): Likewise for params "head", "tail".
999 (fix_jump_move): Likewise for param "jump".
1000 (move_block_after_check): Likewise.
1001 (sched_init_insn_luid): Likewise for param "insn".
1002 (sched_init_luids): Likewise for local "insn".
1003 (insn_luid): Likewise for param "insn".
1004 (init_h_i_d): Likewise.
1005 (haifa_init_h_i_d): Likewise for local "insn".
1006 (haifa_init_insn): Likewise for param "insn".
1007 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1008 "other".
1009 (create_insn_reg_use): Likewise for param "insn".
1010 (setup_insn_reg_uses): Likewise. Add a checked cast.
1011 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1012 "tail" from rtx to rtx_insn *.
1013 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1014 "insn", "next_tail".
1015
1016 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1017
1018 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1019 from rtx to rtx_insn *.
1020 (model_add_to_schedule): Likewise for locals "start", "end",
1021 "iter".
1022
1023 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1024
1025 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1026 rtx_insn *.
1027 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1028 "to" and locals "insn", "next", "copy". Remove now-redundant
1029 checked cast.
1030
1031 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1032
1033 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1034 rtx_insn * and param 4 from rtx * to rtx_insn **.
1035 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1036 param 2 from rtx * to rtx_insn **.
1037
1038 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1039 rtx_insn * and final param from rtx * to rtx_insn **.
1040
1041 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1042 from rtx to rtx_insn *.
1043 (try_head_merge_bb): Likewise for both locals named "move_upto".
1044 * df-problems.c (can_move_insns_across): Likewise for params
1045 "from", "to", "across_from", "across_to" and locals "insn",
1046 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1047 rtx_insn **.
1048 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1049 from rtx to rtx_insn *.
1050 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1051 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1052 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1053 rtx_insn *.
1054 (noce_try_abs): Likewise.
1055 (noce_get_condition): Likewise for param "jump". Strengthen param
1056 "earliest" from rtx * to rtx_insn **.
1057 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1058 rtx_insn *.
1059 (find_cond_trap): Likewise.
1060 (dead_or_predicable): Likewise for local "earliest".
1061 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1062 checked cast.
1063 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1064 and local "prev". Strengthen param "earliest" from rtx * to
1065 rtx_insn **.
1066 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1067 Strengthen param "earliest" from rtx * to rtx_insn **.
1068
1069 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1070
1071 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1072 "to" and local "insn" from rtx to rtx_insn *.
1073
1074 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1075
1076 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1077 from rtx to rtx_insn *.
1078 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1079 (code_motion_path_driver): Likewise for local "last_insn".
1080 (simplify_changed_insns): Likewise for local "insn".
1081
1082 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1083
1084 * rtl.h (push_to_sequence): Strengthen param from rtx to
1085 rtx_insn *.
1086 (push_to_sequence2): Likewise for both params.
1087 (delete_insns_since): Likewise for param.
1088 (reorder_insns_nobb): Likewise for all three params.
1089 (set_new_first_and_last_insn): Likewise for both params.
1090
1091 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1092 rtx_insn *. Remove now-redundant cast.
1093 (set_last_insn): Likewise.
1094
1095 * builtins.c (expand_builtin_return): Strengthen local
1096 "call_fusage" from rtx to rtx_insn *.
1097 * cfgrtl.c (create_basic_block_structure): Likewise for local
1098 "after".
1099 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1100 "first", "last" and local "insn".
1101 (delete_insns_since): Likewise for param "from".
1102 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1103 and local "x".
1104 (push_to_sequence): Likewise for param "first" and local "last".
1105 (push_to_sequence2): Likewise for params "first" and "last".
1106 * lra.c (emit_add3_insn): Likewise for local "last".
1107 (lra_emit_add): Likewise.
1108 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1109 "last_insn".
1110 (process_address_1): Likewise for locals "insn", last".
1111 * modulo-sched.c (ps_first_note): Likewise for return type.
1112 * optabs.c (expand_binop_directly): Likewise for param "last".
1113
1114 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1115
1116 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1117 to rtx_insn*.
1118 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1119
1120 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1121
1122 * function.h (struct sequence_stack): Strengthen fields "first"
1123 and "last" from rtx to rtx_insn *.
1124 (struct emit_status): Likewise for fields "x_first_insn" and
1125 "x_last_insn".
1126
1127 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1128 (set_first_insn): Add checked cast.
1129 (get_last_insn): Remove now-redundant checked cast.
1130 (set_last_insn): Add checked cast.
1131
1132 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1133 "saved_first" and "saved_last" from rtx to rtx_insn *.
1134
1135 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1136
1137 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1138 (unlink_insn_chain): Strengthen both params from rtx to
1139 rtx_insn *.
1140
1141 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1142 variable.
1143 (unlink_insn_chain): Likewise for params "first" and "last".
1144 Remove now-redundant checked cast.
1145 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1146 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1147 rtx_insn *.
1148 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1149 params.
1150 (add_insn): Likewise for param "insn" and local "prev".
1151 (add_insn_after_nobb): Likewise for both params and local "next".
1152 (add_insn_before_nobb): Likewise for both params and local "prev".
1153 (add_insn_after): Rename param "after" to "uncast_after",
1154 introducing local "after" with another checked cast.
1155 (add_insn_before): Rename params "insn" and "before", giving them
1156 "uncast_" prefixes, adding the old names back using checked casts.
1157 (emit_note_after): Likewise for param "after".
1158 (emit_note_before): Likewise for param "before".
1159 (emit_label): Add a checked cast.
1160
1161 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1162
1163 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1164 "insn" from rtx to rtx_insn *.
1165
1166 * cselib.c (cselib_record_sets_hook): Likewise.
1167
1168 * var-tracking.c (add_with_sets): Likewise, renaming back from
1169 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1170 to rtx_insn *.
1171
1172 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1173
1174 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1175 and "header_" from rtx to rtx_insn *.
1176 (struct basic_block_d): Likewise for field "head_" within "x"
1177 field of union basic_block_il_dependent.
1178 (BB_HEAD): Drop function...
1179 (SET_BB_HEAD): ...and this function in favor of...
1180 (BB_HEAD): ...reinstate macro.
1181 (BB_END): Drop function...
1182 (SET_BB_END): ...and this function in favor of...
1183 (BB_END): ...reinstate macro.
1184 (BB_HEADER): Drop function...
1185 (SET_BB_HEADER): ...and this function in favor of...
1186 (BB_HEADER): ...reinstate macro.
1187
1188 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1189 (fix_crossing_unconditional_branches): Likewise.
1190 * caller-save.c (save_call_clobbered_regs): Likewise.
1191 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1192 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1193 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1194 (merge_blocks_move_successor_nojumps): Likewise.
1195 (outgoing_edges_match): Update use of for_each_rtx to
1196 for_each_rtx_in_insn.
1197 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1198 (expand_gimple_cond): Likewise.
1199 (expand_gimple_tailcall): Likewise.
1200 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1201 SET_BB_END.
1202 (construct_exit_block): Drop use of SET_BB_END.
1203 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1204 rtx_insn *.
1205 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1206 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1207 SET_BB_HEAD and SET_BB_END.
1208 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1209 SET_BB_END.
1210 (rtl_delete_block): Drop use of SET_BB_HEAD.
1211 (rtl_split_block): Drop use of SET_BB_END.
1212 (emit_nop_for_unique_locus_between): Likewise.
1213 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1214 (block_label): Drop use of SET_BB_HEAD.
1215 (fixup_abnormal_edges): Drop use of SET_BB_END.
1216 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1217 (relink_block_chain): Likewise.
1218 (fixup_reorder_chain): Drop use of SET_BB_END.
1219 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1220 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1221 rtx_insn **. Drop use of SET_BB_HEADER.
1222 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1223 SET_BB_HEAD.
1224 (BB_HEAD): Delete this function.
1225 (SET_BB_HEAD): Likewise.
1226 (BB_END): Likewise.
1227 (SET_BB_END): Likewise.
1228 (BB_HEADER): Likewise.
1229 (SET_BB_HEADER): Likewise.
1230 * emit-rtl.c (add_insn_after): Rename param "insn" to
1231 "uncast_insn", adding a new local "insn" and a checked cast to
1232 rtx_insn *. Drop use of SET_BB_END.
1233 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1234 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1235 (reorder_insns): Drop use of SET_BB_END.
1236 (emit_insn_after_1): Strengthen param "first" and locals "last",
1237 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1238 (emit_pattern_after_noloc): Add checked cast.
1239 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1240 (restore_other_notes): Likewise.
1241 (move_insn): Likewise.
1242 (sched_extend_bb): Likewise.
1243 (fix_jump_move): Likewise.
1244 * ifcvt.c (noce_process_if_block): Likewise.
1245 (dead_or_predicable): Likewise.
1246 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1247 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1248 * sel-sched-ir.c (sel_move_insn): Likewise.
1249 * sel-sched.c (move_nop_to_previous_block): Likewise.
1250
1251 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1252 SET_BB_END.
1253 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1254
1255 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1256
1257 * basic-block.h (create_basic_block_structure): Strengthen params
1258 1 "head" and 2 "end" from rtx to rtx_insn *.
1259 * cfgrtl.c (create_basic_block_structure): Likewise.
1260 (rtl_create_basic_block): Update casts from void * to rtx to
1261 rtx_insn *, so that we can pass them as rtx_insn * to
1262 create_basic_block_structure.
1263 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1264
1265 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1266
1267 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1268 rtx_insn **.
1269 (check_for_inc_dec): Strengthen param "insn" from rtx to
1270 rtx_insn *.
1271
1272 * cselib.h (cselib_process_insn): Likewise.
1273
1274 * cselib.c (cselib_record_sets): Likewise.
1275 (cselib_process_insn): Likewise.
1276
1277 * dse.c (struct insn_info): Likewise for field "insn".
1278 (check_for_inc_dec_1): Likewise for local "insn".
1279 (check_for_inc_dec): Likewise for param "insn".
1280 (scan_insn): Likewise.
1281 (dse_step1): Likewise for local "insn".
1282
1283 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1284 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1285
1286 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1287
1288 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1289 from rtx to rtx_insn *.
1290 (DEP_PRO): Delete this function and...
1291 (SET_DEP_PRO): ...this function in favor of...
1292 (DEP_PRO): ...reinstate this macro.
1293 (DEP_CON): Delete this function and...
1294 (SET_DEP_CON): ...this function in favor of...
1295 (DEP_CON): ...reinstate this old macro.
1296 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1297 (init_dep): Likewise.
1298 (set_priorities): Likewise for both params.
1299 (sd_copy_back_deps): Likewise for params 1 and 2.
1300
1301 * haifa-sched.c (priority): Likewise for param "insn" and local
1302 "next".
1303 (set_priorities): Likewise for params "head" and "tail" and local
1304 "insn".
1305 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1306 local "consumer".
1307 (add_to_speculative_block): Add a checked cast.
1308 (create_check_block_twin): Drop use of SET_DEP_CON.
1309 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1310 rtx to rtx_insn *.
1311
1312 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1313 Drop use of SET_DEP_PRO
1314 (init_dep): Strengthen params "pro" and "con" from rtx to
1315 rtx_insn *.
1316 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1317 use of SET_DEP_CON.
1318 (DEP_PRO): Delete.
1319 (DEP_CON): Delete.
1320 (SET_DEP_PRO): Delete.
1321 (SET_DEP_CON): Delete.
1322
1323 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1324
1325 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1326 from rtx to rtx_insn *.
1327 (VINSN_INSN_RTX): Eliminate rvalue function and...
1328 (SET_VINSN_INSN): ...lvalue function in favor of...
1329 (VINSN_INSN_RTX): reinstate this old macro.
1330
1331 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1332 in favor of VINSN_INSN_RTX.
1333 (VINSN_INSN_RTX): Delete this function.
1334 (SET_VINSN_INSN_RTX): Likewise.
1335
1336 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1337
1338 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1339 (BND_TO): Delete this function and...
1340 (SET_BND_TO): ...this functions in favor of...
1341 (BND_TO): ...reinstating this macro.
1342 (struct _fence): Strengthen field "executing_insns" from
1343 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1344 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1345 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1346 and param "insn" from rtx to insn_t.
1347 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1348 rtx_insn *.
1349
1350 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1351 vec<rtx_insn *> .
1352 (rtx_vec_t): Likewise.
1353 (struct sched_deps_info_def): Strengthen param of "start_insn"
1354 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1355 "note_mem_dep" callback and first param of "note_dep" callback.
1356
1357 * haifa-sched.c (add_to_speculative_block): Strengthen param
1358 "insn" from rtx to rtx_insn *.
1359 (clear_priorities): Likewise.
1360 (calc_priorities): Likewise for local "insn".
1361
1362 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1363 Remove redundant checked cast.
1364 (haifa_note_mem_dep): Likewise for param "pending_insn".
1365 (haifa_note_dep): Likewise for param "elem".
1366 (note_mem_dep): Likewise for param "e".
1367 (sched_analyze_1): Add checked casts.
1368 (sched_analyze_2): Likewise.
1369
1370 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1371 from rtx to rtx_insn *.
1372 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1373 from vec<rtx> * to vec<rtx_insn *> *.
1374
1375 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1376 scaffolding.
1377 (flist_add): Strengthen param "executing_insns" from
1378 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1379 (advance_deps_context): Remove now-redundant checked cast.
1380 (init_fences): Replace uses of NULL_RTX with NULL.
1381 (merge_fences): Strengthen params "last_scheduled_insn" and
1382 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1383 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1384 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1385 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1386 an instruction, rather than doing double-duty as a pattern.
1387 (return_nop_to_pool): Update for change of insn_t.
1388 (deps_init_id): Remove now-redundant checked cast.
1389 (struct sched_scan_info_def): Strengthen param of "init_insn"
1390 callback from rtx to insn_t.
1391 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1392 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1393 NULL.
1394 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1395 "end" from rtx to rtx_insn *.
1396 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1397 (rtx insn_rtx, bool force_unique_p)
1398 (BND_TO): Delete function.
1399 (SET_BND_TO): Delete function.
1400
1401 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1402 rtx to rtx_insn *.
1403 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1404 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1405 rtx to rtx_insn *.
1406 (undo_transformations): Likewise for param "insn".
1407 (update_liveness_on_insn): Likewise.
1408 (compute_live_below_insn): Likewise for param "insn" and local
1409 "succ".
1410 (update_data_sets): Likewise for param "insn".
1411 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1412 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1413 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1414 rtx_insn *.
1415 (move_cond_jump): Likewise for param "insn".
1416 (move_cond_jump): Drop use of SET_BND_TO.
1417 (compute_av_set_on_boundaries): Likewise.
1418 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1419 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1420 from rtx to rtx_insn *.
1421 (maybe_emit_renaming_copy): Likewise for param "insn".
1422 (maybe_emit_speculative_check): Likewise.
1423 (handle_emitting_transformations): Likewise.
1424 (remove_insn_from_stream): Likewise.
1425 (code_motion_process_successors): Strengthen local "succ" from rtx
1426 to insn_t.
1427
1428 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1429
1430 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1431 ilist_t, not _xlist_t;
1432 (ILIST_INSN): Define in terms of new union field "insn".
1433 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1434 _XLIST_NEXT.
1435 (struct _list_node): Add new field "insn" to the union, of type
1436 insn_t.
1437 (ilist_add): Replace macro with an inline function, requiring an
1438 insn_t.
1439 (ilist_remove): Define this macro directly in terms of
1440 _list_remove, rather than indirectly via _xlist_remove.
1441 (ilist_clear): Likewise, in terms of _list_clear rather than
1442 _xlist_clear.
1443 (ilist_is_in_p): Replace macro with an inline function, requiring
1444 an insn_t.
1445 (_list_iter_cond_insn): New function.
1446 (ilist_iter_remove): Define this macro directly in terms of
1447 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1448 (ilist_iterator): Define directly in terms of _list_iterator
1449 rather than indirectly through _xlist_iterator.
1450 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1451 than in terms of _FOR_EACH_X.
1452 (FOR_EACH_INSN_1): Likewise.
1453
1454 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1455
1456 PR target/60606
1457 PR target/61330
1458 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1459 DECL_HARD_REGISTER and return for invalid register specifications.
1460 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1461 DECL_HARD_REGISTER, call expand_one_error_var.
1462 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1463 CC_REGNUM with non-MODE_CC modes.
1464 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1465
1466 2014-08-26 Marek Polacek <polacek@redhat.com>
1467
1468 PR c/61271
1469 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1470
1471 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1472
1473 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1474 qi cost; add di cost.
1475 (cortexa57_addrcost_table): Likewise.
1476
1477 2014-08-26 Marek Polacek <polacek@redhat.com>
1478
1479 PR c/61271
1480 * expr.c (is_aligning_offset): Remove logical not.
1481
1482 2014-08-26 Marek Polacek <polacek@redhat.com>
1483
1484 PR c/61271
1485 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1486 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1487
1488 2014-08-26 Richard Biener <rguenther@suse.de>
1489
1490 PR tree-optimization/62175
1491 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1492 expand possibly trapping operations.
1493
1494 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1495
1496 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1497 "insn" from rtx to rtx_insn *.
1498 (permute_load): Likewise for param "insn".
1499 (permute_store): Likewise.
1500 (handle_special_swappables): Likewise for local "insn".
1501 (replace_swap_with_copy): Likewise for locals "insn" and
1502 "new_insn".
1503 (rs6000_analyze_swaps): Likewise for local "insn".
1504
1505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1506
1507 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1508 to rtx_insn *.
1509
1510 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1511
1512 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1513 "note_list" from rtx to rtx_insn *.
1514 (BB_NOTE_LIST): Replace this function and...
1515 (SET_BB_NOTE_LIST): ...this function with...
1516 (BB_NOTE_LIST): ...the former macro implementation.
1517
1518 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1519 local "from_start" from rtx to rtx_insn *. Strengthen param
1520 "to_endp" from rtx * to rtx_insn **.
1521
1522 * haifa-sched.c (concat_note_lists): Likewise.
1523 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1524 BB_NOTE_LIST.
1525 (sel_restore_notes): Likewise.
1526 (move_bb_info): Likewise.
1527 (BB_NOTE_LIST): Delete this function.
1528 (SET_BB_NOTE_LIST): Delete this function.
1529 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1530 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1531
1532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1533
1534 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1535 from rtx * to rtx_insn **.
1536 (reorder2): Likewise.
1537 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1538 from rtx to rtx_insn *.
1539
1540 * doc/tm.texi: Update mechanically for above change to target.def.
1541
1542 * sched-int.h (note_list): Strengthen this variable from rtx to
1543 rtx_insn *.
1544 (remove_notes): Likewise for both params.
1545 (restore_other_notes): Likewise for return type and first param.
1546 (struct ready_list): Strengthen field "vec" from rtx * to
1547 rtx_insn **.
1548 (struct dep_replacement): Strenghten field "insn" from rtx to
1549 rtx_insn *.
1550 (struct deps_desc): Likewise for fields "last_debug_insn",
1551 "last_args_size".
1552 (struct haifa_sched_info): Likewise for callback field
1553 "can_schedule_ready_p"'s param, for first param of "new_ready"
1554 callback field, for both params of "rank" callback field, for
1555 first field of "print_insn" callback field (with a const), for
1556 both params of "contributes_to_priority" callback, for param
1557 of "insn_finishes_block_p" callback, for fields "prev_head",
1558 "next_tail", "head", "tail", for first param of "add_remove_insn"
1559 callback, for first param of "begin_schedule_ready" callback, for
1560 both params of "begin_move_insn" callback, and for second param
1561 of "advance_target_bb" callback.
1562 (add_dependence): Likewise for params 1 and 2.
1563 (sched_analyze): Likewise for params 2 and 3.
1564 (deps_analyze_insn): Likewise for param 2.
1565 (ready_element): Likewise for return type.
1566 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1567 (try_ready): Strenghten param from rtx to rtx_insn *.
1568 (sched_emit_insn): Likewise for return type.
1569 (record_delay_slot_pair): Likewise for params 1 and 2.
1570 (add_delay_dependencies): Likewise for param.
1571 (contributes_to_priority): Likewise for both params.
1572 (find_modifiable_mems): Likewise.
1573
1574 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1575 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1576 "first_older_only_insn" from rtx to rtx_insn *.
1577 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1578 rtx_insn **.
1579
1580 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1581 "last_scheduled_iter0" from rtx to rtx_insn *.
1582 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1583 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1584 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1585 "insn" from rtx to rtx_insn *.
1586 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1587 rtx_insn **.
1588 (c6x_sched_reorder2): Strengthen param "ready" and locals
1589 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1590 "insn" from rtx to rtx_insn *.
1591 (c6x_variable_issue): Add a checked cast when assigning from insn
1592 to ss.last_scheduled_iter0.
1593 (split_delayed_branch): Strengthen param "insn" and local "i1"
1594 from rtx to rtx_insn *.
1595 (split_delayed_nonbranch): Likewise.
1596 (undo_split_delayed_nonbranch): Likewise for local "insn".
1597 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1598 "entry_after", "end_packet", "head_insn", "tail_insn",
1599 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1600 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1601 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1602 but add a checked cast on loop->start_label. Consolidate calls to
1603 avoid assigning result of gen_spkernel to "insn", now an
1604 rtx_insn *.
1605
1606 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1607 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1608 rtx to rtx_insn *.
1609 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1610 rtx_insn **. Strengthen locals "top", "next" from rtx to
1611 rtx_insn *.
1612 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1613 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1614 (add_parameter_dependencies): Strengthen params "call", "head" and
1615 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1616 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1617 (add_dependee_for_func_arg): Likewise for param "arg" and local
1618 "insn".
1619 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1620 "tail" and locals "insn", "first_arg".
1621
1622 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1623 for params "head", "tail" and locals "insn", "next", "next_tail".
1624 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1625 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1626 "insn", "lowest", "highest" from rtx to rtx_insn *.
1627 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1628 rtx_insn **.
1629 (ia64_sched_reorder2): Likewise.
1630
1631 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1632 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1633 from rtx * to rtx_insn **.
1634 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1635 rtx_insn **.
1636 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1637 rtx_insn *.
1638 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1639 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1640 to rtx_insn *.
1641
1642 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1643 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1644 to rtx_insn *.
1645 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1646 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1647 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1648 rtx_insn **.
1649 (vr4130_reorder): Likewise.
1650 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1651 rtx to rtx_insn *.
1652 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1653 rtx_insn **.
1654 (mips_sched_reorder): Likewise.
1655 (mips_sched_reorder2): Likewise.
1656
1657 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1658
1659 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1660 Strengthen local "tmp" from rtx to rtx_insn *.
1661 (rs6000_sched_reorder2): Likewise.
1662
1663 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1664 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1665 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1666 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1667
1668 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1669 "tmp2" from rtx to rtx_insn *.
1670 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1671 Strengthen local "insn" from rtx to rtx_insn *.
1672 (ready_reorder): Strengthen param "ready" from rtx * to
1673 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1674 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1675 (sh_reorder2): Likewise.
1676
1677 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1678 local "insn" from rtx to rtx_insn *.
1679
1680 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1681 rtx_insn *.
1682 (scheduled_insns): Strengthen this variable from vec<rtx> to
1683 vec<rtx_insn *>.
1684 (set_modulo_params): Likewise for locals "i1", "i2".
1685 (record_delay_slot_pair): Likewise for params "i1", "i2".
1686 (add_delay_dependencies): Likewise for param "insn".
1687 (cond_clobbered_p): Likewise.
1688 (recompute_todo_spec): Likewise for local "prev".
1689 (last_scheduled_insn): Likewise for this variable.
1690 (nonscheduled_insns_begin): Likewise.
1691 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1692 rtx_insn **.
1693 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1694 rtx_insn *.
1695 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1696 Strengthen local "insn" from rtx to rtx_insn *.
1697 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1698 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1699 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1700 (ready_remove_first): Likewise for return type and local "t".
1701 (ready_element): Likewise for return type.
1702 (ready_remove): Likewise for return type and local "t".
1703 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1704 (check_clobbered_conditions): Strengthen local "x" from rtx to
1705 rtx_insn *, adding a checked cast.
1706 (schedule_insn): Likewise for param "insn".
1707 (remove_notes): Likewise for params "head", "tail" and locals
1708 "next_tail", "insn", "next".
1709 (struct haifa_saved_data): Likewise for fields
1710 "last_scheduled_insn", "nonscheduled_insns_begin".
1711 (save_backtrack_point): Update for change to field "vec" of
1712 struct ready_list.
1713 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1714 rtx_insn **.
1715 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1716 from rtx to rtx_insn *
1717 (resolve_dependencies): Strengthen param "insn" from rtx to
1718 rtx_insn *
1719 (restore_other_notes): Likewise for return type, for param "head"
1720 and local "note_head".
1721 (undo_all_replacements): Likewise for local "insn".
1722 (first_nonscheduled_insn): Likewise for return type and local "insn".
1723 (queue_to_ready): Likewise for local "insn", adding checked casts.
1724 (early_queue_to_ready): Likewise for local "insn".
1725 (debug_ready_list_1): Strengthen local "p" from rtx * to
1726 rtx_insn **.
1727 (move_insn): Strengthen param "insn" and local "note" from rtx to
1728 rtx_insn *
1729 (insn_finishes_cycle_p): Likewise for param "insn".
1730 (max_issue): Likewise for local "insn".
1731 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1732 to rtx_insn **.
1733 (commit_schedule): Strengthen param "prev_head" and local "insn"
1734 from rtx to rtx_insn *
1735 (prune_ready_list): Likewise for local "insn".
1736 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1737 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1738 (set_priorities): Likewise for local "prev_head".
1739 (try_ready): Likewise for param "next".
1740 (fix_tick_ready): Likewise.
1741 (change_queue_index): Likewise.
1742 (sched_extend_ready_list): Update for change to field "vec" of
1743 struct ready_list.
1744 (generate_recovery_code): Strengthen param "insn" from rtx to
1745 rtx_insn *.
1746 (begin_speculative_block): Likewise.
1747 (create_check_block_twin): Likewise for param "insn" and locals
1748 "label", "check", "twin". Introduce local "check_pat" to avoid
1749 "check" being used as a plain rtx before being used as an insn.
1750 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1751 extracting elements from ready_list.
1752 (sched_remove_insn): Strengthen param "insn" from rtx to
1753 rtx_insn *.
1754 (sched_emit_insn): Likewise for return type.
1755 (ready_remove_first_dispatch): Likewise for return type and local
1756 "insn".
1757
1758 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1759
1760 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1761 const rtx_insn *.
1762
1763 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1764 from rtx to rtx_insn *.
1765 (add_dependence_list): Likewise for param "insn". Add a checked
1766 cast.
1767 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1768 to rtx_insn *. Strengthen param "list_p" from rtx * to
1769 rtx_insn **.
1770 (chain_to_prev_insn): Strengthen param "insn" and locals
1771 "prec_nonnote", "i" from rtx to rtx_insn *.
1772 (flush_pending_lists): Likewise for param "insn".
1773 (cur_insn): Likewise for this variable.
1774 (haifa_start_insn): Add a checked cast.
1775 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1776 (sched_analyze_reg): Likewise for param "insn".
1777 (sched_analyze_1): Likewise.
1778 (sched_analyze_2): Likewise. Add checked casts.
1779 (sched_analyze_insn): Likewise. Also for local "prev".
1780 (deps_analyze_insn): Likewise for param "insn".
1781 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1782 (add_dependence_1): Likewise for params "insn", "elem".
1783 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1784 (parse_add_or_inc): Likewise for param "insn".
1785 (find_inc): Likewise for local "inc_cand".
1786 (find_modifiable_mems): Likewise for params "head", "tail" and
1787 locals "insn", "next_tail".
1788
1789 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1790 (begin_schedule_ready): Likewise for param "insn".
1791 (begin_move_insn): Likewise for params "insn" and "last".
1792 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1793 const rtx_insn *.
1794 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1795 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1796 (ebb_add_remove_insn): Likewise for param "insn".
1797 (advance_target_bb): Likewise.
1798
1799 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1800 "insn".
1801 (check_live): Likewise for param "insn".
1802 (init_ready_list): Likewise for local "insn".
1803 (can_schedule_ready_p): Likewise for param "insn".
1804 (begin_schedule_ready): Likewise.
1805 (new_ready): Likewise for param "next".
1806 (rgn_print_insn): Likewise for param "insn".
1807 (rgn_rank): Likewise for params "insn1", "insn2".
1808 (contributes_to_priority): Likewise for params "next", "insn".
1809 (rgn_insn_finishes_block_p): Likewise for param "insn".
1810 (add_branch_dependences): Likewise for params "head", "tail" and
1811 locals "insn", "last".
1812 (rgn_add_remove_insn): Likewise for param "insn".
1813 (advance_target_bb): Likewise.
1814
1815 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1816 const_rtx to const rtx_insn *.
1817
1818 * sel-sched-dump.h (sel_print_insn): Likewise.
1819
1820 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1821 (deps_init_id): Likewise.
1822
1823 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1824 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1825 rtx_insn **.
1826
1827 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1828
1829 * output.h (final_start_function): Strengthen param 1 from rtx to
1830 rtx_insn *.
1831
1832 * final.c (final_start_function): Likewise, renaming back from
1833 "uncast_first" to "first", and dropping the checked cast from rtx
1834 to rtx_insn *.
1835
1836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1837
1838 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1839 * final.c (final): Likewise. Rename param back from
1840 "uncast_first" to "first" and eliminate the checked cast from rtx
1841 to rtx_insn *.
1842
1843 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1844
1845 * output.h (shorten_branches): Strengthen param from rtx to
1846 rtx_insn *.
1847
1848 * final.c (shorten_branches): Likewise, renaming param back from
1849 "uncast_first" to "first", and dropping the checked cast from rtx
1850 to rtx_insn *.
1851
1852 * genattr.c (gen_attr): Likewise when writing out the prototype of
1853 shorten_branches.
1854
1855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1856
1857 * sched-int.h (struct haifa_sched_info): Strengthen fields
1858 "prev_head" and "next_tail" from rtx to rtx_insn *.
1859
1860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1861
1862 * rtl.h (rtx_jump_table_data::get_labels): New method.
1863 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1864 with use of the new rtx_jump_table_data::get_labels method.
1865 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1866 to rtx_jump_table_data *. Simplify by using get_labels method.
1867 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1868 a dyn_cast, introducing local "table", using it to replace
1869 label-lookup logic with a get_labels method call.
1870 (patch_jump_insn): Simplify using get_labels method.
1871 * dwarf2cfi.c (create_trace_edges): Likewise.
1872 * rtlanal.c (label_is_jump_target_p): Likewise.
1873
1874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1875
1876 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1877 to rtx_insn *.
1878
1879 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1880 (unshare_all_rtl_again): Likewise, also for local "p".
1881
1882 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1883
1884 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1885 to rtx_insn *.
1886 * cfgrtl.c (delete_insn_and_edges): Likewise.
1887
1888 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1889
1890 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1891 from rtx to rtx_insn *.
1892
1893 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1894
1895 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1896
1897 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1898 locals "returnjump", "epilogue_end", "insn", "next".
1899
1900 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1901 "returnjump" from rtx * to rtx_insn **.
1902 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1903
1904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1905
1906 * basic-block.h (struct edge_def). Strengthen "r" within
1907 union edge_def_insns from rtx to rtx_insn *.
1908
1909 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1910 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1911 rtx_insn *.
1912 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1913 from rtx to rtx_insn *.
1914 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1915 rtx_insn *.
1916 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1917 (reg_used_on_edge): Likewise.
1918 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1919 (gt_pch_nx): New overload for rtx_insn *&.
1920 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1921 from rtx to rtx_insn *.
1922
1923 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1924
1925 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1926 from rtx to rtx_insn *.
1927 (BB_FOOTER): Replace function with access macro.
1928 (SET_BB_FOOTER): Delete.
1929
1930 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1931 with BB_FOOTER.
1932 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1933 (emit_barrier_after_bb): Likewise.
1934 (record_effective_endpoints): Likewise.
1935 (relink_block_chain): Likewise.
1936 (fixup_fallthru_exit_predecessor): Likewise.
1937 (cfg_layout_duplicate_bb): Likewise.
1938 (cfg_layout_split_block): Likewise.
1939 (cfg_layout_delete_block): Likewise.
1940 (cfg_layout_merge_blocks): Likewise.
1941 (BB_FOOTER): Delete function.
1942 (SET_BB_FOOTER): Delete function.
1943 * combine.c (update_cfg_for_uncondjump): Replace uses of
1944 SET_BB_FOOTER with BB_FOOTER.
1945
1946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1947
1948 * except.h (struct eh_landing_pad_d): Strengthen field
1949 "landing_pad" from rtx to rtx_code_label *.
1950
1951 * except.c (sjlj_emit_dispatch_table): Likewise for param
1952 "dispatch_label"
1953 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1954
1955 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1956
1957 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1958 first param from rtx to rtx_insn *.
1959 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1960 field "set_frame_ptr_insn".
1961 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1962 "csend" from rtx to rtx_code_label *.
1963 (xtensa_expand_atomic): Likewise for local "csloop".
1964 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1965 rtx_insn *.
1966 (xtensa_call_tls_desc): Likewise for return type and locals
1967 "call_insn", "insns".
1968 (xtensa_legitimize_tls_address): Likewise for local "insns".
1969 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1970
1971 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1972
1973 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1974 first param from rtx to rtx_insn *.
1975 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1976 "insn".
1977
1978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1979
1980 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1981 Strengthen param 1 from rtx to rtx_insn *.
1982 (tilepro_output_cbranch): Likewise.
1983 (tilepro_adjust_insn_length): Likewise.
1984 (tilepro_final_prescan_insn): Likewise for sole param.
1985
1986 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1987 Likewise for local "last".
1988 (cbranch_predicted_p): Likewise for param "insn".
1989 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1990 (tilepro_output_cbranch_with_opcode): Likewise.
1991 (tilepro_output_cbranch): Likewise.
1992 (frame_emit_load): Likewise for return type and locals "seq",
1993 "insn".
1994 (emit_sp_adjust): Likewise for return type and local "insn".
1995 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1996 "insn".
1997 (tilepro_adjust_insn_length): Likewise for param "insn".
1998 (next_insn_to_bundle): Likewise for return type and params
1999 "r", "end".
2000 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2001 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2002 local "new_insns".
2003 (match_addli_pcrel): Likewise for param "insn".
2004 (replace_addli_pcrel): Likewise.
2005 (match_auli_pcrel): Likewise.
2006 (replace_auli_pcrel): Likewise.
2007 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2008 "next_insn".
2009 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2010 "queue", "next_queue", "prev".
2011 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2012 (tilepro_final_prescan_insn): Likewise for param "insn".
2013
2014 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2015
2016 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2017 Strengthen param 1 from rtx to rtx_insn *.
2018 (tilegx_output_cbranch): Likewise.
2019 (tilegx_adjust_insn_length): Likewise.
2020 (tilegx_final_prescan_insn): Likewise for sole param.
2021
2022 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2023 or local "last".
2024 (cbranch_predicted_p): Likewise for param "insn".
2025 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2026 (tilegx_output_cbranch_with_opcode): Likewise.
2027 (tilegx_output_cbranch): Likewise.
2028 (frame_emit_load): Likewise for return type.
2029 (set_frame_related_p): Likewise for locals "seq", "insn".
2030 (emit_sp_adjust): Likewise for return type, and for local "insn".
2031 Introduce local "pat" for use in place of "insn" where the latter
2032 isn't an instruction.
2033 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2034 from rtx to rtx_insn *.
2035 (tilegx_adjust_insn_length): Likewise for param "insn".
2036 (next_insn_to_bundle): Likewise for return type and params "r" and
2037 "end".
2038 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2039 "end".
2040 (replace_insns): Likewise for params "old_insn", "new_insns".
2041 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2042 "new_insns".
2043 (replace_mov_pcrel_step2): Likewise.
2044 (replace_mov_pcrel_step3): Likewise.
2045 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2046 "next_insn".
2047 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2048 "queue", "next_queue", "prev".
2049 (tilegx_output_mi_thunk): Likewise for local "insn".
2050 (tilegx_final_prescan_insn): Likewise for param "insn".
2051
2052 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2053
2054 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2055 rtx to rtx_insn *.
2056 (frame_emit_load): Likewise.
2057 (frame_emit_add_imm): Likewise, also for local "insn".
2058 (spu_expand_prologue): Likewise for local "insn".
2059 (struct spu_bb_info): Likewise for field "prop_jump".
2060 (emit_nop_for_insn): Likewise for param "insn" and local
2061 "new_insn".
2062 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2063 "hbr_insn".
2064 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2065 locals "hint", "insn".
2066 (get_branch_target): Likewise for param "branch".
2067 (insn_clobbers_hbr): Likewise for param "insn".
2068 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2069 locals "insn", "before_4", "before_16".
2070 (insert_hbrp): Likewise for local "insn".
2071 (spu_machine_dependent_reorg): Likewise for locals "branch",
2072 "insn", "next", "bbend".
2073 (uses_ls_unit): Likewise for param "insn".
2074 (get_pipe): Likewise.
2075 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2076 introducing a checked cast.
2077 (spu_sched_adjust_cost): Likewise for params "insn" and
2078 "dep_insn".
2079 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2080 (spu_sms_res_mii): Likewise.
2081
2082 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2083
2084 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2085 from rtx to rtx_insn *.
2086 (output_cbranch): Likewise for param 6.
2087 (output_return): Likewise for param 1.
2088 (output_sibcall): Likewise.
2089 (output_v8plus_shift): Likewise.
2090 (output_v8plus_mult): Likewise.
2091 (output_v9branch): Likewise for param 7.
2092 (output_cbcond): Likewise for param 3.
2093
2094 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2095 for local "insn".
2096 (sparc_legitimize_pic_address): Likewise.
2097 (sparc_emit_call_insn): Likewise.
2098 (emit_save_or_restore_regs): Likewise.
2099 (emit_window_save): Likewise for return type and local "insn".
2100 (sparc_expand_prologue): Likewise for local "insn".
2101 (sparc_flat_expand_prologue): Likewise.
2102 (output_return): Likewise for param "insn".
2103 (output_sibcall): Likewise for param "insn" and local "delay".
2104 (output_ubranch): Likewise for param "insn".
2105 (output_cbranch): Likewise.
2106 (output_cbcond): Likewise.
2107 (output_v9branch): Likewise.
2108 (output_v8plus_shift): Likewise.
2109 (sparc_output_mi_thunk): Likewise for local "insn".
2110 (get_some_local_dynamic_name): Likewise.
2111 (output_v8plus_mult): Likewise for param "insn".
2112
2113 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2114
2115 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2116 from rtx to rtx_insn *.
2117 (output_branchy_insn): Likewise for param 3.
2118 (output_far_jump): Likewise for param 1.
2119 (final_prescan_insn): Likewise.
2120 (sh_insn_length_adjustment): Likewise for sole param.
2121
2122 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2123 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2124 rtx_code_label *.
2125 (sh_emit_compare_and_set): Likewise for local "lab".
2126 (output_far_jump): Strengthen param "insn" and local "prev" from
2127 rtx to rtx_insn *.
2128 (output_branchy_insn): Likewise for param "insn" and local
2129 "next_insn".
2130 (output_ieee_ccmpeq): Likewise for param "insn".
2131 (struct label_ref_list_d): Strengthen field "label" from rtx to
2132 rtx_code_label *.
2133 (pool_node): Likewise.
2134 (pool_window_label): Likewise for this global.
2135 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2136 (dump_table): Strengthen params "start", "barrier" and local
2137 "scan" from rtx to rtx_insn *.
2138 (broken_move): Likewise for param "insn".
2139 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2140 Strengthen param "first_mova" from rtx * to rtx_insn **.
2141 (mova_p): Likewise for param "insn".
2142 (fixup_mova): Likewise for param "mova".
2143 (find_barrier): Likewise for return type, params "mova" and
2144 "from", and locals "barrier_before_mova", "found_barrier",
2145 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2146 "label" from rtx to rtx_code_label *.
2147 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2148 rtx to rtx_insn *.
2149 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2150 (split_branches): Likewise for param "first" and local "insn".
2151 (final_prescan_insn): Likewise for param "insn".
2152 (sequence_insn_p): Likewise for locals "prev", "next".
2153 (sh_insn_length_adjustment): Likewise for param "insn".
2154 (sh_can_redirect_branch): Likewise for local "insn".
2155 (find_r0_life_regions): Likewise for locals "end", "insn".
2156 (sh_output_mi_thunk): Likewise for local "insns".
2157
2158 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2159
2160 * config/score/score.c (score_output_mi_thunk): Strengthen local
2161 "insn" from rtx to rtx_insn *.
2162 (score_prologue): Likewise.
2163
2164 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2165
2166 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2167 1 from rtx to rtx_insn *.
2168 (s390_emit_jump): Likewise for return type.
2169 (s390_emit_call): Likewise.
2170 (s390_load_got): Likewise.
2171
2172 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2173 variable.
2174 (s390_match_ccmode): Likewise for param "insn".
2175 (s390_emit_jump): Likewise for return type.
2176 (s390_split_branches): Likewise for local "label".
2177 (struct constant): Strengthen field "label" from rtx to
2178 rtx_code_label *.
2179 (struct constant_pool): Likewise for field "label". Strengthen
2180 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2181 rtx_insn *.
2182 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2183 insns.
2184 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2185 (s390_end_pool): Likewise.
2186 (s390_dump_pool): Likewise for local "insn".
2187 (s390_mainpool_start): Likewise.
2188 (s390_chunkify_start): Likewise.
2189 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2190 with insns. Strengthen locals "label", "jump", "barrier", "next",
2191 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2192 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2193 rtx_insn *.
2194 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2195 "jump", "label", "next_insn".
2196 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2197 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2198 "tbegin_insn".
2199 (s390_load_got): Likewise for return type and local "insns".
2200 (s390_save_gprs_to_fprs): Likewise for local "insn".
2201 (s390_restore_gprs_from_fprs): Likewise.
2202 (pass_s390_early_mach::execute): Likewise.
2203 (s390_emit_prologue): Likewise for local "insns".
2204 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2205 rtx_code_label *.
2206 (s390_emit_call): Strengthen return type and local "insn" from
2207 rtx to rtx_insn *.
2208 (s390_emit_tpf_eh_return): Likewise for local "insn".
2209 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2210 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2211 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2212 local "cur_insn".
2213 (s390_non_addr_reg_read_p): Likewise for param "insn".
2214 (find_cond_jump): Likewise for return type and param "insn".
2215 (s390_swap_cmp): Likewise for param "insn".
2216 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2217 "prev_insn", "next_insn".
2218 (s390_reorg): Likewise for locals "insn", "target".
2219 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2220 (s390_sched_variable_issue): For now, rename param "insn" to
2221 "uncast_insn", introducing a checked cast.
2222 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2223 insn.
2224 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2225 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2226
2227 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2228
2229 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2230 param from rtx to rtx_insn *.
2231 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2232
2233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2234
2235 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2236 4 from rtx to rtx_insn *.
2237 (rs6000_final_prescan_insn): Likewise for first param.
2238 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2239 local "insn".
2240 (rs6000_get_some_local_dynamic_name): Likewise.
2241 (output_cbranch): Likewise for param "insn".
2242 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2243 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2244 (rs6000_emit_allocate_stack): Likewise for local "insn".
2245 (load_cr_save): Likewise.
2246 (restore_saved_cr): Likewise.
2247 (restore_saved_lr): Likewise.
2248 (emit_cfa_restores): Likewise.
2249 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2250 "deleted_debug_label".
2251 (rs6000_output_mi_thunk): Likewise for local "insn".
2252 (rs6000_final_prescan_insn): Likewise for param "insn".
2253
2254 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2255
2256 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2257 Strengthen param "insn" from rtx to rtx_insn *.
2258 * config/picochip/picochip.c (picochip_current_prescan_insn):
2259 Likewise for this variable.
2260 (picochip_final_prescan_insn): Likewise for param "insn".
2261
2262 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2263
2264 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2265 from rtx to rtx_insn *.
2266 (pa_output_indirect_call): Likewise.
2267 (pa_adjust_insn_length): Likewise.
2268 (pa_attr_length_millicode_call): Likewise.
2269 (pa_attr_length_call): Likewise.
2270 (pa_attr_length_indirect_call): Likewise.
2271
2272 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2273 "insn".
2274 (pa_attr_length_millicode_call): Likewise.
2275 (pa_attr_length_call): Likewise.
2276 (pa_output_call): Likewise.
2277 (pa_attr_length_indirect_call): Likewise.
2278 (pa_output_indirect_call): Likewise.
2279
2280 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2281
2282 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2283 Strengthen first param from rtx to rtx_insn *.
2284 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2285 param "insn".
2286
2287 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2288
2289 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2290 type from rtx to rtx_insn *.
2291 (mips_expand_call): Likewise.
2292 (mips_adjust_insn_length): Likewise for first param.
2293 (mips_output_conditional_branch): Likewise.
2294 (mips_output_order_conditional_branch): Likewise.
2295 (mips_final_prescan_insn): Likewise.
2296
2297 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2298 rtx_insn * for the SEQUENCE case.
2299 (SEQ_END): Likewise.
2300 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2301 (mips_emit_call_insn): Likewise, also for local "insn".
2302 (mips16_gp_pseudo_reg): Likewise for local "scan".
2303 (mips16_build_call_stub): Likewise for return type and for local
2304 "insn". Introduce a new local "pattern" so that "insn" can indeed
2305 be an insn.
2306 (mips_expand_call): Strengthen return type and local "insn" from
2307 rtx to rtx_insn *.
2308 (mips_block_move_loop): Strengthen local "label" from rtx to
2309 rtx_code_label *.
2310 (mips_expand_synci_loop): Likewise for locals "label",
2311 "end_label".
2312 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2313 rtx_insn *.
2314 (mips16e_collect_argument_saves): Likewise for locals "insn",
2315 "next".
2316 (mips_find_gp_ref): Likewise for param of callback for "pred"
2317 param, and for local "insn".
2318 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2319 (mips_insn_has_flexible_gp_ref_p): Likewise.
2320 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2321 local "insn".
2322 (mips_epilogue_set_cfa): Likewise for local "insn".
2323 (mips_expand_epilogue): Likewise.
2324 (mips_adjust_insn_length): Likewise for param "insn".
2325 (mips_output_conditional_branch): Likewise.
2326 (mips_output_order_conditional_branch): Likewise.
2327 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2328 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2329 "falu2_turn_enabled_insn".
2330 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2331 "done_label" from rtx to rtx_code_label *.
2332 (struct mips16_constant): Likewise for field "label".
2333 (mips16_add_constant): Likewise for return type.
2334 (mips16_emit_constants_1): Strengthen return type and param "insn"
2335 from rtx to rtx_insn *.
2336 (mips16_emit_constants): Likewise for param "insn".
2337 (mips16_insn_length): Likewise.
2338 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2339 to rtx_code_label *.
2340 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2341 from rtx to rtx_insn *.
2342 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2343 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2344 (r10k_simplify_address): Strengthen param "insn" and local
2345 "def_insn" from rtx to rtx_insn *.
2346 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2347 rtx_insn *.
2348 (r10k_needs_protection_p_1): Update target type of cast of data
2349 from to rtx to rtx_insn *.
2350 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2351 rtx * to rtx_insn **.
2352 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2353 rtx_insn *.
2354 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2355 (mips_call_expr_from_insn): Likewise for param "insn".
2356 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2357 (mips_find_pic_call_symbol): Likewise for param "insn".
2358 (mips_annotate_pic_calls): Likewise for local "insn".
2359 (mips_sim_insn): Likewise for this variable.
2360 (struct mips_sim): Likewise for field "insn" within elements of
2361 last_set array.
2362 (mips_sim_wait_reg): Likewise for param "insn".
2363 (mips_sim_wait_regs): Likewise.
2364 (mips_sim_wait_units): Likewise.
2365 (mips_sim_wait_insn): Likewise.
2366 (mips_sim_issue_insn): Likewise.
2367 (mips_sim_finish_insn): Likewise.
2368 (mips_seq_time): Likewise for param "seq" and local "insn".
2369 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2370 locals "first", "second".
2371 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2372 "last", "last2", "next".
2373 (mips_avoid_hazard): Likewise for params "after", "insn".
2374 (mips_reorg_process_insns): Likewise for locals "insn",
2375 "last_insn", "subinsn", "next_insn".
2376 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2377 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2378 "jump_sequence".
2379 (mips_output_mi_thunk): Likewise for local "insn".
2380 (mips_final_prescan_insn): Likewise for param "insn".
2381
2382 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2383
2384 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2385 Strengthen return type and local "insns" from rtx to rtx_insn *.
2386 (microblaze_legitimize_tls_address): Likewise for local "insns".
2387 (microblaze_block_move_loop): Strengthen local "label" from rtx
2388 to rtx_code_label *.
2389 (microblaze_expand_prologue): Strengthen two locals named "insn"
2390 from rtx to rtx_insn *.
2391 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2392 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2393 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2394 to rtx_code_label *.
2395
2396 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2397
2398 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2399 param from rtx to rtx_insn *.
2400 (mep_reuse_lo): Likewise for third param.
2401 (mep_use_post_modify_p): Likewise for first param.
2402 (mep_core_address_length): Likewise.
2403 (mep_cop_address_length): Likewise.
2404 (mep_final_prescan_insn): Likewise.
2405 (mep_store_data_bypass_p): Likewise for both params.
2406 (mep_mul_hilo_bypass_p): Likewise.
2407 (mep_ipipe_ldc_p): Likewise for param.
2408
2409 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2410 (mep_rewrite_mult): Likewise.
2411 (mep_rewrite_mulsi3): Likewise.
2412 (mep_rewrite_maddsi3): Likewise.
2413 (mep_reuse_lo_p_1): Likewise.
2414 (mep_reuse_lo_p): Likewise.
2415 (mep_frame_expr): Likewise.
2416 (mep_make_parallel): Likewise for both params.
2417 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2418 local "insn".
2419 (mep_use_post_modify_p): Likewise for param "insn".
2420 (mep_core_address_length): Likewise.
2421 (mep_cop_address_length): Likewise.
2422 (mep_reg_set_in_function): Likewise for local "insn".
2423 (mep_asm_without_operands_p): Likewise.
2424 (F): Likewise for return type and param "x".
2425 (add_constant): Likewise for local "insn".
2426 (maybe_dead_move): Likewise for return type and local "insn".
2427 (mep_expand_prologue): Likewise for local "insn".
2428 (mep_final_prescan_insn): Likewise for param "insn".
2429 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2430 "next", "follow", "x".
2431 (mep_insert_repeat_label_last): Likewise for return type, param
2432 "last_insn", and locals "next", "prev". Strengthen param "label"
2433 from rtx to rtx_code_label *.
2434 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2435 rtx_insn *.
2436 (struct mep_doloop_end): Likewise for fields "insn" and
2437 "fallthrough".
2438 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2439 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2440 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2441 rtx_insn *.
2442 (mep_invert_branch): Likewise for params "insn" and "after".
2443 (mep_reorg_erepeat): Likewise for param "insns" and locals
2444 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2445 "l" from rtx to rtx_code_label *.
2446 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2447 from rtx to rtx_insn *.
2448 (mep_reorg_addcombine): Likewise for param "insns" and locals
2449 "i", "n".
2450 (add_sp_insn_p): Likewise for param "insn".
2451 (mep_reorg_noframe): Likewise for param "insns" and locals
2452 "start_frame_insn", "end_frame_insn", "next".
2453 (mep_reorg): Likewise for local "insns".
2454 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2455 cast.
2456 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2457 (mep_mul_hilo_bypass_p): Likewise.
2458 (mep_ipipe_ldc_p): Likewise for param "insn".
2459 (mep_make_bundle): Likewise for return type, param "cop" and local
2460 "insn", splitting out the latter into a new local "seq" for when it
2461 is a SEQUENCE rather than an insn.
2462 (core_insn_p): Likewise for param "insn".
2463 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2464 "last", "first", "note", "prev", "core_insn".
2465
2466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2467
2468 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2469 rtx to rtx_insn *.
2470 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2471 (m68k_final_prescan_insn): Likewise for first param.
2472
2473 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2474 (m68k_set_frame_related): Likewise for param "insn".
2475 (output_btst): Likewise for param "insn".
2476 (m68k_final_prescan_insn): Likewise.
2477 (m68k_move_to_reg): Likewise for local "insn".
2478 (m68k_call_tls_get_addr): Likewise for local "insns".
2479 (m68k_call_m68k_read_tp): Likewise.
2480 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2481 (m68k_output_mi_thunk): Likewise for local "insn".
2482
2483 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2484
2485 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2486 first param from rtx to rtx_insn *.
2487 (iq2000_adjust_insn_length): Likewise.
2488 (iq2000_output_conditional_branch): Likewise.
2489 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2490 "insn" and local "nop_insn".
2491 (iq2000_annotate_frame_insn): Likewise for param "insn".
2492 (iq2000_expand_prologue): Likewise for both locals "insn".
2493 (iq2000_adjust_insn_length): Likewise for param "insn".
2494 (iq2000_output_conditional_branch): Likewise.
2495
2496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2497
2498 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2499 "insns" from rtx to rtx_insn *.
2500 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2501 (struct spill_fill_data): Likewise for field "init_after" and for
2502 elements of array field "prev_insn".
2503 (spill_restore_mem): Likewise for locals "insn", "first".
2504 (do_spill): Likewise for local "insn".
2505 (do_restore): Likewise.
2506 (ia64_expand_prologue): Likewise.
2507 (ia64_expand_epilogue): Likewise.
2508 (emit_insn_group_barriers): Likewise for locals "insn",
2509 "last_label".
2510 (emit_all_insn_group_barriers): Likewise for locals "insn",
2511 "last".
2512 (dfa_stop_insn): Likewise for this global.
2513 (dfa_pre_cycle_insn): Likewise.
2514 (ia64_nop): Likewise.
2515 (final_emit_insn_group_barriers): Likewise for locals "insn",
2516 "last".
2517 (emit_predicate_relation_info): Likewise for locals "head", "n",
2518 "insn", "b", "a".
2519 (ia64_reorg): Likewise for local "insn".
2520 (ia64_output_mi_thunk): Likewise.
2521 (expand_vec_perm_interleave_2): Likewise for local "seq".
2522
2523 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2524
2525 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2526 param 1 "insn" from rtx to rtx_insn *.
2527 (ix86_use_lea_for_mov): Likewise.
2528 (ix86_avoid_lea_for_addr): Likewise.
2529 (ix86_split_lea_for_addr): Likewise.
2530 (ix86_lea_for_add_ok): Likewise.
2531 (ix86_output_call_insn): Likewise.
2532
2533 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2534 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2535 (ix86_output_function_epilogue): Likewise for locals "insn",
2536 "deleted_debug_label".
2537 (legitimize_tls_address): Likewise for local "insn".
2538 (get_some_local_dynamic_name): Likewise.
2539 (increase_distance): Likewise for params "prev", "next".
2540 (distance_non_agu_define_in_bb): Likewise for params "insn",
2541 "start" and locals "prev", "next".
2542 (distance_non_agu_define): Likewise for param "insn".
2543 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2544 locals "next", "prev".
2545 (distance_agu_use): Likewise for param "insn".
2546 (ix86_lea_outperforms): Likewise.
2547 (ix86_ok_to_clobber_flags): Likewise.
2548 (ix86_avoid_lea_for_add): Likewise.
2549 (ix86_use_lea_for_mov): Likewise.
2550 (ix86_avoid_lea_for_addr): Likewise.
2551 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2552 (ix86_split_lea_for_addr): Likewise for param "insn".
2553 (ix86_lea_for_add_ok): Likewise for param "insn".
2554 (ix86_expand_carry_flag_compare): Likewise for local
2555 "compare_seq".
2556 (ix86_expand_int_movcc): Likewise.
2557 (ix86_output_call_insn): Likewise for param "insn".
2558 (ix86_output_call_insn): Likewise for local "i".
2559 (x86_output_mi_thunk): Introduce local "insn", using it in place
2560 of "tmp" when dealing with insns.
2561 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2562 "start".
2563 (ix86_pad_returns): Likewise for locals "ret", "prev".
2564 (ix86_count_insn_bb): Likewise for local "insn".
2565 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2566 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2567 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2568 (expand_vec_perm_interleave2): Likewise for local "seq".
2569 (expand_vec_perm_vperm2f128_vblend): Likewise.
2570 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2571 call to for_each_rtx with for_each_rtx_in_insn.
2572
2573 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2574
2575 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2576 "label" from rtx to rtx_code_label *.
2577 (ix86_expand_prologue): Likewise.
2578 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2579 "varargs_label".
2580 (ix86_split_idivmod): Likewise for locals "end_label" and
2581 "qimode_label".
2582 (ix86_expand_branch): Likewise for local "label2".
2583 (ix86_expand_aligntest): Likewise for return type and local "label".
2584 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2585 "top_label".
2586 (expand_movmem_epilogue): Likewise for the various locals named
2587 "label".
2588 (expand_setmem_epilogue): Likewise.
2589 (expand_small_movmem_or_setmem): Likewise for local "label".
2590 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2591 Strengthen param "done_label" from rtx * to rtx_code_label **.
2592 Strengthen locals "loop_label" and "label" from rtx to
2593 rtx_code_label *.
2594 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2595 Likewise for locals "loop_label", "label".
2596 (ix86_expand_set_or_movmem): Likewise for locals "label",
2597 "jump_around_label", "hot_label".
2598 (ix86_expand_strlensi_unroll_1): Likewise for locals
2599 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2600 "end_2_label".
2601 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2602 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2603 "label2", "jump_label".
2604 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2605 local "label".
2606 (ix86_expand_lfloorceil): Likewise for local "label".
2607 (ix86_expand_rint): Likewise.
2608 (ix86_expand_floorceildf_32): Likewise.
2609 (ix86_expand_floorceil): Likewise.
2610 (ix86_expand_rounddf_32): Likewise.
2611 (ix86_expand_trunc): Likewise.
2612 (ix86_expand_truncdf_32): Likewise.
2613 (ix86_expand_round): Likewise.
2614
2615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2616
2617 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2618 first param from rtx to rtx_insn *.
2619 (h8300_insn_length_from_table): Likewise.
2620 * config/h8300/h8300.c (F): Likewise for return type and param
2621 "x".
2622 (Fpa): Add a checked cast to rtx_insn *.
2623 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2624 rtx_insn *.
2625 (final_prescan_insn): Likewise for param "insn".
2626 (h8300_binary_length): Likewise.
2627 (h8300_insn_length_from_table): Likewise.
2628
2629 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2630
2631 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2632 Strengthen first param "insn" from rtx to rtx_insn *.
2633
2634 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2635 Likewise.
2636 (frame_insn): Likewise for return type. Introduce local "insn"
2637 for use in place of local "x" for use as an rtx_insn *.
2638 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2639 (epiphany_expand_prologue): Likewise for local "insn".
2640 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2641 * config/epiphany/resolve-sw-modes.c
2642 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2643 "seq".
2644
2645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2646
2647 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2648 param from rtx to rtx_insn *.
2649 (c6x_final_prescan_insn): Likewise for first param.
2650
2651 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2652 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2653 (c6x_expand_compare): Strengthen local "insns" from rtx to
2654 rtx_insn *.
2655 (c6x_get_unit_specifier): Likewise for param "insn".
2656 (c6x_print_unit_specifier_field): Likewise.
2657 (c6x_final_prescan_insn): Likewise.
2658 (emit_add_sp_const): Likewise for local "insn".
2659 (c6x_expand_prologue): Likewise.
2660
2661 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2662
2663 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2664 param 1 from rtx to rtx_insn *.
2665 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2666 the various locals named "insn".
2667 (expand_epilogue_reg_restore): Likewise.
2668 (frame_related_constant_load): Likewise.
2669 (add_to_reg): Likewise.
2670 (emit_link_insn): Likewise.
2671 (do_link): Likewise.
2672 (expand_interrupt_handler_prologue): Likewise.
2673 (branch_dest): Likewise for param "branch".
2674 (asm_conditional_branch): Likewise for param "insn".
2675 (gen_one_bundle): Likewise for elements of param "slot" and local
2676 "t".
2677 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2678 elements of local "slot".
2679 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2680 "queue", "next_queue", "prev".
2681 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2682 (add_sched_insns_for_speculation): Likewise for local "insn".
2683
2684 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2685
2686 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2687 from rtx to rtx_insn *.
2688 (output_movhi): Likewise.
2689 (output_movsisf): Likewise.
2690 (avr_out_tstsi): Likewise.
2691 (avr_out_tsthi): Likewise.
2692 (avr_out_tstpsi): Likewise.
2693 (avr_out_compare): Likewise.
2694 (avr_out_compare64): Likewise.
2695 (avr_out_movpsi): Likewise.
2696 (ashlqi3_out): Likewise.
2697 (ashlhi3_out): Likewise.
2698 (ashlsi3_out): Likewise.
2699 (ashrqi3_out): Likewise.
2700 (ashrhi3_out): Likewise.
2701 (ashrsi3_out): Likewise.
2702 (lshrqi3_out): Likewise.
2703 (lshrhi3_out): Likewise.
2704 (lshrsi3_out): Likewise.
2705 (avr_out_ashlpsi3): Likewise.
2706 (avr_out_ashrpsi3): Likewise.
2707 (avr_out_lshrpsi3): Likewise.
2708 (avr_out_fract): Likewise.
2709 (avr_out_sbxx_branch): Likewise.
2710 (avr_out_round): Likewise.
2711 (avr_out_xload): Likewise.
2712 (avr_out_movmem): Likewise.
2713 (adjust_insn_length): Likewise.
2714 (avr_out_lpm): Likewise.
2715 (reg_unused_after): Likewise.
2716 (_reg_unused_after): Likewise.
2717 (avr_jump_mode): Likewise for second param.
2718 (jump_over_one_insn): Likewise for first param.
2719 (avr_final_prescan_insn): Likewise.
2720 (out_shift_with_cnt): Likewise for second param.
2721
2722 * config/avr/avr.c (get_sequence_length): Likewise for param
2723 "insns" and local "insn".
2724 (emit_push_byte): Likewise for local "insn".
2725 (emit_push_sfr): Likewise.
2726 (avr_prologue_setup_frame): Likewise for locals "insn",
2727 "fp_plus_insns", "sp_plus_insns".
2728 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2729 "sp_plus_insns".
2730 (avr_jump_mode): Likewise for param "insn".
2731 (avr_final_prescan_insn): Likewise.
2732 (avr_find_unused_d_reg): Likewise.
2733 (avr_out_lpm_no_lpmx): Likewise.
2734 (avr_out_lpm): Likewise.
2735 (avr_out_xload): Likewise.
2736 (output_movqi): Likewise.
2737 (output_movhi): Likewise.
2738 (out_movqi_r_mr): Likewise.
2739 (out_movhi_r_mr): Likewise.
2740 (out_movsi_r_mr): Likewise.
2741 (out_movsi_mr_r): Likewise.
2742 (output_movsisf): Likewise.
2743 (avr_out_load_psi): Likewise.
2744 (avr_out_store_psi): Likewise.
2745 (avr_out_movpsi): Likewise.
2746 (out_movqi_mr_r): Likewise.
2747 (avr_out_movhi_mr_r_xmega): Likewise.
2748 (out_movhi_mr_r): Likewise.
2749 (compare_condition): Likewise for param "insn" and local "next".
2750 (compare_sign_p): Likewise for param "insn".
2751 (compare_diff_p): Likewise.
2752 (compare_eq_p): Likewise.
2753 (avr_out_compare): Likewise.
2754 (avr_out_compare64): Likewise.
2755 (avr_out_tsthi): Likewise.
2756 (avr_out_tstpsi): Likewise.
2757 (avr_out_tstsi): Likewise.
2758 (out_shift_with_cnt): Likewise.
2759 (ashlqi3_out): Likewise.
2760 (ashlhi3_out): Likewise.
2761 (avr_out_ashlpsi3): Likewise.
2762 (ashlsi3_out): Likewise.
2763 (ashrqi3_out): Likewise.
2764 (ashrhi3_out): Likewise.
2765 (avr_out_ashrpsi3): Likewise.
2766 (ashrsi3_out): Likewise.
2767 (lshrqi3_out): Likewise.
2768 (lshrhi3_out): Likewise.
2769 (avr_out_lshrpsi3): Likewise.
2770 (lshrsi3_out): Likewise.
2771 (avr_out_fract): Likewise.
2772 (avr_out_round): Likewise.
2773 (avr_adjust_insn_length): Likewise.
2774 (reg_unused_after): Likewise.
2775 (_reg_unused_after): Likewise.
2776 (avr_compare_pattern): Likewise.
2777 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2778 and locals "branch1", "branch2", "insn2", "jump".
2779 (avr_reorg): Likewise for local "insn".
2780 (avr_2word_insn_p): Likewise for param "insn".
2781 (jump_over_one_insn_p): Likewise.
2782 (avr_out_sbxx_branch): Likewise.
2783 (avr_out_movmem): Likewise.
2784
2785 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2786
2787 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2788 param from rtx to rtx_insn *.
2789 (thumb1_final_prescan_insn): Likewise.
2790 (thumb2_final_prescan_insn): Likewise.
2791
2792 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2793 rtx to rtx_insn *.
2794 (struct minipool_node): Likewise for field "insn".
2795 (dump_minipool): Likewise for param "scan".
2796 (create_fix_barrier): Likewise for local "from". Strengthen local
2797 "label" from rtx to rtx_code_label *.
2798 (push_minipool_barrier): Strengthen param "insn" from rtx to
2799 rtx_insn *.
2800 (push_minipool_fix): Likewise.
2801 (note_invalid_constants): Likewise.
2802 (thumb2_reorg): Likewise for local "insn".
2803 (arm_reorg): Likewise.
2804 (thumb2_final_prescan_insn): Likewise for param
2805 "insn" and local "first_insn".
2806 (arm_final_prescan_insn): Likewise for param "insn" and locals
2807 "start_insn", "this_insn".
2808 (arm_debugger_arg_offset): Likewise for param "insn".
2809 (thumb1_emit_multi_reg_push): Likewise for return type and local
2810 "insn".
2811 (thumb1_final_prescan_insn): Likewise for param "insn".
2812 (thumb_far_jump_used_p): Likewise for local "insn".
2813 (thumb1_expand_prologue): Likewise.
2814 (arm_expand_epilogue_apcs_frame): Likewise.
2815 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2816 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2817 from rtx to rtx_code_label *.
2818 (arm_split_atomic_op): Likewise for local "label".
2819 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2820
2821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2822
2823 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2824 first param from rtx to rtx_insn *.
2825 (arc_verify_short): Likewise.
2826 (arc_short_long): Likewise.
2827 (arc_need_delay): Likewise.
2828
2829 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2830 "target_insn".
2831 (arc_ccfsm_advance): Likewise for param "insn" and locals
2832 "start_insn", "this_insn".
2833 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2834 (arc_ccfsm_post_advance): Likewise for param "insn".
2835 (arc_next_active_insn): Likewise for return type and param "insn".
2836 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2837 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2838 (output_short_suffix): Likewise for local "insn".
2839 (arc_final_prescan_insn): Likewise for param "insn". Remove
2840 now-redundant checked cast.
2841 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2842 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2843 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2844 for use where lc_set became an insn.
2845 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2846 rtx to rtx_insn *.
2847 (arc_get_insn_variants): Likewise for local "prev".
2848 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2849 "next".
2850 (arc_predicate_delay_insns): Likewise for local "insn".
2851 (arc_pad_return): Likewise for local "prev". For now, add a
2852 checked cast when extracting the insn from "final_sequence".
2853 (arc_short_long): Likewise for param "insn".
2854 (arc_need_delay): Likewise for param "insn" and local "next".
2855 (arc_label_align): Likewise for locals "prev", "next".
2856
2857 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2858
2859 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2860 "insn" from rtx to rtx_insn *.
2861 (alpha_gp_save_rtx): Likewise for local "seq".
2862 (alpha_instantiate_decls): Likewise for local "top".
2863 (get_some_local_dynamic_name): Likewise for local "insn".
2864 (alpha_does_function_need_gp): Likewise.
2865 (set_frame_related_p): Likewise for return type and for locals
2866 "seq" and "insn".
2867 (emit_frame_store_1): Likewise for local "insn".
2868 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2869 (alpha_end_function): Likewise for local "insn".
2870 (alpha_output_mi_thunk_osf): Likewise.
2871 (alphaev4_insn_pipe): Likewise for param "insn".
2872 (alphaev5_insn_pipe): Likewise.
2873 (alphaev4_next_group): Likewise for return type and param 1
2874 "insn".
2875 (alphaev5_next_group): Likewise.
2876 (alpha_align_insns_1): Likewise for return type and param 1 of
2877 callback param "next_group", and for locals "i", "next", "prev",
2878 "where", "where2", "insn".
2879
2880 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2881
2882 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2883 rather than modifying the stmt.
2884
2885 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2886
2887 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2888 cgraph_state conversion.
2889
2890 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2891
2892 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2893 Strengthen local "insns" from rtx to rtx_insn *.
2894 (aarch64_set_frame_expr): Likewise for local "insn".
2895 (aarch64_save_or_restore_fprs): Likewise.
2896 (aarch64_save_or_restore_callee_save_registers): Likewise.
2897 (aarch64_expand_prologue): Likewise.
2898 (aarch64_expand_epilogue): Likewise.
2899 (aarch64_output_mi_thunk): Likewise.
2900 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2901 "label2" from rtx to rtx_code_label *.
2902 (aarch64_split_atomic_op): Likewise for local "label".
2903
2904 2014-08-25 Martin Liska <mliska@suse.cz>
2905
2906 * cgraph.h (symtab_node):
2907 (bool needed_p (void)): created from decide_is_symbol_needed
2908 (bool referred_to_p (void)): created from referred_to_p
2909 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2910 * cgraph.h (cgraph_node):
2911 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2912 (void expand (void)): created from expand_function
2913 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2914 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2915 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2916 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2917 * cgraph.h (varpool_node):
2918 (static void add (tree decl): created from varpool_add_new_variable
2919 * cgraph.h (cgraph_edge):
2920 void remove (void);
2921 (void remove_caller (void)): created from cgraph_edge_remove_caller
2922 (void remove_callee (void)): created from cgraph_edge_remove_callee
2923 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2924 created from cgraph_set_call_stmt
2925 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2926 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2927 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2928 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2929 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2930 created from cgraph_speculative_call_info
2931 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2932 int freq_scale, bool update_original)): created from cgraph_clone_edge
2933 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2934 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2935 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2936 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2937 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2938 (static void rebuild_references (void)): created from cgraph_rebuild_references
2939 * cgraph.h (symbol_table):
2940 (create_reference): renamed from add_reference
2941 (maybe_create_reference): renamed from maybe_add_reference
2942 (void register_symbol (symtab_node *node)): new function
2943 (void clear_asm_symbols (void)): new function
2944 (void unregister (symtab_node *node)): new function
2945 (void release_symbol (cgraph_node *node, int uid)): new function
2946 (cgraph_node * allocate_cgraph_symbol (void)): new function
2947 (void initialize (void)): created from cgraph_init
2948 (symtab_node *first_symbol (void)):new function
2949 (asm_node *first_asm_symbol (void)):new function
2950 (symtab_node *first_defined_symbol (void)):new function
2951 (varpool_node *first_variable (void)):new function
2952 (varpool_node *next_variable (varpool_node *node)):new function
2953 (varpool_node *first_static_initializer (void)):new function
2954 (varpool_node *next_static_initializer (varpool_node *node)):new function
2955 (varpool_node *first_defined_variable (void)):new function
2956 (varpool_node *next_defined_variable (varpool_node *node)):new function
2957 (cgraph_node *first_defined_function (void)):new function
2958 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2959 (cgraph_node *first_function (void)):new function
2960 (cgraph_node *next_function (cgraph_node *node)):new function
2961 (cgraph_node *first_function_with_gimple_body (void)):new function
2962 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2963 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2964 created from symtab_remove_unreachable_nodes
2965 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2966 (void process_new_functions (void)): created from cgraph_process_new_functions
2967 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2968 (bool output_variables (void)): created from varpool_node::output_variables
2969 (void output_asm_statements (void)): created from output_asm_statements
2970 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2971 (void compile (void)): created from compile
2972 (void output_weakrefs (void)): created from output_weakrefs
2973 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2974 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2975 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2976 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2977 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2978 created from cgraph_next_function_with_gimple_body
2979 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2980 created from cgraph_remove_edge_removal_hook
2981 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2982 created from cgraph_add_node_removal_hook
2983 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2984 created from cgraph_remove_node_removal_hook
2985 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2986 created from varpool_add_node_removal_hook
2987 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2988 created from varpool_remove_node_removal_hook
2989 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2990 created from cgraph_add_function_insertion_hook
2991 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2992 created from cgraph_remove_function_insertion_hook
2993 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2994 created from varpool_add_variable_insertion_hook
2995 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2996 created from varpool_remove_variable_insertion_hook
2997 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2998 created from cgraph_add_edge_duplication_hook
2999 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3000 created from cgraph_remove_edge_duplication_hook
3001 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3002 created from cgraph_add_node_duplication_hook
3003 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3004 created from cgraph_remove_node_duplication_hook
3005 (void call_edge_removal_hooks (cgraph_edge *e)):
3006 created from cgraph_call_edge_removal_hooks
3007 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3008 created from call_function_insertion_hooks
3009 (void call_cgraph_removal_hooks (cgraph_node *node)):
3010 created from cgraph_call_node_removal_hooks
3011 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3012 created from cgraph_node::call_duplication_hooks
3013 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3014 created from cgraph_call_edge_duplication_hooks
3015 (void call_varpool_removal_hooks (varpool_node *node)):
3016 created from varpool_call_node_removal_hooks
3017 (void call_varpool_insertion_hooks (varpool_node *node)):
3018 created from varpool_call_variable_insertion_hooks
3019 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3020 created from insert_to_assembler_name_hash
3021 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3022 created from unlink_from_assembler_name_hash
3023 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3024 created from symtab_prevail_in_asm_name_hash
3025 (void symtab_initialize_asm_name_hash (void)):
3026 created from symtab_initialize_asm_name_hash
3027 (void change_decl_assembler_name (tree decl, tree name)):
3028 created from change_decl_assembler_name
3029 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3030 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3031 created from decl_assembler_name_hash
3032 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3033 created from decl_assembler_name_equal
3034 (static hashval_t hash_node_by_assembler_name (const void *p)):
3035 created from hash_node_by_assembler_name
3036 (static int eq_assembler_name (const void *p1, const void *p2)):
3037 created from eq_assembler_name
3038
3039 2014-08-25 Marek Polacek <polacek@redhat.com>
3040
3041 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3042
3043 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3044
3045 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3046 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3047 SWI1248_AVX512BW mode iterator.
3048
3049 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3050
3051 PR target/62111
3052 * config/sh/predicates.md (general_extend_operand): Disable
3053 TRUNCATE before reload completes.
3054
3055 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3056
3057 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3058
3059 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3060
3061 PR target/61996
3062 * config/sh/sh.opt (musermode): Allow negative form.
3063 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3064 targets that don't support it.
3065 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3066 Document -mno-usermode option.
3067
3068 2014-08-24 Kito Cheng <kito@0xlab.org>
3069
3070 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3071 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3072 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3073 * doc/tm.texi: Regenerate.
3074
3075 2014-08-24 Kito Cheng <kito@0xlab.org>
3076
3077 * ira.c: Fix typo in comment.
3078
3079 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3080
3081 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3082 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3083
3084 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3085
3086 PR target/62038
3087 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3088 last_address when the current function is a thunk.
3089 (pa_asm_output_mi_thunk): When we don't have named sections or they
3090 are not being used, check that thunk can reach the stub table with a
3091 short branch.
3092
3093 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3094
3095 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3096 rtx_insn *.
3097 (pass_web::execute): Likewise for local "insn".
3098
3099 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3100
3101 * var-tracking.c (struct micro_operation_def): Strengthen field
3102 "insn" from rtx to rtx_insn *.
3103 (struct emit_note_data_def): Likewise.
3104 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3105 (vt_stack_adjustments): Likewise for local "insn".
3106 (adjust_insn): Likewise for param "insn".
3107 (val_store): Likewise.
3108 (val_resolve): Likewise.
3109 (struct count_use_info): Likewise for field "insn".
3110 (log_op_type): Likewise for param "insn".
3111 (reverse_op): Likewise.
3112 (prepare_call_arguments): Likewise.
3113 (add_with_sets): The initial param takes an insn, but we can't
3114 yet strengthen it from rtx to rtx_insn * since it's used as a
3115 cselib_record_sets_hook callback. For now rename initial param
3116 from "insn" to "uncast_insn", and introduce a local "insn" of
3117 the stronger rtx_insn * type, with a checked cast.
3118 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3119 rtx_insn *.
3120 (emit_note_insn_var_location): Likewise.
3121 (emit_notes_for_changes): Likewise.
3122 (emit_notes_for_differences): Likewise.
3123 (next_non_note_insn_var_location): Likewise for return type and
3124 for param "insn".
3125 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3126 (vt_initialize): Likewise for local "insn".
3127 (delete_debug_insns): Likewise for locals "insn" and "next".
3128
3129 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3130
3131 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3132 rtx_insn *.
3133 (mark_constant_pool): Likewise for local "insn".
3134
3135 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3136
3137 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3138 rtx to rtx_insn *.
3139 (dead_debug_promote_uses): Likewise.
3140 (dead_debug_insert_temp): Likewise.
3141
3142 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3143
3144 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3145 from const_rtx to const rtx_insn *.
3146 (store_killed_after): Likewise. Strengthen locals "last", "act"
3147 from rtx to rtx_insn *.
3148 (store_killed_before): Strengthen param "insn" from const_rtx to
3149 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3150 (find_moveable_store): Strengthen param "insn" from rtx to
3151 rtx_insn *.
3152 (compute_store_table): Likewise for local "insn".
3153 (insert_insn_start_basic_block): Likewise for param "insn" and
3154 locals "prev", "before", "insn".
3155 (insert_store): For now, add a checked cast to rtx_insn * on the
3156 result of gen_move_insn.
3157 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3158 to rtx_insn *.
3159 (replace_store_insn): Likewise. For now, add a checked cast to
3160 rtx_insn * on the result of gen_move_insn.
3161
3162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3163
3164 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3165 rtx_insn *.
3166 (expand_sjlj_dispatch_table): Likewise.
3167
3168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3169
3170 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3171 "insn" from rtx to rtx_insn *.
3172
3173 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3174
3175 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3176 "insn" from rtx to rtx_insn *.
3177 (dup_block_and_redirect): Likewise for param 3 "before".
3178
3179 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3180 from rtx to rtx_insn *.
3181 (move_insn_for_shrink_wrap): Likewise.
3182 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3183 (dup_block_and_redirect): Likewise for param "before" and local
3184 "insn".
3185 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3186 "end".
3187 (convert_to_simple_return): Likewise for local "start".
3188
3189 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3190 Strengthen local "insn" from rtx to rtx_insn *, for use when
3191 invoking requires_stack_frame_p.
3192
3193 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3194
3195 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3196 rtx_insn *.
3197 (speculate_expr): Likewise for locals "orig_insn_rtx",
3198 "spec_insn_rtx".
3199 (eq_transformed_insns): Likewise for locals "i1", "i2".
3200 (check_for_new_jump): Likewise for return type and local "end".
3201 (find_new_jump): Likewise for return type and local "jump".
3202 (sel_split_edge): Likewise for local "jump".
3203 (sel_create_recovery_block): Likewise.
3204 (sel_redirect_edge_and_branch_force): Likewise.
3205 (sel_redirect_edge_and_branch): Likewise.
3206
3207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3208
3209 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3210 "new_insn" from rtx to rtx_insn *.
3211 (create_insn_rtx_with_rhs): Likewise for return type and for local
3212 "insn_rtx".
3213 (create_insn_rtx_with_lhs): Likewise.
3214 (create_speculation_check): Likewise for local "insn_rtx".
3215 (implicit_clobber_conflict_p): Likewise for local "insn".
3216 (get_expr_cost): Likewise.
3217 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3218 (move_cond_jump): Likewise for locals "next", "prev", "link",
3219 "head", "from", "to".
3220
3221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3222
3223 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3224 "next" from rtx to rtx_insn *.
3225 (find_conditional_protection): Likewise for local "next".
3226 (is_conditionally_protected): Likewise for local "insn1".
3227 (is_pfree): Likewise for locals "insn1", "insn2".
3228
3229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3230
3231 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3232 from rtx to rtx_insn *.
3233
3234 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3235 locals "insn1", "insn2" from rtx to rtx_insn *.
3236 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3237 locals "insn", "prev", "last_jump", "next_tail".
3238 (schedule_ebb): Likewise for params "head", "tail".
3239 (schedule_ebbs): Likewise for locals "tail", "head".
3240
3241 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3242 to rtx_insn on "last_insn" in one of the invocations of
3243 schedule_ebb.
3244
3245 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3246
3247 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3248 "elem", "insn" from rtx to rtx_insn *.
3249 (change_spec_dep_to_hard): Likewise.
3250 (get_back_and_forw_lists): Likewise for local "con".
3251 (sd_add_dep): Likewise for locals "elem", "insn".
3252 (sd_resolve_dep): Likewise for locals "pro", "con".
3253 (sd_unresolve_dep): Likewise.
3254 (sd_delete_dep): Likewise.
3255 (chain_to_prev_insn): Likewise for local "pro".
3256 (find_inc): Likewise for locals "pro", "con".
3257
3258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3259
3260 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3261 to rtx_insn *.
3262 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3263 const rtx_insn *.
3264 (modified_between_p): Strengthen local "insn" from rtx to
3265 rtx_insn *.
3266 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3267 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3268 const rtx_insn *.
3269
3270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3271
3272 * resource.c (next_insn_no_annul): Strengthen local "next" from
3273 rtx to rtx_insn *.
3274 (mark_referenced_resources): Likewise for local "insn".
3275
3276 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3277
3278 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3279 to rtx_insn *.
3280 (find_reloads): Likewise for param 1.
3281 (subst_reloads): Likewise for sole param.
3282 (find_equiv_reg): Likwise for param 2.
3283 (regno_clobbered_p): Likwise for param 2.
3284 (reload): Likewise for param 1.
3285
3286 * caller-save.c (save_call_clobbered_regs): Strengthen local
3287 "insn" from rtx to rtx_insn *.
3288 (insert_one_insn): Likewise for local "insn".
3289
3290 * reload.c (this_insn): Likewise for this global.
3291 (find_reloads): Likewise for param "insn".
3292 (find_reloads_toplev): Likewise.
3293 (find_reloads_address): Likewise.
3294 (subst_reg_equivs): Likewise.
3295 (update_auto_inc_notes): Likewise.
3296 (find_reloads_address_1): Likewise.
3297 (find_reloads_subreg_address): Likewise.
3298 (subst_reloads): Likewise.
3299 (find_equiv_reg): Likewise, also for local "p".
3300 (regno_clobbered_p): Likewise for param "insn".
3301
3302 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3303 array.
3304 (spill_reg_store): Likewise for the elements of this array.
3305 (remove_init_insns): Likewise for local "equiv_insn".
3306 (will_delete_init_insn_p): Likewise for param "insn".
3307 (reload): Likewise for param ""first" and local "insn".
3308 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3309 rtx_insn *.
3310 (calculate_elim_costs_all_insns): Likewise.
3311 (delete_caller_save_insns): Likewise.
3312 (spill_failure): Likewise for param "insn".
3313 (delete_dead_insn): Likewise.
3314 (set_label_offsets): Likewise.
3315 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3316 "prev_insn".
3317 (elimination_costs_in_insn): Likewise for param "insn".
3318 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3319 when referring to an insn.
3320 (set_initial_label_offsets): Likewise.
3321 (set_offsets_for_label): Strengthen param "insn" from rtx to
3322 rtx_insn *.
3323 (init_eliminable_invariants): Likewise for param "first" and local
3324 "insn".
3325 (fixup_eh_region_note): Likewise for param "insn".
3326 (reload_as_needed): Likewise for locals "prev", "insn",
3327 "old_next", "old_prev", "next".
3328 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3329 "last".
3330 (reload_inheritance_insn): Strengthen elements of this array from
3331 rtx to rtx_insn *.
3332 (failed_reload): Likewise for param "insn".
3333 (choose_reload_regs): Likewise for local "insn". Replace use of
3334 NULL_RTX with NULL when referring to an insn.
3335 (input_reload_insns): Strengthen elements of this array from rtx
3336 to rtx_insn *.
3337 (other_input_address_reload_insns): Likewise for this global.
3338 (other_input_reload_insns): Likewise for this global.
3339 (input_address_reload_insns): Likwise for the elements of this
3340 array.
3341 (inpaddr_address_reload_insns): Likwise for the elements of this
3342 array.
3343 (output_reload_insns): Likewise for the elements of this array.
3344 (output_address_reload_insns): Likewise for the elements of this
3345 array.
3346 (outaddr_address_reload_insns): Likewise for the elements of this
3347 array.
3348 (operand_reload_insns): Likewise for this global.
3349 (other_operand_reload_insns): Likewise for this global.
3350 (other_output_reload_insns): Likewise for the elements of this
3351 array.
3352 (new_spill_reg_store): Likewise for the elements of this
3353 array.
3354 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3355 Strengthen local "where" from rtx * to rtx_insn **.
3356 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3357 from rtx to rtx_insn *.
3358 (do_input_reload): Likewise for local "insn".
3359 (do_output_reload): Likewise for local "insn".
3360 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3361 (emit_insn_if_valid_for_reload): Likewise for return type and local
3362 "last". Add checked cast to rtx_insn when returning "insn" since
3363 this has been through emit_insn.
3364 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3365 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3366 returning "insn" since it's been through
3367 emit_insn_if_valid_for_reload at this point.
3368 (delete_output_reload): Strengthen param "insn" and locals
3369 "output_reload_insn", "i2" from rtx to rtx_insn *.
3370 (delete_address_reloads): Likewise for params "dead_insn",
3371 "current_insn" and locals "prev", "next".
3372 (delete_address_reloads_1): Likewise for params "dead_insn",
3373 "current_insn" and locals "prev", "i2".
3374 (inc_for_reload): Likewise for locals "last", "add_insn".
3375 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3376 rtx_insn *.
3377
3378 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3379 param of this duplicate of the prototype from reload.h
3380
3381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3382
3383 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3384 rtx to rtx_insn *.
3385 (regstat_bb_compute_calls_crossed): Likewise.
3386
3387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3388
3389 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3390 to rtx_insn *.
3391 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3392 with an insn.
3393 (regrename_analyze): Strengthen local "insn" from rtx to
3394 rtx_insn *.
3395 (scan_rtx_reg): Likewise for param "insn".
3396 (scan_rtx_address): Likewise.
3397 (scan_rtx): Likewise.
3398 (restore_operands): Likewise.
3399 (record_out_operands): Likewise.
3400 (build_def_use): Likewise for local "insn". Replace use of
3401 NULL_RTX with NULL when dealing with an insn.
3402
3403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3404
3405 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3406 * reginfo.c (reg_scan): Likewise, also for local "insn".
3407 (reg_scan_mark_refs): Likewise for param "insn".
3408 (init_subregs_of_mode): Likewise for local "insn".
3409
3410 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3411
3412 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3413 "insn" from rtx to rtx_insn *.
3414 (replace_oldest_value_reg): Likewise for param "insn".
3415 (replace_oldest_value_addr): Likewise.
3416 (replace_oldest_value_mem): Likewise.
3417 (apply_debug_insn_changes): Likewise for local "last_insn".
3418 (copyprop_hardreg_forward_1): Likewise for local "insn".
3419
3420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3421
3422 * reg-stack.c (next_flags_user): Strengthen return type and param
3423 "insn" from rtx to rtx_insn *.
3424 (straighten_stack): Likewise for param "insn".
3425 (check_asm_stack_operands): Likewise.
3426 (remove_regno_note): Likewise.
3427 (emit_pop_insn): Likewise for return type, param "insn", local
3428 "pop_insn".
3429 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3430 "limit" from rtx to rtx_insn *.
3431 (swap_to_top): Likewise for param "insn".
3432 (move_for_stack_reg): Likewise.
3433 (move_nan_for_stack_reg): Likewise.
3434 (swap_rtx_condition): Likewise.
3435 (compare_for_stack_reg): Likewise.
3436 (subst_all_stack_regs_in_debug_insn): Likewise.
3437 (subst_stack_regs_pat): Likewise, and local "insn2".
3438 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3439 rtx_insn *.
3440 (subst_stack_regs): Likewise.
3441 (change_stack): Likewise.
3442 (convert_regs_1): Likewise for locals "insn", "next".
3443
3444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3445
3446 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3447 rtx_insn *.
3448 (combine_set_extension): Likewise for param "curr_insn".
3449 (transform_ifelse): Likewise for param "def_insn".
3450 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3451 from vec<rtx> * to vec<rtx_insn *> *.
3452 (is_cond_copy_insn): Likewise for param "insn".
3453 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3454 to vec<rtx_insn *>.
3455 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3456 local "def_insn" from rtx to rtx_insn *.
3457 (get_sub_rtx): Likewise for param "def_insn".
3458 (merge_def_and_ext): Likewise.
3459 (combine_reaching_defs): Likewise.
3460 (add_removable_extension): Likewise for param "insn".
3461 (find_removable_extensions): Likewise for local "insn".
3462 (find_and_remove_re): Likewise for locals "curr_insn" and
3463 "def_insn". Strengthen locals "reinsn_del_list" and
3464 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3465
3466 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3467
3468 * recog.c (split_insn): Strengthen param "insn" and locals
3469 "first", "last" from rtx to rtx_insn *.
3470 (split_all_insns): Likewise for locals "insn", "next".
3471 (split_all_insns_noflow): Likewise.
3472
3473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3474
3475 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3476 const rtx_insn *.
3477 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3478 (debug_rtx_find): Likewise for param 1 "x".
3479
3480 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3481 const_rtx to const rtx_insn *. Likewise for local "insn".
3482 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3483 (debug_rtx_find): Likewise for param 1 "x".
3484 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3485 from const_rtx to const rtx_insn * within the appropriate cases of
3486 the switch statement.
3487
3488 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3489 Strengthen local "insns" from rtx to rtx_insn * since this is
3490 passed to a call to debug_rtx_list.
3491
3492 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3493
3494 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3495 to rtx_insn *.
3496
3497 * function.c (stack_protect_epilogue): Add checked cast to
3498 rtx_insn for now when invoking predict_insn_def.
3499
3500 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3501 rtx_insn *.
3502 (predict_insn_def): Likewise.
3503 (rtl_predict_edge): Likewise for local "last_insn".
3504 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3505 const rtx_insn *.
3506 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3507 to rtx_insn *.
3508 (bb_estimate_probability_locally): Likewise for local "last_insn".
3509 (expensive_function_p): Likewise for local "insn".
3510
3511 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3512 local "jmp", since this is used when invoking predict_insn_def.
3513
3514 2014-08-22 Marek Polacek <polacek@redhat.com>
3515
3516 PR c++/62199
3517 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3518
3519 2014-08-22 Marek Polacek <polacek@redhat.com>
3520
3521 PR c/61271
3522 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3523 a comparison in parens.
3524 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3525 in parens.
3526
3527 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3528
3529 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3530 rtx_insn *.
3531
3532 * cprop.c (fis_get_condition): Likewise.
3533
3534 * postreload.c (reload_cse_regs): Likewise for param "first".
3535 (reload_cse_simplify): Likewise for param "insn".
3536 (reload_cse_regs_1): Likewise for local "insn".
3537 (reload_cse_simplify_set): Likewise for param "insn".
3538 (reload_cse_simplify_operands): Likewise.
3539 (struct reg_use): Likewise for field "insn".
3540 (reload_combine_purge_insn_uses): Likewise for param "insn".
3541 (fixup_debug_insns): Likewise for params "from", "to" and local
3542 "insn".
3543 (try_replace_in_use): Likewise for local "use_insn".
3544 (reload_combine_recognize_const_pattern): Likewise for param
3545 "insn" and locals "add_moved_after_insn", "use_insn".
3546 (reload_combine_recognize_pattern): Likewise for param "insn" and
3547 local "prev".
3548 (reload_combine): Likewise for locals "insn", "prev".
3549 (reload_combine_note_use): Likewise for param "insn".
3550 (move2add_use_add2_insn): Likewise.
3551 (move2add_use_add3_insn): Likewise.
3552 (reload_cse_move2add): Likewise, also for local "next".
3553 (move2add_note_store): Likewise for local "insn".
3554
3555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3556
3557 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3558 rtx to rtx_insn *.
3559 (struct unoccr): Likewise.
3560 (struct modifies_mem): Likewise.
3561 (alloc_mem): Likewise for local "insn".
3562 (insert_expr_in_table): Likewise for param "insn".
3563 (dump_expr_hash_table_entry): Likewise for local "insn".
3564 (oprs_unchanged_p): Likewise for param "insn".
3565 (load_killed_in_block_p): Likewise for local "setter".
3566 (record_last_reg_set_info): Likewise for param "insn".
3567 (record_last_reg_set_info_regno): Likewise.
3568 (record_last_mem_set_info): Likewise.
3569 (record_last_set_info): Likewise for local "last_set_insn".
3570 (record_opr_changes): Likewise for param "insn".
3571 (hash_scan_set): Likewise.
3572 (compute_hash_table): Likewise for local "insn".
3573 (get_avail_load_store_reg): Likewise for param "insn".
3574 (eliminate_partially_redundant_load): Likewise, also for locals
3575 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3576 RTX for insns.
3577 (eliminate_partially_redundant_loads): Likewise for local "insn".
3578
3579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3580
3581 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3582 rtx to rtx_insn *.
3583 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3584 (expand_twoval_unop): Likewise for locals entry_last", "last".
3585 (expand_twoval_binop): Likewise.
3586 (expand_twoval_binop_libfunc): Likewise for local "insns".
3587 (widen_leading): Likewise for local "last".
3588 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3589 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3590 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3591 (expand_parity): Likewise for locals "last" and "seq".
3592 (expand_ffs): Likewise for local "seq". Strengthen local
3593 "nonzero_label" from rtx to rtx_code_label *.
3594 (expand_absneg_bit): Strengthen local "insns" from rtx to
3595 rtx_insn *.
3596 (expand_unop_direct): Likewise for local "last".
3597 (expand_unop): Likewise for locals "last", "insns".
3598 (expand_abs_nojump): Likewise for local "last".
3599 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3600 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3601 rtx_insn *.
3602 (expand_copysign_absneg): Strengthen local "label" from rtx to
3603 rtx_code_label *.
3604 (expand_copysign_bit): Strengthen local "insns" from rtx to
3605 rtx_insn *.
3606 (struct no_conflict_data): Likewise for fields "first", "insn".
3607 (emit_libcall_block_1): Likewise for param "insns" and locals
3608 "next", "last", "insn".
3609 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3610 on "insns" when invoking emit_libcall_block_1. Ultimately we
3611 want to strengthen insns itself.
3612 (prepare_cmp_insn): Strengthen local "last" from rtx to
3613 rtx_insn *.
3614 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3615 (prepare_float_lib_cmp): Likewise for local "insns".
3616 (emit_conditional_move): Likewise for local "last".
3617 (emit_conditional_add): Likewise.
3618 (have_sub2_insn): Likewise for local "seq".
3619 (expand_float): Likewise for local "insns". Strengthen locals
3620 "label", "neglabel" from rtx to rtx_code_label *.
3621 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3622 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3623 (expand_fixed_convert): Likewise for local "insns" (to
3624 rtx_insn *).
3625 (expand_sfix_optab): Likewise for local "last".
3626 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3627 to rtx_code_label *.
3628 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3629 from rtx to rtx_insn *.
3630 (expand_atomic_fetch_op): Likewise for local "insn".
3631 (maybe_legitimize_operand_same_code): Likewise for local "last".
3632 (maybe_legitimize_operands): Likewise.
3633
3634 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3635
3636 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3637 "insn" from rtx to rtx_insn *.
3638 (ps_rtl_insn): Likewise for return type.
3639 (doloop_register_get): Likewise for params "head", "tail" and
3640 locals "insn", "first_insn_not_to_check".
3641 (schedule_reg_move): Likewise for local "this_insn".
3642 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3643 of gen_move_insn for now.
3644 (reset_sched_times): Strengthen local "insn" from rtx to
3645 rtx_insn *.
3646 (permute_partial_schedule): Likewise.
3647 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3648 (dump_insn_location): Likewise for param "insn".
3649 (loop_canon_p): Likewise for local "insn".
3650 (sms_schedule): Likewise.
3651 (print_partial_schedule): Likewise.
3652 (ps_has_conflicts): Likewise.
3653
3654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3655
3656 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3657 "tailp" from rtx * to rtx_insn **.
3658
3659 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3660 from rtx to rtx_insn *.
3661 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3662 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3663 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3664 rtx to rtx_insn *.
3665 * modulo-sched.c (const_iteration_count): Strengthen return type
3666 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3667 use of NULL_RTX with NULL when working with insns.
3668 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3669 to rtx_insn *.
3670 (sms_schedule): Likewise.
3671 * sched-rgn.c (init_ready_list): Likewise, also for locals
3672 "src_head" and "src_next_tail".
3673 (compute_block_dependences): Likewise.
3674 (free_block_dependencies): Likewise.
3675 (debug_rgn_dependencies): Likewise.
3676 (free_rgn_deps): Likewise.
3677 (compute_priorities): Likewise.
3678 (schedule_region): Likewise.
3679 * sel-sched.c (find_ebb_boundaries): Likewise.
3680
3681 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3682 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3683
3684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3685
3686 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3687 from rtx to rtx_insn *.
3688 (new_seginfo): Likewise for param "insn".
3689 (create_pre_exit): Likewise for locals "last_insn",
3690 "before_return_copy", "return_copy".
3691 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3692 "mode_set".
3693
3694 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3695
3696 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3697 from rtx to rtx_insn *.
3698 (lra_push_insn): Likewise for 1st param.
3699 (lra_push_insn_and_update_insn_regno_info): Likewise.
3700 (lra_pop_insn): Likewise for return type.
3701 (lra_invalidate_insn_data): Likewise for 1st param.
3702 (lra_set_insn_deleted): Likewise.
3703 (lra_delete_dead_insn): Likewise.
3704 (lra_process_new_insns): Likewise for first 3 params.
3705 (lra_set_insn_recog_data): Likewise for 1st param.
3706 (lra_update_insn_recog_data): Likewise.
3707 (lra_set_used_insn_alternative): Likewise.
3708 (lra_invalidate_insn_regno_info): Likewise.
3709 (lra_update_insn_regno_info): Likewise.
3710 (lra_former_scratch_operand_p): Likewise.
3711 (lra_eliminate_regs_1): Likewise.
3712 (lra_get_insn_recog_data): Likewise.
3713
3714 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3715 rtx to rtx_insn *.
3716
3717 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3718 "mv1" and "mv2".
3719 (substitute_within_insn): New.
3720 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3721 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3722 Replace call to "substitute" with call to substitute_within_insn.
3723
3724 * lra-constraints.c (curr_insn): Strengthen from rtx to
3725 rtx_insn *.
3726 (get_equiv_with_elimination): Likewise for param "insn".
3727 (match_reload): Strengthen params "before" and "after" from rtx *
3728 to rtx_insn **.
3729 (emit_spill_move): Likewise for return type. Add a checked cast
3730 to rtx_insn * on result of gen_move_insn for now.
3731 (check_and_process_move): Likewise for local "before". Replace
3732 NULL_RTX with NULL when referring to insns.
3733 (process_addr_reg): Strengthen params "before" and "after" from
3734 rtx * to rtx_insn **.
3735 (insert_move_for_subreg): Likewise.
3736 (simplify_operand_subreg): Strengthen locals "before" and "after"
3737 from rtx to rtx_insn *.
3738 (process_address_1): Strengthen params "before" and "after" from
3739 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3740 rtx to rtx_insn *.
3741 (process_address): Strengthen params "before" and "after" from
3742 rtx * to rtx_insn **.
3743 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3744 (curr_insn_transform): Strengthen locals "before" and "after"
3745 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3746 to insns.
3747 (loc_equivalence_callback): Update cast of "data", changing
3748 resulting type from rtx to rtx_insn *.
3749 (substitute_pseudo_within_insn): New.
3750 (inherit_reload_reg): Strengthen param "insn" from rtx to
3751 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3752 NULL when referring to insns. Add a checked cast to rtx_insn *
3753 when using usage_insn to invoke lra_update_insn_regno_info.
3754 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3755 likewise for locals "restore", "save". Add checked casts to
3756 rtx_insn * when using usage_insn to invoke
3757 lra_update_insn_regno_info and lra_process_new_insns. Replace
3758 NULL_RTX with NULL when referring to insns.
3759 (split_if_necessary): Strengthen param "insn" from rtx to
3760 rtx_insn *.
3761 (update_ebb_live_info): Likewise for params "head", "tail" and local
3762 "prev_insn".
3763 (get_last_insertion_point): Likewise for return type and local "insn".
3764 (get_live_on_other_edges): Likewise for local "last".
3765 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3766 "prev_insn", "next_insn", "restore".
3767 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3768 (undo_optional_reloads): Likewise for local "insn".
3769
3770 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3771 "insn".
3772 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3773 insns.
3774 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3775 rtx_insn *.
3776 (spill_pseudos): Likewise for local "insn".
3777 (init_elimination): Likewise.
3778 (process_insn_for_elimination): Likewise for param "insn".
3779
3780 * lra-lives.c (curr_insn): Likewise.;
3781
3782 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3783 (remove_pseudos): Likewise for param "insn".
3784 (spill_pseudos): Likewise for local "insn".
3785 (lra_final_code_change): Likewise for locals "insn", "curr".
3786
3787 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3788 (lra_set_insn_deleted): Likewise.
3789 (lra_delete_dead_insn): Likewise, and for local "prev".
3790 (new_insn_reg): Likewise for param "insn".
3791 (lra_set_insn_recog_data): Likewise.
3792 (lra_update_insn_recog_data): Likewise.
3793 (lra_set_used_insn_alternative): Likewise.
3794 (get_insn_freq): Likewise.
3795 (invalidate_insn_data_regno_info): Likewise.
3796 (lra_invalidate_insn_regno_info): Likewise.
3797 (lra_update_insn_regno_info): Likewise.
3798 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3799 vec<rtx_insn *>.
3800 (lra_push_insn_1): Strengthen param "insn" from rtx to
3801 rtx_insn *.
3802 (lra_push_insn): Likewise.
3803 (lra_push_insn_and_update_insn_regno_info): Likewise.
3804 (lra_pop_insn): Likewise for return type and local "insn".
3805 (push_insns): Likewise for params "from", "to", and local "insn".
3806 (setup_sp_offset): Likewise for params "from", "last" and locals
3807 "before", "insn".
3808 (lra_process_new_insns): Likewise for params "insn", "before",
3809 "after" and local "last".
3810 (struct sloc): Likewise for field "insn".
3811 (lra_former_scratch_operand_p): Likewise for param "insn".
3812 (remove_scratches): Likewise for locals "insn", "last".
3813 (check_rtl): Likewise for local "insn".
3814 (add_auto_inc_notes): Likewise for param "insn".
3815 (update_inc_notes): Likewise for local "insn".
3816 (lra): Replace NULL_RTX with NULL when referring to insn.
3817
3818 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3819
3820 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3821 to rtx_insn *.
3822 (resolve_reg_notes): Likewise.
3823 (resolve_simple_move): Likewise for return type, param "insn", and
3824 locals "insns", "minsn".
3825 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3826 (resolve_use): Likewise.
3827 (resolve_debug): Likewise.
3828 (find_decomposable_shift_zext): Likewise.
3829 (resolve_shift_zext): Likewise for return type, param "insn", and
3830 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3831 (decompose_multiword_subregs): Likewise for local "insn",
3832 "orig_insn", "decomposed_shift", "end".
3833
3834 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3835
3836 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3837 param "insns" from rtx to rtx_insn *.
3838
3839 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3840 rtx to rtx_insn *.
3841 (struct iv_to_split): Likewise.
3842 (loop_exit_at_end_p): Likewise for local "insn".
3843 (split_edge_and_insert): Likewise for param "insns".
3844 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3845 and locals "seq", "jump".
3846 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3847 "branch_code"; update invocations of compare_and_jump_seq to
3848 eliminate NULL_RTX in favor of NULL.
3849 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3850 rtx to rtx_insn *.
3851 (reset_debug_uses_in_loop): Likewise.
3852 (analyze_insn_to_expand_var): Likewise for param "insn".
3853 (analyze_iv_to_split_insn): Likewise.
3854 (analyze_insns_in_loop): Likewise for local "insn".
3855 (insert_base_initialization): Likewise for param
3856 "insn" and local "seq".
3857 (split_iv): Likewise for param "insn" and local "seq".
3858 (expand_var_during_unrolling): Likewise for param "insn".
3859 (insert_var_expansion_initialization): Likewise for local "seq".
3860 (combine_var_copies_in_loop_exit): Likewise.
3861 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3862 "insn".
3863 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3864 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3865 "next".
3866
3867 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3868
3869 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3870 rtx_insn *.
3871 (iv_analyze_result): Likewise.
3872 (iv_analyze_expr): Likewise.
3873 (biv_p): Likewise.
3874
3875 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3876 local "def_insn" from rtx to rtx_insn *.
3877 (get_biv_step_1): Likewise for local "insn".
3878 (iv_analyze_expr): Likewise for param "insn".
3879 (iv_analyze_def): Likewise for local "insn".
3880 (iv_analyze_op): Likewise for param "insn".
3881 (iv_analyze): Likewise.
3882 (iv_analyze_result): Likewise.
3883 (biv_p): Likewise.
3884 (suitable_set_for_replacement): Likewise.
3885 (simplify_using_initial_values): Likewise for local "insn".
3886 (iv_number_of_iterations): Likewise for param "insn".
3887 (check_simple_exit): Add checked cast to rtx_insn when invoking
3888 iv_number_of_iterations for now (until get_condition is
3889 strengthened).
3890
3891 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3892 "insn" from rtx to rtx_insn *.
3893 (analyze_insns_in_loop): Likewise for local "insn".
3894
3895 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3896
3897 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3898 to rtx_insn *.
3899 (struct invariant): Likewise.
3900 (hash_invariant_expr_1): Likewise for param "insn".
3901 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3902 (find_exits): Likewise for local "insn".
3903 (create_new_invariant): Likewise for param "insn".
3904 (check_dependencies): Likewise.
3905 (find_invariant_insn): Likewise.
3906 (record_uses): Likewise.
3907 (find_invariants_insn): Likewise.
3908 (find_invariants_bb): Likewise for local "insn".
3909 (get_pressure_class_and_nregs): Likewise for param "insn".
3910 (calculate_loop_reg_pressure): Likewise for local "insn".
3911
3912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3913
3914 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3915 to rtx_insn *.
3916 (add_test): Likewise for locals "seq", "jump".
3917 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3918
3919 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3920
3921 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3922 rtx_insn *.
3923 (rebuild_jump_labels_chain): Likewise for param "chain".
3924
3925 * cfgexpand.c (pass_expand::execute): Add checked cast to
3926 rtx_insn * when calling rebuild_jump_labels_chain in region where
3927 we know e->insns.r is non-NULL.
3928
3929 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3930 rtx_insn *.
3931 (rebuild_jump_labels): Likewise.
3932 (rebuild_jump_labels_chain): Likewise for param "chain".
3933 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3934 (init_label_info): Likewise for param "f".
3935 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3936 "prev_nonjump_insn".
3937 (mark_all_labels): Likewise for param "f" and locals "insn",
3938 "prev_nonjump_insn".
3939
3940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3941
3942 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3943 from rtx to rtx_insn *insn.
3944 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3945 (ira_add_allocno_copy): Likewise.
3946 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3947 rtx to rtx_insn *.
3948 (ira_create_copy): Likewise.
3949 (ira_add_allocno_copy): Likewise.
3950 (create_bb_allocnos): Likewise for local "insn".
3951 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3952 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3953 process_regs_for_copy for rtx_insn * param.
3954 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3955 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3956 process_regs_for_copy for rtx_insn * param.
3957 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3958 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3959 (record_operand_costs): Likewise.
3960 (scan_one_insn): Likewise for return type, and for param "insn".
3961 (process_bb_for_costs): Likewise for local "insn".
3962 (process_bb_node_for_hard_reg_moves): Likewise.
3963 * ira-emit.c (struct move): Likewise for field "insn".
3964 (create_move): Eliminate use of NULL_RTX when dealing with an
3965 rtx_insn *.
3966 (emit_move_list): Strengthen return type and locals "result",
3967 "insn" from rtx to rtx_insn *insn.
3968 (emit_moves): Likewise for locals "insns", "tmp".
3969 (ira_emit): Likewise for local "insn".
3970 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3971 "insn".
3972 (find_call_crossed_cheap_reg): Likewise.
3973 (process_bb_node_lives): Likewise for local "insn".
3974 * ira.c (decrease_live_ranges_number): Likewise.
3975 (compute_regs_asm_clobbered): Likewise.
3976 (build_insn_chain): Likewise.
3977 (find_moveable_pseudos): Likewise, also locals "def_insn",
3978 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3979 to rtx_insn **. Add a checked cast when assigning from
3980 "closest_use" into closest_uses array in a region where we know
3981 it's a non-NULL insn.
3982 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3983 to rtx_insn *.
3984 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3985 "last_interesting_insn", "uin".
3986 (move_unallocated_pseudos): Likewise for locals "def_insn",
3987 "move_insn", "newinsn".
3988
3989 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3990
3991 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3992 Strengthen locals "done_label", "do_error" from rtx to
3993 rtx_code_label *.
3994 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3995 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3996 rtx_code_label *.
3997 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3998 "done_label", "do_error" to rtx_code_label * and local "last" to
3999 rtx_insn *.
4000 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4001 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4002 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4003 "after_lopart_neg", "do_overflow", "hipart_different" to
4004 rtx_code_label * and local "last" to rtx_insn *.
4005
4006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4007
4008 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4009 "insn" and "move_insn" from rtx to rtx_insn *.
4010
4011 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4012
4013 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4014 rtx_insn *.
4015 (cheap_bb_rtx_cost_p): Likewise.
4016 (first_active_insn): Likewise for return type and local "insn".
4017 (last_active_insn): Likewise for return type and locals "insn",
4018 "head".
4019 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4020 "insn_b".
4021 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4022 "seq".
4023 (noce_try_move): Likewise for local "seq".
4024 (noce_try_store_flag): Likewise.
4025 (noce_try_store_flag_constants): Likewise.
4026 (noce_try_addcc): Likewise.
4027 (noce_try_store_flag_mask): Likewise.
4028 (noce_try_cmove): Likewise.
4029 (noce_try_minmax): Likewise.
4030 (noce_try_abs): Likewise.
4031 (noce_try_sign_mask): Likewise.
4032 (noce_try_bitop): Likewise.
4033 (noce_can_store_speculate_p): Likewise for local "insn".
4034 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4035 seq".
4036 (check_cond_move_block): Likewise for local "insn".
4037 (cond_move_convert_if_block): Likewise.
4038 (cond_move_process_if_block): Likewise for locals "seq",
4039 "loc_insn".
4040 (noce_find_if_block): Likewise for local "jump".
4041 (merge_if_block): Likewise for local "last".
4042 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4043 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4044 (block_has_only_trap): Likewise for return type and local "trap".
4045 (find_if_case_1): Likewise for local "jump".
4046 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4047 "insn".
4048
4049 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4050
4051 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4052 "last_insn", "loop_end" from rtx to rtx_insn *.
4053
4054 * hw-doloop.c (scan_loop): Likewise for local "insn".
4055 (discover_loop): Likewise for param "tail_insn".
4056 (discover_loops): Likewise for local "tail".
4057
4058 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4059 cast to rtx_insn * when assigning from an rtx local to a
4060 hwloop_info's "last_insn" field.
4061
4062 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4063
4064 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4065 (add_delay_dependencies): Strengthen local "pro" from rtx to
4066 rtx_insn *.
4067 (recompute_todo_spec): Likewise.
4068 (dep_cost_1): Likewise for locals "insn", "used".
4069 (schedule_insn): Likewise for local "dbg".
4070 (schedule_insn): Likewise for locals "pro", "next".
4071 (unschedule_insns_until): Likewise for local "con".
4072 (restore_pattern): Likewise for local "next".
4073 (estimate_insn_tick): Likewise for local "pro".
4074 (resolve_dependencies): Likewise for local "next".
4075 (fix_inter_tick): Likewise.
4076 (fix_tick_ready): Likewise for local "pro".
4077 (add_to_speculative_block): Likewise for locals "check", "twin",
4078 "pro".
4079 (sched_extend_bb): Likewise for locals "end", "insn".
4080 (init_before_recovery): Likewise for local "x".
4081 (sched_create_recovery_block): Likewise for local "barrier".
4082 (create_check_block_twin): Likewise for local "pro".
4083 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4084 "consumer".
4085 (unlink_bb_notes): Update for change to type of bb_header.
4086 Strengthen locals "prev", "label", "note", "next" from rtx to
4087 rtx_insn *.
4088 (clear_priorities): Likewise for local "pro".
4089
4090 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4091
4092 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4093 rtx_insn *.
4094 (test_insn): Likewise for this global.
4095 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4096 const rtx_insn *.
4097 (oprs_anticipatable_p): Likewise.
4098 (oprs_available_p): Likewise.
4099 (insert_expr_in_table): Strengthen param "insn" from rtx to
4100 rtx_insn *.
4101 (hash_scan_set): Likewise.
4102 (hash_scan_clobber): Likewise.
4103 (hash_scan_call): Likewise.
4104 (hash_scan_insn): Likewise.
4105 (compute_hash_table_work): Likewise for local "insn".
4106 (process_insert_insn): Likewise for return type and local "pat".
4107 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4108 "pat", "pat_end", "maybe_cc0_setter".
4109 (pre_edge_insert): Likewise for local "insn".
4110 (pre_insert_copy_insn): Likewise for param "insn".
4111 (pre_insert_copies): Likewise for local "insn".
4112 (struct set_data): Likewise for field "insn".
4113 (single_set_gcse): Likewise for param "insn".
4114 (gcse_emit_move_after): Likewise.
4115 (pre_delete): Likewise for local "insn".
4116 (update_bb_reg_pressure): Likewise for param "from" and local
4117 "insn".
4118 (should_hoist_expr_to_dom): Likewise for param "from".
4119 (hoist_code): Likewise for local "insn".
4120 (get_pressure_class_and_nregs): Likewise for param "insn".
4121 (calculate_bb_reg_pressure): Likewise for local "insn".
4122 (compute_ld_motion_mems): Likewise.
4123
4124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4125
4126 * genpeep.c (main): Rename param back from "uncast_ins1" to
4127 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4128 checked cast.
4129
4130 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4131
4132 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4133
4134 PR target/62195
4135 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4136 documentation to state it is only for VSX operations.
4137
4138 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4139 constraint only active if VSX.
4140
4141 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4142 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4143 (lfiwzx): Likewise.
4144
4145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4146
4147 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4148 Strengthen local "insn" from rtx to rtx_insn *.
4149 (use_killed_between): Likewise for param "target_insn".
4150 (all_uses_available_at): Likewise for param "target_insn" and
4151 local "next".
4152 (update_df_init): Likewise for params "def_insn", "insn".
4153 (update_df): Likewise for param "insn".
4154 (try_fwprop_subst): Likewise for param "def_insn" and local
4155 "insn".
4156 (free_load_extend): Likewise for param "insn".
4157 (forward_propagate_subreg): Likewise for param "def_insn" and
4158 local "use_insn".
4159 (forward_propagate_asm): Likewise for param "def_insn" and local
4160 "use_insn".
4161 (forward_propagate_and_simplify): Likewise for param "def_insn"
4162 and local "use_insn".
4163 (forward_propagate_into): Likewise for locals "def_insn" and
4164 "use_insn".
4165
4166 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4167
4168 * function.c (emit_initial_value_sets): Strengthen local "seq"
4169 from rtx to rtx_insn *.
4170 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4171 local "seq".
4172 (instantiate_virtual_regs): Likewise for local "insn".
4173 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4174 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4175 (expand_function_end): Likewise for locals "insn" and "seq".
4176 (epilogue_done): Likewise for local "insn".
4177 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4178 "last", "trial".
4179 (reposition_prologue_and_epilogue_notes): Likewise for locals
4180 "insn", "last", "note", "first".
4181 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4182 (pass_match_asm_constraints::execute): Likewise for local "insn".
4183
4184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4185
4186 * output.h (final_scan_insn): Strengthen return type from rtx to
4187 rtx_insn *.
4188 (final_forward_branch_p): Likewise for param.
4189 (current_output_insn): Likewise for this global.
4190
4191 * final.c (rtx debug_insn): Likewise for this variable.
4192 (current_output_insn): Likewise.
4193 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4194 adding "insn" back in as an rtx_insn * with a checked cast, so
4195 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4196 first param.
4197 (compute_alignments): Strengthen local "label" from rtx to
4198 rtx_insn *.
4199 (shorten_branches): Rename param from "first" to "uncast_first",
4200 introducing a new local rtx_insn * "first" using a checked cast to
4201 effectively strengthen "first" from rtx to rtx_insn * without
4202 affecting the type signature. Strengthen locals "insn", "seq",
4203 "next", "label" from rtx to rtx_insn *.
4204 (change_scope): Strengthen param "orig_insn" and local "insn" from
4205 rtx to rtx_insn *.
4206 (final_start_function): Rename param from "first" to "uncast_first",
4207 introducing a new local rtx_insn * "first" using a checked cast to
4208 effectively strengthen "first" from rtx to rtx_insn * without
4209 affecting the type signature. Strengthen local "insn" from rtx to
4210 rtx_insn *.
4211 (dump_basic_block_info): Strengthen param "insn" from rtx to
4212 rtx_insn *.
4213 (final): Rename param from "first" to "uncast_first",
4214 introducing a new local rtx_insn * "first" using a checked cast to
4215 effectively strengthen "first" from rtx to rtx_insn * without
4216 affecting the type signature. Strengthen locals "insn", "next"
4217 from rtx to rtx_insn *.
4218 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4219 rtx_insn *.
4220 (call_from_call_insn): Strengthen param "insn" from rtx to
4221 rtx_call_insn *.
4222 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4223 introducing a new local rtx_insn * "insn" using a checked cast to
4224 effectively strengthen "insn" from rtx to rtx_insn * without
4225 affecting the type signature. Strengthen return type and locals
4226 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4227 now-redundant checked cast to rtx_insn * from both invocations of
4228 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4229 introducing a local "call_insn" for use when invoking
4230 call_from_call_insn.
4231 (notice_source_line): Strengthen param "insn" from rtx to
4232 rtx_insn *.
4233 (leaf_function_p): Likewise for local "insn".
4234 (final_forward_branch_p): Likewise.
4235 (leaf_renumber_regs): Likewise for param "first".
4236 (rest_of_clean_state): Likewise for locals "insn" and "next".
4237 (self_recursive_call_p): Likewise for param "insn".
4238 (collect_fn_hard_reg_usage): Likewise for local "insn".
4239 (get_call_fndecl): Likewise for param "insn".
4240 (get_call_cgraph_rtl_info): Likewise.
4241 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4242 introducing a new local rtx_insn * "insn" using a checked cast to
4243 effectively strengthen "insn" from rtx to rtx_insn * without
4244 affecting the type signature.
4245
4246 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4247 cast when assigning from param "insn" to current_output_insn.
4248 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4249 so that we can assign it back to current_output_insn.
4250
4251 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4252
4253 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4254 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4255 atmxt540s and atmxt540sreva devices.
4256 * config/avr/avr-tables.opt: Regenerate.
4257 * config/avr/t-multilib: Regenerate.
4258 * doc/avr-mmcu.texi: Regenerate.
4259
4260 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4261
4262 * expr.c (convert_move): Strengthen local "insns" from rtx to
4263 rtx_insn *.
4264 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4265 "top_label" from rtx to rtx_code_label *.
4266 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4267 rtx_insn *.
4268 (emit_single_push_insn): Likewise for locals "prev", "last".
4269 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4270 to rtx_code_label *.
4271 (store_constructor): Likewise for locals "loop_start", "loop_end".
4272 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4273 rtx_insn *.
4274 (expand_expr_real_2): Likewise.
4275 (expand_expr_real_1): Strengthen local "label" from rtx to
4276 rtx_code_label *.
4277
4278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4279
4280 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4281 from rtx to rtx_insn *.
4282 (store_bit_field_1): Likewise.
4283 (extract_bit_field_1): Likewise.
4284 (expand_mult_const): Likewise for local "insns".
4285 (expmed_mult_highpart): Strengthen local "label" from rtx to
4286 rtx_code_label *.
4287 (expand_smod_pow2): Likewise.
4288 (expand_sdiv_pow2): Likewise.
4289 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4290 rtx_insn *. Strengthen locals "label", "label1", "label2",
4291 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4292 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4293 (emit_store_flag): Likewise.
4294 (emit_store_flag_force): Strengthen local "label" from rtx to
4295 rtx_code_label *.
4296 (do_cmp_and_jump): Likewise for param "label".
4297
4298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4299
4300 * explow.c (force_reg): Strengthen local "insn" from rtx to
4301 rtx_insn *.
4302 (adjust_stack_1): Likewise.
4303 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4304 "final_label", "available_label", "space_available" from rtx to
4305 rtx_code_label *.
4306 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4307 (anti_adjust_stack_and_probe): Likewise.
4308
4309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4310
4311 * except.h (sjlj_emit_function_exit_after): Strengthen param
4312 "after" from rtx to rtx_insn *. This is only called with
4313 result of get_last_insn (in function.c) so type-change should be
4314 self-contained.
4315
4316 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4317 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4318 to rtx_insn *. These fields are only used from except.c so this
4319 type-change should be self-contained to this patch.
4320
4321 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4322 local "last" from rtx to rtx_insn *.
4323 (dw2_build_landing_pads): Likewise for local "seq".
4324 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4325 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4326 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4327 rtx to rtx_insn *.
4328 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4329 to rtx_insn *.
4330 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4331 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4332 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4333 referring to an insn. Strengthen local "dispatch_label" from
4334 rtx to rtx_code_label *.
4335 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4336 rtx_insn *.
4337 (expand_eh_return): Strengthen local "around_label" from
4338 rtx to rtx_code_label *.
4339 (convert_to_eh_region_ranges): Strengthen locals "iter",
4340 "last_action_insn", "first_no_action_insn",
4341 "first_no_action_insn_before_switch",
4342 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4343
4344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4345
4346 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4347 from rtx to rtx_insn *.
4348 (cached_next_real_insn): Likewise.
4349 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4350 working with insns.
4351 (dwarf2out_var_location): Strengthen locals "next_real",
4352 "next_note", "expected_next_loc_note", "last_start", "insn" from
4353 rtx to rtx_insn *.
4354
4355 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4356
4357 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4358 from rtx to rtx_insn *.
4359 (create_pseudo_cfg): Likewise for local "insn".
4360
4361 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4362
4363 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4364 from rtx to rtx_insn *.
4365 (df_bb_regno_last_def_find): Likewise.
4366
4367 * df-problems.c (df_rd_bb_local_compute): Likewise.
4368 (df_lr_bb_local_compute): Likewise.
4369 (df_live_bb_local_compute): Likewise.
4370 (df_chain_remove_problem): Likewise.
4371 (df_chain_create_bb): Likewise.
4372 (df_word_lr_bb_local_compute): Likewise.
4373 (df_remove_dead_eq_notes): Likewise for param "insn".
4374 (df_note_bb_compute): Likewise for local "insn".
4375 (simulate_backwards_to_point): Likewise.
4376 (df_md_bb_local_compute): Likewise.
4377
4378 * df-scan.c (df_scan_free_bb_info): Likewise.
4379 (df_scan_start_dump): Likewise.
4380 (df_scan_start_block): Likewise.
4381 (df_install_ref_incremental): Likewise for local "insn".
4382 (df_insn_rescan_all): Likewise.
4383 (df_reorganize_refs_by_reg_by_insn): Likewise.
4384 (df_reorganize_refs_by_insn_bb): Likewise.
4385 (df_recompute_luids): Likewise.
4386 (df_bb_refs_record): Likewise.
4387 (df_update_entry_exit_and_calls): Likewise.
4388 (df_bb_verify): Likewise.
4389
4390 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4391
4392 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4393 "first_note" from rtx to rtx_insn *.
4394 (get_node_of_insn): Likewise for param 2 "insn".
4395 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4396
4397 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4398 rtx_insn *.
4399 (mem_write_insn_p): Likewise.
4400 (mem_access_insn_p): Likewise.
4401 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4402 (def_has_ccmode_p): Likewise for param "insn".
4403 (add_cross_iteration_register_deps): Likewise for locals
4404 "def_insn" and "use_insn".
4405 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4406 (build_intra_loop_deps): Likewise for local "src_insn".
4407 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4408 to rtx_insn *.
4409 (get_node_of_insn): Likewise for param "insn".
4410
4411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4412
4413 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4414 (deletable_insn_p): Strengthen param "insn" from rtx to
4415 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4416 find_call_stack_args, since this is guarded by CALL_P (insn).
4417 (marked_insn_p): Strengthen param "insn" from rtx to
4418 rtx_insn *.
4419 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4420 invoking find_call_stack_args, since this is guarded by
4421 CALL_P (insn).
4422 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4423 rtx_insn *; we know this is an insn since this was called by
4424 mark_nonreg_stores.
4425 (mark_nonreg_stores_2): Likewise.
4426 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4427 rtx_insn *.
4428 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4429 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4430 to rtx_insn *.
4431 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4432 from rtx to rtx_insn *.
4433 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4434 "next", "ref_insn".
4435 (delete_unmarked_insns): Likewise for locals "insn", "next".
4436 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4437 (mark_reg_dependencies): Likewise for param "insn".
4438 (rest_of_handle_ud_dce): Likewise for local "insn".
4439 (word_dce_process_block): Likewise.
4440 (dce_process_block): Likewise.
4441
4442 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4443
4444 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4445 from rtx to rtx_insn *.
4446 (struct change_cc_mode_args): Likewise for field "insn".
4447 (this_insn): Strengthen from rtx to rtx_insn *.
4448 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4449 with insn.
4450 (validate_canon_reg): Strengthen param "insn" from rtx to
4451 rtx_insn *.
4452 (canon_reg): Likewise.
4453 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4454 dealing with insn.
4455 (record_jump_equiv): Strengthen param "insn" from rtx to
4456 rtx_insn *.
4457 (try_back_substitute_reg): Likewise, also for locals "prev",
4458 "bb_head".
4459 (find_sets_in_insn): Likewise for param "insn".
4460 (canonicalize_insn): Likewise.
4461 (cse_insn): Likewise. Add a checked cast.
4462 (invalidate_from_clobbers): Likewise for param "insn".
4463 (invalidate_from_sets_and_clobbers): Likewise.
4464 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4465 dealing with insn.
4466 (cse_prescan_path): Strengthen local "insn" from rtx to
4467 rtx_insn *.
4468 (cse_extended_basic_block): Likewise for locals "insn" and
4469 "prev_insn".
4470 (cse_main): Likewise for param "f".
4471 (check_for_label_ref): Likewise for local "insn".
4472 (set_live_p): Likewise for second param ("insn").
4473 (insn_live_p): Likewise for first param ("insn") and for local
4474 "next".
4475 (cse_change_cc_mode_insn): Likewise for first param "insn".
4476 (cse_change_cc_mode_insns): Likewise for first and second params
4477 "start" and "end".
4478 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4479 and "end".
4480 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4481 "cc_src_insn".
4482
4483 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4484 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4485 Anna Tikhonova <anna.tikhonova@intel.com>
4486 Ilya Tocar <ilya.tocar@intel.com>
4487 Andrey Turetskiy <andrey.turetskiy@intel.com>
4488 Ilya Verbin <ilya.verbin@intel.com>
4489 Kirill Yukhin <kirill.yukhin@intel.com>
4490 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4491
4492 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4493 New.
4494 * config/i386/sse.md
4495 (define_mode_iterator VI248_AVX2): Delete.
4496 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4497 (define_mode_iterator VI48_AVX2): Ditto.
4498 (define_insn <shift_insn><mode>3): Delete.
4499 (define_insn "<shift_insn><mode>3<mask_name>" with
4500 VI2_AVX2_AVX512BW): New.
4501 (define_insn "<shift_insn><mode>3<mask_name>" with
4502 VI48_AVX2): Ditto.
4503
4504 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4506 Anna Tikhonova <anna.tikhonova@intel.com>
4507 Ilya Tocar <ilya.tocar@intel.com>
4508 Andrey Turetskiy <andrey.turetskiy@intel.com>
4509 Ilya Verbin <ilya.verbin@intel.com>
4510 Kirill Yukhin <kirill.yukhin@intel.com>
4511 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4512
4513 * config/i386/sse.md
4514 (define_mode_iterator VI4F_BRCST32x2): New.
4515 (define_mode_attr 64x2_mode): Ditto.
4516 (define_mode_attr 32x2mode): Ditto.
4517 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4518 with VI4F_BRCST32x2): Ditto.
4519 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4520 with V16FI mode iterator): Ditto.
4521 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4522 with V16FI): Ditto.
4523 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4524 with VI8F_BRCST64x2): Ditto.
4525
4526 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4527 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4528 Anna Tikhonova <anna.tikhonova@intel.com>
4529 Ilya Tocar <ilya.tocar@intel.com>
4530 Andrey Turetskiy <andrey.turetskiy@intel.com>
4531 Ilya Verbin <ilya.verbin@intel.com>
4532 Kirill Yukhin <kirill.yukhin@intel.com>
4533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4534
4535 * config/i386/sse.md
4536 (define_mode_iterator VI8_AVX512VL): New.
4537 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4538
4539 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4540
4541 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4542 (define_mode_iterator V48_AVX512VL): New.
4543 (define_mode_iterator V12_AVX512VL): Ditto.
4544 (define_insn <avx512>_load<mode>_mask): Split into two similar
4545 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4546 Refactor output template.
4547 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4548
4549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4550
4551 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4552 rtx_insn *.
4553 (reg_available_p): Likewise for param "insn".
4554 (insert_set_in_table): Likewise.
4555 (hash_scan_set): Likewise.
4556 (hash_scan_insn): Likewise.
4557 (make_set_regs_unavailable): Likewise.
4558 (compute_hash_table_work): Likewise for local "insn".
4559 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4560 const rtx_insn *.
4561 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4562 (try_replace_reg): Likewise.
4563 (find_avail_set): Likewise.
4564 (cprop_jump): Likewise for params "setcc", "jump".
4565 (constprop_register): Likewise for param "insn".
4566 (cprop_insn): Likewise.
4567 (do_local_cprop): Likewise.
4568 (local_cprop_pass): Likewise for local "insn".
4569 (bypass_block): Likewise for params "setcc" and "jump".
4570 (bypass_conditional_jumps): Likewise for locals "setcc" and
4571 "insn".
4572 (one_cprop_pass): Likewise for local "insn".
4573
4574 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4575
4576 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4577 from rtx to rtx_insn *.
4578 (struct comparison): Likewise, also for field "prev_clobber".
4579 (conforming_compare): Likewise for param "insn".
4580 (arithmetic_flags_clobber_p): Likewise.
4581 (find_flags_uses_in_insn): Likewise.
4582 (find_comparison_dom_walker::before_dom_children): Likewise for
4583 locals "insn", "next", "last_clobber".
4584 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4585
4586 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4587
4588 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4589 "insn" from rtx to rtx_insn *.
4590 (single_set_for_csa): Likewise for param "insn".
4591 (record_one_stack_ref): Likewise.
4592 (try_apply_stack_adjustment): Likewise.
4593 (struct record_stack_refs_data): Likewise for field "insn".
4594 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4595 (prev_active_insn_bb): Likewise for return type and param "insn".
4596 (next_active_insn_bb): Likewise.
4597 (force_move_args_size_note): Likewise for params "prev" and "last"
4598 and locals "test", "next_candidate", "prev_candidate".
4599 (combine_stack_adjustments_for_block): Strengthen locals
4600 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4601 rtx_insn *.
4602
4603 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4604
4605 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4606 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4607 (subst_insn): Likewise for this variable.
4608 (added_links_insn): Likewise.
4609 (struct insn_link): Likewise for field "insn".
4610 (alloc_insn_link): Likewise for param "insn".
4611 (struct undobuf): Likewise for field "other_insn".
4612 (find_single_use): Likewise for param "insn" and local "next".
4613 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4614 (delete_noop_moves): Likewise for locals "insn", "next".
4615 (create_log_links): Likewise for locals "insn", "use_insn".
4616 Strengthen local "next_use" from rtx * to rtx_insn **.
4617 (insn_a_feeds_b): Likewise for params "a", "b".
4618 (combine_instructions): Likewise for param "f" and locals "insn",
4619 "next", "prev", "first", "last_combined_insn", "link", "link1",
4620 "temp". Replace use of NULL_RTX with NULL when referring to
4621 insns.
4622 (setup_incoming_promotions): Likewise for param "first"
4623 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4624 (can_combine_p): Likewise for params "insn", "i3", "pred",
4625 "pred2", "succ", "succ2" and for local "p".
4626 (combinable_i3pat): Likewise for param "i3".
4627 (cant_combine_insn_p): Likewise for param "insn".
4628 (likely_spilled_retval_p): Likewise.
4629 (adjust_for_new_dest): Likewise.
4630 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4631 (try_combine): Likewise for return type and for params "i3", "i2",
4632 "i1", "i0", "last_combined_insn", and for locals "insn",
4633 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4634 "i0_insn". Eliminate local "tem" in favor of new locals
4635 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4636 checked cast for now to rtx_insn * on the return type of
4637 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4638 insns.
4639 (find_split_point): Strengthen param "insn" from rtx to
4640 rtx_insn *.
4641 (simplify_set): Likewise for local "other_insn".
4642 (recog_for_combine): Likewise for param "insn".
4643 (record_value_for_reg): Likewise.
4644 (record_dead_and_set_regs_1): Likewise for local
4645 "record_dead_insn".
4646 (record_dead_and_set_regs): Likewise for param "insn".
4647 (record_promoted_value): Likewise.
4648 (check_promoted_subreg): Likewise.
4649 (get_last_value_validate): Likewise.
4650 (reg_dead_at_p): Likewise.
4651 (move_deaths): Likewise for param "to_insn".
4652 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4653 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4654 in favor of new locals "tem_note" and "tem_insn", the latter being
4655 an rtx_insn *.
4656 (distribute_links): Strengthen locals "place", "insn" from rtx to
4657 rtx_insn *.
4658
4659 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4660
4661 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4662 than a const_rtx.
4663 (can_delete_label_p): Require a const rtx_code_label * rather than
4664 a const_rtx.
4665 (delete_insn): Add checked cast to rtx_code_label * when we know
4666 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4667 rtx to rtx_insn *.
4668 (delete_insn_chain): Strengthen locals "prev" and "current" from
4669 rtx to rtx_insn *. Add a checked cast when assigning from
4670 "finish" (strengthening the params will come later). Add a
4671 checked cast to rtx_note * in region where we know
4672 NOTE_P (current).
4673 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4674 rtx_insn *.
4675 (compute_bb_for_insn): Likewise.
4676 (free_bb_for_insn): Likewise for local "insn".
4677 (compute_bb_for_insn): Likewise.
4678 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4679 local "insn" from rtx to rtx_insn *
4680 (flow_active_insn_p): Require a const rtx_insn * rather than a
4681 const_rtx.
4682 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4683 rtx_insn *.
4684 (can_fallthru): Likewise for locals "insn" and "insn2".
4685 (bb_note): Likewise for local "note".
4686 (first_insn_after_basic_block_note): Likewise for local "note" and
4687 for return type.
4688 (rtl_split_block): Likewise for locals "insn" and "next".
4689 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4690 "end".
4691 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4692 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4693 "prev", "tmp".
4694 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4695 them), "kill_from", "barrier", "new_insn".
4696 (patch_jump_insn): Likewise for params "insn", "old_label".
4697 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4698 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4699 "old_label", "new_label".
4700 (rtl_tidy_fallthru_edge): Likewise for local "q".
4701 (rtl_split_edge): Likewise for locals "before", "last".
4702 (commit_one_edge_insertion): Likewise for locals "before",
4703 "after", "insns", "tmp", "last", adding a checked cast where
4704 currently necessary.
4705 (commit_edge_insertions): Likewise.
4706 (rtl_dump_bb): Likewise for locals "insn", "last".
4707 (print_rtl_with_bb): Likewise for local "x".
4708 (rtl_verify_bb_insns): Likewise for local "x".
4709 (rtl_verify_bb_pointers): Likewise for local "insn".
4710 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4711 "head", "end".
4712 (rtl_verify_fallthru): Likewise for local "insn".
4713 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4714 (purge_dead_edges): Likewise for local "insn".
4715 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4716 (skip_insns_after_block): Likewise for return type and for locals
4717 "insn", "last_insn", "next_head", "prev".
4718 (record_effective_endpoints): Likewise for locals "next_insn",
4719 "insn", "end".
4720 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4721 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4722 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4723 (duplicate_insn_chain): For now, add checked cast from rtx to
4724 rtx_insn * when returning insn.
4725 (cfg_layout_duplicate_bb): Likewise for local "insn".
4726 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4727 "prev", "remaints".
4728 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4729 (rtl_block_empty_p): Likewise.
4730 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4731 "split_point", "last".
4732 (rtl_block_ends_with_call_p): Likewise for local "insn".
4733 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4734 const rtx_insn *.
4735 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4736 "split_at_insn" from rtx to rtx_insn *.
4737 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4738 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4739 to const rtx_insn *.
4740 (rtl_account_profile_record): Likewise.
4741
4742 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4743
4744 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4745 rtx to rtx_insn *.
4746 (average_num_loop_insns): Likewise.
4747 (init_set_costs): Likewise for local "seq".
4748 (seq_cost): Likewise for param "seq", from const_rtx to const
4749 rtx_insn *.
4750
4751 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4752
4753 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4754 rtx to rtx_insn *.
4755
4756 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4757
4758 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4759 "f1" and "f2" from rtx * to rtx_insn **.
4760 (flow_find_head_matching_sequence): Likewise.
4761
4762 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4763 "cbranch_insn" from rtx to rtx_insn *.
4764 (thread_jump): Likewise for local "insn".
4765 (try_forward_edges): Likewise for local "last".
4766 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4767 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4768 "real_b_end".
4769 (can_replace_by): Likewise for params "i1", "i2".
4770 (old_insns_match_p): Likewise.
4771 (merge_notes): Likewise.
4772 (walk_to_nondebug_insn): Likewise for param "i1".
4773 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4774 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4775 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4776 (flow_find_head_matching_sequence): Strengthen params "f1" and
4777 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4778 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4779 rtx_insn *.
4780 (outgoing_edges_match): Likewise for locals "last1", "last2".
4781 (try_crossjump_to_edge): Likewise for local "insn".
4782 Replace call to for_each_rtx with for_each_rtx_in_insn.
4783
4784 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4785 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4786 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4787 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4788 (try_optimize_cfg): Strengthen local "last" from rtx to
4789 rtx_insn *.
4790 (delete_dead_jumptables): Likewise for locals "insn", "next",
4791 "label".
4792
4793 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4794 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4795 "rtx else_first_tail", to reflect the basic-block.h changes above.
4796
4797 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4798
4799 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4800 rtx_insn *.
4801 (purge_dead_tablejump_edges): Likewise.
4802 (find_bb_boundaries): Likewise for locals "insn", "end",
4803 "flow_transfer_insn".
4804
4805 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4806
4807 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4808 "ins" and "prev" from rtx to rtx_insn *.
4809
4810 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4811
4812 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4813 rtx_insn *.
4814 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4815 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4816 "scan_start".
4817 (load_register_parameters): Likewise for local "before_arg".
4818 (check_sibcall_argument_overlap): Likewise for param "insn".
4819 (expand_call): Likewise for locals "normal_call_insns",
4820 "tail_call_insns", "insns", "before_call", "after_args",
4821 "before_arg", "last", "prev". Strengthen one of the "last" from
4822 rtx to rtx_call_insn *.
4823 (fixup_tail_calls): Strengthen local "insn" from rtx to
4824 rtx_insn *.
4825 (emit_library_call_value_1): Likewise for locals "before_call" and
4826 "last".
4827
4828 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4829
4830 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4831 and "last" from rtx to rtx_insn *.
4832 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4833 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4834 rtx_call_insn *.
4835 (expand_errno_check): Strengthen local "lab" from rtx to
4836 rtx_code_label *.
4837 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4838 rtx_insn *.
4839 (expand_builtin_mathfn_2): Likewise.
4840 (expand_builtin_mathfn_ternary): Likewise.
4841 (expand_builtin_mathfn_3): Likewise.
4842 (expand_builtin_interclass_mathfn): Likewise for local "last".
4843 (expand_builtin_int_roundingfn): Likewise for local "insns".
4844 (expand_builtin_int_roundingfn_2): Likewise.
4845 (expand_builtin_strlen): Likewise for local "before_strlen".
4846 (expand_builtin_strncmp): Likewise for local "seq".
4847 (expand_builtin_signbit): Likewise for local "last".
4848 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4849 from rtx to rtx_code_label *.
4850 (expand_stack_restore): Strengthen local "prev" from rtx to
4851 rtx_insn *.
4852
4853 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4854
4855 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4856 to rtx_insn *.
4857 (struct btr_def_s): Likewise.
4858 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4859 const rtx_insn *.
4860 (add_btr_def): Likewise.
4861 (new_btr_user): Likewise.
4862 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4863 rtx to rtx_insn *.
4864 (link_btr_uses): Likewise.
4865 (move_btr_def): Likewise for locals "insp", "old_insn",
4866 "new_insn". Add checked cast to rtx_insn * for now on result of
4867 gen_move_insn.
4868 (can_move_up): Strengthen param "insn" from const_rtx to
4869 const rtx_insn *.
4870
4871 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4872
4873 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4874 rtx_insn *.
4875 (get_uncond_jump_length): Likewise for locals "label", "jump".
4876 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4877 "jump", "insn".
4878 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4879 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4880 (find_jump_block): Likewise for local "insn".
4881 (fix_crossing_conditional_branches): Likewise for locals
4882 "old_jump", "new_jump".
4883 (fix_crossing_unconditional_branches): Likewise for locals
4884 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4885 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4886
4887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4888
4889 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4890 rtx to rtx_insn *.
4891 (struct mem_insn): Likewise for field "insn".
4892 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4893 (reg_next_inc_use): Likewise.
4894 (reg_next_def): Likewise.
4895 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4896 from rtx to rtx_insn *.
4897 (move_insn_before): Likewise for param "next_insn" and local "insns".
4898 (attempt_change): Likewise for local "mov_insn".
4899 (try_merge): Likewise for param "last_insn".
4900 (get_next_ref): Likewise for return type and local "insn".
4901 Strengthen param "next_array" from rtx * to rtx_insn **.
4902 (parse_add_or_inc): Strengthen param "insn" from rtx to
4903 rtx_insn *.
4904 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4905 the latter).
4906 (merge_in_block): Likewise for locals "insn", "curr",
4907 "other_insn".
4908 (pass_inc_dec::execute): Update allocations of the arrays to
4909 reflect the stronger types.
4910
4911 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4912
4913 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4914 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4915 from rtx to rtx_code_label *.
4916
4917 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4918
4919 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4920 to rtx_insn *.
4921
4922 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4923
4924 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4925 generated a warning and prevented bootstrapping the compiler.
4926
4927 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4928
4929 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4930 rtx_insn *.
4931
4932 * jump.c (delete_related_insns): Likewise, also for locals "next"
4933 and "prev".
4934
4935 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4936
4937 * genautomata.c (output_internal_insn_latency_func): When writing
4938 the function "internal_insn_latency" to insn-automata.c,
4939 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4940 allowing the optional guard function of (define_bypass) clauses to
4941 expect a pair of rtx_insn *, rather than a pair of rtx.
4942 (output_insn_latency_func): When writing the function
4943 "insn_latency", add an "uncast_" prefix to params "insn" and
4944 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4945 using checked casts from the params, thus enabling the above
4946 change to the generated "internal_insn_latency" function.
4947
4948 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4949
4950 PR tree-optimization/62091
4951 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4952 handle correctly arrays.
4953 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4954 inheritance binfos.
4955 (record_known_type): Walk into inner type.
4956 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4957 condition on no type changes.
4958
4959 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4960
4961 * genattrtab.c (write_attr_get): Within the generated get_attr_
4962 functions, rename param "insn" to "uncast_insn" and reintroduce
4963 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4964 is an rtx_insn * within insn-attrtab.c
4965
4966 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4967
4968 * output.h (peephole): Strengthen return type from rtx to
4969 rtx_insn *.
4970 * rtl.h (delete_for_peephole): Likewise for both params.
4971 * genpeep.c (main): In generated "peephole" function, strengthen
4972 return type and local "insn" from rtx to rtx_insn *. For now,
4973 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4974 rtx_insn *, with a checked cast.
4975 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4976 locals "insn", "next", "prev" from rtx to rtx_insn *.
4977
4978 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4979
4980 PR tree-optimization/62112
4981 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4982 * gimple-iterator.h (gsi_replace): Return bool.
4983 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4984 moved from ref_may_alias_global_p.
4985 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4986 New overloads.
4987 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4988 (stmt_kills_ref_p_1): Rename...
4989 (stmt_kills_ref_p): ... to this.
4990 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4991 stmt_kills_ref_p): Declare.
4992 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4993 Move the self-assignment case...
4994 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4995
4996 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4997
4998 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4999
5000 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5001 "after". For now, don't strengthen param "trial", which requires
5002 adding checked casts when returning it.
5003
5004 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5005
5006 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5007 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5008 "var_location" hook from rtx to rtx_insn *.
5009 (debug_nothing_rtx): Delete in favor of...
5010 (debug_nothing_rtx_code_label): New prototype.
5011 (debug_nothing_rtx_rtx): Delete unused prototype.
5012 (debug_nothing_rtx_insn): New prototype.
5013
5014 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5015 invoking debug_hooks->var_location (in two places, one in a NOTE
5016 case of a switch statement, the other guarded by a CALL_P
5017 conditional. Add checked cast to rtx_code_label * when invoking
5018 debug_hooks->label (within CODE_LABEL case of switch statement).
5019
5020 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5021 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5022 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5023 (xcoff_debug_hooks): Likewise.
5024 * debug.c (do_nothing_debug_hooks): Likewise.
5025 (debug_nothing_rtx): Delete in favor of...
5026 (debug_nothing_rtx_insn): New function.
5027 (debug_nothing_rtx_rtx): Delete unused function.
5028 (debug_nothing_rtx_code_label): New function.
5029 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5030 debug_nothing_rtx to debug_nothing_rtx_code_label.
5031 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5032 to rtx_insn *.
5033 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5034 debug_nothing_rtx to debug_nothing_rtx_insn.
5035 (sdbout_label): Strengthen param "insn" from rtx to
5036 rtx_code_label *.
5037 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5038 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5039 "var_location" hook from debug_nothing_rtx to
5040 debug_nothing_rtx_insn.
5041
5042 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5043
5044 * recog.h (insn_output_fn): Update this function typedef to match
5045 the changes below to the generated output functions, strengthening
5046 the 2nd param from rtx to rtx_insn *.
5047
5048 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5049 insn when invoking an output function, to match the new signature
5050 of insn_output_fn with a stronger second param.
5051
5052 * genconditions.c (write_header): In the generated code for
5053 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5054 to match the other changes in this patch.
5055
5056 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5057 the generated "gen_" functions from rtx to rtx_insn * within their
5058 implementations.
5059
5060 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5061 the subfunctions within the generated "recog_", "split", "peephole2"
5062 function trees from rtx to rtx_insn *. For now, the top-level
5063 generated functions ("recog", "split", "peephole2") continue to
5064 take a plain rtx for "insn", to avoid introducing dependencies on
5065 other patches. Rename this 2nd param from "insn" to
5066 "uncast_insn", and reintroduce "insn" as a local variable of type
5067 rtx_insn *, initialized at the top of the generated function with
5068 a checked cast on "uncast_insn".
5069 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5070 the generated "gen_" functions from rtx to rtx_insn * within their
5071 prototypes.
5072
5073 * genoutput.c (process_template): Strengthen the 2nd param within
5074 the generated "output_" functions "insn" from rtx to rtx_insn *.
5075
5076 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5077
5078 * tree-profile.c (tree_profiling): Skip external functions
5079 when doing coverage instrumentation.
5080 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5081
5082 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5083
5084 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5085 (vec_mergee): Likewise.
5086 (vec_mergeo): Likewise.
5087 (vec_cntlz): Likewise.
5088 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5089 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5090 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5091 VMRGEW, and VMRGOW.
5092 * doc/extend.texi: Document various forms of vec_cpsgn,
5093 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5094 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5095 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5096 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5097 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5098
5099 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5100
5101 * config/rs6000/rs6000.c (context.h): New include.
5102 (tree-pass.h): Likewise.
5103 (make_pass_analyze_swaps): New decl.
5104 (rs6000_option_override): Register pass_analyze_swaps.
5105 (swap_web_entry): New subsclass of web_entry_base (df.h).
5106 (special_handling_values): New enum.
5107 (union_defs): New function.
5108 (union_uses): Likewise.
5109 (insn_is_load_p): Likewise.
5110 (insn_is_store_p): Likewise.
5111 (insn_is_swap_p): Likewise.
5112 (rtx_is_swappable_p): Likewise.
5113 (insn_is_swappable_p): Likewise.
5114 (chain_purpose): New enum.
5115 (chain_contains_only_swaps): New function.
5116 (mark_swaps_for_removal): Likewise.
5117 (swap_const_vector_halves): Likewise.
5118 (adjust_subreg_index): Likewise.
5119 (permute_load): Likewise.
5120 (permute_store): Likewise.
5121 (handle_special_swappables): Likewise.
5122 (replace_swap_with_copy): Likewise.
5123 (dump_swap_insn_table): Likewise.
5124 (rs6000_analyze_swaps): Likewise.
5125 (pass_data_analyze_swaps): New pass_data.
5126 (pass_analyze_swaps): New rtl_opt_pass.
5127 (make_pass_analyze_swaps): New function.
5128 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5129
5130 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5131
5132 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5133 type from rtx to rtx_insn *.
5134 (create_copy_of_insn_rtx): Likewise.
5135 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5136 (create_copy_of_insn_rtx): Likewise, also for local "res".
5137
5138 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5139
5140 * rtl.h (find_first_parameter_load): Strengthen return type from
5141 rtx to rtx_insn *.
5142 * rtlanal.c (find_first_parameter_load): Strengthen return type
5143 from rtx to rtx_insn *. Add checked cast for now, to postpone
5144 strengthening the params.
5145
5146 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5147
5148 PR fortran/44054
5149 * diagnostic.c: Set default caret.
5150 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5151 line is needed.
5152 * diagnostic.h (struct diagnostic_context):
5153
5154 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5155
5156 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5157 (sel_bb_head): Strengthen return type insn_t (currently just an
5158 rtx) to rtx_insn *.
5159 (sel_bb_end): Likewise.
5160
5161 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5162 (sel_bb_head): Strengthen return type and local "head" from
5163 insn_t (currently just an rtx) to rtx_insn *.
5164 (sel_bb_end): Likewise for return type.
5165 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5166 working with insn.
5167
5168 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5169
5170 * basic-block.h (get_last_bb_insn): Strengthen return type from
5171 rtx to rtx_insn *.
5172 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5173 end".
5174
5175 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5176
5177 PR fortran/44054
5178 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5179 to here ...
5180 (diagnostic_report_diagnostic): ... from here.
5181 * toplev.c (general_init): Move code to c-family.
5182
5183 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5184
5185 * df.h (web_entry_base): Replace existing struct web_entry with a
5186 new class web_entry_base with only the predecessor member.
5187 (unionfind_root): Remove declaration and move to class member.
5188 (unionfind_union): Remove declaration and move to friend
5189 function.
5190 (union_defs): Remove declaration.
5191 * web.c (web_entry_base::unionfind_root): Modify to be member
5192 function and adjust accessors.
5193 (unionfind_union): Modify to be friend function and adjust
5194 accessors.
5195 (web_entry): New subclass of web_entry_base containing the reg
5196 member.
5197 (union_match_dups): Modify for struct -> class changes.
5198 (union_defs): Likewise.
5199 (entry_register): Likewise.
5200 (pass_web::execute): Likewise.
5201
5202 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5203
5204 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5205 builtin define __VEC_ELEMENT_REG_ORDER__.
5206
5207 2014-08-20 Martin Jambor <mjambor@suse.cz>
5208 Wei Mi <wmi@google.com>
5209
5210 PR ipa/60449
5211 PR middle-end/61776
5212 * tree-ssa-operands.c (update_stmt_operands): Remove
5213 MODIFIED_NORETURN_CALLS.
5214 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5215 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5216 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5217 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5218 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5219 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5220 (gimple_call_set_ctrl_altering): New func.
5221 (gimple_call_ctrl_altering_p): Ditto.
5222 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5223 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5224 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5225 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5226 remove MODIFIED_NORETURN_CALLS.
5227
5228 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5229
5230 * coverage.c (coverage_compute_profile_id): Return non-0;
5231 also handle symbols with unique name.
5232 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5233
5234 2014-08-20 Steve Ellcey <sellcey@mips.com>
5235
5236 PR middle-end/49191
5237 * doc/sourcebuild.texi (non_strict_align): New.
5238
5239 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5240
5241 * cgraphunit.c (ipa_passes, compile): Reshedule
5242 symtab_remove_unreachable_nodes passes; update comments.
5243 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5244 TODO_remove_functions before the pass; the functions ought to be
5245 already removed.
5246 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5247 TODO_remove_functions.
5248 * passes.c (pass_data_early_local_passes): Do not schedule function
5249 removal.
5250 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5251
5252 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5253
5254 PR c/59304
5255 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5256 before setting the option.
5257 * diagnostic.c (diagnostic_classify_diagnostic): Record
5258 command-line status.
5259
5260 2014-08-20 Richard Biener <rguenther@suse.de>
5261
5262 PR lto/62190
5263 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5264 to build uint{16,32,64}_type_node.
5265
5266 2014-08-20 Terry Guo <terry.guo@arm.com>
5267
5268 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5269 with immediate_operand.
5270
5271 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5272
5273 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5274 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5275 NULL.
5276
5277 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5278
5279 PR preprocessor/51303
5280 * incpath.c (remove_duplicates): Use cpp_warning.
5281
5282 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5283
5284 PR c/60975
5285 PR c/53063
5286 * doc/options.texi (CPP): Document it.
5287 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5288 * optc-gen.awk: Handle CPP.
5289 * opth-gen.awk: Likewise.
5290
5291 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5292
5293 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5294 rtx_insn *.
5295 (duplicate_insn_chain): Likewise.
5296 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5297 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5298 checked cast for now (until we can strengthen the params in the
5299 same way).
5300 (duplicate_insn_chain): Likewise.
5301
5302 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5303
5304 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5305 rtx_insn *.
5306 (prev_cc0_setter): Likewise.
5307
5308 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5309 rtx_insn *, adding checked casts for now as necessary.
5310 (prev_cc0_setter): Likewise.
5311
5312 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5313
5314 * expr.h (emit_move_insn): Strengthen return type from rtx to
5315 rtx_insn *.
5316 (emit_move_insn_1): Likewise.
5317 (emit_move_complex_push): Likewise.
5318 (emit_move_complex_parts): Likewise.
5319
5320 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5321 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5322 with insns.
5323 (emit_move_complex_push): Strengthen return type from rtx to
5324 rtx_insn *.
5325 (emit_move_complex): Likewise, also for local "ret".
5326 (emit_move_ccmode): Likewise.
5327 (emit_move_multi_word): Likewise for return type and locals
5328 "last_insn", "seq".
5329 (emit_move_insn_1): Likewise for return type and locals "result",
5330 "ret".
5331 (emit_move_insn): Likewise for return type and local "last_insn".
5332 (compress_float_constant): Likewise.
5333
5334 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5335
5336 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5337 from rtx to rtx_insn *.
5338
5339 * rtl.h (emit_insn_before): Likewise.
5340 (emit_insn_before_noloc): Likewise.
5341 (emit_insn_before_setloc): Likewise.
5342 (emit_jump_insn_before): Likewise.
5343 (emit_jump_insn_before_noloc): Likewise.
5344 (emit_jump_insn_before_setloc): Likewise.
5345 (emit_call_insn_before): Likewise.
5346 (emit_call_insn_before_noloc): Likewise.
5347 (emit_call_insn_before_setloc): Likewise.
5348 (emit_debug_insn_before): Likewise.
5349 (emit_debug_insn_before_noloc): Likewise.
5350 (emit_debug_insn_before_setloc): Likewise.
5351 (emit_label_before): Likewise.
5352 (emit_insn_after): Likewise.
5353 (emit_insn_after_noloc): Likewise.
5354 (emit_insn_after_setloc): Likewise.
5355 (emit_jump_insn_after): Likewise.
5356 (emit_jump_insn_after_noloc): Likewise.
5357 (emit_jump_insn_after_setloc): Likewise.
5358 (emit_call_insn_after): Likewise.
5359 (emit_call_insn_after_noloc): Likewise.
5360 (emit_call_insn_after_setloc): Likewise.
5361 (emit_debug_insn_after): Likewise.
5362 (emit_debug_insn_after_noloc): Likewise.
5363 (emit_debug_insn_after_setloc): Likewise.
5364 (emit_label_after): Likewise.
5365 (emit_insn): Likewise.
5366 (emit_debug_insn): Likewise.
5367 (emit_jump_insn): Likewise.
5368 (emit_call_insn): Likewise.
5369 (emit_label): Likewise.
5370 (gen_clobber): Likewise.
5371 (emit_clobber): Likewise.
5372 (gen_use): Likewise.
5373 (emit_use): Likewise.
5374 (emit): Likewise.
5375
5376 (emit_barrier_before): Strengthen return type from rtx to
5377 rtx_barrier *.
5378 (emit_barrier_after): Likewise.
5379 (emit_barrier): Likewise.
5380
5381 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5382 from rtx to rtx_insn *. Add checked casts for now when converting
5383 "last" from rtx to rtx_insn *.
5384 (emit_insn_before_noloc): Likewise for return type.
5385 (emit_jump_insn_before_noloc): Likewise.
5386 (emit_call_insn_before_noloc): Likewise.
5387 (emit_debug_insn_before_noloc): Likewise.
5388 (emit_barrier_before): Strengthen return type and local "insn"
5389 from rtx to rtx_barrier *.
5390 (emit_label_before): Strengthen return type from rtx to
5391 rtx_insn *. Add checked cast for now when returning param
5392 (emit_pattern_after_noloc): Strengthen return type from rtx to
5393 rtx_insn *. Add checked casts for now when converting "last" from
5394 rtx to rtx_insn *.
5395 (emit_insn_after_noloc): Strengthen return type from rtx to
5396 rtx_insn *.
5397 (emit_jump_insn_after_noloc): Likewise.
5398 (emit_call_insn_after_noloc): Likewise.
5399 (emit_debug_insn_after_noloc): Likewise.
5400 (emit_barrier_after): Strengthen return type from rtx to
5401 rtx_barrier *.
5402 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5403 Add checked cast for now when converting "label" from rtx to
5404 rtx_insn *.
5405 (emit_pattern_after_setloc): Strengthen return type from rtx to
5406 rtx_insn *. Add checked casts for now when converting "last" from
5407 rtx to rtx_insn *.
5408 (emit_pattern_after): Strengthen return type from rtx to
5409 rtx_insn *.
5410 (emit_insn_after_setloc): Likewise.
5411 (emit_insn_after): Likewise.
5412 (emit_jump_insn_after_setloc): Likewise.
5413 (emit_jump_insn_after): Likewise.
5414 (emit_call_insn_after_setloc): Likewise.
5415 (emit_call_insn_after): Likewise.
5416 (emit_debug_insn_after_setloc): Likewise.
5417 (emit_debug_insn_after): Likewise.
5418 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5419 when converting "last" from rtx to rtx_insn *.
5420 (emit_pattern_before): Strengthen return type from rtx to
5421 rtx_insn *.
5422 (emit_insn_before_setloc): Likewise.
5423 (emit_insn_before): Likewise.
5424 (emit_jump_insn_before_setloc): Likewise.
5425 (emit_jump_insn_before): Likewise.
5426 (emit_call_insn_before_setloc): Likewise.
5427 (emit_call_insn_before): Likewise.
5428 (emit_debug_insn_before_setloc): Likewise.
5429 (emit_debug_insn_before): Likewise.
5430 (emit_insn): Strengthen return type and locals "last", "insn",
5431 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5432 within cases where we know we have an insn.
5433 (emit_debug_insn): Likewise.
5434 (emit_jump_insn): Likewise.
5435 (emit_call_insn): Strengthen return type and local "insn" from rtx
5436 to rtx_insn *.
5437 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5438 a checked cast to rtx_insn * for now on "label".
5439 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5440 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5441 (emit_use): Likewise.
5442 (gen_use): Likewise, also for local "seq".
5443 (emit): Likewise for return type and local "insn".
5444 (rtx_insn): Likewise for return type and local "new_rtx".
5445
5446 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5447 from rtx to rtx_barrier *.
5448
5449 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5450 changed return type from rtx to rtx_insn *, we must update
5451 "emit_fn" type, and this in turn means updating...
5452 (frame_insn): ...this. Strengthen return type from rtx to
5453 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5454
5455 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5456
5457 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5458 rtx to rtx_jump_table_data *. Also for local.
5459 * rtl.h (emit_jump_table_data): Likewise.
5460
5461 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5462
5463 * basic-block.h (create_basic_block_structure): Strengthen third
5464 param "bb_note" from rtx to rtx_note *.
5465 * rtl.h (emit_note_before): Strengthen return type from rtx to
5466 rtx_note *.
5467 (emit_note_after): Likewise.
5468 (emit_note): Likewise.
5469 (emit_note_copy): Likewise. Also, strengthen param similarly.
5470 * function.h (struct rtl_data): Strengthen field
5471 "x_stack_check_probe_note" from rtx to rtx_note *.
5472
5473 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5474 from rtx to rtx_note *.
5475 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5476 "bb_note" from rtx to rtx_note *.
5477 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5478 when calling emit_note_copy.
5479 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5480 rtx_note *.
5481 (emit_note_after): Likewise.
5482 (emit_note_before): Likewise.
5483 (emit_note_copy): Likewise. Also, strengthen param similarly.
5484 (emit_note): Likewise.
5485 * except.c (emit_note_eh_region_end): Likewise for return type.
5486 Strengthen local "next" from rtx to rtx_insn *.
5487 (convert_to_eh_region_ranges): Strengthen local "note"
5488 from rtx to rtx_note *.
5489 * final.c (change_scope): Likewise.
5490 (reemit_insn_block_notes): Likewise, for both locals named "note".
5491 Also, strengthen local "insn" from rtx to rtx_insn *.
5492 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5493 rtx to rtx_note *.
5494 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5495 strengthen local "seq" from rtx to rtx_insn *.
5496 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5497 to rtx_note *.
5498 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5499 vec<rtx_note *>.
5500 (get_bb_note_from_pool): Strengthen return type from rtx to
5501 rtx_note *.
5502 (sel_create_basic_block): Strengthen local "new_bb_note" from
5503 insn_t to rtx_note *.
5504 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5505 "note" from rtx to rtx_note *.
5506 (emit_notes_in_bb): Likewise.
5507
5508 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5509
5510 * function.h (struct rtl_data): Strengthen field
5511 "x_parm_birth_insn" from rtx to rtx_insn *.
5512 * function.c (struct assign_parm_data_all): Strengthen fields
5513 "first_conversion_insn" and "last_conversion_insn" from rtx to
5514 rtx_insn *.
5515
5516 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5517
5518 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5519 to rtx_insn *; also for local "var_end_seq".
5520 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5521 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5522 "insn".
5523 (expand_gimple_cond): Likewise for locals "last2" and "last".
5524 (mark_transaction_restart_calls): Likewise for local "insn".
5525 (expand_gimple_stmt): Likewise for return type and locals "last"
5526 and "insn".
5527 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5528 (avoid_complex_debug_insns): Likewise for param "insn".
5529 (expand_debug_locations): Likewise for locals "insn", "last",
5530 "prev_insn" and "insn2".
5531 (expand_gimple_basic_block): Likewise for local "last".
5532 (construct_exit_block): Likewise for locals "head", "end",
5533 "orig_end".
5534 (pass_expand::execute): Likewise for locals "var_seq",
5535 "var_ret_seq", "next".
5536
5537 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5538
5539 * asan.h (asan_emit_stack_protection): Strengthen return type from
5540 rtx to rtx_insn *.
5541 * asan.c (asan_emit_stack_protection): Likewise. Add local
5542 "insns" to hold the return value.
5543
5544 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5545
5546 * basic-block.h (bb_note): Strengthen return type from rtx to
5547 rtx_note *.
5548 * sched-int.h (bb_note): Likewise.
5549 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5550
5551 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5552
5553 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5554 rtx_insn *.
5555
5556 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5557 "insn" from rtx to rtx_insn *.
5558 (make_debug_insn_raw): Strengthen return type from rtx to
5559 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5560 (make_jump_insn_raw): Strengthen return type from rtx to
5561 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5562 (make_call_insn_raw): Strengthen return type from rtx to
5563 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5564 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5565 callback from rtx to rtx_insn *; likewise for local "insn" and
5566 "next", adding a checked cast to rtx_insn in the relevant cases of
5567 the switch statement.
5568 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5569 callback from rtx to rtx_insn *.
5570 (emit_pattern_after_setloc): Likewise.
5571 (emit_pattern_after): Likewise.
5572 (emit_pattern_before_setloc): Likewise.
5573 (emit_pattern_before): Likewise.
5574
5575 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5576
5577 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5578 rtx_call_insn *.
5579 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5580 accepting an rtx_insn *.
5581 (last_call_insn): Strengthen return type from rtx to
5582 rtx_call_insn *.
5583
5584 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5585
5586 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5587 "insns" from rtx to rtx_insn *.
5588 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5589 locals "insn" and "prev".
5590
5591 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5592
5593 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5594 rtx_jump_table_data **.
5595
5596 * cfgbuild.c (make_edges): Introduce local "table", using it in
5597 place of "tmp" for jump table data.
5598 (find_bb_boundaries): Strengthen local "table" from rtx to
5599 rtx_jump_table_data *.
5600 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5601 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5602 (try_crossjump_to_edge): Likewise.
5603 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5604 "table".
5605 (patch_jump_insn): Introduce local "table", using it in place of
5606 "tmp" for jump table data.
5607 (force_nonfallthru_and_redirect): Introduce local "table", so that
5608 call to tablejump_p can receive an rtx_jump_table_data **. Update
5609 logic around the call to overwrite "note" appropriately if
5610 tablejump_p returns non-zero.
5611 (get_last_bb_insn): Introduce local "table", using it in place of
5612 "tmp" for jump table data.
5613 * dwarf2cfi.c (create_trace_edges): Likewise.
5614
5615 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5616 from rtx to rtx_jump_table_data *.
5617 (create_fix_barrier): Strengthen local "tmp" from rtx to
5618 rtx_jump_table_data *.
5619 (arm_reorg): Likewise for local "table".
5620
5621 * config/s390/s390.c (s390_chunkify_start): Likewise.
5622
5623 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5624
5625 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5626 rtx to rtx_jump_table_data *.
5627
5628 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5629 rtx_jump_table_data **. Add a checked cast when writing through
5630 the pointer: we know there that local "table" is non-NULL and that
5631 JUMP_TABLE_DATA_P (table) holds.
5632 (label_is_jump_target_p): Introduce local "table", using it in
5633 place of "tmp" for jump table data.
5634
5635 2014-08-19 Marek Polacek <polacek@redhat.com>
5636
5637 PR c++/62153
5638 * doc/invoke.texi: Document -Wbool-compare.
5639
5640 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5641
5642 * rtl.h (entry_of_function): Strengthen return type from rtx to
5643 rtx_insn *.
5644 * cfgrtl.c (entry_of_function): Likewise.
5645
5646 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5647
5648 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5649 rtx_insn *, adding a checked cast for now.
5650 (get_last_insn): Likewise.
5651
5652 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5653
5654 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5655 rtx_code_label *.
5656
5657 * emit-rtl.c (gen_label_rtx): Likewise.
5658
5659 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5660
5661 * rtl.h (previous_insn): Strengthen return type from rtx to
5662 rtx_insn *.
5663 (next_insn): Likewise.
5664 (prev_nonnote_insn): Likewise.
5665 (prev_nonnote_insn_bb): Likewise.
5666 (next_nonnote_insn): Likewise.
5667 (next_nonnote_insn_bb): Likewise.
5668 (prev_nondebug_insn): Likewise.
5669 (next_nondebug_insn): Likewise.
5670 (prev_nonnote_nondebug_insn): Likewise.
5671 (next_nonnote_nondebug_insn): Likewise.
5672 (prev_real_insn): Likewise.
5673 (next_real_insn): Likewise.
5674 (prev_active_insn): Likewise.
5675 (next_active_insn): Likewise.
5676
5677 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5678 rtx_insn *, adding a checked cast.
5679 (previous_insn): Likewise.
5680 (next_nonnote_insn): Likewise.
5681 (next_nonnote_insn_bb): Likewise.
5682 (prev_nonnote_insn): Likewise.
5683 (prev_nonnote_insn_bb): Likewise.
5684 (next_nondebug_insn): Likewise.
5685 (prev_nondebug_insn): Likewise.
5686 (next_nonnote_nondebug_insn): Likewise.
5687 (prev_nonnote_nondebug_insn): Likewise.
5688 (next_real_insn): Likewise.
5689 (prev_real_insn): Likewise.
5690 (next_active_insn): Likewise.
5691 (prev_active_insn): Likewise.
5692
5693 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5694 param "stepfunc" so that it returns an rtx_insn * rather than an
5695 rtx, to track the change to prev_nonnote_insn_bb, which is the
5696 only function this is called with.
5697 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5698
5699 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5700
5701 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5702 assert.
5703
5704 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5705
5706 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5707 (class rtx_nonjump_insn): Likewise.
5708 (class rtx_jump_insn): Likewise.
5709 (class rtx_call_insn): Likewise.
5710 (class rtx_jump_table_data): Likewise.
5711 (class rtx_barrier): Likewise.
5712 (class rtx_code_label): Likewise.
5713 (class rtx_note): Likewise.
5714
5715 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5716 adding the invariant DEBUG_INSN_P (X).
5717 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5718 the invariant NONJUMP_INSN_P (X).
5719 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5720 the invariant JUMP_P (X).
5721 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5722 the invariant CALL_P (X).
5723 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5724 invariant JUMP_TABLE_DATA_P (X).
5725 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5726 invariant BARRIER_P (X).
5727 (class rtx_code_label): New, a subclass of rtx_insn, adding
5728 the invariant LABEL_P (X).
5729 (class rtx_note): New, a subclass of rtx_insn, adding
5730 the invariant NOTE_P(X).
5731 (is_a_helper <rtx_debug_insn *>::test): New.
5732 (is_a_helper <rtx_nonjump_insn *>::test): New.
5733 (is_a_helper <rtx_jump_insn *>::test): New.
5734 (is_a_helper <rtx_call_insn *>::test): New.
5735 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5736 overloaded for both rtx and rtx_insn *.
5737 (is_a_helper <rtx_barrier *>::test): New.
5738 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5739 for both rtx and rtx_insn *.
5740 (is_a_helper <rtx_note *>::test): New.
5741
5742 2014-08-19 Marek Polacek <polacek@redhat.com>
5743
5744 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5745 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5746 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5747 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5748
5749 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5750
5751 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5752 rtx_insn *. To help with transition, for now, convert from an
5753 access macro into a pair of functions: BND_TO, returning an
5754 rtx_insn *, and...
5755 (SET_BND_TO): New function, for use where BND_TO is used as an
5756 lvalue.
5757
5758 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5759 SET_BND_TO.
5760 (BND_TO): New function, adding a checked cast.
5761 (SET_BND_TO): New function.
5762
5763 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5764 SET_BND_TO.
5765 (compute_av_set_on_boundaries): Likewise.
5766
5767 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5768
5769 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5770 destination if it is used in source.
5771 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5772 (*popcount<mode>2_falsedep_1): Likewise.
5773
5774 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5775
5776 PR other/62168
5777 * configure.ac: Set install_gold_as_default to no first.
5778 * configure: Regenerated.
5779
5780 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5781
5782 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5783 "note_list" field will eventually be an rtx_insn *. To help with
5784 transition, for now, convert from an access macro into a pair of
5785 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5786 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5787 used as an lvalue.
5788
5789 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5790 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5791
5792 * sel-sched-ir.c (init_bb): Likewise.
5793 (sel_restore_notes): Likewise.
5794 (move_bb_info): Likewise.
5795 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5796 (SET_BB_NOTE_LIST): New function.
5797
5798 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5799
5800 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5801 field will eventually be an rtx_insn *. To help with transition,
5802 for now, convert from an access macro into a pair of functions:
5803 VINSN_INSN_RTX, returning an rtx_insn *, and...
5804 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5805 is used as an lvalue.
5806
5807 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5808 SET_VINSN_INSN_RTX where it's used as an lvalue.
5809 (VINSN_INSN_RTX): New function.
5810 (SET_VINSN_INSN_RTX): New function.
5811
5812 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5813
5814 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5815 eventually be rtx_insn *, but to help with transition, for now,
5816 convert from an access macro into a pair of functions: DEP_PRO
5817 returning an rtx_insn * and...
5818 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5819 lvalue, returning an rtx&.
5820 (DEP_CON): Analogous changes to DEP_PRO above.
5821 (SET_DEP_CON): Likewise.
5822
5823 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5824 an lvalue to SET_DEP_CON.
5825 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5826 (sd_copy_back_deps): Likewise for DEP_CON.
5827 (DEP_PRO): New function, adding a checked cast for now.
5828 (DEP_CON): Likewise.
5829 (SET_DEP_PRO): New function.
5830 (SET_DEP_CON): Likewise.
5831
5832 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5833
5834 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5835 (extra_options): Add i386/cygwin.opt.
5836 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5837 (CPP_SPEC): Accept -pthread.
5838 (LINK_SPEC): Ditto.
5839 (GOMP_SELF_SPECS): Update comment.
5840 * config/i386/cygwin.opt: New file for -pthread flag.
5841
5842 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5843
5844 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5845 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5846 that we can return an rtx_insn *.
5847
5848 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5849
5850 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5851 when building executables, not DLLs. Add --large-address-aware
5852 under the same conditions.
5853 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5854 when building executables, not DLLs. Add --large-address-aware
5855 under the same conditions when using -m32.
5856
5857 * config/i386/cygwin-stdint.h: Throughout, make type
5858 definitions dependent on target architecture, not host.
5859
5860 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5861
5862 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5863 the return type from rtx to rtx_insn *, which will enable various
5864 conversions in followup patches. For now this is is done by a
5865 checked cast.
5866 (NEXT_INSN): Likewise.
5867 (SET_PREV_INSN): Convert to an inline function. This is intended
5868 for use as an lvalue, and so returns an rtx& to allow in-place
5869 modification.
5870 (SET_NEXT_INSN): Likewise.
5871
5872 2014-07-08 Mark Wielaard <mjw@redhat.com>
5873
5874 PR debug/59051
5875 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5876
5877 2014-08-19 Marek Polacek <polacek@redhat.com>
5878
5879 PR c/61271
5880 * cgraphunit.c (handle_alias_pairs): Fix condition.
5881
5882 2014-08-19 Richard Biener <rguenther@suse.de>
5883
5884 * gimple-fold.c (fold_gimple_assign): Properly build a
5885 null-pointer constant when devirtualizing addresses.
5886
5887 2014-07-07 Mark Wielaard <mjw@redhat.com>
5888
5889 * dwarf2out.c (decl_quals): New function.
5890 (modified_type_die): Take one cv_quals argument instead of two,
5891 one for const and one for volatile.
5892 (add_type_attribute): Likewise.
5893 (generic_parameter_die): Call add_type_attribute with one modifier
5894 argument.
5895 (base_type_for_mode): Likewise.
5896 (add_bounds_info): Likewise.
5897 (add_subscript_info): Likewise.
5898 (gen_array_type_die): Likewise.
5899 (gen_descr_array_type_die): Likewise.
5900 (gen_entry_point_die): Likewise.
5901 (gen_enumeration_type_die): Likewise.
5902 (gen_formal_parameter_die): Likewise.
5903 (gen_subprogram_die): Likewise.
5904 (gen_variable_die): Likewise.
5905 (gen_const_die): Likewise.
5906 (gen_field_die): Likewise.
5907 (gen_pointer_type_die): Likewise.
5908 (gen_reference_type_die): Likewise.
5909 (gen_ptr_to_mbr_type_die): Likewise.
5910 (gen_inheritance_die): Likewise.
5911 (gen_subroutine_type_die): Likewise.
5912 (gen_typedef_die): Likewise.
5913 (force_type_die): Likewise.
5914
5915 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5916
5917 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5918 if unset.
5919 * configure: Regenerate.
5920
5921 2014-08-19 Richard Biener <rguenther@suse.de>
5922
5923 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5924 DECL_EXTERNALs in BLOCKs as non-references.
5925 * tree-streamer-out.c (streamer_write_chain): Likewise.
5926
5927 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5928 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5929 Anna Tikhonova <anna.tikhonova@intel.com>
5930 Ilya Tocar <ilya.tocar@intel.com>
5931 Andrey Turetskiy <andrey.turetskiy@intel.com>
5932 Ilya Verbin <ilya.verbin@intel.com>
5933 Kirill Yukhin <kirill.yukhin@intel.com>
5934 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5935
5936 * config/i386/sse.md
5937 (define_mode_iterator VI48_AVX512F): Delete.
5938 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5939 (define_mode_iterator VI2_AVX512VL): Ditto.
5940 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5941 Delete.
5942 (define_insn
5943 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5944 New.
5945 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5946 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5947 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5948 with VI48_AVX512F_AVX512VL): New.
5949 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5950 with VI2_AVX512VL): Ditto.
5951
5952 2014-08-19 Marek Polacek <polacek@redhat.com>
5953
5954 * doc/invoke.texi: Document -Wc99-c11-compat.
5955
5956 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5957
5958 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5959 for rvalues, and...
5960 (SET_PREV_INSN): New macro, for use as an lvalue.
5961 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5962
5963 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5964 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5965 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5966 (fixup_abnormal_edges): Likewise.
5967 (unlink_insn_chain): Likewise.
5968 (fixup_reorder_chain): Likewise.
5969 (cfg_layout_delete_block): Likewise.
5970 (cfg_layout_merge_blocks): Likewise.
5971 * combine.c (update_cfg_for_uncondjump): Likewise.
5972 * emit-rtl.c (link_insn_into_chain): Likewise.
5973 (remove_insn): Likewise.
5974 (delete_insns_since): Likewise.
5975 (reorder_insns_nobb): Likewise.
5976 (emit_insn_after_1): Likewise.
5977 * final.c (rest_of_clean_state): Likewise.
5978 (final_scan_insn): Likewise.
5979 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5980 * haifa-sched.c (concat_note_lists): Likewise.
5981 (remove_notes): Likewise.
5982 (restore_other_notes): Likewise.
5983 (move_insn): Likewise.
5984 (unlink_bb_notes): Likewise.
5985 (restore_bb_notes): Likewise.
5986 * jump.c (delete_for_peephole): Likewise.
5987 * optabs.c (emit_libcall_block_1): Likewise.
5988 * reorg.c (emit_delay_sequence): Likewise.
5989 (fill_simple_delay_slots): Likewise.
5990 * sel-sched-ir.c (sel_move_insn): Likewise.
5991 (sel_remove_insn): Likewise.
5992 (get_bb_note_from_pool): Likewise.
5993 * sel-sched.c (move_nop_to_previous_block): Likewise.
5994
5995 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5996 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5997 (c6x_gen_bundles): Likewise.
5998 (hwloop_optimize): Likewise.
5999 * config/frv/frv.c (frv_function_prologue): Likewise.
6000 (frv_register_nop): Likewise.
6001 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6002 (ia64_reorg): Likewise.
6003 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6004 (mep_make_bundle): Likewise.
6005 (mep_bundle_insns): Likewise.
6006 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6007 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6008 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6009
6010 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6011
6012 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6013 return type from rtx to rtx_insn *.
6014 (BB_END): Likewise.
6015 (BB_HEADER): Likewise.
6016 (BB_FOOTER): Likewise.
6017 (SET_BB_HEAD): Convert to a function.
6018 (SET_BB_END): Likewise.
6019 (SET_BB_HEADER): Likewise.
6020 (SET_BB_FOOTER): Likewise.
6021
6022 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6023 Strengthen the return type from rtx to rtx_insn *. For now, this
6024 is done by adding a checked cast, but this will eventually
6025 become a field lookup.
6026 (BB_END): Likewise.
6027 (BB_HEADER): Likewise.
6028 (BB_FOOTER): Likewise.
6029 (SET_BB_HEAD): New function, from macro of same name. This is
6030 intended for use as an lvalue, and so returns an rtx& to allow
6031 in-place modification.
6032 (SET_BB_END): Likewise.
6033 (SET_BB_HEADER): Likewise.
6034 (SET_BB_FOOTER): Likewise.
6035
6036 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6037
6038 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6039 for rvalues, and...
6040 (SET_BB_HEAD): New macro, for use as a lvalue.
6041 (BB_END, SET_BB_END): Likewise.
6042 (BB_HEADER, SET_BB_HEADER): Likewise.
6043 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6044
6045 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6046 of BB_* macros into SET_BB_* macros.
6047 (fix_crossing_unconditional_branches): Likewise.
6048 * caller-save.c (save_call_clobbered_regs): Likewise.
6049 (insert_one_insn): Likewise.
6050 * cfgbuild.c (find_bb_boundaries): Likewise.
6051 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6052 (outgoing_edges_match): Likewise.
6053 (try_optimize_cfg): Likewise.
6054 * cfgexpand.c (expand_gimple_cond): Likewise.
6055 (expand_gimple_tailcall): Likewise.
6056 (expand_gimple_basic_block): Likewise.
6057 (construct_exit_block): Likewise.
6058 * cfgrtl.c (delete_insn): Likewise.
6059 (create_basic_block_structure): Likewise.
6060 (rtl_delete_block): Likewise.
6061 (rtl_split_block): Likewise.
6062 (emit_nop_for_unique_locus_between): Likewise.
6063 (rtl_merge_blocks): Likewise.
6064 (block_label): Likewise.
6065 (try_redirect_by_replacing_jump): Likewise.
6066 (emit_barrier_after_bb): Likewise.
6067 (fixup_abnormal_edges): Likewise.
6068 (record_effective_endpoints): Likewise.
6069 (relink_block_chain): Likewise.
6070 (fixup_reorder_chain): Likewise.
6071 (fixup_fallthru_exit_predecessor): Likewise.
6072 (cfg_layout_duplicate_bb): Likewise.
6073 (cfg_layout_split_block): Likewise.
6074 (cfg_layout_delete_block): Likewise.
6075 (cfg_layout_merge_blocks): Likewise.
6076 * combine.c (update_cfg_for_uncondjump): Likewise.
6077 * emit-rtl.c (add_insn_after): Likewise.
6078 (remove_insn): Likewise.
6079 (reorder_insns): Likewise.
6080 (emit_insn_after_1): Likewise.
6081 * haifa-sched.c (get_ebb_head_tail): Likewise.
6082 (restore_other_notes): Likewise.
6083 (move_insn): Likewise.
6084 (sched_extend_bb): Likewise.
6085 (fix_jump_move): Likewise.
6086 * ifcvt.c (noce_process_if_block): Likewise.
6087 (dead_or_predicable): Likewise.
6088 * ira.c (update_equiv_regs): Likewise.
6089 * reg-stack.c (change_stack): Likewise.
6090 * sel-sched-ir.c (sel_move_insn): Likewise.
6091 * sel-sched.c (move_nop_to_previous_block): Likewise.
6092
6093 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6094 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6095
6096 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6097
6098 * rtl.h (for_each_rtx_in_insn): New function.
6099 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6100
6101 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6102
6103 * coretypes.h (class rtx_insn): Add forward declaration.
6104
6105 * rtl.h: Include is-a.h.
6106 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6107 workaround to ensure gengtype knows inheritance is occurring,
6108 whilst continuing to use the pre-existing special-casing for
6109 rtx_def.
6110 (class rtx_insn): New subclass of rtx_def, adding the
6111 invariant that we're dealing with something we can sanely use
6112 INSN_UID, NEXT_INSN, PREV_INSN on.
6113 (is_a_helper <rtx_insn *>::test): New.
6114 (is_a_helper <const rtx_insn *>::test): New.
6115
6116 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6117
6118 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6119
6120 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6121
6122 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6123 comdats as extern.
6124
6125 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6126
6127 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6128 to BUILT_IN_UNREACHABLE.
6129
6130 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6131
6132 PR target/62011
6133 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6134 New tune flag.
6135 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6136 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6137 (ffs<mode>2): Do not expand with tzcnt for
6138 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6139 (ffssi2_no_cmove): Ditto.
6140 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6141 (ctz<mode>2): New expander.
6142 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6143 (*ctz<mode>2_falsedep): New insn.
6144 (*ctz<mode>2): Rename from ctz<mode>2.
6145 (clz<mode>2_lzcnt): New expander.
6146 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6147 (*clz<mode>2_lzcnt_falsedep): New insn.
6148 (*clz<mode>2): Rename from ctz<mode>2.
6149 (popcount<mode>2): New expander.
6150 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6151 (*popcount<mode>2_falsedep): New insn.
6152 (*popcount<mode>2): Rename from ctz<mode>2.
6153 (*popcount<mode>2_cmp): Remove.
6154 (*popcountsi2_cmp_zext): Ditto.
6155
6156 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6157
6158 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6159 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6160 * config/microblaze/microblaze.h
6161 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6162
6163 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6164
6165 PR other/62168
6166 * configure.ac: Set install_gold_as_default to no for
6167 --enable-gold=no.
6168 * configure: Regenerated.
6169
6170 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6171
6172 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6173 * config.in: Add undef of HAVE_isl.
6174 * configure: Regenerate.
6175 * configure.ac: Add definition of HAVE_isl.
6176 * graphite-blocking.c: Add checking of HAVE_isl.
6177 * graphite-dependences.c: Likewise.
6178 * graphite-interchange.c: Likewise.
6179 * graphite-isl-ast-to-gimple.c: Likewise.
6180 * graphite-optimize-isl.c: Likewise.
6181 * graphite-poly.c: Likewise.
6182 * graphite-scop-detection.c: Likewise.
6183 * graphite-sese-to-poly.c: Likewise.
6184 * graphite.c: Likewise.
6185 * toplev.c: Replace the checking of HAVE_cloog with the checking
6186 of HAVE_isl.
6187
6188 2014-08-18 Richard Biener <rguenther@suse.de>
6189
6190 PR tree-optimization/62090
6191 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6192 (fold_builtin_3): Do not fold snprintf.
6193 (fold_builtin_4): Likewise.
6194 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6195 moved from builtins.c.
6196 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6197 (gimple_fold_builtin): Do not fold sprintf here.
6198
6199 2014-08-18 Richard Biener <rguenther@suse.de>
6200
6201 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6202 code to ...
6203 (maybe_canonicalize_mem_ref_addr): ... this function.
6204 (fold_stmt_1): Apply it here before all simplification.
6205
6206 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6207
6208 PR ipa/61800
6209 * cgraph.h (cgraph_node::create_indirect_edge): Add
6210 compute_indirect_info param.
6211 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6212 indirect_info only when it is required.
6213 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6214 indirect_info fore cloned indirect edge.
6215
6216 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6217 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6218 Anna Tikhonova <anna.tikhonova@intel.com>
6219 Ilya Tocar <ilya.tocar@intel.com>
6220 Andrey Turetskiy <andrey.turetskiy@intel.com>
6221 Ilya Verbin <ilya.verbin@intel.com>
6222 Kirill Yukhin <kirill.yukhin@intel.com>
6223 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6224
6225 * config/i386/sse.md
6226 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6227 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6228
6229 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6230 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6231 Anna Tikhonova <anna.tikhonova@intel.com>
6232 Ilya Tocar <ilya.tocar@intel.com>
6233 Andrey Turetskiy <andrey.turetskiy@intel.com>
6234 Ilya Verbin <ilya.verbin@intel.com>
6235 Kirill Yukhin <kirill.yukhin@intel.com>
6236 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6237
6238 * config/i386/sse.md
6239 (define_mode_iterator VF1_AVX512VL): New.
6240 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6241 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6242 New.
6243
6244 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6245 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6246 Anna Tikhonova <anna.tikhonova@intel.com>
6247 Ilya Tocar <ilya.tocar@intel.com>
6248 Andrey Turetskiy <andrey.turetskiy@intel.com>
6249 Ilya Verbin <ilya.verbin@intel.com>
6250 Kirill Yukhin <kirill.yukhin@intel.com>
6251 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6252
6253 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6254 * config/i386/i386.md
6255 (define_code_iterator any_float): New.
6256 (define_code_attr floatsuffix): New.
6257 * config/i386/sse.md
6258 (define_mode_iterator VF1_128_256VL): New.
6259 (define_mode_iterator VF2_512_256VL): New.
6260 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6261 TARGET check.
6262 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6263 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6264 New.
6265 (define_mode_attr qq2pssuff): New.
6266 (define_mode_attr sselongvecmode): New.
6267 (define_mode_attr sselongvecmodelower): New.
6268 (define_mode_attr sseintvecmode3): New.
6269 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6270 New.
6271 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6272 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6273 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6274 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6275
6276 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6278 Anna Tikhonova <anna.tikhonova@intel.com>
6279 Ilya Tocar <ilya.tocar@intel.com>
6280 Andrey Turetskiy <andrey.turetskiy@intel.com>
6281 Ilya Verbin <ilya.verbin@intel.com>
6282 Kirill Yukhin <kirill.yukhin@intel.com>
6283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6284
6285 * config/i386/sse.md
6286 (define_mode_iterator VF2_AVX512VL): New.
6287 (define_mode_attr sseintvecmode2): New.
6288 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6289 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6290 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6291 (define_insn
6292 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6293 Ditto.
6294 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6295 Ditto.
6296 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6297 Ditto.
6298
6299 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6300 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6301 Anna Tikhonova <anna.tikhonova@intel.com>
6302 Ilya Tocar <ilya.tocar@intel.com>
6303 Andrey Turetskiy <andrey.turetskiy@intel.com>
6304 Ilya Verbin <ilya.verbin@intel.com>
6305 Kirill Yukhin <kirill.yukhin@intel.com>
6306 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6307
6308 * config/i386/i386.md
6309 (define_insn "*movoi_internal_avx"): Add evex version.
6310 (define_insn "*movti_internal"): Ditto.
6311
6312 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6314 Anna Tikhonova <anna.tikhonova@intel.com>
6315 Ilya Tocar <ilya.tocar@intel.com>
6316 Andrey Turetskiy <andrey.turetskiy@intel.com>
6317 Ilya Verbin <ilya.verbin@intel.com>
6318 Kirill Yukhin <kirill.yukhin@intel.com>
6319 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6320
6321 * config/i386/i386.md
6322 (define_attr "isa"): Add avx512dq, noavx512dq.
6323 (define_attr "enabled"): Ditto.
6324 * config/i386/sse.md
6325 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6326
6327 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6328 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6329 Anna Tikhonova <anna.tikhonova@intel.com>
6330 Ilya Tocar <ilya.tocar@intel.com>
6331 Andrey Turetskiy <andrey.turetskiy@intel.com>
6332 Ilya Verbin <ilya.verbin@intel.com>
6333 Kirill Yukhin <kirill.yukhin@intel.com>
6334 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6335
6336 * config/i386/i386.c
6337 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6338 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6339 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6340 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6341 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6342 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6343 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6344 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6345 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6346 * config/i386/sse.md
6347 (define_mode_iterator VMOVE): Allow V4TI mode.
6348 (define_mode_iterator V_AVX512VL): New.
6349 (define_mode_iterator V): New handling for AVX512VL.
6350 (define_insn "avx512f_load<mode>_mask"): Delete.
6351 (define_insn "<avx512>_load<mode>_mask"): New.
6352 (define_insn "avx512f_store<mode>_mask"): Delete.
6353 (define_insn "<avx512>_store<mode>_mask"): New.
6354
6355
6356 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6357
6358 PR sanitizer/62089
6359 * asan.c (instrument_derefs): Fix bitfield check.
6360
6361 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6362
6363 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6364 * config/rs6000/htm.md (ttest): Remove clobber.
6365 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6366 (and_operand): Reformat.
6367 (and_2rld_operand): New predicate.
6368 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6369 parameter.
6370 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6371 parameter. Handle AND directly.
6372 (rs6000_split_logical_di): Remove last parameter.
6373 (rs6000_split_logical): Remove last parameter. Remove obsolete
6374 comment.
6375 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6376 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6377 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6378 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6379 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6380 and 5 anonymous splitters): Delete.
6381 (and<mode>3): New expander.
6382 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6383 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6384 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6385 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6386 (floatdisf2_internal1): Remove clobbers.
6387 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6388 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6389 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6390 (and<mode>3 for BOOL_128): Remove clobber.
6391 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6392 rs6000_split_logical.
6393 (*bool<mode>3_internal for BOOL_128): Adjust call of
6394 rs6000_split_logical.
6395 (*boolc<mode>3_internal1 for BOOL_128,
6396 *boolc<mode>3_internal2 for BOOL_128,
6397 *boolcc<mode>3_internal1 for BOOL_128,
6398 *boolcc<mode>3_internal2 for BOOL_128,
6399 *eqv<mode>3_internal1 for BOOL_128,
6400 *eqv<mode>3_internal2 for BOOL_128,
6401 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6402 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6403 clobber.
6404 (*vec_reload_and_reg_<mptrsize>): Delete.
6405
6406 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6407
6408 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6409 and split, *boolccsi3_internal3 and split): Delete.
6410 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6411 *boolccdi3_internal3 and split): Delete.
6412 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6413 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6414
6415 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6416
6417 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6418 and split, *boolcsi3_internal3 and split): Delete.
6419 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6420 *boolcdi3_internal3 and split): Delete.
6421 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6422
6423 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6424
6425 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6426 <'u'>: Also support printing the low-order 16 bits.
6427 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6428 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6429 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6430 *booldi3_internal3 and split): Delete.
6431 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6432 *bool<mode>3_dot2): New.
6433 (two anonymous define_splits for non_logical_cint_operand): Merge.
6434
6435 2014-08-17 Marek Polacek <polacek@redhat.com>
6436 Manuel López-Ibáñez <manu@gcc.gnu.org>
6437
6438 PR c/62059
6439 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6440 (diagnostic_show_locus): Don't print caret diagnostic
6441 if a column is larger than the line_width.
6442
6443 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6444
6445 * common.opt: Make the ISL AST generator to be the main code generator
6446 of Graphite.
6447
6448 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6449
6450 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6451
6452 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6453
6454 PR target/61641
6455 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6456 Declare.
6457 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6458 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6459 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6460 Define.
6461 * config/pa/pa.md (begin_brtab): Delete insn.
6462 (end_brtab): Likewise.
6463
6464 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6465
6466 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6467
6468 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6469
6470 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6471 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6472 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6473 (get_dynamic_type): Remove.
6474 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6475 (clear_speculation): Bring to ipa-deivrt.h
6476 (get_class_context): Rename to ...
6477 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6478 (contains_type_p): Update.
6479 (get_dynamic_type): Rename to ...
6480 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6481 (possible_polymorphic_call_targets): UPdate.
6482 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6483 * ipa-prop.c (ipa_analyze_call_uses): Update.
6484
6485 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6486
6487 * doc/invoke.texi (SH options): Document missing processor variant
6488 options. Remove references to Hitachi. Undocument deprecated mspace
6489 option.
6490
6491 2014-08-15 Jason Merrill <jason@redhat.com>
6492
6493 * tree.c (type_hash_canon): Uncomment assert.
6494
6495 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6496
6497 * input.h (in_system_header_at): Add comment.
6498
6499 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6500
6501 PR fortran/44054
6502 * diagnostic.c (build_message_string): Make it extern.
6503 * diagnostic.h (build_message_string): Make it extern.
6504
6505 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6506
6507 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6508 load/store from/to non-floating class pseudo.
6509
6510 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6511
6512 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6513
6514 2014-08-15 Richard Biener <rguenther@suse.de>
6515
6516 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6517 (get_constraint_for_ssa_var): Remove dead code.
6518 (get_constraint_for_1): Adjust.
6519 (find_what_var_points_to): Likewise.
6520 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6521
6522 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6523
6524 PR target/61878
6525 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6526 (_mm512_mask_cmpge_epu32_mask): Ditto.
6527 (_mm512_cmpge_epu32_mask): Ditto.
6528 (_mm512_mask_cmpge_epi64_mask): Ditto.
6529 (_mm512_cmpge_epi64_mask): Ditto.
6530 (_mm512_mask_cmpge_epu64_mask): Ditto.
6531 (_mm512_cmpge_epu64_mask): Ditto.
6532 (_mm512_mask_cmple_epi32_mask): Ditto.
6533 (_mm512_cmple_epi32_mask): Ditto.
6534 (_mm512_mask_cmple_epu32_mask): Ditto.
6535 (_mm512_cmple_epu32_mask): Ditto.
6536 (_mm512_mask_cmple_epi64_mask): Ditto.
6537 (_mm512_cmple_epi64_mask): Ditto.
6538 (_mm512_mask_cmple_epu64_mask): Ditto.
6539 (_mm512_cmple_epu64_mask): Ditto.
6540 (_mm512_mask_cmplt_epi32_mask): Ditto.
6541 (_mm512_cmplt_epi32_mask): Ditto.
6542 (_mm512_mask_cmplt_epu32_mask): Ditto.
6543 (_mm512_cmplt_epu32_mask): Ditto.
6544 (_mm512_mask_cmplt_epi64_mask): Ditto.
6545 (_mm512_cmplt_epi64_mask): Ditto.
6546 (_mm512_mask_cmplt_epu64_mask): Ditto.
6547 (_mm512_cmplt_epu64_mask): Ditto.
6548 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6549 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6550 (_mm512_cmpneq_epu32_mask): Ditto.
6551 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6552 (_mm512_cmpneq_epi64_mask): Ditto.
6553 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6554 (_mm512_cmpneq_epu64_mask): Ditto.
6555 (_mm512_castpd_ps): Ditto.
6556 (_mm512_castpd_si512): Ditto.
6557 (_mm512_castps_pd): Ditto.
6558 (_mm512_castps_si512): Ditto.
6559 (_mm512_castsi512_ps): Ditto.
6560 (_mm512_castsi512_pd): Ditto.
6561 (_mm512_castpd512_pd128): Ditto.
6562 (_mm512_castps512_ps128): Ditto.
6563 (_mm512_castsi512_si128): Ditto.
6564 (_mm512_castpd512_pd256): Ditto.
6565 (_mm512_castps512_ps256): Ditto.
6566 (_mm512_castsi512_si256): Ditto.
6567 (_mm512_castpd128_pd512): Ditto.
6568 (_mm512_castps128_ps512): Ditto.
6569 (_mm512_castsi128_si512): Ditto.
6570 (_mm512_castpd256_pd512): Ditto.
6571 (_mm512_castps256_ps512): Ditto.
6572 (_mm512_castsi256_si512): Ditto.
6573 (_mm512_cmpeq_epu32_mask): Ditto.
6574 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6575 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6576 (_mm512_cmpeq_epu64_mask): Ditto.
6577 (_mm512_cmpgt_epu32_mask): Ditto.
6578 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6579 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6580 (_mm512_cmpgt_epu64_mask): Ditto.
6581 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6582 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6583 * config/i386/i386.c (enum ix86_builtins): Add
6584 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6585 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6586 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6587 (bdesc_args): Add __builtin_ia32_si512_256si,
6588 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6589 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6590 __builtin_ia32_pd512_pd.
6591 (ix86_expand_args_builtin): Handle new FTYPEs.
6592 * config/i386/sse.md (castmode): Add 512-bit modes.
6593 (AVX512MODE2P): New.
6594 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6595 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6596
6597 2014-08-15 Richard Biener <rguenther@suse.de>
6598
6599 * fold-const.c (tree_swap_operands_p): Put all constants
6600 last, also strip sign-changing NOPs when considering further
6601 canonicalization. Canonicalize also when optimizing for size.
6602
6603 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6604
6605 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6606 one_match > zero_match case to just before simple_sequence.
6607
6608 2014-08-15 Richard Biener <rguenther@suse.de>
6609
6610 * data-streamer.h (streamer_string_index, string_for_index):
6611 Remove.
6612 * data-streamer-out.c (streamer_string_index): Make static.
6613 * data-streamer-in.c (string_for_index): Likewise.
6614 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6615 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6616
6617 2014-08-15 Richard Biener <rguenther@suse.de>
6618
6619 PR tree-optimization/62031
6620 * tree-data-ref.c (dr_analyze_indices): Do not set
6621 DR_UNCONSTRAINED_BASE.
6622 (dr_may_alias_p): All indirect accesses have to go the
6623 formerly DR_UNCONSTRAINED_BASE path.
6624 * tree-data-ref.h (struct indices): Remove
6625 unconstrained_base member.
6626 (DR_UNCONSTRAINED_BASE): Remove.
6627
6628 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6629
6630 PR middle-end/62092
6631 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6632 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6633 in OMP_CLAUSE_MAP in some outer target region.
6634
6635 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6636
6637 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6638 name_expansion_cache.
6639 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6640 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6641 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6642 (difference_cannot_overflow_p): New parameter. Use affine
6643 expansion for equality check.
6644 (iv_elimination_compare_lt): Pass new argument.
6645
6646 2014-08-14 DJ Delorie <dj@redhat.com>
6647
6648 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6649 variables to the accumulator.
6650
6651 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6652 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6653 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6654 with far-far moves.
6655
6656 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6657 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6658 (umulqihi3_virt): Likewise.
6659 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6660 (umulqihi3_real): Likewise.
6661
6662 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6663
6664 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6665
6666 PR tree-optimization/62091
6667 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6668 function_entry_reached.
6669 (walk_aliased_vdefs): Clear it here.
6670 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6671
6672 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6673
6674 * ipa-utils.h (compare_virtual_tables): Declare.
6675 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6676
6677 2014-08-14 Marek Polacek <polacek@redhat.com>
6678
6679 DR 458
6680 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6681 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6682
6683 2014-08-14 Tom de Vries <tom@codesourcery.com>
6684
6685 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6686
6687 2014-08-14 Tom de Vries <tom@codesourcery.com>
6688
6689 PR rtl-optimization/62004
6690 PR rtl-optimization/62030
6691 * ifcvt.c (rtx_interchangeable_p): New function.
6692 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6693 * emit-rtl.h (mem_attrs_eq_p): Declare.
6694
6695 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6696
6697 * graphite-scop-detection.c:
6698 Add inclusion of cp-tree.h.
6699 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6700 in case they are pointers to object types
6701
6702 2014-08-14 Richard Biener <rguenther@suse.de>
6703
6704 * BASE-VER: Change to 5.0.0
6705
6706 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6708 Anna Tikhonova <anna.tikhonova@intel.com>
6709 Ilya Tocar <ilya.tocar@intel.com>
6710 Andrey Turetskiy <andrey.turetskiy@intel.com>
6711 Ilya Verbin <ilya.verbin@intel.com>
6712 Kirill Yukhin <kirill.yukhin@intel.com>
6713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6714
6715 * config/i386/sse.md (define_mode_attr avx512): New.
6716 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6717 V4DI modes.
6718 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6719 (define_mode_attr ssse3_avx2): Ditto.
6720 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6721 (define_mode_attr avx2_avx512bw): New.
6722 (define_mode_attr ssedoublemodelower): New.
6723 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6724 V32HI, V64QI modes.
6725 (define_mode_attr ssebytemode): Allow V8DI modes.
6726 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6727 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6728 (define_mode_attr ssePSmode2): New.
6729 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6730 V16HI, V32HI modes.
6731 (define_mode_attr dbpsadbwmode): New.
6732 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6733 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6734 (vi8_sse4_1_avx2_avx512): New.
6735 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6736 mode attribute.
6737 (define_mode_attr blendbits): Move before its immediate use.
6738
6739 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6740 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6741 Anna Tikhonova <anna.tikhonova@intel.com>
6742 Ilya Tocar <ilya.tocar@intel.com>
6743 Andrey Turetskiy <andrey.turetskiy@intel.com>
6744 Ilya Verbin <ilya.verbin@intel.com>
6745 Kirill Yukhin <kirill.yukhin@intel.com>
6746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6747
6748 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6749 * config/i386/subst.md
6750 (define_mode_iterator SUBST_V): Update.
6751 (define_mode_iterator SUBST_A): Ditto.
6752 (define_subst_attr "mask_operand7"): New.
6753 (define_subst_attr "mask_operand10"): New.
6754 (define_subst_attr "mask_operand_arg34") : New.
6755 (define_subst_attr "mask_expand_op3"): New.
6756 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6757 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6758 (define_subst_attr "mask_avx512vl_condition"): New.
6759 (define_subst_attr "round_mask_operand4"): Ditto.
6760 (define_subst_attr "round_mask_scalar_op3"): Delete.
6761 (define_subst_attr "round_mask_op4"): New.
6762 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6763 V16SImode.
6764 (define_subst_attr "round_modev8sf_condition"): New.
6765 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6766 <MODE>mode.
6767 (define_subst_attr "round_saeonly_mask_operand4"): New.
6768 (define_subst_attr "round_saeonly_mask_op4"): New.
6769 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6770 V8DImode, V16SImode.
6771 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6772 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6773 (define_subst_attr "mask_expand4_args"): New.
6774 (define_subst "mask_expand4"): New.
6775
6776 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6777 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6778 Anna Tikhonova <anna.tikhonova@intel.com>
6779 Ilya Tocar <ilya.tocar@intel.com>
6780 Andrey Turetskiy <andrey.turetskiy@intel.com>
6781 Ilya Verbin <ilya.verbin@intel.com>
6782 Kirill Yukhin <kirill.yukhin@intel.com>
6783 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6784
6785 * config/i386/i386.md
6786 (define_attr "isa"): Add avx512bw,noavx512bw.
6787 (define_attr "enabled"): Ditto.
6788 (define_split): Add 32/64-bit mask logic.
6789 (define_insn "*k<logic>qi"): New.
6790 (define_insn "*k<logic>hi"): New.
6791 (define_insn "*anddi_1"): Add mask version.
6792 (define_insn "*andsi_1"): Ditto.
6793 (define_insn "*<code><mode>_1"): Ditto.
6794 (define_insn "*<code>hi_1"): Ditto.
6795 (define_insn "kxnor<mode>"): New.
6796 (define_insn "kunpcksi"): New.
6797 (define_insn "kunpckdi"): New.
6798 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6799 (define_insn "*one_cmplhi2_1"): Ditto.
6800
6801 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6802 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6803 Anna Tikhonova <anna.tikhonova@intel.com>
6804 Ilya Tocar <ilya.tocar@intel.com>
6805 Andrey Turetskiy <andrey.turetskiy@intel.com>
6806 Ilya Verbin <ilya.verbin@intel.com>
6807 Kirill Yukhin <kirill.yukhin@intel.com>
6808 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6809
6810 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6811 V32HImode.
6812
6813 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6814 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6815 Anna Tikhonova <anna.tikhonova@intel.com>
6816 Ilya Tocar <ilya.tocar@intel.com>
6817 Andrey Turetskiy <andrey.turetskiy@intel.com>
6818 Ilya Verbin <ilya.verbin@intel.com>
6819 Kirill Yukhin <kirill.yukhin@intel.com>
6820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6821
6822 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6823 registers.
6824 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6825 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6826 xmm/ymm16+ when availble.
6827 * config/i386/i386.h
6828 (HARD_REGNO_NREGS): Add mask regs.
6829 (VALID_AVX512F_REG_MODE): Ditto.
6830 (VALID_AVX512F_REG_MODE) : Define.
6831 (VALID_MASK_AVX512BW_MODE): Ditto.
6832 (reg_class) (MASK_REG_P(X)): Define.
6833 * config/i386/i386.md: Do not split long moves with mask register,
6834 use kmovb if avx512bw is availible.
6835 (movdi_internal): Handle mask registers.
6836
6837 2014-08-14 Richard Biener <rguenther@suse.de>
6838
6839 PR tree-optimization/62081
6840 * tree-ssa-loop.c (pass_fix_loops): New pass.
6841 (pass_tree_loop::gate): Do not fixup loops here.
6842 * tree-pass.h (make_pass_fix_loops): Declare.
6843 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6844
6845 2014-08-14 Richard Biener <rguenther@suse.de>
6846
6847 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6848 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6849
6850 2014-08-14 Richard Biener <rguenther@suse.de>
6851
6852 PR tree-optimization/62090
6853 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6854 (fold_builtin_2): Do not fold sprintf.
6855 (fold_builtin_3): Likewise.
6856 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6857 moved from builtins.c.
6858 (gimple_fold_builtin): Fold sprintf.
6859
6860 2014-08-14 Richard Biener <rguenther@suse.de>
6861
6862 PR rtl-optimization/62079
6863 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6864 run cleanup_cfg.
6865
6866 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6867
6868 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6869 current_function_decl.
6870
6871 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6872
6873 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6874 cgraph_function_node to cgraph_node::function_symbol
6875 refactoring.
6876
6877 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6878
6879 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6880 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6881
6882 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6883
6884 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6885 warning.
6886
6887 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6888
6889 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6890 generator.
6891
6892 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6893
6894 PR target/62025
6895 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6896 any registers that are used in mem_insn.
6897
6898 2014-08-12 Steve Ellcey <sellcey@mips.com>
6899
6900 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6901
6902 2014-08-12 Steve Ellcey <sellcey@mips.com>
6903
6904 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6905 (MULTILIB_DIRNAMES): Ditto.
6906 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6907 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6908 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6909 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6910 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6911 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6912
6913 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6914
6915 PR target/61413
6916 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6917 of __ARM_SIZEOF_WCHAR_T.
6918
6919 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6920
6921 PR target/62098
6922 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6923 Remove unnecessary attributes.
6924
6925 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6926
6927 * internal-fn.c (init_internal_fns): Fix off-by-one.
6928
6929 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6931 Anna Tikhonova <anna.tikhonova@intel.com>
6932 Ilya Tocar <ilya.tocar@intel.com>
6933 Andrey Turetskiy <andrey.turetskiy@intel.com>
6934 Ilya Verbin <ilya.verbin@intel.com>
6935 Kirill Yukhin <kirill.yukhin@intel.com>
6936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6937
6938 * config/i386/i386.c (standard_sse_constant_opcode): Use
6939 vpxord/vpternlog if avx512 is availible.
6940
6941 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6942
6943 PR middle-end/62103
6944 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6945 bitfields, that is when size doesn't match the size of type or the
6946 size of the constructor.
6947
6948 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6949
6950 * config/rs6000/constraints.md (wh constraint): New constraint,
6951 for FP registers if direct move is available.
6952 (wi constraint): New constraint, for VSX/FP registers that can
6953 handle 64-bit integers.
6954 (wj constraint): New constraint for VSX/FP registers that can
6955 handle 64-bit integers for direct moves.
6956 (wk constraint): New constraint for VSX/FP registers that can
6957 handle 64-bit doubles for direct moves.
6958 (wy constraint): Make documentation match implementation.
6959
6960 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6961 scalar_in_vmx_p field to simplify tests of whether SFmode or
6962 DFmode can go in the Altivec registers.
6963 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6964 (rs6000_setup_reg_addr_masks): Likewise.
6965 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6966 field, and wh/wi/wj/wk constraints.
6967 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6968 the wh/wi/wj/wk constraints.
6969 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6970 upper registers, prefer VSX registers unless the operation is a
6971 memory operation with REG+OFFSET addressing.
6972
6973 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6974 DImode. Change SFmode to use ww constraint instead of d to allow
6975 SF registers in the upper registers.
6976 (VSr2): Likewise.
6977 (VSr3): Likewise.
6978 (VSr5): Fix thinko in comment.
6979 (VSa): New mode attribute that is an alternative to wa, that
6980 returns the VSX register class that a mode can go in, but may not
6981 be the preferred register class.
6982 (VS_64dm): New mode attribute for appropriate register classes for
6983 referencing 64-bit elements of vectors for direct moves and normal
6984 moves.
6985 (VS_64reg): Likewise.
6986 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6987 register allocator to only registers the data type can handle.
6988 (vsx_le_perm_load_<mode>): Likewise.
6989 (vsx_le_perm_store_<mode>): Likewise.
6990 (vsx_xxpermdi2_le_<mode>): Likewise.
6991 (vsx_xxpermdi4_le_<mode>): Likewise.
6992 (vsx_lxvd2x2_le_<mode>): Likewise.
6993 (vsx_lxvd2x4_le_<mode>): Likewise.
6994 (vsx_stxvd2x2_le_<mode>): Likewise.
6995 (vsx_add<mode>3): Likewise.
6996 (vsx_sub<mode>3): Likewise.
6997 (vsx_mul<mode>3): Likewise.
6998 (vsx_div<mode>3): Likewise.
6999 (vsx_tdiv<mode>3_internal): Likewise.
7000 (vsx_fre<mode>2): Likewise.
7001 (vsx_neg<mode>2): Likewise.
7002 (vsx_abs<mode>2): Likewise.
7003 (vsx_nabs<mode>2): Likewise.
7004 (vsx_smax<mode>3): Likewise.
7005 (vsx_smin<mode>3): Likewise.
7006 (vsx_sqrt<mode>2): Likewise.
7007 (vsx_rsqrte<mode>2): Likewise.
7008 (vsx_tsqrt<mode>2_internal): Likewise.
7009 (vsx_fms<mode>4): Likewise.
7010 (vsx_nfma<mode>4): Likewise.
7011 (vsx_eq<mode>): Likewise.
7012 (vsx_gt<mode>): Likewise.
7013 (vsx_ge<mode>): Likewise.
7014 (vsx_eq<mode>_p): Likewise.
7015 (vsx_gt<mode>_p): Likewise.
7016 (vsx_ge<mode>_p): Likewise.
7017 (vsx_xxsel<mode>): Likewise.
7018 (vsx_xxsel<mode>_uns): Likewise.
7019 (vsx_copysign<mode>3): Likewise.
7020 (vsx_float<VSi><mode>2): Likewise.
7021 (vsx_floatuns<VSi><mode>2): Likewise.
7022 (vsx_fix_trunc<mode><VSi>2): Likewise.
7023 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7024 (vsx_x<VSv>r<VSs>i): Likewise.
7025 (vsx_x<VSv>r<VSs>ic): Likewise.
7026 (vsx_btrunc<mode>2): Likewise.
7027 (vsx_b2trunc<mode>2): Likewise.
7028 (vsx_floor<mode>2): Likewise.
7029 (vsx_ceil<mode>2): Likewise.
7030 (vsx_<VS_spdp_insn>): Likewise.
7031 (vsx_xscvspdp): Likewise.
7032 (vsx_xvcvspuxds): Likewise.
7033 (vsx_float_fix_<mode>2): Likewise.
7034 (vsx_set_<mode>): Likewise.
7035 (vsx_extract_<mode>_internal1): Likewise.
7036 (vsx_extract_<mode>_internal2): Likewise.
7037 (vsx_extract_<mode>_load): Likewise.
7038 (vsx_extract_<mode>_store): Likewise.
7039 (vsx_splat_<mode>): Likewise.
7040 (vsx_xxspltw_<mode>): Likewise.
7041 (vsx_xxspltw_<mode>_direct): Likewise.
7042 (vsx_xxmrghw_<mode>): Likewise.
7043 (vsx_xxmrglw_<mode>): Likewise.
7044 (vsx_xxsldwi_<mode>): Likewise.
7045 (vsx_xscvdpspn): Tighten constraints to only use register classes
7046 the types use.
7047 (vsx_xscvspdpn): Likewise.
7048 (vsx_xscvdpspn_scalar): Likewise.
7049
7050 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7051 wj, and wk constraints.
7052 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7053 general purpose registers.
7054
7055 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7056 direct moves.
7057 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7058 DImode instead of wm. Use wk constraint for direct move of DFmode
7059 instead of wm.
7060 (extendsidi2_lfiwax): Likewise.
7061 (lfiwax): Likewise.
7062 (lfiwzx): Likewise.
7063 (movdi_internal64): Likewise.
7064
7065 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7066 wk constraints. Make the wy constraint documentation match them
7067 implementation.
7068
7069 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7070
7071 Replacement of isl_int by isl_val
7072 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7073 (compute_bounds_for_param): use isl_val instead of isl_int
7074 (compute_bounds_for_loop): likewise
7075 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7076 (build_linearized_memory_access): use isl_val instead of isl_int
7077 (pdr_stride_in_loop): likewise
7078 * graphite-optimize-isl.c:
7079 (getPrevectorMap): use isl_val instead of isl_int
7080 * graphite-poly.c:
7081 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7082 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7083 (extern the_isl_ctx): declare
7084 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7085 (extract_affine_gmp): likewise
7086 (wrap): likewise
7087 (build_loop_iteration_domains): likewise
7088 (add_param_constraints): likewise
7089
7090 2014-08-11 Richard Biener <rguenther@suse.de>
7091
7092 PR tree-optimization/62075
7093 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7094 handle uses in patterns.
7095
7096 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7097 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7098 Anna Tikhonova <anna.tikhonova@intel.com>
7099 Ilya Tocar <ilya.tocar@intel.com>
7100 Andrey Turetskiy <andrey.turetskiy@intel.com>
7101 Ilya Verbin <ilya.verbin@intel.com>
7102 Kirill Yukhin <kirill.yukhin@intel.com>
7103 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7104
7105 * common/config/i386/i386-common.c
7106 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7107 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7108 (ix86_handle_option): Handle OPT_mavx512vl.
7109 * config/i386/cpuid.h (bit_AVX512VL): Define.
7110 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7111 set -mavx512vl accordingly.
7112 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7113 OPTION_MASK_ISA_AVX512VL.
7114 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7115 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7116 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7117 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7118 * config/i386/i386.h (TARGET_AVX512VL): Define.
7119 (TARGET_AVX512VL_P(x)): Ditto.
7120 * config/i386/i386.opt: Add mavx512vl.
7121
7122 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7123
7124 PR tree-optimization/62073
7125 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7126 a basic block.
7127
7128 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7129 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7130 Anna Tikhonova <anna.tikhonova@intel.com>
7131 Ilya Tocar <ilya.tocar@intel.com>
7132 Andrey Turetskiy <andrey.turetskiy@intel.com>
7133 Ilya Verbin <ilya.verbin@intel.com>
7134 Kirill Yukhin <kirill.yukhin@intel.com>
7135 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7136
7137 * common/config/i386/i386-common.c
7138 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7139 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7140 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7141 (ix86_handle_option): Handle OPT_mavx512bw.
7142 * config/i386/cpuid.h (bit_AVX512BW): Define.
7143 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7144 set -mavx512bw accordingly.
7145 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7146 OPTION_MASK_ISA_AVX512BW.
7147 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7148 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7149 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7150 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7151 * config/i386/i386.h (TARGET_AVX512BW): Define.
7152 (TARGET_AVX512BW_P(x)): Ditto.
7153 * config/i386/i386.opt: Add mavx512bw.
7154
7155 2014-08-11 Richard Biener <rguenther@suse.de>
7156
7157 PR tree-optimization/62070
7158 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7159 Remove SSA checking.
7160
7161 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7162
7163 * asan.c (asan_check_flags): New enum.
7164 (build_check_stmt_with_calls): Removed function.
7165 (build_check_stmt): Split inlining logic to
7166 asan_expand_check_ifn.
7167 (instrument_derefs): Rename parameter.
7168 (instrument_mem_region_access): Rename parameter.
7169 (instrument_strlen_call): Likewise.
7170 (asan_expand_check_ifn): New function.
7171 (asan_instrument): Remove old code.
7172 (pass_sanopt::execute): Change handling of
7173 asan-instrumentation-with-call-threshold.
7174 (asan_clear_shadow): Fix formatting.
7175 (asan_function_start): Likewise.
7176 (asan_emit_stack_protection): Likewise.
7177 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7178 Update description.
7179 * internal-fn.c (expand_ASAN_CHECK): New function.
7180 * internal-fn.def (ASAN_CHECK): New internal function.
7181 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7182 Update description.
7183 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7184 * tree.c: Small comment fix.
7185
7186 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7187
7188 * gimple.c (gimple_call_fnspec): Support internal functions.
7189 (gimple_call_return_flags): Use const.
7190 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7191 * internal-fn.def: Add fnspec information.
7192 * internal-fn.h (internal_fn_fnspec): New function.
7193 (init_internal_fns): Declare new function.
7194 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7195 (init_internal_fns): New function.
7196 * tree-core.h: Update macro call.
7197 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7198
7199 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7200
7201 * lto-streamer.h (struct output_block::symbol): Change from
7202 struct symtab_node to plain symtab_node.
7203 (referenced_from_this_partition_p): Change first parameter
7204 from struct symtab_node to plain symtab_node.
7205
7206 2014-08-10 Marek Polacek <polacek@redhat.com>
7207
7208 PR c/51849
7209 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7210
7211 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7212
7213 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7214 DECL correctly; do not give up on types in static storage.
7215
7216 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7217
7218 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7219
7220 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7221
7222 * graphite-isl-ast-to-gimple.c:
7223 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7224
7225 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7226
7227 2014-08-08 Guozhi Wei <carrot@google.com>
7228
7229 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7230
7231 2014-08-08 Cary Coutant <ccoutant@google.com>
7232
7233 * dwarf2out.c (get_skeleton_type_unit): Remove.
7234 (output_skeleton_debug_sections): Remove skeleton type units.
7235 (output_comdat_type_unit): Likewise.
7236 (dwarf2out_finish): Likewise.
7237
7238 2014-08-07 Yi Yang <ahyangyi@google.com>
7239
7240 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7241
7242 2014-08-08 Richard Biener <rguenther@suse.de>
7243
7244 * lto-streamer.h (struct lto_input_block): Make it a class
7245 with a constructor.
7246 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7247 (struct lto_function_header, struct lto_simple_header,
7248 struct lto_simple_header_with_strings,
7249 struct lto_decl_header, struct lto_function_header): Make
7250 a simple inheritance hieararchy. Remove unused fields.
7251 (struct lto_asm_header): Remove.
7252 * lto-streamer-out.c (produce_asm): Adjust.
7253 (lto_output_toplevel_asms): Likewise.
7254 (produce_asm_for_decls): Likewise.
7255 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7256 * data-streamer-in.c (string_for_index): Likewise.
7257 * ipa-inline-analysis.c (inline_read_section): Likewise.
7258 * ipa-prop.c (ipa_prop_read_section): Likewise.
7259 (read_replacements_section): Likewise.
7260 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7261 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7262 (lto_destroy_simple_input_block): Likewise.
7263 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7264 (lto_input_toplevel_asms): Likewise.
7265
7266 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7267 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7268 Anna Tikhonova <anna.tikhonova@intel.com>
7269 Ilya Tocar <ilya.tocar@intel.com>
7270 Andrey Turetskiy <andrey.turetskiy@intel.com>
7271 Ilya Verbin <ilya.verbin@intel.com>
7272 Kirill Yukhin <kirill.yukhin@intel.com>
7273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7274
7275 * common/config/i386/i386-common.c
7276 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7277 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7278 (ix86_handle_option): Handle OPT_mavx512dq.
7279 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7280 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7281 set -mavx512dq accordingly.
7282 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7283 OPTION_MASK_ISA_AVX512DQ.
7284 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7285 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7286 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7287 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7288 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7289 (TARGET_AVX512DQ_P(x)): Ditto.
7290 * config/i386/i386.opt: Add mavx512dq.
7291
7292 2014-08-08 Richard Biener <rguenther@suse.de>
7293
7294 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7295 target_percent, target_percent_s): Export.
7296 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7297 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7298 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7299 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7300 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7301 Move to gimple-fold.c.
7302 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7303 strcat and strcpy.
7304 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7305 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7306 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7307 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7308 (rewrite_call_expr_array): Remove.
7309 (fold_builtin_sprintf_chk): Likewise.
7310 (fold_builtin_snprintf_chk): Likewise.
7311 (fold_builtin_varargs): Remove handling of sprintf_chk,
7312 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7313 (gimple_fold_builtin_sprintf_chk): Remove.
7314 (gimple_fold_builtin_snprintf_chk): Likewise.
7315 (gimple_fold_builtin_varargs): Likewise.
7316 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7317 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7318 * gimple.c (gimple_seq_add_seq_without_update): New function.
7319 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7320 * gimple-fold.c: Include output.h.
7321 (gsi_replace_with_seq_vops): New function, split out from ...
7322 (gimplify_and_update_call_from_tree): ... here.
7323 (replace_call_with_value): New function.
7324 (replace_call_with_call_and_fold): Likewise.
7325 (var_decl_component_p): Moved from builtins.c.
7326 (gimple_fold_builtin_memory_op): Moved from builtins.c
7327 fold_builtin_memory_op and rewritten to GIMPLE.
7328 (gimple_fold_builtin_memset): Likewise.
7329 (gimple_fold_builtin_strcpy): Likewise.
7330 (gimple_fold_builtin_strncpy): Likewise.
7331 (gimple_fold_builtin_strcat): Likewise.
7332 (gimple_fold_builtin_fputs): Likewise.
7333 (gimple_fold_builtin_memory_chk): Likewise.
7334 (gimple_fold_builtin_stxcpy_chk): Likewise.
7335 (gimple_fold_builtin_stxncpy_chk): Likewise.
7336 (gimple_fold_builtin_snprintf_chk): Likewise.
7337 (gimple_fold_builtin_sprintf_chk): Likewise.
7338 (gimple_fold_builtin_strlen): New function.
7339 (gimple_fold_builtin_with_strlen): New function split out from
7340 gimple_fold_builtin.
7341 (gimple_fold_builtin): Change signature and handle
7342 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7343 here. Call gimple_fold_builtin_with_strlen.
7344 (gimple_fold_call): Adjust.
7345
7346 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7347
7348 * calls.c (precompute_arguments): Check
7349 promoted_for_signed_and_unsigned_p and set the promoted mode.
7350 (promoted_for_signed_and_unsigned_p): New function.
7351 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7352 and set the promoted mode.
7353 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7354 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7355 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7356
7357
7358 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7359
7360 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7361 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7362 (expand_call): Likewise.
7363 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7364 to get promoted mode.
7365 * combine.c (record_promoted_value): Skip > 0 comparison with
7366 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7367 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7368 of SUBREG_PROMOTED_UNSIGNED_P.
7369 (convert_modes): Likewise.
7370 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7371 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7372 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7373 SUBREG_PROMOTED_UNSIGNED_SET.
7374 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7375 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7376 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7377 SUBREG_PROMOTED_SET.
7378 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7379 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7380 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7381 of SUBREG_PROMOTED_UNSIGNED_P.
7382 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7383 (SUBREG_PROMOTED_SET): New define.
7384 (SUBREG_PROMOTED_GET): Likewise.
7385 (SUBREG_PROMOTED_SIGN): Likewise.
7386 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7387 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7388 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7389 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7390 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7391 (nonzero_bits1): Skip > 0 comparison with the results as
7392 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7393 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7394 of !SUBREG_PROMOTED_UNSIGNED_P.
7395 * simplify-rtx.c (simplify_unary_operation_1): Use new
7396 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7397 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7398 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7399 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7400
7401 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7402
7403 * ipa-devirt.c: Include gimple-pretty-print.h
7404 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7405 further tests.
7406 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7407 (get_polymorphic_call_info): Fix return value
7408 (type_change_info): New sturcture based on ipa-prop
7409 variant.
7410 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7411 based on ipa-prop variant.
7412 (extr_type_from_vtbl_ptr_store): New function
7413 based on ipa-prop variant.
7414 (record_known_type): New function.
7415 (check_stmt_for_type_change): New function.
7416 (get_dynamic_type): New function.
7417 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7418 * tree-ssa-pre.c: ipa-utils.h
7419 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7420 machinery; sanity check with ipa-prop devirtualization.
7421 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7422 polymorphic flag.
7423
7424 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7425
7426 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7427 * alias.c, cfgexpand.c, cgraphbuild.c,
7428 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7429 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7430 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7431 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7432 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7433 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7434 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7435 dse.c, except.c, gengtype.c, gimple-expr.c,
7436 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7437 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7438 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7439 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7440 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7441 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7442 pointer-set.h.
7443 * pointer-set.c: Remove file.
7444 * pointer-set.h: Remove file.
7445
7446 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7447
7448 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7449 * config/arm/types.md (f_sels, f_seld): Delete.
7450
7451 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7452
7453 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7454 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7455 (aarch64_movdi_<mode>high): Likewise.
7456 (aarch64_mov<mode>high_di): Likewise.
7457 (aarch64_movdi_<mode>low): Likewise.
7458 (aarch64_mov<mode>low_di): Likewise.
7459 (aarch64_movtilow_tilow): Likewise.
7460 Add comment explaining usage of fp,simd attributes and of
7461 TARGET_FLOAT and TARGET_SIMD.
7462
7463 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7464 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7465
7466 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7467 Use MOVN when one of the half-words is 0xffff.
7468
7469 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7470
7471 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7472
7473 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7474
7475 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7476 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7477 (rfs_str): String corresponding to RFS_* constants.
7478 (rank_for_schedule_stats_t): New typedef.
7479 (rank_for_schedule_stats): New static variable.
7480 (rfs_result): New static function.
7481 (rank_for_schedule): Track statistics for deciding heuristics.
7482 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7483 static functions.
7484 (ready_sort): Use them for debug printouts.
7485 (schedule_block): Init statistics state. Print statistics on
7486 rank_for_schedule decisions.
7487
7488 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7489
7490 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7491
7492 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7493
7494 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7495 constraint.
7496
7497 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7498
7499 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7500 function to not conflict.
7501 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7502 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7503 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7504 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7505 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7506 of pointer_map.
7507
7508 2014-08-07 Marek Polacek <polacek@redhat.com>
7509
7510 * fold-const.c (fold_binary_loc): Add folding of
7511 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7512
7513 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7514
7515 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7516 instead of type size.
7517 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7518
7519 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7520
7521 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7522 (*thumb1_movqi_insn): Likewise.
7523 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7524
7525 2014-08-07 Tom de Vries <tom@codesourcery.com>
7526
7527 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7528 (glibc_2_11_or_earlier): Remove effective-target keywords.
7529
7530 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7531
7532 * config/arm/arm.c (bdesc_2arg): Fix typo.
7533 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7534
7535 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7536
7537 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7538
7539 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7540
7541 PR debug/61923
7542 * haifa-sched.c (advance_one_cycle): Fix dump.
7543 (schedule_block): Don't advance cycle if we are already at the
7544 beginning of the cycle.
7545
7546 2014-08-06 Martin Jambor <mjambor@suse.cz>
7547
7548 PR ipa/61393
7549 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7550
7551 2014-08-06 Richard Biener <rguenther@suse.de>
7552
7553 PR lto/62034
7554 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7555 SCCs here.
7556 (lto_input_tree): Pop SCCs here.
7557
7558 2014-08-06 Richard Biener <rguenther@suse.de>
7559
7560 PR tree-optimization/61320
7561 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7562 handle misaligned loads.
7563
7564 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7565
7566 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7567 (aarch64_expand_vec_perm_const): Check for dup before zip.
7568
7569 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7570
7571 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7572 CONST_INT_P instead of GET_CODE and compare.
7573 (aarch64_select_cc_mode): Likewise.
7574 (aarch64_print_operand): Likewise.
7575 (aarch64_rtx_costs): Likewise.
7576 (aarch64_simd_valid_immediate): Likewise.
7577 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7578 (aarch64_simd_emit_pair_result_insn): Likewise.
7579
7580 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7581
7582 * gdbhooks.py (find_gcc_source_dir): New helper function.
7583 (class PassNames): New class, locating and parsing passes.def.
7584 (class BreakOnPass): New command "break-on-pass".
7585
7586 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7587
7588 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7589 getting olde.
7590
7591 2014-08-05 Richard Biener <rguenther@suse.de>
7592
7593 PR rtl-optimization/61672
7594 * emit-rtl.h (mem_attrs_eq_p): Declare.
7595 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7596 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7597 * cfgcleanup.c (merge_memattrs): Likewise.
7598 Include emit-rtl.h.
7599
7600 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7601
7602 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7603 rather than singleton vectors.
7604 (vqdmlsls_lane_s32): Likewise.
7605
7606 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7607
7608 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7609 Use VSDQ_HSI mode iterator.
7610 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7611 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7612 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7613 Use BUILTIN_VDQHS macro.
7614 (sqrdmulh_laneq): Likewise.
7615 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7616 (vqdmlals_laneq_s32): Likewise.
7617 (vqdmlslh_laneq_s16): Likewise.
7618 (vqdmlsls_laneq_s32): Likewise.
7619 (vqdmulhh_laneq_s16): Likewise.
7620 (vqdmulhs_laneq_s32): Likewise.
7621 (vqrdmulhh_laneq_s16): Likewise.
7622 (vqrdmulhs_laneq_s32): Likewise.
7623
7624 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7625
7626 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7627 (vmuld_laneq_f64): Likewise.
7628 (vmuls_laneq_f32): Likewise.
7629 (vmul_n_f64): Likewise.
7630 (vmuld_lane_f64): Reimplement in C.
7631 (vmuls_lane_f32): Likewise.
7632
7633 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7634
7635 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7636 to reservation.
7637 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7638
7639 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7640
7641 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7642 (rbitsi2): Likewise.
7643 (*arm_rev): Set predicable and predicable_short_it attributes.
7644
7645 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7646
7647 * convert.c (convert_to_integer): Guard transformation to lrint by
7648 -fno-math-errno.
7649
7650 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7651
7652 * config/aarch64/aarch64-builtins.c
7653 (aarch64_simd_builtin_type_mode): Delete.
7654 (v8qi_UP): Remap to V8QImode.
7655 (v4hi_UP): Remap to V4HImode.
7656 (v2si_UP): Remap to V2SImode.
7657 (v2sf_UP): Remap to V2SFmode.
7658 (v1df_UP): Remap to V1DFmode.
7659 (di_UP): Remap to DImode.
7660 (df_UP): Remap to DFmode.
7661 (v16qi_UP):V16QImode.
7662 (v8hi_UP): Remap to V8HImode.
7663 (v4si_UP): Remap to V4SImode.
7664 (v4sf_UP): Remap to V4SFmode.
7665 (v2di_UP): Remap to V2DImode.
7666 (v2df_UP): Remap to V2DFmode.
7667 (ti_UP): Remap to TImode.
7668 (ei_UP): Remap to EImode.
7669 (oi_UP): Remap to OImode.
7670 (ci_UP): Map to CImode.
7671 (xi_UP): Remap to XImode.
7672 (si_UP): Remap to SImode.
7673 (sf_UP): Remap to SFmode.
7674 (hi_UP): Remap to HImode.
7675 (qi_UP): Remap to QImode.
7676 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7677 (VAR1): Build builtin name.
7678 (aarch64_init_simd_builtins): Remove dead code.
7679
7680 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7681
7682 * graphite-isl-ast-to-gimple.c:
7683 (set_options): New function.
7684 (scop_to_isl_ast): Add calling of set_options.
7685
7686 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7687
7688 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7689 (analyze_iv_to_split_insn): Don't initialize them.
7690 (get_ivts_expr): Removed.
7691 (allocate_basic_variable, insert_base_initialization): Use
7692 SET_SRC instead of *get_ivts_expr.
7693 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7694
7695 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7696
7697 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7698 (translate_isl_ast_for_loop): Add checking of the
7699 flag_loop_parallelize_all.
7700 (ast_build_before_for): New function.
7701 (scop_to_isl_ast): Add checking of the
7702 flag_loop_parallelize_all.
7703 * graphite-dependences.c: Move the defenition of the
7704 scop_get_dependences from graphite-optimize-isl.c to this file.
7705 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7706 (carries_deps): Add checking of the x's value.
7707 * graphite-optimize-isl.c: Move the defenition of the
7708 scop_get_dependences to graphite-dependences.c.
7709 * graphite-poly.h: Add declarations of scop_get_dependences
7710 and carries_deps.
7711
7712 2014-08-04 Rohit <rohitarulraj@freescale.com>
7713
7714 PR target/60102
7715 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7716 names.
7717 (alt_reg_names): Likewise.
7718 (rs6000_dwarf_register_span): For SPE high registers, replace
7719 dwarf register numbers with GCC hard register numbers.
7720 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7721 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7722 register number for the corresponding GCC hard register number.
7723 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7724 newly added GCC hard register numbers for SPE high registers.
7725 (DWARF_FRAME_REGISTERS): Likewise.
7726 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7727 (DWARF_FRAME_REGNUM): Likewise.
7728 (FIXED_REGISTERS): Likewise.
7729 (CALL_USED_REGISTERS): Likewise.
7730 (CALL_REALLY_USED_REGISTERS): Likewise.
7731 (REG_ALLOC_ORDER): Likewise.
7732 (enum reg_class): Likewise.
7733 (REG_CLASS_NAMES): Likewise.
7734 (REG_CLASS_CONTENTS): Likewise.
7735 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7736
7737 2014-08-04 Richard Biener <rguenther@suse.de>
7738
7739 * gimple-fold.h (gimple_fold_builtin): Remove.
7740 * gimple-fold.c (gimple_fold_builtin): Make static.
7741 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7742 fold_stmt, not gimple_fold_builtin.
7743
7744 2014-08-04 Martin Liska <mliska@suse.cz>
7745
7746 * cgraph.h (csi_end_p): Removed.
7747 (csi_next): Likewise.
7748 (csi_node): Likewise.
7749 (csi_start): Likewise.
7750 (cgraph_node_in_set_p): Likewise.
7751 (cgraph_node_set_size): Likewise.
7752 (vsi_end_p): Likewise.
7753 (vsi_next): Likewise.
7754 (vsi_node): Likewise.
7755 (vsi_start): Likewise.
7756 (varpool_node_set_size): Likewise.
7757 (cgraph_node_set_nonempty_p): Likewise.
7758 (varpool_node_set_nonempty_p): Likewise.
7759 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7760 cgraph_node_set.
7761 * ipa-inline-transform.c: Likewise.
7762 * ipa-utils.c (cgraph_node_set_new): Removed.
7763 (cgraph_node_set_add): Likewise.
7764 (cgraph_node_set_remove): Likewise.
7765 (cgraph_node_set_find): Likewise.
7766 (dump_cgraph_node_set): Likewise.
7767 (debug_cgraph_node_set): Likewise.
7768 (free_cgraph_node_set): Likewise.
7769 (varpool_node_set_new): Likewise.
7770 (varpool_node_set_add): Likewise.
7771 (varpool_node_set_remove): Likewise.
7772 (varpool_node_set_find): Likewise.
7773 (dump_varpool_node_set): Likewise.
7774 (free_varpool_node_set): Likewise.
7775 (debug_varpool_node_set): Likewise.
7776 * tree-emutls.c (struct tls_var_data):
7777 (emutls_index): Removed.
7778 (emutls_decl): Likewise.
7779 (gen_emutls_addr): Function implementation uses newly added
7780 hash_map<varpool_node *, tls_var_data>.
7781 (clear_access_vars): Likewise.
7782 (create_emultls_var): Likewise.
7783 (ipa_lower_emutls): Likewise.
7784 (reset_access): New function.
7785
7786 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7787
7788 * config/i386/i386.c (ix86_option_override_internal): Add
7789 PTA_RDRND and PTA_MOVBE for bdver4.
7790
7791 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7792 James Greenhalgh <james.greenhalgh@arm.com>
7793
7794 * doc/md.texi (clrsb): Document.
7795 (clz): Change reference to x into operand 1.
7796 (ctz): Likewise.
7797 (popcount): Likewise.
7798
7799 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7800
7801 PR target/61713
7802 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7803 move to subtarget in serial version if result is ignored.
7804
7805 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7806 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7807
7808 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7809 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7810 (sched_analyze_insn): Update use of try_group_insn to
7811 sched_macro_fuse_insns.
7812 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7813 arguments that are not conditional jumps.
7814
7815 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7816
7817 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7818 family information. Handle BTVER2 cpu with cpuid family value.
7819
7820 2014-08-04 Tom de Vries <tom@codesourcery.com>
7821
7822 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7823 (glibc_2_11_or_earlier): Document effective-target keywords.
7824
7825 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7826
7827 * ipa-devirt.c (odr_type_warn_count): Add type.
7828 (possible_polymorphic_call_targets): Set it.
7829 (ipa_devirt): Use it.
7830
7831 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7832
7833 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7834 Document.
7835 * ipa-devirt.c: Include hash-map.h
7836 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7837 (clear_speculation): Break out of ...
7838 (get_class_context): ... here; speed up handling obviously useless
7839 speculations.
7840 (odr_type_warn_count, decl_warn_count): New structures.
7841 (final_warning_record): New structure.
7842 (final_warning_records): New static variable.
7843 (possible_polymorphic_call_targets): Cleanup handling of
7844 speculative info; do not build speculation when user do not care;
7845 record info about warnings when asked for.
7846 (add_decl_warning): New function.
7847 (type_warning_cmp): New function.
7848 (decl_warning_cmp): New function.
7849 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7850 (gate): Enable pass when warnings are requested.
7851 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7852 options.
7853
7854 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7855
7856 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7857 Fix cast.
7858 (hash_map::remove): New method.
7859 (hash_map::traverse): New method.
7860 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7861 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7862 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7863 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7864 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7865 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7866 pointer_map.
7867
7868 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7869
7870 * hash-set.h: new File.
7871 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7872 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7873 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7874 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7875 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7876 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7877 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7878 varpool.c: Use hash_set instead of pointer_set.
7879
7880 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7881
7882 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7883
7884 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7885
7886 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7887 for frame access when strict_p is false.
7888
7889 2014-08-01 Renlin Li <renlin.li@arm.com>
7890 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7891
7892 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7893 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7894 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7895 Declaration.
7896 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7897 predicate.
7898 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7899 aarch64_mem_pair_offset.
7900
7901 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7902
7903 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7904 offset.
7905 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7906 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7907
7908 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7909
7910 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7911
7912 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7913
7914 PR regression/61510
7915 * cgraphunit.c (analyze_functions): Use get_create rather than get
7916 for decls which are clones of abstract functions.
7917
7918 2014-08-01 Martin Liska <mliska@suse.cz>
7919
7920 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7921 * ipa-prop.h (count_formal_params): Global function created from static.
7922 * ipa-prop.c (count_formal_params): Likewise.
7923 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7924 profiles for semantically equivalent functions.
7925 * passes.c (do_per_function): If we load body of a function
7926 during WPA, this condition should behave same.
7927 * varpool.c (ctor_for_folding): More tolerant assert for variable
7928 aliases created during WPA.
7929
7930 2014-08-01 Martin Liska <mliska@suse.cz>
7931
7932 * doc/invoke.texi (Options That Control Optimization): Documentation
7933 for -foptimize-strlen introduced. Optimization levels default options
7934 fixed.
7935
7936 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7937
7938 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7939 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7940 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7941 type to bool.
7942 * stor-layout.h (min_align_of_type): New prototype.
7943 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7944 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7945 check.
7946 * ubsan.c: Include builtins.h.
7947 (ubsan_expand_bounds_ifn): Change return type to bool,
7948 always return true.
7949 (ubsan_expand_null_ifn): Change return type to bool, change
7950 argument to gimple_stmt_iterator *. Handle both null and alignment
7951 sanitization, take type from ckind argument's type rather than
7952 first argument.
7953 (instrument_member_call): Removed.
7954 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7955 Handle both null and alignment sanitization, don't say whole
7956 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7957 call instead of 2 argument.
7958 (instrument_null): Adjust instrument_mem_ref caller. Don't
7959 instrument calls here.
7960 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7961 like SANITIZE_NULL.
7962 * stor-layout.c (min_align_of_type): New function.
7963 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7964 Or it into SANITIZE_UNDEFINED.
7965 * doc/invoke.texi (-fsanitize=alignment): Document.
7966
7967 2014-07-31 Andi Kleen <ak@linux.intel.com>
7968
7969 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7970
7971 2014-07-31 Andi Kleen <ak@linux.intel.com>
7972
7973 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7974 inchash.
7975 (vn_reference_compute_hash): Dito.
7976 (vn_nary_op_compute_hash): Dito.
7977 (vn_phi_compute_hash): Dito.
7978 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7979
7980 2014-07-31 Andi Kleen <ak@linux.intel.com>
7981
7982 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7983 Rename to inchash:add_expr_commutative. Convert to inchash.
7984 (iterative_hash_hashable_expr): Rename to
7985 inchash:add_hashable_expr. Convert to inchash.
7986 (avail_expr_hash): Dito.
7987
7988 2014-07-31 Andi Kleen <ak@linux.intel.com>
7989
7990 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7991 Convert to inchash.
7992
7993 2014-07-31 Andi Kleen <ak@linux.intel.com>
7994
7995 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7996
7997 2014-07-31 Andi Kleen <ak@linux.intel.com>
7998
7999 * Makefile.in (OBJS): Add rtlhash.o
8000 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8001 (loc_checksum): Dito.
8002 (loc_checksum_ordered): Dito.
8003 (hash_loc_operands): Dito.
8004 (hash_locs): Dito.
8005 (hash_loc_list): Dito.
8006 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8007 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8008 * rtlhash.c: New file.
8009 * rtlhash.h: New file.
8010
8011 2014-07-31 Andi Kleen <ak@linux.intel.com>
8012
8013 * inchash.h (inchash): Change inchash class to namespace.
8014 (class hash): ... Rename from inchash.
8015 (add_object): Move from macro to class template.
8016 * lto-streamer-out.c (hash_tree): Change inchash
8017 to inchash::hash.
8018 * tree.c (build_type_attribute_qual_variant): Dito.
8019 (type_hash_list): Dito.
8020 (attribute_hash_list): Dito.
8021 (iterative_hstate_expr): Rename to inchash::add_expr
8022 (build_range_type_1): Change inchash to inchash::hash
8023 and use hash::add_expr.
8024 (build_array_type_1): Dito.
8025 (build_function_type): Dito
8026 (build_method_type_directly): Dito.
8027 (build_offset_type): Dito.
8028 (build_complex_type): Dito.
8029 (make_vector_type): Dito.
8030 * tree.h (iterative_hash_expr): Dito.
8031
8032 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8033
8034 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8035
8036 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8037
8038 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8039 correct alphabetical position.
8040 (vpaddd_f64): Rewrite using builtins.
8041 (vpaddd_s64): Move to correct alphabetical position.
8042 (vpaddd_u64): New.
8043
8044 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8045
8046 PR target/61844
8047 * config/sh/sh.c (sh_legitimate_address_p,
8048 sh_legitimize_reload_address): Handle reg+reg address modes when
8049 ALLOW_INDEXED_ADDRESS is false.
8050 * config/sh/predicates.md (general_movsrc_operand,
8051 general_movdst_operand): Likewise.
8052
8053 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8054
8055 * config/aarch64/aarch64-builtins.c
8056 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8057 BYTES_BIG_ENDIAN.
8058
8059 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8060
8061 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8062 the generated mask based on BYTES_BIG_ENDIAN.
8063 (aarch64_simd_check_vect_par_cnst_half): New.
8064 * config/aarch64/aarch64-protos.h
8065 (aarch64_simd_check_vect_par_cnst_half): New.
8066 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8067 the check out to aarch64_simd_check_vect_par_cnst_half.
8068 (vect_par_cnst_lo_half): Likewise.
8069 * config/aarch64/aarch64-simd.md
8070 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8071 (move_hi_quad_<mode>): Always generate a low mask.
8072
8073 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8074
8075 * doc/invoke.texi (AVR Options): Add documentation about
8076 __AVR_DEVICE_NAME__ built-in macro.
8077
8078 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8079
8080 PR target/61948
8081 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8082 constraints are satisfied.
8083 (<shift>di3_neon): Likewise.
8084
8085 2014-07-31 Richard Biener <rguenther@suse.de>
8086
8087 PR tree-optimization/61964
8088 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8089 by structural equality.
8090
8091 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8092
8093 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8094 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8095 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8096 New enums.
8097 * gcc.c (sanitize_spec_function): Support new option.
8098 (SANITIZER_SPEC): Remove now redundant check.
8099 * opts.c (common_handle_option): Support new option.
8100 (finish_options): Check for incompatibilities.
8101 * toplev.c (process_options): Split userspace-specific checks.
8102
8103 2014-07-31 Richard Biener <rguenther@suse.de>
8104
8105 * lto-streamer.h (struct output_block): Remove global.
8106 (struct data_in): Remove labels, num_named_labels and
8107 num_unnamed_labels.
8108 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8109 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8110
8111 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8112
8113 PR c++/60517
8114 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8115 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8116 (isolate_path): New argument to avoid inserting a trap.
8117 (find_implicit_erroneous_behaviour): Handle returning the address
8118 of a local variable.
8119 (find_explicit_erroneous_behaviour): Likewise.
8120
8121 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8122
8123 PR lto/61868
8124 * toplev.c (init_random_seed): Move piece of code never called to
8125 set_random_seed.
8126 (set_random_seed): see above.
8127
8128 2014-07-31 Tom de Vries <tom@codesourcery.com>
8129
8130 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8131
8132 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8133
8134 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8135 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8136
8137 2014-07-31 Richard Biener <rguenther@suse.de>
8138
8139 * data-streamer.h (streamer_write_data_stream): Declare here,
8140 renamed from ...
8141 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8142 * lto-cgraph.c (lto_output_node): Adjust.
8143 (lto_output_varpool_node): Likewise.
8144 * data-streamer-out.c (streamer_string_index): Likewise.
8145 (streamer_write_data_stream, lto_append_block): Move from ...
8146 * lto-section-out.c (lto_output_data_stream,
8147 lto_append_block): ... here.
8148
8149 2014-07-30 Mike Stump <mikestump@comcast.net>
8150
8151 * configure.ac: Also check for popen.
8152 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8153 * configure: Regenerate.
8154 * config.in: Regenerate.
8155
8156 2014-07-30 Martin Jambor <mjambor@suse.cz>
8157
8158 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8159 parameter to gimple.
8160
8161 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8162
8163 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8164 address as second parameter to __tpf_eh_return routine.
8165
8166 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8167
8168 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8169 Thumb2.
8170
8171 2014-07-30 Tom Tromey <tromey@redhat.com>
8172
8173 PR c/59855
8174 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8175 * doc/extend.texi (Type Attributes): Document designated_init
8176 attribute.
8177
8178 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8179
8180 * graphite-isl-ast-to-gimple.c:
8181 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8182 (gcc_expression_from_isl_expression): Pass type to
8183 gcc_expression_from_isl_ast_expr_id.
8184
8185 2014-07-30 Richard Biener <rguenther@suse.de>
8186
8187 * lto-streamer.h (lto_write_data): New function.
8188 * langhooks.c (lhd_append_data): Do not free block.
8189 * lto-section-out.c (lto_write_data): New function writing
8190 raw data to the current section.
8191 (lto_write_stream): Adjust for langhook semantic change.
8192 (lto_destroy_simple_output_block): Write header directly.
8193 * lto-opts.c (lto_write_options): Write options directly.
8194 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8195 (lto_output_toplevel_asms): Likewise.
8196 (copy_function_or_variable): Copy data directly.
8197 (write_global_references): Output index table directly.
8198 (lto_output_decl_state_refs): Likewise.
8199 (write_symbol): Write data directly.
8200 (produce_symtab): Adjust.
8201 (produce_asm_for_decls): Output header and refs directly.
8202
8203 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8204
8205 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8206 to speculative_targets
8207 (get_class_context): Fix handling of contextes without outer type;
8208 avoid matching non-polymorphic types in LTO.
8209 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8210 parameter to speculative_targetsp; handle speculation.
8211 (dump_possible_polymorphic_call_targets): Update dumping.
8212
8213 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8214
8215 * common.opt (Wodr): Enable by default.
8216
8217 2014-07-29 Olivier Hainque <hainque@adacore.com>
8218
8219 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8220
8221 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8222
8223 PR bootstrap/61914
8224 * gengtype.c (strtoken): New function.
8225 (create_user_defined_type): Replace strtok with strtoken.
8226
8227 2014-07-29 Nathan Sidwell <nathan@acm.org>
8228
8229 * gcov-io.c (gcov_var): Make hidden.
8230 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8231 (gcov_do_dump): Declare.
8232 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8233
8234 2014-07-29 Martin Jambor <mjambor@suse.cz>
8235
8236 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8237 parameter to gimple.
8238 (sra_modify_assign): Likewise.
8239
8240 2014-07-29 Richard Biener <rguenther@suse.de>
8241
8242 PR middle-end/52478
8243 * expr.c (expand_expr_real_2): Revert last change.
8244
8245 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8246
8247 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8248 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8249 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8250 call.
8251 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8252 (contains_type_p): Forward declare.
8253 (polymorphic_call_target_hasher::hash): Hash speculative info.
8254 (polymorphic_call_target_hasher::equal): Compare speculative info.
8255 (get_class_context): Handle speuclation.
8256 (contains_type_p): Update.
8257 (get_polymorphic_call_info_for_decl): Update.
8258 (walk_ssa_copies): Break out from ...
8259 (get_polymorphic_call_info): ... here; set speculative context
8260 before giving up.
8261 * ipa-prop.c (ipa_write_indirect_edge_info,
8262 ipa_read_indirect_edge_info): Stream speculative context.
8263 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8264 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8265 SPECULATIVE_MAYBE_DERIVED_TYPE).
8266 (possible_polymorphic_call_targets overriders): Update.
8267 (dump_possible_polymorphic_call_targets overriders): Update.
8268 (dump_possible_polymorphic_call_target_p overriders): Update.
8269
8270 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8271
8272 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8273 ipa-devirt path; fix thinko there.
8274
8275 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8276
8277 * config/i386/i386.c (ix86_return_in_memory): Replace one
8278 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8279
8280 2014-07-28 Marek Polacek <polacek@redhat.com>
8281
8282 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8283
8284 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8285
8286 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8287 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8288 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8289 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8290 (USE_LD_AS_NEEDED): Likewise.
8291 (ASM_APP_ON): Likewise.
8292 (ASM_APP_OFF): Likewise.
8293 (TARGET_POSIX_IO): Likewise.
8294 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8295 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8296 (USE_LD_AS_NEEDED): Likewise.
8297 (ASM_APP_ON): Likewise.
8298 (ASM_APP_OFF): Likewise.
8299 (TARGET_POSIX_IO): Likewise.
8300
8301 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8302
8303 PR middle-end/61734
8304 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8305 operators other than the equality operators.
8306
8307 2014-07-28 Richard Biener <rguenther@suse.de>
8308
8309 PR middle-end/52478
8310 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8311 sure to register SImode ones, not only >= word_mode ones.
8312 * expr.c (expand_expr_real_2): When expanding -ftrapv
8313 binops do not use OPTAB_LIB_WIDEN.
8314
8315 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8316
8317 PR middle-end/61919
8318 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8319 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8320 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8321 inserting them in the insn stream.
8322
8323 2014-07-28 Marek Polacek <polacek@redhat.com>
8324
8325 PR middle-end/61913
8326 * common.opt (Wodr): Add Var.
8327
8328 2014-07-28 Richard Biener <rguenther@suse.de>
8329
8330 PR tree-optimization/61921
8331 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8332 if there is a varpool node before dereferencing it.
8333
8334 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8335
8336 * graphite-sese-to-poly.c:
8337 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8338 id of the pbb), which contains pointer to the pbb1.
8339
8340 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8341
8342 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8343
8344 * graphite-isl-ast-to-gimple.c:
8345 (graphite_create_new_guard): New function.
8346 (translate_isl_ast_node_if): New function.
8347 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8348
8349 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8350
8351 2014-07-27 Anthony Green <green@moxielogic.com>
8352
8353 * config.gcc: Add moxie-*-moxiebox* configuration.
8354 * config/moxie/moxiebox.h: New file.
8355
8356 2014-07-26 Andrew Pinski <apinski@cavium.com>
8357
8358 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8359 from the read only register.
8360
8361 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8362
8363 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8364 as the allocation class if it isn't likely to be spilled.
8365
8366 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8367
8368 * rtl.h (tls_referenced_p): Declare.
8369 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8370 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8371 (mips_cannot_force_const_mem): Use tls_referenced_p.
8372 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8373 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8374 instead of pa_tls_referenced_p.
8375 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8376 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8377 (pa_legitimate_constant_p): Likewise.
8378 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8379 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8380 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8381 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8382 rs6000_tls_referenced_p.
8383 (rs6000_tls_symbol_ref_1): Delete.
8384
8385 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8386
8387 PR target/44551
8388 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8389 Optimize inverse of a VEC_CONCAT.
8390
8391 2014-07-25 Xinliang David Li <davidxl@google.com>
8392
8393 * params.def: New parameter.
8394 * coverage.c (get_coverage_counts): Check new flag.
8395 (coverage_compute_profile_id): Check new flag.
8396 (coverage_begin_function): Check new flag.
8397 (coverage_end_function): Check new flag.
8398 * value-prof.c (coverage_node_map_initialized_p): New function.
8399 (init_node_map): Populate map with all functions.
8400 * doc/invoke.texi: Document new parameter.
8401
8402 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8403 Richard Biener <rguenther@suse.de>
8404
8405 * lto-streamer-out.c (struct sccs): Turn to ...
8406 (class DFS): ... this one; refactor the DFS walk so it can
8407 be re-done on per-SCC basis.
8408 (DFS::DFS): New constructor.
8409 (DFS::~DFS): New destructor.
8410 (hash_tree): Add new MAP argument holding in-SCC hash values;
8411 remove POINTER_TYPE hashing hack.
8412 (scc_entry_compare): Rename to ...
8413 (DFS::scc_entry_compare): ... this one.
8414 (hash_scc): Rename to ...
8415 (DFS::hash_scc): ... this one; pass output_block instead
8416 of streamer_cache; work harder to get unique and stable SCC
8417 hashes.
8418 (DFS_write_tree): Rename to ...
8419 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8420 (lto_output_tree): Update.
8421
8422 2014-07-25 Andi Kleen <ak@linux.intel.com>
8423
8424 * lto-streamer-out.c (hash_tree): Convert to inchash.
8425
8426 2014-07-25 Andi Kleen <ak@linux.intel.com>
8427
8428 * tree.c (build_type_attribute_qual_variant): Use inchash.
8429 (type_hash_list): Dito.
8430 (attribute_hash_list): Dito
8431 (iterative_hstate_expr): Dito.
8432 (iterative_hash_expr): Dito.
8433 (build_range_type_1): Dito.
8434 (build_array_type_1): Dito.
8435 (build_function_type): Dito.
8436 (build_method_type_directly): Dito.
8437 (build_offset_type): Dito.
8438 (build_complex_type): Dito.
8439 (make_vector_type): Dito.
8440 * tree.h (iterative_hash_expr): Add compat wrapper.
8441 (iterative_hstate_expr): Add.
8442
8443 2014-07-25 Andi Kleen <ak@linux.intel.com>
8444
8445 * Makefile.in (OBJS): Add inchash.o.
8446 (PLUGIN_HEADERS): Add inchash.h.
8447 * ipa-devirt.c: Include inchash.h.
8448 * lto-streamer-out.c: Dito.
8449 * tree-ssa-dom.c: Dito.
8450 * tree-ssa-pre.c: Dito.
8451 * tree-ssa-sccvn.c: Dito.
8452 * tree-ssa-tail-merge.c: Dito.
8453 * asan.c: Dito.
8454 * tree.c (iterative_hash_hashval_t): Move to ...
8455 (iterative_hash_host_wide_int): Move to ...
8456 * inchash.c: Here. New file.
8457 * tree.h (iterative_hash_hashval_t): Move to ...
8458 (iterative_hash_host_wide_int): Move to ...
8459 * inchash.h: Here. New file.
8460
8461 2014-07-25 Richard Biener <rguenther@suse.de>
8462
8463 PR middle-end/61762
8464 PR middle-end/61894
8465 * fold-const.c (native_encode_int): Add and handle offset
8466 parameter to do partial encodings of expr.
8467 (native_encode_fixed): Likewise.
8468 (native_encode_real): Likewise.
8469 (native_encode_complex): Likewise.
8470 (native_encode_vector): Likewise.
8471 (native_encode_string): Likewise.
8472 (native_encode_expr): Likewise.
8473 * fold-const.c (native_encode_expr): Add offset parameter
8474 defaulting to -1.
8475 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8476 (fold_ctor_reference): Handle all reads from tcc_constant
8477 ctors.
8478
8479 2014-07-25 Richard Biener <rguenther@suse.de>
8480
8481 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8482 as possibly unused.
8483
8484 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8485
8486 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8487
8488 2014-07-24 Kyle McMartin <kyle@redhat.com>
8489
8490 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8491
8492 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8493
8494 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8495 Add prototype.
8496 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8497 function.
8498 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8499 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8500 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8501
8502 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8503
8504 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8505 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8506 aggregate types. Instead, *all* aggregate types, except for single-
8507 element or homogeneous float/vector aggregates, are quadword-aligned
8508 if required by their type alignment. Issue -Wpsabi note when a type
8509 is now treated differently than before.
8510
8511 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8512
8513 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8514 does not fit fully into floating-point registers, and there is still
8515 space in the register parameter area, use GPRs to pass those parts
8516 of the argument. Issue -Wpsabi note if any parameter is now treated
8517 differently than before.
8518 (rs6000_arg_partial_bytes): Update.
8519
8520 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8521
8522 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8523
8524 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8525
8526 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8527 * toplev.c (initialize_rtl): Don't use it. Move previously
8528 "language-dependent" calls to...
8529 (backend_init): ...here.
8530 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8531 Assert that RTL initialization hasn't happend yet.
8532
8533 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8534
8535 PR rtl-optimization/61629
8536 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8537 they have already been initialized.
8538
8539 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8540
8541 PR middle-end/61268
8542 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8543 DECL_INCOMING_RTL and entry_parm.
8544 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8545 * calls.c (load_register_parameters): Likewise argument values.
8546 (emit_library_call_value_1, store_one_arg): Likewise argument
8547 save areas.
8548 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8549 stack slot.
8550 * explow.c (validize_mem): Modify the argument in-place.
8551
8552 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8553
8554 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8555 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8556
8557 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8558
8559 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8560 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8561
8562 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8563
8564 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8565 (aarch64_save_callee_saves): New parameter "skip_wb".
8566 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8567
8568 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8569
8570 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8571 "wb_candidate2".
8572 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8573
8574 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8575
8576 * graphite-isl-ast-to-gimple.c:
8577 (graphite_create_new_loop): Add calling of isl_id_free to properly
8578 decrement reference counts.
8579
8580 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8581
8582 2014-07-24 Martin Liska <mliska@suse.cz>
8583 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8584 function used.
8585 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8586 (rs6000_code_end): Likewise.
8587
8588 2014-07-24 Martin Liska <mliska@suse.cz>
8589
8590 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8591 symtab_node funtion used.
8592 (rs6000_xcoff_declare_object_name): Likewise.
8593
8594 2014-07-24 Martin Liska <mliska@suse.cz>
8595
8596 * cgraphunit.c (compile): Correct function used.
8597
8598 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8599
8600 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8601 as non-indexable.
8602
8603 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8604
8605 PR lto/61802
8606 * varasm.c (bss_initializer_p): Handle offlined ctors.
8607 (align_variable, get_variable_align): Likewise.
8608 (make_decl_one_only): Likewise.
8609 (default_binds_local_p_1): Likewise.
8610 (decl_binds_to_current_def_p): Likewise.
8611 (get_variable_section): Get constructor if it is offlined.
8612 (assemble_variable_contents): Sanity check that the caller
8613 streamed in the ctor in LTO.
8614
8615 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8616
8617 * graphite-isl-ast-to-gimple.c:
8618 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8619 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8620 isl_ast_op_pdiv_r to the different case.
8621
8622 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8623
8624 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8625
8626 PR middle-end/61876
8627 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8628 when flag_errno_math is on.
8629
8630 2014-07-24 Martin Liska <mliska@suse.cz>
8631
8632 * cgraph.h (varpool_node):
8633 (availability get_availability (void)):
8634 created from cgraph_variable_initializer_availability
8635 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8636 created from: cgraph_variable_initializer_availability
8637 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8638 (void finalize_named_section_flags (void)):
8639 created from varpool_finalize_named_section_flags
8640 (bool assemble_decl (void)): created from varpool_assemble_decl
8641 (void analyze (void)): created from varpool_analyze_node
8642 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8643 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8644 (void remove_initializer (void)): created from varpool_remove_initializer
8645 (tree get_constructor (void)): created from varpool_get_constructor
8646 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8647 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8648 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8649 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8650 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8651 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8652 (static bool output_variables (void)): created from varpool_output_variables
8653 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8654 created from varpool_extra_name_alias
8655 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8656 (static void dump_varpool (FILE *f)): created from dump_varpool
8657 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8658 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8659 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8660 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8661 (void assemble_aliases (void)): created from assemble_aliases
8662
8663 2014-07-24 Martin Liska <mliska@suse.cz>
8664
8665 * cgraph.h (symtab_node):
8666 (void register_symbol (void)): created from symtab_register_node
8667 (void remove (void)): created from symtab_remove_node
8668 (void dump (FILE *f)): created from dump_symtab_node
8669 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8670 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8671 (struct ipa_ref *add_reference (symtab_node *referred_node,
8672 enum ipa_ref_use use_type)): created from add_reference
8673 (struct ipa_ref *add_reference (symtab_node *referred_node,
8674 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8675 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8676 gimple stmt)): created from maybe_add_reference
8677 (bool semantically_equivalent_p (symtab_node *target)): created from
8678 symtab_semantically_equivalent_p
8679 (void remove_from_same_comdat_group (void)): created from
8680 remove_from_same_comdat_group
8681 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8682 symtab_add_to_same_comdat_group
8683 (void dissolve_same_comdat_group_list (void)): created from
8684 symtab_dissolve_same_comdat_group_list
8685 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8686 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8687 created from symtab_alias_ultimate_target
8688 (inline symtab_node *next_defined_symbol (void)): created from
8689 symtab_next_defined_symbol
8690 (bool resolve_alias (symtab_node *target)): created from
8691 symtab_resolve_alias
8692 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8693 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8694 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8695 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8696 (void set_section (const char *section)): created from set_section_1
8697 (enum availability get_availability (void)): created from symtab_node_availability
8698 (void make_decl_local (void)): created from symtab_make_decl_local
8699 (bool real_symbol_p (void)): created from symtab_read_node
8700 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8701 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8702 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8703 symtab_in_same_comdat_p;
8704 (bool address_taken_from_non_vtable_p (void)): created from
8705 address_taken_from_non_vtable_p
8706 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8707 (static void dump_table (FILE *)): created from dump_symtab
8708 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8709 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8710 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8711 symtab_used_from_object_file_p
8712 (void dump_base (FILE *)): created from dump_symtab_base
8713 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8714 (void unregister (void)): created from symtab_unregister_node
8715 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8716 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8717 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8718 symtab_nonoverwritable_alias_1
8719 * cgraph.h (cgraph_node):
8720 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8721 created from cgraph_remove_node_and_inline_clones
8722 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8723 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8724 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8725 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8726 created from cgraph_function_node
8727 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8728 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8729 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8730 created from cgraph_create_clone
8731 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8732 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8733 created from cgraph_create_virtual_clone
8734 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8735 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8736 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8737 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8738 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8739 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8740 created from cgraph_function_version_info
8741 (struct cgraph_function_version_info *insert_new_function_version (void)):
8742 created from insert_new_cgraph_node_version
8743 (struct cgraph_function_version_info *function_version (void)): created from
8744 get_cgraph_node_version
8745 (void analyze (void)): created from analyze_function
8746 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8747 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8748 tree real_alias) cgraph_add_thunk
8749 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8750 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8751 created from cgraph_function_or_thunk_node
8752 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8753 created from expand_thunk
8754 (void reset (void)): created from cgraph_reset_node
8755 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8756 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8757 (void remove (void)): created from cgraph_remove_node
8758 (void dump (FILE *f)): created from dump_cgraph_node
8759 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8760 (bool get_body (void)): created from cgraph_get_body
8761 (void release_body (void)): created from cgraph_release_function_body
8762 (void unnest (void)): created from cgraph_unnest_node
8763 (void make_local (void)): created from cgraph_make_node_local
8764 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8765 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8766 gcov_type count, int freq)): created from cgraph_create_edge
8767 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8768 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8769 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8770 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8771 created from cgraph_create_edge_including_clones
8772 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8773 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8774 (void remove_callers (void)): created from cgraph_node_remove_callers
8775 (void remove_callees (void)): created from cgraph_node_remove_callees
8776 (enum availability get_availability (void)): created from cgraph_function_body_availability
8777 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8778 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8779 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8780 (void call_duplication_hooks (cgraph_node *node2)): created from
8781 cgraph_call_node_duplication_hooks
8782 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8783 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8784 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8785 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8786 (void call_function_insertion_hooks (void)):
8787 created from cgraph_call_function_insertion_hooks
8788 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8789 (bool local_p (void)): created from cgraph_local_node
8790 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8791 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8792 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8793 (inline bool only_called_directly_or_aliased_p (void)):
8794 created from cgraph_only_called_directly_or_aliased_p
8795 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8796 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8797 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8798 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8799 (bool can_remove_if_no_direct_calls_p (void)):
8800 created from cgraph_can_remove_if_no_direct_calls_p
8801 (inline bool has_gimple_body_p (void)):
8802 created from cgraph_function_with_gimple_body_p
8803 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8804 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8805 (static inline void debug_cgraph (void)): created from debug_cgraph
8806 (static void record_function_versions (tree decl1, tree decl2)):
8807 created from record_function_versions
8808 (static void delete_function_version (tree decl)):
8809 created from delete_function_version
8810 (static void add_new_function (tree fndecl, bool lowered)):
8811 created from cgraph_add_new_function
8812 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8813 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8814 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8815 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8816 (static cgraph_node *get_for_asmname (tree asmname)):
8817 created from cgraph_node_for_asm
8818 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8819 created from cgraph_same_body_alias
8820 (static bool used_from_object_file_p_worker (cgraph_node *node,
8821 void *): new function
8822 (static bool non_local_p (cgraph_node *node, void *)):
8823 created from cgraph_non_local_node_p_1
8824 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8825 created from verify_cgraph
8826 (static bool make_local (cgraph_node *node, void *)):
8827 created from cgraph_make_node_local
8828 (static cgraph_node *create_alias (tree alias, tree target)):
8829 created from cgraph_create_function_alias
8830 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8831 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8832 created from cgraph_create_edge_1
8833 * cgraph.h (varpool_node):
8834 (void remove (void)): created from varpool_remove_node
8835 (void dump (FILE *f)): created from dump_varpool_node
8836
8837 2014-07-24 Richard Biener <rguenther@suse.de>
8838
8839 PR ipa/61823
8840 * tree-ssa-structalias.c (create_variable_info_for_1):
8841 Use varpool_get_constructor.
8842 (create_variable_info_for): Likewise.
8843
8844 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8845
8846 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8847 subtract outgoing area size when restoring stack_pointer_rtx.
8848
8849 2014-07-24 Nick Clifton <nickc@redhat.com>
8850
8851 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8852 that operations are taking place in parallel.
8853 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8854
8855 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8856
8857 * omp-low.c (extract_omp_for_data): Add missing break statement.
8858
8859 2014-07-24 Richard Biener <rguenther@suse.de>
8860
8861 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8862 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8863 and adjust MOVE_RATIO query accordingly.
8864 (estimate_num_insns): Adjust callers.
8865 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8866 * ipa-cp.c (gather_context_independent_values,
8867 estimate_local_effects): Likewise.
8868 * ipa-split.c (consider_split): Likewise.
8869
8870 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8871
8872 * config/i386/driver-i386.c: Remove names of unused arguments and
8873 unnecessary unused attributes.
8874 * config/i386/host-mingw32.c: Likewise.
8875 * config/i386/i386.c: Likewise.
8876 * config/i386/winnt-stubs.c: Likewise.
8877 * config/i386/winnt.c: Likewise.
8878
8879 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8880
8881 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8882 (aarch64_gen_loadwb_pair): New helper function.
8883 (aarch64_expand_epilogue): Simplify code using new helper functions.
8884 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8885
8886 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8887
8888 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8889 (aarch64_gen_storewb_pair): New helper function.
8890 (aarch64_expand_prologue): Simplify code using new helper functions.
8891 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8892
8893 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8894
8895 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8896 Rename to aarch64_save_callee_saves, remove restore code.
8897 (aarch64_restore_callee_saves): New function.
8898
8899 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8900
8901 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8902 (aarch64_save_callee_saves): New function to handle reg save
8903 for both core and vectore regs.
8904
8905 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8906
8907 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8908 (aarch64_gen_store_pair): New helper function.
8909 (aarch64_save_or_restore_callee_save_registers)
8910 (aarch64_save_or_restore_fprs): Use new helper functions.
8911
8912 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8913
8914 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8915 (aarch64_save_or_restore_callee_save_registers)
8916 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8917
8918 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8919
8920 * config/aarch64/aarch64.c
8921 (aarch64_save_or_restore_callee_save_registers)
8922 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8923
8924 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8925
8926 * config/aarch64/aarch64.c
8927 (aarch64_save_or_restore_callee_save_registers)
8928 (aarch64_save_or_restore_fprs): Remove 'increment'.
8929
8930 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8931
8932 * config/aarch64/aarch64.c
8933 (aarch64_save_or_restore_callee_save_registers)
8934 (aarch64_save_or_restore_fprs): Use register offset in
8935 cfun->machine->frame.reg_offset.
8936
8937 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8938
8939 * config/aarch64/aarch64.c
8940 (aarch64_save_or_restore_callee_save_registers)
8941 (aarch64_save_or_restore_fprs): Remove base_rtx.
8942
8943 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8944
8945 * config/aarch64/aarch64.c
8946 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8947 to 'start_offset'. Remove local variable 'start_offset'.
8948
8949 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8950
8951 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8952 type to HOST_WIDE_INT.
8953
8954 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8955
8956 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8957 (aarch64_save_or_restore_fprs)
8958 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8959
8960 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8961
8962 * config/arm/t-rtems-eabi: Add
8963 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8964 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8965 mbig-endian/mthumb/march=armv7-r, and
8966 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8967 multilibs.
8968
8969 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8970 Chris Johns <chrisj@rtems.org>
8971 Joel Sherrill <joel.sherrill@oarcorp.com>
8972
8973 * config.gcc: Add nios2-*-rtems*.
8974 * config/nios2/rtems.h: New file.
8975 * gcc/config/nios2/t-rtems: New file.
8976
8977 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8978
8979 PR target/61396
8980 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8981 constant numbers, not general constants.
8982 (rs6000_expand_vector_init): Ditto.
8983
8984 2014-07-23 Nathan Sidwell <nathan@acm.org>
8985
8986 * gcov-tool.c (gcov_list): Declare here.
8987 (set_gcov_list): Remove.
8988 (gcov_output_files): Set gcov_list directly.
8989
8990 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8991
8992 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8993
8994 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8995
8996 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8997 callee-saved registers are available for padding purpose
8998 and r3 is not mandatory, then prefer use those callee-saved
8999 instead of r3.
9000
9001 2014-07-23 Richard Biener <rguenther@suse.de>
9002
9003 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9004 * combine.c: Include statistics.h and params.h.
9005 (combine_instructions): Guard three and four insn combines
9006 with max-combine-insns value. Record statistics for combines
9007 performed.
9008 * doc/invoke.texi (max-combine-insns): Document new param.
9009
9010 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9011
9012 * graphite-isl-ast-to-gimple.c:
9013 (translate_isl_ast_node_block): New function.
9014 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9015
9016 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9017 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9018
9019 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9020
9021 * graphite-isl-ast-to-gimple.c:
9022 (get_max_schedule_dimensions): New function.
9023 (extend_schedule): Likewise.
9024 (generate_isl_schedule): Add calling of extend_schedule and
9025 get_max_schedule_dimensions.
9026
9027 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9028
9029 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9030 (case UNSPEC): Handle UNSPEC_RBIT.
9031
9032 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9033
9034 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9035 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9036
9037 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9038
9039 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9040
9041 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9042
9043 * graphite-isl-ast-to-gimple.c:
9044 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9045 (ivs_params_clear):
9046 (build_iv_mapping): New function.
9047 (translate_isl_ast_node_user): Likewise.
9048 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9049
9050 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9051 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9052 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9053
9054 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9055
9056 PR target/55701
9057 * config/arm/arm.md (setmem): New pattern.
9058 * config/arm/arm-protos.h (struct tune_params): New fields.
9059 (arm_gen_setmem): New prototype.
9060 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9061 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9062 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9063 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9064 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9065 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9066 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9067 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9068 (arm_const_inline_cost): New function.
9069 (arm_block_set_max_insns): New function.
9070 (arm_block_set_non_vect_profit_p): New function.
9071 (arm_block_set_vect_profit_p): New function.
9072 (arm_block_set_unaligned_vect): New function.
9073 (arm_block_set_aligned_vect): New function.
9074 (arm_block_set_unaligned_non_vect): New function.
9075 (arm_block_set_aligned_non_vect): New function.
9076 (arm_block_set_vect, arm_gen_setmem): New functions.
9077
9078 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9079
9080 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9081
9082 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9083
9084 PR target/61855
9085 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9086 out of #ifdef __OPTIMIZE__.
9087
9088 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9089
9090 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9091 different trapping status if -fnon-call-exceptions is enabled.
9092
9093 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9094
9095 * expr.c (store_field): Handle VOIDmode for calls that return values
9096 in multiple locations.
9097
9098 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9099
9100 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9101 (altivec_vsldoi_<mode>): Likewise.
9102
9103 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9104
9105 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9106 to the number of characters in the line.
9107
9108 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9109
9110 * graphite-isl-ast-to-gimple.c: Add using of
9111 build_nonstandard_integer_type instead of int128_integer_type_node.
9112
9113 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9114
9115 * toplev.c (output_stack_usage): Adjust the location of the warning.
9116
9117 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9118
9119 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9120 (*membar_storeload): Disable for LEON3.
9121
9122 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9123
9124 PR rtl-optimization/61461
9125 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9126
9127 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9128
9129 PR target/61794
9130 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9131 Fix instruction constraint.
9132 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9133
9134 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9135
9136 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9137
9138 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9139
9140 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9141 GNU coding standards.
9142 (nds32_register_move_cost): Likewise.
9143 (nds32_memory_move_cost): Likewise.
9144 (nds32_address_cost): Likewise.
9145
9146 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9147
9148 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9149
9150 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9151
9152 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9153 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9154 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9155 (HAVE_sync_compare_and_swapqi): Define.
9156 (HAVE_sync_compare_and_swaphi): Likewise.
9157 (HAVE_sync_compare_and_swapsi): Likewise.
9158
9159 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9160
9161 * config/mips/p5600.md: Add missing cpu tests.
9162
9163 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9164
9165 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9166 (vmla_f64): Likewise.
9167 (vfms_f64): Likewise.
9168 (vmls_f64): Likewise.
9169
9170 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9171
9172 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9173 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9174
9175 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9176
9177 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9178 (vmlal_high_lane_s32): Likewise.
9179 (vmlal_high_lane_u16): Likewise.
9180 (vmlal_high_lane_u32): Likewise.
9181 (vmlsl_high_lane_s16): Likewise.
9182 (vmlsl_high_lane_s32): Likewise.
9183 (vmlsl_high_lane_u16): Likewise.
9184 (vmlsl_high_lane_u32): Likewise.
9185
9186 2014-07-17 Terry Guo <terry.guo@arm.com>
9187
9188 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9189 (alus_reg): Renamed to alus_sreg.
9190 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9191 from alu_reg to alu_sreg. Change type of dsp instructions from
9192 alu_reg to alu_dsp_reg.
9193 * config/arm/thumb1.md: Likewise.
9194 * config/arm/thumb2.md: Likewise.
9195 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9196 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9197 with alu_sreg and alus_sreg.
9198 * config/arm/arm1026ejs.md (alu_op): Likewise.
9199 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9200 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9201 * config/arm/fa526.md (526_alu_op): Likewise.
9202 * config/arm/fa606te.md (606te_alu_op): Likewise.
9203 * config/arm/fa626te.md (626te_alu_op): Likewise.
9204 * config/arm/fa726te.md (726te_alu_op): Likewise.
9205 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9206 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9207 alu_sreg, alu_dsp_reg and alus_sreg.
9208 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9209 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9210 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9211 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9212 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9213 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9214 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9215 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9216 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9217 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9218 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9219 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9220 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9221 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9222 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9223 alus_reg to alus_sreg.
9224
9225 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9226
9227 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9228 infinity format.
9229
9230 2014-07-17 Richard Biener <rguenther@suse.de>
9231
9232 PR rtl-optimization/61801
9233 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9234 don't set reg_pending_barrier if it appears in a debug-insn.
9235
9236 2014-07-16 DJ Delorie <dj@redhat.com>
9237
9238 * config/rx/rx.c (rx_option_override): Fix alignment values.
9239 (rx_align_for_label): Likewise.
9240
9241 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9242
9243 PR target/61737.
9244 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9245 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9246 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9247 functions.
9248 (cris_print_index, cris_print_operand, cris_constant_index_p)
9249 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9250 (cris_address_cost): Ditto last CONSTANT_P.
9251 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9252 callers changed. Yield cris_offsettable_symbol for non-PIC
9253 constant symbolic expressions including labels. Yield cris_unspec
9254 for all unspecs.
9255 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9256 target to pic_offset_table_rtx for calls that will likely go
9257 through PLT, const0_rtx when they can't. All callers changed.
9258 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9259 symbolic expressions to be PICified. Remove second, redundant,
9260 assert on can_create_pseudo_p returning non-zero. Use
9261 replace_equiv_address_nv, not replace_equiv_address, for final
9262 operand update.
9263 * config/cris/cris.md ("movsi"): Move variable t to pattern
9264 toplevel. Adjust assert for new cris_symbol_type member. Use
9265 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9266 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9267 for lapc stricter.
9268 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9269 ("call", "call_value"): Use second incoming operand as a marker
9270 for pic-offset-table-register being used.
9271 ("*expanded_call_non_v32", "*expanded_call_v32")
9272 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9273 second incoming operand to CALL, match cris_call_type_marker.
9274 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9275 ("*expanded_call_side"): Ditto. Fix typo in comment.
9276 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9277 CONSTANT_P.
9278 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9279 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9280 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9281 users changed. Add members cris_offsettable_symbol and cris_unspec.
9282 (cris_symbol_type): Rename from cris_pic_symbol_type.
9283 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9284 just CONSTANT_P.
9285 * config/cris/cris-protos.h (cris_symbol_type_of,
9286 cris_expand_pic_call_address): Adjust prototypes.
9287 (cris_legitimate_constant_p): New prototype.
9288
9289 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9290 an existing tmake_file. Don't add t-slibgcc and t-linux.
9291
9292 2014-07-17 Jason Merrill <jason@redhat.com>
9293
9294 PR c++/61623
9295 * symtab.c (symtab_remove_from_same_comdat_group): Also
9296 set_comdat_group to NULL_TREE.
9297 (verify_symtab): Fix diagnostic.
9298
9299 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9300
9301 PR target/61662
9302 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9303
9304 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9305
9306 Support location tracking for built-in macro tokens
9307 * input.h (is_location_from_builtin_token): New function declaration.
9308 * input.c (is_location_from_builtin_token): New function definition.
9309 * toplev.c (general_init): Tell libcpp what the pre-defined
9310 spelling location for built-in tokens is.
9311
9312 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9313
9314 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9315 on the FUNCTION_DECL.
9316
9317 2014-07-16 Richard Biener <rguenther@suse.de>
9318
9319 PR other/61782
9320 * doc/extend.texi (always_inline): Clarify.
9321
9322 2014-07-15 Eric Christopher <echristo@gmail.com>
9323
9324 * doc/invoke.texi (Link Options): Document -z option.
9325
9326 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9327
9328 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9329 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9330
9331 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9332
9333 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9334
9335 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9336
9337 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9338 varpool_assemble_decl.
9339 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9340 true.
9341
9342 2014-07-15 Michael Matz <matz@suse.de>
9343
9344 PR rtl-optimization/61772
9345 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9346
9347 2014-07-15 Richard Biener <rguenther@suse.de>
9348
9349 * opts.c (default_options_table): Disable bit-ccp at -Og.
9350
9351 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9352
9353 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9354
9355 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9356
9357 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9358 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9359 call langhook for unknown declaration.
9360 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9361 * tree.h (DECL_ARGUMENTS): Update.
9362 * print-tree.c (print_node): Update.
9363 * tree-core.h (tree_decl_non_common): Remove arguments.
9364 (tree_function_decl): Add arguments.
9365
9366 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9367
9368 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9369
9370 2014-07-14 Richard Biener <rguenther@suse.de>
9371
9372 PR tree-optimization/61779
9373 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9374 simplifying a condition.
9375
9376 2014-07-14 Richard Biener <rguenther@suse.de>
9377
9378 * builtins.c (c_strlen): Make only_value == 2 really only
9379 affect warning generation.
9380
9381 2014-07-14 Richard Biener <rguenther@suse.de>
9382
9383 PR tree-optimization/61757
9384 PR tree-optimization/61783
9385 PR tree-optimization/61787
9386 * tree-ssa-dom.c (record_equality): Revert canonicalization
9387 change and add comment.
9388 (propagate_rhs_into_lhs): Revert previous fix, removing
9389 loop depth restriction again.
9390
9391 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9392
9393 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9394 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9395 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9396 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9397 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9398 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9399 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9400
9401 2014-07-14 Richard Biener <rguenther@suse.de>
9402
9403 * cgraph.h (decl_in_symtab_p): Make inline.
9404
9405 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9406
9407 PR middle-end/61294
9408 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9409
9410 PR target/61656
9411 * config/i386/i386.c (classify_argument): Don't merge classes above
9412 number of words.
9413
9414 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9415
9416 * cgraph.h (symtab_node): Add nonzero_address.
9417 (decl_in_symtab_p): Break out from ...
9418 (symtab_get_node): ... here.
9419 * fold-const.c: Include cgraph.h
9420 (tree_single_nonzero_warnv_p): Use symtab to determine
9421 if symbol is non-zero.
9422 * symtab.c (symtab_node::nonzero_address): New method.
9423
9424 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9425
9426 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9427 forgotten in previous commit.
9428
9429 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9430
9431 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9432 on builtin types.
9433 * ipa-devirt.c: Include stor-layout.h and intl.h
9434 (odr_subtypes_equivalent_p): New function.
9435 (warn_odr): New function.
9436 (warn_type_mismatch): New function.
9437 (odr_types_equivalent_p): New function.
9438 (add_type_duplicate): Use it.
9439 * common.opt (Wodr): New flag.
9440 * doc/invoke.texi (Wodr): Document new warning.
9441
9442 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9443
9444 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9445 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9446 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9447 (varpool_get_constructor): Push CTORS_IN timevar.
9448 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9449
9450 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9451
9452 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9453 Remove VOID_FTYPE_PUSHORT.
9454 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9455 Change code to USHORT_FTYPE_VOID.
9456 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9457 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9458 (ix86_atomic_assign_expand_fenv): Update for
9459 __builtin_ia32_fnstsw changes.
9460 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9461 (fnstsw): Change operand 0 to nonimmediate operand.
9462
9463 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9464
9465 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9466 (varpool_get_constructor): New function.
9467 (varpool_ctor_useable_for_folding_p): Break out from ...
9468 (ctor_for_folding): ... here; use varpool_get_constructor.
9469 (varpool_assemble_decl): Likewise.
9470 * lto-streamer.h (struct output_block): Turn cgraph_node
9471 to symbol filed.
9472 (lto_input_variable_constructor): Declare.
9473 * ipa-visibility.c (function_and_variable_visibility): Use
9474 varpool_get_constructor.
9475 * cgraph.h (varpool_get_constructor): Declare.
9476 (varpool_ctor_useable_for_folding_p): New function.
9477 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9478 parameter; return error_mark_node for non-trivial constructors.
9479 (lto_write_tree_1, DFS_write_tree): Update use of
9480 get_symbol_initial_value.
9481 (output_function): Update initialization of symbol.
9482 (output_constructor): New function.
9483 (copy_function): Rename to ..
9484 (copy_function_or_variable): ... this one; handle vars too.
9485 (lto_output): Output variable sections.
9486 * lto-streamer-in.c (input_constructor): New function.
9487 (lto_read_body): Rename from ...
9488 (lto_read_body_or_constructor): ... this one; handle vars too.
9489 (lto_input_variable_constructor): New function.
9490 * ipa-prop.c (ipa_prop_write_jump_functions,
9491 ipa_prop_write_all_agg_replacement): Update.
9492 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9493 (output_cgraph_opt_summary): Set symbol to NULL.
9494
9495 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9496
9497 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9498 non-polymorphic types.
9499 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9500 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9501 of types is not polymorphic.
9502
9503 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9504
9505 * lra-constraints.c (remove_inheritance_pseudos): Process
9506 destination pseudo too.
9507
9508 2014-07-11 Rong Xu <xur@google.com>
9509
9510 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9511 commit r212448.
9512
9513 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9514
9515 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9516 * config/avr/avr-devices.c (AVR_MCU): Same.
9517 (avr_mcu_types): add text start value to end of device list.
9518 * config/avr/avr-mcus.def: Add text section start for all devices.
9519 (ata5782): Add new avr5 device.
9520 (ata5831): Same.
9521 * config/avr/avr-tables.opt: Regenerate.
9522 * config/avr/avr.h: Add declaration for text section start handler.
9523 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9524 SPEC functions.
9525 (LINK_SPEC): Include text section start handler to linker spec.
9526 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9527 pass -Ttext option to linker if the text section start for the device
9528 is not zero.
9529 * config/avr/t-multilib: Regenerate.
9530 * doc/avr-mmcu.texi: Regenerate.
9531
9532 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9533
9534 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9535 * config/rs6000/aix52.h (LINK_SPEC): Same.
9536 * config/rs6000/aix53.h (LINK_SPEC): Same.
9537 * config/rs6000/aix61.h (LINK_SPEC): Same.
9538 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9539
9540 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9541
9542 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9543 (graphite_verify): New function.
9544 (ivs_params_clear): New function.
9545 (gcc_expression_from_isl_ast_expr_id): New function.
9546 (gcc_expression_from_isl_expr_int): New function.
9547 (binary_op_to_tree): New function.
9548 (ternary_op_to_tree): New function.
9549 (unary_op_to_tree): New function.
9550 (nary_op_to_tree): New function.
9551 (gcc_expression_from_isl_expr_op): New function.
9552 (gcc_expression_from_isl_expression): New function.
9553 (graphite_create_new_loop): New function.
9554 (translate_isl_ast_for_loop): New function.
9555 (get_upper_bound): New function.
9556 (graphite_create_new_loop_guard): New function.
9557 (translate_isl_ast_node_for): New function.
9558 (translate_isl_ast): New function.
9559 (add_parameters_to_ivs_params): New function.
9560 (scop_to_isl_ast): New parameter ip.
9561 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9562
9563 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9564
9565 * config/xtensa/predicates.md (call expander): Update for
9566 DECL_SECTION_NAME being string.
9567
9568 2014-07-11 Richard Biener <rguenther@suse.de>
9569
9570 PR middle-end/61473
9571 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9572 can be implemented with a single load followed by a single store.
9573 (c_strlen): Only warn when only_value is not 2.
9574
9575 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9576
9577 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9578
9579 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9580
9581 PR target/61561
9582 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9583 (*movhi_bytes): Likewise.
9584 (*arm_movqi_insn): Likewise.
9585
9586 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9587
9588 PR target/56858
9589 * config/alpha/alpha.c: Include tree-pass.h, context.h
9590 and pass_manager.h.
9591 (pass_data_handle_trap_shadows): New pass.
9592 (pass_handle_trap_shadows::gate): New pass gate function.
9593 (make_pass_handle_trap_shadows): New function.
9594 (rest_of_handle_trap_shadows): Ditto.
9595
9596 (alpha_align_insns_1): Rename from alpha_align_insns.
9597 (pass_data_align_insns): New pass.
9598 (pass_align_insns::gate): New pass gate function.
9599 (make_pass_aling_insns): New function.
9600 (rest_of_align_insns): Ditto.
9601 (alpha_align_insns): Ditto.
9602
9603 (alpha_option_override): Declare handle_trap_shadows info
9604 and align_insns_info. Register handle_trap_shadows and align_insns
9605 passes here.
9606 (alpha_reorg): Do not call alpha_trap_shadows and
9607 alpha_align_insn from here.
9608
9609 (alpha_pad_function_end): Do not skip BARRIERs.
9610
9611 2014-07-10 Rong Xu <xur@google.com>
9612
9613 Add gcov-tool: an offline gcda profile processing tool support.
9614 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9615 (gcov_is_error): Ditto.
9616 (gcov_read_string): Ditto.
9617 (gcov_read_sync): Ditto.
9618 * gcov-io.h: Move counter defines to gcov-counter.def.
9619 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9620 * coverage.c: Ditto.
9621 * gcov-tool.c: Offline gcda profile processing tool.
9622 (unlink_gcda_file): Remove one gcda file.
9623 (unlink_profile_dir): Remove gcda files from the profile path.
9624 (gcov_output_files): Output gcda files to an output dir.
9625 (profile_merge): Merge two profiles in directory.
9626 (print_merge_usage_message): Print merge usage.
9627 (merge_usage): Print merge usage and exit.
9628 (do_merge): Driver for profile merge sub-command.
9629 (profile_rewrite): Rewrite profile.
9630 (print_rewrite_usage_message): Print rewrite usage.
9631 (rewrite_usage): Print rewrite usage and exit.
9632 (do_rewrite): Driver for profile rewrite sub-command.
9633 (print_usage): Print gcov-info usage and exit.
9634 (print_version): Print gcov-info version.
9635 (process_args): Process arguments.
9636 (main): Main routine for gcov-tool.
9637 * Makefile.in: Build and install gcov-tool.
9638 * gcov-counter.def: New file split from gcov-io.h.
9639 * doc/gcc.texi: Include gcov-tool.texi.
9640 * doc/gcov-tool.texi: Document for gcov-tool.
9641
9642 2014-07-10 Richard Biener <rguenther@suse.de>
9643
9644 PR tree-optimization/61757
9645 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9646 (propagate_rhs_into_lhs): Revert part of last change.
9647
9648 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9649
9650 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9651 FUNCTION_DECLs.
9652
9653 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9654
9655 PR middle-end/53590
9656 * function.c (allocate_struct_function): Revert r188667 change.
9657
9658 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9659
9660 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9661
9662 * doc/install.texi: Remove links to defunct package providers for
9663 Solaris.
9664
9665 2014-07-09 Tom de Vries <tom@codesourcery.com>
9666
9667 * final.c (get_call_fndecl): Declare.
9668 (self_recursive_call_p): New function.
9669 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9670
9671 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9672
9673 * ipa-devirt.c (record_node): Walk through aliases.
9674
9675 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9676
9677 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9678
9679 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9680
9681 Revert:
9682 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9683
9684 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9685
9686 * ipa-visibility.c (function_and_variable_visibility): Remove
9687 temporary hack disabling local aliases on AIX.
9688
9689 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9690
9691 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9692 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9693
9694 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9695
9696 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9697 * rs6000/rs6000.c: Inline output of .set instruction.
9698 (declare_alias_data): New struct.
9699 (rs6000_declare_alias): New function.
9700 (rs6000_xcoff_declare_function_name): Use it.
9701 (rs6000_xcoff_declare_object_name): New function.
9702 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9703 (ASM_OUTPUT_DEF): Turn to empty definition.
9704
9705 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9706
9707 PR bootstrap/61679
9708 * hash-table.h: use hash_table::value_type instead of
9709 Descriptor::value_type in the return types of several methods.
9710
9711 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9712
9713 * tree-pass.h (pass_data): Remove has_execute member.
9714 * passes.c (execute_one_pass): Don't check pass->has_execute.
9715 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9716 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9717 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9718 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9719 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9720 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9721 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9722 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9723 gimple-low.c, gimple-ssa-isolate-paths.c,
9724 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9725 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9726 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9727 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9728 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9729 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9730 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9731 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9732 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9733 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9734 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9735 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9736 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9737 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9738 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9739 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9740 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9741 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9742 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9743 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9744 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9745 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9746 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9747 web.c: Remove initializer for pass_data::has_execute.
9748
9749 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9750
9751 * graphite-htab.h: Use hash_map instead of hash_table.
9752 * graphite-clast-to-gimple.c: Adjust.
9753 * passes.c: Use hash_map instead of hash_table.
9754 * sese.c: Likewise.
9755 * sese.h: Remove now unused code.
9756
9757 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9758
9759 PR target/61599
9760 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9761 than zero.
9762
9763 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9764
9765 PR rtl-optimization/61673
9766 * combine.c (simplify_comparison): Test just mode's sign bit
9767 in tmode rather than the sign bit and any bits above it.
9768
9769 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9770
9771 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9772 Add __isl_give to the declaration.
9773 (generate_isl_schedule): Likewise.
9774 (scop_to_isl_ast): Likewise.
9775
9776 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9777
9778 * config/arm/arm.c (cortexa5_extra_costs): New table.
9779 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9780
9781 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9782
9783 PR tree-optimization/61725
9784 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9785 range, use range_includes_zerop_p instead of integer_zerop on
9786 vr0->min, only use log2 of max if min is not negative.
9787
9788 2014-07-08 Richard Biener <rguenther@suse.de>
9789
9790 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9791 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9792 restriction on loop depth difference.
9793 (record_equality): Likewise.
9794 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9795 (loop_depth_of_name): Remove.
9796 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9797 restriction on loop depth difference.
9798 (init_copy_prop): Likewise.
9799
9800 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9801
9802 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9803 parameter.
9804 (walk_aliased_vdefs): Likewise.
9805 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9806 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9807 (detect_type_change_from_memory_writes): Check if entry was reached.
9808
9809 2014-07-08 Richard Biener <rguenther@suse.de>
9810
9811 PR tree-optimization/61681
9812 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9813 NONLOCAL inside ESCAPED.
9814
9815 2014-07-08 Richard Biener <rguenther@suse.de>
9816
9817 PR tree-optimization/61680
9818 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9819 Handle properly all read-write dependences with group accesses.
9820
9821 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9822
9823 PR tree-optimization/61576
9824 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9825 block containing reduction statement is predecessor of phi basi block.
9826
9827 2014-07-08 Marek Polacek <polacek@redhat.com>
9828
9829 PR c/60226
9830 * fold-const.c (round_up_loc): Change the parameter type.
9831 Remove assert.
9832 * fold-const.h (round_up_loc): Adjust declaration.
9833 * stor-layout.c (finalize_record_size): Check for too large types.
9834
9835 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9836
9837 * symtab.c: Include calls.h.
9838 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9839
9840 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9841
9842 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9843 little-endian code generation.
9844 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9845 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9846 (spe_evmergehilo): Rename to...
9847 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9848 (spe_evmergelo): Rename to...
9849 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9850 (spe_evmergelohi): Rename to...
9851 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9852 (spe_evmergehi, spe_evmergehilo): New expanders.
9853 (spe_evmergelo, spe_evmergelohi): Likewise.
9854 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9855 (*frob_tf_ti): Likewise.
9856 (*frob_<mode>_di_2): Likewise.
9857 (*frob_tf_di_8_2): Likewise.
9858 (*frob_di_<mode>): Likewise.
9859 (*frob_ti_tf): Likewise.
9860 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9861 (*frob_ti_<mode>_8_2): Likewise.
9862 (*frob_ti_tf_2): Likewise.
9863 (mov_si<mode>_e500_subreg0): Rename to...
9864 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9865 endianness only.
9866 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9867 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9868 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9869 the big endianness only.
9870 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9871 (*mov_si<mode>_e500_subreg0_2): Rename to...
9872 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9873 big big endianness only.
9874 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9875 (*mov_si<mode>_e500_subreg4): Rename to...
9876 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9877 endianness only.
9878 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9879 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9880 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9881 the big endianness only.
9882 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9883 pattern.
9884 (*mov_si<mode>_e500_subreg4_2): Rename to...
9885 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9886 endianness only.
9887 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9888 (*mov_sitf_e500_subreg8): Rename to...
9889 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9890 endianness only.
9891 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9892 (*mov_sitf_e500_subreg8_2): Rename to...
9893 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9894 endianness only.
9895 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9896 (*mov_sitf_e500_subreg12): Rename to...
9897 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9898 endianness only.
9899 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9900 (*mov_sitf_e500_subreg12_2): Rename to...
9901 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9902 endianness only.
9903 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9904
9905 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9906
9907 * asan.c (instrument_strlen_call): Do not instrument first byte
9908 in strlen if already instrumented.
9909
9910 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9911
9912 * config/arm/arm.opt (mwords-little-endian): Delete.
9913 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9914 of TARGET_LITTLE_WORDS.
9915 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9916 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9917 warning.
9918 * doc/invoke.texi: Remove references to -mwords-little-endian.
9919
9920 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9921
9922 * expmed.c (struct init_expmed_rtl): Change all fields but
9923 pow2 and cint from struct rtx_def to rtx.
9924 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9925 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9926 at the end again.
9927
9928 2014-07-06 Marek Polacek <polacek@redhat.com>
9929
9930 PR c/6940
9931 * doc/invoke.texi: Document -Wsizeof-array-argument.
9932
9933 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9934
9935 * wide-int.h (wide_int_storage): Change declaration from struct
9936 to class.
9937
9938 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9939
9940 * cgraph.c (cgraph_create_indirect_edge): Update call of
9941 get_polymorphic_call_info.
9942 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9943 (possible_polymorphic_call_targets): Add parameter call.
9944 (decl_maybe_in_construction_p): New predicate.
9945 (get_polymorphic_call_info): Add parameter call;
9946 use decl_maybe_in_construction_p.
9947 * gimple-fold.c (fold_gimple_assign): Update use of
9948 possible_polymorphic_call_targets.
9949 (gimple_fold_call): Likewise.
9950 * ipa-prop.c: Inlcude calls.h
9951 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9952 (param_type_may_change_p): New predicate.
9953 (detect_type_change_from_memory_writes): Break out from ...
9954 (detect_type_change): ... this one; use param_type_may_change_p.
9955 (detect_type_change_ssa): Use param_type_may_change_p.
9956 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9957
9958 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9959
9960 PR target/49423
9961 * config/arm/arm-protos.h (arm_legitimate_address_p,
9962 arm_is_constant_pool_ref): Add prototypes.
9963 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9964 (arm_is_constant_pool_ref) New function.
9965 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9966 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9967 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9968 operand. Remove pool_range and neg_pool_range attributes.
9969 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9970 pool_range and neg_pool_range attributes.
9971 * config/arm/constraints.md (Uh): New constraint.
9972 (Uq): Don't allow constant pool references.
9973
9974 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9975
9976 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9977 (move_lo_quad_internal_be_<mode>): Likewise.
9978 (move_lo_quad_<mode>): Convert to define_expand.
9979 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9980 (aarch64_simd_move_hi_quad_be_<mode>): New.
9981 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9982 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9983 (aarch64_combinez_be<mode>): New.
9984 (aarch64_combine<mode>): Convert to define_expand.
9985 (aarch64_combine_internal<mode>): New.
9986 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9987
9988 2014-07-04 Tom de Vries <tom@codesourcery.com>
9989
9990 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9991 combination of earlyclobber and read/write modifiers.
9992
9993 2014-07-04 Tom de Vries <tom@codesourcery.com>
9994
9995 * config/aarch64/aarch64-simd.md
9996 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9997
9998 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9999
10000 PR target/61714
10001 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10002
10003 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10004
10005 PR middle-end/61654
10006 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10007
10008 PR tree-optimization/61684
10009 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10010 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10011
10012 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10013 Kito Cheng <kito@0xlab.org>
10014 Monk Chiang <sh.chiang04@gmail.com>
10015
10016 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10017 (nds32_symbol_load_store_p): Move to ...
10018 (nds32_fp_as_gp_check_available): Move to ...
10019 * config/nds32/nds32-fp-as-gp.c: ... here.
10020 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10021 extern declaration.
10022
10023 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10024 Kito Cheng <kito@0xlab.org>
10025 Monk Chiang <sh.chiang04@gmail.com>
10026
10027 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10028 (nds32_expand_store_multiple): Move to ...
10029 (nds32_expand_movmemqi): Move to ...
10030 * config/nds32/nds32-memory-manipulation.c: ... here.
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_byte_to_size): Move to ...
10037 (nds32_output_casesi_pc_relative): Move to ...
10038 (nds32_output_casesi): Move to ...
10039 (nds32_mem_format): Move to ...
10040 (nds32_output_16bit_store): Move to ...
10041 (nds32_output_16bit_load): Move to ...
10042 (nds32_output_32bit_store): Move to ...
10043 (nds32_output_32bit_load): Move to ...
10044 (nds32_output_32bit_load_s): Move to ...
10045 (nds32_output_stack_push): Move to ...
10046 (nds32_output_stack_pop): Move to ...
10047 * config/nds32/nds32-md-auxiliary.c: ... here.
10048
10049 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10050 Ling-Hua Tseng <uranus@tinlans.org>
10051
10052 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10053 the purpose of this file.
10054
10055 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10056 Kito Cheng <kito@0xlab.org>
10057 Monk Chiang <sh.chiang04@gmail.com>
10058
10059 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10060 (nds32_address_cost): Move implementation to ...
10061 * config/nds32/nds32-cost.c: ... here.
10062 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10063 (nds32_address_cost_impl): Declare.
10064
10065 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10066 Kito Cheng <kito@0xlab.org>
10067 Monk Chiang <sh.chiang04@gmail.com>
10068
10069 * config/nds32/nds32.c
10070 (nds32_consecutive_registers_load_store_p): Move to ...
10071 (nds32_valid_multiple_load_store): Move to ...
10072 (nds32_valid_stack_push_pop): Move to ...
10073 (nds32_can_use_bclr_p): Move to ...
10074 (nds32_can_use_bset_p): Move to ...
10075 (nds32_can_use_btgl_p): Move to ...
10076 (nds32_can_use_bitci_p): Move to ...
10077 * config/nds32/nds32-predicates.c: ... here.
10078
10079 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10080 Kito Cheng <kito@0xlab.org>
10081 Monk Chiang <sh.chiang04@gmail.com>
10082
10083 * config/nds32/nds32.c
10084 (nds32_expand_builtin_null_ftype_reg): Move to ...
10085 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10086 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10087 (nds32_init_builtins): Move implementation to ...
10088 (nds32_expand_builtin): Move implementation to ...
10089 * config/nds32/nds32-intrinsic.c: ... here.
10090 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10091 (nds32_expand_builtin_impl): Declare.
10092
10093 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10094 Kito Cheng <kito@0xlab.org>
10095 Monk Chiang <sh.chiang04@gmail.com>
10096
10097 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10098 (nds32_emit_section_tail_template): Move to ...
10099 (nds32_emit_isr_jmptbl_section): Move to ...
10100 (nds32_emit_isr_vector_section): Move to ...
10101 (nds32_emit_isr_reset_conten): Move to ...
10102 (nds32_check_isr_attrs_conflict): Move to ...
10103 (nds32_construct_isr_vectors_information): Move to ...
10104 (nds32_asm_file_start): Move implementation to ...
10105 (nds32_asm_file_end): Move implementation to ...
10106 * config/nds32/nds32-isr.c: ... here.
10107 * config/nds32/nds32-protos.h
10108 (nds32_check_isr_attrs_conflict): Declare.
10109 (nds32_construct_isr_vectors_information): Declare.
10110 (nds32_asm_file_start_for_isr): Declare.
10111 (nds32_asm_file_end_for_isr): Declare.
10112
10113 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10114 Kito Cheng <kito@0xlab.org>
10115 Monk Chiang <sh.chiang04@gmail.com>
10116
10117 * config.gcc (nds32*): Add new modules to extra_objs.
10118 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10119 (nds32be-*-*): Likewise.
10120 * config/nds32/nds32-cost.c: New file.
10121 * config/nds32/nds32-fp-as-gp.c: New file.
10122 * config/nds32/nds32-intrinsic.c: New file.
10123 * config/nds32/nds32-isr.c: New file.
10124 * config/nds32/nds32-md-auxiliary.c: New file.
10125 * config/nds32/nds32-memory-manipulation.c: New file.
10126 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10127 * config/nds32/nds32-predicates.c: New file.
10128 * config/nds32/t-nds32: New file.
10129
10130 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10131
10132 PR tree-optimization/61682
10133 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10134 using cases and when one of the operands is equal to 1.
10135
10136 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10137
10138 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10139 ashr<mode>3): Correct mode of operands[2].
10140 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10141 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10142 Correct mode of operands[2]. Fix split condition.
10143
10144 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10145
10146 * arm.md (arch): Add armv6_or_vfpv3.
10147 (arch_enabled): Add test for the above.
10148 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10149 on VFP9.
10150 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10151
10152 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10153
10154 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10155 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10156 HWI 1 and negate the unsigned value.
10157 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10158 use AND instead of shift.
10159 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10160
10161 2014-07-03 Marek Polacek <polacek@redhat.com>
10162
10163 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10164 (-fsanitize=float-divide-by-zero): Move to the table with
10165 -fsanitize=undefined suboptions.
10166 (-fsanitize=float-cast-overflow): Likewise.
10167
10168 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10169
10170 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10171 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10172 endianness.
10173
10174 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10175
10176 * loop-invariant.c (struct invariant): Add a new member: eqno;
10177 (find_identical_invariants): Update eqno;
10178 (create_new_invariant): Init eqno;
10179 (get_inv_cost): Compute comp_cost with eqno;
10180
10181 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10182
10183 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10184 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10185 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10186 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10187 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10188
10189 2014-07-02 Christian Bruel <christian.bruel@st.com>
10190
10191 PR target/29349
10192 PR target/53513
10193 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10194 (make_preds_opaque): Delete.
10195 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10196 (commit_mode_sets): New function.
10197 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10198 Process all modes at once.
10199 * basic-block.h (pre_edge_lcm_avs): Declare.
10200 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10201 Call clear_aux_for_edges. Fix comments.
10202 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10203 (pre_edge_rev_lcm): Idem.
10204 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10205 parameter.
10206 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10207 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10208 Idem.
10209 * config/i386/i386.c (x96_emit_mode_set): Idem.
10210 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10211 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10212 (fpscr_toggle) Disallow from delay slot.
10213 * target.def (emit_mode_set): Add prev_mode parameter.
10214 * doc/tm.texi: Regenerate.
10215
10216 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10217
10218 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10219 variable i.
10220
10221 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10222
10223 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10224 vtable_pointer_value_to_vtable): Constify.
10225 (contains_polymorphic_type_p): Declare.
10226 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10227 vtable_pointer_value_to_vtable): Constify.
10228 (contains_polymorphic_type_p): New predicate.
10229 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10230 polymorphic types.
10231 (ipa_set_ancestor_jf): Likewise.
10232 (detect_type_change): Return false in easy cases.
10233 (compute_complex_assign_jump_func): Require type to contain
10234 polymorphic type.
10235 (compute_known_type_jump_func): Likewise.
10236
10237 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10238
10239 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10240 Remove.
10241 (type_in_anonymous_namespace_p): Constify argument.
10242 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10243 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10244 (main_odr_variant): New function.
10245 (hash_type_name): Make static; update assert; do not ICE on
10246 non-records.
10247 (types_same_for_odr): Bring here from tree.c; simplify and remove
10248 old structural comparing code that doesn't work for templates.
10249 (odr_hasher::equal): Update assert.
10250 (add_type_duplicate): Return true when bases should be computed;
10251 replace incomplete loader by complete; do not output duplicated
10252 warnings; do not ICE on non-records; set odr_violated flag.
10253 (get_odr_type): Be ready to replace incomplete type by complete
10254 one; work on ODR variants instead of main variants; reorder item
10255 in array so bases have still smaller indexes.
10256 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10257 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10258
10259 2014-07-01 Cary Coutant <ccoutant@google.com>
10260
10261 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10262 lookup.
10263 (resolve_addr_in_expr): When replacing the rtx in a location list
10264 entry, get a new address table entry.
10265 (dwarf2out_finish): Call index_location_lists even if there are no
10266 addr_index_table entries yet.
10267
10268 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10269
10270 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10271 change for not being obvious.
10272
10273 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10274
10275 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10276 unused argument.
10277
10278 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10279
10280 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10281 (vcagt_f64): Likewise.
10282 (vcale_f64): Likewise.
10283 (vcaled_f64): Likewise.
10284 (vcales_f32): Likewise.
10285 (vcalt_f64): Likewise.
10286 (vcaltd_f64): Likewise.
10287 (vcalts_f32): Likewise.
10288
10289 2014-07-01 Marek Polacek <polacek@redhat.com>
10290
10291 * doc/invoke.texi: Document -Wint-conversion.
10292
10293 2014-07-01 Marek Polacek <polacek@redhat.com>
10294
10295 PR c/58286
10296 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10297
10298 2014-07-01 Martin Liska <mliska@suse.cz>
10299
10300 IPA REF alias refactoring
10301 * cgraph.h (iterate_direct_aliases): New function.
10302 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10303 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10304 FOR_EACH_ALIAS added.
10305 (cgraph_for_node_and_aliases): Likewise.
10306 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10307 * ipa-inline.c (reset_edge_caches): Likewise.
10308 (update_caller_keys): Likewise.
10309 * trans-mem.c (ipa_tm_execute): Likewise.
10310 *varpool.c (varpool_analyze_node): Likewise.
10311 (varpool_for_node_and_aliases): Likewise.
10312 * ipa-ref.h (first_alias): New function.
10313 (last_alias): Likewise.
10314 (has_aliases_p): Likewise.
10315 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10316 is sensitive to IPA_REF_ALIASes.
10317 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10318 are put at the beginning of the list.
10319 (symtab_node::iterate_direct_aliases): New function.
10320
10321 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10322
10323 Revert:
10324 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10325 type is complete.
10326 (write_ts_type_common_tree_pointers): Do not stream fields not set
10327 for incomplete types; do not stream duplicated fields for variants;
10328 sanity check that variant and type match.
10329 (write_ts_type_non_common_tree_pointers): Likewise.
10330 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10331 TYPE_SIZE whether type is complete.
10332 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10333 write_ts_type_common_tree_pointers
10334 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10335
10336 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10337
10338 * var-tracking.c (add_stores): Return instead of asserting if old
10339 and new values for conditional store are the same.
10340
10341 2014-06-30 Richard Henderson <rth@redhat.com>
10342
10343 PR rtl-opt/61608
10344 PR target/39284
10345 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10346 the cfg if there were any changes.
10347 * passes.def: Revert move of peephole2 after reorder_blocks;
10348 move duplicate_computed_gotos before peephole2.
10349
10350 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10351
10352 * except.c (emit_note_eh_region_end): New helper function.
10353 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10354 emit EH_REGION_END note.
10355 * jump.c (cleanup_barriers): Do not split a call and its
10356 corresponding CALL_ARG_LOCATION note.
10357
10358 2014-06-30 Jeff Law <law@redhat.com>
10359
10360 PR tree-optimization/61607
10361 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10362 deeper into the SSA_NAME_VALUE chain.
10363
10364 2014-06-30 Marek Polacek <polacek@redhat.com>
10365
10366 * convert.c (convert_to_integer): Don't instrument conversions if the
10367 function has no_sanitize_undefined attribute.
10368 * ubsan.c: Don't run the ubsan pass if the function has
10369 no_sanitize_undefined attribute.
10370
10371 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10372
10373 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10374 -fsanitize=undefined suboptions.
10375
10376 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10377
10378 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10379 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10380 against bigendian and adjust indices.
10381
10382 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10383
10384 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10385
10386 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10387
10388 PR target/61633
10389 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10390 Add alternative; make early clobber. Adjust both split patterns
10391 to use operand 0 as the working register.
10392
10393 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10394
10395 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10396 as ira_object_id_map might be NULL, or 1.
10397
10398 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10399
10400 * loop-invariant.c (get_inv_cost): Handle register class.
10401 (gain_for_invariant): Check the register pressure of the inv
10402 and its overlapped register class, other than all.
10403
10404 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10405
10406 * doc/invoke.texi (Optimize Options): Fix descriptions of
10407 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10408
10409 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10410
10411 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10412 documentation.
10413
10414 2014-06-29 Tobias Grosser <tobias@grosser.es>
10415
10416 PR bootstrap/61650
10417 * graphite-isl-ast-to-gimple.c: Add missing guards.
10418
10419 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10420
10421 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10422 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10423 * flag-types.h: Add new enum fgraphite_generator.
10424 * graphite-isl-ast-to-gimple.c: New.
10425 * graphite-isl-ast-to-gimple.h: New.
10426 * graphite.c (graphite_transform_loops): Add choice of Graphite
10427 code generator, which depends on flag_graphite_code_gen.
10428
10429 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10430
10431 * graphite-dependences.c (subtract_commutative_associative_deps):
10432 Add NULL checking of the following variables: must_raw_no_source,
10433 may_raw_no_source, must_war_no_source, may_war_no_source,
10434 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10435 must_war, may_war, must_waw, may_waw.
10436
10437 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10438
10439 * graphite-clast-to-gimple.c: gloog is renamed to
10440 graphite_regenerate_ast_cloog. gloog_error is renamed to
10441 graphite_regenerate_error.
10442 * graphite-clast-to-gimple.h: The definition of the struct
10443 bb_pbb_def is moved to graphite-htab.h.
10444 Add inclusion of the hash-table.h.
10445 * graphite-htab.h: The declaration of the function gloog is moved
10446 to graphite-clast-to-gimple.h and renamed to
10447 graphite_regenerate_ast_cloog.
10448 * graphite.c (graphite_transform_loops): gloog is renamed
10449 to graphite_regenerate_ast_cloog.
10450
10451 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10452
10453 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10454 type is complete.
10455 (write_ts_type_common_tree_pointers): Do not stream fields not set
10456 for incomplete types; do not stream duplicated fields for variants;
10457 sanity check that variant and type match.
10458 (write_ts_type_non_common_tree_pointers): Likewise.
10459 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10460 TYPE_SIZE whether type is complete.
10461 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10462 write_ts_type_common_tree_pointers
10463 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10464
10465 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10466
10467 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10468
10469 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10470
10471 * tree-inline.c (remap_type_1): Do not duplicate fields
10472 that are shared in between type and its main variant.
10473
10474 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10475
10476 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10477 of the type.
10478 (ipa_set_ancestor_jf) Likewise.
10479 (check_stmt_for_type_change): Check that we work on main variant.
10480 (detect_type_change): Look into main variant.
10481 (compute_known_type_jump_func): Check that main variant has BINFO.
10482
10483 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10484
10485 * ipa-devirt.c (set_type_binfo): New function.
10486 (add_type_duplicate): Use it.
10487 (get_odr_type): Sanity check that binfos points to main variants.
10488 (get_class_context): Be sure the context's outer_type is main variant.
10489 (contains_type_p): Walk main variant.
10490 (get_polymorphic_call_info_for_decl): Set outer_type to be
10491 main variant.
10492 (get_polymorphic_call_info): Likewise.
10493 (possible_polymorphic_call_targets): Sanity check that we operate
10494 on main variant.
10495
10496 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10497
10498 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10499
10500 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10501
10502 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10503 accidental change due to wide-int branch merge.
10504
10505 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10506
10507 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10508 compressed debug support.
10509 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10510 * configure: Regenerate.
10511 * config.in: Regenerate.
10512 * common.opt (compressed_debug_sections): New enum.
10513 (gz, gz=): New options.
10514 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10515 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10516 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10517 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10518 LINK_COMPRESS_DEBUG_SPEC.
10519 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10520 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10521 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10522 (Debugging Options): Document -gz[=type].
10523
10524 2014-06-27 Martin Jambor <mjambor@suse.cz>
10525
10526 PR ipa/61160
10527 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10528 args_to_skip, use those from node instead. Copy args_to_skip and
10529 combined_args_to_skip from node to the new thunk.
10530 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10531 (cgraph_create_virtual_clone): Moved computation of
10532 combined_args_to_skip...
10533 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10534
10535 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10536
10537 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10538 redundant diagnostic machinary.
10539
10540 2014-06-27 Richard Biener <rguenther@suse.de>
10541
10542 * tree-ssa-math-opts.c (bswap_replace): Fix
10543 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10544
10545 2014-06-27 Martin Liska <mliska@suse.cz>
10546
10547 * gimple.h (gimple_location_safe): New function introduced.
10548 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10549 of gimple_location_safe replaces gimple_location.
10550 (gimple_fold_call): Likewise.
10551 * ipa-devirt.c (ipa_devirt): Likewise.
10552 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10553 * ipa.c (walk_polymorphic_call_targets): Likewise.
10554 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10555
10556 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10557
10558 PR tree-optimization/57233
10559 PR tree-optimization/61299
10560 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10561 functions.
10562 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10563 would be lowered to scalar shifts, check if corresponding
10564 shifts and vector BIT_IOR_EXPR are supported and don't lower
10565 or lower just to narrower vector type in that case.
10566 * expmed.c (expand_shift_1): Fix up handling of vector
10567 shifts and rotates.
10568
10569 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10570
10571 PR target/61586
10572 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10573
10574 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10575
10576 * doc/invoke.texi (-fsemantic-interposition): Document.
10577 * common.opt (fsemantic-interposition): New flag.
10578 * varasm.c (decl_replaceable_p): Use it.
10579
10580 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10581
10582 PR target/61542
10583 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10584 extraction other than index 3.
10585
10586 2014-06-26 Teresa Johnson <tejohnson@google.com>
10587
10588 * doc/invoke.texi: Fix typo.
10589 * dumpfile.c: Add support for documented -fdump-* options
10590 optimized/missed/note/optall.
10591
10592 2014-06-26 Martin Jambor <mjambor@suse.cz>
10593
10594 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10595 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10596 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10597 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10598 * opts.c (default_options_optimization): Set
10599 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10600 * doc/invoke.texi (allow-load-data-races)
10601 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10602 (allow-store-data-races): Document the new default.
10603
10604 2014-06-26 Martin Jambor <mjambor@suse.cz>
10605
10606 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10607 renamed to ipa_impossible_devirt_target. Fix typo.
10608 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10609 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10610 ipa_impossible_devirt_target.
10611
10612 2014-06-26 Richard Biener <rguenther@suse.de>
10613
10614 PR tree-optimization/61607
10615 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10616 explaining why we restrict copies on loop depth.
10617 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10618 on loop depth.
10619 (record_equivalences_from_phis): Instead add it here.
10620
10621 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10622
10623 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10624 (LTO_WRAPPER_OBJS): New variable.
10625 (lto-wrapper$(exeext)): Use it.
10626 * collect2.c: Include "collect-utils.h".
10627 (verbose, debug): Remove variables.
10628 (at_file_supplied): No longer static.
10629 (tool_name): New variable.
10630 (do_wait, fork_execute, maybe_unlink): Don't declare.
10631 (tool_cleanup): No longer static.
10632 (notice): Remove function.
10633 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10634 fork_execute calls.
10635 (collect_wait, do_wait, collect_execute): Remove functions.
10636 (maybe_unlink): No longer static.
10637 * collect2.h (verbose, debug): Don't declare.
10638 (at_file_supplied): Declare.
10639 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10640 changed.
10641 (collect_execute): Replace with implementation from collect2, plus a
10642 new arg use_atfile. All callers changed.
10643 (collect_wait): Replace with implementation from collect2.
10644 (maybe_unlink_file): Remove function.
10645 (fork_execute): Replace with implementation from collect2, plus a
10646 new arg use_atfile. All callers changed.
10647 (do_wait): Add call to utils_cleanup to the error path.
10648 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10649 (tool_cleanup): Adjust declarations.
10650 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10651 * tlink.c: Include "collect-utils.h".
10652 (tlink_execute): New arg use_atfile. All callers changed.
10653 (tlink_init, tlink_execute): Remove declarations.
10654
10655 * collect-utils.c (save_temps): New variable.
10656 (do_wait): Use it instead of debug. Use fatal_error.
10657 * collect-utils.h (save_temps): Declare.
10658 * collect2.c (verbose): Rename from vflag. All uses changed.
10659 (tool_cleanup): New function, copied from collect_atexit.
10660 (collect_atexit, handler): Just call it.
10661 * collect2.h (verbose): Declaration renamed from vflag.
10662 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10663 debug.
10664
10665 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10666 (lto-wrapper$(exeext)): Link with collect-utils.o.
10667 * collect-utils.c: New file.
10668 * collect-utils.h: New file.
10669 * lto-wrapper.c: Include "collect-utils.h".
10670 (args_name): Delete variable.
10671 (tool_name): New variable.
10672 (tool_cleanup): New function.
10673 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10674 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10675 (fork_execute): Remove functions.
10676
10677 2014-06-26 Nick Clifton <nickc@redhat.com>
10678
10679 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10680
10681 * doc/extend.texi (Function Attributes): Fix typo in description
10682 of RX vector attribute.
10683
10684 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10685
10686 * config.gcc (supported_defaults): Error when passing either
10687 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10688
10689 2014-06-26 Richard Biener <rguenther@suse.de>
10690
10691 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10692 propagating volatile pointers.
10693
10694 2014-06-26 Richard Biener <rguenther@suse.de>
10695
10696 PR tree-optimization/61607
10697 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10698 loop if we redirected its latch edge.
10699 (thread_block_1): Do not cancel loops prematurely.
10700
10701 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10702
10703 * toplev.c (backend_init_target): Move init_emit_regs and
10704 init_regs to...
10705 (backend_init) ... here; skip ira_init_once and backend_init_target.
10706 (target_reinit) ... and here; clear
10707 this_target_rtl->lang_dependent_initialized.
10708 (lang_dependent_init_target): Clear
10709 this_target_rtl->lang_dependent_initialized;
10710 break out rtl initialization to ...
10711 (initialize_rtl): ... here; call also backend_init_target
10712 and ira_init_once.
10713 * toplev.h (initialize_rtl): New function.
10714 * function.c: Include toplev.h
10715 (init_function_start): Call initialize_rtl.
10716 * rtl.h (target_rtl): Add target_specific_initialized,
10717 lang_dependent_initialized.
10718
10719 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10720 Jakub Jelinek <jakub@redhat.com>
10721
10722 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10723
10724 2014-06-25 Tom de Vries <tom@codesourcery.com>
10725
10726 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10727
10728 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10729
10730 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10731 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10732 Issue a strict overflow warning if appropriate.
10733
10734 2014-06-25 Martin Liska <mliska@suse.cz>
10735
10736 IPA REF refactoring
10737 * Makefile.in: Removed header file (ipa-ref-inline.h).
10738 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10739 called.
10740 (cgraph_speculative_call_info): Likewise.
10741 (cgraph_for_node_thunks_and_aliases): Likewise.
10742 (cgraph_for_node_and_aliases): Likewise.
10743 (verify_cgraph_node): Likewise.
10744 * cgraph.h: Batch of IPA REF functions become member functions of
10745 symtab_node: add_reference, maybe_add_reference, clone_references,
10746 clone_referring, clone_reference, find_reference,
10747 remove_stmt_references, remove_all_references,
10748 remove_all_referring, dump_references, dump_referring,
10749 has_alias_p, iterate_reference, iterate_referring.
10750 * cgraphbuild.c (record_reference): New IPA REF function used.
10751 (record_type_list): Likewise.
10752 (record_eh_tables): Likewise.
10753 (mark_address): Likewise.
10754 (mark_load): Likewise.
10755 (mark_store): Likewise.
10756 (pass_build_cgraph_edges): Likewise.
10757 (rebuild_cgraph_edge): Likewise.
10758 (cgraph_rebuild_references): Likewise.
10759 (pass_remove_cgraph_callee_edges): Likewise.
10760 * cgraphclones.c (cgraph_clone_node): Likewise.
10761 (cgraph_create_virtual_clone): Likewise.
10762 (cgraph_materialize_clone): Likewise.
10763 (cgraph_materialize_all_clones): Likewise.
10764 * cgraphunit.c (cgraph_reset_node): Likewise.
10765 (cgraph_reset_node): Likewise.
10766 (analyze_function): Likewise.
10767 (assemble_thunks_and_aliases): Likewise.
10768 (expand_function): Likewise.
10769 * ipa-comdats.c (propagate_comdat_group): Likewise.
10770 (enqueue_references): Likewise.
10771 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10772 (create_specialized_node): Likewise.
10773 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10774 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10775 * ipa-inline.c (reset_edge_caches): Likewise.
10776 (update_caller_keys): Likewise.
10777 (execute): Likewise.
10778 * ipa-prop.c (remove_described_reference): Likewise.
10779 (propagate_controlled_uses): Likewise.
10780 (ipa_edge_duplication_hook): Likewise.
10781 (ipa_modify_call_arguments): Likewise.
10782 * ipa-pure-const.c (propagate_pure_const): Likewise.
10783 * ipa-ref-inline.h: Header file removed, functions moved
10784 to symtab_node class.
10785 * ipa-ref.c (remove_reference): New class member function.
10786 (cannot_lead_to_return): New class member function.
10787 (referring_ref_list): Likewise.
10788 (referred_ref_list): Likewise.
10789 Rest of functions moved to symtab_node class.
10790 * ipa-ref.h: New member functions remove_reference,
10791 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10792 to ipa_ref class.
10793 ipa_ref_list class has new member functions: first_reference,
10794 first_referring, clear, nreferences.
10795 * ipa-reference.c (analyze_function): New IPA REF function used.
10796 (write_node_summary_p): Likewise.
10797 (ipa_reference_write_optimization_summary): Likewise.
10798 * ipa-split.c (split_function): Likewise.
10799 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10800 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10801 (function_and_variable_visibility): Likewise.
10802 * ipa.c (has_addr_references_p): Likewise.
10803 (process_references): Argument type changed.
10804 (symtab_remove_unreachable_nodes): New IPA REF function used.
10805 (process_references): Likewise.
10806 (set_writeonly_bit): Likewise.
10807 * lto-cgraph.c: Implementation of new symtab_node member functions
10808 that uses new IPA REF functions.
10809 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10810 function used.
10811 * lto-streamer-out.c (output_symbol_p): Likewise.
10812 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10813 changed.
10814 * symtab.c: Implementation of new IPA REF API.
10815 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10816 (ipa_tm_create_version): Likewise.
10817 (ipa_tm_execute): Likewise.
10818 * tree-emutls.c (gen_emutls_addr): Likewise.
10819 * tree-inline.c (copy_bb): Likewise.
10820 (delete_unreachable_blocks_update_callgraph): Likewise.
10821 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10822 (varpool_for_node_and_aliases): Likewise.
10823
10824 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10825
10826 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10827
10828 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10829
10830 PR bootstrap/61598
10831 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10832 tree_node * instead of tree_node *.
10833 (fold): Adjust.
10834 (print_fold_checksum): Likewise.
10835 (fold_check_failed): Likewise.
10836 (debug_fold_checksum): Likewise.
10837 (fold_build1_stat_loc): Likewise.
10838 (fold_build2_stat_loc): Likewise.
10839 (fold_build3_stat_loc): Likewise.
10840 (fold_build_call_array_loc): Likewise.
10841
10842 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10843
10844 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10845 implementation with call to...
10846 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10847 function.
10848 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10849 Declare.
10850
10851 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10852
10853 PR tree-optimization/57742
10854 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10855 after replacing the statement.
10856
10857 2014-06-25 Nick Clifton <nickc@redhat.com>
10858
10859 * config/v850/v850.c (GHS_default_section_names): Change to const
10860 char * type.
10861 (GHS_current_section_names): Likewise.
10862 (v850_insert_attributes): Do not build strings, just assign the
10863 names directly. Change the type of 'chosen_section' to const
10864 char*.
10865 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10866 directly to the array entry.
10867 * config/v850/v850.h (GHS_default_section_names): Change to const
10868 char * type.
10869 (GHS_current_section_names): Likewise.
10870
10871 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10872
10873 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10874 (LANG_HOOKS_DECLS): Add it.
10875 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10876 has correct type.
10877 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10878 * langhooks.h (struct lang_hooks_for_decls): Add
10879 omp_clause_linear_ctor hook.
10880 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10881 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10882 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10883 combined simd loop use omp_clause_linear_ctor hook.
10884
10885 2014-06-24 Cong Hou <congh@google.com>
10886
10887 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10888 pattern recognition.
10889 (type_conversion_p): PROMOTION is true if it's a type promotion
10890 conversion, and false otherwise. Return true if the given expression
10891 is a type conversion one.
10892 * tree-vectorizer.h: Adjust the number of patterns.
10893 * tree.def: Add SAD_EXPR.
10894 * optabs.def: Add sad_optab.
10895 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10896 * expr.c (expand_expr_real_2): Likewise.
10897 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10898 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10899 * optabs.c (optab_for_tree_code): Likewise.
10900 * tree-cfg.c (estimate_operator_cost): Likewise.
10901 * tree-ssa-operands.c (get_expr_operands): Likewise.
10902 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10903 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10904 * doc/generic.texi: Add document for SAD_EXPR.
10905 * doc/md.texi: Add document for ssad and usad.
10906
10907 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10908
10909 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10910 qualification in cast.
10911
10912 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10913
10914 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10915 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10916 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10917 (tree_function_decl): ... here.
10918 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10919 streaming of vindex to ...
10920 (write_ts_function_decl_tree_pointers): ... here.
10921 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10922 Do not stream DECL_VINDEX.
10923 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10924
10925 2014-06-24 Catherine Moore <clm@codesourcery.com>
10926 Sandra Loosemore <sandra@codesourcery.com>
10927
10928 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10929 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10930 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10931
10932 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10933
10934 * doc/invoke.texi (Warning Options): Remove duplicated
10935 -Wmaybe-uninitialized.
10936
10937 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10938
10939 PR tree-optimization/57742
10940 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10941 (handle_builtin_malloc, handle_builtin_memset): New functions.
10942 (strlen_optimize_stmt): Call them.
10943 * passes.def: Move strlen after loop+dom but before vrp.
10944
10945 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10946
10947 PR target/61570
10948 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10949 model family 6 CPU with has_longmode never use a CPU without
10950 64-bit support.
10951
10952 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10953
10954 PR target/61570
10955 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10956 the last change.
10957
10958 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10959
10960 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10961 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10962 pointer_map.
10963 * hash-map.h: New file.
10964 * ipa-comdats.c: Use hash_map instead of pointer_map.
10965 * ipa.c: Likewise.
10966 * lto-section-out.c: Adjust.
10967 * lto-streamer.h: Replace pointer_map with hash_map.
10968 * symtab.c (verify_symtab): Likewise.
10969 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10970 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10971 * tree-streamer.h: Likewise.
10972 * tree-streamer.c: Adjust.
10973 * pointer-set.h: Remove pointer_map.
10974
10975 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10976
10977 * hash-table.h: Add a template arg to choose between storing values
10978 and storing pointers to values, and then provide partial
10979 specializations for both.
10980 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10981 should store, not the type values should point to.
10982 * tree-into-ssa.c (var_info_hasher): Likewise.
10983 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10984 * tree-complex.c: Adjust.
10985 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10986 table instead of int_tree_map *.
10987 * tree-parloops.c: Adjust.
10988 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10989 type is being stored.
10990 * tree-vectorizer.c: Adjust.
10991
10992 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10993
10994 * hash-table.h: Remove a layer of indirection from hash_table so that
10995 it contains the hash table's data instead of a pointer to the data.
10996 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10997 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10998 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10999 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11000 fold-const.c, gcse.c, ggc-common.c,
11001 gimple-ssa-strength-reduction.c, gimplify.c,
11002 graphite-clast-to-gimple.c, graphite-dependences.c,
11003 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11004 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11005 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11006 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11007 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11008 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11009 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11010 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11011 tree-ssa-live.c, tree-ssa-loop-im.c,
11012 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11013 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11014 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11015 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11016 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11017 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11018 vtable-verify.c, vtable-verify.h: Adjust.
11019
11020 2014-06-24 Richard Biener <rguenther@suse.de>
11021
11022 PR tree-optimization/61572
11023 * tree-ssa-sink.c (statement_sink_location): Do not sink
11024 loads from hard registers.
11025
11026 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11027
11028 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11029 not mentioned in clauses use private clause if the iterator is
11030 declared in #pragma omp for simd, and when adding lastprivate
11031 instead, add it to the outer #pragma omp for too. Diagnose
11032 if the variable is private in outer context. For simd collapse > 1
11033 loops, replace all iterators with temporaries.
11034 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11035 same even in collapse > 1 loops.
11036
11037 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11038 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11039 non-NULL.
11040 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11041 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11042 non-NULL.
11043 (gimplify_adjust_omp_clauses): Likewise.
11044 * omp-low.c (lower_rec_simd_input_clauses,
11045 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11046 safelen the same as safelen(1).
11047 * tree-nested.c (convert_nonlocal_omp_clauses,
11048 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11049 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11050 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11051 Fixup handling of GIMPLE_OMP_TARGET.
11052 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11053 GIMPLE_OMP_TARGET.
11054
11055 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11056
11057 PR tree-optimization/61554
11058 * tree-ssa-propagate.c: Include "bitmap.h".
11059 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11060 properly update constructor/destructor.
11061 (substitute_and_fold_dom_walker::before_dom_children):
11062 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11063 need_eh_cleaup instead.
11064 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11065 need_eh_cleanup.
11066
11067 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11068
11069 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11070 * tree-pass.h (make_pass_ipa_single_use): New pass.
11071 * cgraph.h (used_by_single_function): New flag.
11072 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11073 Stream it.
11074 * passes.def (pass_ipa_single_use): Scedule.
11075 * ipa.c (BOTTOM): New macro.
11076 (meet): New function
11077 (propagate_single_user): New function.
11078 (ipa_single_use): New function.
11079 (pass_data_ipa_single_use): New pass.
11080 (pass_ipa_single_use): New pass.
11081 (pass_ipa_single_use::gate): New gate.
11082 (make_pass_ipa_single_use): New function.
11083
11084 2014-06-23 Kai Tietz <ktietz@redhat.com>
11085
11086 PR target/39284
11087 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11088 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11089
11090 2014-06-23 Richard Biener <rguenther@suse.de>
11091
11092 * tree-ssa-loop.c (gate_loop): New function.
11093 (pass_tree_loop::gate): Call it.
11094 (pass_data_tree_no_loop, pass_tree_no_loop,
11095 make_pass_tree_no_loop): New.
11096 * tree-vectorizer.c: Include tree-scalar-evolution.c
11097 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11098 required.
11099 (pass_slp_vectorize::clone): New method.
11100 * timevar.def (TV_TREE_NOLOOP): New.
11101 * tree-pass.h (make_pass_tree_no_loop): Declare.
11102 * passes.def (pass_tree_no_loop): New pass group with
11103 SLP vectorizer.
11104
11105 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11106
11107 PR target/61570
11108 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11109 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11110
11111 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11112
11113 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11114 "yes" where needed.
11115
11116 2014-06-23 Alan Modra <amodra@gmail.com>
11117
11118 PR bootstrap/61583
11119 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11120 to zero on debug statements.
11121
11122 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11123
11124 PR target/60825
11125 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11126 Ignore third operand if present by marking qualifier_internal.
11127
11128 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11129
11130 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11131 vector extension.
11132 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11133 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11134 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11135 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11136 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11137 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11138 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11139 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11140 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11141 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11142 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11143 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11144 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11145 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11146 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11147 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11148 logic in GCC vector extensions
11149
11150 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11151 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11152 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11153 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11154 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11155 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11156 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11157 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11158 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11159 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11160
11161 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11162
11163 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11164 extensions.
11165
11166 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11167 (vget_low_s64): Use __GET_LOW macro.
11168 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11169 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11170 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11171 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11172 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11173
11174 (vcombine_s64): Use GCC vector extensions; remove cast.
11175 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11176 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11177 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11178 Fix type signature; remove cast.
11179
11180 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11181
11182 PR target/60825
11183 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11184 V1DFmode.
11185 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11186 add V1DFmode
11187 (BUILTIN_VD1): New.
11188 (BUILTIN_VD_RE): Remove.
11189 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11190 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11191 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11192 variant but not df.
11193 (vreinterpretv1df*, vreinterpret*v1df): New.
11194 (vreinterpretdf*, vreinterpret*df): Remove.
11195 * config/aarch64/aarch64-simd.md (aarch64_create,
11196 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11197 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11198 (VD1): New.
11199 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11200 (vcreate_f64): Remove cast, use v1df builtin.
11201 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11202 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11203 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11204 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11205 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11206 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11207 add range check using __builtin_aarch64_im_lane_boundsi.
11208 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11209 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11210 type signature, use gcc vector extensions.
11211 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11212 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11213 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11214 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11215 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11216 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11217 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11218 vreinterpret_u64_f64): Use v1df builtin not df.
11219
11220 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11221
11222 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11223 vector registers.
11224
11225 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11226
11227 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11228 priority directly.
11229
11230 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11231
11232 * loop-invariant.c (pre_check_invariant_p): New function.
11233 (find_invariant_insn): Call pre_check_invariant_p.
11234
11235 2014-06-22 Richard Henderson <rth@redhat.com>
11236
11237 PR target/61565
11238 * compare-elim.c (struct comparison): Add eh_note.
11239 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11240 a redundant comparison in a different EH region. Purge EH edges if
11241 necessary.
11242
11243 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11244
11245 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11246 (var_shift): Use it.
11247 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11248 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11249 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11250 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11251 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11252 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11253 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11254 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11255 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11256 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11257 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11258 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11259 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11260 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11261 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11262 *rotldi3_internal15be): Use the new attribute. Merge register and
11263 integer alternatives.
11264
11265 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11266
11267 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11268 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11269 split, *ashrdi3_internal3 and split): Delete, merge into...
11270 (ashr<mode>3): New expander.
11271 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11272 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11273
11274 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11275
11276 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11277 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11278 *rotldi3_internal3 and split): Delete, merge into...
11279 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11280 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11281 Use "rotlw" extended mnemonic.
11282
11283 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11284
11285 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11286 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11287 and split, *ashldi3_internal3 and split): Delete, merge into...
11288 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11289 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11290
11291 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11292
11293 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11294 (lshrsi3, two anonymous define_insns and define_splits,
11295 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11296 *lshrdi3_internal3 and split): Delete, merge into...
11297 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11298 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11299
11300 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11301
11302 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11303 Remove "O" alternative.
11304
11305 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11306
11307 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11308 (mips_move_from_gpr_cost): Likewise.
11309 (mips_register_move_cost): Update accordingly.
11310 (mips_secondary_reload_class): Remove name of in_p.
11311
11312 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11313
11314 PR target/61503
11315 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11316 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11317
11318 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11319
11320 * config/nios2/nios2.c: Include "builtins.h".
11321
11322 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11323
11324 * cgraph.h (tls_model_names): New variable.
11325 * print-tree.c (print_node): Simplify.
11326 * varpool.c (tls_model_names): New variable.
11327 (dump_varpool_node): Output tls model.
11328
11329 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11330
11331 * ipa-visibility.c (function_and_variable_visibility): Disable
11332 temporarily local aliases for some targets.
11333
11334 2014-06-20 Marek Polacek <polacek@redhat.com>
11335
11336 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11337 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11338 into SANITIZE_UNDEFINED.
11339 * doc/invoke.texi: Describe -fsanitize=bounds.
11340 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11341 functions created in the FEs.
11342 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11343 (expand_UBSAN_BOUNDS): New function.
11344 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11345 * internal-fn.h: Don't define internal functions here.
11346 * opts.c (common_handle_option): Add -fsanitize=bounds.
11347 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11348 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11349 * tree-core.h: Define internal functions here.
11350 (struct tree_base): Add ifn field.
11351 * tree-pretty-print.c: Include "internal-fn.h".
11352 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11353 * tree.c (get_callee_fndecl): Likewise.
11354 (build_call_expr_internal_loc): New function.
11355 * tree.def (CALL_EXPR): Update description.
11356 * tree.h (CALL_EXPR_IFN): Define.
11357 (build_call_expr_internal_loc): Declare.
11358 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11359 types.
11360 (ubsan_type_descriptor): Change bool parameter to enum
11361 ubsan_print_style. Adjust the code. Add handling of
11362 UBSAN_PRINT_ARRAY.
11363 (ubsan_expand_bounds_ifn): New function.
11364 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11365 (ubsan_build_overflow_builtin): Likewise.
11366 (instrument_bool_enum_load): Likewise.
11367 (ubsan_instrument_float_cast): Likewise.
11368 * ubsan.h (enum ubsan_print_style): New enum.
11369 (ubsan_expand_bounds_ifn): Declare.
11370 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11371
11372 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11373
11374 * config/rs6000/rs6000.md: Append `DONE' to preparation
11375 statements of `bswap' pattern splitters.
11376
11377 2014-06-20 Tom de Vries <tom@codesourcery.com>
11378
11379 * target.def (call_fusage_contains_non_callee_clobbers): Update
11380 definition.
11381 * doc/tm.texi: Regenerate.
11382
11383 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11384 Max Ostapenko <m.ostapenko@partner.samsung.com>
11385
11386 PR sanitizer/61547
11387 * asan.c (instrument_strlen_call): Fixed instrumentation of
11388 trailing byte.
11389
11390 2014-06-20 Martin Jambor <mjambor@suse.cz>
11391
11392 PR ipa/61540
11393 * ipa-prop.c (impossible_devirt_target): New function.
11394 (try_make_edge_direct_virtual_call): Use it, also instead of
11395 asserting.
11396
11397 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11398 Max Ostapenko <m.ostapenko@partner.samsung.com>
11399
11400 PR sanitizer/61530
11401 * asan.c (build_check_stmt): Add condition.
11402
11403 2014-06-20 Martin Jambor <mjambor@suse.cz>
11404
11405 PR ipa/61211
11406 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11407 expanded clones.
11408
11409 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11410
11411 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11412 Update comments.
11413 (VCONQ): Make comment more helpful.
11414 (VCON): Delete.
11415 * config/aarch64/aarch64-simd.md
11416 (aarch64_sqdmulh_lane<mode>):
11417 Use VCOND for operands 2. Update lane checking and flipping logic.
11418 (aarch64_sqrdmulh_lane<mode>): Likewise.
11419 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11420 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11421 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11422 attribute of operand 3 to VCOND.
11423 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11424 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11425 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11426 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11427 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11428 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11429 define_insn.
11430 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11431 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11432 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11433 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11434 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11435 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11436 operand to VCOND. Update lane flipping and bounds checking logic.
11437 (aarch64_sqdmlal2_lane<mode>): Likewise.
11438 (aarch64_sqdmlsl_lane<mode>): Likewise.
11439 (aarch64_sqdmull_lane<mode>): Likewise.
11440 (aarch64_sqdmull2_lane<mode>): Likewise.
11441 (aarch64_sqdmlal_laneq<mode>):
11442 Replace VCON usage with VCONQ.
11443 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11444 (aarch64_sqdmlal2_laneq<mode>): Emit
11445 aarch64_sqdmlal2_laneq<mode>_internal insn.
11446 Replace VCON with VCONQ.
11447 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11448 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11449 (aarch64_sqdmull_laneq<mode>): Emit
11450 aarch64_sqdmull_laneq<mode>_internal insn.
11451 Replace VCON with VCONQ.
11452 (aarch64_sqdmull2_laneq<mode>): Emit
11453 aarch64_sqdmull2_laneq<mode>_internal insn.
11454 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11455 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11456 of 3rd argument to int16x4_t.
11457 (vqdmlalh_lane_s16): Likewise.
11458 (vqdmlslh_lane_s16): Likewise.
11459 (vqdmull_high_lane_s16): Likewise.
11460 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11461 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11462 (vqdmlsl_lane_s16): Likewise.
11463 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11464 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11465 (vqdmlals_lane_s32): Likewise.
11466 (vqdmlsls_lane_s32): Likewise.
11467 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11468 (vqdmulls_lane_s32): Likewise.
11469 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11470 (vqdmlsl_lane_s32): Likewise.
11471 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11472 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11473 (vqrdmulhh_lane_s16): Likewise.
11474 (vqdmlsl_high_lane_s16): Likewise.
11475 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11476 (vqdmlsl_high_lane_s32): Likewise.
11477 (vqrdmulhs_lane_s32): Likewise.
11478
11479 2014-06-20 Tom de Vries <tom@codesourcery.com>
11480
11481 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11482 get_call_reg_set_usage.
11483
11484 2014-06-20 Tom de Vries <tom@codesourcery.com>
11485
11486 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11487 it contains all call_used_regs.
11488
11489 2014-06-20 Tom de Vries <tom@codesourcery.com>
11490
11491 * final.c (collect_fn_hard_reg_usage): Add and use variable
11492 function_used_regs.
11493
11494 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11495
11496 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11497 (set_init_priority, get_init_priority, set_fini_priority,
11498 get_fini_priority): New methods.
11499 * tree.c (init_priority_for_decl): Remove.
11500 (init_ttree): Do not initialize init priority.
11501 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11502 (decl_priority_info): Remove.
11503 (decl_init_priority_insert): Rewrite.
11504 (decl_fini_priority_insert): Rewrite.
11505 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11506 tree_priority_map_marked_p): Remove.
11507 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11508 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11509 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11510 not output priorities.
11511 (pack_ts_function_decl_value_fields): Likewise.
11512 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11513 not input priorities.
11514 (unpack_ts_function_decl_value_fields): Likewise.
11515 * symtab.c (symbol_priority_map): Declare.
11516 (init_priority_hash): Declare.
11517 (symtab_unregister_node): Unregister from priority hash, too.
11518 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11519 New methods.
11520 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11521 (symbol_priority_info): New function.
11522 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11523 New methods.
11524 * tree-core.h (tree_priority_map): Remove.
11525
11526 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11527
11528 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11529 0xff to uint64_t before shifting it up.
11530
11531 2014-06-20 Julian Brown <julian@codesourcery.com>
11532 Chung-Lin Tang <cltang@codesourcery.com>
11533
11534 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11535 TARGET_THUMB1_ONLY. Add comments.
11536
11537 2014-06-19 Tom de Vries <tom@codesourcery.com>
11538
11539 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11540 return type to void.
11541 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11542
11543 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11544
11545 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11546 as "move", from depends_on.
11547
11548 2014-06-19 Terry Guo <terry.guo@arm.com>
11549
11550 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11551 stage.
11552
11553 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11554
11555 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11556 Remove cr5.
11557 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11558
11559 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11560
11561 PR target/61550
11562 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11563 addresses here if reload in progress or completed.
11564
11565 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11566
11567 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11568 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11569 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11570 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11571 (mips_register_priority): New function that implements the target
11572 hook TARGET_REGISTER_PRIORITY.
11573 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11574 (mips_lra_p): Likewise for TARGET_LRA_P.
11575 (TARGET_REGISTER_PRIORITY): Define macro.
11576 (TARGET_SPILL_CLASS): Likewise.
11577 (TARGET_LRA_P): Likewise.
11578 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11579 classes.
11580 (REG_CLASS_NAMES): Likewise.
11581 (REG_CLASS_CONTENTS): Likewise.
11582 (BASE_REG_CLASS): Use M16_SP_REGS.
11583 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11584 New set attribute to enable alternatives depending on the register
11585 allocator used.
11586 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11587 (*lea64): Disable pattern for MIPS16.
11588 * config/mips/mips.opt (mlra): New option.
11589
11590 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11591
11592 * lra-constraints.c (base_to_reg): New function.
11593 (process_address): Use new function.
11594
11595 2014-06-18 Tom de Vries <tom@codesourcery.com>
11596
11597 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11598 * config/aarch64/aarch64.c
11599 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11600 (aarch64_emit_call_insn): New function.
11601 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11602 of emit_call_insn.
11603 * config/aarch64/aarch64.md (define_expand "call_internal")
11604 (define_expand "call_value_internal", define_expand "sibcall_internal")
11605 (define_expand "sibcall_value_internal"): New.
11606 (define_expand "call", define_expand "call_value")
11607 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11608 expand variant and aarch64_emit_call_insn.
11609
11610 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11611 Tom de Vries <tom@codesourcery.com>
11612
11613 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11614 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11615 Redefine to true.
11616 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11617 clobbers to CALL_INSN_FUNCTION_USAGE.
11618 (define_expand "sibcall_internal")
11619 (define_expand "sibcall_value_internal"): New.
11620 (define_expand "call", define_expand "call_value"): Add argument to
11621 arm_emit_call_insn.
11622 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11623 (define_expand "sibcall_value"): Use sibcall_value_internal and
11624 arm_emit_call_insn.
11625
11626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11627
11628 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11629
11630 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11631
11632 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11633 __udivmoddi4.
11634
11635 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11636
11637 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11638 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11639 annotations. Fix DWARF information.
11640
11641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11642
11643 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11644 __udivmoddi4, and fixups for negative operands.
11645
11646 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11647
11648 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11649
11650 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11651
11652 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11653 to __udivmoddi4.
11654
11655 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11656
11657 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11658 manipulation.
11659
11660 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11661
11662 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11663 describing register usage on function entry and exit.
11664
11665 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11666
11667 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11668 (__aeabi_ldivmod): Fix whitespace.
11669
11670 2014-06-18 Andreas Schwab <schwab@suse.de>
11671
11672 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11673 Remove blank line after @item.
11674
11675 2014-06-18 Richard Henderson <rth@redhat.com>
11676
11677 PR target/61545
11678 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11679
11680 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11681
11682 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11683 POST_MODIFY for neon loads and stores.
11684 (arm_print_operand): Output post-index register for neon loads and
11685 stores.
11686
11687 2014-06-18 Richard Biener <rguenther@suse.de>
11688
11689 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11690
11691 2014-06-18 Richard Biener <rguenther@suse.de>
11692
11693 * tree-pass.h (make_pass_dce_loop): Remove.
11694 * passes.def: Replace pass_dce_loop with pass_dce.
11695 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11696 changed free niter estimates and reset the scev cache.
11697 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11698 make_pass_dce_loop): Remove.
11699 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11700 (fini_copy_prop): Return whether something changed. Always
11701 let substitute_and_fold perform DCE and free niter estimates
11702 and reset the scev cache if so.
11703 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11704 (pass_data_copy_prop): Do not unconditionally schedule
11705 cleanup-cfg or update-ssa.
11706
11707 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11708
11709 PR tree-optimization/61518
11710 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11711 reduction var is used in reduction stmt or phi-function only.
11712
11713 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11714
11715 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11716
11717 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11718
11719 PR tree-optimization/61517
11720 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11721 whose rhs's first tree is the source expression instead of the
11722 expression itself.
11723 (find_bswap_or_nop): Likewise.
11724 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11725 gimple stmt whose rhs's first tree is the source. In the memory source
11726 case, move the stmt to be replaced close to one of the original load to
11727 avoid the problem of a store between the load and the stmt's original
11728 location.
11729 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11730 signature.
11731
11732 2014-06-18 Andreas Schwab <schwab@suse.de>
11733
11734 PR rtl-optimization/54555
11735 * postreload.c (move2add_use_add2_insn): Substitute
11736 STRICT_LOW_PART only if it is cheaper.
11737
11738 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11739
11740 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11741 Do not use unspec as call operand. Use memory_operand instead of
11742 memory_nox32_operand and add "m" operand constraint. Disable
11743 pattern for TARGET_X32.
11744 (*sibcall_pop_memory): Ditto.
11745 (*sibcall_value_memory): Ditto.
11746 (*sibcall_value_pop_memory): Ditto.
11747 (sibcall peepholes): Merge SImode and DImode patterns using
11748 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11749 Disable pattern for TARGET_X32. Check if eliminated register is
11750 really dead after call insn. Generate call RTX without unspec operand.
11751 (sibcall_value peepholes): Ditto.
11752 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11753 instead of memory_nox32_operand. Check if eliminated register is
11754 really dead after call insn. Generate call RTX without unspec operand.
11755 (sibcall_value_pop peepholes): Ditto.
11756 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11757
11758 2014-06-18 Terry Guo <terry.guo@arm.com>
11759
11760 PR target/61544
11761 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11762 reach the head.
11763
11764 2014-06-18 Olivier Hainque <hainque@adacore.com>
11765
11766 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11767 memorization of the end of block source location.
11768 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11769 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11770 end source location info we have on the block entry/exit code we
11771 generate.
11772
11773 2014-06-18 Richard Biener <rguenther@suse.de>
11774
11775 * common.opt (fssa-phiopt): New option.
11776 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11777 but not with -Og.
11778 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11779 * doc/invoke.texi (-fssa-phiopt): Document.
11780
11781 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11782
11783 * genattrtab.c (n_bypassed): New variable.
11784 (process_bypasses): Initialise n_bypassed.
11785 Count number of bypassed reservations.
11786 (make_automaton_attrs): Allocate space for bypassed reservations
11787 rather than number of bypasses.
11788
11789 2014-06-18 Richard Biener <rguenther@suse.de>
11790
11791 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11792 we propagated anything.
11793 (substitute_and_fold_dom_walker::before_dom_children): Something
11794 changed if we propagated into PHI arguments.
11795 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11796 we removed a stmt.
11797
11798 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11799
11800 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11801 vector case.
11802 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11803 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11804 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11805 Introduces alternative way of loads group permutaions.
11806 (vect_transform_grouped_load): Try alternative way of permutations.
11807
11808 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11809
11810 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11811 changed in ORT_TARGET region, don't jump to do_outer.
11812 (struct gimplify_adjust_omp_clauses_data): New type.
11813 (gimplify_adjust_omp_clauses_1): Adjust for data being
11814 a struct gimplify_adjust_omp_clauses_data pointer instead
11815 of tree *. Pass pre_p as a new argument to
11816 lang_hooks.decls.omp_finish_clause hook.
11817 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11818 splay_tree_foreach to pass both list_p and pre_p.
11819 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11820 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11821 gimplify_adjust_omp_clauses callers.
11822 * langhooks.c (lhd_omp_finish_clause): New function.
11823 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11824 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11825 * langhooks.h (struct lang_hooks_for_decls): Add a new
11826 gimple_seq * argument to omp_finish_clause hook.
11827 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11828 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11829 (scan_omp_parallel, lower_omp_for): When adding
11830 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11831 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11832 * tree-nested.c (convert_nonlocal_omp_clauses,
11833 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11834 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11835
11836 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11837
11838 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11839 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11840
11841 2014-06-17 Xinliang David Li <davidxl@google.com>
11842
11843 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11844 * passes.c (pass_init_dump_file): Do not set initialize
11845 flag to false unconditionally.
11846
11847 2014-06-17 Richard Biener <rguenther@suse.de>
11848
11849 * genopinit.c (main): Use vec<>::qsort method.
11850 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11851 Likewise.
11852 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11853
11854 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11855
11856 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11857 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11858 (mips_move_to_gpr_cost): Remove ST_REGS case.
11859 (mips_move_from_gpr_cost): Likewise.
11860 (mips_register_move_cost): Likewise.
11861 (mips_secondary_reload_class): Likewise.
11862
11863 2014-06-17 Richard Biener <rguenther@suse.de>
11864
11865 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11866 (pass_all_optimizations): Move 3rd copy-prop pass from after
11867 fre to before ifcombine/phiopt.
11868
11869 2014-06-17 Richard Biener <rguenther@suse.de>
11870
11871 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11872 and allow all blocks to be forwarders.
11873
11874 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11875
11876 PR target/61483
11877 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11878 variable 'size'; calculate 'size' right in the front; use
11879 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11880 pcum->aapcs_stack_words.
11881
11882 2014-06-17 Nick Clifton <nickc@redhat.com>
11883
11884 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11885 (umulhi3, mulsidi3, umulsidi3): Likewise.
11886
11887 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11888
11889 PR middle-end/61508
11890 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11891 check for section name.
11892
11893 2014-06-17 Richard Biener <rguenther@suse.de>
11894
11895 * tree-ssa-propagate.c: Include domwalk.h.
11896 (substitute_and_fold): Outline main worker into a domwalker ...
11897 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11898 Schedule stmts we can fully propagate for removal. Remove
11899 poor-mans DCE.
11900 (substitute_and_fold): Apply a dominator walk to perform
11901 substitution. Process stmts scheduled for removal here.
11902
11903 2014-06-17 Richard Biener <rguenther@suse.de>
11904
11905 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11906 of PHI node moving.
11907
11908 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11909
11910 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11911 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11912 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11913 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11914 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11915 TARGET_HARD_FLOAT.
11916 (get_fpscr) : Likewise.
11917
11918 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11919
11920 PR rtl-optimization/61325
11921 * lra-constraints.c (valid_address_p): Add forward declaration.
11922 (simplify_operand_subreg): Check address validity before and after
11923 alter_reg of memory subreg.
11924
11925 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11926
11927 * config/i386/i386.c (decide_alg): Correctly handle
11928 maximum size of stringop algorithm.
11929
11930 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11931
11932 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11933
11934 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11935
11936 PR rtl-optimization/61522
11937 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11938
11939 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11940
11941 Revert:
11942 * symtab.c (symtab_node::reset_section): New method.
11943 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11944 for localization.
11945 * cgraph.h (reset_section): Declare.
11946 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11947 do not consider comdat locals.
11948 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11949 for new symbol.
11950 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11951 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11952 reset sections of symbols dragged out of the comdats.
11953 (function_and_variable_visibility): Reset sections of
11954 localized symbols.
11955
11956 2014-06-16 Richard Biener <rguenther@suse.de>
11957
11958 PR tree-optimization/61482
11959 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11960 [-INF(OVF), +INF(OVF)] range.
11961
11962 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11963
11964 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11965 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11966 handling 32-bit multiplication.
11967
11968 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11969
11970 PR middle-end/61430
11971 * lra-lives.c (process_bb_lives): Skip creating copy during
11972 insn scan when src/dest has constrained to same regno.
11973
11974 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11975
11976 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11977 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11978
11979 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11980
11981 * asan.c (check_func): New function.
11982 (maybe_create_ssa_name): Likewise.
11983 (build_check_stmt_with_calls): Likewise.
11984 (use_calls_p): Likewise.
11985 (report_error_func): Change interface.
11986 (build_check_stmt): Allow non-integer lengths; add support
11987 for new parameter.
11988 (asan_instrument): Likewise.
11989 (instrument_mem_region_access): Moved code to build_check_stmt.
11990 (instrument_derefs): Likewise.
11991 (instrument_strlen_call): Likewise.
11992 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11993 * doc/invoke.texi: Describe new parameter.
11994 * params.def: Define new parameter.
11995 * params.h: Likewise.
11996 * sanitizer.def: Describe new builtins.
11997
11998 2014-06-16 Richard Biener <rguenther@suse.de>
11999
12000 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12001 Make all defs available at the end.
12002 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12003
12004 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12005
12006 PR plugins/45078
12007 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12008
12009 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12010
12011 PR bootstrap/61516
12012 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12013 initialization. Replace remaining use of uid.
12014
12015 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12016
12017 * c-family/c-common.c (handle_tls_model_attribute): Use
12018 set_decl_tls_model.
12019 * c-family/c-common.c (handle_tls_model_attribute): Use
12020 set_decl_tls_model.
12021 * cgraph.h (struct varpool_node): Add tls_model.
12022 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12023 * tree.h (DECL_TLS_MODEL): Update.
12024 (DECL_THREAD_LOCAL_P): Check that variable is static.
12025 (decl_tls_model): Declare.
12026 (set_decl_tls_model): Declare.
12027 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12028 set symbol prorperties.
12029 (get_emutls_init_templ_addr): Cleanup.
12030 (new_emutls_decl): Update.
12031 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12032 (lto_input_varpool_node): Likewise.
12033 * lto-streamer-out.c (hash_tree): Likewise.
12034 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12035 not stream DECL_TLS_MODEL.
12036 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12037 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12038
12039 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12040
12041 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12042
12043 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12044
12045 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12046 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12047 lists.
12048 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12049 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12050 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12051 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12052 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12053 (df_get_artificial_defs, df_get_artificial_uses)
12054 (df_single_def, df_single_use): Update accordingly.
12055 (df_refs_chain_dump): Take the first element in a linked list as
12056 parameter, rather than a pointer to an array of pointers.
12057 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12058 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12059 (df_chain_create_bb_process_use): Likewise.
12060 (df_md_bb_local_compute_process_def): Likewise.
12061 * fwprop.c (process_defs, process_uses): Likewise.
12062 (register_active_defs, update_uses): Likewise.
12063 (forward_propagate_asm): Update for new df_ref linking.
12064 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12065 (df_null_ref_rec, df_null_mw_rec): Likewise.
12066 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12067 explicitly.
12068 (df_scan_free_bb_info): Remove check for null artificial_defs.
12069 (df_install_ref_incremental): Adjust for new df_ref linking.
12070 Use a single-element insertion rather than a full sort.
12071 (df_ref_chain_delete_du_chain): Take the first element
12072 in a linked list as parameter, rather than a pointer to an array of
12073 pointers.
12074 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12075 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12076 (df_insn_info_delete): Remove check for null defs and call to
12077 df_scan_free_mws_vec.
12078 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12079 null rather than df_null_*_rec.
12080 (df_insn_rescan_debug_internal): Likewise, and update null
12081 checks in the same way. Remove check for null defs.
12082 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12083 Move a single element rather doing a full sort.
12084 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12085 linking.
12086 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12087 Initialize df_ref and df_mw_hardreg lists to null rather than
12088 df_null_*_rec.
12089 (df_ref_compare): Take df_refs as parameter, transferring the
12090 old interface to...
12091 (df_ref_ptr_compare): ...this new function.
12092 (df_sort_and_compress_refs): Update accordingly.
12093 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12094 old interface to...
12095 (df_mw_ptr_compare): ...this new function.
12096 (df_sort_and_compress_mws): Update accordingly.
12097 (df_install_refs, df_install_mws): Return a linked list rather than
12098 an array of pointers.
12099 (df_refs_add_to_chains): Assert that old lists are empty rather
12100 than freeing them.
12101 (df_insn_refs_verify): Don't handle null defs speciailly.
12102 * web.c (union_match_dups): Update for new df_ref linking.
12103
12104 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12105
12106 * df.h (df_ref_create, df_ref_remove): Delete.
12107 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12108 (df_ref_remove): Likewise.
12109
12110 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12111
12112 * df.h (df_single_def, df_single_use): New functions.
12113 * ira.c (find_moveable_pseudos): Use them.
12114
12115 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12116
12117 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12118 * df-problems.c (df_note_bb_compute): Use it.
12119 * regstat.c (regstat_bb_compute_ri): Likewise.
12120
12121 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12122
12123 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12124 * cse.c (cse_extended_basic_block): Use them.
12125 * dce.c (mark_artificial_use): Likewise.
12126 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12127 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12128 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12129 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12130 (df_simulate_initialize_backwards): Likewise.
12131 (df_simulate_finalize_backwards): Likewise.
12132 (df_simulate_initialize_forwards): Likewise.
12133 (df_md_simulate_artificial_defs_at_top): Likewise.
12134 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12135 * regrename.c (init_rename_info): Likewise.
12136 * regstat.c (regstat_bb_compute_ri): Likewise.
12137 (regstat_bb_compute_calls_crossed): Likewise.
12138
12139 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12140
12141 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12142 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12143 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12144 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12145 * combine.c (create_log_links): Likewise.
12146 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12147 (try_eliminate_compare): Likewise.
12148 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12149 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12150 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12151 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12152 (word_dce_process_block, dce_process_block): Likewise.
12153 * ddg.c (def_has_ccmode_p): Likewise.
12154 * df-core.c (df_bb_regno_first_def_find): Likewise.
12155 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12156 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12157 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12158 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12159 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12160 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12161 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12162 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12163 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12164 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12165 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12166 * fwprop.c (local_ref_killed_between_p): Likewise.
12167 (all_uses_available_at, free_load_extend): Likewise.
12168 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12169 * hw-doloop.c (scan_loop): Likewise.
12170 * ifcvt.c (dead_or_predicable): Likewise.
12171 * init-regs.c (initialize_uninitialized_regs): Likewise.
12172 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12173 (process_bb_node_lives): Likewise.
12174 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12175 (find_moveable_pseudos): Likewise.
12176 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12177 * recog.c (peep2_find_free_register): Likewise.
12178 * ree.c (get_defs): Likewise.
12179 * regstat.c (regstat_bb_compute_ri): Likewise.
12180 (regstat_bb_compute_calls_crossed): Likewise.
12181 * sched-deps.c (find_inc, find_mem): Likewise.
12182 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12183 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12184 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12185 (prepare_shrink_wrap): Likewise.
12186 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12187 * web.c (union_defs, pass_web::execute): Likewise.
12188 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12189 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12190
12191 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12192
12193 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12194 to inheritance pseudos.
12195 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12196
12197 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12198
12199 PR target/61415
12200 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12201 (BU_MISC_2): Rename to ...
12202 (BU_LDBL128_2): ... this.
12203 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12204 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12205 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12206 RS6000_BTM_LDBL128.
12207 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12208 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12209 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12210 (unpacktf_1): Likewise.
12211 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12212 (__builtin_longdouble_dw1): Likewise.
12213 * doc/sourcebuild.texi (longdouble128): Document.
12214
12215 2014-06-13 Jeff Law <law@redhat.com>
12216
12217 PR rtl-optimization/61094
12218 PR rtl-optimization/61446
12219 * ree.c (combine_reaching_defs): Get the mode for the copy from
12220 the extension insn rather than the defining insn.
12221
12222 2014-06-13 Dehao Chen <dehao@google.com>
12223
12224 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12225
12226 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12227
12228 * doc/install.texi (--enable-linker-plugin-configure-flags)
12229 (--enable-linker-plugin-flags): Document new flags.
12230
12231 2014-06-13 Martin Jambor <mjambor@suse.cz>
12232
12233 PR ipa/61186
12234 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12235 cache_token if returning early.
12236
12237 2014-06-13 Nick Clifton <nickc@redhat.com>
12238
12239 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12240 requested alignment is active.
12241 (LABEL_ALIGN): Likewise.
12242 (LOOP_ALIGN): Likewise.
12243
12244 2014-06-13 Richard Biener <rguenther@suse.de>
12245
12246 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12247 Rewrite to propagate the VN result into all uses where
12248 possible and to remove stmts becoming dead because of that.
12249 (eliminate): Generalize stmt removal handling, remove in
12250 reverse dominator order to support proper debug stmt
12251 generation. Update stmts before removing stmts.
12252 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12253
12254 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12255
12256 PR tree-optimization/61375
12257 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12258 symbolic number cannot be represented in an uint64_t.
12259 (find_bswap_or_nop_1): Likewise.
12260
12261 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12262
12263 * symtab.c (symtab_node::reset_section): New method.
12264 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12265 for localization.
12266 * cgraph.h (reset_section): Declare.
12267 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12268 do not consider comdat locals.
12269 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12270 for new symbol.
12271 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12272 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12273 reset sections of symbols dragged out of the comdats.
12274 (function_and_variable_visibility): Reset sections of
12275 localized symbols.
12276
12277 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12278
12279 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12280 to use symtab and decl_binds_to_current_def_p
12281 * tree-vectorizer.c (increase_alignment): Increase alignment
12282 of alias target, too.
12283
12284 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12285
12286 PR middle-end/61486
12287 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12288 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12289 if outer combined construct is distribute.
12290 (gimplify_omp_for): For OMP_DISTRIBUTE set
12291 gimplify_omp_ctxp->distribute.
12292 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12293 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12294 mapping into decl map.
12295
12296 2014-06-12 Jason Merrill <jason@redhat.com>
12297
12298 * common.opt (fabi-version): Change default to 0.
12299
12300 2014-06-12 Jason Merrill <jason@redhat.com>
12301
12302 * toplev.c (process_options): Reject -fabi-version=1.
12303
12304 2014-06-12 Jeff Law <law@redhat.com>
12305
12306 PR tree-optimization/61009
12307 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12308 value when we stop processing a block due to problematic PHIs.
12309
12310 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12311
12312 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12313 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12314 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12315 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12316 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12317 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12318 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12319 are not in the spec.
12320
12321 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12322
12323 PR target/59843
12324 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12325 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12326 Support V1DFmode.
12327
12328 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12329
12330 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12331
12332 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12333
12334 PR target/61443
12335 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12336 loading from address spaces.
12337
12338 2014-06-12 Martin Liska <mliska@suse.cz>
12339
12340 PR ipa/61462
12341 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12342 statement is reachable.
12343
12344 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12345
12346 * symtab.c (section_hash): New hash.
12347 (symtab_unregister_node): Clear section before freeing.
12348 (hash_section_hash_entry): New haser.
12349 (eq_sections): New function.
12350 (symtab_node::set_section_for_node): New method.
12351 (set_section_1): Update.
12352 (symtab_node::set_section): Take string instead of tree as parameter.
12353 (symtab_resolve_alias): Update.
12354 * cgraph.h (section_hash_entry_d): New structure.
12355 (section_hash_entry): New typedef.
12356 (cgraph_node): Change comdat_group_ to x_comdat_group,
12357 change section_ to x_section and turn into section_hash_entry;
12358 update accestors; put set_section_for_node offline.
12359 * tree.c (decl_section_name): Turn into string.
12360 (set_decl_section_name): Change parameter to be string.
12361 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12362 * sdbout.c (sdbout_one_type): Update.
12363 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12364 * varasm.c (IN_NAMED_SECTION, get_named_section,
12365 resolve_unique_section, hot_function_section, get_named_text_section,
12366 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12367 make_decl_rtl, default_unique_section): Update.
12368 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12369 (c6x_elf_unique_section): Update.
12370 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12371 * config/pa/pa.c (pa_function_section): Update.
12372 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12373 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12374 * config/arc/arc.c (arc_in_small_data_p): Update.
12375 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12376 * config/mcore/mcore.c (mcore_unique_section): Update.
12377 * config/mips/mips.c (mips16_build_function_stub): Update.
12378 (mips16_build_call_stub): Update.
12379 (mips_function_rodata_section): Update.
12380 (mips_in_small_data_p): Update.
12381 * config/score/score.c (score_in_small_data_p): Update.
12382 * config/rx/rx.c (rx_in_small_data): Update.
12383 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12384 (rs6000_xcoff_asm_named_section): Update.
12385 (rs6000_xcoff_unique_section): Update.
12386 * config/frv/frv.c (frv_string_begins_with): Update.
12387 (frv_in_small_data_p): Update.
12388 * config/v850/v850.c (v850_encode_data_area): Update.
12389 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12390 (bfin_handle_l1_data_attribute): Update.
12391 (bfin_handle_l2_attribute): Update.
12392 * config/mep/mep.c (mep_unique_section): Update.
12393 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12394 Update.
12395 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12396 (h8300_handle_tiny_data_attribute): Update.
12397 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12398 (m32r_in_small_data_p): Update.
12399 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12400 * config/i386/i386.c (ix86_in_large_data_p): Update.
12401 * config/i386/winnt.c (i386_pe_unique_section): Update.
12402 * config/darwin.c (darwin_function_section): Update.
12403 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12404 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12405 (new_emutls_decl): Update.
12406 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12407 input_varpool_node): Update.
12408 (ead_string_cst): Turn to ...
12409 (read_string): ... this one.
12410 * dwarf2out.c (secname_for_decl): Update.
12411 * asan.c (asan_protect_global): Update.
12412
12413 2014-06-11 DJ Delorie <dj@redhat.com>
12414
12415 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12416 cache lines.
12417 * config/rx/rx.c (rx_option_override): Likewise.
12418 (rx_align_for_label): Likewise.
12419
12420 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12421
12422 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12423
12424 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12425 prototype.
12426
12427 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12428
12429 * common.md: New file.
12430 * doc/md.texi: Update description of generic, machine-independent
12431 constraints.
12432 * config/s390/constraints.md (e): Delete.
12433 * Makefile.in (md_file): Include common.md.
12434 * config/m32c/t-m32c (md_file): Likewise.
12435 * genpreds.c (general_mem): New array.
12436 (generic_constraint_letters): Remove constraints now defined by
12437 common.md.
12438 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12439 Allow the first character to be '<' or '>' as well.
12440 * genoutput.c (general_mem): New array.
12441 (indep_constraints): Remove constraints now defined by common.md.
12442 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12443 Remove special handling of 'm'.
12444 * ira-costs.c (record_reg_classes): Remove special handling of
12445 constraints now defined by common.md.
12446 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12447 * ira-lives.c (single_reg_class): Likewise.
12448 (ira_implicitly_set_insn_hard_regs): Likewise.
12449 * lra-constraints.c (reg_class_from_constraints): Likewise.
12450 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12451 * postreload.c (reload_cse_simplify_operands): Likewise.
12452 * reload.c (push_secondary_reload, scratch_reload_class)
12453 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12454 * reload1.c (maybe_fix_stack_asms): Likewise.
12455 * targhooks.c (default_secondary_reload): Likewise.
12456 * stmt.c (parse_output_constraint): Likewise.
12457 * recog.c (preprocess_constraints): Likewise.
12458 (constrain_operands, peep2_find_free_register): Likewise.
12459 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12460 must be handled specially.
12461
12462 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12463
12464 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12465 * genpreds.c (have_const_dbl_constraints): Delete.
12466 (add_constraint): Don't set it.
12467 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12468 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12469 constraints using the lookup_constraint logic.
12470 * ira-lives.c (single_reg_class): Likewise.
12471 * ira.c (ira_setup_alts): Likewise.
12472 * lra-constraints.c (process_alt_operands): Likewise.
12473 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12474 * reload.c (find_reloads): Likewise.
12475
12476 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12477
12478 * genpreds.c (const_int_start, const_int_end): New variables.
12479 (choose_enum_order): Output CONST_INT constraints before memory
12480 constraints.
12481 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12482 Add CT_CONST_INT.
12483 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12484 * ira.c (ira_setup_alts): Likewise.
12485 * lra-constraints.c (process_alt_operands): Likewise.
12486 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12487 * reload.c (find_reloads): Likewise.
12488
12489 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12490
12491 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12492 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12493 * recog.c (preprocess_constraints): Update accordingly.
12494
12495 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12496
12497 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12498 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12499 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12500 * genpreds.c (print_type_tree): New function.
12501 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12502 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12503 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12504 Write out enum constraint_type and get_constraint_type.
12505 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12506 constraint_num rather than a constraint string.
12507 (satisfies_address_constraint_p): Likewise.
12508 (reg_class_from_constraints): Avoid old constraint macros.
12509 (process_alt_operands, process_address_1): Likewise.
12510 (curr_insn_transform): Likewise.
12511 * ira-costs.c (record_reg_classes): Likewise.
12512 (record_operand_costs): Likewise.
12513 * ira-lives.c (single_reg_class): Likewise.
12514 (ira_implicitly_set_insn_hard_regs): Likewise.
12515 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12516 * postreload.c (reload_cse_simplify_operands): Likewise.
12517 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12518 (constrain_operands, peep2_find_free_register): Likewise.
12519 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12520 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12521 * reload1.c (maybe_fix_stack_asms): Likewise.
12522 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12523 * targhooks.c (default_secondary_reload): Likewise.
12524 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12525 to EXTRA_CONSTRAINT_STR.
12526 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12527
12528 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12529
12530 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12531 (write_constraint_satisfied_p_array): ...this new function.
12532 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12533 an array.
12534 (write_insn_preds_c): Update accordingly.
12535
12536 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12537
12538 * genpreds.c (write_lookup_constraint): Rename to...
12539 (write_lookup_constraint_1): ...this.
12540 (write_lookup_constraint_array): New function.
12541 (write_tm_preds_h): Define lookup_constraint as an inline function
12542 that uses write_lookup_constraint_array where possible.
12543 (write_insn_preds_c): Update for the changes above.
12544
12545 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12546
12547 * doc/md.texi (regclass_for_constraint): Rename to...
12548 (reg_class_for_constraint): ...this.
12549 * genpreds.c (num_constraints, enum_order, register_start)
12550 (register_end, satisfied_start, memory_start, memory_end)
12551 (address_start, address_end): New variables.
12552 (add_constraint): Count the number of constraints.
12553 (choose_enum_order): New function.
12554 (write_enum_constraint_num): Iterate over enum_order.
12555 (write_regclass_for_constraint): Rename to...
12556 (write_reg_class_for_constraint_1): ...this and update output
12557 accordingly.
12558 (write_constraint_satisfied_p): Rename to...
12559 (write_constraint_satisfied_p_1): ...this and update output
12560 accordingly. Do nothing if all extra constraints are register
12561 constraints.
12562 (write_insn_extra_memory_constraint): Delete.
12563 (write_insn_extra_address_constraint): Delete.
12564 (write_range_function): New function.
12565 (write_tm_preds_h): Define constraint_satisfied_p and
12566 reg_class_for_constraint as inline functions that do a range check
12567 before calling the out-of-line function. Use write_range_function
12568 to implement insn_extra_{register,memory,address}_constraint,
12569 the first of which is new.
12570 (write_insn_preds_c): Update after above changes to write_* functions.
12571 (main): Call choose_enum_order.
12572
12573 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12574
12575 PR tree-optimization/61306
12576 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12577 expression instead of its size.
12578 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12579 false to prevent optimization when the result is unpredictable due to
12580 arithmetic right shift of signed type with highest byte is set.
12581 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12582 (init_symbolic_number): Likewise.
12583 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12584 when the result is unpredictable due to sign extension.
12585
12586 2014-06-11 Terry Guo <terry.guo@arm.com>
12587
12588 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12589 (*thumb1_addsi3): Ditto.
12590 (*thumb_subdi3): Ditto.
12591 (thumb1_subsi3_insn): Ditto.
12592 (*thumb_mulsi3): Ditto.
12593 (*thumb_mulsi3_v6): Ditto.
12594 (*thumb1_andsi3_insn): Ditto.
12595 (thumb1_bicsi3): Ditto.
12596 (*thumb1_iorsi3_insn): Ditto.
12597 (*thumb1_xorsi3_insn): Ditto.
12598 (*thumb1_ashlsi3): Ditto.
12599 (*thumb1_ashrsi3): Ditto.
12600 (*thumb1_lshrsi3): Ditto.
12601 (*thumb1_rotrsi3): Ditto.
12602 (*thumb1_negdi2): Ditto.
12603 (*thumb1_negsi2): Ditto.
12604 (*thumb1_abssi2): Ditto.
12605 (*thumb1_neg_abssi2): Ditto.
12606 (*thumb1_one_cmplsi2): Ditto.
12607 (*thumb1_zero_extendhisi2): Ditto.
12608 (*thumb1_zero_extendqisi2): Ditto.
12609 (*thumb1_zero_extendqisi2_v6): Ditto.
12610 (thumb1_extendhisi2): Ditto.
12611 (thumb1_extendqisi2): Ditto.
12612 (*thumb1_movdi_insn): Ditto.
12613 (*thumb1_movsi_insn): Ditto.
12614 (*thumb1_movhi_insn): Ditto.
12615 (thumb_movhi_clobber): Ditto.
12616 (*thumb1_movqi_insn): Ditto.
12617 (*thumb1_movhf): Ditto.
12618 (*thumb1_movsf_insn): Ditto.
12619 (*thumb_movdf_insn): Ditto.
12620 (movmem12b): Ditto.
12621 (movmem8b): Ditto.
12622 (cbranchqi4): Ditto.
12623 (cbranchsi4_insn): Ditto.
12624 (cbranchsi4_scratch): Ditto.
12625 (*negated_cbranchsi4): Ditto.
12626 (*tbit_cbranch): Ditto.
12627 (*tlobits_cbranch): Ditto.
12628 (*tstsi3_cbranch): Ditto.
12629 (*cbranchne_decr1): Ditto.
12630 (*addsi3_cbranch): Ditto.
12631 (*addsi3_cbranch_scratch): Ditto.
12632 (*thumb_cmpdi_zero): Ditto.
12633 (cstoresi_eq0_thumb1): Ditto.
12634 (cstoresi_ne0_thumb1): Ditto.
12635 (*cstoresi_eq0_thumb1_insn): Ditto.
12636 (*cstoresi_ne0_thumb1_insn): Ditto.
12637 (cstoresi_nltu_thumb1): Ditto.
12638 (cstoresi_ltu_thumb1): Ditto.
12639 (thumb1_addsi3_addgeu): Ditto.
12640 (*thumb_jump): Ditto.
12641 (*call_reg_thumb1_v5): Ditto.
12642 (*call_reg_thumb1): Ditto.
12643 (*call_value_reg_thumb1_v5): Ditto.
12644 (*call_value_reg_thumb1): Ditto.
12645 (*call_insn): Ditto.
12646 (*call_value_insn): Ditto.
12647 (thumb1_casesi_internal_pic): Ditto.
12648 (thumb1_casesi_dispatch): Ditto.
12649 (*thumb1_indirect_jump): Ditto.
12650 (prologue_thumb1_interwork): Ditto.
12651 (*epilogue_insns): Ditto.
12652 (consttable_1): Ditto.
12653 (consttable_2): Ditto.
12654 (tablejump): Ditto.
12655 (*thumb1_tablejump): Ditto.
12656 (thumb_eh_return): Ditto.
12657 (define_peephole2): Two of them are thumb1 only and got moved into
12658 new file thumb1.md.
12659 (define_split): Six of them are thumb1 only and got moved into new
12660 file thumb1.md.
12661 * config/arm/thumb1.md: New file comprised of above thumb1 only
12662 patterns.
12663
12664 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12665
12666 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12667 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12668 dependencies.
12669 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12670 (aarch64_crc_builtin_datum): New struct.
12671 (aarch64_crc_builtin_data): New.
12672 (aarch64_init_crc32_builtins): New function.
12673 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12674 (aarch64_crc32_expand_builtin): New.
12675 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12676 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12677 __ARM_FEATURE_CRC32 when appropriate.
12678 (TARGET_CRC32): Define.
12679 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12680 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12681 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12682 (aarch64_<crc_variant>): New pattern.
12683 * config/aarch64/arm_acle.h: New file.
12684 * config/aarch64/iterators.md (CRC): New int iterator.
12685 (crc_variant, crc_mode): New int attributes.
12686 * doc/aarch64-acle-intrinsics.texi: New file.
12687 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12688 Include aarch64-acle-intrinsics.texi.
12689
12690 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12691
12692 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12693 check for stores group of length 3.
12694 (vect_permute_store_chain): New permutations for stores group of
12695 length 3.
12696 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12697 of vec_perm_shuffle for the new permutations.
12698
12699 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12700
12701 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12702 table rewriting temporarily on targets not supporting ONE_ONLY.
12703
12704 2014-06-11 Richard Biener <rguenther@suse.de>
12705
12706 PR middle-end/61437
12707 Revert
12708 2014-06-04 Richard Biener <rguenther@suse.de>
12709
12710 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12711 TREE_PUBLIC and DECL_EXTERNAL decls.
12712
12713 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12714
12715 * varasm.c (set_implicit_section): New function.
12716 (resolve_unique_section): Use it to set implicit section
12717 for aliases, too.
12718 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12719 (default_function_section): Likewise.
12720 (decl_binds_to_current_def_p): Constify argument.
12721 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12722 * asan.c (asan_protect_global): Use
12723 symtab_get_node (decl)->implicit_section.
12724 * symtab.c (dump_symtab_base): Dump implicit sections.
12725 (verify_symtab_base): Verify sanity of sectoins and comdats.
12726 (symtab_resolve_alias): Alias share the section of its target.
12727 (set_section_1): New function.
12728 (symtab_node::set_section): Move here, recurse to aliases.
12729 (verify_symtab): Check for duplicated symtab lists.
12730 * tree-core.h (implicit_section_name_p): Remove.
12731 * tree-vect-data-refs.c: Include varasm.h.
12732 (vect_can_force_dr_alignment_p): Fix conditional on when
12733 decl bints to current definition; use
12734 symtab_get_node (decl)->implicit_section.
12735 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12736 * cgraph.h (struct symtab_node): Add implicit_section.
12737 (set_section): Rename to ...
12738 (set_section_for_node): ... this one.
12739 (set_section): Declare.
12740 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12741 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12742 input_overwrite_node, input_varpool_node): Stream implicit_section.
12743 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12744 removal; it will fail in LTO.
12745
12746 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12747
12748 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12749 Change second alternative type to f_mcr.
12750 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12751 and 12th alternatives' types to f_mcr and f_mrc.
12752 (*movdi_aarch64): Same for 12th and 13th alternatives.
12753 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12754 (aarch64_movtilow_tilow): Change type to fmov.
12755
12756 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12757
12758 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12759 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12760
12761 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12762
12763 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12764 New expander.
12765 (aarch64_sqrdmulh_lane<mode>): Likewise.
12766 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12767 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12768 (aarch64_sqdmulh_laneq<mode>): New expander.
12769 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12770 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12771 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12772 (aarch64_sqdmulh_lane<mode>): New expander.
12773 (aarch64_sqrdmulh_lane<mode>): Likewise.
12774 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12775 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12776 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12777 (aarch64_sqdmlal_laneq<mode>): Likewise.
12778 (aarch64_sqdmlsl_lane<mode>): Likewise.
12779 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12780 (aarch64_sqdmlal2_lane<mode>): Likewise.
12781 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12782 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12783 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12784 (aarch64_sqdmull_lane<mode>): Likewise.
12785 (aarch64_sqdmull_laneq<mode>): Likewise.
12786 (aarch64_sqdmull2_lane<mode>): Likewise.
12787 (aarch64_sqdmull2_laneq<mode>): Likewise.
12788
12789 2014-06-10 Richard Biener <rguenther@suse.de>
12790
12791 PR tree-optimization/61438
12792 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12793 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12794 insertion of IVs if running PRE.
12795 (eliminate): Adjust.
12796 (pass_pre::execute): Likewise.
12797 (pass_fre::execute): Likewise.
12798
12799 2014-06-10 Richard Biener <rguenther@suse.de>
12800
12801 PR middle-end/61456
12802 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12803 Do not use the main variant for the type comparison.
12804 (ncr_compar): Likewise.
12805 (nonoverlapping_component_refs_p): Likewise.
12806
12807 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12808
12809 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12810 REG_CFA_RESTORE mode.
12811
12812 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12813
12814 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12815 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12816 expand_vec_perm_pblendv.
12817
12818 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12819
12820 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12821 available.
12822 Simplify description of __crc32d and __crc32cd intrinsics.
12823 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12824 availability.
12825
12826 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12827
12828 PR lto/61334
12829 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12830 * config.in: Regenerate.
12831 * configure: Likewise.
12832
12833 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12834
12835 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12836 and public vars.
12837 (intersect_static_var_sets): Remove.
12838 (propagate): Do not prune local statics.
12839
12840 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12841
12842 PR fortran/60928
12843 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12844 Set lastprivate_firstprivate even if omp_private_outer_ref
12845 langhook returns true.
12846 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12847 langhook, call unshare_expr on new_var and call
12848 build_outer_var_ref to get the last argument.
12849
12850 2014-06-10 Marek Polacek <polacek@redhat.com>
12851
12852 PR c/60988
12853 * doc/extend.texi: Add cindex for transparent_union.
12854
12855 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12856
12857 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12858 init_symbolic_number ().
12859
12860 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12861
12862 PR middle-end/61141
12863 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12864 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12865 (verify_rtl_sharing): Likewise.
12866
12867 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12868
12869 PR c++/54442
12870 * tree.c (build_qualified_type): Use a canonical type for
12871 TYPE_CANONICAL.
12872
12873 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12874
12875 * config/arm/arm-modes.def: Remove XFmode.
12876
12877 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12878
12879 PR target/61062
12880 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12881 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12882 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12883 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12884 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12885 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12886 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12887 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12888 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12889
12890 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12891
12892 * tree-core.h (tree_decl_with_vis): Remove section_name.
12893
12894 2014-06-09 Kito Cheng <kito@0xlab.org>
12895
12896 * ira.c (ira): Don't call init_caller_save if LRA enabled
12897 since LRA use its own infrastructure to handle that.
12898
12899 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12900
12901 * symtab.c (dump_symtab_base): Update dumping.
12902 (symtab_make_decl_local): Clear only DECL_COMDAT.
12903 * tree-vect-data-refs.c (Check that variable is static before
12904 tampering with sections.
12905 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12906 (cgraph_create_virtual_clone): Likewise.
12907 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12908 (decl_section_name, set_decl_section_name): New accessors.
12909 (find_decls_types_r): Do not walk section name
12910 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12911 (decl_comdat_group, decl_comdat_group_id): Constify.
12912 (decl_section_name, set_decl_section_name): Update.
12913 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12914 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12915 (cgraph_make_node_local_1): Clear section and comdat group.
12916 * cgraph.h (set_comdat_group): Sanity check.
12917 (get_section, set_section): New.
12918 * ipa-comdats.c (ipa_comdats): Use get_section.
12919 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12920 * lto-streamer-out.c: Do not follow section names.
12921 * c-family/c-common.c (handle_section_attribute): Update.
12922 * lto-cgraph.c (lto_output_node): Output section.
12923 (lto_output_varpool_node): Likewise.
12924 (read_comdat_group): Rename to ...
12925 (read_identifier): ... this one.
12926 (read_string_cst): New function.
12927 (input_node, input_varpool_node): Input section names.
12928 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12929 (new_emutls_decl): Update.
12930 (secname_for_decl): Check section names only of static vars.
12931 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12932 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12933 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12934 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12935 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12936 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12937 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12938 * config/v850/v850.c (v850_insert_attributes): Likewise.
12939 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12940 Likewise.
12941 (h8300_handle_tiny_data_attribute): Likewise.
12942 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12943 (bfin_handle_l2_attribute): Likewise.
12944
12945 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12946
12947 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12948 remove static initializer.
12949
12950 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12951
12952 * varasm.c (use_blocks_for_decl_p): Check symbol table
12953 instead of alias attribute.
12954 (place_block_symbol): Recurse on aliases.
12955
12956 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12957
12958 * ipa-visibility.c: Include varasm.h
12959 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12960
12961 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12962
12963 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12964 outputting aliases.
12965
12966 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12967
12968 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12969 from test_insn into GGC space escape via SET_SRC.
12970
12971 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12972
12973 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12974 call statement, if any.
12975 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12976 statements, if any. Tidy up.
12977
12978 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12979
12980 PR target/61431
12981 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12982 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12983 handles swapping the two 64-bit double words on little endian
12984 systems. Include V1TImode and optionally TImode in VSX_LE so that
12985 these types are properly swapped. Change all of the insns and
12986 splits that do the 64-bit swaps to use VSX_LE.
12987 (vsx_le_perm_load_<mode>): Likewise.
12988 (vsx_le_perm_store_<mode>): Likewise.
12989 (splitters for little endian memory operations): Likewise.
12990 (vsx_xxpermdi2_le_<mode>): Likewise.
12991 (vsx_lxvd2x2_le_<mode>): Likewise.
12992 (vsx_stxvd2x2_le_<mode>): Likewise.
12993
12994 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12995
12996 PR target/61423
12997 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12998 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12999 and corresponding splitters. Zero extend general register
13000 or memory input operand to XMM temporary. Enable for
13001 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13002 (floatunssi<mode>2): Update expander predicate.
13003
13004 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13005
13006 PR rtl-optimization/61325
13007 * lra-constraints.c (process_address_1): Check scale equal to one
13008 to prevent transformation: base + scale * index => base + new_reg.
13009
13010 2014-06-06 Richard Biener <rguenther@suse.de>
13011
13012 PR tree-optimization/59299
13013 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13014 a def operand.
13015 (nearest_common_dominator_of_uses): Likewise.
13016 (statement_sink_location): Adjust. Support sinking loads.
13017
13018 2014-06-06 Martin Jambor <mjambor@suse.cz>
13019
13020 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13021 (build_agg_jump_func_from_list): Likewise.
13022 (determine_known_aggregate_parts): Renamed to
13023 determine_locally_known_aggregate_parts. Moved some functionality
13024 to the two functions above, removed bound checks.
13025
13026 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13027
13028 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13029 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13030 (aarch64_progress_pointer): Likewise.
13031 (aarch64_copy_one_part_and_move_pointers): Likewise.
13032 (aarch64_expand_movmen): Likewise.
13033 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13034 * config/aarch64/aarch64.md (movmem<mode>): New.
13035
13036 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13037
13038 * targhooks.c (default_add_stmt_cost): Call target specific
13039 hook instead of default one.
13040
13041 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13042
13043 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13044 endianness instead of host endianness.
13045 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13046 comments.
13047
13048 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13049
13050 PR debug/53927
13051 * function.c (instantiate_decls): Process the saved static chain.
13052 (expand_function_start): If not optimizing, save the static chain
13053 onto the stack.
13054 * tree-nested.c (convert_all_function_calls): Always create the static
13055 chain for nested functions if not optimizing.
13056
13057 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13058
13059 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13060
13061 2014-06-06 Richard Biener <rguenther@suse.de>
13062
13063 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13064 (construct_init_block): Likewise.
13065 (construct_exit_block): Likewise.
13066 (pass_expand::execute): Likewise.
13067 * graphite.c (graphite_transforms): Replace check for current_loops
13068 with a check for > 1 loops.
13069 (pass_graphite_transforms::execute): Adjust.
13070 * ipa-split.c (split_function): Remove check for current_loops.
13071 * omp-low.c (expand_parallel_call): Likewise.
13072 (expand_omp_for_init_counts): Likewise.
13073 (extract_omp_for_update_vars): Likewise.
13074 (expand_omp_for_generic): Likewise.
13075 (expand_omp_sections): Likewise.
13076 (expand_omp_target): Likewise.
13077 * tracer.c (tail_duplicate): Likewise.
13078 (pass_tracer::execute): Likewise.
13079 * trans-mem.c (expand_transaction): Likewise.
13080 * tree-complex.c (expand_complex_div_wide): Likewise.
13081 * tree-eh.c (lower_resx): Likewise.
13082 (cleanup_empty_eh_merge_phis): Likewise.
13083 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13084 current_loops with a check for > 1 loops.
13085 (pass_predcom::execute): Adjust.
13086 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13087 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13088 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13089 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13090 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13091 * tree-switch-conversion.c (process_switch): Likewise.
13092 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13093 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13094 (execute_vrp): Likewise.
13095 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13096
13097 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13098
13099 * rtl.h (insn_location): Declare.
13100 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13101 with UNKNOWN_LOCATION.
13102 * emit-rtl.c (insn_location): New function.
13103 * final.c (notice_source_line): Check that the instruction has a
13104 location before retrieving it and use insn_location.
13105 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13106 * print-rtl.c (print_rtx): Likewise.
13107
13108 2014-06-06 Richard Biener <rguenther@suse.de>
13109
13110 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13111
13112 2014-06-06 Christian Bruel <christian.bruel@st.com>
13113
13114 PR tree-optimization/43934
13115 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13116 cost.
13117
13118 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13119
13120 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13121 return NO_REGS for extra address and memory constraints. Handle
13122 operands that match (or are equivalent to something that matches)
13123 extra constant constraints. Ignore other non-register operands.
13124
13125 2014-06-06 Alan Modra <amodra@gmail.com>
13126
13127 PR target/61300
13128 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13129 * doc/tm.texi: Regenerate.
13130 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13131 Use throughout in place of REG_PARM_STACK_SPACE.
13132 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13133 "incoming" param. Pass to rs6000_function_parms_need_stack.
13134 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13135 prototype_p when incoming. Use function decl when incoming
13136 to handle K&R style functions.
13137 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13138 (INCOMING_REG_PARM_STACK_SPACE): Define.
13139
13140 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13141
13142 PR target/52472
13143 * cfgexpand.c (expand_debug_expr): Use address space of nested
13144 TREE_TYPE for ADDR_EXPR and MEM_REF.
13145
13146 2014-06-05 Jeff Law <law@redhat.com>
13147
13148 PR tree-optimization/61289
13149 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13150 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13151 looking for those which match LHS. All callers changed.
13152 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13153 parameters and code which manipulated them. All callers changed.
13154 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13155 and DST_MAP parameters. Simplify invalidation code by just calling
13156 invalidate_equivalences. All callers changed.
13157 (thread_across_edge): Simplify now that we don't need to maintain
13158 the map of equivalences to invalidate.
13159
13160 2014-06-05 Kai Tietz <ktietz@redhat.com>
13161 Richard Henderson <rth@redhat.com>
13162
13163 PR target/46219
13164 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13165 checking for !TARGET_X32.
13166 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13167 (sibcall_intern): New define_insn, plus required peepholes.
13168 (sibcall_pop_intern): Likewise.
13169 (sibcall_value_intern): Likewise.
13170 (sibcall_value_pop_intern): Likewise.
13171
13172 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13173
13174 * tree-inline.c (tree_function_versioning): Check DF info existence
13175 before accessing it.
13176
13177 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13178
13179 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13180 frame_size.
13181 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13182 aarch64_frame hard_fp_offset and frame_size.
13183 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13184 frame_size; remove original_frame_size.
13185 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13186 (aarch64_initial_elimination_offset): Remove frame_size and
13187 offset. Use aarch64_frame frame_size.
13188
13189 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13190 Jiong Wang <jiong.wang@arm.com>
13191 Renlin <renlin.li@arm.com>
13192
13193 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13194 initialization of R30 offset. Update offset. Iterate core
13195 regisers upto X30. Remove X29, X30 specific code.
13196
13197 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13198 Jiong Wang <jiong.wang@arm.com>
13199
13200 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13201 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13202 (aarch64_register_saved_on_entry): Adjust test.
13203
13204 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13205
13206 * config/aarch64/aarch64.h (machine_function): Move
13207 saved_varargs_size from here...
13208 (aarch64_frame): ... to here.
13209
13210 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13211 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13212 (aarch64_initial_elimination_offset)
13213 (aarch64_setup_incoming_varargs): Adjust location of
13214 saved_varargs_size.
13215
13216 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13217
13218 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13219 layout comment.
13220
13221 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13222 Prachi Godbole <Prachi.Godbole@imgtec.com>
13223
13224 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13225 mips32r5 entry to use PROCESSOR_P5600.
13226 * config/mips/mips-tables.opt: Regenerate.
13227 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13228 * config/mips/mips.c (mips_fmadd_bypass): New function.
13229 (mips_rtx_cost_data): Add costs for p5600.
13230 (mips_issue_rate): Add support for p5600.
13231 (mips_multipass_dfa_lookahead): Likewise.
13232 * config/mips/mips.h (TUNE_P5600): New define.
13233 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13234 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13235 * config/mips/mips.md: Include p5600.md.
13236 (processor): Add p5600.
13237 * config/mips/p5600.md: New file.
13238
13239 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13240
13241 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13242 * config/i386/predicates.md (palignr_operand): New.
13243 Indicates if permutation is suitable for palignr instruction.
13244
13245 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13246
13247 PR tree-optimization/61319
13248 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13249 stmt belongs to loop.
13250
13251 2014-06-05 Richard Biener <rguenther@suse.de>
13252
13253 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13254 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13255 (lookup_tmp_var): Adjust.
13256 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13257
13258 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13259
13260 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13261
13262 2014-06-05 Marek Polacek <polacek@redhat.com>
13263
13264 PR c/49706
13265 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13266
13267 2014-06-04 Tom de Vries <tom@codesourcery.com>
13268
13269 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13270 CONST_INT.
13271
13272 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13273
13274 PR tree-optimization/61385
13275 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13276
13277 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13278
13279 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13280 changed to use fatal_error.
13281 (main): Ensure lto_wrapper_cleanup is run atexit.
13282
13283 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13284
13285 * lra-constraints.c (valid_address_p): Move earlier in file.
13286 (address_eliminator): New structure.
13287 (satisfies_memory_constraint_p): New function.
13288 (satisfies_address_constraint_p): Likewise.
13289 (process_alt_operands, process_address, curr_insn_transform): Use them.
13290
13291 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13292
13293 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13294 const pointer.
13295 (target_lra_int, default_target_lra_int, this_target_lra_int)
13296 (op_alt_data): Delete.
13297 * lra.h (lra_init): Delete.
13298 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13299 (init_insn_code_data_once): Remove op_alt_data handling.
13300 (finish_insn_code_data_once): Likewise.
13301 (init_op_alt_data): Delete.
13302 (get_static_insn_data): Initialize operand_alternative to null.
13303 (free_insn_recog_data): Cast operand_alternative before freeing it.
13304 (setup_operand_alternative): Take the operand_alternative as
13305 parameter and assume it isn't already cached in the static
13306 insn data.
13307 (lra_set_insn_recog_data): Update accordingly.
13308 (lra_init): Delete.
13309 * ira.c (ira_init): Don't call lra_init.
13310 * target-globals.h (this_target_lra_int): Declare.
13311 (target_globals): Remove lra_int.
13312 (restore_target_globals): Update accordingly.
13313 * target-globals.c: Don't include lra-int.h.
13314 (default_target_globals, save_target_globals): Remove lra_int.
13315
13316 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13317
13318 * recog.h (operand_alternative): Convert reg_class, reject,
13319 matched and matches into bitfields.
13320 (preprocess_constraints): New overload.
13321 (preprocess_insn_constraints): New function.
13322 (preprocess_constraints): Take the insn as parameter.
13323 (recog_op_alt): Change into a pointer.
13324 (target_recog): Add x_op_alt.
13325 * recog.c (asm_op_alt): New variable.
13326 (recog_op_alt): Change into a pointer.
13327 (preprocess_constraints): New overload, replacing the old function
13328 definition with one that doesn't use global state.
13329 (preprocess_insn_constraints): New function.
13330 (preprocess_constraints): Use them. Take the insn as parameter.
13331 Use asm_op_alt for asms.
13332 (recog_init): Free existing x_op_alt entries.
13333 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13334 pointer const.
13335 (make_early_clobber_and_input_conflicts): Likewise.
13336 (process_bb_node_lives): Pass the insn to process_constraints.
13337 * reg-stack.c (check_asm_stack_operands): Likewise.
13338 (subst_asm_stack_regs): Likewise.
13339 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13340 * regrename.c (build_def_use): Likewise.
13341 * sched-deps.c (sched_analyze_insn): Likewise.
13342 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13343 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13344 (note_invalid_constants): Likewise.
13345 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13346 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13347 const.
13348
13349 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13350
13351 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13352 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13353 alternatives.
13354 (make_early_clobber_and_input_conflicts): Likewise.
13355 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13356
13357 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13358
13359 * recog.h (alternative_class): New function.
13360 (which_op_alt): Return a const recog_op_alt.
13361 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13362 (subst_asm_stack_regs): Likewise.
13363 * config/arm/arm.c (note_invalid_constants): Likewise.
13364 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13365 the operand_alternative; use alternative class instead.
13366 * sel-sched.c (get_reg_class): Likewise.
13367 * regrename.c (build_def_use): Likewise.
13368 (hide_operands, restore_operands, record_out_operands): Update type
13369 accordingly.
13370
13371 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13372
13373 * recog.h (recog_op_alt): Convert to a flat array.
13374 (which_op_alt): New function.
13375 * recog.c (recog_op_alt): Convert to a flat array.
13376 (preprocess_constraints): Update accordingly, grouping all
13377 operands of the same alternative together, rather than the
13378 other way around.
13379 * ira-lives.c (check_and_make_def_conflict): Likewise.
13380 (make_early_clobber_and_input_conflicts): Likewise.
13381 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13382 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13383 (subst_asm_stack_regs): Likewise.
13384 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13385 * regrename.c (hide_operands, record_out_operands): Likewise.
13386 (build_def_use): Likewise.
13387 * sel-sched.c (get_reg_class): Likewise.
13388 * config/arm/arm.c (note_invalid_constants): Likewise.
13389
13390 2014-06-04 Jason Merrill <jason@redhat.com>
13391
13392 PR c++/51253
13393 PR c++/61382
13394 * gimplify.c (gimplify_arg): Non-static.
13395 * gimplify.h: Declare it.
13396
13397 2014-06-04 Richard Biener <rguenther@suse.de>
13398
13399 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13400 TREE_PUBLIC and DECL_EXTERNAL decls.
13401
13402 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13403
13404 * regcprop.c (copyprop_hardreg_forward_1): Account for
13405 HARD_REGNO_CALL_PART_CLOBBERED.
13406
13407 2014-06-04 Richard Biener <rguenther@suse.de>
13408
13409 * configure.ac: Check whether the underlying type of int64_t
13410 is long or long long.
13411 * configure: Regenerate.
13412 * config.in: Likewise.
13413 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13414 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13415
13416 2014-06-04 Richard Biener <rguenther@suse.de>
13417
13418 PR tree-optimization/60098
13419 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13420 we hit a kill.
13421 (dse_optimize_stmt): Simplify, now that we found a kill
13422 earlier.
13423
13424 2014-06-04 Richard Biener <rguenther@suse.de>
13425
13426 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13427 of accesses with non-invariant address.
13428
13429 2014-06-04 Martin Liska <mliska@suse.cz>
13430
13431 * cgraph.h (cgraph_make_wrapper): New function introduced.
13432 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13433 * ipa-inline.h (inline_analyze_function): The function is global.
13434 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13435
13436 2014-06-04 Martin Liska <mliska@suse.cz>
13437
13438 * tree.h (private_lookup_attribute_starting): New function.
13439 (lookup_attribute_starting): Likewise.
13440 * tree.c (private_lookup_attribute_starting): Likewise.
13441
13442 2014-06-04 Martin Liska <mliska@suse.cz>
13443
13444 * cgraph.h (expand_thunk): New argument added.
13445 (address_taken_from_non_vtable_p): New global function.
13446 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13447 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13448 * cgraphunit.c (analyze_function): Likewise.
13449 (assemble_thunks_and_aliases): Argument added to call.
13450 (expand_thunk): New argument forces to produce GIMPLE thunk.
13451
13452 2014-06-04 Martin Liska <mliska@suse.cz>
13453
13454 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13455 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13456 * profile.c (branch_prob): Likewise.
13457
13458 2014-06-04 Martin Jambor <mjambor@suse.cz>
13459
13460 PR ipa/61340
13461 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13462 handler for switch on an ipa_ref_use enum.
13463 * ipa-reference.c (analyze_function): Likewise.
13464
13465 2014-06-04 Kai Tietz <ktietz@redhat.com>
13466
13467 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13468 from old call-instruction.
13469
13470 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13471
13472 * config/aarch64/aarch64.c (aarch64_classify_address)
13473 (aarch64_legitimize_reload_address): Support full addressing modes
13474 for vector modes.
13475 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13476 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13477
13478 2014-06-03 Andrew Pinski <apinski@cavium.com>
13479
13480 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13481 for OP0.
13482
13483 2014-06-03 Andrew Pinski <apinski@cavium.com>
13484
13485 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13486 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13487
13488 2014-06-03 Kai Tietz <ktietz@redhat.com>
13489
13490 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13491 for 64-bit ms-abi.
13492
13493 2014-06-03 Dehao Chen <dehao@google.com>
13494
13495 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13496 the same loop.
13497
13498 2014-06-03 Marek Polacek <polacek@redhat.com>
13499
13500 PR c/60439
13501 * doc/invoke.texi: Document -Wswitch-bool.
13502 * function.c (stack_protect_epilogue): Cast controlling expression of
13503 the switch to int.
13504 * gengtype.c (walk_type): Generate switch expression with its
13505 controlling expression cast to int.
13506
13507 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13508
13509 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13510 and attiny841.
13511 * config/avr/avr-tables.opt: Regenerate.
13512 * config/avr/t-multilib: Regenerate.
13513 * doc/avr-mmcu.texi: Regenerate.
13514
13515 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13516 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13517
13518 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13519 (ata6617c, ata664251): Add new avr35 devices.
13520 (ata6612c): Add new avr4 device.
13521 (ata6613c, ata6614q): Add new avr5 devices.
13522 * config/avr/avr-tables.opt: Regenerate.
13523 * config/avr/t-multilib: Regenerate.
13524 * doc/avr-mmcu.texi: Regenerate.
13525
13526 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13527
13528 * gcc/config/aarch64/aarch64-builtins.c
13529 (aarch64_types_binop_ssu_qualifiers): New static data.
13530 (TYPES_BINOP_SSU): Define.
13531 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13532 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13533 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13534 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13535 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13536 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13537 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13538 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13539 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13540 suffix to builtin function name, remove cast.
13541 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13542 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13543 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13544
13545 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13546
13547 * gcc/config/aarch64/aarch64-builtins.c
13548 (aarch64_types_binop_uus_qualifiers,
13549 aarch64_types_shift_to_unsigned_qualifiers,
13550 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13551 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13552 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13553 sqshlu_n, uqshl_n): Update qualifiers.
13554 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13555 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13556 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13557 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13558 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13559 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13560 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13561 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13562 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13563 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13564 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13565 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13566 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13567 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13568 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13569 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13570 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13571 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13572 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13573 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13574 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13575 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13576 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13577 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13578 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13579 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13580 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13581
13582 2014-06-03 Teresa Johnson <tejohnson@google.com>
13583
13584 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13585
13586 2014-06-02 Jason Merrill <jason@redhat.com>
13587
13588 PR c++/61020
13589 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13590
13591 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13592
13593 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13594 location == 0.
13595
13596 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13597
13598 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13599 New pattern.
13600 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13601 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13602 * config/aarch64/iterators.md (REVERSE): New iterator.
13603 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13604 (rev_op): New int_attribute.
13605 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13606 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13607 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13608 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13609 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13610 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13611 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13612 Replace temporary __asm__ with __builtin_shuffle.
13613
13614 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13615
13616 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13617 mips64r5.
13618 * config/mips/mips-tables.opt: Regenerate.
13619 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13620 to use mips_isa_rev rather than ISA_MIPS32R2.
13621 * config/mips/mips.h (ISA_MIPS32R3): New define.
13622 (ISA_MIPS32R5): New define.
13623 (ISA_MIPS64R3): New define.
13624 (ISA_MIPS64R5): New define.
13625 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13626 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13627 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13628 and mips64r5.
13629 (MIPS_ISA_SYNCI_SPEC): Likewise.
13630 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13631 (LINK_SPEC): Added mips32r3 and mips32r5.
13632 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13633 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13634 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13635 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13636 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13637 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13638 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13639
13640 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13641
13642 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13643 options.
13644 * config/mips/mips.opt (mxpa): New option.
13645 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13646 assembler.
13647
13648 2014-06-03 Martin Jambor <mjambor@suse.cz>
13649
13650 PR ipa/61160
13651 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13652 thunks.
13653
13654 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13655
13656 PR tree-optimization/61328
13657 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13658 initialization from find_bswap_or_nop_1.
13659 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13660 in source_expr2 before using the size value the function sets. Also
13661 make use of init_symbolic_number () in both the old place and
13662 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13663 doing recursion in the GIMPLE_BINARY_RHS case.
13664
13665 2014-06-03 Richard Biener <rguenther@suse.de>
13666
13667 PR tree-optimization/61383
13668 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13669 stmts can't trap.
13670
13671 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13672
13673 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13674 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13675 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13676 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13677 in this file.
13678 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13679 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13680 * system.h: ...here and make it unconditional.
13681 * target.def (conditional_register_usage): Mention
13682 define_register_constraint instead of old-style constraint macros.
13683 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13684 * doc/tm.texi: Regenerate.
13685 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13686 protected by !USE_MD_CONSTRAINTS.
13687 * config/frv/frv.md: Remove quote from old version of documentation.
13688 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13689 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13690 CONST_DOUBLE_OK_FOR_LETTER.
13691 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13692
13693 2014-06-02 Andrew Pinski <apinski@cavium.com>
13694
13695 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13696 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13697 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13698 file whose name depends on -mabi= and -mbig-endian.
13699 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13700 Handle LP64 better and handle ilp32 too.
13701 (MULTILIB_OPTIONS): Delete.
13702 (MULTILIB_DIRNAMES): Delete.
13703
13704 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13705
13706 * expr.h: Remove prototypes of functions defined in builtins.c.
13707 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13708 Remove prototypes of functions defined in builtins.c.
13709 * builtins.h: Update prototype list to include all exported functions.
13710 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13711 no_c99_libc_has_function): Move to targhooks.c
13712 (build_string_literal, build_call_expr_loc_array,
13713 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13714 to tree.c.
13715 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13716 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13717 no_c99_libc_has_function): Relocate from builtins.c.
13718 * tree.c: Include builtins.h.
13719 (build_call_expr_loc_array, build_call_expr_loc_vec,
13720 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13721 from builtins.c.
13722 * fold-const.h (fold_fma): Move prototype to builtins.h.
13723 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13724 * asan.c: Include builtins.h.
13725 * cfgexpand.c: Likewise.
13726 * convert.c: Likewise.
13727 * emit-rtl.c: Likewise.
13728 * except.c: Likewise.
13729 * expr.c: Likewise.
13730 * fold-const.c: Likewise.
13731 * gimple-fold.c: Likewise.
13732 * gimple-ssa-strength-reduction.c: Likewise.
13733 * gimplify.c: Likewise.
13734 * ipa-inline.c: Likewise.
13735 * ipa-prop.c: Likewise.
13736 * lto-streamer-out.c: Likewise.
13737 * stmt.c: Likewise.
13738 * tree-inline.c: Likewise.
13739 * tree-object-size.c: Likewise.
13740 * tree-sra.c: Likewise.
13741 * tree-ssa-ccp.c: Likewise.
13742 * tree-ssa-forwprop.c: Likewise.
13743 * tree-ssa-loop-ivcanon.c: Likewise.
13744 * tree-ssa-loop-ivopts.c: Likewise.
13745 * tree-ssa-math-opts.c: Likewise.
13746 * tree-ssa-reassoc.c: Likewise.
13747 * tree-ssa-threadedge.c: Likewise.
13748 * tree-streamer-in.c: Likewise.
13749 * tree-vect-data-refs.c: Likewise.
13750 * tree-vect-patterns.c: Likewise.
13751 * tree-vect-stmts.c: Likewise.
13752 * config/aarch64/aarch64.c: Likewise.
13753 * config/alpha/alpha.c: Likewise.
13754 * config/arc/arc.c: Likewise.
13755 * config/arm/arm.c: Likewise.
13756 * config/avr/avr.c: Likewise.
13757 * config/bfin/bfin.c: Likewise.
13758 * config/c6x/c6x.c: Likewise.
13759 * config/cr16/cr16.c: Likewise.
13760 * config/cris/cris.c: Likewise.
13761 * config/epiphany/epiphany.c: Likewise.
13762 * config/fr30/fr30.c: Likewise.
13763 * config/frv/frv.c: Likewise.
13764 * config/h8300/h8300.c: Likewise.
13765 * config/i386/i386.c: Likewise.
13766 * config/i386/winnt.c: Likewise.
13767 * config/ia64/ia64.c: Likewise.
13768 * config/iq2000/iq2000.c: Likewise.
13769 * config/lm32/lm32.c: Likewise.
13770 * config/m32c/m32c.c: Likewise.
13771 * config/m32r/m32r.c: Likewise.
13772 * config/m68k/m68k.c: Likewise.
13773 * config/mcore/mcore.c: Likewise.
13774 * config/mep/mep.c: Likewise.
13775 * config/microblaze/microblaze.c: Likewise.
13776 * config/mips/mips.c: Likewise.
13777 * config/mmix/mmix.c: Likewise.
13778 * config/mn10300/mn10300.c: Likewise.
13779 * config/moxie/moxie.c: Likewise.
13780 * config/msp430/msp430.c: Likewise.
13781 * config/nds32/nds32.c: Likewise.
13782 * config/pa/pa.c: Likewise.
13783 * config/pdp11/pdp11.c: Likewise.
13784 * config/picochip/picochip.c: Likewise.
13785 * config/rl78/rl78.c: Likewise.
13786 * config/rs6000/rs6000.c: Likewise.
13787 * config/rx/rx.c: Likewise.
13788 * config/s390/s390.c: Likewise.
13789 * config/score/score.c: Likewise.
13790 * config/sh/sh.c: Likewise.
13791 * config/sparc/sparc.c: Likewise.
13792 * config/spu/spu.c: Likewise.
13793 * config/stormy16/stormy16.c: Likewise.
13794 * config/tilegx/tilegx.c: Likewise.
13795 * config/tilepro/tilepro.c: Likewise.
13796 * config/v850/v850.c: Likewise.
13797 * config/vax/vax.c: Likewise.
13798 * config/xtensa/xtensa.c: Likewise.
13799
13800 2014-06-02 Jeff Law <law@redhat.com>
13801
13802 PR rtl-optimization/61094
13803 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13804 was marked as do_no_reextend. If a copy is needed to eliminate
13805 an extension, then mark it as do_not_reextend.
13806
13807 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13808
13809 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13810
13811 2014-06-02 Richard Henderson <rth@redhat.com>
13812
13813 PR target/61336
13814 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13815 addresses inside asms. Use output_operand_lossage instead of
13816 gcc_unreachable.
13817
13818 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13819
13820 PR target/61239
13821 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13822 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13823
13824 2014-06-02 Tom de Vries <tom@codesourcery.com>
13825
13826 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13827 case that x has VOIDmode.
13828
13829 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13830
13831 * varasm.c (copy_constant): Delete function.
13832 (build_constant_desc): Don't call it.
13833
13834 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13835
13836 PR target/61154
13837 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13838 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13839 with immediate_operand.
13840
13841 2014-06-02 Andreas Schwab <schwab@suse.de>
13842
13843 * config/ia64/ia64.c
13844 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13845 pending_data_specs first.
13846
13847 2014-06-02 Richard Biener <rguenther@suse.de>
13848
13849 PR tree-optimization/61378
13850 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13851 valueized_anything.
13852
13853 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13854
13855 * config/i386/constraints.md (Bw): Rename from 'w'.
13856 (Bz): Rename from 'z'.
13857 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13858
13859 2014-06-01 Kai Tietz <ktietz@redhat.com>
13860
13861 PR target/61377
13862 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13863 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13864 instead of m constraint.
13865
13866 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13867
13868 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13869 a separate alternative where the scratch operand 2 is marked as
13870 early clobber.
13871
13872 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13873
13874 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13875 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13876 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13877 and __builtins_arm_get_fpscr.
13878 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13879 __builtins_arm_get_fpscr.
13880 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13881 __builtins_arm_ldfpscr.
13882 (arm_atomic_assign_expand_fenv): New function.
13883 * config/arm/vfp.md (set_fpscr): New pattern.
13884 (get_fpscr) : Likewise.
13885 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13886 VUNSPEC_SET_FPSCR.
13887 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13888 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13889
13890 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13891
13892 * asan.c (report_error_func): Add SLOW_P argument, use
13893 BUILT_IN_ASAN_*_N if set.
13894 (build_check_stmt): Likewise.
13895 (instrument_derefs): If T has insufficient alignment,
13896 force same handling as for odd sizes.
13897
13898 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13899 BUILT_IN_ASAN_REPORT_STORE_N): New.
13900 * asan.c (struct asan_mem_ref): Change access_size type to
13901 HOST_WIDE_INT.
13902 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13903 update_mem_ref_hash_table): Likewise.
13904 (asan_mem_ref_hasher::hash): Hash in a HWI.
13905 (report_error_func): Change size_in_bytes argument to HWI.
13906 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13907 two.
13908 (build_shadow_mem_access): New function.
13909 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13910 Handle size_in_bytes not power of two or larger than 16.
13911 (instrument_derefs): Don't give up if size_in_bytes is not
13912 power of two or is larger than 16.
13913
13914 2014-05-30 Kai Tietz <ktietz@redhat.com>
13915
13916 PR target/60104
13917 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13918 for sibling-tail-calls.
13919 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13920 to its use.
13921 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13922 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13923
13924 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13925
13926 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13927 * config/avr/avr-tables.opt: Regenerate.
13928 * config/avr/t-multilib: Regenerate.
13929 * doc/avr-mmcu.texi: Regenerate.
13930
13931 2014-05-30 Ian Lance Taylor <iant@google.com>
13932
13933 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13934 target("sse").
13935
13936 2014-05-30 Tom de Vries <tom@codesourcery.com>
13937
13938 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13939 Redefine as true.
13940
13941 2014-05-30 Tom de Vries <tom@codesourcery.com>
13942
13943 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13944 * lra.c (initialize_lra_reg_info_element): Add init of
13945 actual_call_used_reg_set field.
13946 (lra): Call lra_create_live_ranges before lra_inheritance for
13947 -fuse-caller-save.
13948 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13949 -fuse-caller-save.
13950 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13951 instead of call_used_reg_set for -fuse-caller-save.
13952 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13953
13954 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13955
13956 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13957 to mov_imm.
13958 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13959
13960 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13961
13962 * ira.c (ira_get_dup_out_num): Check for output operands at
13963 the start of the loop. Handle cases where an included alternative
13964 follows an excluded one.
13965
13966 2014-05-29 Mike Stump <mikestump@comcast.net>
13967
13968 PR debug/61352
13969 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13970 post ld passes when lto is used.
13971
13972 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13973
13974 PR rtl-optimization/61325
13975 * lra-constraints.c (process_address): Rename to process_address_1.
13976 (process_address): New function.
13977
13978 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13979
13980 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13981 TYPES_BINOPV): New static data.
13982 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13983 New builtin.
13984 * config/aarch64/aarch64-simd.md (aarch64_ext,
13985 aarch64_im_lane_boundsi): New patterns.
13986 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13987 patterns for EXT.
13988 (aarch64_evpc_ext): New function.
13989
13990 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13991
13992 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13993 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13994 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13995 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13996 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13997
13998 2014-05-29 Tom de Vries <tom@codesourcery.com>
13999
14000 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14001
14002 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14003 Richard Sandiford <rdsandiford@googlemail.com>
14004
14005 * arm/iterators.md (shiftable_ops): New code iterator.
14006 (t2_binop0, arith_shift_insn): New code attributes.
14007 * arm/predicates.md (shift_nomul_operator): New predicate.
14008 * arm/arm.md (insn_enabled): Delete.
14009 (enabled): Remove insn_enabled test.
14010 (*arith_shiftsi): Delete. Replace with ...
14011 (*<arith_shift_insn>_multsi): ... new pattern.
14012 (*<arith_shift_insn>_shiftsi): ... new pattern.
14013 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14014
14015 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14016 Tom de Vries <tom@codesourcery.com>
14017
14018 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14019 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14020 clobber.
14021 (mips_split_call): Use POST_CALL_TMP_REG.
14022 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14023
14024 2014-05-29 Tom de Vries <tom@codesourcery.com>
14025
14026 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14027 with #ifdef STACK_REGS.
14028
14029 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14030
14031 * varasm.c (get_variable_section): Walk aliases.
14032 (place_block_symbol): Walk aliases.
14033
14034 2014-05-28 Tom de Vries <tom@codesourcery.com>
14035
14036 Revert:
14037 2014-05-28 Tom de Vries <tom@codesourcery.com>
14038
14039 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14040 * lra.c (initialize_lra_reg_info_element): Add init of
14041 actual_call_used_reg_set field.
14042 (lra): Call lra_create_live_ranges before lra_inheritance for
14043 -fuse-caller-save.
14044 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14045 -fuse-caller-save.
14046 * lra-constraints.c (need_for_call_save_p): Use
14047 actual_call_used_reg_set instead of call_used_reg_set for
14048 -fuse-caller-save.
14049 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14050
14051 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14052
14053 * doc/md.texi: Document that the % constraint character must
14054 be at the beginning of the string.
14055 * genoutput.c (validate_insn_alternatives): Check that '=',
14056 '+' and '%' only appear at the beginning of a constraint.
14057 * ira.c (commutative_constraint_p): Delete.
14058 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14059 at the start of the string.
14060 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14061 duplicate '='s.
14062 * config/arm/neon.md (bicdi3_neon): Likewise.
14063 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14064 (slt_si, sltu_si): Likewise.
14065 * config/vax/vax.md (sbcdi3): Likewise.
14066 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14067 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14068 (mul64): Move '%' to beginning of constraint.
14069 * config/arm/arm.md (*xordi3_insn): Likewise.
14070 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14071 (xorsi3): Likewise.
14072
14073 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14074
14075 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14076
14077 2014-05-28 Jason Merrill <jason@redhat.com>
14078
14079 PR c++/47202
14080 * cgraph.h (symtab_node::get_comdat_group_id): New.
14081 * cgraphunit.c (analyze_functions): Call it.
14082 * symtab.c (dump_symtab_node): Likewise.
14083 * tree.c (decl_comdat_group_id): New.
14084 * tree.h: Declare it.
14085 * lto-streamer-out.c (write_symbol): Use it.
14086 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14087
14088 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14089
14090 PR bootstrap/PR61146
14091 * wide-int.cc: Do not include longlong.h when compiling with clang.
14092
14093 2014-05-28 Richard Biener <rguenther@suse.de>
14094
14095 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14096 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14097 (vrp_visit_assignment_or_call): Print less vertical space.
14098 (vrp_visit_stmt): Likewise.
14099 (vrp_visit_phi_node): Likewise. For a PHI argument with
14100 VR_VARYING range consider recording it as copy.
14101
14102 2014-05-28 Richard Biener <rguenther@suse.de>
14103
14104 Revert
14105 2014-05-28 Richard Biener <rguenther@suse.de>
14106
14107 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14108
14109 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14110
14111 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14112 sufficiently aligned and an offset is used at the same time.
14113 (expand_expr_real_1): Likewise.
14114
14115 2014-05-28 Richard Biener <rguenther@suse.de>
14116
14117 PR middle-end/61045
14118 * fold-const.c (fold_comparison): When folding
14119 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14120 the sign of the remaining constant operand stays the same.
14121
14122 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14123
14124 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14125 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14126 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14127 to the assembler.
14128 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14129 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14130 (m32bit-doubles) Likewise.
14131 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14132 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14133 option for RL78.
14134
14135 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14136
14137 * configure.ac ($gcc_cv_ld_clearcap): New test.
14138 * configure: Regenerate.
14139 * config.in: Regenerate.
14140 * config/sol2.opt (mclear-hwcap): New option.
14141 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14142 * config/sol2-clearcap.map: Moved here from
14143 testsuite/gcc.target/i386/clearcap.map.
14144 * config/sol2-clearcapv2.map: Move here from
14145 gcc.target/i386/clearcapv2.map.
14146 * config/t-sol2 (install): Depend on install-clearcap-map.
14147 (install-clearcap-map): New target.
14148 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14149 -mclear-hwcap.
14150
14151 2014-05-28 Richard Biener <rguenther@suse.de>
14152
14153 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14154 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14155 ... here and remove the rest.
14156 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14157
14158 2014-05-28 Richard Biener <rguenther@suse.de>
14159
14160 PR tree-optimization/61335
14161 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14162 new range fails, drop to varying.
14163
14164 2014-05-28 Olivier Hainque <hainque@adacore.com>
14165
14166 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14167 (CPP_SPEC): Add entry for -mcpu=8548.
14168 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14169 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14170
14171 2014-05-28 Tom de Vries <tom@codesourcery.com>
14172
14173 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14174 * lra.c (initialize_lra_reg_info_element): Add init of
14175 actual_call_used_reg_set field.
14176 (lra): Call lra_create_live_ranges before lra_inheritance for
14177 -fuse-caller-save.
14178 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14179 -fuse-caller-save.
14180 * lra-constraints.c (need_for_call_save_p): Use
14181 actual_call_used_reg_set instead of call_used_reg_set for
14182 -fuse-caller-save.
14183 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14184
14185 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14186 Tom de Vries <tom@codesourcery.com>
14187
14188 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14189 to gccoptlist.
14190 (@item -fuse-caller-save): New item.
14191
14192 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14193 Tom de Vries <tom@codesourcery.com>
14194
14195 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14196 OPT_fuse_caller_save.
14197
14198 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14199 Tom de Vries <tom@codesourcery.com>
14200
14201 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14202 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14203 get_call_reg_set_usage.
14204 * resource.c (mark_set_resources, mark_target_live_regs): Use
14205 get_call_reg_set_usage.
14206 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14207 field.
14208 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14209 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14210 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14211 * ira-build.c (ira_create_allocno): Init
14212 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14213 (create_cap_allocno, propagate_allocno_info)
14214 (propagate_some_info_from_allocno)
14215 (copy_info_to_removed_store_destinations): Handle
14216 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14217 * ira-costs.c (ira_tune_allocno_costs): Use
14218 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14219
14220 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14221 Tom de Vries <tom@codesourcery.com>
14222
14223 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14224 and function_used_regs_valid fields.
14225 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14226 find_all_hard_reg_sets.
14227 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14228 (get_call_reg_set_usage): New function.
14229 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14230 * regs.h (get_call_reg_set_usage): Declare.
14231
14232 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14233
14234 PR libgcc/61152
14235 * config/dbx.h (License): Add Runtime Library Exception.
14236 * config/newlib-stdint.h (License): Same.
14237 * config/rtems.h (License): Same
14238 * config/initfini-array.h (License): Same
14239 * config/v850/v850.h (License): Same.
14240 * config/v850/v850-opts.h (License): Same
14241 * config/v850/rtems.h (License): Same.
14242
14243 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14244
14245 PR target/61044
14246 * doc/extend.texi (Local Labels): Note that label differences are
14247 not supported for AVR.
14248
14249 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14250 Olivier Hainque <hainque@adacore.com>
14251
14252 * rtl.h (set_for_reg_notes): Declare.
14253 * emit-rtl.c (set_for_reg_notes): New function.
14254 (set_unique_reg_note): Use it.
14255 * optabs.c (add_equal_note): Likewise
14256
14257 2014-05-27 Andrew Pinski <apinski@cavium.com>
14258
14259 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14260 Use <w> for the register in assembly template.
14261 (stack_protect_test): Use the mode of operands[0] for the result.
14262 (stack_protect_test_<mode>): Use <w> for the register
14263 in assembly template.
14264
14265 2014-05-27 DJ Delorie <dj@redhat.com>
14266
14267 * config/rx/rx.c (add_vector_labels): New.
14268 (rx_output_function_prologue): Call it.
14269 (rx_handle_func_attribute): Don't require empty arguments.
14270 (rx_handle_vector_attribute): New.
14271 (rx_attribute_table): Add "vector" attribute.
14272 * doc/extend.texi (interrupt, vector): Document new/changed
14273 RX-specific attributes.
14274
14275 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14276
14277 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14278
14279 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14280 predicate to detect a negative quotient.
14281
14282 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14283
14284 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14285 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14286 Add X - Y CMP 0 to X CMP Y transformation.
14287 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14288
14289 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14290
14291 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14292 before printing.
14293
14294 2014-05-27 Steve Ellcey <sellcey@mips.com>
14295
14296 * config/mips/mips.c: Add include of cgraph.h.
14297
14298 2014-05-27 Richard Biener <rguenther@suse.de>
14299
14300 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14301
14302 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14303
14304 PR libgcc/61152
14305 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14306 * config/arm/arm-cores.def (License): Same.
14307 * config/arm/arm-opts.h (License): Same.
14308 * config/arm/aout.h (License): Same.
14309 * config/arm/bpabi.h (License): Same.
14310 * config/arm/elf.h (License): Same.
14311 * config/arm/linux-elf.h (License): Same.
14312 * config/arm/linux-gas.h (License): Same.
14313 * config/arm/netbsd-elf.h (License): Same.
14314 * config/arm/uclinux-eabi.h (License): Same.
14315 * config/arm/uclinux-elf.h (License): Same.
14316 * config/arm/vxworks.h (License): Same.
14317
14318 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14319
14320 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14321 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14322 (arm_init_neon_builtins): Handle NEON_BSWAP.
14323 Define required type nodes.
14324 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14325 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14326 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14327 * config/arm/iterators.md (VDQHSD): New mode iterator.
14328
14329 2014-05-27 Richard Biener <rguenther@suse.de>
14330
14331 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14332 Try using literal operands when comparing value-ranges failed.
14333
14334 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14335
14336 * ira.c (commutative_operand): Adjust for change to recog_data.
14337 [Missing from previous commit.]
14338
14339 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14340
14341 * system.h (TEST_BIT): New macro.
14342 * recog.h (alternative_mask): New type.
14343 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14344 (recog_data_d): Replace alternative_enabled_p array with
14345 enabled_alternatives.
14346 (target_recog): New structure.
14347 (default_target_recog, this_target_recog): Declare.
14348 (get_enabled_alternatives, recog_init): Likewise.
14349 * recog.c (default_target_recog, this_target_recog): New variables.
14350 (get_enabled_alternatives): New function.
14351 (extract_insn): Use it.
14352 (recog_init): New function.
14353 (preprocess_constraints, constrain_operands): Adjust for change to
14354 recog_data.
14355 * postreload.c (reload_cse_simplify_operands): Likewise.
14356 * reload.c (find_reloads): Likewise.
14357 * ira-costs.c (record_reg_classes): Likewise.
14358 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14359 all alternatives after a disabled one would be skipped.
14360 (ira_implicitly_set_insn_hard_regs): Likewise.
14361 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14362 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14363 with enabled_alternatives.
14364 * lra.c (free_insn_recog_data): Update accordingly.
14365 (lra_update_insn_recog_data): Likewise.
14366 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14367 * lra-constraints.c (process_alt_operands): Likewise. Handle
14368 only_alternative as part of the enabled mask.
14369 * target-globals.h (this_target_recog): Declare.
14370 (target_globals): Add a recog field.
14371 (restore_target_globals): Restore this_target_recog.
14372 * target-globals.c: Include recog.h.
14373 (default_target_globals): Initialize recog field.
14374 (save_target_globals): Likewise.
14375 * reginfo.c (reinit_regs): Call recog_init.
14376 * toplev.c (backend_init_target): Likewise.
14377
14378 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14379
14380 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14381 rather than any named insn's code.
14382
14383 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14384
14385 PR libgcc/61152
14386 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14387 * config/arm/arm-cores.def (License): Same.
14388
14389 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14390
14391 * tree.h (decl_comdat_group): Declare.
14392 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14393 * tree.c (decl_comdat_group): Here.
14394
14395 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14396
14397 PR rtl-optimization/61222
14398 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14399 the shift, truncate the PLUS operand to the result mode.
14400
14401 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14402
14403 PR target/61271
14404 * config/i386/i386.c (ix86_rtx_costs)
14405 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14406 Fix condition.
14407
14408 2014-05-26 Martin Jambor <mjambor@suse.cz>
14409
14410 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14411 subreg uses.
14412
14413 2014-05-26 Richard Biener <rguenther@suse.de>
14414
14415 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14416 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14417 Provide specializations.
14418 (wi::int_traits <HOST_WIDE_INT>,
14419 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14420
14421 2014-05-26 Alan Modra <amodra@gmail.com>
14422
14423 PR target/61098
14424 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14425 params and return a bool. Remove dead code. Update comment.
14426 Assert we have a const_int source. Remove bogus code from
14427 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14428 handling of constants > 2G and reg_equal note, from..
14429 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14430 return value. Update comment. If we can, use a new pseudo
14431 for intermediate calculations.
14432 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14433 prototype.
14434 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14435 call to rs6000_emit_set_const in splitter.
14436 (movdi_internal64+2, +3): Likewise.
14437
14438 2014-05-26 Richard Biener <rguenther@suse.de>
14439
14440 * system.h: Define __STDC_FORMAT_MACROS before
14441 including inttypes.h.
14442 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14443 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14444 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14445 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14446 HOST_WIDEST_INT_C): Remove.
14447 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14448 if C99 inttypes.h is not available.
14449 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14450 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14451 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14452 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14453 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14454 (struct output_info): Likewise.
14455 (print_statistics): Adjust.
14456 (dump_bitmap_statistics): Likewise.
14457 * bt-load.c (migrate_btr_defs): Print with PRId64.
14458 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14459 (MAX_SAFE_MULTIPLIER): Adjust.
14460 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14461 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14462 dump_cgraph_node): Likewise.
14463 * final.c (dump_basic_block_info): Likewise.
14464 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14465 * gcov.c (format_gcov): Likewise.
14466 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14467 for calculation.
14468 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14469 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14470 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14471 Use PRId64 for dumping.
14472 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14473 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14474 (add_allocno_hard_regs): Adjust.
14475 * loop-doloop.c (doloop_modify): Print using PRId64.
14476 * loop-iv.c (inverse): Compute in uint64_t.
14477 (determine_max_iter, iv_number_of_iterations): Likewise.
14478 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14479 Print using PRId64.
14480 * lto-streamer-out.c (write_symbol): Use uint64_t.
14481 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14482 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14483 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14484 * modulo-sched.c (const_iteration_count): Use int64_t.
14485 (sms_schedule): Dump using PRId64.
14486 * predict.c (dump_prediction): Likewise.
14487 * pretty-print.h (pp_widest_integer): Remove.
14488 * profile.c (get_working_sets, is_edge_inconsistent,
14489 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14490 * tree-pretty-print.c (pp_double_int): Remove case handling
14491 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14492 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14493 and adjust users.
14494 (pass_optimize_bswap::execute): Remove restriction on hosts.
14495 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14496 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14497 * tree.c (widest_int_cst_value): Remove.
14498 * tree.h (widest_int_cst_value): Likewise.
14499 * value-prof.c (dump_histogram_value): Print using PRId64.
14500 * gengtype.c (main): Also inject int64_t.
14501 * ggc-page.c (struct max_alignment): Use int64_t.
14502 * alloc-pool.c (struct allocation_object_def): Likewise.
14503 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14504 for computation.
14505 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14506 * doc/tm.texi: Regenerated.
14507 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14508 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14509 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14510 mmix_output_register_setting): Use [u]int64_t in prototypes.
14511 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14512 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14513 mmix_output_octa, mmix_output_shifted_value): Adjust.
14514 (mmix_intval): Adjust. Remove unreachable case.
14515 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14516
14517 2014-05-26 Richard Biener <rguenther@suse.de>
14518
14519 * configure.ac: Drop __int64 type check. Insist that we
14520 found uint64_t and int64_t.
14521 * hwint.h (HOST_BITS_PER___INT64): Remove.
14522 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14523 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14524 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14525 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14526 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14527 for dst_q_src_df_rms_cdt.
14528 * configure: Regenerate.
14529 * config.in: Likewise.
14530
14531 2014-05-26 Michael Tautschnig <mt@debian.org>
14532
14533 PR target/61249
14534 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14535 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14536
14537 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14538
14539 PR rtl-optimization/61278
14540 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14541
14542 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14543
14544 PR rtl-optimization/61220
14545 Part of PR rtl-optimization/61225
14546 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14547 insn; skip split_edge for a block with only one successor.
14548
14549 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14550
14551 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14552 for variables.
14553
14554 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14555
14556 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14557 (update_vtable_references): New function.
14558 (function_and_variable_visibility): Rewrite also vtable initializers.
14559 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14560
14561 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14562
14563 * ggc.h (ggc_grow): New function.
14564 * ggc-none.c (ggc_grow): New function.
14565 * ggc-page.c (ggc_grow): Likewise.
14566
14567 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14568
14569 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14570 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14571 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14572 varpool_externally_visible_p, can_replace_by_local_alias,
14573 update_visibility_by_resolution_info, function_and_variable_visibility,
14574 pass_data_ipa_function_and_variable_visibility,
14575 make_pass_ipa_function_and_variable_visibility,
14576 whole_program_function_and_variable_visibility,
14577 pass_data_ipa_whole_program_visibility,
14578 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14579 * cgraph.h (cgraph_local_node_p): Declare.
14580 * ipa-visibility.c: New file.
14581 * Makefile.in (OBJS): Add ipa-visiblity.o
14582
14583 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14584
14585 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14586 that var decl is available.
14587
14588 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14589
14590 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14591 symtab_node pointer.
14592 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14593 (find_decls_types_r): Do not walk COMDAT_GROUP.
14594 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14595 * varasm.c (make_decl_one_only): Use set_comdat_group;
14596 create node if needed.
14597 * ipa-inline-transform.c (save_inline_function_body): Update
14598 way we decl->symtab mapping.
14599 * symtab.c (symtab_hash, hash_node, eq_node
14600 symtab_insert_node_to_hashtable): Remove.
14601 (symtab_register_node): Update.
14602 (symtab_unregister_node): Update.
14603 (symtab_get_node): Reimplement as inline function.
14604 (symtab_add_to_same_comdat_group): Update.
14605 (symtab_dissolve_same_comdat_group_list): Update.
14606 (dump_symtab_base): Update.
14607 (verify_symtab_base): Update.
14608 (symtab_make_decl_local): Update.
14609 (fixup_same_cpp_alias_visibility): Update.
14610 (symtab_nonoverwritable_alias): Update.
14611 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14612 * ipa.c (update_visibility_by_resolution_info): UPdate.
14613 * bb-reorder.c: Include cgraph.h
14614 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14615 with comdat groups.
14616 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14617 * cgraph.c (cgraph_get_create_node): Update.
14618 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14619 and comdat_group_.
14620 (symtab_get_node): Make inline.
14621 (symtab_insert_node_to_hashtable): Remove.
14622 (symtab_can_be_discarded): Update.
14623 (decl_comdat_group): New function.
14624 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14625 Update.
14626 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14627 comdat group name.
14628 (read_comdat_group): New function.
14629 (input_node, input_varpool_node): Use it.
14630 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14631 comdat groups.
14632 * mips.c (mips_start_unique_function): Likewise.
14633 (ix86_code_end): Likewise.
14634 (rs6000_code_end): Likweise.
14635 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14636
14637 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14638
14639 * gengtype-state.c (fatal_reading_state): Bring offline.
14640 * optabs.c (widening_optab_handler): Bring offline.
14641 * optabs.h (widening_optab_handler): Likewise.
14642 * final.c (get_attr_length_1): Likewise.
14643
14644 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14645
14646 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14647
14648 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14649
14650 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14651 (ppc440-compare): Include shift with dot.
14652 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14653 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14654 without dot.
14655 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14656 without dot.
14657 (e6500_sfx2): Include it.
14658 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14659 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14660 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14661 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14662 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14663 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14664 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14665 *lshiftrt_internal1le, *lshiftrt_internal1be,
14666 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14667 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14668 *rotldi3_internal10le, *rotldi3_internal10be,
14669 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14670 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14671 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14672 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14673 define_insns): Use type "shift" in the appropriate alternatives.
14674
14675 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14676
14677 * config/rs6000/rs6000.md (type): Add "logical". Delete
14678 "fast_compare".
14679 (dot): Adjust comment.
14680 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14681 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14682 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14683 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14684 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14685 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14686 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14687 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14688
14689 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14690 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14691 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14692 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14693 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14694 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14695 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14696 * config/rs6000/8540.md (ppc8540_su): Adjust.
14697 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14698 cell-cmp-microcoded): Adjust.
14699 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14700 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14701 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14702 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14703 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14704 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14705 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14706 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14707 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14708 Adjust.
14709 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14710 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14711 Adjust. Adjust comment.
14712 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14713 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14714
14715 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14716
14717 * config/rs6000/rs6000.md (type): Add "add".
14718 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14719 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14720 define_insns): Use it.
14721 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14722
14723 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14724 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14725 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14726 * config/rs6000/601.md (ppc601-integer): Adjust.
14727 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14728 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14729 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14730 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14731 * config/rs6000/8540.md (ppc8540_su): Adjust.
14732 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14733 cell-cmp-microcoded): Adjust.
14734 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14735 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14736 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14737 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14738 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14739 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14740 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14741 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14742 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14743 Adjust.
14744 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14745 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14746 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14747 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14748
14749 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14750
14751 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14752 "delayed_compare", "var_delayed_compare".
14753 (var_shift): New attribute.
14754 (cell_micro): Adjust.
14755 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14756 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14757 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14758 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14759 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14760 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14761 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14762 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14763 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14764 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14765 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14766 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14767 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14768 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14769 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14770 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14771 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14772 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14773 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14774 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14775 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14776 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14777 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14778 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14779 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14780
14781 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14782 * config/rs6000/440.md (ppc440-integer): Adjust.
14783 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14784 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14785 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14786 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14787 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14788 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14789 * config/rs6000/8540.md (ppc8540_su): Adjust.
14790 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14791 cell-cmp-microcoded): Adjust.
14792 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14793 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14794 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14795 e500mc64_delayed): Adjust.
14796 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14797 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14798 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14799 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14800 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14801 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14802 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14803 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14804 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14805 Adjust comment.
14806 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14807 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14808
14809 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14810
14811 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14812 (bits): New mode_attr.
14813 (idiv_ldiv): Delete mode_attr.
14814 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14815 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14816 rs6000_adjust_priority, is_nonpipeline_insn,
14817 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14818
14819 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14820 * config/rs6000/440.md (ppc440-idiv): Adjust.
14821 * config/rs6000/476.md (ppc476-idiv): Adjust.
14822 * config/rs6000/601.md (ppc601-idiv): Adjust.
14823 * config/rs6000/603.md (ppc603-idiv): Adjust.
14824 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14825 ppc620-ldiv): Adjust.
14826 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14827 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14828 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14829 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14830 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14831 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14832 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14833 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14834 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14835 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14836 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14837 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14838 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14839 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14840 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14841 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14842 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14843 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14844
14845 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14846
14847 * config/rs6000/rs6000.md (type): Delete "insert_word",
14848 "insert_dword". Add "insert".
14849 (size): Update comment.
14850 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14851 insn_must_be_first_in_group): Adjust.
14852 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14853 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14854 *insvsi_internal6, insvdi_internal): Adjust.
14855
14856 * config/rs6000/40x.md (ppc403-integer): Adjust.
14857 * config/rs6000/440.md (ppc440-integer): Adjust.
14858 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14859 * config/rs6000/601.md (ppc601-integer): Adjust.
14860 * config/rs6000/603.md (ppc603-integer): Adjust.
14861 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14862 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14863 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14864 * config/rs6000/8540.md (ppc8540_su): Adjust.
14865 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14866 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14867 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14868 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14869 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14870 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14871 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14872 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14873 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14874 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14875 * config/rs6000/power7.md (power7-integer): Adjust.
14876 * config/rs6000/power8.md (power8-1cyc): Adjust.
14877 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14878 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14879
14880 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14881
14882 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14883 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14884 (size): New attribute.
14885 (dot): New attribute.
14886 (cell_micro): Adjust.
14887 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14888 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14889 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14890 umuldi3_highpart): Adjust.
14891 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14892 rs6000_adjust_priority, is_nonpipeline_insn,
14893 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14894
14895 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14896 ppc405-imul3): Adjust.
14897 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14898 * config/rs6000/476.md (ppc476-imul): Adjust.
14899 * config/rs6000/601.md (ppc601-imul): Adjust.
14900 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14901 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14902 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14903 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14904 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14905 Adjust.
14906 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14907 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14908 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14909 cell-imul): Adjust.
14910 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14911 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14912 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14913 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14914 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14915 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14916 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14917 power4-lmul, power4-imul, power4-imul3): Adjust.
14918 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14919 power5-lmul, power5-imul, power5-imul3): Adjust.
14920 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14921 power6-lmul, power6-imul, power6-imul3): Adjust.
14922 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14923 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14924
14925 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14926 rs64a-lmul): Adjust.
14927 * config/rs6000/titan.md (titan_imul): Adjust.
14928
14929 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14930
14931 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14932 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14933 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14934 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14935 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14936 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14937 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14938 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14939 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14940 * config/rs6000/titan.md: Delete nonsensical comment.
14941 (titan_imul): Add type imul3.
14942 (titan_mulhw): Remove type imul3; add type halfmul.
14943
14944 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14945
14946 * config/rs6000/rs6000.md (type): Reorder, reformat.
14947
14948 2014-05-23 Martin Jambor <mjambor@suse.cz>
14949
14950 PR tree-optimization/53787
14951 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14952 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14953 analysis_done, update all uses.
14954 * ipa-prop.c: Include domwalk.h
14955 (param_analysis_info): Removed.
14956 (param_aa_status): New type.
14957 (ipa_bb_info): Likewise.
14958 (func_body_info): Likewise.
14959 (ipa_get_bb_info): New function.
14960 (aa_overwalked): Likewise.
14961 (find_dominating_aa_status): Likewise.
14962 (parm_bb_aa_status_for_bb): Likewise.
14963 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14964 (load_from_unmodified_param): Accept func_body_info as a parameter
14965 instead of parms_ainfo.
14966 (parm_ref_data_preserved_p): Changed to use new param AA info.
14967 (parm_ref_data_pass_through_p): Likewise.
14968 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14969 (compute_complex_assign_jump_func): Changed to use new param AA info.
14970 (compute_complex_ancestor_jump_func): Likewise.
14971 (ipa_compute_jump_functions_for_edge): Likewise.
14972 (ipa_compute_jump_functions): Removed.
14973 (ipa_compute_jump_functions_for_bb): New function.
14974 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14975 declarations down.
14976 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14977 and info, moved variable declarations down.
14978 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14979 node and info.
14980 (ipa_analyze_stmt_uses): Likewise.
14981 (ipa_analyze_params_uses): Removed.
14982 (ipa_analyze_params_uses_in_bb): New function.
14983 (ipa_analyze_controlled_uses): Likewise.
14984 (free_ipa_bb_info): Likewise.
14985 (analysis_dom_walker): New class.
14986 (ipa_analyze_node): Handle node-specific forbidden analysis,
14987 initialize and free func_body_info, use dominator walker.
14988 (ipcp_modif_dom_walker): New class.
14989 (ipcp_transform_function): Create and free func_body_info, use
14990 ipcp_modif_dom_walker, moved a lot of functionality there.
14991
14992 2014-05-23 Marek Polacek <polacek@redhat.com>
14993 Jakub Jelinek <jakub@redhat.com>
14994
14995 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14996 * gcc.c (sanitize_spec_function): Likewise.
14997 * convert.c (convert_to_integer): Include "ubsan.h". Add
14998 floating-point to integer instrumentation.
14999 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15000 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15001 SANITIZE_NONDEFAULT.
15002 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15003 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15004 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15005 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15006 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15007 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15008 float/double/long double.
15009 (ubsan_instrument_float_cast): New function.
15010 * ubsan.h (ubsan_instrument_float_cast): Declare.
15011
15012 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15013
15014 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15015 predicate.
15016 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15017 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15018 Adjust for tailcalling through registers.
15019 * config/aarch64/aarch64.h (enum reg_class): New caller save
15020 register class.
15021 (REG_CLASS_NAMES): Likewise.
15022 (REG_CLASS_CONTENTS): Likewise.
15023 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15024 Allow tailcalling without decls.
15025
15026 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15027
15028 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15029 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15030
15031 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15032 gsi, and variables v_* to v*.
15033
15034 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15035
15036 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15037
15038 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15039
15040 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15041 * omp-low.c: Update accordingly.
15042
15043 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15044 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15045 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15046 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15047 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15048 GF_OMP_TARGET_KIND_UPDATE.
15049
15050 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15051 Explicitly enumerate the expected region types.
15052
15053 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15054
15055 PR other/56955
15056 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15057 documentation; the old documentation didn't clearly state the
15058 constraints on the contents of the pointed-to storage.
15059
15060 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15061
15062 Fix bootstrap error on ia64
15063 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15064 Return default value.
15065
15066 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15067
15068 PR tree-optimization/54733
15069 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15070 (CMPNOP): Define.
15071 (find_bswap_or_nop_load): New.
15072 (find_bswap_1): Renamed to ...
15073 (find_bswap_or_nop_1): This. Also add support for memory source.
15074 (find_bswap): Renamed to ...
15075 (find_bswap_or_nop): This. Also add support for memory source and
15076 detection of bitwise operations equivalent to load in target
15077 endianness.
15078 (execute_optimize_bswap): Likewise. Also move its leading comment back
15079 in place and split statement transformation into ...
15080 (bswap_replace): This.
15081
15082 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15083
15084 PR rtl-optimization/61215
15085 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15086 simplify_gen_subreg until final substitution.
15087
15088 2014-05-23 Alan Modra <amodra@gmail.com>
15089
15090 PR target/61231
15091 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15092 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15093 Use "Y" constraint rather than "m".
15094
15095 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15096
15097 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15098 define.
15099 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15100 New function declaration.
15101 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15102 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15103 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15104 (aarch64_init_builtins) : Initialize builtins
15105 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15106 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15107 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15108 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15109 and __builtins_aarch64_set_fpsr.
15110 (aarch64_atomic_assign_expand_fenv): New function.
15111 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15112 (get_fpcr) : Likewise.
15113 (set_fpsr) : Likewise.
15114 (get_fpsr) : Likewise.
15115 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15116 and UNSPECV_SET_FPSR.
15117 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15118 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15119 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15120
15121 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15122
15123 PR rtl-optimization/60969
15124 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15125 constraints. Set up mem cost for NO_REGS case.
15126
15127 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15128
15129 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15130
15131 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15132
15133 * config/darwin.c: Include "lto-section-names.h".
15134 (LTO_SEGMENT_NAME): Don't define.
15135 * config/i386/winnt.c: Include "lto-section-names.h".
15136 * lto-streamer.c: Include "lto-section-names.h".
15137 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15138 * lto-wrapper.c: Include "lto-section-names.h".
15139 (LTO_SECTION_NAME_PREFIX): Don't define.
15140 * lto-section-names.h: New file.
15141 * cgraphunit.c: Include "lto-section-names.h".
15142
15143 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15144
15145 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15146
15147 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15148
15149 PR target/61208
15150 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15151
15152 2014-05-22 Nick Clifton <nickc@redhat.com>
15153
15154 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15155
15156 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15157
15158 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15159 -> (T)A transformation to integer types.
15160
15161 2014-05-22 Teresa Johnson <tejohnson@google.com>
15162
15163 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15164 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15165 (gcov_rewrite): Use gcov_nonruntime_assert.
15166 (gcov_open): Ditto.
15167 (gcov_write_words): Ditto.
15168 (gcov_write_length): Ditto.
15169 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15170 gcc_assert from IN_LIBGCOV code.
15171 (gcov_read_summary): Use gcov_error to flag profile corruption.
15172 (gcov_sync): Use gcov_nonruntime_assert.
15173 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15174 (gcov_histo_index): Use gcov_nonruntime_assert.
15175 (static void gcov_histogram_merge): Ditto.
15176 (compute_working_sets): Ditto.
15177 * gcov-io.h (gcov_nonruntime_assert): Define.
15178 (gcov_error): Define for !IN_LIBGCOV
15179
15180 2014-05-22 Richard Biener <rguenther@suse.de>
15181
15182 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15183 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15184 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15185 and deallocation site.
15186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15187 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15188 passing through the incoming points-to set.
15189 (handle_lhs_call): Use flags argument instead of recomputing it.
15190 (find_func_aliases_for_call): Call handle_lhs_call with proper
15191 call return flags.
15192
15193 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15194
15195 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15196 all padding bits in REAL_VALUE_TYPE are cleared.
15197
15198 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15199
15200 Cleanup and improve multipass_dfa_lookahead_guard
15201 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15202 (core2i7_first_cycle_multipass_begin,)
15203 (core2i7_first_cycle_multipass_issue,)
15204 (core2i7_first_cycle_multipass_backtrack): Update signature.
15205 * config/ia64/ia64.c
15206 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15207 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15208 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15209 hook definition.
15210 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15211 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15212 values.
15213 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15214 return values.
15215 * doc/tm.texi: Regenerate.
15216 * doc/tm.texi.in
15217 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15218 * haifa-sched.c (ready_try): Make signed to allow negative values.
15219 (rebug_ready_list_1): Update.
15220 (choose_ready): Simplify.
15221 (sched_extend_ready_list): Update.
15222
15223 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15224
15225 Remove IA64 speculation tweaking flags
15226 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15227 speculation tuning flags.
15228 (msched-prefer-non-data-spec-insns,)
15229 (msched-prefer-non-control-spec-insns): Obsolete options.
15230 * haifa-sched.c (choose_ready): Remove handling of
15231 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15232 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15233 and PREFER_NON_DATA_SPEC.
15234 * sel-sched.c (process_spec_exprs): Remove handling of
15235 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15236
15237 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15238
15239 Improve scheduling debug output
15240 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15241 (advance_one_cycle): Update.
15242 (schedule_insn, queue_to_ready): Add debug printouts.
15243 (debug_ready_list_1): New static function.
15244 (debug_ready_list): Update.
15245 (max_issue): Add debug printouts.
15246 (dump_insn_stream): New static function.
15247 (schedule_block): Use it. Also better indent printouts.
15248
15249 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15250
15251 Fix sched_insn debug counter
15252 * haifa-sched.c (schedule_insn): Update.
15253 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15254 (save_backtrack_point, restore_backtrack_point): Update.
15255 (first_nonscheduled_insn): New static function.
15256 (queue_to_ready, choose_ready): Use it.
15257 (schedule_block): Init nonscheduled_insns_begin.
15258 (sched_emit_insn): Update.
15259
15260
15261 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15262
15263 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15264 to GENERAL_REGS.
15265 (aarch64_secondary_reload) : LikeWise.
15266 (aarch64_class_max_nregs) : Remove CORE_REGS.
15267 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15268 (REG_CLASS_NAMES) : Likewise.
15269 (REG_CLASS_CONTENTS) : LikeWise.
15270 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15271
15272 2014-05-21 Guozhi Wei <carrot@google.com>
15273
15274 PR target/61202
15275 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15276 constraint.
15277 (vqdmulhq_n_s16): Likewise.
15278
15279 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15280
15281 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15282
15283 2014-05-21 Marek Polacek <polacek@redhat.com>
15284
15285 PR sanitizer/61272
15286 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15287
15288 2014-05-21 Martin Jambor <mjambor@suse.cz>
15289
15290 * doc/invoke.texi (Optimize Options): Document parameters
15291 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15292 ipa-cp-array-index-hint-bonus.
15293
15294 2014-05-21 Mark Wielaard <mjw@redhat.com>
15295
15296 PR debug/16063
15297 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15298 version >= 3 or not strict DWARF.
15299 * langhooks.h (struct lang_hooks_for_types): Add
15300 enum_underlying_base_type.
15301 * langhooks.c (lhd_enum_underlying_base_type): New function.
15302 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15303 enum_underlying_base_type.
15304 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15305 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15306 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15307
15308 2014-05-21 Richard Biener <rguenther@suse.de>
15309
15310 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15311
15312 2014-05-21 John Marino <gnugcc@marino.st>
15313
15314 * config.gcc (*-*-dragonfly*): New target.
15315 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15316 * configure: Regenerate.
15317 * config/dragonfly-stdint.h: New.
15318 * config/dragonfly.h: New.
15319 * config/dragonfly.opt: New.
15320 * config/i386/dragonfly.h: New.
15321 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15322
15323 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15324
15325 * tree.def (VOID_CST): New.
15326 * tree-core.h (TI_VOID): New.
15327 * tree.h (void_node): New.
15328 * tree.c (tree_node_structure_for_code, tree_code_size)
15329 (iterative_hash_expr): Handle VOID_CST.
15330 (build_common_tree_nodes): Initialize void_node.
15331
15332 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15333
15334 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15335 functions.
15336 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15337
15338 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15339 more places.
15340
15341 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15342 flag_reorder_blocks_and_partition.
15343 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15344
15345 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15346
15347 PR target/54236
15348 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15349 constraints.
15350 (*addc_r_t): Add new insn_and_split.
15351
15352 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15353
15354 PR middle-end/61252
15355 * omp-low.c (handle_simd_reference): New function.
15356 (lower_rec_input_clauses): Use it. Defer adding reference
15357 initialization even for reduction without placeholder if in simd,
15358 handle it properly later on.
15359
15360 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15361
15362 PR tree-optimization/60899
15363 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15364 assume all static symbols will have definition wile parsing and
15365 check the do have definition later in compilation; check that
15366 variable referring symbol will be output before concluding that
15367 reference is safe; be conservative for referring local statics;
15368 be more precise about when comdat is output in other partition.
15369
15370 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15371
15372 PR bootstrap/60984
15373 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15374 parameter.
15375 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15376 (ipa_inline): Loop inline_to_all_callers until no more aliases
15377 are removed.
15378
15379 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15380
15381 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15382 set writeonly flag only for vars actually written to.
15383
15384 2014-05-20 Dehao Chen <dehao@google.com>
15385
15386 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15387 and callee count to get clone count.
15388 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15389 count in copy_body.
15390
15391 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15392
15393 PR rtl-optimization/61243
15394 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15395
15396 2014-05-20 Xinliang David Li <davidxl@google.com>
15397
15398 * cgraphunit.c (walk_polymorphic_call_targets): Add
15399 dbgcnt and fopt-info support.
15400 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15401 * ipa-devirt.c (ipa_devirt): Ditto.
15402 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15403 * ipa.c (walk_polymorphic_call_targets): Ditto.
15404 * gimple-fold.c (fold_gimple_assign): Ditto.
15405 (gimple_fold_call): Ditto.
15406 * dbgcnt.def: New counter.
15407
15408 2014-05-20 DJ Delorie <dj@redhat.com>
15409
15410 * config/msp430/msp430.md (split): Don't allow subregs when
15411 splitting SImode adds.
15412 (andneghi): Fix subtraction logic.
15413 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15414
15415 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15416
15417 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15418 symbols.
15419 * except.c (switch_to_exception_section, resolve_unique_section,
15420 get_named_text_section, default_function_rodata_section,
15421 align_variable, get_block_for_decl, default_section_type_flags):
15422 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15423 * symtab.c (symtab_add_to_same_comdat_group,
15424 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15425 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15426 Likewise.
15427 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15428 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15429 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15430 (c6x_function_in_section_p): Likewise.
15431 * config/darwin.c (machopic_select_section): Likewise.
15432 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15433 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15434 * config/mep/mep.c (mep_select_section): LIkewise.
15435 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15436
15437 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15438
15439 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15440 EH region of calls to pure functions that can throw an exception.
15441 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15442 (copy_reference_ops_from_call): Also copy the EH region of the call if
15443 it can throw an exception.
15444
15445 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15446
15447 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15448 nested VEC_SELECTs that are inverses of each other.
15449
15450 2014-05-20 Richard Biener <rguenther@suse.de>
15451
15452 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15453 (extract_and_process_scc_for_name): not here.
15454 (cond_dom_walker::before_dom_children): Only process
15455 stmts that end the BB in interesting ways.
15456 (run_scc_vn): Mark param uses as visited.
15457
15458 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15459
15460 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15461 arm_restrict_it.
15462
15463 2014-05-20 Nick Clifton <nickc@redhat.com>
15464
15465 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15466 (msp430_gimplify_va_arg_expr): New function.
15467 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15468
15469 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15470 operand 0 in order to prevent confusion about the number of
15471 registers involved.
15472
15473 2014-05-20 Richard Biener <rguenther@suse.de>
15474
15475 PR tree-optimization/61221
15476 * tree-ssa-pre.c (el_to_update): Remove.
15477 (eliminate_dom_walker::before_dom_children): Handle released
15478 VDEFs by value-numbering them to the associated VUSE. Update
15479 stmt immediately for substituted call address.
15480 (eliminate): Remove delayed stmt updating code.
15481 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15482 possibly late re-numbered vuses.
15483 (vn_reference_lookup_2): Adjust.
15484 (vn_reference_lookup_pieces): Likewise.
15485 (vn_reference_lookup): Likewise.
15486
15487 2014-05-20 Richard Biener <rguenther@suse.de>
15488
15489 * config.gcc: Remove need_64bit_hwint.
15490 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15491 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15492 it to be true.
15493 * config.in: Regenerate.
15494 * configure: Likewise.
15495
15496 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15497
15498 * doc/extend.texi: Create Label Attributes section,
15499 move all label attributes into it and reference it.
15500
15501 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15502
15503 * arm.c (thumb1_reorg): When scanning backwards skip anything
15504 that's not a proper insn.
15505
15506 2014-05-19 Richard Biener <rguenther@suse.de>
15507
15508 PR tree-optimization/61221
15509 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15510 Do nothing for unreachable blocks.
15511 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15512 Improve unreachability detection.
15513
15514 2014-05-19 Richard Biener <rguenther@suse.de>
15515
15516 PR tree-optimization/61209
15517 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15518
15519 2014-05-19 Nick Clifton <nickc@redhat.com>
15520
15521 * except.c (init_eh): Fix computation of builtin setjmp buffer
15522 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15523
15524 2014-05-19 Richard Biener <rguenther@suse.de>
15525
15526 PR tree-optimization/61184
15527 * tree-vrp.c (is_negative_overflow_infinity): Use
15528 TREE_OVERFLOW_P and do that check first.
15529 (is_positive_overflow_infinity): Likewise.
15530 (is_overflow_infinity): Likewise.
15531 (vrp_operand_equal_p): Properly treat operands with
15532 differing overflow as not equal.
15533
15534 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15535
15536 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15537 shift simplification where it was intended.
15538
15539 2014-05-19 Christian Bruel <christian.bruel@st.com>
15540
15541 PR target/61195
15542 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15543
15544 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15545
15546 PR target/61084
15547 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15548 than wide_int.
15549
15550 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15551
15552 * reg-notes.def (CROSSING_JUMP): Likewise.
15553 * rtl.h (rtx_def): Update comment for jump flag.
15554 (CROSSING_JUMP_P): Define.
15555 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15556 of a REG_CROSSING_JUMP note.
15557 * cfghooks.c (tidy_fallthru_edges): Likewise.
15558 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15559 * emit-rtl.c (try_split): Likewise.
15560 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15561 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15562 * jump.c (redirect_jump_2): Likewise.
15563 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15564 (relax_delay_slots): Likewise.
15565 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15566 (bbit_di): Likewise.
15567 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15568 * config/sh/sh.md (jump_compact): Likewise.
15569 * bb-reorder.c (rotate_loop): Likewise.
15570 (pass_duplicate_computed_gotos::execute): Likewise.
15571 (add_reg_crossing_jump_notes): Rename to...
15572 (update_crossing_jump_flags): ...this.
15573 (pass_partition_blocks::execute): Update accordingly.
15574
15575 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15576
15577 * tree.h: Remove extraneous template <>.
15578
15579 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15580
15581 * ipa.c (symtab_remove_unreachable_nodes): Remove
15582 symbol from comdat group if its body was eliminated.
15583 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15584 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15585 (symtab_unregister_node): ... this one.
15586 (verify_symtab_base): More strict checking of comdats.
15587 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15588
15589 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15590
15591 * tree-pass.h (make_pass_ipa_comdats): New pass.
15592 * timevar.def (TV_IPA_COMDATS): New timevar.
15593 * passes.def (pass_ipa_comdats): Add.
15594 * Makefile.in (OBJS): Add ipa-comdats.o
15595 * ipa-comdats.c: New file.
15596
15597 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15598
15599 * ipa.c (update_visibility_by_resolution_info): New function.
15600 (function_and_variable_visibility): Use it.
15601
15602 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15603
15604 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15605 New functions.
15606 (FOR_EACH_DEFINED_SYMBOL): New macro.
15607 (varpool_first_static_initializer, varpool_next_static_initializer,
15608 varpool_first_defined_variable, varpool_next_defined_variable):
15609 Fix comments.
15610 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15611
15612 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15613
15614 * ggc-page.c (ggc_handle_finalizers): Add comment.
15615
15616 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15617
15618 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15619 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15620 (ggc_internal_cleared_alloc): Likewise.
15621 * ggc-page.c (finalizer): New class.
15622 (vec_finalizer): Likewise.
15623 (globals::finalizers): New member.
15624 (globals::vec_finalizers): Likewise.
15625 (ggc_internal_alloc): Record the finalizer if any for the block being
15626 allocated.
15627 (ggc_handle_finalizers): New function.
15628 (ggc_collect): Call ggc_handle_finalizers.
15629 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15630 finalizer.
15631 (ggc_internal_cleared_alloc): Likewise.
15632 (finalize): New function.
15633 (need_finalization_p): Likewise.
15634 (ggc_alloc): Install the type's destructor as the finalizer if it
15635 might do something.
15636 (ggc_cleared_alloc): Likewise.
15637 (ggc_vec_alloc): Likewise.
15638 (ggc_cleared_vec_alloc): Likewise.
15639
15640 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15641
15642 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15643
15644 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15645
15646 * alias.c (record_alias_subset): Adjust.
15647 * bitmap.c (bitmap_element_allocate): Likewise.
15648 (bitmap_gc_alloc_stat): Likewise.
15649 * cfg.c (init_flow): Likewise.
15650 (alloc_block): Likewise.
15651 (unchecked_make_edge): Likewise.
15652 * cfgloop.c (alloc_loop): Likewise.
15653 (flow_loops_find): Likewise.
15654 (rescan_loop_exit): Likewise.
15655 * cfgrtl.c (init_rtl_bb_info): Likewise.
15656 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15657 (cgraph_allocate_node): Likewise.
15658 (cgraph_create_edge_1): Likewise.
15659 (cgraph_allocate_init_indirect_info): Likewise.
15660 * cgraphclones.c (cgraph_clone_edge): Likewise.
15661 * cgraphunit.c (add_asm_node): Likewise.
15662 (init_lowered_empty_function): Likewise.
15663 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15664 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15665 (alpha_use_linkage): Likewise.
15666 * config/arc/arc.c (arc_init_machine_status): Likewise.
15667 * config/arm/arm.c (arm_init_machine_status): Likewise.
15668 * config/avr/avr.c (avr_init_machine_status): Likewise.
15669 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15670 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15671 * config/cris/cris.c (cris_init_machine_status): Likewise.
15672 * config/darwin.c (machopic_indirection_name): Likewise.
15673 (darwin_build_constant_cfstring): Likewise.
15674 (darwin_enter_string_into_cfstring_table): Likewise.
15675 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15676 * config/frv/frv.c (frv_init_machine_status): Likewise.
15677 * config/i386/i386.c (get_dllimport_decl): Likewise.
15678 (ix86_init_machine_status): Likewise.
15679 (assign_386_stack_local): Likewise.
15680 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15681 (i386_pe_maybe_record_exported_symbol): Likewise.
15682 (i386_pe_record_stub): Likewise.
15683 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15684 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15685 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15686 (m32c_note_pragma_address): Likewise.
15687 * config/mep/mep.c (mep_init_machine_status): Likewise.
15688 (mep_note_pragma_flag): Likewise.
15689 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15690 (mips16_local_alias): Likewise.
15691 (mips_init_machine_status): Likewise.
15692 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15693 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15694 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15695 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15696 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15697 * config/pa/pa.c (pa_init_machine_status): Likewise.
15698 (pa_get_deferred_plabel): Likewise.
15699 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15700 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15701 (rs6000_init_machine_status): Likewise.
15702 (output_toc): Likewise.
15703 * config/s390/s390.c (s390_init_machine_status): Likewise.
15704 * config/score/score.c (score_output_external): Likewise.
15705 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15706 * config/spu/spu.c (spu_init_machine_status): Likewise.
15707 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15708 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15709 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15710 * coverage.c (coverage_end_function): Likewise.
15711 * dbxout.c (dbxout_init): Likewise.
15712 * doc/gty.texi: Don't mention variable_size attribute.
15713 * dwarf2cfi.c (new_cfi): Adjust.
15714 (new_cfi_row): Likewise.
15715 (copy_cfi_row): Likewise.
15716 (create_cie_data): Likewise.
15717 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15718 (new_loc_descr): Likewise.
15719 (find_AT_string_in_table): Likewise.
15720 (add_addr_table_entry): Likewise.
15721 (new_die): Likewise.
15722 (add_var_loc_to_decl): Likewise.
15723 (clone_die): Likewise.
15724 (clone_as_declaration): Likewise.
15725 (break_out_comdat_types): Likewise.
15726 (new_loc_list): Likewise.
15727 (add_loc_descr_to_each): Likewise.
15728 (add_location_or_const_value_attribute): Likewise.
15729 (add_linkage_name): Likewise.
15730 (lookup_filename): Likewise.
15731 (dwarf2out_var_location): Likewise.
15732 (new_line_info_table): Likewise.
15733 (dwarf2out_init): Likewise.
15734 (mem_loc_descriptor): Likewise.
15735 (loc_descriptor): Likewise.
15736 (add_const_value_attribute): Likewise.
15737 (tree_add_const_value_attribute): Likewise.
15738 (comp_dir_string): Likewise.
15739 (dwarf2out_vms_debug_main_pointer): Likewise.
15740 (string_cst_pool_decl): Likewise.
15741 * emit-rtl.c (set_mem_attrs): Likewise.
15742 (get_reg_attrs): Likewise.
15743 (start_sequence): Likewise.
15744 (init_emit): Likewise.
15745 (init_emit_regs): Likewise.
15746 * except.c (init_eh_for_function): Likewise.
15747 (gen_eh_region): Likewise.
15748 (gen_eh_region_catch): Likewise.
15749 (gen_eh_landing_pad): Likewise.
15750 (add_call_site): Likewise.
15751 * function.c (add_frame_space): Likewise.
15752 (insert_temp_slot_address): Likewise.
15753 (assign_stack_temp_for_type): Likewise.
15754 (get_hard_reg_initial_val): Likewise.
15755 (allocate_struct_function): Likewise.
15756 (prepare_function_start): Likewise.
15757 (types_used_by_var_decl_insert): Likewise.
15758 * gengtype.c (variable_size_p): Remove function.
15759 (enum alloc_quantity): Remove enum.
15760 (write_typed_alloc_def): Remove function.
15761 (write_typed_struct_alloc_def): Likewise.
15762 (write_typed_typedef_alloc_def): Likewise.
15763 (write_typed_alloc_defns): Likewise.
15764 (main): Adjust.
15765 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15766 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15767 * ggc.h (ggc_alloc): new function.
15768 (ggc_cleared_alloc): Likewise.
15769 (ggc_vec_alloc): Template on type of vector element, and remove
15770 element size argument.
15771 (ggc_cleared_vec_alloc): Likewise.
15772 * gimple.c (gimple_build_omp_for): Adjust.
15773 (gimple_copy): Likewise.
15774 * ipa-cp.c (get_replacement_map): Likewise.
15775 (find_aggregate_values_for_callers_subset): Likewise.
15776 (known_aggs_to_agg_replacement_list): Likewise.
15777 * ipa-devirt.c (get_odr_type): Likewise.
15778 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15779 (read_agg_replacement_chain): Likewise.
15780 * loop-iv.c (get_simple_loop_desc): Likewise.
15781 * lto-cgraph.c (input_node_opt_summary): Likewise.
15782 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15783 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15784 (input_eh_region): Likewise.
15785 (input_eh_lp): Likewise.
15786 (input_cfg): Likewise.
15787 * optabs.c (set_optab_libfunc): Likewise.
15788 (init_tree_optimization_optabs): Likewise.
15789 (set_conv_libfunc): Likewise.
15790 * passes.c (do_per_function_toporder): Likewise.
15791 * rtl.h: Don't use variable_size gty attribute.
15792 * sese.c (if_region_set_false_region): Adjust.
15793 * stringpool.c (gt_pch_save_stringpool): Likewise.
15794 * target-globals.c (save_target_globals): Likewise.
15795 * toplev.c (general_init): Likewise.
15796 * trans-mem.c (record_tm_replacement): Likewise.
15797 (split_bb_make_tm_edge): Likewise.
15798 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15799 * tree-data-ref.h (lambda_vector_new): Likewise.
15800 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15801 * tree-iterator.c (tsi_link_before): Likewise.
15802 (tsi_link_after): Likewise.
15803 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15804 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15805 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15806 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15807 * tree-ssa.c (init_tree_ssa): Adjust.
15808 * tree-ssanames.c (set_range_info): Likewise.
15809 (get_ptr_info): Likewise.
15810 (duplicate_ssa_name_ptr_info): Likewise.
15811 (duplicate_ssa_name_range_info): Likewise.
15812 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15813 (unpack_ts_fixed_cst_value_fields): Likewise.
15814 * tree.c (build_fixed): Likewise.
15815 (build_real): Likewise.
15816 (build_string): Likewise.
15817 (decl_priority_info): Likewise.
15818 (decl_debug_expr_insert): Likewise.
15819 (decl_value_expr_insert): Likewise.
15820 (decl_debug_args_insert): Likewise.
15821 (type_hash_add): Likewise.
15822 (build_omp_clause): Likewise.
15823 * ubsan.c (decl_for_type_insert): Likewise.
15824 * varasm.c (get_unnamed_section): Likewise.
15825 (get_noswitch_section): Likewise.
15826 (get_section): Likewise.
15827 (get_block_for_section): Likewise.
15828 (create_block_symbol): Likewise.
15829 (build_constant_desc): Likewise.
15830 (create_constant_pool): Likewise.
15831 (force_const_mem): Likewise.
15832 (record_tm_clone_pair): Likewise.
15833 * varpool.c (varpool_create_empty_node): Likewise.
15834
15835 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15836
15837 * dwarf2out.c (tree_add_const_value_attribute): Call
15838 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15839 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15840 instead of ggc_internal_<x>alloc_stat.
15841 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15842 (ggc_realloc): Likewise.
15843 * ggc-none.c (ggc_internal_alloc): Likewise.
15844 (ggc_internal_cleared_alloc): Likewise.
15845 * ggc-page.c: Likewise.
15846 * ggc.h (ggc_internal_alloc_stat): Likewise.
15847 (ggc_internal_alloc): Remove macro.
15848 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15849 (ggc_internal_cleared_alloc): Remove macro.
15850 (GGC_RESIZEVEC): Adjust.
15851 (ggc_resizevar): Remove macro.
15852 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15853 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15854 (ggc_internal_vec_cleared_alloc): Remove macro.
15855 (ggc_alloc_atomic_stat): Drop _stat suffix.
15856 (ggc_alloc_atomic): Remove macro.
15857 (ggc_alloc_cleared_atomic): Remove macro.
15858 (ggc_alloc_string_stat): Drop _stat suffix.
15859 (ggc_alloc_string): Remove macro.
15860 (ggc_alloc_rtx_def_stat): Adjust.
15861 (ggc_alloc_tree_node_stat): Likewise.
15862 (ggc_alloc_cleared_tree_node_stat): Likewise.
15863 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15864 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15865 * gimple.c (gimple_build_omp_for): Likewise.
15866 (gimple_copy): Likewise.
15867 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15868 * toplev.c (realloc_for_line_map): Adjust.
15869 * tree-data-ref.h (lambda_vector_new): Likewise.
15870 * tree-phinodes.c (allocate_phi_node): Likewise.
15871 * tree.c (grow_tree_vec_stat): Likewise.
15872 * vec.h (va_gc::reserve): Adjust.
15873
15874 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15875
15876 * config/microblaze/microblaze.c (break_handler): New Declaration.
15877 (microblaze_break_function_p,microblaze_is_break_handler): New.
15878 (compute_frame_size): Use microblaze_break_function_p.
15879 Add the test of break_handler.
15880 (microblaze_function_prologue) : Add the test of variable
15881 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15882 (microblaze_function_epilogue) : Add the test of break_handler.
15883 (microblaze_globalize_label) : Add the test of break_handler.
15884 Check the name by BREAK_HANDLER_NAME.
15885
15886 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15887
15888 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15889 microblaze_is_break_handler test.
15890 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15891 Use SYMBOL_REF_DECL.
15892
15893 * config/microblaze/microblaze-protos.h
15894 (microblaze_break_function_p,microblaze_is_break_handler):
15895 New Declaration.
15896
15897 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15898 new MicroBlaze break_handler functions.
15899
15900 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15901
15902 * doc/extend.texi (Size of an asm): Move node text according
15903 to its @menu entry position.
15904
15905 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15906
15907 PR tree-optimization/61140
15908 PR tree-optimization/61150
15909 PR tree-optimization/61197
15910 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15911
15912 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15913
15914 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15915
15916 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15917
15918 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15919 __SIZEOF_INT128__ is defined.
15920
15921 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15922
15923 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15924 (rs6000_delegitimize_address): Use it.
15925
15926 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15927
15928 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15929 inplace argument. Store the new address in the original MEM when true.
15930 * emit-rtl.c (change_address_1): Likewise.
15931 (adjust_address_1, adjust_automodify_address_1, offset_address):
15932 Update accordingly.
15933 * rtl.h (plus_constant): Add an inplace argument.
15934 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15935 when true. Avoid generating (plus X (const_int 0)).
15936 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15937 in-place. Pass true to plus_constant.
15938 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15939
15940 2014-05-16 Dehao Chen <dehao@google.com>
15941
15942 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15943
15944 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15945
15946 PR target/54089
15947 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15948 patterns.
15949 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15950
15951 2014-05-16 Dehao Chen <dehao@google.com>
15952
15953 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15954 optimize_function_for_size_p.
15955 * regs.h (REG_FREQ_FROM_BB): Likewise.
15956
15957 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15958
15959 PR target/51244
15960 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15961 negt_reg_operand cases.
15962 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15963 predicate.
15964 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15965
15966 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15967
15968 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15969 target variants.
15970
15971 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15972
15973 Revert:
15974 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15975
15976 * tree-cfg.c (dump_function_to_file): Dump the return type of
15977 functions, in a line to itself before the function body, mimicking
15978 the layout of a C function.
15979
15980 2014-05-16 Dehao Chen <dehao@google.com>
15981
15982 * cfghooks.c (make_forwarder_block): Use direct computation to
15983 get fall-through edge's count and frequency.
15984
15985 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15986
15987 * config/arc/arc.c (arc_init): Fix typo in error message.
15988 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15989 (split_stack_prologue_scratch_regno): Likewise.
15990 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15991 word from error message.
15992
15993 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15994
15995 * ira-costs.c: Fix typo in comment.
15996
15997 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15998
15999 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16000
16001 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16002
16003 * varpool.c (dump_varpool_node): Dump write-only flag.
16004 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16005 write-only flag.
16006 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16007 write-only variables.
16008 * ipa.c (process_references): New function.
16009 (set_readonly_bit): New function.
16010 (set_writeonly_bit): New function.
16011 (clear_addressable_bit): New function.
16012 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16013 fix handling of aliases.
16014 * cgraph.h (struct varpool_node): Add writeonly flag.
16015
16016 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16017
16018 PR rtl-optimization/60969
16019 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16020 Calculate costs for this case.
16021
16022 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16023
16024 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16025 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16026
16027 2014-05-16 Richard Biener <rguenther@suse.de>
16028
16029 PR tree-optimization/61194
16030 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16031 bool patterns ending in a COND_EXPR.
16032
16033 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16034
16035 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16036
16037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16038
16039 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16040 where we were unable to cost an RTX.
16041
16042 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16043
16044 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16045 HIGH, LO_SUM.
16046
16047 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16048 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16049
16050 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16051
16052 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16053 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16054
16055 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16056 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16057
16058 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16059 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16060
16061 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16062 operators.
16063
16064 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16065 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16066
16067 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16068 DIV/MOD.
16069
16070 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16071 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16072
16073 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16074 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16075
16076 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16077 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16078
16079 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16080 rotates and shifts.
16081
16082 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16083 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16084
16085 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16086 ZERO_EXTEND and SIGN_EXTEND better.
16087
16088 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16089 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16090
16091 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16092 logical operations.
16093
16094 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16095 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16096
16097 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16098 costs when costing loads and stores to memory.
16099
16100 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16101 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16102
16103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16104 for SET RTX.
16105
16106 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16107
16108 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16109
16110 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16111 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16112
16113 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16114 to...
16115 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16116 well formed.
16117 (aarch64_rtx_mult_cost): New.
16118 (aarch64_rtx_costs): Use it, refactor as appropriate.
16119
16120 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16121 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16122
16123 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16124 emit instructions, return number of instructions which would
16125 be emitted.
16126 (aarch64_add_constant): Update call to aarch64_build_constant.
16127 (aarch64_output_mi_thunk): Likewise.
16128 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16129 a CONST_DOUBLE.
16130
16131 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16132
16133 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16134 (TARGET_RTX_COSTS): Call it.
16135
16136 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16137
16138 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16139 (cortexa57_vector_cost): Likewise.
16140 (cortexa57_tunings): Use them.
16141
16142 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16143
16144 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16145 (cpu_addrcost_table): Use it.
16146 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16147 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16148 move it.
16149
16150 2014-05-16 Richard Biener <rguenther@suse.de>
16151
16152 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16153 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16154 (visit_phi): Ignore edges marked as not executable.
16155 (class cond_dom_walker): New.
16156 (cond_dom_walker::before_dom_children): Value-number
16157 control statements and mark successor edges as not
16158 executable if possible.
16159 (run_scc_vn): First walk all control statements in
16160 dominator order, marking edges as not executable.
16161 * tree-inline.c (copy_edges_for_bb): Be not confused
16162 about random edge flags.
16163
16164 2014-05-16 Richard Biener <rguenther@suse.de>
16165
16166 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16167
16168 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16169
16170 PR target/61193
16171 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16172 (__TM_simple_begin): Use it.
16173 (__TM_begin): Likewise.
16174
16175 2014-05-15 Martin Jambor <mjambor@suse.cz>
16176
16177 PR ipa/61085
16178 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16179 type_preserved flag when the indirect edge is polymorphic.
16180
16181 2014-05-15 Martin Jambor <mjambor@suse.cz>
16182
16183 PR tree-optimization/61090
16184 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16185 build_ref_for_model.
16186
16187 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16188
16189 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16190 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16191
16192 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16193
16194 PR tree-optimization/61158
16195 * fold-const.c (fold_binary_loc): If X is zero-extended and
16196 shiftc >= prec, make sure zerobits is all ones instead of
16197 invoking undefined behavior.
16198
16199 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16200
16201 * regcprop.h: New file.
16202 * regcprop.c (skip_debug_insn_p): New decl.
16203 (replace_oldest_value_reg): Check skip_debug_insn_p.
16204 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16205 * shrink-wrap.c: Include regcprop.h.
16206 (prepare_shrink_wrap): Call
16207 copyprop_hardreg_forward_bb_without_debug_insn.
16208
16209 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16210
16211 * shrink-wrap.h: Update comment.
16212 * shrink-wrap.c: Update comment.
16213 (next_block_for_reg): Rename to live_edge_for_reg.
16214 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16215 (move_insn_for_shrink_wrap): Split live_edge.
16216 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16217
16218 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16219
16220 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16221 Delete.
16222 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16223 * config/sparc/sparc.md (fptype_ut699): New attribute.
16224 (in_branch_delay): Return false if -mfix-ut699 is specified and
16225 fptype_ut699 is set to single.
16226 (truncdfsf2): Add fptype_ut699 attribute.
16227 (fix_truncdfsi2): Likewise.
16228 (floatsisf2): Change fptype attribute.
16229 (fix_truncsfsi2): Likewise.
16230 (negtf2_notv9): Delete.
16231 (negtf2_v9): Likewise.
16232 (negtf2_hq): New instruction.
16233 (negtf2): New instruction and splitter.
16234 (negdf2_notv9): Rewrite.
16235 (abstf2_notv9): Delete.
16236 (abstf2_hq_v9): Likewise.
16237 (abstf2_v9): Likewise.
16238 (abstf2_hq): New instruction.
16239 (abstf2): New instruction and splitter.
16240 (absdf2_notv9): Rewrite.
16241
16242 2014-05-14 Cary Coutant <ccoutant@google.com>
16243
16244 PR debug/61013
16245 * opts.c (common_handle_option): Don't special-case "-g".
16246 (set_debug_level): Default to at least level 2 with "-g".
16247
16248 2014-05-14 DJ Delorie <dj@redhat.com>
16249
16250 * config/msp430/msp430.c (msp430_builtin): Add
16251 MSP430_BUILTIN_DELAY_CYCLES.
16252 (msp430_init_builtins): Register void __delay_cycles(long long).
16253 (msp430_builtin_decl): Add it.
16254 (cg_magic_constant): New.
16255 (msp430_expand_delay_cycles): New.
16256 (msp430_expand_builtin): Call it.
16257 (msp430_print_operand_raw): Change integer printing from "int" to
16258 HOST_WIDE_INT.
16259 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16260 (delay_cycles_start): New.
16261 (delay_cycles_end): New.
16262 (delay_cycles_32): New.
16263 (delay_cycles_32x): New.
16264 (delay_cycles_16): New.
16265 (delay_cycles_16x): New.
16266 (delay_cycles_2): New.
16267 (delay_cycles_1): New.
16268 * doc/extend.texi: Document __delay_cycles().
16269
16270 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16271
16272 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16273 length attribute computation.
16274
16275 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16276
16277 PR debug/61188
16278 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16279
16280 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16281
16282 PR target/61084
16283 * config/sparc/sparc.md: Fix types of low and high in DI constant
16284 splitter. Use gen_int_mode in some other splitters.
16285
16286 2014-05-14 Martin Jambor <mjambor@suse.cz>
16287
16288 PR ipa/60897
16289 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16290
16291 2014-05-14 James Norris <jnorris@codesourcery.com>
16292
16293 * omp-low.c (expand_parallel_call): Remove shadow variable.
16294 (expand_omp_taskreg): Likewise.
16295
16296 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16297
16298 * common/config/i386/i386-common.c
16299 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16300 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16301 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16302 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16303 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16304 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16305 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16306 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16307 xsavecintrin.h, xsavesintrin.h.
16308 (x86_64-*-*): Ditto.
16309 * config/i386/clflushoptintrin.h: New.
16310 * config/i386/xsavecintrin.h: Ditto.
16311 * config/i386/xsavesintrin.h: Ditto.
16312 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16313 (bit_XSAVES): Ditto.
16314 (bit_XSAVES): Ditto.
16315 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16316 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16317 -mno-clflushopt.
16318 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16319 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16320 OPTION_MASK_ISA_XSAVES.
16321 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16322 -mxsavec, -mxsaves.
16323 (PTA_CLFLUSHOPT) Define.
16324 (PTA_XSAVEC): Ditto.
16325 (PTA_XSAVES): Ditto.
16326 (ix86_option_override_internal): Handle new options.
16327 (ix86_valid_target_attribute_inner_p): Ditto.
16328 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16329 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16330 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16331 (bdesc_special_args): Add __builtin_ia32_xsaves,
16332 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16333 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16334 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16335 (ix86_expand_builtin): Handle new builtins.
16336 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16337 (TARGET_CLFLUSHOPT_P): Ditto.
16338 (TARGET_XSAVEC): Ditto.
16339 (TARGET_XSAVEC_P): Ditto.
16340 (TARGET_XSAVES): Ditto.
16341 (TARGET_XSAVES_P): Ditto.
16342 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16343 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16344 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16345 (ANY_XRSTOR): New.
16346 (ANY_XRSTOR64): Ditto.
16347 (xrstor): Ditto.
16348 (xrstor): Change into <xrstor>.
16349 (xrstor_rex64): Change into <xrstor>_rex64.
16350 (xrstor64): Change into <xrstor>64
16351 (clflushopt): New.
16352 * config/i386/i386.opt (mclflushopt): New.
16353 (mxsavec): Ditto.
16354 (mxsaves): Ditto.
16355 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16356 xsavecintrin.h.
16357 * doc/invoke.texi: Document new options.
16358
16359 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16360
16361 PR rtl-optimization/60866
16362 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16363 Default it to -1. Pass it down to init_simplejump_data.
16364 (init_simplejump_data): New parameter old_seqno. Pass it down
16365 to get_seqno_for_a_jump.
16366 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16367 initializing new jump seqno as a last resort. Add comment.
16368 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16369 jump and pass it down to sel_init_new_insn.
16370 (sel_redirect_edge_and_branch_force): Likewise.
16371
16372 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16373
16374 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16375 shifted values to avoid build warning.
16376
16377 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16378
16379 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16380 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16381 (cfg_layout_merge_blocks): Likewise.
16382 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16383
16384 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16385
16386 PR rtl-optimization/60901
16387 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16388 bb predecessor belongs to the same scheduling region. Adjust comment.
16389
16390 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16391
16392 * doc/sourcebuild.texi: (dfp_hw): Document.
16393 (p8vector_hw): Likewise.
16394 (powerpc_eabi_ok): Likewise.
16395 (powerpc_elfv2): Likewise.
16396 (powerpc_htm_ok): Likewise.
16397 (ppc_recip_hw): Likewise.
16398 (vsx_hw): Likewise.
16399
16400 2014-05-13 Cary Coutant <ccoutant@google.com>
16401
16402 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16403
16404 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16405
16406 * gengtype-parse.c (require3): Eliminate in favor of...
16407 (require4): New.
16408 (require_template_declaration): Update to support optional single *
16409 on a type.
16410
16411 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16412 (create_user_defined_type): Handle a single level of explicit
16413 pointerness within template arguments.
16414 (struct write_types_data): Add field "kind".
16415 (filter_type_name): Handle "*" character.
16416 (write_user_func_for_structure_ptr): Require a write_types_data
16417 rather than just a prefix string, so that we can look up the kind
16418 of the wtd and use it as an index into wrote_user_func_for_ptr,
16419 ensuring that such functions are written at most once. Support
16420 subclasses by invoking the marking function of the ultimate base class.
16421 (write_user_func_for_structure_body): Require a write_types_data
16422 rather than just a prefix string, so that we can pass this to
16423 write_user_func_for_structure_ptr.
16424 (write_func_for_structure): Likewise.
16425 (ggc_wtd): Add initializer of new "kind" field.
16426 (pch_wtd): Likewise.
16427
16428 * gengtype.h (enum write_types_kinds): New.
16429 (struct type): Add field wrote_user_func_for_ptr to the "s"
16430 union member.
16431
16432 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16433
16434 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16435 instead of const_binop.
16436 (fold_binary_loc): Likewise.
16437
16438 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16439
16440 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16441 calculation to match get_ref_base_and_extent.
16442
16443 2014-05-13 Catherine Moore <clm@codesourcery.com>
16444 Sandra Loosemore <sandra@codesourcery.com>
16445
16446 * configure.ac: Fix assembly for explicit JALR relocation check.
16447 * configure: Regenerate.
16448
16449 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16450
16451 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16452 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16453 Remove associated type declarations and initialisations.
16454 (arm_expand_neon_builtin): Likewise.
16455 (neon_emit_pair_result_insn): Delete.
16456 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16457 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16458 (neon_vzip<mode>): Likewise.
16459 (neon_vuzp<mode>): Likewise.
16460
16461 2014-05-13 Richard Biener <rguenther@suse.de>
16462
16463 PR ipa/60973
16464 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16465 it needs revisiting whether the call still may be tail-called.
16466
16467 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16468
16469 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16470 * rtl.h (block_symbol): Reduce number of fields to 2.
16471 (rtx_def): Add u2.symbol_ref_flags.
16472 (SYMBOL_REF_FLAGS): Use it.
16473 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16474 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16475 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16476 Lower index of SYMBOL_REF_DATA.
16477 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16478 Print SYMBOL_REF_FLAGS at the same time.
16479 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16480
16481 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16482
16483 * rtl.def (VAR_LOCATION): Remove "i" field.
16484 * rtl.h (rtx_def): Add u2.var_location_status.
16485 (PAT_VAR_LOCATION_STATUS): Use it.
16486 (gen_rtx_VAR_LOCATION): Declare.
16487 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16488 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16489 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16490
16491 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16492
16493 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16494 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16495
16496 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16497
16498 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16499 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16500 * rtl.h (rtx_def): Add insn_uid to u2 field.
16501 (RTX_FLAG_CHECK8): Delete in favor of...
16502 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16503 (INSN_DELETED_P): Update accordingly.
16504 (INSN_UID): Use u2.insn_uid.
16505 (INSN_CHAIN_CODE_P): Define.
16506 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16507 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16508 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16509 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16510 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16511 indices accordingly.
16512 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16513 Update indices for insn-chain rtxes.
16514 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16515 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16516 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16517 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16518 * combine.c (try_combine): Likewise.
16519 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16520
16521 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16522
16523 * rtl.def (REG): Remove middle field.
16524 * rtl.h (rtx_def): Add orignal_regno to u2.
16525 (ORIGINAL_REGNO): Use it instead of field 1.
16526 (REG_ATTRS): Lower field index accordingly.
16527 * gengtype.c (adjust_field_rtx_def): Remove handling of
16528 ORIGINAL_REGNO. Move REG_ATTRS index down.
16529 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16530 code that prints the REGNO.
16531
16532 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16533
16534 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16535 GENERATOR_FILE.
16536
16537 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16538
16539 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16540
16541 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16542
16543 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16544 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16545
16546 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16547
16548 * config/aarch64/aarch64-protos.h
16549 (aarch64_hard_regno_caller_save_mode): New prototype.
16550 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16551 New function.
16552 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16553
16554 2014-05-13 Christian Bruel <christian.bruel@st.com>
16555
16556 * target.def (mode_switching): New hook vector.
16557 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16558 (mode_exit, modepriority_to_mode): Likewise.
16559 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16560 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16561 * target.h: Include tm.h and hard-reg-set.h.
16562 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16563 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16564 * doc/tm.texi Regenerate.
16565 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16566 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16567 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16568 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16569 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16570 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16571 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16572 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16573 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16574 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16575 (ix86_emit_mode_set): Hookify.
16576 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16577 Delete.
16578 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16579 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16580 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16581 (epiphany_mode_priority_to_mode): Remove declaration.
16582 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16583 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16584 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16585 Likewise.
16586 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16587 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16588 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16589
16590 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16591
16592 PR target/61060
16593 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16594 is const0_rtx, return immediately. Don't test count == 0 when
16595 it is always true.
16596
16597 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16598
16599 * Makefile.in: add shrink-wrap.o.
16600 * config/i386/i386.c: include "shrink-wrap.h"
16601 * function.c: Likewise.
16602 (requires_stack_frame_p, next_block_for_reg,
16603 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16604 dup_block_and_redirect): Move to shrink-wrap.c
16605 (thread_prologue_and_epilogue_insns): Extract three code segments
16606 as functions in shrink-wrap.c
16607 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16608 shrink-wrap.h
16609 * shrink-wrap.c: New file.
16610 * shrink-wrap.h: New file.
16611
16612 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16613
16614 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16615 reference to Solaris.
16616
16617 2014-05-12 Mike Stump <mikestump@comcast.net>
16618
16619 PR other/31778
16620 * genattrtab.c (filename): Add.
16621 (convert_set_attr_alternative): Improve error message.
16622 (check_defs): Restore read_md_filename for error messages.
16623 (gen_insn): Save filename.
16624
16625 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16626
16627 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16628 -fno-local-ivars and -fivar-visibility.
16629 * c-family/c.opt: Make -Wshadow also implicitly enable
16630 -Wshadow-ivar.
16631
16632 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16633
16634 * doc/tm.texi: Remove reference to deleted macro.
16635 * doc/tm.texi.in: Likewise.
16636
16637 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16638
16639 PR target/60991
16640 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16641 to restore Y.
16642
16643 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16644
16645 PR libgcc/61152
16646 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16647 * config/arm/aout.h (License): Same.
16648 * config/arm/bpabi.h (License): Same.
16649 * config/arm/elf.h (License): Same.
16650 * config/arm/linux-elf.h (License): Same.
16651 * config/arm/linux-gas.h (License): Same.
16652 * config/arm/netbsd-elf.h (License): Same.
16653 * config/arm/uclinux-eabi.h (License): Same.
16654 * config/arm/uclinux-elf.h (License): Same.
16655 * config/arm/vxworks.h (License): Same.
16656
16657 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16658
16659 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16660 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16661 number of operands to 3.
16662 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16663 * tree-nested.c (convert_nonlocal_omp_clauses,
16664 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16665 * gimplify.c (gimplify_scan_omp_clauses): Handle
16666 OMP_CLAUSE_LINEAR_STMT.
16667 * omp-low.c (lower_rec_input_clauses): Fix typo.
16668 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16669 cast between Fortran boolean_type_node and C _Bool if
16670 needed.
16671
16672 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16673
16674 PR tree-optimization/61136
16675 * wide-int.h (multiple_of_p): Define a version that doesn't return
16676 the quotient.
16677 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16678 integer_zerop/const_binop pair.
16679 (multiple_of_p): Likewise, converting both operands to widest_int
16680 precision.
16681
16682 2014-05-09 Teresa Johnson <tejohnson@google.com>
16683
16684 * cgraphunit.c (analyze_functions): Use correct dump file.
16685
16686 2014-05-09 Florian Weimer <fweimer@redhat.com>
16687
16688 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16689 expand_used_vars.
16690 (stack_protect_return_slot_p): New function.
16691 (expand_used_vars): Call stack_protect_decl_p and
16692 stack_protect_return_slot_p for -fstack-protector-strong.
16693
16694 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16695 Andrew Haley <aph@redhat.com>
16696 Richard Sandiford <rdsandiford@googlemail.com>
16697
16698 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16699 pages.
16700
16701 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16702
16703 PR middle-end/61111
16704 * fold-const.c (fold_binary_loc): Changed width of mask.
16705
16706 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16707
16708 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16709 unsigned int initializers for regno_in, regno_out.
16710
16711 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16712
16713 PR target/61055
16714 * config/avr/avr.md (cc): Add new attribute set_vzn.
16715 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16716 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16717 with INC, DEC or NEG.
16718 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16719 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16720 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16721
16722 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16723
16724 Revert:
16725 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16726
16727 * wide-int.cc (UTItype): Define.
16728 (UDWtype): Define for appropriate W_TYPE_SIZE.
16729
16730 2014-05-09 Richard Biener <rguenther@suse.de>
16731
16732 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16733 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16734 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16735 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16736 ssa_propagate): Adjust.
16737
16738 2014-05-08 Jeff Law <law@redhat.com>
16739
16740 PR tree-optimization/61009
16741 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16742 tri-state rather than a boolean. When a block is too big to
16743 thread through, inform caller via negative return value.
16744 (thread_across_edge): If a block was too big for normal threading,
16745 then it's too big for a joiner too, so remove temporary equivalences
16746 and return immediately.
16747
16748 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16749 Matthias Klose <doko@ubuntu.com>
16750
16751 PR driver/61106
16752 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16753
16754 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16755
16756 PR target/59952
16757 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16758
16759 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16760
16761 PR target/61092
16762 * config/alpha/alpha.c: Include gimple-iterator.h.
16763 (alpha_gimple_fold_builtin): New function. Move
16764 ALPHA_BUILTIN_UMULH folding from ...
16765 (alpha_fold_builtin): ... here.
16766 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16767
16768 2014-05-08 Wei Mi <wmi@google.com>
16769
16770 PR target/58066
16771 * config/i386/i386.c (ix86_compute_frame_layout): Update
16772 preferred_stack_boundary for call, expanded from tls descriptor.
16773 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16774 to depend on SP register.
16775 (*tls_local_dynamic_base_32_gnu): Ditto.
16776 (*tls_local_dynamic_32_once): Ditto.
16777 (tls_global_dynamic_64_<mode>): Set
16778 ix86_tls_descriptor_calls_expanded_in_cfun.
16779 (tls_local_dynamic_base_64_<mode>): Ditto.
16780 (tls_global_dynamic_32): Set
16781 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16782 to depend on SP register.
16783 (tls_local_dynamic_base_32): Ditto.
16784
16785 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16786
16787 * config/arm/arm_neon.h: Update comment.
16788 * config/arm/neon-docgen.ml: Delete.
16789 * config/arm/neon-gen.ml: Delete.
16790 * doc/arm-neon-intrinsics.texi: Update comment.
16791
16792 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16793
16794 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16795 and v4sf versions.
16796 (vand, vorr, veor, vorn, vbic): Remove.
16797 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16798 iterator.
16799 (neon_vsub_unspec): Likewise.
16800 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16801
16802 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16803
16804 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16805 (vadd_s16): Likewise.
16806 (vadd_s32): Likewise.
16807 (vadd_f32): Likewise.
16808 (vadd_u8): Likewise.
16809 (vadd_u16): Likewise.
16810 (vadd_u32): Likewise.
16811 (vadd_s64): Likewise.
16812 (vadd_u64): Likewise.
16813 (vaddq_s8): Likewise.
16814 (vaddq_s16): Likewise.
16815 (vaddq_s32): Likewise.
16816 (vaddq_s64): Likewise.
16817 (vaddq_f32): Likewise.
16818 (vaddq_u8): Likewise.
16819 (vaddq_u16): Likewise.
16820 (vaddq_u32): Likewise.
16821 (vaddq_u64): Likewise.
16822 (vmul_s8): Likewise.
16823 (vmul_s16): Likewise.
16824 (vmul_s32): Likewise.
16825 (vmul_f32): Likewise.
16826 (vmul_u8): Likewise.
16827 (vmul_u16): Likewise.
16828 (vmul_u32): Likewise.
16829 (vmul_p8): Likewise.
16830 (vmulq_s8): Likewise.
16831 (vmulq_s16): Likewise.
16832 (vmulq_s32): Likewise.
16833 (vmulq_f32): Likewise.
16834 (vmulq_u8): Likewise.
16835 (vmulq_u16): Likewise.
16836 (vmulq_u32): Likewise.
16837 (vsub_s8): Likewise.
16838 (vsub_s16): Likewise.
16839 (vsub_s32): Likewise.
16840 (vsub_f32): Likewise.
16841 (vsub_u8): Likewise.
16842 (vsub_u16): Likewise.
16843 (vsub_u32): Likewise.
16844 (vsub_s64): Likewise.
16845 (vsub_u64): Likewise.
16846 (vsubq_s8): Likewise.
16847 (vsubq_s16): Likewise.
16848 (vsubq_s32): Likewise.
16849 (vsubq_s64): Likewise.
16850 (vsubq_f32): Likewise.
16851 (vsubq_u8): Likewise.
16852 (vsubq_u16): Likewise.
16853 (vsubq_u32): Likewise.
16854 (vsubq_u64): Likewise.
16855 (vand_s8): Likewise.
16856 (vand_s16): Likewise.
16857 (vand_s32): Likewise.
16858 (vand_u8): Likewise.
16859 (vand_u16): Likewise.
16860 (vand_u32): Likewise.
16861 (vand_s64): Likewise.
16862 (vand_u64): Likewise.
16863 (vandq_s8): Likewise.
16864 (vandq_s16): Likewise.
16865 (vandq_s32): Likewise.
16866 (vandq_s64): Likewise.
16867 (vandq_u8): Likewise.
16868 (vandq_u16): Likewise.
16869 (vandq_u32): Likewise.
16870 (vandq_u64): Likewise.
16871 (vorr_s8): Likewise.
16872 (vorr_s16): Likewise.
16873 (vorr_s32): Likewise.
16874 (vorr_u8): Likewise.
16875 (vorr_u16): Likewise.
16876 (vorr_u32): Likewise.
16877 (vorr_s64): Likewise.
16878 (vorr_u64): Likewise.
16879 (vorrq_s8): Likewise.
16880 (vorrq_s16): Likewise.
16881 (vorrq_s32): Likewise.
16882 (vorrq_s64): Likewise.
16883 (vorrq_u8): Likewise.
16884 (vorrq_u16): Likewise.
16885 (vorrq_u32): Likewise.
16886 (vorrq_u64): Likewise.
16887 (veor_s8): Likewise.
16888 (veor_s16): Likewise.
16889 (veor_s32): Likewise.
16890 (veor_u8): Likewise.
16891 (veor_u16): Likewise.
16892 (veor_u32): Likewise.
16893 (veor_s64): Likewise.
16894 (veor_u64): Likewise.
16895 (veorq_s8): Likewise.
16896 (veorq_s16): Likewise.
16897 (veorq_s32): Likewise.
16898 (veorq_s64): Likewise.
16899 (veorq_u8): Likewise.
16900 (veorq_u16): Likewise.
16901 (veorq_u32): Likewise.
16902 (veorq_u64): Likewise.
16903 (vbic_s8): Likewise.
16904 (vbic_s16): Likewise.
16905 (vbic_s32): Likewise.
16906 (vbic_u8): Likewise.
16907 (vbic_u16): Likewise.
16908 (vbic_u32): Likewise.
16909 (vbic_s64): Likewise.
16910 (vbic_u64): Likewise.
16911 (vbicq_s8): Likewise.
16912 (vbicq_s16): Likewise.
16913 (vbicq_s32): Likewise.
16914 (vbicq_s64): Likewise.
16915 (vbicq_u8): Likewise.
16916 (vbicq_u16): Likewise.
16917 (vbicq_u32): Likewise.
16918 (vbicq_u64): Likewise.
16919 (vorn_s8): Likewise.
16920 (vorn_s16): Likewise.
16921 (vorn_s32): Likewise.
16922 (vorn_u8): Likewise.
16923 (vorn_u16): Likewise.
16924 (vorn_u32): Likewise.
16925 (vorn_s64): Likewise.
16926 (vorn_u64): Likewise.
16927 (vornq_s8): Likewise.
16928 (vornq_s16): Likewise.
16929 (vornq_s32): Likewise.
16930 (vornq_s64): Likewise.
16931 (vornq_u8): Likewise.
16932 (vornq_u16): Likewise.
16933 (vornq_u32): Likewise.
16934 (vornq_u64): Likewise.
16935
16936 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16937
16938 * wide-int.cc (UTItype): Define.
16939 (UDWtype): Define for appropriate W_TYPE_SIZE.
16940
16941 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16942
16943 PR tree-optimization/59100
16944 * tree-ssa-phiopt.c: Include tree-inline.h.
16945 (neutral_element_p, absorbing_element_p): New functions.
16946 (value_replacement): Handle conditional binary operations with a
16947 neutral or absorbing element.
16948
16949 2014-05-08 Richard Biener <rguenther@suse.de>
16950
16951 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16952 folding the expression.
16953 (valueize_expr): Remove.
16954 (visit_reference_op_load): Do not valueize the result of
16955 vn_get_expr_for.
16956 (simplify_binary_expression): Likewise.
16957 (simplify_unary_expression): Likewise.
16958
16959 2014-05-08 Richard Biener <rguenther@suse.de>
16960
16961 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16962 looking at TYPE_ARG_TYPES.
16963
16964 2014-05-08 Richard Biener <rguenther@suse.de>
16965
16966 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16967 pointer propagation special-case.
16968
16969 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16970
16971 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16972 core part of address expressions.
16973
16974 2014-05-08 Alan Modra <amodra@gmail.com>
16975
16976 PR target/60737
16977 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16978 loads and stores when -mno-strict-align at any alignment.
16979 (expand_block_clear): Similarly. Also correct calculation of
16980 instruction count.
16981
16982 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16983
16984 PR middle-end/39246
16985 * tree-complex.c (expand_complex_move): Keep line info when expanding
16986 complex move.
16987 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16988 of complex expression. Use new argument to display correct location
16989 for values coming from phi statement.
16990 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16991 (warn_uninitialized_phi): Pass location of phi argument to
16992 warn_uninit.
16993 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16994 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16995
16996 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16997
16998 * config/rs6000/predicates.md (indexed_address_mem): New.
16999 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17000 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17001 fpstore_ux, fpstore_u.
17002 (sign_extend, indexed, update): New.
17003 (cell_micro): Adjust.
17004 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17005 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17006 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17007 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17008 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17009 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17010 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17011 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17012 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17013 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17014 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17015 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17016 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17017 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17018 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17019
17020 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17021 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17022 *vsx_extract_<mode>_store): Adjust.
17023 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17024 is_cracked_insn, insn_must_be_first_in_group,
17025 insn_must_be_last_in_group): Adjust.
17026
17027 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17028 Adjust.
17029 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17030 ppc440-fpstore): Adjust.
17031 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17032 ppc476-fpstore): Adjust.
17033 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17034 ppc601-fpstore): Adjust.
17035 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17036 Adjust.
17037 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17038 Adjust.
17039 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17040 ppc7450-fpstore): Adjust.
17041 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17042 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17043 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17044 Adjust.
17045 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17046 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17047 cell-fpstore, cell-fpstore-update): Adjust.
17048 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17049 ppce300c3_store, ppce300c3_fpstore): Adjust.
17050 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17051 e500mc_fpstore): Adjust.
17052 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17053 e500mc64_store, e500mc64_fpstore): Adjust.
17054 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17055 e5500_fpstore): Adjust.
17056 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17057 e6500_fpstore): Adjust.
17058 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17059 Adjust.
17060 * config/rs6000/power4.md (power4-load, power4-load-ext,
17061 power4-load-ext-update, power4-load-ext-update-indexed,
17062 power4-load-update-indexed, power4-load-update, power4-fpload,
17063 power4-fpload-update, power4-store, power4-store-update,
17064 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17065 Adjust.
17066 * config/rs6000/power5.md (power5-load, power5-load-ext,
17067 power5-load-ext-update, power5-load-ext-update-indexed,
17068 power5-load-update-indexed, power5-load-update, power5-fpload,
17069 power5-fpload-update, power5-store, power5-store-update,
17070 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17071 Adjust.
17072 * config/rs6000/power6.md (power6-load, power6-load-ext,
17073 power6-load-update, power6-load-update-indexed,
17074 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17075 power6-fpload-update, power6-store, power6-store-update,
17076 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17077 Adjust.
17078 * config/rs6000/power7.md (power7-load, power7-load-ext,
17079 power7-load-update, power7-load-update-indexed,
17080 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17081 power7-fpload-update, power7-store, power7-store-update,
17082 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17083 Adjust.
17084 * config/rs6000/power8.md (power8-load, power8-load-update,
17085 power8-load-ext, power8-load-ext-update, power8-fpload,
17086 power8-fpload-update, power8-store, power8-store-update-indexed,
17087 power8-fpstore, power8-fpstore-update): Adjust.
17088 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17089 Adjust.
17090 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17091 titan_lsu_store, titan_lsu_fpstore): Adjust.
17092 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17093
17094 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17095
17096 PR target/60884
17097 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17098 unrolled byte insns. Emit address increments after move insns.
17099
17100 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17101
17102 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17103 const_gimple, rather than a gimple.
17104 (gimple_call_builtin_p): Likewise, for the three variants.
17105
17106 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17107 (gimple_call_builtin_p): Likewise, for the three variants.
17108
17109 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17110
17111 PR tree-optimization/61095
17112 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17113
17114 2014-05-07 Richard Biener <rguenther@suse.de>
17115
17116 PR tree-optimization/61034
17117 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17118 (maybe_skip_until): Use translate to take into account
17119 lattices when trying to do disambiguations.
17120 (get_continuation_for_phi_1): Likewise.
17121 (get_continuation_for_phi): Adjust for added translate arguments.
17122 (walk_non_aliased_vuses): Likewise.
17123 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17124 (walk_non_aliased_vuses): Likewise.
17125 (call_may_clobber_ref_p_1): Declare.
17126 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17127 calls. Stop early if we are only supposed to disambiguate.
17128 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17129
17130 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17131
17132 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17133 Emit an error when the function has arguments.
17134
17135 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17136
17137 * cfgloop.h (unswitch_loops): Remove.
17138 * doc/passes.texi: Remove references to loop-unswitch.c
17139 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17140
17141 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17142
17143 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17144 check for loads group of length 3.
17145 (vect_permute_load_chain): New permutations for loads group of
17146 length 3.
17147 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17148 of vec_perm_shuffle for the new permutations.
17149
17150 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17151
17152 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17153 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17154 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17155 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17156 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17157 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17158 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17159 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17160
17161 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17162
17163 * loop-unswitch.c: Delete.
17164
17165 2014-05-07 Richard Biener <rguenther@suse.de>
17166
17167 * config.gcc: Always set need_64bit_hwint to yes.
17168
17169 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17170
17171 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17172 of using optimize_size.
17173
17174 2014-05-06 Mike Stump <mikestump@comcast.net>
17175
17176 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17177
17178 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17179
17180 * config/i386/sse.md (*mov<mode>_internal)
17181 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17182 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17183 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17184 (*<code><mode>3, *andnot<mode>3<mask_name>)
17185 (<mask_codefor><code><mode>3<mask_name>): Only consider
17186 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17187
17188 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17189
17190 Revert:
17191 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17192
17193 * lra-constraints.c (valid_address_p): Move earlier in file.
17194 Add a constraint argument to the address_info version.
17195 (satisfies_memory_constraint_p): New function.
17196 (satisfies_address_constraint_p): Likewise.
17197 (process_alt_operands, curr_insn_transform): Use them.
17198 (process_address): Pass the constraint to valid_address_p when
17199 checking address operands.
17200
17201 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17202
17203 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17204 to their respective blocks. Fix inadvertent use of "node".
17205
17206 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17207
17208 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17209 out from...
17210 (init_emit_once): ...here.
17211 * rtl.h (init_derived_machine_modes): Declare.
17212 * toplev.c (do_compile): Call it even if no_backend.
17213
17214 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17215 Mike Stump <mikestump@comcast.net>
17216 Richard Sandiford <rdsandiford@googlemail.com>
17217 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17218
17219 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17220 (rtx_equal_for_memref_p): Update comment.
17221 (adjust_offset_for_component_ref): Use wide-int interfaces.
17222 * builtins.c (get_object_alignment_2): Likewise.
17223 (c_readstr): Likewise.
17224 (target_char_cast): Add comment.
17225 (determine_block_size): Use wide-int interfaces.
17226 (expand_builtin_signbit): Likewise.
17227 (fold_builtin_int_roundingfn): Likewise.
17228 (fold_builtin_bitop): Likewise.
17229 (fold_builtin_bswap): Likewise.
17230 (fold_builtin_logarithm): Use signop.
17231 (fold_builtin_pow): Likewise.
17232 (fold_builtin_memory_op): Use wide-int interfaces.
17233 (fold_builtin_object_size): Likewise.
17234 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17235 nb_iterations_estimate.
17236 (record_niter_bound): Use wide-int interfaces.
17237 (get_estimated_loop_iterations_int): Likewise.
17238 (get_estimated_loop_iterations): Likewise.
17239 (get_max_loop_iterations): Likewise.
17240 * cfgloop.h: Include wide-int.h.
17241 (struct nb_iter_bound): Change bound to widest_int.
17242 (struct loop): Change nb_iterations_upper_bound and
17243 nb_iterations_estimate to widest_int.
17244 (record_niter_bound): Switch to use widest_int.
17245 (get_estimated_loop_iterations): Likewise.
17246 (get_max_loop_iterations): Likewise.
17247 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17248 update for wide-int.
17249 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17250 * combine.c (try_combine): Likewise.
17251 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17252 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17253 interfaces.
17254 (aarch64_float_const_representable_p): Likewise.
17255 * config/arc/arc.c: Include wide-int.h.
17256 (arc_can_use_doloop_p): Use wide-int interfaces.
17257 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17258 (vfp3_const_double_index): Likewise.
17259 * config/avr/avr.c (avr_out_round): Likewise.
17260 (avr_fold_builtin): Likewise.
17261 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17262 (bfin_can_use_doloop_p): Likewise.
17263 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17264 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17265 * config/i386/i386.c: Include wide-int.h.
17266 (ix86_data_alignment): Use wide-int interfaces.
17267 (ix86_local_alignment): Likewise.
17268 (ix86_emit_swsqrtsf): Update real_from_integer.
17269 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17270 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17271 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17272 (zero_constant): Likewise.
17273 (input_operand): Likewise.
17274 (splat_input_operand): Likewise.
17275 (non_logical_cint_operand): Change const_double to const_wide_int.
17276 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17277 (easy_altivec_constant): Remove comment.
17278 (paired_expand_vector_init): Use CONSTANT_P.
17279 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17280 (rs6000_emit_move): Update checks.
17281 (rs6000_aggregate_candidate): Use wide-int interfaces.
17282 (rs6000_expand_ternop_builtin): Likewise.
17283 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17284 (rs6000_assemble_integer): Likewise.
17285 (rs6000_hash_constant): Likewise.
17286 (output_toc): Likewise.
17287 (rs6000_rtx_costs): Likewise.
17288 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17289 * config/rs6000/rs6000-c.c: Include wide-int.h.
17290 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17291 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17292 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17293 Handle CONST_WIDE_INT.
17294 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17295 Use tree_fits_uhwi_p.
17296 * config/sparc/sparc.c: Include wide-int.h.
17297 (sparc_fold_builtin): Use wide-int interfaces.
17298 * config/vax/vax.c: Include wide-int.h.
17299 (vax_float_literal): Use real_from_integer.
17300 * coretypes.h (struct hwivec_def): New.
17301 (hwivec): New.
17302 (const_hwivec): New.
17303 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17304 (equiv_constant): Handle CONST_WIDE_INT.
17305 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17306 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17307 * dbxout.c (stabstr_U): Use wide-int interfaces.
17308 (dbxout_type): Update to use cst_fits_shwi_p.
17309 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17310 (TARGET_SUPPORTS_WIDE_INT): Add default.
17311 * dfp.c: Include wide-int.h.
17312 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17313 decimal_real_to_integer.
17314 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17315 decimal_real_to_integer.
17316 * doc/generic.texi (Constant expressions): Update for wide_int.
17317 * doc/rtl.texi (const_double): Likewise.
17318 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17319 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17320 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17321 (REAL_VALUE_FROM_INT): Remove.
17322 (TARGET_SUPPORTS_WIDE_INT): New.
17323 * doc/tm.texi: Regenerate.
17324 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17325 * double-int.h: Include wide-int.h.
17326 (struct wi::int_traits): New.
17327 * dwarf2out.c (get_full_len): New.
17328 (dw_val_equal_p): Add case dw_val_class_wide_int.
17329 (size_of_loc_descr): Likewise.
17330 (output_loc_operands): Likewise.
17331 (insert_double): Remove.
17332 (insert_wide_int): New.
17333 (add_AT_wide): New.
17334 (print_die): Add case dw_val_class_wide_int.
17335 (attr_checksum): Likewise.
17336 (attr_checksum_ordered): Likewise.
17337 (same_dw_val_p): Likewise.
17338 (size_of_die): Likewise.
17339 (value_format): Likewise.
17340 (output_die): Likewise.
17341 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17342 Use wide-int.
17343 (clz_loc_descriptor): Use wide-int interfaces.
17344 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17345 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17346 (round_up_to_align): Use wide-int interfaces.
17347 (field_byte_offset): Likewise.
17348 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17349 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17350 CONST_DOUBLE handling. Use wide-int interfaces.
17351 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17352 (gen_enumeration_type_die): Use add_AT_wide.
17353 (hash_loc_operands): Add case dw_val_class_wide_int.
17354 (compare_loc_operands): Likewise.
17355 * dwarf2out.h: Include wide-int.h.
17356 (wide_int_ptr): New.
17357 (enum dw_val_class): Add dw_val_class_wide_int.
17358 (struct dw_val_struct): Add val_wide.
17359 * emit-rtl.c (const_wide_int_htab): New.
17360 (const_wide_int_htab_hash): New.
17361 (const_wide_int_htab_eq): New.
17362 (lookup_const_wide_int): New.
17363 (const_double_htab_hash): Use wide-int interfaces.
17364 (const_double_htab_eq): Likewise.
17365 (rtx_to_double_int): Conditionally compile for wide-int.
17366 (immed_double_int_const): Rename to immed_wide_int_const and
17367 update for wide-int.
17368 (immed_double_const): Conditionally compile for wide-int.
17369 (init_emit_once): Use wide-int interfaces.
17370 * explow.c (plus_constant): Likewise.
17371 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17372 (lshift_value): Use wide-int interfaces.
17373 (expand_mult): Likewise.
17374 (choose_multiplier): Likewise.
17375 (expand_smod_pow2): Likewise.
17376 (make_tree): Likewise.
17377 * expr.c (convert_modes): Consolidate handling of constants.
17378 Use wide-int interfaces.
17379 (emit_group_load_1): Add note.
17380 (store_expr): Update comment.
17381 (get_inner_reference): Use wide-int interfaces.
17382 (expand_constructor): Update comment.
17383 (expand_expr_real_2): Use wide-int interfaces.
17384 (expand_expr_real_1): Likewise.
17385 (reduce_to_bit_field_precision): Likewise.
17386 (const_vector_from_tree): Likewise.
17387 * final.c: Include wide-int-print.h.
17388 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17389 * fixed-value.c: Include wide-int.h.
17390 (fixed_from_string): Use wide-int interfaces.
17391 (fixed_to_decimal): Likewise.
17392 (fixed_convert_from_real): Likewise.
17393 (real_convert_from_fixed): Likewise.
17394 * fold-const.h (mem_ref_offset): Return an offset_int.
17395 (div_if_zero_remainder): Remove code parameter.
17396 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17397 Use wide-int interfaces.
17398 (may_negate_without_overflow_p): Use wide-int interfaces.
17399 (negate_expr_p): Likewise.
17400 (fold_negate_expr): Likewise.
17401 (int_const_binop_1): Likewise.
17402 (const_binop): Likewise.
17403 (fold_convert_const_int_from_int): Likewise.
17404 (fold_convert_const_int_from_real): Likewise.
17405 (fold_convert_const_int_from_fixed): Likewise.
17406 (fold_convert_const_fixed_from_int): Likewise.
17407 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17408 (sign_bit_p): Use wide-int interfaces.
17409 (make_range_step): Likewise.
17410 (build_range_check): Likewise. Pass an integer of the correct type
17411 instead of using integer_one_node.
17412 (range_predecessor): Pass an integer of the correct type instead
17413 of using integer_one_node.
17414 (range_successor): Likewise.
17415 (merge_ranges): Likewise.
17416 (unextend): Use wide-int interfaces.
17417 (extract_muldiv_1): Likewise.
17418 (fold_div_compare): Likewise.
17419 (fold_single_bit_test): Likewise.
17420 (fold_sign_changed_comparison): Likewise.
17421 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17422 (fold_plusminus_mult_expr): Use wide-int interfaces.
17423 (native_encode_int): Likewise.
17424 (native_interpret_int): Likewise.
17425 (fold_unary_loc): Likewise.
17426 (pointer_may_wrap_p): Likewise.
17427 (size_low_cst): Likewise.
17428 (mask_with_tz): Likewise.
17429 (fold_binary_loc): Likewise.
17430 (fold_ternary_loc): Likewise.
17431 (multiple_of_p): Likewise.
17432 (tree_call_nonnegative_warnv_p): Update calls to
17433 tree_int_cst_min_precision and real_from_integer.
17434 (fold_negate_const): Use wide-int interfaces.
17435 (fold_abs_const): Likewise.
17436 (fold_relational_const): Use tree_int_cst_lt.
17437 (round_up_loc): Use wide-int interfaces.
17438 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17439 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17440 * gengtype.c: Remove include of double-int.h.
17441 (do_typedef): Use wide-int interfaces.
17442 (open_base_files): Add wide-int.h.
17443 (main): Add offset_int and widest_int typedefs.
17444 * gengtype-lex.l: Handle "^".
17445 (CXX_KEYWORD): Add "static".
17446 * gengtype-parse.c (require3): New.
17447 (require_template_declaration): Handle constant template arguments
17448 and nested templates.
17449 * gengtype-state.c: Don't include "double-int.h".
17450 * genpreds.c (write_one_predicate_function): Update comment.
17451 (write_tm_constrs_h): Add check for hval and lval use in
17452 CONST_WIDE_INT.
17453 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17454 (add_to_sequence): Likewise.
17455 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17456 and const_double_operand.
17457 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17458 interfaces.
17459 * gimple-fold.c (get_base_constructor): Likewise.
17460 (fold_array_ctor_reference): Likewise.
17461 (fold_nonarray_ctor_reference): Likewise.
17462 (fold_const_aggregate_ref_1): Likewise.
17463 (gimple_val_nonnegative_real_p): Likewise.
17464 (gimple_fold_indirect_ref): Likewise.
17465 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17466 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17467 (struct slsr_cand_d): Change index to be widest_int.
17468 (struct incr_info_d): Change incr to be widest_int.
17469 (alloc_cand_and_find_basis): Use wide-int interfaces.
17470 (slsr_process_phi): Likewise.
17471 (backtrace_base_for_ref): Likewise. Return a widest_int.
17472 (restructure_reference): Take a widest_int instead of a double_int.
17473 (slsr_process_ref): Use wide-int interfaces.
17474 (create_mul_ssa_cand): Likewise.
17475 (create_mul_imm_cand): Likewise.
17476 (create_add_ssa_cand): Likewise.
17477 (create_add_imm_cand): Take a widest_int instead of a double_int.
17478 (slsr_process_add): Use wide-int interfaces.
17479 (slsr_process_cast): Likewise.
17480 (slsr_process_copy): Likewise.
17481 (dump_candidate): Likewise.
17482 (dump_incr_vec): Likewise.
17483 (replace_ref): Likewise.
17484 (cand_increment): Likewise. Return a widest_int.
17485 (cand_abs_increment): Likewise.
17486 (replace_mult_candidate): Take a widest_int instead of a double_int.
17487 (replace_unconditional_candidate): Use wide-int interfaces.
17488 (incr_vec_index): Take a widest_int instead of a double_int.
17489 (create_add_on_incoming_edge): Likewise.
17490 (create_phi_basis): Use wide-int interfaces.
17491 (replace_conditional_candidate): Likewise.
17492 (record_increment): Take a widest_int instead of a double_int.
17493 (record_phi_increments): Use wide-int interfaces.
17494 (phi_incr_cost): Take a widest_int instead of a double_int.
17495 (lowest_cost_path): Likewise.
17496 (total_savings): Likewise.
17497 (analyze_increments): Use wide-int interfaces.
17498 (ncd_with_phi): Take a widest_int instead of a double_int.
17499 (ncd_of_cand_and_phis): Likewise.
17500 (nearest_common_dominator_for_cands): Likewise.
17501 (insert_initializers): Use wide-int interfaces.
17502 (all_phi_incrs_profitable): Likewise.
17503 (replace_one_candidate): Likewise.
17504 (replace_profitable_candidates): Likewise.
17505 * godump.c: Include wide-int-print.h.
17506 (go_output_typedef): Use wide-int interfaces.
17507 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17508 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17509 (build_loop_iteration_domains): Likewise.
17510 * hooks.h: Include wide-int.h rather than double-int.h.
17511 (hook_bool_dint_dint_uint_bool_true): Delete.
17512 (hook_bool_wint_wint_uint_bool_true): Declare.
17513 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17514 (hook_bool_wint_wint_uint_bool_true): New.
17515 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17516 interfaces.
17517 (ubsan_expand_si_overflow_mul_check): Likewise.
17518 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17519 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17520 (get_ancestor_addr_info): Likewise.
17521 (ipa_modify_call_arguments): Likewise.
17522 * loop-doloop.c (doloop_modify): Likewise.
17523 (doloop_optimize): Likewise.
17524 * loop-iv.c (iv_number_of_iterations): Likewise.
17525 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17526 (unroll_loop_constant_iterations): Likewise.
17527 (decide_unroll_runtime_iterations): Likewise.
17528 (unroll_loop_runtime_iterations): Likewise.
17529 (decide_peel_simple): Likewise.
17530 (decide_unroll_stupid): Likewise.
17531 * lto-streamer-in.c (streamer_read_wi): Add.
17532 (input_cfg): Use wide-int interfaces.
17533 (lto_input_tree_1): Likewise.
17534 * lto-streamer-out.c (streamer_write_wi): Add.
17535 (hash_tree): Use wide-int interfaces.
17536 (output_cfg): Likewise.
17537 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17538 (GTFILES): Add wide-int.h and signop.h.
17539 (TAGS): Look for .cc files too.
17540 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17541 * optabs.c (expand_subword_shift): Likewise.
17542 (expand_doubleword_shift): Likewise.
17543 (expand_absneg_bit): Likewise.
17544 (expand_copysign_absneg): Likewise.
17545 (expand_copysign_bit): Likewise.
17546 * postreload.c (reload_cse_simplify_set): Likewise.
17547 * predict.c (predict_iv_comparison): Likewise.
17548 * pretty-print.h: Include wide-int-print.h.
17549 (pp_wide_int) New.
17550 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17551 * print-tree.c: Include wide-int-print.h.
17552 (print_node_brief): Use wide-int interfaces.
17553 (print_node): Likewise.
17554 * read-rtl.c (validate_const_wide_int): New.
17555 (read_rtx_code): Add CONST_WIDE_INT case.
17556 * real.c: Include wide-int.h.
17557 (real_to_integer2): Delete.
17558 (real_to_integer): New function, returning a wide_int.
17559 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17560 (ten_to_ptwo): Update call to real_from_integer.
17561 (real_digit): Likewise.
17562 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17563 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17564 (REAL_VALUE_TO_INT): Delete.
17565 (real_to_integer): Declare a wide-int form.
17566 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17567 * recog.c (const_int_operand): Improve comment.
17568 (const_scalar_int_operand): New.
17569 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17570 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17571 (split_double): Likewise.
17572 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17573 (rtx_size): Likewise.
17574 (rtx_alloc_stat_v): New.
17575 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17576 (cwi_output_hex): New.
17577 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17578 (cwi_check_failed_bounds): New.
17579 * rtl.def (CONST_WIDE_INT): New.
17580 * rtl.h: Include <utility> and wide-int.h.
17581 (struct hwivec_def): New.
17582 (CWI_GET_NUM_ELEM): New.
17583 (CWI_PUT_NUM_ELEM): New.
17584 (struct rtx_def): Add num_elem and hwiv.
17585 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17586 (CASE_CONST_UNIQUE): Likewise.
17587 (CASE_CONST_ANY): Likewise.
17588 (CONST_SCALAR_INT_P): Likewise.
17589 (CONST_WIDE_INT_P): New.
17590 (CWI_ELT): New.
17591 (HWIVEC_CHECK): New.
17592 (cwi_check_failed_bounds): New.
17593 (CWI_ELT): New.
17594 (HWIVEC_CHECK): New.
17595 (CONST_WIDE_INT_VEC) New.
17596 (CONST_WIDE_INT_NUNITS) New.
17597 (CONST_WIDE_INT_ELT) New.
17598 (rtx_mode_t): New type.
17599 (wi::int_traits <rtx_mode_t>): New.
17600 (wi::shwi): New.
17601 (wi::min_value): New.
17602 (wi::max_value): New.
17603 (rtx_alloc_v) New.
17604 (const_wide_int_alloc): New.
17605 (immed_wide_int_const): New.
17606 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17607 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17608 * signop.h: New file.
17609 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17610 (simplify_const_unary_operation): Use wide-int interfaces.
17611 (simplify_binary_operation_1): Likewise.
17612 (simplify_const_binary_operation): Likewise.
17613 (simplify_const_relational_operation): Likewise.
17614 (simplify_immed_subreg): Likewise.
17615 * stmt.c (expand_case): Likewise.
17616 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17617 signop rather than a bool.
17618 * stor-layout.c (layout_type): Use wide-int interfaces.
17619 (initialize_sizetypes): Update calls to
17620 set_min_and_max_values_for_integral_type.
17621 (set_min_and_max_values_for_integral_type): Take a signop rather
17622 than a bool. Use wide-int interfaces.
17623 (fixup_signed_type): Update accordingly. Remove
17624 HOST_BITS_PER_DOUBLE_INT limit.
17625 (fixup_unsigned_type): Likewise.
17626 * system.h (STATIC_CONSTANT_P): New.
17627 (STATIC_ASSERT): New.
17628 * target.def (can_use_doloop_p): Take widest_ints rather than
17629 double_ints.
17630 * target.h: Include wide-int.h rather than double-int.h.
17631 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17632 than double_ints.
17633 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17634 rather than INT_CST_LT_UNSIGNED.
17635 (can_use_doloop_if_innermost): Take widest_ints rather than
17636 double_ints.
17637 * tree-affine.c: Include wide-int-print.h.
17638 (double_int_ext_for_comb): Delete.
17639 (wide_int_ext_for_comb): New.
17640 (aff_combination_zero): Use wide-int interfaces.
17641 (aff_combination_const): Take a widest_int instead of a double_int.
17642 (aff_combination_elt): Use wide-int interfaces.
17643 (aff_combination_scale): Take a widest_int instead of a double_int.
17644 (aff_combination_add_elt): Likewise.
17645 (aff_combination_add_cst): Likewise.
17646 (aff_combination_add): Use wide-int interfaces.
17647 (aff_combination_convert): Likewise.
17648 (tree_to_aff_combination): Likewise.
17649 (add_elt_to_tree): Take a widest_int instead of a double_int.
17650 (aff_combination_to_tree): Use wide-int interfaces.
17651 (aff_combination_remove_elt): Likewise.
17652 (aff_combination_add_product): Take a widest_int instead of
17653 a double_int.
17654 (aff_combination_mult): Use wide-int interfaces.
17655 (aff_combination_expand): Likewise.
17656 (double_int_constant_multiple_p): Delete.
17657 (wide_int_constant_multiple_p): New.
17658 (aff_combination_constant_multiple_p): Take a widest_int pointer
17659 instead of a double_int pointer.
17660 (print_aff): Use wide-int interfaces.
17661 (get_inner_reference_aff): Take a widest_int pointer
17662 instead of a double_int pointer.
17663 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17664 * tree-affine.h: Include wide-int.h.
17665 (struct aff_comb_elt): Change type of coef to widest_int.
17666 (struct affine_tree_combination): Change type of offset to widest_int.
17667 (double_int_ext_for_comb): Delete.
17668 (wide_int_ext_for_comb): New.
17669 (aff_combination_const): Use widest_int instead of double_int.
17670 (aff_combination_scale): Likewise.
17671 (aff_combination_add_elt): Likewise.
17672 (aff_combination_constant_multiple_p): Likewise.
17673 (get_inner_reference_aff): Likewise.
17674 (aff_comb_cannot_overlap_p): Likewise.
17675 (aff_combination_zero_p): Use wide-int interfaces.
17676 * tree.c: Include tree.h.
17677 (init_ttree): Use make_int_cst.
17678 (tree_code_size): Removed code for INTEGER_CST case.
17679 (tree_size): Add INTEGER_CST case.
17680 (make_node_stat): Update comment.
17681 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17682 (build_int_cst_type): Use wide-int interfaces.
17683 (double_int_to_tree): Likewise.
17684 (double_int_fits_to_tree_p): Delete.
17685 (force_fit_type_double): Delete.
17686 (force_fit_type): New.
17687 (int_cst_hash_hash): Use wide-int interfaces.
17688 (int_cst_hash_eq): Likewise.
17689 (build_int_cst_wide): Delete.
17690 (wide_int_to_tree): New.
17691 (cache_integer_cst): Use wide-int interfaces.
17692 (build_low_bits_mask): Likewise.
17693 (cst_and_fits_in_hwi): Likewise.
17694 (real_value_from_int_cst): Likewise.
17695 (make_int_cst_stat): New.
17696 (integer_zerop): Use wide_int interfaces.
17697 (integer_onep): Likewise.
17698 (integer_all_onesp): Likewise.
17699 (integer_pow2p): Likewise.
17700 (integer_nonzerop): Likewise.
17701 (tree_log2): Likewise.
17702 (tree_floor_log2): Likewise.
17703 (tree_ctz): Likewise.
17704 (int_size_in_bytes): Likewise.
17705 (mem_ref_offset): Return an offset_int rather than a double_int.
17706 (build_type_attribute_qual_variant): Use wide_int interfaces.
17707 (type_hash_eq): Likewise
17708 (tree_int_cst_equal): Likewise.
17709 (tree_int_cst_lt): Delete.
17710 (tree_int_cst_compare): Likewise.
17711 (tree_fits_shwi_p): Use wide_int interfaces.
17712 (tree_fits_uhwi_p): Likewise.
17713 (tree_int_cst_sign_bit): Likewise.
17714 (tree_int_cst_sgn): Likewise.
17715 (tree_int_cst_min_precision): Take a signop rather than a bool.
17716 (simple_cst_equal): Use wide_int interfaces.
17717 (compare_tree_int): Likewise.
17718 (iterative_hash_expr): Likewise.
17719 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17720 INT_CST_LT.
17721 (get_type_static_bounds): Use wide_int interfaces.
17722 (tree_int_cst_elt_check_failed): New.
17723 (build_common_tree_nodes): Reordered to set prec before filling in
17724 value.
17725 (int_cst_value): Check cst_and_fits_in_hwi.
17726 (widest_int_cst_value): Use wide_int interfaces.
17727 (upper_bound_in_type): Likewise.
17728 (lower_bound_in_type): Likewise.
17729 (num_ending_zeros): Likewise.
17730 (drop_tree_overflow): Likewise.
17731 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17732 (gen_conditions_for_pow_cst_base): Likewise.
17733 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17734 (group_case_labels_stmt): Use wide-int interfaces.
17735 (verify_gimple_assign_binary): Likewise.
17736 (print_loop): Likewise.
17737 * tree-chrec.c (tree_fold_binomial): Likewise.
17738 * tree-core.h (struct tree_base): Add int_length.
17739 (struct tree_int_cst): Change rep of value.
17740 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17741 (dr_may_alias_p): Likewise.
17742 (max_stmt_executions_tree): Likewise.
17743 * tree.def (INTEGER_CST): Update comment.
17744 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17745 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17746 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17747 (dequeue_and_dump): Use wide-int interfaces.
17748 * tree.h: Include wide-int.h.
17749 (NULL_TREE): Moved to earlier loc in file.
17750 (TREE_INT_CST_ELT_CHECK): New.
17751 (tree_int_cst_elt_check_failed): New.
17752 (TYPE_SIGN): New.
17753 (TREE_INT_CST): Delete.
17754 (TREE_INT_CST_LOW): Use wide-int interfaces.
17755 (TREE_INT_CST_HIGH): Delete.
17756 (TREE_INT_CST_NUNITS): New.
17757 (TREE_INT_CST_EXT_NUNITS): Likewise.
17758 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17759 (TREE_INT_CST_ELT): Likewise.
17760 (INT_CST_LT): Delete.
17761 (tree_int_cst_elt_check): New (two forms).
17762 (type_code_size): Update comment.
17763 (make_int_cst_stat, make_int_cst): New.
17764 (tree_to_double_int): Delete.
17765 (double_int_fits_to_tree_p): Delete.
17766 (force_fit_type_double): Delete.
17767 (build_int_cstu): Replace with out-of-line function.
17768 (build_int_cst_wide): Delete.
17769 (tree_int_cst_lt): Define inline.
17770 (tree_int_cst_le): New.
17771 (tree_int_cst_compare): Define inline.
17772 (tree_int_cst_min_precision): Take a signop rather than a bool.
17773 (wi::int_traits <const_tree>): New.
17774 (wi::int_traits <tree>): New.
17775 (wi::extended_tree): New.
17776 (wi::int_traits <wi::extended_tree>): New.
17777 (wi::to_widest): New.
17778 (wi::to_offset): New.
17779 (wi::fits_to_tree_p): New.
17780 (wi::min_value): New.
17781 (wi::max_value): New.
17782 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17783 (copy_tree_body_r): Likewise.
17784 * tree-object-size.c (compute_object_offset): Likewise.
17785 (addr_object_size): Likewise.
17786 * tree-predcom.c: Include wide-int-print.h.
17787 (struct dref_d): Change type of offset to widest_int.
17788 (dump_dref): Call wide-int printer.
17789 (aff_combination_dr_offset): Use wide-int interfaces.
17790 (determine_offset): Take a widest_int pointer rather than a
17791 double_int pointer.
17792 (split_data_refs_to_components): Use wide-int interfaces.
17793 (suitable_component_p): Likewise.
17794 (order_drefs): Likewise.
17795 (add_ref_to_chain): Likewise.
17796 (valid_initializer_p): Likewise.
17797 (determine_roots_comp): Likewise.
17798 * tree-pretty-print.c: Include wide-int-print.h.
17799 (dump_generic_node): Use wide-int interfaces.
17800 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17801 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17802 (move_fixed_address_to_symbol): Likewise.
17803 (move_hint_to_base): Likewise.
17804 (move_pointer_to_base): Likewise.
17805 (move_variant_to_index): Likewise.
17806 (most_expensive_mult_to_index): Likewise.
17807 (addr_to_parts): Likewise.
17808 (copy_ref_info): Likewise.
17809 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17810 (indirect_refs_may_alias_p): Likewise.
17811 (stmt_kills_ref_p_1): Likewise.
17812 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17813 * tree-ssa-ccp.c: Update comment at top of file. Include
17814 wide-int-print.h.
17815 (struct prop_value_d): Change type of mask to widest_int.
17816 (extend_mask): New function.
17817 (dump_lattice_value): Use wide-int interfaces.
17818 (get_default_value): Likewise.
17819 (set_constant_value): Likewise.
17820 (set_value_varying): Likewise.
17821 (valid_lattice_transition): Likewise.
17822 (set_lattice_value): Likewise.
17823 (value_to_double_int): Delete.
17824 (value_to_wide_int): New.
17825 (get_value_from_alignment): Use wide-int interfaces.
17826 (get_value_for_expr): Likewise.
17827 (do_dbg_cnt): Likewise.
17828 (ccp_finalize): Likewise.
17829 (ccp_lattice_meet): Likewise.
17830 (bit_value_unop_1): Use widest_ints rather than double_ints.
17831 (bit_value_binop_1): Likewise.
17832 (bit_value_unop): Use wide-int interfaces.
17833 (bit_value_binop): Likewise.
17834 (bit_value_assume_aligned): Likewise.
17835 (evaluate_stmt): Likewise.
17836 (ccp_fold_stmt): Likewise.
17837 (visit_cond_stmt): Likewise.
17838 (ccp_visit_stmt): Likewise.
17839 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17840 (constant_pointer_difference): Likewise.
17841 (associate_pointerplus): Likewise.
17842 (combine_conversions): Likewise.
17843 * tree-ssa-loop.h: Include wide-int.h.
17844 (struct tree_niter_desc): Change type of max to widest_int.
17845 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17846 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17847 (remove_redundant_iv_tests): Likewise.
17848 (canonicalize_loop_induction_variables): Likewise.
17849 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17850 (constant_multiple_of): Take a widest_int pointer instead of
17851 a double_int pointer.
17852 (get_computation_aff): Use wide-int interfaces.
17853 (ptr_difference_cost): Likewise.
17854 (difference_cost): Likewise.
17855 (get_loop_invariant_expr_id): Likewise.
17856 (get_computation_cost_at): Likewise.
17857 (iv_elimination_compare_lt): Likewise.
17858 (may_eliminate_iv): Likewise.
17859 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17860 instead of double_int.
17861 (max_loop_iterations): Likewise.
17862 (max_stmt_executions): Likewise.
17863 (estimated_stmt_executions): Likewise.
17864 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17865 (split_to_var_and_offset): Use wide-int interfaces.
17866 (determine_value_range): Likewise.
17867 (bound_difference_of_offsetted_base): Likewise.
17868 (bounds_add): Take a widest_int instead of a double_int.
17869 (number_of_iterations_ne_max): Use wide-int interfaces.
17870 (number_of_iterations_ne): Likewise.
17871 (number_of_iterations_lt_to_ne): Likewise.
17872 (assert_loop_rolls_lt): Likewise.
17873 (number_of_iterations_lt): Likewise.
17874 (number_of_iterations_le): Likewise.
17875 (number_of_iterations_cond): Likewise.
17876 (number_of_iterations_exit): Likewise.
17877 (finite_loop_p): Likewise.
17878 (derive_constant_upper_bound_assign): Likewise.
17879 (derive_constant_upper_bound): Return a widest_int.
17880 (derive_constant_upper_bound_ops): Likewise.
17881 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17882 (record_estimate): Take a widest_int rather than a double_int.
17883 (record_nonwrapping_iv): Use wide-int interfaces.
17884 (double_int_cmp): Delete.
17885 (wide_int_cmp): New.
17886 (bound_index): Take a widest_int rather than a double_int.
17887 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17888 (maybe_lower_iteration_bound): Likewise.
17889 (estimate_numbers_of_iterations_loop): Likewise.
17890 (estimated_loop_iterations): Take a widest_int pointer than than
17891 a double_int pointer.
17892 (estimated_loop_iterations_int): Use wide-int interfaces.
17893 (max_loop_iterations): Take a widest_int pointer than than
17894 a double_int pointer.
17895 (max_loop_iterations_int): Use wide-int interfaces.
17896 (max_stmt_executions): Take a widest_int pointer than than
17897 a double_int pointer.
17898 (estimated_stmt_executions): Likewise.
17899 (n_of_executions_at_most): Use wide-int interfaces.
17900 (scev_probably_wraps_p): Likewise.
17901 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17902 to real_to_integer.
17903 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17904 interfaces.
17905 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17906 double_ints. Adjust for trailing_wide_ints <3> representation.
17907 (set_nonzero_bits): Likewise.
17908 (get_range_info): Return wide_ints rather than double_ints.
17909 Adjust for trailing_wide_ints <3> representation.
17910 (get_nonzero_bits): Likewise.
17911 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17912 representation.
17913 * tree-ssanames.h (struct range_info_def): Replace min, max and
17914 nonzero_bits with a trailing_wide_ints <3>.
17915 (set_range_info): Use wide_int_refs rather than double_ints.
17916 (set_nonzero_bits): Likewise.
17917 (get_range_info): Return wide_ints rather than double_ints.
17918 (get_nonzero_bits): Likewise.
17919 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17920 * tree-ssa-pre.c (phi_translate_1): Likewise.
17921 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17922 (acceptable_pow_call): Likewise.
17923 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17924 interfaces.
17925 (vn_reference_fold_indirect): Likewise.
17926 (vn_reference_maybe_forwprop_address): Likewise.
17927 (valueize_refs_1): Likewise.
17928 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17929 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17930 tree_int_cst_lt and tree_int_cst_le.
17931 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17932 interfaces.
17933 (streamer_alloc_tree): Likewise.
17934 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17935 (streamer_write_tree_header): Likewise.
17936 (streamer_write_integer_cst): Likewise.
17937 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17938 (build_constructors): Likewise.
17939 (array_value_type): Likewise.
17940 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17941 (vect_check_gather): Likewise.
17942 * tree-vect-generic.c (build_replicated_const): Likewise.
17943 (expand_vector_divmod): Likewise.
17944 * tree-vect-loop.c (vect_transform_loop): Likewise.
17945 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17946 (vect_do_peeling_for_alignment): Likewise.
17947 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17948 * tree-vrp.c: Include wide-int.h.
17949 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17950 (extract_range_from_assert): Use wide-int interfaces.
17951 (vrp_int_const_binop): Likewise.
17952 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17953 double_int pointers.
17954 (ranges_from_anti_range): Use wide-int interfaces.
17955 (quad_int_cmp): Delete.
17956 (quad_int_pair_sort): Likewise.
17957 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17958 (extract_range_from_unary_expr_1): Likewise.
17959 (adjust_range_with_scev): Likewise.
17960 (masked_increment): Take and return wide_ints rather than double_ints.
17961 (register_edge_assert_for_2): Use wide-int interfaces.
17962 (check_array_ref): Likewise.
17963 (search_for_addr_array): Likewise.
17964 (maybe_set_nonzero_bits): Likewise.
17965 (union_ranges): Pass an integer of the correct type instead of
17966 using integer_one_node.
17967 (intersect_ranges): Likewise.
17968 (simplify_truth_ops_using_ranges): Likewise.
17969 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17970 (range_fits_type_p): Likewise.
17971 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17972 a bool.
17973 (simplify_conversion_using_ranges): Use wide-int interfaces.
17974 (simplify_float_conversion_using_ranges): Likewise.
17975 (vrp_finalize): Likewise.
17976 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17977 (gimple_stringops_transform): Likewise.
17978 * varasm.c (decode_addr_const): Likewise.
17979 (const_hash_1): Likewise.
17980 (const_rtx_hash_1): Likewise
17981 (output_constant): Likewise.
17982 (array_size_for_constructor): Likewise.
17983 (output_constructor_regular_field): Likewise.
17984 (output_constructor_bitfield): Likewise.
17985 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17986 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17987 GENERATOR_FILEs.
17988 * gencheck.c: Define BITS_PER_UNIT.
17989 * wide-int.cc: New.
17990 * wide-int.h: New.
17991 * wide-int-print.cc: New.
17992 * wide-int-print.h: New.
17993
17994 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17995
17996 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17997
17998 2014-05-06 Richard Biener <rguenther@suse.de>
17999
18000 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18001 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18002 (TODO_verify_all): Adjust.
18003 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18004 TODO_verify_stmts and TODO_verify_rtl_sharing.
18005 * bb-reorder.c: Likewise.
18006 * cfgexpand.c: Likewise.
18007 * cprop.c: Likewise.
18008 * cse.c: Likewise.
18009 * function.c: Likewise.
18010 * fwprop.c: Likewise.
18011 * gcse.c: Likewise.
18012 * gimple-ssa-isolate-paths.c: Likewise.
18013 * gimple-ssa-strength-reduction.c: Likewise.
18014 * ipa-split.c: Likewise.
18015 * loop-init.c: Likewise.
18016 * loop-unroll.c: Likewise.
18017 * lower-subreg.c: Likewise.
18018 * modulo-sched.c: Likewise.
18019 * postreload-gcse.c: Likewise.
18020 * predict.c: Likewise.
18021 * recog.c: Likewise.
18022 * sched-rgn.c: Likewise.
18023 * store-motion.c: Likewise.
18024 * tracer.c: Likewise.
18025 * trans-mem.c: Likewise.
18026 * tree-call-cdce.c: Likewise.
18027 * tree-cfg.c: Likewise.
18028 * tree-cfgcleanup.c: Likewise.
18029 * tree-complex.c: Likewise.
18030 * tree-eh.c: Likewise.
18031 * tree-emutls.c: Likewise.
18032 * tree-if-conv.c: Likewise.
18033 * tree-into-ssa.c: Likewise.
18034 * tree-loop-distribution.c: Likewise.
18035 * tree-object-size.c: Likewise.
18036 * tree-parloops.c: Likewise.
18037 * tree-pass.h: Likewise.
18038 * tree-sra.c: Likewise.
18039 * tree-ssa-ccp.c: Likewise.
18040 * tree-ssa-copy.c: Likewise.
18041 * tree-ssa-copyrename.c: Likewise.
18042 * tree-ssa-dce.c: Likewise.
18043 * tree-ssa-dom.c: Likewise.
18044 * tree-ssa-dse.c: Likewise.
18045 * tree-ssa-forwprop.c: Likewise.
18046 * tree-ssa-ifcombine.c: Likewise.
18047 * tree-ssa-loop-ch.c: Likewise.
18048 * tree-ssa-loop-ivcanon.c: Likewise.
18049 * tree-ssa-loop.c: Likewise.
18050 * tree-ssa-math-opts.c: Likewise.
18051 * tree-ssa-phiopt.c: Likewise.
18052 * tree-ssa-phiprop.c: Likewise.
18053 * tree-ssa-pre.c: Likewise.
18054 * tree-ssa-reassoc.c: Likewise.
18055 * tree-ssa-sink.c: Likewise.
18056 * tree-ssa-strlen.c: Likewise.
18057 * tree-ssa-tail-merge.c: Likewise.
18058 * tree-ssa-uncprop.c: Likewise.
18059 * tree-switch-conversion.c: Likewise.
18060 * tree-tailcall.c: Likewise.
18061 * tree-vect-generic.c: Likewise.
18062 * tree-vectorizer.c: Likewise.
18063 * tree-vrp.c: Likewise.
18064 * tsan.c: Likewise.
18065 * var-tracking.c: Likewise.
18066 * bt-load.c: Likewise.
18067 * cfgcleanup.c: Likewise.
18068 * combine-stack-adj.c: Likewise.
18069 * combine.c: Likewise.
18070 * compare-elim.c: Likewise.
18071 * config/epiphany/resolve-sw-modes.c: Likewise.
18072 * config/i386/i386.c: Likewise.
18073 * config/mips/mips.c: Likewise.
18074 * config/s390/s390.c: Likewise.
18075 * config/sh/sh_treg_combine.cc: Likewise.
18076 * config/sparc/sparc.c: Likewise.
18077 * dce.c: Likewise.
18078 * dse.c: Likewise.
18079 * final.c: Likewise.
18080 * ifcvt.c: Likewise.
18081 * mode-switching.c: Likewise.
18082 * passes.c: Likewise.
18083 * postreload.c: Likewise.
18084 * ree.c: Likewise.
18085 * reg-stack.c: Likewise.
18086 * regcprop.c: Likewise.
18087 * regrename.c: Likewise.
18088 * web.c: Likewise.
18089
18090 2014-05-06 Richard Biener <rguenther@suse.de>
18091
18092 PR middle-end/61070
18093 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18094 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18095
18096 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18097
18098 PR ipa/60965
18099 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18100
18101 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18102 Tom de Vries <tom@codesourcery.com>
18103
18104 * target.def (call_fusage_contains_non_callee_clobbers): New
18105 DEFHOOKPOD.
18106 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18107 Hooks to @menu.
18108 (@node Miscellaneous Register Hooks): New node.
18109 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18110 * doc/tm.texi: Regenerate.
18111
18112 2014-05-05 Marek Polacek <polacek@redhat.com>
18113
18114 PR driver/61065
18115 * opts.c (common_handle_option): Call error_at instead of warning_at.
18116
18117 2014-05-05 Richard Biener <rguenther@suse.de>
18118
18119 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18120 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18121 under the TODO_verify_il umbrella.
18122
18123 2014-05-05 Richard Biener <rguenther@suse.de>
18124
18125 * passes.c (execute_function_todo): Move TODO_verify_flow under
18126 the TODO_verify_ul umbrella.
18127
18128 2014-05-05 Richard Biener <rguenther@suse.de>
18129
18130 PR middle-end/61010
18131 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18132 X & CST away from a CST that is the mask of a mode.
18133
18134 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18135
18136 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18137 int argument to enum machine_mode.
18138 (picochip_class_max_nregs): Ditto.
18139 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18140 (picochip_class_max_nregs): Ditto.
18141
18142 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18143
18144 * target.def: Add new target hook.
18145 * doc/tm.texi: Regenerate.
18146 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18147 * targhooks.c (default_keep_leaf_when_profiled): New function.
18148
18149 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18150 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18151
18152 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18153
18154 PR tree-optimization/60363
18155 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18156 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18157 (update_destination_phis): New parameter.
18158 (create_edge_and_update_destination_phis): Ditto.
18159 (ssa_fix_duplicate_block_edges): Pass new arguments.
18160 (thread_single_edge): Ditto.
18161
18162 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18163
18164 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18165 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18166 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18167 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18168 Use RS6000_BTM_HARD_FLOAT.
18169 (BU_MISC_2): Likewise.
18170 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18171 RS6000_BTM_HARD_FLOAT.
18172 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18173 is explicitly used.
18174 (rs6000_invalid_builtin): Add hard floating builtin support.
18175 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18176 hard float builtins.
18177 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18178
18179 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18180
18181 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18182 Add missing function* argument.
18183
18184 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18185
18186 * lra-constraints.c (valid_address_p): Move earlier in file.
18187 Add a constraint argument to the address_info version.
18188 (satisfies_memory_constraint_p): New function.
18189 (satisfies_address_constraint_p): Likewise.
18190 (process_alt_operands, curr_insn_transform): Use them.
18191 (process_address): Pass the constraint to valid_address_p when
18192 checking address operands.
18193
18194 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18195
18196 * config/mips/mips.c (mips_isa_rev): New variable.
18197 (mips_set_architecture): Set it.
18198 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18199 from mips_isa_rev.
18200 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18201 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18202 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18203 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18204 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18205 conditions in terms of mips_isa_rev.
18206 (mips_isa_rev): Declare.
18207
18208 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18209
18210 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18211 (prob_unlikely, prob_likely): Make variables const.
18212
18213 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18214
18215 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18216
18217 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18218
18219 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18220
18221 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18222
18223 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18224 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18225 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18226 functions.
18227 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18228 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18229 sh_pass_in_reg_p.
18230 Replace usage of ROUND_REG with sh_round_reg.
18231 Use CEIL instead of ROUND_ADVANCE.
18232
18233 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18234
18235 PR target/61026
18236 * config/sh/sh.c: Include stdlib headers before everything else.
18237
18238 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18239
18240 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18241 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18242 (gimplify_adjust_omp_clauses): Simd region is never
18243 directly nested in combined parallel. Instead, for linear
18244 with copyin/copyout, if in combined for simd loop, make decl
18245 firstprivate/lastprivate on OMP_FOR.
18246 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18247 expand_omp_for_static_chunk): When setting endvar, also set
18248 fd->loop.v to the same value.
18249
18250 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18251
18252 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18253
18254 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18255
18256 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18257 expression.
18258
18259 2014-05-02 Marek Polacek <polacek@redhat.com>
18260
18261 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18262
18263 2014-05-02 Kito Cheng <kito@0xlab.org>
18264
18265 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18266 to a C expression marco.
18267 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18268 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18269 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18270 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18271 HONOR_REG_ALLOC_ORDER.
18272 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18273
18274 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18275
18276 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18277
18278 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18279
18280 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18281
18282 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18283
18284 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18285 (convert_scalar_cond_reduction): Likewise.
18286 (predicate_scalar_phi): Add recognition and transformation
18287 of simple conditioanl reduction to be vectorizable.
18288
18289 2014-05-01 Marek Polacek <polacek@redhat.com>
18290
18291 PR c/43245
18292 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18293
18294 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18295
18296 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18297 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18298 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18299 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18300 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18301 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18302 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18303 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18304
18305 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18306
18307 * config/arc/arc.opt (mlra): Move comment above option name
18308 to avoid mis-parsing as language options.
18309
18310 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18311
18312 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18313 * config/sol2.h: ... here.
18314 * config/sol2-10.h: Remove.
18315
18316 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18317 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18318 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18319 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18320 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18321 * config/sol2.h: ... here.
18322 (SECTION_NAME_FORMAT): Don't redefine.
18323 (STARTFILE_ARCH32_SPEC): Rename to ...
18324 (STARTFILE_ARCH_SPEC): ... this.
18325 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18326 * config/sparc/sol2.h: ... here.
18327 (SECTION_NAME_FORMAT): Don't undef.
18328 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18329 (SUBTARGET_EXTRA_SPECS): Remove.
18330 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18331
18332 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18333 (MD_STARTFILE_PREFIX): Remove.
18334 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18335 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18336 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18337 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18338 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18339 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18340 * config/i386/sol2.h: ... here.
18341 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18342 * config/i386/sol2-bi.h: Remove.
18343 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18344 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18345
18346 * config/i386/t-sol2-64: Rename to ...
18347 * config/i386/t-sol2: ... this.
18348 * config/sparc/t-sol2-64: Rename to ...
18349 * config/sparc/t-sol2: ... this.
18350
18351 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18352 sol2_tm_file_head, sol2_tm_file_tail.
18353 Include ${cpu_type}/sol2.h before sol2.h.
18354 Remove sol2-10.h.
18355 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18356 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18357 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18358 Reflect i386/t-sol2-64 renaming.
18359 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18360 Reflect sparc/t-sol2-64 renaming.
18361
18362 2014-04-30 Richard Biener <rguenther@suse.de>
18363
18364 * passes.c (execute_function_todo): Move TODO_verify_stmts
18365 and TODO_verify_ssa under the TODO_verify_il umbrella.
18366 * tree-ssa.h (verify_ssa): Adjust prototype.
18367 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18368 we should verify SSA operands.
18369 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18370 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18371 whether we should verify whether not throwing stmts have EH info.
18372 * graphite-scop-detection.c (create_sese_edges): Adjust.
18373 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18374 * tree-eh.c (lower_try_finally_switch): Do not add the
18375 default case label twice.
18376
18377 2014-04-30 Marek Polacek <polacek@redhat.com>
18378
18379 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18380 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18381 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18382 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18383
18384 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18385
18386 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18387 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18388 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18389 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18390 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18391 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18392 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18393 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18394
18395 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18396
18397 * tree-cfg.c (dump_function_to_file): Dump the return type of
18398 functions, in a line to itself before the function body, mimicking
18399 the layout of a C function.
18400
18401 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18402
18403 PR tree-optimization/60971
18404 * tree-tailcall.c (process_assignment): Reject conversions which
18405 reduce precision.
18406
18407 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18408
18409 * calls.c (initialize_argument_information): Always treat
18410 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18411 (expand_call): Likewise.
18412 (emit_library_call_calue_1): Likewise.
18413 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18414 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18415 code accordingly.
18416
18417 2014-04-29 Nick Clifton <nickc@redhat.com>
18418
18419 * config/msp430/msp430.md (umulsidi): Fix typo.
18420 (mulhisi3): Enable even inside interrupt handlers.
18421 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18422 bigger return address pushed in large mode.
18423
18424 2014-04-29 Nick Clifton <nickc@redhat.com>
18425
18426 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18427 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18428 available modes.
18429 * config/m32r/m32r.c (init_reg_tables): Likewise.
18430 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18431 enum to hold the modes.
18432
18433 2014-04-29 Richard Biener <rguenther@suse.de>
18434
18435 * dominance.c (free_dominance_info): Add overload with
18436 function parameter.
18437 (dom_info_state): Likewise.
18438 (dom_info_available_p): Likewise.
18439 * basic-block.h (free_dominance_info, dom_info_state,
18440 dom_info_available_p): Declare overloads.
18441 * passes.c (execute_function_todo): Verify that verifiers
18442 don't change dominator info state. Drop dominator info
18443 for IPA pass invocations.
18444 * cgraph.c (release_function_body): Restore asserts that
18445 dominator information is released.
18446
18447 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18448
18449 * doc/invoke.texi: Fix typo.
18450 * tree-vrp.c: Fix typos.
18451 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18452
18453 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18454
18455 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18456
18457 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18458
18459 * config/aarch64/aarch64-builtins.c
18460 (aarch64_types_storestruct_lane_qualifiers): New.
18461 (TYPES_STORESTRUCT_LANE): Likewise.
18462 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18463 (st3_lane): Likewise.
18464 (st4_lane): Likewise.
18465 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18466 (vec_store_lanesci_lane<mode>): Likewise.
18467 (vec_store_lanesxi_lane<mode>): Likewise.
18468 (aarch64_st2_lane<VQ:mode>): Likewise.
18469 (aarch64_st3_lane<VQ:mode>): Likewise.
18470 (aarch64_st4_lane<VQ:mode>): Likewise.
18471 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18472 * config/aarch64/arm_neon.h
18473 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18474 use new macro arguments.
18475 (__ST3_LANE_FUNC): Likewise.
18476 (__ST4_LANE_FUNC): Likewise.
18477 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18478 (V_THREE_ELEM): Likewise.
18479 (V_FOUR_ELEM): Likewise.
18480
18481 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18482
18483 * doc/gimple.texi: Replace the description of the now-defunct
18484 union gimple_statement_d with a diagram showing the
18485 gimple_statement_base class hierarchy and its relationships to
18486 the GSS_ and GIMPLE_ enums.
18487
18488 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18489
18490 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18491 * config/aarch64/aarch64.c
18492 (aarch64_cannot_change_mode_class): Weaken conditions.
18493 (aarch64_modes_tieable_p): New.
18494 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18495
18496 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18497
18498 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18499 (loadsync_<mode>): Change mode.
18500 (load_quadpti, store_quadpti): New.
18501 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18502 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18503
18504 2014-04-28 Martin Jambor <mjambor@suse.cz>
18505
18506 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18507 same alias type as the original statement.
18508 (subreplacement_assignment_data): New type.
18509 (handle_unscalarized_data_in_subtree): New type of parameter,
18510 generate new memory accesses with same alias type as the original
18511 statement.
18512 (load_assign_lhs_subreplacements): Likewise.
18513 (sra_modify_constructor_assign): Generate new memory accesses with
18514 same alias type as the original statement.
18515
18516 2014-04-28 Richard Biener <rguenther@suse.de>
18517
18518 * tree-pass.h (TODO_verify_il): Define.
18519 (TODO_verify_all): Complete properly.
18520 * passes.c (execute_function_todo): Move existing loop-closed
18521 SSA verification under TODO_verify_il.
18522 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18523 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18524 Fix tree sharing issue.
18525
18526 2014-04-28 Richard Biener <rguenther@suse.de>
18527
18528 PR middle-end/60092
18529 * builtins.def (DEF_C11_BUILTIN): Add.
18530 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18531 * coretypes.h (enum function_class): Add function_c11_misc.
18532 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18533 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18534 (call_may_clobber_ref_p_1): Likewise.
18535 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18536 (mark_all_reaching_defs_necessary_1): Likewise.
18537 (propagate_necessity): Likewise.
18538 (eliminate_unnecessary_stmts): Likewise.
18539 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18540
18541 2014-04-28 Richard Biener <rguenther@suse.de>
18542
18543 * tree-vrp.c (vrp_var_may_overflow): Remove.
18544 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18545 with overflow immediately bump to one before that value and
18546 let iteration figure out overflow status.
18547
18548 2014-04-28 Richard Biener <rguenther@suse.de>
18549
18550 * configure.ac: Do valgrind header checks unconditionally.
18551 Add --enable-valgrind-annotations.
18552 * system.h: Guard valgrind header inclusion with
18553 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18554 * alloc-pool.c (pool_alloc, pool_free): Use
18555 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18556 to guard possibly dead code.
18557 * config.in: Regenerated.
18558 * configure: Likewise.
18559
18560 2014-04-28 Jeff Law <law@redhat.com>
18561
18562 PR tree-optimization/60902
18563 * tree-ssa-threadedge.c
18564 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18565 over real defs when invalidating outputs from statements that do not
18566 produce useful outputs for threading.
18567
18568 2014-04-28 Richard Biener <rguenther@suse.de>
18569
18570 PR tree-optimization/60979
18571 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18572 SCOPs that end in a block with a successor with abnormal
18573 predecessors.
18574
18575 2014-04-28 Richard Biener <rguenther@suse.de>
18576
18577 * tree-pass.h (execute_pass_list): Adjust prototype.
18578 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18579 (do_per_function): Change callback signature, push all actual
18580 work to the callbals.
18581 (do_per_function_toporder): Likewise.
18582 (execute_function_dump): Adjust.
18583 (execute_function_todo): Likewise.
18584 (clear_last_verified): Likewise.
18585 (verify_curr_properties): Likewise.
18586 (update_properties_after_pass): Likewise.
18587 (execute_pass_list_1): Split out from ...
18588 (execute_pass_list): ... here. Adjust.
18589 (execute_ipa_pass_list): Likewise.
18590 * cgraphunit.c (cgraph_add_new_function): Adjust.
18591 (analyze_function): Likewise.
18592 (expand_function): Likewise.
18593 * cgraph.c (release_function_body): Free dominance info
18594 here instead of asserting it was magically freed elsewhere.
18595
18596 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18597
18598 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18599 * configure: Regenerate.
18600 * config/sparc/sparc.opt (muser-mode): New option.
18601 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18602 for LEON3.
18603 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18604 * doc/invoke.texi (SPARC options): Document -muser-mode.
18605
18606 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18607
18608 * cselib.c (find_slot_memmode): Delete.
18609 (cselib_hasher): Change compare_type to a struct.
18610 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18611 constants.
18612 (preserve_constants_and_equivs): Adjust for new compare_type.
18613 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18614 (wrap_constant): Delete.
18615 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18616
18617 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18618
18619 * doc/install.texi (Building with profile feedback): Remove
18620 outdated sentence.
18621
18622 2014-04-26 Tom de Vries <tom@codesourcery.com>
18623
18624 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18625 array accesses.
18626
18627 2014-04-25 Cary Coutant <ccoutant@google.com>
18628
18629 PR debug/60929
18630 * dwarf2out.c (should_move_die_to_comdat): A type definition
18631 can contain a subprogram definition, but don't move it to a
18632 comdat unit.
18633 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18634 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18635 from original DIE.
18636 (clone_tree_hash): Rename to...
18637 (clone_tree_partial): ...this; change callers. Copy
18638 DW_TAG_subprogram DIEs as declarations.
18639 (copy_decls_walk): Don't copy children of a declaration into a
18640 type unit.
18641
18642 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18643
18644 PR target/60969
18645 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18646 alternative 12.
18647
18648 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18649
18650 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18651 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18652 reg for long_call.
18653 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18654 restriction.
18655
18656 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18657
18658 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18659
18660 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18661
18662 PR tree-optimization/60930
18663 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18664 creating a multiply candidate by folding two constant
18665 multiplicands when the result overflows.
18666
18667 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18668
18669 PR tree-optimization/60960
18670 * tree-vect-generic.c (expand_vector_operation): Only call
18671 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18672
18673 2014-04-25 Tom de Vries <tom@codesourcery.com>
18674
18675 * expr.c (clobber_reg_mode): New function.
18676 * expr.h (clobber_reg): New function.
18677
18678 2014-04-25 Tom de Vries <tom@codesourcery.com>
18679
18680 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18681 clobbers.
18682
18683 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18684 Tom de Vries <tom@codesourcery.com>
18685
18686 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18687 handle.
18688 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18689 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18690 new argument to find_all_hard_reg_sets call.
18691
18692 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18693
18694 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18695 Use HOST_WIDE_INT_C for mask literal.
18696 (aarch_rev16_shleft_mask_imm_p): Likewise.
18697
18698 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18699
18700 PR target/60941
18701 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18702
18703 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18704
18705 PR preprocessor/56540
18706 * config/i386/i386-c.c (ix86_target_macros): Define
18707 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18708
18709 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18710
18711 * configure.ac (tga_func): Remove.
18712 (LIB_TLS_SPEC): Remove.
18713 * configure: Regenerate.
18714 * config.in: Regenerate.
18715 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18716
18717 2014-04-25 Richard Biener <rguenther@suse.de>
18718
18719 PR ipa/60912
18720 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18721 call stmt use/clobber sets during stmt walk instead of
18722 walking the possibly incomplete set of caller edges.
18723
18724 2014-04-25 Richard Biener <rguenther@suse.de>
18725
18726 PR ipa/60911
18727 * passes.c (apply_ipa_transforms): Inline into only caller ...
18728 (execute_one_pass): ... here. Properly bring in function
18729 bodies for nodes we want to apply IPA transforms to.
18730
18731 2014-04-24 Cong Hou <congh@google.com>
18732
18733 PR tree-optimization/60896
18734 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18735 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18736 (vect_mark_pattern_stmts): Set the def type of all statements in
18737 PATTERN_DEF_SEQ as vect_internal_def.
18738
18739 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18740
18741 * doc/extend.texi (PowerPC Built-in Functions): Document new
18742 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18743 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18744
18745 * config/rs6000/predicates.md (const_0_to_3_operand): New
18746 predicate to match 0..3 integer constants.
18747
18748 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18749 to support adding miscellaneous builtin functions.
18750 (BU_DFP_MISC_2): Likewise.
18751 (BU_P7_MISC_1): Likewise.
18752 (BU_P7_MISC_2): Likewise.
18753 (BU_P8V_MISC_3): Likewise.
18754 (BU_MISC_1): Likewise.
18755 (BU_MISC_2): Likewise.
18756 (DIVWE): Add extended divide builtin functions.
18757 (DIVWEO): Likewise.
18758 (DIVWEU): Likewise.
18759 (DIVWEUO): Likewise.
18760 (DIVDE): Likewise.
18761 (DIVDEO): Likewise.
18762 (DIVDEU): Likewise.
18763 (DIVDEUO): Likewise.
18764 (DXEX): Add decimal floating-point builtin functions.
18765 (DXEXQ): Likewise.
18766 (DDEDPD): Likewise.
18767 (DDEDPDQ): Likewise.
18768 (DENBCD): Likewise.
18769 (DENBCDQ): Likewise.
18770 (DIEX): Likewise.
18771 (DIEXQ): Likewise.
18772 (DSCLI): Likewise.
18773 (DSCLIQ): Likewise.
18774 (DSCRI): Likewise.
18775 (DSCRIQ): Likewise.
18776 (CDTBCD): Add new BCD builtin functions.
18777 (CBCDTD): Likewise.
18778 (ADDG6S): Likewise.
18779 (BCDADD): Likewise.
18780 (BCDADD_LT): Likewise.
18781 (BCDADD_EQ): Likewise.
18782 (BCDADD_GT): Likewise.
18783 (BCDADD_OV): Likewise.
18784 (BCDSUB): Likewise.
18785 (BCDSUB_LT): Likewise.
18786 (BCDSUB_EQ): Likewise.
18787 (BCDSUB_GT): Likewise.
18788 (BCDSUB_OV): Likewise.
18789 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18790 (UNPACK_TD): Likewise.
18791 (PACK_TF): Likewise.
18792 (UNPACK_TF): Likewise.
18793 (UNPACK_TF_0): Likewise.
18794 (UNPACK_TF_1): Likewise.
18795 (PACK_V1TI): Likewise.
18796 (UNPACK_V1TI): Likewise.
18797
18798 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18799 support for decimal floating point builtin functions.
18800 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18801 functions that take constant arguments.
18802 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18803 (rs6000_init_builtins): Setup long double, _Decimal64, and
18804 _Decimal128 types for new builtin functions.
18805 (builtin_function_type): Set the unsigned flags appropriately for
18806 the new builtin functions.
18807 (rs6000_opt_masks): Add support for decimal floating point builtin
18808 functions.
18809
18810 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18811 floating point builtin functions.
18812 (RS6000_BTM_COMMON): Likewise.
18813 (RS6000_BTI_long_double): Likewise.
18814 (RS6000_BTI_dfloat64): Likewise.
18815 (RS6000_BTI_dfloat128): Likewise.
18816 (long_double_type_internal_node): Likewise.
18817 (dfloat64_type_internal_node): Likewise.
18818 (dfloat128_type_internal_node): Likewise.
18819
18820 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18821 2.07 bcd arithmetic instructions.
18822 (UNSPEC_BCDSUB): Likewise.
18823 (UNSPEC_BCD_OVERFLOW): Likewise.
18824 (UNSPEC_BCD_ADD_SUB): Likewise.
18825 (bcd_add_sub): Likewise.
18826 (BCD_TEST): Likewise.
18827 (bcd<bcd_add_sub>): Likewise.
18828 (bcd<bcd_add_sub>_test): Likewise.
18829 (bcd<bcd_add_sub>_test2): Likewise.
18830 (bcd<bcd_add_sub>_<code>): Likewise.
18831 (peephole2 for combined bcd ops): Likewise.
18832
18833 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18834 decimal floating point builtin functions.
18835 (UNSPEC_DENBCD): Likewise.
18836 (UNSPEC_DXEX): Likewise.
18837 (UNSPEC_DIEX): Likewise.
18838 (UNSPEC_DSCLI): Likewise.
18839 (UNSPEC_DSCRI): Likewise.
18840 (D64_D128): Likewise.
18841 (dfp_suffix): Likewise.
18842 (dfp_ddedpd_<mode>): Likewise.
18843 (dfp_denbcd_<mode>): Likewise.
18844 (dfp_dxex_<mode>): Likewise.
18845 (dfp_diex_<mode>): Likewise.
18846 (dfp_dscli_<mode>): Likewise.
18847 (dfp_dscri_<mode>): Likewise.
18848
18849 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18850 builtin functions.
18851 (UNSPEC_CDTBCD): Likewise.
18852 (UNSPEC_CBCDTD): Likewise.
18853 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18854 (UNSPEC_DIVEO): Likewise.
18855 (UNSPEC_DIVEU): Likewise.
18856 (UNSPEC_DIVEUO): Likewise.
18857 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18858 pack/unpack 128-bit types.
18859 (UNSPEC_PACK_128BIT): Likewise.
18860 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18861 (udiv<mode>3): Use idiv_ldiv mode attribute.
18862 (div<mode>3): Likewise.
18863 (addg6s): Add new BCD builtin functions.
18864 (cdtbcd): Likewise.
18865 (cbcdtd): Likewise.
18866 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18867 (div_extend): Likewise.
18868 (div<div_extend>_<mode>"): Likewise.
18869 (FP128_64): Add support for new builtin functions to pack/unpack
18870 128-bit types.
18871 (unpack<mode>): Likewise.
18872 (unpacktf_0): Likewise.
18873 (unpacktf_1): Likewise.
18874 (unpack<mode>_dm): Likewise.
18875 (unpack<mode>_nodm): Likewise.
18876 (pack<mode>): Likewise.
18877 (unpackv1ti): Likewise.
18878 (packv1ti): Likewise.
18879
18880 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18881
18882 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18883 is disabled.
18884
18885 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18886
18887 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18888 * gimplify.c (omp_is_private): Change last argument's type to int.
18889 Only diagnose lastprivate if the simd argument is 1, only diagnose
18890 linear if the simd argument is 2.
18891 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18892 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18893 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18894 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18895 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18896 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18897 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18898 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18899 * tree-nested.c (convert_nonlocal_omp_clauses,
18900 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18901
18902 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18903
18904 PR target/60822
18905 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18906 operand 1.
18907
18908 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18909
18910 * flag-types.h (enum ivar_visibility): Add.
18911
18912 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18913
18914 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18915 function * argument.
18916
18917 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18918
18919 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18920
18921 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18922 Tom de Vries <tom@codesourcery.com>
18923
18924 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18925 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18926 reg-note.
18927 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18928 * emit-rtl.c (try_split): Same.
18929
18930 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18931 Tom de Vries <tom@codesourcery.com>
18932
18933 * common.opt (fuse-caller-save): New option.
18934
18935 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18936
18937 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18938 elements for big-endian.
18939
18940 2014-04-24 Richard Biener <rguenther@suse.de>
18941
18942 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18943 during TER and instead use the sepops interface for expanding
18944 non-GIMPLE_SINGLE_RHS.
18945
18946 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18947
18948 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18949 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18950
18951 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18952
18953 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18954 assembler 64-bit option.
18955 * configure: Regenerate.
18956
18957 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18958
18959 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18960 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18961 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18962 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18963 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18964
18965 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18966
18967 * config/aarch64/aarch64-builtins.c
18968 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18969 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18970 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18971 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18972 builtins.
18973 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18974 (Vrevsuff): New mode attribute.
18975
18976 2014-04-24 Terry Guo <terry.guo@arm.com>
18977
18978 * config/arm/arm.h (machine_function): Define variable
18979 after_arm_reorg here.
18980 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18981 (arm_split_constant): Update the way to access variable
18982 after_arm_reorg.
18983 (arm_reorg): Ditto.
18984 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18985
18986 2014-04-23 Tom de Vries <tom@codesourcery.com>
18987
18988 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18989
18990 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18991
18992 * is-a.h: Update comments to reflect the following changes to the
18993 "pointerness" of the API, making the template parameter match the
18994 return type, allowing use of is-a.h with typedefs of pointers.
18995 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18996 that the return type matches the parameter to the is_a_helper.
18997 (as_a): Likewise.
18998 (dyn_cast): Likewise.
18999
19000 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19001 pointer from the is-a.h API.
19002
19003 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19004 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19005 is-a.h API.
19006 (is_a_helper <varpool_node>::test): Likewise, convert to...
19007 (is_a_helper <varpool_node *>::test): ...this.
19008
19009 (varpool_first_variable): Update for removal of implicit pointer
19010 from the is-a.h API.
19011 (varpool_next_variable): Likewise.
19012 (varpool_first_static_initializer): Likewise.
19013 (varpool_next_static_initializer): Likewise.
19014 (varpool_first_defined_variable): Likewise.
19015 (varpool_next_defined_variable): Likewise.
19016 (cgraph_first_defined_function): Likewise.
19017 (cgraph_next_defined_function): Likewise.
19018 (cgraph_first_function): Likewise.
19019 (cgraph_next_function): Likewise.
19020 (cgraph_first_function_with_gimple_body): Likewise.
19021 (cgraph_next_function_with_gimple_body): Likewise.
19022 (cgraph_alias_target): Likewise.
19023 (varpool_alias_target): Likewise.
19024 (cgraph_function_or_thunk_node): Likewise.
19025 (varpool_variable_node): Likewise.
19026 (symtab_real_symbol_p): Likewise.
19027 * cgraphunit.c (referred_to_p): Likewise.
19028 (analyze_functions): Likewise.
19029 (handle_alias_pairs): Likewise.
19030 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19031 * gimple-ssa.h (gimple_vuse_op): Likewise.
19032 (gimple_vdef_op): Likewise.
19033 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19034 * gimple.c (gimple_build_asm_1): Likewise.
19035 (gimple_build_try): Likewise.
19036 (gimple_build_resx): Likewise.
19037 (gimple_build_eh_dispatch): Likewise.
19038 (gimple_build_omp_for): Likewise.
19039 (gimple_omp_for_set_clauses): Likewise.
19040
19041 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19042 (is_a_helper <gimple_statement_asm *>::test): ...this.
19043 (is_a_helper <gimple_statement_bind>::test): Convert to...
19044 (is_a_helper <gimple_statement_bind *>::test): ...this.
19045 (is_a_helper <gimple_statement_call>::test): Convert to...
19046 (is_a_helper <gimple_statement_call *>::test): ...this.
19047 (is_a_helper <gimple_statement_catch>::test): Convert to...
19048 (is_a_helper <gimple_statement_catch *>::test): ...this.
19049 (is_a_helper <gimple_statement_resx>::test): Convert to...
19050 (is_a_helper <gimple_statement_resx *>::test): ...this.
19051 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19052 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19053 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19054 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19055 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19056 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19057 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19058 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19059 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19060 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19061 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19062 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19063 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19064 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19065 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19066 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19067 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19068 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19069 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19070 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19071 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19072 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19073 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19074 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19075 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19076 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19077 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19078 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19079 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19080 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19081 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19082 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19083 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19084 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19085 (is_a_helper <gimple_statement_phi>::test): Convert to...
19086 (is_a_helper <gimple_statement_phi *>::test): ...this.
19087 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19088 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19089 (is_a_helper <gimple_statement_try>::test): Convert to...
19090 (is_a_helper <gimple_statement_try *>::test): ...this.
19091 (is_a_helper <gimple_statement_wce>::test): Convert to...
19092 (is_a_helper <gimple_statement_wce *>::test): ...this.
19093 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19094 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19095 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19096 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19097 (is_a_helper <const gimple_statement_call>::test): Convert to...
19098 (is_a_helper <const gimple_statement_call *>::test): ...this.
19099 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19100 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19101 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19102 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19103 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19104 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19105 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19106 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19107 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19108 Convert to...
19109 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19110 ...this.
19111 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19112 Convert to...
19113 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19114 ...this.
19115 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19116 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19117 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19118 to...
19119 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19120 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19121 to...
19122 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19123 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19124 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19125 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19126 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19127 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19128 to...
19129 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19130 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19131 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19132 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19133 to...
19134 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19135 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19136 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19137 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19138 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19139 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19140 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19141 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19142 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19143 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19144 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19145 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19146 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19147 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19148 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19149 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19150 to...
19151 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19152 ...this.
19153 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19154 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19155
19156 (gimple_use_ops): Update for removal of implicit pointer from the
19157 is-a.h API.
19158 (gimple_set_use_ops): Likewise.
19159 (gimple_vuse): Likewise.
19160 (gimple_vdef): Likewise.
19161 (gimple_vuse_ptr): Likewise.
19162 (gimple_vdef_ptr): Likewise.
19163 (gimple_set_vuse): Likewise.
19164 (gimple_set_vdef): Likewise.
19165 (gimple_omp_return_set_lhs): Likewise.
19166 (gimple_omp_return_lhs): Likewise.
19167 (gimple_omp_return_lhs_ptr): Likewise.
19168 (gimple_call_fntype): Likewise.
19169 (gimple_call_set_fntype): Likewise.
19170 (gimple_call_set_internal_fn): Likewise.
19171 (gimple_call_use_set): Likewise.
19172 (gimple_call_clobber_set): Likewise.
19173 (gimple_bind_vars): Likewise.
19174 (gimple_bind_set_vars): Likewise.
19175 (gimple_bind_body_ptr): Likewise.
19176 (gimple_bind_set_body): Likewise.
19177 (gimple_bind_add_stmt): Likewise.
19178 (gimple_bind_block): Likewise.
19179 (gimple_bind_set_block): Likewise.
19180 (gimple_asm_ninputs): Likewise.
19181 (gimple_asm_noutputs): Likewise.
19182 (gimple_asm_nclobbers): Likewise.
19183 (gimple_asm_nlabels): Likewise.
19184 (gimple_asm_input_op): Likewise.
19185 (gimple_asm_input_op_ptr): Likewise.
19186 (gimple_asm_output_op): Likewise.
19187 (gimple_asm_output_op_ptr): Likewise.
19188 (gimple_asm_set_output_op): Likewise.
19189 (gimple_asm_clobber_op): Likewise.
19190 (gimple_asm_set_clobber_op): Likewise.
19191 (gimple_asm_label_op): Likewise.
19192 (gimple_asm_set_label_op): Likewise.
19193 (gimple_asm_string): Likewise.
19194 (gimple_catch_types): Likewise.
19195 (gimple_catch_types_ptr): Likewise.
19196 (gimple_catch_handler_ptr): Likewise.
19197 (gimple_catch_set_types): Likewise.
19198 (gimple_catch_set_handler): Likewise.
19199 (gimple_eh_filter_types): Likewise.
19200 (gimple_eh_filter_types_ptr): Likewise.
19201 (gimple_eh_filter_failure_ptr): Likewise.
19202 (gimple_eh_filter_set_types): Likewise.
19203 (gimple_eh_filter_set_failure): Likewise.
19204 (gimple_eh_must_not_throw_fndecl): Likewise.
19205 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19206 (gimple_eh_else_n_body_ptr): Likewise.
19207 (gimple_eh_else_e_body_ptr): Likewise.
19208 (gimple_eh_else_set_n_body): Likewise.
19209 (gimple_eh_else_set_e_body): Likewise.
19210 (gimple_try_eval_ptr): Likewise.
19211 (gimple_try_cleanup_ptr): Likewise.
19212 (gimple_try_set_eval): Likewise.
19213 (gimple_try_set_cleanup): Likewise.
19214 (gimple_wce_cleanup_ptr): Likewise.
19215 (gimple_wce_set_cleanup): Likewise.
19216 (gimple_phi_capacity): Likewise.
19217 (gimple_phi_num_args): Likewise.
19218 (gimple_phi_result): Likewise.
19219 (gimple_phi_result_ptr): Likewise.
19220 (gimple_phi_set_result): Likewise.
19221 (gimple_phi_arg): Likewise.
19222 (gimple_phi_set_arg): Likewise.
19223 (gimple_resx_region): Likewise.
19224 (gimple_resx_set_region): Likewise.
19225 (gimple_eh_dispatch_region): Likewise.
19226 (gimple_eh_dispatch_set_region): Likewise.
19227 (gimple_omp_critical_name): Likewise.
19228 (gimple_omp_critical_name_ptr): Likewise.
19229 (gimple_omp_critical_set_name): Likewise.
19230 (gimple_omp_for_clauses): Likewise.
19231 (gimple_omp_for_clauses_ptr): Likewise.
19232 (gimple_omp_for_set_clauses): Likewise.
19233 (gimple_omp_for_collapse): Likewise.
19234 (gimple_omp_for_index): Likewise.
19235 (gimple_omp_for_index_ptr): Likewise.
19236 (gimple_omp_for_set_index): Likewise.
19237 (gimple_omp_for_initial): Likewise.
19238 (gimple_omp_for_initial_ptr): Likewise.
19239 (gimple_omp_for_set_initial): Likewise.
19240 (gimple_omp_for_final): Likewise.
19241 (gimple_omp_for_final_ptr): Likewise.
19242 (gimple_omp_for_set_final): Likewise.
19243 (gimple_omp_for_incr): Likewise.
19244 (gimple_omp_for_incr_ptr): Likewise.
19245 (gimple_omp_for_set_incr): Likewise.
19246 (gimple_omp_for_pre_body_ptr): Likewise.
19247 (gimple_omp_for_set_pre_body): Likewise.
19248 (gimple_omp_parallel_clauses): Likewise.
19249 (gimple_omp_parallel_clauses_ptr): Likewise.
19250 (gimple_omp_parallel_set_clauses): Likewise.
19251 (gimple_omp_parallel_child_fn): Likewise.
19252 (gimple_omp_parallel_child_fn_ptr): Likewise.
19253 (gimple_omp_parallel_set_child_fn): Likewise.
19254 (gimple_omp_parallel_data_arg): Likewise.
19255 (gimple_omp_parallel_data_arg_ptr): Likewise.
19256 (gimple_omp_parallel_set_data_arg): Likewise.
19257 (gimple_omp_task_clauses): Likewise.
19258 (gimple_omp_task_clauses_ptr): Likewise.
19259 (gimple_omp_task_set_clauses): Likewise.
19260 (gimple_omp_task_child_fn): Likewise.
19261 (gimple_omp_task_child_fn_ptr): Likewise.
19262 (gimple_omp_task_set_child_fn): Likewise.
19263 (gimple_omp_task_data_arg): Likewise.
19264 (gimple_omp_task_data_arg_ptr): Likewise.
19265 (gimple_omp_task_set_data_arg): Likewise.
19266 (gimple_omp_taskreg_clauses): Likewise.
19267 (gimple_omp_taskreg_clauses_ptr): Likewise.
19268 (gimple_omp_taskreg_set_clauses): Likewise.
19269 (gimple_omp_taskreg_child_fn): Likewise.
19270 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19271 (gimple_omp_taskreg_set_child_fn): Likewise.
19272 (gimple_omp_taskreg_data_arg): Likewise.
19273 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19274 (gimple_omp_taskreg_set_data_arg): Likewise.
19275 (gimple_omp_task_copy_fn): Likewise.
19276 (gimple_omp_task_copy_fn_ptr): Likewise.
19277 (gimple_omp_task_set_copy_fn): Likewise.
19278 (gimple_omp_task_arg_size): Likewise.
19279 (gimple_omp_task_arg_size_ptr): Likewise.
19280 (gimple_omp_task_set_arg_size): Likewise.
19281 (gimple_omp_task_arg_align): Likewise.
19282 (gimple_omp_task_arg_align_ptr): Likewise.
19283 (gimple_omp_task_set_arg_align): Likewise.
19284 (gimple_omp_single_clauses): Likewise.
19285 (gimple_omp_single_clauses_ptr): Likewise.
19286 (gimple_omp_single_set_clauses): Likewise.
19287 (gimple_omp_target_clauses): Likewise.
19288 (gimple_omp_target_clauses_ptr): Likewise.
19289 (gimple_omp_target_set_clauses): Likewise.
19290 (gimple_omp_target_child_fn): Likewise.
19291 (gimple_omp_target_child_fn_ptr): Likewise.
19292 (gimple_omp_target_set_child_fn): Likewise.
19293 (gimple_omp_target_data_arg): Likewise.
19294 (gimple_omp_target_data_arg_ptr): Likewise.
19295 (gimple_omp_target_set_data_arg): Likewise.
19296 (gimple_omp_teams_clauses): Likewise.
19297 (gimple_omp_teams_clauses_ptr): Likewise.
19298 (gimple_omp_teams_set_clauses): Likewise.
19299 (gimple_omp_sections_clauses): Likewise.
19300 (gimple_omp_sections_clauses_ptr): Likewise.
19301 (gimple_omp_sections_set_clauses): Likewise.
19302 (gimple_omp_sections_control): Likewise.
19303 (gimple_omp_sections_control_ptr): Likewise.
19304 (gimple_omp_sections_set_control): Likewise.
19305 (gimple_omp_for_set_cond): Likewise.
19306 (gimple_omp_for_cond): Likewise.
19307 (gimple_omp_atomic_store_set_val): Likewise.
19308 (gimple_omp_atomic_store_val): Likewise.
19309 (gimple_omp_atomic_store_val_ptr): Likewise.
19310 (gimple_omp_atomic_load_set_lhs): Likewise.
19311 (gimple_omp_atomic_load_lhs): Likewise.
19312 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19313 (gimple_omp_atomic_load_set_rhs): Likewise.
19314 (gimple_omp_atomic_load_rhs): Likewise.
19315 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19316 (gimple_omp_continue_control_def): Likewise.
19317 (gimple_omp_continue_control_def_ptr): Likewise.
19318 (gimple_omp_continue_set_control_def): Likewise.
19319 (gimple_omp_continue_control_use): Likewise.
19320 (gimple_omp_continue_control_use_ptr): Likewise.
19321 (gimple_omp_continue_set_control_use): Likewise.
19322 (gimple_transaction_body_ptr): Likewise.
19323 (gimple_transaction_label): Likewise.
19324 (gimple_transaction_label_ptr): Likewise.
19325 (gimple_transaction_set_body): Likewise.
19326 (gimple_transaction_set_label): Likewise.
19327
19328 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19329 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19330 * ipa-ref.c (ipa_record_reference): Likewise.
19331 * ipa-reference.c (analyze_function): Likewise.
19332 (ipa_reference_write_optimization_summary): Likewise.
19333 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19334 (address_taken_from_non_vtable_p): Likewise.
19335 (comdat_can_be_unshared_p_1): Likewise.
19336 * lto-cgraph.c (lto_output_ref): Likewise.
19337 (add_references): Likewise.
19338 (compute_ltrans_boundary): Likewise.
19339 (output_symtab): Likewise.
19340 (input_ref): Likewise.
19341 (input_cgraph_1): Likewise.
19342 (output_cgraph_opt_summary): Likewise.
19343 * lto-streamer-out.c (lto_output): Likewise.
19344 (output_symbol_p): Likewise.
19345 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19346 (lsei_start_function_in_partition): Likewise.
19347 (lsei_next_variable_in_partition): Likewise.
19348 (lsei_start_variable_in_partition): Likewise.
19349 * symtab.c (insert_to_assembler_name_hash): Likewise.
19350 (unlink_from_assembler_name_hash): Likewise.
19351 (symtab_unregister_node): Likewise.
19352 (symtab_remove_node): Likewise.
19353 (dump_symtab_node): Likewise.
19354 (verify_symtab_base): Likewise.
19355 (verify_symtab_node): Likewise.
19356 (symtab_make_decl_local): Likewise.
19357 (symtab_alias_ultimate_target): Likewise.
19358 (symtab_resolve_alias): Likewise.
19359 (symtab_get_symbol_partitioning_class): Likewise.
19360 * tree-phinodes.c (allocate_phi_node): Likewise.
19361 (reserve_phi_args_for_new_edge): Likewise.
19362 (remove_phi_args): Likewise.
19363 * varpool.c (varpool_node_for_asm): Likewise.
19364 (varpool_remove_unreferenced_decls): Likewise.
19365
19366 2014-04-23 Jeff Law <law@redhat.com>
19367
19368 PR tree-optimization/60902
19369 * tree-ssa-threadedge.c
19370 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19371 invalidate outputs from statements that do not produce useful
19372 outputs for threading.
19373
19374 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19375
19376 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19377 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19378 machine descriptions for Stack Smashing Protector.
19379
19380 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19381
19382 * aarch64.md (<optab>_rol<mode>3): New pattern.
19383 (<optab>_rolsi3_uxtw): Likewise.
19384 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19385
19386 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19387
19388 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19389 (arm_cortex_a12_tune): Likewise.
19390
19391 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19392
19393 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19394
19395 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19396
19397 * config/arm/arm.md (arm_rev16si2): New pattern.
19398 (arm_rev16si2_alt): Likewise.
19399 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19400
19401 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19402
19403 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19404 (rev16<mode>2_alt): Likewise.
19405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19406 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19407 (aarch_rev16_shleft_mask_imm_p): Likewise.
19408 (aarch_rev16_p_1): Likewise.
19409 (aarch_rev16_p): Likewise.
19410 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19411 (aarch_rev16_shright_mask_imm_p): Likewise.
19412 (aarch_rev16_shleft_mask_imm_p): Likewise.
19413
19414 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19415
19416 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19417 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19418 rev cost.
19419 (cortex_a53_extra_costs): Likewise.
19420 (cortex_a57_extra_costs): Likewise.
19421 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19422 (cortexa7_extra_costs): Likewise.
19423 (cortexa8_extra_costs): Likewise.
19424 (cortexa12_extra_costs): Likewise.
19425 (cortexa15_extra_costs): Likewise.
19426 (v7m_extra_costs): Likewise.
19427 (arm_new_rtx_costs): Handle BSWAP.
19428
19429 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19430
19431 * config/arm/arm.c (cortexa8_extra_costs): New table.
19432 (arm_cortex_a8_tune): New tuning struct.
19433 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19434
19435 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19436
19437 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19438
19439 2014-04-23 Richard Biener <rguenther@suse.de>
19440
19441 * Makefile.in (OBJS): Remove loop-unswitch.o.
19442 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19443 * passes.def (pass_rtl_unswitch): Likewise.
19444 * loop-init.c (gate_rtl_unswitch): Likewise.
19445 (rtl_unswitch): Likewise.
19446 (pass_data_rtl_unswitch): Likewise.
19447 (pass_rtl_unswitch): Likewise.
19448 (make_pass_rtl_unswitch): Likewise.
19449 * rtl.h (reversed_condition): Likewise.
19450 (compare_and_jump_seq): Likewise.
19451 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19452 and make static.
19453 * loop-unroll.c (compare_and_jump_seq): Likewise.
19454
19455 2014-04-23 Richard Biener <rguenther@suse.de>
19456
19457 PR tree-optimization/60903
19458 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19459 commented code block.
19460 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19461 loop flags to newly created BBs and edges.
19462
19463 2014-04-23 Nick Clifton <nickc@redhat.com>
19464
19465 * config/msp430/msp430.c (msp430_handle_option): Move function
19466 to msp430-common.c
19467 (msp430_option_override): Simplify mcu and mcpu option handling.
19468 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19469 support for -mhwmult command line option.
19470 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19471 -mhwmult command line option.
19472 (msp430_hwmult_enabled): Delete.
19473 (msp43o_output_labelref): Add support for -mhwmult command line option.
19474 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19475 (umulsidi3): Likewise.
19476 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19477 (mcpu, mlarge, msmall): Likewise.
19478 (mhwmult): New option.
19479 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19480 prototype.
19481 (msp430_is_f5_mcu): Remove prototype.
19482 (msp430_use_f5_series_hwmult): Add prototype.
19483 * config/msp430/msp430-opts.h: New file.
19484 * common/config/msp430: New directory.
19485 * common/config/msp430/msp430-common.c: New file.
19486 * config.gcc (msp430): Remove target_has_targetm_common.
19487 * doc/invoke.texi: Document -mhwmult command line option.
19488
19489 2014-04-23 Nick Clifton <nickc@redhat.com>
19490
19491 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19492 default-manifest.o if it can be found in the search path.
19493 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19494
19495 2014-04-23 Terry Guo <terry.guo@arm.com>
19496
19497 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19498
19499 2014-04-23 Richard Biener <rguenther@suse.de>
19500
19501 PR middle-end/60895
19502 * tree-inline.c (declare_return_variable): Use mark_addressable.
19503
19504 2014-04-23 Richard Biener <rguenther@suse.de>
19505
19506 PR middle-end/60891
19507 * loop-init.c (loop_optimizer_init): Make sure to apply
19508 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19509
19510 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19511
19512 PR sanitizer/60275
19513 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19514 New options.
19515 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19516 if flag_sanitize_undefined_trap_on_error.
19517 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19518 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19519 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19520 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19521 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19522 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19523 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19524 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19525 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19526 * ubsan.c (ubsan_instrument_unreachable): Return
19527 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19528 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19529 if flag_sanitize_undefined_trap_on_error and
19530 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19531 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19532 instrument_bool_enum_load): Emit __builtin_trap () if
19533 flag_sanitize_undefined_trap_on_error and
19534 __builtin_handle_*_abort () if !flag_sanitize_recover.
19535 * doc/invoke.texi (-fsanitize-recover,
19536 -fsanitize-undefined-trap-on-error): Document.
19537
19538 2014-04-22 Christian Bruel <christian.bruel@st.com>
19539
19540 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19541 Force immediates to SImode.
19542
19543 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19544
19545 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19546 (lroundsfsi2): New.
19547 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19548 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19549 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19550 (nios2_fpu_insn): Add entry for round.
19551 (N2FPU_NO_ERRNO_P): Define.
19552 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19553 flag_errno_math.
19554 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19555
19556 2014-04-22 Richard Henderson <rth@redhat.com>
19557
19558 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19559 (add<GPI>3_compare0): Remove leading * from name.
19560 (add<GPI>3_carryin): Likewise.
19561 (sub<GPI>3_compare0): Likewise.
19562 (sub<GPI>3_carryin): Likewise.
19563 (<su_optab>mulditi3): New expander.
19564 (multi3): New expander.
19565 (madd<GPI>): Remove leading * from name.
19566
19567 2014-04-22 Martin Jambor <mjambor@suse.cz>
19568
19569 * cgraphclones.c (cgraph_function_versioning): Copy
19570 ipa_transforms_to_apply instead of asserting it is empty.
19571
19572 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19573
19574 PR target/60868
19575 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19576 on count_exp to get mode.
19577
19578 2014-04-22 Andrew Pinski <apinski@cavium.com>
19579
19580 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19581 Handle TLS for ILP32.
19582 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19583 (tlsie_small_<mode>): this and handle PTR.
19584 (tlsie_small_sidi): New pattern.
19585 (tlsle_small): Change to an expand to handle ILP32.
19586 (tlsle_small_<mode>): New pattern.
19587 (tlsdesc_small): Rename to ...
19588 (tlsdesc_small_<mode>): this and handle PTR.
19589
19590 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19591
19592 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19593
19594 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19595
19596 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19597 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19598 (aarch64_types_signed_poly_qualifiers): Likewise.
19599 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19600 (aarch64_types_poly_signed_qualifiers): Likewise.
19601 (TYPES_REINTERP_SS): Type macro added.
19602 (TYPES_REINTERP_SU): Likewise.
19603 (TYPES_REINTERP_SP): Likewise.
19604 (TYPES_REINTERP_US): Likewise.
19605 (TYPES_REINTERP_PS): Likewise.
19606 (aarch64_fold_builtin): New expression folding added.
19607 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19608 Declarations removed.
19609 (REINTERP_SS): Declarations added.
19610 (REINTERP_US): Likewise.
19611 (REINTERP_PS): Likewise.
19612 (REINTERP_SU): Likewise.
19613 (REINTERP_SP): Likewise.
19614 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19615 (vreinterpretq_p8_f64): Likewise.
19616 (vreinterpret_p16_f64): Likewise.
19617 (vreinterpretq_p16_f64): Likewise.
19618 (vreinterpret_f32_f64): Likewise.
19619 (vreinterpretq_f32_f64): Likewise.
19620 (vreinterpret_f64_f32): Likewise.
19621 (vreinterpret_f64_p8): Likewise.
19622 (vreinterpret_f64_p16): Likewise.
19623 (vreinterpret_f64_s8): Likewise.
19624 (vreinterpret_f64_s16): Likewise.
19625 (vreinterpret_f64_s32): Likewise.
19626 (vreinterpret_f64_s64): Likewise.
19627 (vreinterpret_f64_u8): Likewise.
19628 (vreinterpret_f64_u16): Likewise.
19629 (vreinterpret_f64_u32): Likewise.
19630 (vreinterpret_f64_u64): Likewise.
19631 (vreinterpretq_f64_f32): Likewise.
19632 (vreinterpretq_f64_p8): Likewise.
19633 (vreinterpretq_f64_p16): Likewise.
19634 (vreinterpretq_f64_s8): Likewise.
19635 (vreinterpretq_f64_s16): Likewise.
19636 (vreinterpretq_f64_s32): Likewise.
19637 (vreinterpretq_f64_s64): Likewise.
19638 (vreinterpretq_f64_u8): Likewise.
19639 (vreinterpretq_f64_u16): Likewise.
19640 (vreinterpretq_f64_u32): Likewise.
19641 (vreinterpretq_f64_u64): Likewise.
19642 (vreinterpret_s64_f64): Likewise.
19643 (vreinterpretq_s64_f64): Likewise.
19644 (vreinterpret_u64_f64): Likewise.
19645 (vreinterpretq_u64_f64): Likewise.
19646 (vreinterpret_s8_f64): Likewise.
19647 (vreinterpretq_s8_f64): Likewise.
19648 (vreinterpret_s16_f64): Likewise.
19649 (vreinterpretq_s16_f64): Likewise.
19650 (vreinterpret_s32_f64): Likewise.
19651 (vreinterpretq_s32_f64): Likewise.
19652 (vreinterpret_u8_f64): Likewise.
19653 (vreinterpretq_u8_f64): Likewise.
19654 (vreinterpret_u16_f64): Likewise.
19655 (vreinterpretq_u16_f64): Likewise.
19656 (vreinterpret_u32_f64): Likewise.
19657 (vreinterpretq_u32_f64): Likewise.
19658
19659 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19660
19661 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19662 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19663 (vreinterpret_p8_s8): Likewise.
19664 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19665 (vreinterpret_p8_s16): Likewise.
19666 (vreinterpret_p8_s32): Likewise.
19667 (vreinterpret_p8_s64): Likewise.
19668 (vreinterpret_p8_f32): Likewise.
19669 (vreinterpret_p8_u8): Likewise.
19670 (vreinterpret_p8_u16): Likewise.
19671 (vreinterpret_p8_u32): Likewise.
19672 (vreinterpret_p8_u64): Likewise.
19673 (vreinterpret_p8_p16): Likewise.
19674 (vreinterpretq_p8_s8): Likewise.
19675 (vreinterpretq_p8_s16): Likewise.
19676 (vreinterpretq_p8_s32): Likewise.
19677 (vreinterpretq_p8_s64): Likewise.
19678 (vreinterpretq_p8_f32): Likewise.
19679 (vreinterpretq_p8_u8): Likewise.
19680 (vreinterpretq_p8_u16): Likewise.
19681 (vreinterpretq_p8_u32): Likewise.
19682 (vreinterpretq_p8_u64): Likewise.
19683 (vreinterpretq_p8_p16): Likewise.
19684 (vreinterpret_p16_s8): Likewise.
19685 (vreinterpret_p16_s16): Likewise.
19686 (vreinterpret_p16_s32): Likewise.
19687 (vreinterpret_p16_s64): Likewise.
19688 (vreinterpret_p16_f32): Likewise.
19689 (vreinterpret_p16_u8): Likewise.
19690 (vreinterpret_p16_u16): Likewise.
19691 (vreinterpret_p16_u32): Likewise.
19692 (vreinterpret_p16_u64): Likewise.
19693 (vreinterpret_p16_p8): Likewise.
19694 (vreinterpretq_p16_s8): Likewise.
19695 (vreinterpretq_p16_s16): Likewise.
19696 (vreinterpretq_p16_s32): Likewise.
19697 (vreinterpretq_p16_s64): Likewise.
19698 (vreinterpretq_p16_f32): Likewise.
19699 (vreinterpretq_p16_u8): Likewise.
19700 (vreinterpretq_p16_u16): Likewise.
19701 (vreinterpretq_p16_u32): Likewise.
19702 (vreinterpretq_p16_u64): Likewise.
19703 (vreinterpretq_p16_p8): Likewise.
19704 (vreinterpret_f32_s8): Likewise.
19705 (vreinterpret_f32_s16): Likewise.
19706 (vreinterpret_f32_s32): Likewise.
19707 (vreinterpret_f32_s64): Likewise.
19708 (vreinterpret_f32_u8): Likewise.
19709 (vreinterpret_f32_u16): Likewise.
19710 (vreinterpret_f32_u32): Likewise.
19711 (vreinterpret_f32_u64): Likewise.
19712 (vreinterpret_f32_p8): Likewise.
19713 (vreinterpret_f32_p16): Likewise.
19714 (vreinterpretq_f32_s8): Likewise.
19715 (vreinterpretq_f32_s16): Likewise.
19716 (vreinterpretq_f32_s32): Likewise.
19717 (vreinterpretq_f32_s64): Likewise.
19718 (vreinterpretq_f32_u8): Likewise.
19719 (vreinterpretq_f32_u16): Likewise.
19720 (vreinterpretq_f32_u32): Likewise.
19721 (vreinterpretq_f32_u64): Likewise.
19722 (vreinterpretq_f32_p8): Likewise.
19723 (vreinterpretq_f32_p16): Likewise.
19724 (vreinterpret_s64_s8): Likewise.
19725 (vreinterpret_s64_s16): Likewise.
19726 (vreinterpret_s64_s32): Likewise.
19727 (vreinterpret_s64_f32): Likewise.
19728 (vreinterpret_s64_u8): Likewise.
19729 (vreinterpret_s64_u16): Likewise.
19730 (vreinterpret_s64_u32): Likewise.
19731 (vreinterpret_s64_u64): Likewise.
19732 (vreinterpret_s64_p8): Likewise.
19733 (vreinterpret_s64_p16): Likewise.
19734 (vreinterpretq_s64_s8): Likewise.
19735 (vreinterpretq_s64_s16): Likewise.
19736 (vreinterpretq_s64_s32): Likewise.
19737 (vreinterpretq_s64_f32): Likewise.
19738 (vreinterpretq_s64_u8): Likewise.
19739 (vreinterpretq_s64_u16): Likewise.
19740 (vreinterpretq_s64_u32): Likewise.
19741 (vreinterpretq_s64_u64): Likewise.
19742 (vreinterpretq_s64_p8): Likewise.
19743 (vreinterpretq_s64_p16): Likewise.
19744 (vreinterpret_u64_s8): Likewise.
19745 (vreinterpret_u64_s16): Likewise.
19746 (vreinterpret_u64_s32): Likewise.
19747 (vreinterpret_u64_s64): Likewise.
19748 (vreinterpret_u64_f32): Likewise.
19749 (vreinterpret_u64_u8): Likewise.
19750 (vreinterpret_u64_u16): Likewise.
19751 (vreinterpret_u64_u32): Likewise.
19752 (vreinterpret_u64_p8): Likewise.
19753 (vreinterpret_u64_p16): Likewise.
19754 (vreinterpretq_u64_s8): Likewise.
19755 (vreinterpretq_u64_s16): Likewise.
19756 (vreinterpretq_u64_s32): Likewise.
19757 (vreinterpretq_u64_s64): Likewise.
19758 (vreinterpretq_u64_f32): Likewise.
19759 (vreinterpretq_u64_u8): Likewise.
19760 (vreinterpretq_u64_u16): Likewise.
19761 (vreinterpretq_u64_u32): Likewise.
19762 (vreinterpretq_u64_p8): Likewise.
19763 (vreinterpretq_u64_p16): Likewise.
19764 (vreinterpret_s8_s16): Likewise.
19765 (vreinterpret_s8_s32): Likewise.
19766 (vreinterpret_s8_s64): Likewise.
19767 (vreinterpret_s8_f32): Likewise.
19768 (vreinterpret_s8_u8): Likewise.
19769 (vreinterpret_s8_u16): Likewise.
19770 (vreinterpret_s8_u32): Likewise.
19771 (vreinterpret_s8_u64): Likewise.
19772 (vreinterpret_s8_p8): Likewise.
19773 (vreinterpret_s8_p16): Likewise.
19774 (vreinterpretq_s8_s16): Likewise.
19775 (vreinterpretq_s8_s32): Likewise.
19776 (vreinterpretq_s8_s64): Likewise.
19777 (vreinterpretq_s8_f32): Likewise.
19778 (vreinterpretq_s8_u8): Likewise.
19779 (vreinterpretq_s8_u16): Likewise.
19780 (vreinterpretq_s8_u32): Likewise.
19781 (vreinterpretq_s8_u64): Likewise.
19782 (vreinterpretq_s8_p8): Likewise.
19783 (vreinterpretq_s8_p16): Likewise.
19784 (vreinterpret_s16_s8): Likewise.
19785 (vreinterpret_s16_s32): Likewise.
19786 (vreinterpret_s16_s64): Likewise.
19787 (vreinterpret_s16_f32): Likewise.
19788 (vreinterpret_s16_u8): Likewise.
19789 (vreinterpret_s16_u16): Likewise.
19790 (vreinterpret_s16_u32): Likewise.
19791 (vreinterpret_s16_u64): Likewise.
19792 (vreinterpret_s16_p8): Likewise.
19793 (vreinterpret_s16_p16): Likewise.
19794 (vreinterpretq_s16_s8): Likewise.
19795 (vreinterpretq_s16_s32): Likewise.
19796 (vreinterpretq_s16_s64): Likewise.
19797 (vreinterpretq_s16_f32): Likewise.
19798 (vreinterpretq_s16_u8): Likewise.
19799 (vreinterpretq_s16_u16): Likewise.
19800 (vreinterpretq_s16_u32): Likewise.
19801 (vreinterpretq_s16_u64): Likewise.
19802 (vreinterpretq_s16_p8): Likewise.
19803 (vreinterpretq_s16_p16): Likewise.
19804 (vreinterpret_s32_s8): Likewise.
19805 (vreinterpret_s32_s16): Likewise.
19806 (vreinterpret_s32_s64): Likewise.
19807 (vreinterpret_s32_f32): Likewise.
19808 (vreinterpret_s32_u8): Likewise.
19809 (vreinterpret_s32_u16): Likewise.
19810 (vreinterpret_s32_u32): Likewise.
19811 (vreinterpret_s32_u64): Likewise.
19812 (vreinterpret_s32_p8): Likewise.
19813 (vreinterpret_s32_p16): Likewise.
19814 (vreinterpretq_s32_s8): Likewise.
19815 (vreinterpretq_s32_s16): Likewise.
19816 (vreinterpretq_s32_s64): Likewise.
19817 (vreinterpretq_s32_f32): Likewise.
19818 (vreinterpretq_s32_u8): Likewise.
19819 (vreinterpretq_s32_u16): Likewise.
19820 (vreinterpretq_s32_u32): Likewise.
19821 (vreinterpretq_s32_u64): Likewise.
19822 (vreinterpretq_s32_p8): Likewise.
19823 (vreinterpretq_s32_p16): Likewise.
19824 (vreinterpret_u8_s8): Likewise.
19825 (vreinterpret_u8_s16): Likewise.
19826 (vreinterpret_u8_s32): Likewise.
19827 (vreinterpret_u8_s64): Likewise.
19828 (vreinterpret_u8_f32): Likewise.
19829 (vreinterpret_u8_u16): Likewise.
19830 (vreinterpret_u8_u32): Likewise.
19831 (vreinterpret_u8_u64): Likewise.
19832 (vreinterpret_u8_p8): Likewise.
19833 (vreinterpret_u8_p16): Likewise.
19834 (vreinterpretq_u8_s8): Likewise.
19835 (vreinterpretq_u8_s16): Likewise.
19836 (vreinterpretq_u8_s32): Likewise.
19837 (vreinterpretq_u8_s64): Likewise.
19838 (vreinterpretq_u8_f32): Likewise.
19839 (vreinterpretq_u8_u16): Likewise.
19840 (vreinterpretq_u8_u32): Likewise.
19841 (vreinterpretq_u8_u64): Likewise.
19842 (vreinterpretq_u8_p8): Likewise.
19843 (vreinterpretq_u8_p16): Likewise.
19844 (vreinterpret_u16_s8): Likewise.
19845 (vreinterpret_u16_s16): Likewise.
19846 (vreinterpret_u16_s32): Likewise.
19847 (vreinterpret_u16_s64): Likewise.
19848 (vreinterpret_u16_f32): Likewise.
19849 (vreinterpret_u16_u8): Likewise.
19850 (vreinterpret_u16_u32): Likewise.
19851 (vreinterpret_u16_u64): Likewise.
19852 (vreinterpret_u16_p8): Likewise.
19853 (vreinterpret_u16_p16): Likewise.
19854 (vreinterpretq_u16_s8): Likewise.
19855 (vreinterpretq_u16_s16): Likewise.
19856 (vreinterpretq_u16_s32): Likewise.
19857 (vreinterpretq_u16_s64): Likewise.
19858 (vreinterpretq_u16_f32): Likewise.
19859 (vreinterpretq_u16_u8): Likewise.
19860 (vreinterpretq_u16_u32): Likewise.
19861 (vreinterpretq_u16_u64): Likewise.
19862 (vreinterpretq_u16_p8): Likewise.
19863 (vreinterpretq_u16_p16): Likewise.
19864 (vreinterpret_u32_s8): Likewise.
19865 (vreinterpret_u32_s16): Likewise.
19866 (vreinterpret_u32_s32): Likewise.
19867 (vreinterpret_u32_s64): Likewise.
19868 (vreinterpret_u32_f32): Likewise.
19869 (vreinterpret_u32_u8): Likewise.
19870 (vreinterpret_u32_u16): Likewise.
19871 (vreinterpret_u32_u64): Likewise.
19872 (vreinterpret_u32_p8): Likewise.
19873 (vreinterpret_u32_p16): Likewise.
19874 (vreinterpretq_u32_s8): Likewise.
19875 (vreinterpretq_u32_s16): Likewise.
19876 (vreinterpretq_u32_s32): Likewise.
19877 (vreinterpretq_u32_s64): Likewise.
19878 (vreinterpretq_u32_f32): Likewise.
19879 (vreinterpretq_u32_u8): Likewise.
19880 (vreinterpretq_u32_u16): Likewise.
19881 (vreinterpretq_u32_u64): Likewise.
19882 (vreinterpretq_u32_p8): Likewise.
19883 (vreinterpretq_u32_p16): Likewise.
19884
19885 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19886
19887 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19888 Pattern extended.
19889 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19890 (sqabs): Likewise.
19891 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19892 (vqnegd_s64): Likewise.
19893 (vqabs_s64): Likewise.
19894 (vqabsd_s64): Likewise.
19895
19896 2014-04-22 Richard Henderson <rth@redhat.com>
19897
19898 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19899 computation to the top of the loop.
19900
19901 2014-04-22 Renlin <renlin.li@arm.com>
19902 Jiong Wang <jiong.wang@arm.com>
19903
19904 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19905 * config/aarch64/aarch64.c (aarch64_layout_frame)
19906 (aarch64_initial_elimination_offset): Likewise.
19907
19908 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19909
19910 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19911 Fix indentation.
19912
19913 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19914
19915 * machmode.h (bitwise_mode_for_mode): Declare.
19916 * stor-layout.h (bitwise_type_for_mode): Likewise.
19917 * stor-layout.c (bitwise_mode_for_mode): New function.
19918 (bitwise_type_for_mode): Likewise.
19919 * builtins.c (fold_builtin_memory_op): Use it instead of
19920 int_mode_for_mode and build_nonstandard_integer_type.
19921
19922 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19923
19924 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19925 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19926 (*-*-solaris2*): Simplify.
19927 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19928 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19929 *-*-solaris2.9* handling.
19930
19931 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19932 as bug.
19933 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19934 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19935 handling, simplify.
19936 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19937 * configure: Regenerate.
19938
19939 * config/i386/sol2-9.h: Remove.
19940
19941 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19942 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19943 Remove Solaris 9 references.
19944
19945 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19946
19947 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19948 (floatuns<GPI:mode><GPF:mode>2): Remove.
19949 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19950 and floatuns conversions.
19951 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19952 and floatuns conversions.
19953 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19954 (w1,w2): New mode attributes for inequal width conversions.
19955
19956 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19957
19958 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19959 the output asm format.
19960
19961 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19962
19963 * config/aarch64/aarch64-simd.md
19964 (aarch64_cm<optab>di): Always split.
19965 (*aarch64_cm<optab>di): New.
19966 (aarch64_cmtstdi): Always split.
19967 (*aarch64_cmtstdi): New.
19968
19969 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19970
19971 PR tree-optimization/60823
19972 * omp-low.c (ipa_simd_modify_function_body): Go through
19973 all SSA_NAMEs and for those refering to vector arguments
19974 which are going to be replaced adjust SSA_NAME_VAR and,
19975 if it is a default definition, change it into a non-default
19976 definition assigned at the beginning of function from new_decl.
19977 (ipa_simd_modify_stmt_ops): Rewritten.
19978 * tree-dfa.c (set_ssa_default_def): When removing default def,
19979 check for NULL loc instead of NULL *loc.
19980
19981 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19982
19983 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19984 restrictions on core registers for DImode values in Thumb2.
19985
19986 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19987
19988 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19989 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19990
19991 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19992
19993 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19994 (*iordi_notzesidi_di): Likewise.
19995 (*iordi_notsesidi_di): Likewise.
19996
19997 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19998
19999 * config/arm/arm-protos.h (tune_params): New struct members.
20000 * config/arm/arm.c: Initialise tune_params per processor.
20001 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20002 for speed, based on new tune_params.
20003
20004 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20005
20006 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20007 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20008 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20009 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20010 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20011 (vrnda_f64): Likewise.
20012 (vrndi_f64): Likewise.
20013 (vrndm_f64): Likewise.
20014 (vrndn_f64): Likewise.
20015 (vrndp_f64): Likewise.
20016 (vrndx_f64): Likewise.
20017
20018 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20019
20020 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20021 GET_MODE_SIZE argument is enum machine_mode.
20022
20023 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20024
20025 PR target/60910
20026 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20027 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20028
20029 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20030
20031 PR middle-end/60281
20032 * asan.c (asan_emit_stack_protection): Force the base to align to
20033 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20034 appropriate bits if STRICT_ALIGNMENT.
20035 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20036 when asan is on.
20037 (expand_used_vars): Leave a space in the stack frame for alignment
20038 if STRICT_ALIGNMENT.
20039
20040 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20041
20042 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20043 than a gimple.
20044 (gimple_store_p): Likewise.
20045 (gimple_assign_load_p): Likewise.
20046 (gimple_assign_cast_p): Likewise.
20047 (gimple_clobber_p): Likewise.
20048
20049 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20050 rather than a gimple.
20051 (gimple_assign_cast_p): Likewise.
20052
20053 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20054
20055 PR target/60735
20056 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20057 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20058
20059 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20060 more debug information for E500 if -mdebug=reg.
20061
20062 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20063
20064 PR target/60909
20065 * config/i386/i386.c (ix86_expand_builtin)
20066 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20067 register for target RTX.
20068 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20069
20070 2014-04-18 Cong Hou <congh@google.com>
20071
20072 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20073 the widen-mult pattern by handling two operands with different sizes,
20074 and operands whose size is smaller than half of the result type.
20075
20076 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20077
20078 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20079 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20080 (do_estimate_edge_time): Compute it.
20081 * ipa-inline.c (want_inline_small_function_p): Bypass
20082 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20083
20084 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20085
20086 * ipa-inline.c (spec_rem): New static variable.
20087 (dump_overall_stats): New function.
20088 (dump_inline_stats): New function.
20089
20090 2014-04-18 Richard Henderson <rth@redhat.com>
20091
20092 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20093 to GET_MODE_SIZE, not a reg_class_t.
20094
20095 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20096
20097 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20098 (vsx_xxmrglw_<mode>): Likewise.
20099
20100 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20101
20102 PR target/60876
20103 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20104 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20105 (rs6000_init_hard_regno_mode_ok): Likewise.
20106
20107 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20108
20109 * ipa-inline.c (inline_small_functions): Account only non-cold
20110 functions.
20111 * doc/invoke.texi (inline-unit-growth): Update documentation.
20112
20113 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20114
20115 * config/rs6000/rs6000.md (addti3, subti3): New.
20116
20117 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20118
20119 PR target/60863
20120 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20121 comment. Check optimize_insn_for_size_p instead of
20122 optimize_insn_for_speed_p.
20123
20124 2014-04-17 Martin Jambor <mjambor@suse.cz>
20125
20126 * gimple-iterator.c (gsi_start_edge): New function.
20127 * gimple-iterator.h (gsi_start_edge): Declare.
20128 * tree-sra.c (single_non_eh_succ): New function.
20129 (disqualify_ops_if_throwing_stmt): Renamed to
20130 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20131 having one non-EH successor BB.
20132 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20133 generate loads into replacements.
20134 (sra_modify_assign): Likewise and and also use the simple path for
20135 such statements.
20136 (sra_modify_function_body): Commit statements on edges.
20137
20138 2014-04-17 Richard Biener <rguenther@suse.de>
20139
20140 PR middle-end/60849
20141 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20142 comparison results and add clarifying comment.
20143
20144 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20145
20146 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20147 (blank_mode): Initialize it.
20148 (emit_mode_size_inline, emit_mode_nunits_inline,
20149 emit_mode_inner_inline): New functions.
20150 (emit_insn_modes_h): Call them and surround their output with
20151 #if GCC_VERSION >= 4001 ... #endif.
20152 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20153 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20154 mode_* arrays if the argument is __builtin_constant_p.
20155 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20156 is enum machine_mode.
20157
20158 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20159
20160 * passes.c (opt_pass::execute): Adjust.
20161 (pass_manager::execute_pass_mode_switching): Likewise.
20162 (early_local_passes::execute): Likewise.
20163 (execute_one_pass): Pass cfun to the pass's execute method.
20164 * tree-pass.h (opt_pass::execute): Add function * argument.
20165 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20166 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20167 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20168 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20169 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20170 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20171 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20172 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20173 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20174 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20175 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20176 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20177 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20178 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20179 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20180 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20181 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20182 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20183 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20184 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20185 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20186 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20187 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20188 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20189 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20190 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20191 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20192 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20193 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20194 Adjust.
20195
20196 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20197
20198 * passes.c (opt_pass::gate): Take function * argument.
20199 (gate_all_early_local_passes): Merge into
20200 (early_local_passes::gate): this.
20201 (gate_all_early_optimizations): Merge into
20202 (all_early_optimizations::gate): this.
20203 (gate_all_optimizations): Mege into
20204 (all_optimizations::gate): this.
20205 (gate_all_optimizations_g): Merge into
20206 (all_optimizations_g::gate): this.
20207 (gate_rest_of_compilation): Mege into
20208 (rest_of_compilation::gate): this.
20209 (gate_postreload): Merge into
20210 (postreload::gate): this.
20211 (dump_one_pass): Pass cfun to the pass's gate method.
20212 (execute_ipa_summary_passes): Likewise.
20213 (execute_one_pass): Likewise.
20214 (ipa_write_summaries_2): Likewise.
20215 (ipa_write_optimization_summaries_1): Likewise.
20216 (ipa_read_summaries_1): Likewise.
20217 (ipa_read_optimization_summaries_1): Likewise.
20218 (execute_ipa_stmt_fixups): Likewise.
20219 * tree-pass.h (opt_pass::gate): Add function * argument.
20220 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20221 combine-stack-adj.c, combine.c, compare-elim.c,
20222 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20223 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20224 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20225 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20226 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20227 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20228 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20229 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20230 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20231 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20232 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20233 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20234 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20235 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20236 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20237 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20238 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20239 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20240 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20241 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20242 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20243 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20244 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20245 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20246 var-tracking.c, vtable-verify.c, web.c: Adjust.
20247
20248 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20249
20250 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20251 * configure: Regenerate.
20252
20253 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20254
20255 * passes.c (dump_one_pass): don't check pass->has_gate.
20256 (execute_ipa_summary_passes): Likewise.
20257 (execute_one_pass): Likewise.
20258 (ipa_write_summaries_2): Likewise.
20259 (ipa_write_optimization_summaries_1): Likewise.
20260 (ipa_read_optimization_summaries_1): Likewise.
20261 (execute_ipa_stmt_fixups): Likewise.
20262 * tree-pass.h (pass_data::has_gate): Remove.
20263 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20264 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20265 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20266 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20267 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20268 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20269 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20270 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20271 gimple-low.c, gimple-ssa-isolate-paths.c,
20272 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20273 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20274 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20275 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20276 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20277 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20278 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20279 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20280 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20281 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20282 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20283 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20284 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20285 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20286 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20287 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20288 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20289 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20290 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20291 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20292 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20293 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20294 Adjust.
20295
20296 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20297
20298 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20299 declaration.
20300 * passes.c (pass_manager::register_dump_files_1): Merge into
20301 (pass_manager::register_dump_files): this, and remove its handling of
20302 properties since the pass always has the properties anyway.
20303 (pass_manager::pass_manager): Adjust.
20304
20305 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20306
20307 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20308 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20309 dealing with properties.
20310 (pass_manager::register_dump_files): Adjust.
20311
20312 2014-03-20 Mark Wielaard <mjw@redhat.com>
20313
20314 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20315 then represent the bound as normal constant value.
20316
20317 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20318
20319 PR target/60847
20320 Forward port from 4.8 branch
20321 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20322
20323 * config/i386/bmiintrin.h (_blsi_u32): New.
20324 (_blsi_u64): Ditto.
20325 (_blsr_u32): Ditto.
20326 (_blsr_u64): Ditto.
20327 (_blsmsk_u32): Ditto.
20328 (_blsmsk_u64): Ditto.
20329 (_tzcnt_u32): Ditto.
20330 (_tzcnt_u64): Ditto.
20331
20332 2014-04-17 Kito Cheng <kito@0xlab.org>
20333
20334 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20335
20336 2014-04-17 Richard Biener <rguenther@suse.de>
20337
20338 PR middle-end/60849
20339 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20340 boolean results for comparisons.
20341
20342 2014-04-17 Richard Biener <rguenther@suse.de>
20343
20344 PR tree-optimization/60836
20345 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20346 initial PHI args to be gimple values.
20347
20348 2014-04-17 Richard Biener <rguenther@suse.de>
20349
20350 PR tree-optimization/60841
20351 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20352 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20353 of stmts to SLP build.
20354 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20355 (vect_analyze_slp): Likewise.
20356 (vect_analyze_slp_instance): Likewise.
20357 (vect_build_slp_tree): Limit overall SLP tree growth.
20358 * tree-vectorizer.h (vect_analyze_data_refs,
20359 vect_analyze_slp): Adjust prototypes.
20360
20361 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20362
20363 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20364 Silvermont.
20365
20366 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20367
20368 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20369 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20370 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20371 for TARGET_SLOW_PSHUFB
20372
20373 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20374
20375 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20376 * config/i386/i386.c (intel_cost): Ditto.
20377
20378 2014-04-17 Joey Ye <joey.ye@arm.com>
20379
20380 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20381
20382 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20383
20384 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20385 with -fuse-profile.
20386
20387 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20388
20389 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20390 (type_all_derivations_known_p): New predicate.
20391 (type_all_ctors_visible_p): New predicate.
20392 (type_possibly_instantiated_p): New predicate.
20393 (get_odr_type): Compute all_derivations_known.
20394 (dump_odr_type): Dump the flag.
20395 (maybe_record_type): Cleanup.
20396 (record_target_from_binfo): Add bases_to_consider array;
20397 record bases for types w/o instances and skip CXX destructor.
20398 (possible_polymorphic_call_targets_1): Add bases_to_consider
20399 and consider_construction parameters; check if type may have instance.
20400 (get_polymorphic_call_info): Set maybe_in_construction to true
20401 when we know nothing.
20402 (record_targets_from_bases): Skip CXX destructors; they are
20403 never called for types in construction.
20404 (possible_polymorphic_call_targets): Do not record target when
20405 type may not have instance.
20406
20407 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20408
20409 PR ipa/60854
20410 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20411 external aliases alive, too.
20412
20413 2014-04-16 Andrew Pinski <apinski@cavium.com>
20414
20415 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20416 definition.
20417
20418 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20419
20420 * final.c (compute_alignments): Do not apply loop alignment to a block
20421 falling through to the exit.
20422
20423 2014-04-16 Catherine Moore <clm@codesourcery.com>
20424
20425 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20426 Adjust constraints for microMIPS store patterns.
20427
20428 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20429
20430 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20431
20432 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20433
20434 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20435 (append_use): Run at -O0.
20436 (append_vdef): Likewise.
20437 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20438 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20439
20440 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20441
20442 PR tree-optimization/60844
20443 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20444 (propagate_op_to_single_use, remove_visited_stmt_chain,
20445 linearize_expr, repropagate_negates, reassociate_bb): Use it
20446 instead of gsi_remove.
20447
20448 2014-04-16 Martin Jambor <mjambor@suse.cz>
20449
20450 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20451 ipa_transforms_to_apply.
20452 (cgraph_function_versioning): Assert that old_node has empty
20453 ipa_transforms_to_apply.
20454 * trans-mem.c (ipa_tm_create_version): Likewise.
20455 * tree-inline.c (tree_function_versioning): Do not duplicate
20456 ipa_transforms_to_apply.
20457
20458 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20459
20460 PR target/60817
20461 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20462 x86_64-*-* cases.
20463 Pass necessary as flags on 64-bit Solaris/x86.
20464 Use lowercase relocs for x86_64-*-*.
20465 * configure: Regenerate.
20466
20467 2014-04-15 Jan Hubicka <jh@suse.cz>
20468
20469 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20470 (maybe_record_node, likely_target_p): Use it.
20471
20472 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20473
20474 PR target/60839
20475 Revert following patch
20476
20477 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20478
20479 PR target/60735
20480 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20481 software floating point or no floating point registers, do not
20482 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20483 in GPRs that occurs after we tested for GPRs that would never be
20484 true.
20485
20486 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20487 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20488 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20489 specifically allow DDmode, since that does not use the SPE SIMD
20490 instructions.
20491
20492 2014-03-21 Mark Wielaard <mjw@redhat.com>
20493
20494 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20495 as unsigned or int depending on type and value used.
20496
20497 2014-04-15 Richard Biener <rguenther@suse.de>
20498
20499 PR rtl-optimization/56965
20500 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20501 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20502 ... here.
20503 * alias.c (true_dependence_1): Do not call
20504 nonoverlapping_component_refs_p.
20505 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20506 nonoverlapping_component_refs_p.
20507 (indirect_refs_may_alias_p): Likewise.
20508
20509 2014-04-15 Teresa Johnson <tejohnson@google.com>
20510
20511 * cfg.c (dump_bb_info): Fix flags check.
20512 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20513
20514 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20515
20516 PR rtl-optimization/60663
20517 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20518 avoid 0 cost.
20519
20520 2014-04-15 Richard Biener <rguenther@suse.de>
20521
20522 * lto-streamer.h (LTO_major_version): Bump to 4.
20523
20524 2014-04-15 Richard Biener <rguenther@suse.de>
20525
20526 * common.opt (lto_partition_model): New enum.
20527 (flto-partition=): Merge separate options with a single with argument,
20528 add -flto-partition=one support.
20529 * flag-types.h (enum lto_partition_model): Declare.
20530 * opts.c (finish_options): Remove duplicate -flto-partition=
20531 option check.
20532 * lto-wrapper.c (run_gcc): Adjust.
20533
20534 2014-04-15 Richard Biener <rguenther@suse.de>
20535
20536 * alias.c (ncr_compar): New function.
20537 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20538
20539 2014-04-15 Richard Biener <rguenther@suse.de>
20540
20541 * alias.c (record_component_aliases): Do not walk BINFOs.
20542
20543 2014-04-15 Richard Biener <rguenther@suse.de>
20544
20545 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20546 Add struct function argument and adjust.
20547 (find_func_aliases_for_call): Likewise.
20548 (find_func_aliases): Likewise.
20549 (find_func_clobbers): Likewise.
20550 (intra_create_variable_infos): Likewise.
20551 (compute_points_to_sets): Likewise.
20552 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20553
20554 2014-04-15 Richard Biener <rguenther@suse.de>
20555
20556 * tree.c (iterative_hash_expr): Use enum tree_code_class
20557 to store TREE_CODE_CLASS.
20558 (tree_block): Likewise.
20559 (tree_set_block): Likewise.
20560 * tree.h (fold_build_pointer_plus_loc): Use
20561 convert_to_ptrofftype_loc.
20562
20563 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20564
20565 PR plugins/59335
20566 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20567 added in 4.9.
20568
20569 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20570
20571 * cfgloop.h (struct loop): Move force_vectorize down.
20572 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20573 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20574 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20575 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20576 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20577 * tree-core.h (enum annot_expr_kind): Add new kind values.
20578 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20579 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20580 kinds.
20581 * tree.def (ANNOTATE_EXPR): Tweak comment.
20582
20583 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20584
20585 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20586 cxa_pure_virtual).
20587
20588 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20589
20590 * tree.h (TYPE_IDENTIFIER): Declare.
20591 * tree.c (subrange_type_for_debug_p): Use it.
20592 * godump.c (go_format_type): Likewise.
20593 * dwarf2out.c (is_cxx_auto, modified_type_die,
20594 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20595 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20596
20597 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20598
20599 PR lto/60820
20600 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20601
20602 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20603
20604 * config/i386/i386.c (examine_argument): Return bool. Return true if
20605 parameter should be passed in memory.
20606 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20607 (construct_container): Update calls to examine_argument.
20608 (function_arg_advance_64): Ditto.
20609 (return_in_memory_32): Merge with ix86_return_in_memory.
20610 (return_in_memory_64): Ditto.
20611 (return_in_memory_ms_64): Ditto.
20612
20613 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20614
20615 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20616 * coverage.c (coverage_compute_profile_id): Handle externally visible
20617 symbols.
20618
20619 2014-04-14 Martin Jambor <mjambor@suse.cz>
20620
20621 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20622 DECL_DISREGARD_INLINE_LIMITS functions.
20623
20624 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20625
20626 PR target/60827
20627 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20628
20629 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20630
20631 PR target/60827
20632 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20633 optimize_insn_for_speed_p instead of
20634 optimize_function_for_speed_p.
20635
20636 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20637
20638 * doc/invoke.texi (free): Document AArch64.
20639
20640 2014-04-14 Richard Biener <rguenther@suse.de>
20641
20642 PR tree-optimization/60042
20643 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20644 (insert_into_preds_of_block): Do not prevent PHI insertion
20645 for REFERENCE exprs here ...
20646 (eliminate_dom_walker::before_dom_children): ... but prevent
20647 their use here under similar conditions when applied to the
20648 IL after PRE optimizations.
20649
20650 2014-04-14 Richard Biener <rguenther@suse.de>
20651
20652 * passes.def: Move early points-to after early SRA.
20653
20654 2014-04-14 Richard Biener <rguenther@suse.de>
20655
20656 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20657 check for which sign-changes we allow when forwarding
20658 a converted value into a switch.
20659
20660 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20661
20662 * stor-layout.c (place_field): Finalize non-constant offset for the
20663 field, if any.
20664
20665 2014-04-14 Richard Biener <rguenther@suse.de>
20666
20667 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20668 as argument.
20669 (expand_switch_using_bit_tests_p): Likewise.
20670 (process_switch): Compute and pass on speed_p based on the
20671 switch stmt.
20672 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20673 optimize_bb_for_speed_p.
20674
20675 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20676
20677 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20678 * function.h (struct function): Rename has_force_vect_loops into
20679 has_force_vectorize_loops.
20680 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20681 (input_struct_function_base): Likewise.
20682 * lto-streamer-out.c (output_cfg): Likewise.
20683 (output_struct_function_base): Likewise.
20684 * omp-low.c (expand_omp_simd): Likewise.
20685 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20686 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20687 (version_loop_for_if_conversion): Likewise.
20688 (tree_if_conversion): Likewise.
20689 (main_tree_if_conversion): Likewise.
20690 (gate_tree_if_conversion): Likewise.
20691 * tree-inline.c (copy_loops): Likewise.
20692 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20693 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20694 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20695 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20696 * tree-vectorizer.c (vectorize_loops): Likewise.
20697 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20698
20699 2014-04-14 Richard Biener <rguenther@suse.de>
20700
20701 PR lto/60720
20702 * lto-streamer-out.c (wrap_refs): New function.
20703 (lto_output): Wrap symbol references in global initializes in
20704 type-preserving MEM_REFs.
20705
20706 2014-04-14 Christian Bruel <christian.bruel@st.com>
20707
20708 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20709
20710 2014-04-14 Christian Bruel <christian.bruel@st.com>
20711
20712 * config/sh/sh.md (setmemqi): New expand pattern.
20713 * config/sh/sh.h (CLEAR_RATIO): Define.
20714 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20715 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20716
20717 2014-04-14 Richard Biener <rguenther@suse.de>
20718
20719 PR middle-end/55022
20720 * fold-const.c (negate_expr_p): Don't negate directional rounding
20721 division.
20722 (fold_negate_expr): Likewise.
20723
20724 2014-04-14 Richard Biener <rguenther@suse.de>
20725
20726 PR tree-optimization/59817
20727 PR tree-optimization/60453
20728 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20729 recursion to catch all CHRECs in the scalar evolution and restrict
20730 the predicate for the remains appropriately.
20731
20732 2014-04-12 Catherine Moore <clm@codesourcery.com>
20733
20734 * config/mips/constraints.md: Add new register constraint "kb".
20735 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20736 (*movhi_internal): Likewise.
20737 (*movqi_internal): Likewise.
20738 * config/mips/mips.h (M16_STORE_REGS): New register class.
20739 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20740 (REG_CLASS_CONTENTS): Likewise.
20741 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20742
20743 2014-04-11 Tobias Burnus <burnus@net-b.de>
20744
20745 PR c/60194
20746 * doc/invoke.texi (-Wformat-signedness): Document it.
20747 (Wformat=2): Mention that this enables -Wformat-signedness.
20748
20749 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20750
20751 * common/config/epiphany/epiphany-common.c
20752 (epiphany_option_optimization_table): Enable section anchors by
20753 default at -O1 or higher.
20754 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20755 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20756 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20757 carries no extra cost.
20758 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20759 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20760 * config/epiphany/predicates.md (memclob_operand): New predicate.
20761 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20762 Use memclob_operand predicate and X constraint for operand 3.
20763
20764 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20765
20766 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20767 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20768 its operands.
20769
20770 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20771
20772 PR rtl-optimization/60651
20773 * mode-switching.c (optimize_mode_switching): Make sure to emit
20774 sets of a lower numbered entity before sets of a higher numbered
20775 entity to a mode of the same or lower priority.
20776 When creating a seginfo for a basic block that starts with a code
20777 label, move the insertion point past the code label.
20778 (new_seginfo): Document and enforce requirement that
20779 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20780 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20781 * doc/tm.texi: Regenerate.
20782
20783 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20784
20785 PR target/60811
20786 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20787
20788 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20789
20790 * BASE-VER: Set to 4.10.0.
20791
20792 2014-04-11 Tobias Burnus <burnus@net-b.de>
20793
20794 PR other/59055
20795 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20796 * doc/gcc.texi (Service): Update description in the @menu
20797 * doc/invoke.texi (Option Summary): Remove misplaced and
20798 duplicated @menu.
20799
20800 2014-04-11 Steve Ellcey <sellcey@mips.com>
20801 Jakub Jelinek <jakub@redhat.com>
20802
20803 PR middle-end/60556
20804 * expr.c (convert_move): Use emit_store_flag_force instead of
20805 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20806 argument to it.
20807
20808 2014-04-11 Richard Biener <rguenther@suse.de>
20809
20810 PR middle-end/60797
20811 * varasm.c (assemble_alias): Avoid endless error reporting
20812 recursion by setting TREE_ASM_WRITTEN.
20813
20814 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20815
20816 * config/s390/s390.md: Add a splitter for NOT rtx.
20817
20818 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20819
20820 PR rtl-optimization/60663
20821 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20822
20823 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20824 Jakub Jelinek <jakub@redhat.com>
20825
20826 PR lto/60567
20827 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20828 flag from decl_node to node.
20829
20830 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20831
20832 PR debug/60655
20833 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20834 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20835 ameliorating the cases where it can be.
20836
20837 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20838
20839 Revert
20840 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20841
20842 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20843 (loadsync_<mode>): Change mode.
20844 (load_quadpti, store_quadpti): New.
20845 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20846 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20847 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20848
20849 2014-04-09 Cong Hou <congh@google.com>
20850
20851 PR testsuite/60773
20852 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20853 documentation.
20854
20855 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20856
20857 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20858 instead of vnor to exploit possible fusion opportunity in the
20859 future.
20860 (altivec_expand_vec_perm_const_le): Likewise.
20861
20862 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20863
20864 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20865 (loadsync_<mode>): Change mode.
20866 (load_quadpti, store_quadpti): New.
20867 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20868 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20869
20870 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20871
20872 PR target/60763
20873 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20874 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20875 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20876
20877 2014-04-08 Richard Biener <rguenther@suse.de>
20878
20879 PR middle-end/60706
20880 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20881 a 64bit widest int print double-int similar to on HWI64 hosts.
20882
20883 2014-04-08 Richard Biener <rguenther@suse.de>
20884
20885 PR tree-optimization/60785
20886 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20887 default defs properly.
20888
20889 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20890
20891 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20892 (Weffc++): Likewise.
20893
20894 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20895
20896 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20897 set completep to false rather than true.
20898
20899 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20900
20901 PR target/60504
20902 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20903 ARM_TARGET2_DWARF_FORMAT.
20904
20905 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20906
20907 PR target/60609
20908 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20909 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20910 ADDR_DIFF_VEC.
20911
20912 2014-04-07 Richard Biener <rguenther@suse.de>
20913
20914 PR tree-optimization/60766
20915 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20916 (may_eliminate_iv): Convert cand_value_at result to desired type.
20917
20918 2014-04-07 Jason Merrill <jason@redhat.com>
20919
20920 PR c++/60731
20921 * common.opt (-fno-gnu-unique): Add.
20922 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20923
20924 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20925
20926 * haifa-sched.c: Fix outdated function reference and minor
20927 grammar errors in introductory comment.
20928
20929 2014-04-07 Richard Biener <rguenther@suse.de>
20930
20931 PR middle-end/60750
20932 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20933 for noreturn calls.
20934 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20935
20936 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20937
20938 PR debug/55794
20939 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20940 size accounting for thunks.
20941 (pa_asm_output_mi_thunk): Use final_start_function() and
20942 final_end_function() to output function start and end directives.
20943
20944 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20945
20946 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20947 device specific ISA/ feature information. Remove short_sp and
20948 errata_skip ds. Add avr_device_specific_features enum to have device
20949 specific info.
20950 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20951 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20952 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20953 updated device specific info.
20954 * config/avr/avr-mcus.def: Merge device specific details to
20955 dev_attribute field.
20956 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20957 errata_skip.
20958 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20959 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20960 assembler if RMW isa supported by current device.
20961 * config/avr/genmultilib.awk: Update as device info structure changed.
20962 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20963
20964 2014-04-04 Cong Hou <congh@google.com>
20965
20966 PR tree-optimization/60656
20967 * tree-vect-stmts.c (supportable_widening_operation):
20968 Fix a bug that elements in a vector with vect_used_by_reduction
20969 property are incorrectly reordered when the operation on it is not
20970 consistant with the one in reduction operation.
20971
20972 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20973
20974 PR rtl-optimization/60155
20975 * gcse.c (record_set_data): New function.
20976 (single_set_gcse): New function.
20977 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20978 (hoist_code): Likewise.
20979 (get_pressure_class_and_nregs): Likewise.
20980
20981 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20982
20983 * explow.c (probe_stack_range): Emit a final optimization blockage.
20984
20985 2014-04-04 Anthony Green <green@moxielogic.com>
20986
20987 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20988 typos.
20989
20990 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20991
20992 PR ipa/59626
20993 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20994 flags are set only during streaming.
20995 * ipa.c (process_references, walk_polymorphic_call_targets,
20996 symtab_remove_unreachable_nodes): Drop bodies of always inline
20997 after early inlining.
20998 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20999
21000 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21001 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21002
21003 PR debug/60655
21004 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21005 containing a NOT.
21006
21007 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21008
21009 PR bootstrap/60743
21010 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21011 duration.
21012 (cortex_a53_fdivd): Likewise.
21013
21014 2014-04-04 Martin Jambor <mjambor@suse.cz>
21015
21016 PR ipa/60640
21017 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21018 Adjust all callers.
21019 * cgraph.c (clone_of_p): Also return true if thunks match.
21020 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21021 cgraph_function_or_thunk_node and an obsolete comment.
21022 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21023 file.
21024 (build_function_decl_skip_args): Likewise.
21025 (set_new_clone_decl_and_node_flags): New function.
21026 (duplicate_thunk_for_node): Likewise.
21027 (redirect_edge_duplicating_thunks): Likewise.
21028 (cgraph_clone_node): New parameter args_to_skip, pass it to
21029 redirect_edge_duplicating_thunks which is called instead of
21030 cgraph_redirect_edge_callee.
21031 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21032 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21033
21034 2014-04-04 Jeff Law <law@redhat.com>
21035
21036 PR target/60657
21037 * config/arm/predicates.md (const_int_I_operand): New predicate.
21038 (const_int_M_operand): Similarly.
21039 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21040 const_int_operand.
21041 (insv_t2, extv_reg, extzv_t2): Likewise.
21042 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21043 (pop_multiple_with_writeback_and_return): Likewise.
21044 (vfp_pop_multiple_with_writeback): Likewise
21045
21046 2014-04-04 Richard Biener <rguenther@suse.de>
21047
21048 PR ipa/60746
21049 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21050 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21051 non-GIMPLE_LABELs.
21052 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21053 * gimplify.c (gimple_add_tmp_var_fn): New function.
21054 * gimple-expr.h (create_tmp_reg_fn): Declare.
21055 * gimple-expr.c (create_tmp_reg_fn): New function.
21056 * gimple-low.c (record_vars_into): Don't change cfun.
21057 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21058 code generation without cfun.
21059
21060 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21061
21062 PR bootstrap/60719
21063 * Makefile.in (install-driver): Fix shell scripting.
21064
21065 2014-04-03 Cong Hou <congh@google.com>
21066
21067 PR tree-optimization/60505
21068 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21069 threshold of number of iterations below which no vectorization
21070 will be done.
21071 * tree-vect-loop.c (new_loop_vec_info):
21072 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21073 * tree-vect-loop.c (vect_analyze_loop_operations):
21074 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21075 * tree-vect-loop.c (vect_transform_loop):
21076 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21077 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21078 of iterations of the loop and see if we should build the epilogue.
21079
21080 2014-04-03 Richard Biener <rguenther@suse.de>
21081
21082 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21083 (streamer_tree_cache_create): Adjust.
21084 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21085 to allow optional nodes array.
21086 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21087 (streamer_tree_cache_append): Likewise.
21088 (streamer_tree_cache_create): Create nodes array optionally
21089 as specified by parameter.
21090 * lto-streamer-out.c (create_output_block): Avoid maintaining
21091 the node array in the writer cache.
21092 (DFS_write_tree): Remove assertion.
21093 (produce_asm_for_decls): Free the out decl state hash table early.
21094 * lto-streamer-in.c (lto_data_in_create): Adjust for
21095 streamer_tree_cache_create prototype change.
21096
21097 2014-04-03 Richard Biener <rguenther@suse.de>
21098
21099 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21100 set TREE_CHAIN to NULL_TREE.
21101
21102 2014-04-03 Richard Biener <rguenther@suse.de>
21103
21104 PR tree-optimization/60740
21105 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21106 over all GIMPLE_COND operands.
21107
21108 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21109
21110 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21111 (Weffc++): Remove Scott's numbering, merge lists and reference
21112 Wnon-virtual-dtor.
21113
21114 2014-04-03 Nick Clifton <nickc@redhat.com>
21115
21116 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21117 properly.
21118
21119 2014-04-03 Martin Jambor <mjambor@suse.cz>
21120
21121 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21122 mention gcc_unreachable before failing.
21123 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21124 removed symbols.
21125
21126 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21127
21128 PR ipa/60659
21129 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21130 inconsistent code and instead mark the context inconsistent.
21131 (possible_polymorphic_call_targets): For inconsistent contexts
21132 return empty complete list.
21133
21134 2014-04-02 Anthony Green <green@moxielogic.com>
21135
21136 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21137 (extendqisi2, extendhisi2): Define.
21138 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21139 (WCHAR_TYPE): Change to unsigned int.
21140
21141 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21142
21143 PR tree-optimization/60733
21144 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21145 insertion point for PHI candidates to be the end of the feeding
21146 block for the PHI argument.
21147
21148 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21149
21150 PR rtl-optimization/60650
21151 * lra-constraints.c (process_alt_operands): Decrease reject for
21152 earlyclobber matching.
21153
21154 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21155
21156 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21157
21158 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21159
21160 * config/spu/spu.c (pad_bb): Do not crash when the last
21161 insn is CODE_FOR_blockage.
21162
21163 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21164
21165 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21166 lies outside the target mode.
21167
21168 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21169
21170 PR target/60735
21171 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21172 software floating point or no floating point registers, do not
21173 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21174 in GPRs that occurs after we tested for GPRs that would never be
21175 true.
21176
21177 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21178 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21179 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21180 specifically allow DDmode, since that does not use the SPE SIMD
21181 instructions.
21182
21183 2014-04-02 Richard Biener <rguenther@suse.de>
21184
21185 PR middle-end/60729
21186 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21187 MODE_INTs. Properly use negv_optab.
21188 (expand_abs): Likewise.
21189
21190 2014-04-02 Richard Biener <rguenther@suse.de>
21191
21192 PR bootstrap/60719
21193 * Makefile.in (install-driver): Guard extra installs with special
21194 names properly.
21195
21196 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21197
21198 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21199 Document vec_vgbbd.
21200
21201 2014-04-01 Richard Henderson <rth@redhat.com>
21202
21203 PR target/60704
21204 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21205 alternative enabled before register allocation.
21206
21207 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21208
21209 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21210 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21211 typo.
21212 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21213 (nios2_got_address): Update nios2_large_got_address call site.
21214 (nios2_delegitimize_address): New function.
21215 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21216 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21217 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21218
21219 2014-04-01 Martin Husemann <martin@duskware.de>
21220
21221 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21222 for -mabi=32.
21223
21224 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21225
21226 PR rtl-optimization/60604
21227 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21228 check from register_operand.
21229 (register_operand): Redefine in terms of general_operand.
21230 (nonmemory_operand): Use register_operand for the non-constant cases.
21231
21232 2014-04-01 Richard Biener <rguenther@suse.de>
21233
21234 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21235
21236 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21237
21238 * doc/invoke.texi (mapp-regs): Clarify.
21239
21240 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21241
21242 * config/i386/avx512fintrin.h (__v32hi): Define type.
21243 (__v64qi): Likewise.
21244 (_mm512_set1_epi8): Define.
21245 (_mm512_set1_epi16): Define.
21246 (_mm512_set4_epi32): Define.
21247 (_mm512_set4_epi64): Define.
21248 (_mm512_set4_pd): Define.
21249 (_mm512_set4_ps): Define.
21250 (_mm512_setr4_epi64): Define.
21251 (_mm512_setr4_epi32): Define.
21252 (_mm512_setr4_pd): Define.
21253 (_mm512_setr4_ps): Define.
21254 (_mm512_setzero_epi32): Define.
21255
21256 2014-03-31 Martin Jambor <mjambor@suse.cz>
21257
21258 PR middle-end/60647
21259 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21260 callsite_arguments_match_p. Updated all callers. Also check types of
21261 corresponding formal parameters and actual arguments.
21262 (not_all_callers_have_enough_arguments_p) Renamed to
21263 some_callers_have_mismatched_arguments_p.
21264
21265 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21266
21267 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21268
21269 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21270
21271 PR target/60034
21272 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21273 section anchor.
21274
21275 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21276
21277 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21278 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21279 Split out
21280 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21281 Use FMAMODE_NOVF512 mode iterator.
21282 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21283 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21284 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21285 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21286 Split out
21287 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21288 Use VF_128_256 mode iterator.
21289 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21290 Ditto.
21291
21292 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21293
21294 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21295 static chain if needed.
21296
21297 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21298
21299 PR target/60697
21300 * lra-constraints.c (index_part_to_reg): New.
21301 (process_address): Use it.
21302
21303 2014-03-27 Jeff Law <law@redhat.com>
21304 Jakub Jelinek <jakub@redhat.com>
21305
21306 PR target/60648
21307 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21308 gen_rtx_{PLUS,MULT} to build up the address expression.
21309
21310 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21311 creating non-canonical RTL.
21312
21313 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21314
21315 PR ipa/60243
21316 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21317 functions; reorganize to make cheap checks first.
21318 (inline_small_functions): Do not estimate growth when dumping;
21319 it is expensive.
21320 * ipa-inline.h (inline_summary): Add min_size.
21321 (growth_likely_positive): New function.
21322 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21323 (set_cond_stmt_execution_predicate): Cleanup.
21324 (estimate_edge_size_and_time): Compute min_size.
21325 (estimate_calls_size_and_time): Likewise.
21326 (estimate_node_size_and_time): Likewise.
21327 (inline_update_overall_summary): Update min_size.
21328 (do_estimate_edge_time): Likewise.
21329 (do_estimate_edge_size): Update.
21330 (do_estimate_edge_hints): Update.
21331 (growth_likely_positive): New function.
21332
21333 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21334
21335 PR target/60693
21336 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21337 also if addr has VOIDmode.
21338
21339 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21340
21341 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21342 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21343 Declare extern.
21344 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21345 instructions as well as AdvancedSIMD loads.
21346
21347 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21348
21349 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21350 Use crypto_aese type.
21351 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21352 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21353 crypto_aese, crypto_aesmc. Move to types.md.
21354 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21355 crypto_aesmc.
21356 * config/arm/iterators.md (crypto_type): Likewise.
21357
21358 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21359
21360 * cgraph.c: Include expr.h and tree-dfa.h.
21361 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21362 remove LHS.
21363
21364 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21365
21366 PR target/60675
21367 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21368 regs from checking multi-reg pseudos.
21369
21370 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21371
21372 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21373
21374 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21375
21376 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21377 if it would clobber the stack pointer, even temporarily.
21378
21379 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21380
21381 * mode-switching.c: Make small adjustments to the top comment.
21382
21383 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21384
21385 * config/rs6000/constraints.md (wD constraint): New constraint to
21386 match the constant integer to get the top DImode/DFmode out of a
21387 vector in a VSX register.
21388
21389 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21390 match the constant integer to get the top DImode/DFmode out of a
21391 vector in a VSX register.
21392
21393 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21394 for ISA 2.07.
21395
21396 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21397 vbpermq builtins.
21398
21399 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21400 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21401
21402 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21403 Optimize vec_extract of 64-bit values, where the value being
21404 extracted is in the top word, where we can use scalar
21405 instructions. Add direct move and store support. Combine the big
21406 endian/little endian vector select load support into a single insn.
21407 (vsx_extract_<mode>_internal1): Likewise.
21408 (vsx_extract_<mode>_internal2): Likewise.
21409 (vsx_extract_<mode>_load): Likewise.
21410 (vsx_extract_<mode>_store): Likewise.
21411 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21412 combined into vsx_extract_<mode>_load.
21413 (vsx_extract_<mode>_one_le): Likewise.
21414
21415 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21416 define the top 64-bit vector element.
21417
21418 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21419 constraint.
21420
21421 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21422 Document vec_vbpermq builtin.
21423
21424 PR target/60672
21425 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21426 enable use of xxsldwi and xxpermdi builtin functions.
21427 (vec_xxpermdi): Likewise.
21428
21429 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21430 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21431
21432 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21433
21434 PR rtl-optimization/60650
21435 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21436 first_p. Use it.
21437 (find_spills_for): New.
21438 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21439 Spill all pseudos on the second iteration.
21440
21441 2014-03-27 Marek Polacek <polacek@redhat.com>
21442
21443 PR c/50347
21444 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21445 types.
21446
21447 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21448
21449 * config/s390/s390.c (s390_can_use_return_insn): Check for
21450 call-saved FPRs on 31 bit.
21451
21452 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21453
21454 PR middle-end/60682
21455 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21456 if they need regimplification, just drop them instead of
21457 calling gimple_regimplify_operands on them.
21458
21459 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21460
21461 PR target/60580
21462 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21463 (aarch64_frame_pointer_required): Adjust logic.
21464 (aarch64_can_eliminate): Adjust logic.
21465 (aarch64_override_options_after_change): Adjust logic.
21466
21467 2014-03-27 Dehao Chen <dehao@google.com>
21468
21469 * ipa-inline.c (early_inliner): Update node's inline info.
21470
21471 2014-03-26 Dehao Chen <dehao@google.com>
21472
21473 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21474 compiler inserted conditional jumps for NAN float check.
21475
21476 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21477
21478 * ubsan.h (ubsan_create_data): Change second argument's type
21479 to const location_t *.
21480 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21481 _("<unknown>").
21482 (ubsan_create_data): Change second argument to const location_t *PLOC.
21483 Create Loc field whenever PLOC is non-NULL.
21484 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21485 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21486 callers.
21487
21488 PR other/59545
21489 * real.c (real_to_integer2): Change type of low to UHWI.
21490
21491 2014-03-26 Tobias Burnus <burnus@net-b.de>
21492
21493 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21494 (CILK_SELF_SPECS): New define.
21495 (driver_self_specs): Use it.
21496
21497 2014-03-26 Richard Biener <rguenther@suse.de>
21498
21499 * tree-pretty-print.c (percent_K_format): Implement special
21500 case for LTO and its stripped down BLOCK tree.
21501
21502 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21503
21504 PR sanitizer/60636
21505 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21506
21507 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21508 one range is range_int_cst_p, but not both, at least optimize
21509 addition/subtraction of 0 and multiplication by 0 or 1.
21510 * gimple-fold.c (gimple_fold_call): Fold
21511 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21512 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21513 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21514
21515 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21516
21517 PR rtl-optimization/60452
21518 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21519 <case REG>: Return 1 for invalid offsets from the frame pointer.
21520
21521 2014-03-26 Marek Polacek <polacek@redhat.com>
21522
21523 PR c/37428
21524 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21525 a structure/union.
21526
21527 2014-03-26 Marek Polacek <polacek@redhat.com>
21528
21529 PR c/39525
21530 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21531 field members.
21532
21533 2014-03-26 Marek Polacek <polacek@redhat.com>
21534
21535 PR other/59545
21536 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21537 multiplication in unsigned type.
21538
21539 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21540
21541 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21542
21543 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21544
21545 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21546
21547 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21548
21549 PR ipa/60315
21550 * cif-code.def (UNREACHABLE) New code.
21551 * ipa-inline.c (inline_small_functions): Skip edges to
21552 __builtlin_unreachable.
21553 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21554 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21555 predicate to __bulitin_unreachable.
21556 (set_cond_stmt_execution_predicate): Fix issue when
21557 invert_tree_comparison returns ERROR_MARK.
21558 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21559 propagate to inline clones.
21560 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21561 to unreachable.
21562 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21563 * cgraphclones.c (cgraph_clone_node): If call destination is already
21564 ureachable, do not redirect it back.
21565 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21566 unreachable.
21567
21568 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21569
21570 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21571 Do not modify inline clones.
21572
21573 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21574
21575 * config/i386/i386.md (general_sext_operand): New mode attr.
21576 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21577 don't generate (sign_extend (const_int)).
21578 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21579 operands[2]. Use We constraint instead of <i> and
21580 <general_sext_operand> predicate instead of <general_operand>.
21581 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21582 * config/i386/constraints.md (We): New constraint.
21583 * config/i386/predicates.md (x86_64_sext_operand,
21584 sext_operand): New predicates.
21585
21586 2014-03-25 Martin Jambor <mjambor@suse.cz>
21587
21588 PR ipa/60600
21589 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21590 inconsistent devirtualizations to __builtin_unreachable.
21591
21592 2014-03-25 Marek Polacek <polacek@redhat.com>
21593
21594 PR c/35449
21595 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21596
21597 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21598
21599 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21600 order of elements for big-endian.
21601
21602 2014-03-25 Richard Biener <rguenther@suse.de>
21603
21604 PR middle-end/60635
21605 * gimplify-me.c (gimple_regimplify_operands): Update the
21606 re-gimplifed stmt.
21607
21608 2014-03-25 Martin Jambor <mjambor@suse.cz>
21609
21610 PR ipa/59176
21611 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21612 (lto_output_varpool_node): Likewise.
21613 (input_overwrite_node): Likewise.
21614 (input_varpool_node): Likewise.
21615
21616 2014-03-25 Richard Biener <rguenther@suse.de>
21617
21618 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21619 (run_gcc): Likewise.
21620
21621 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21622
21623 * combine.c (simplify_compare_const): Add MODE argument.
21624 Handle mode_width 0 as very large mode_width.
21625 (try_combine, simplify_comparison): Adjust callers.
21626
21627 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21628 type to avoid signed integer overflow.
21629 * explow.c (plus_constant): Likewise.
21630
21631 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21632
21633 * doc/generic.texi: Correct typos.
21634
21635 2014-03-24 Tobias Burnus <burnus@net-b.de>
21636
21637 * doc/invoke.texi (-flto): Expand section about
21638 using static libraries with LTO.
21639
21640 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21641
21642 PR rtl-optimization/60501
21643 * optabs.def (addptr3_optab): New optab.
21644 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21645 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21646 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21647
21648 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21649
21650 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21651
21652 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21653
21654 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21655 _mm512_set1_pd.
21656
21657 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21658 (_mm256_undefined_ps): Define.
21659 (_mm256_undefined_pd): Define.
21660 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21661 (_mm_undefined_pd): Define.
21662 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21663 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21664 (_mm512_undefined_ps): Define.
21665 (_mm512_undefined_pd): Define.
21666 Use _mm*_undefined_*.
21667 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21668
21669 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21670
21671 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21672 (lshr_simd): DI mode added.
21673 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21674 (aarch64_ushr_simddi): Likewise.
21675 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21676 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21677 (vshrd_n_u64): Likewise.
21678
21679 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21680
21681 * Makefile.in (s-macro_list): Depend on cc1.
21682
21683 2014-03-23 Teresa Johnson <tejohnson@google.com>
21684
21685 * ipa-utils.c (ipa_print_order): Use specified dump file.
21686
21687 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21688
21689 PR rtl-optimization/60601
21690 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21691
21692 * gcc.c (eval_spec_function): Initialize save_growing_value.
21693
21694 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21695
21696 PR sanitizer/60613
21697 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21698 code == MINUS_EXPR, never swap op0 with op1.
21699
21700 * toplev.c (init_local_tick): Avoid signed integer multiplication
21701 overflow.
21702 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21703 shift by first operand's bitsize.
21704
21705 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21706
21707 PR target/60610
21708 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21709 redefine to 1 or 0.
21710 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21711 TARGET_ISA_64BIT_P(x).
21712
21713 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21714
21715 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21716 pattern for vector nor instead of subtract from splat(-1).
21717 (altivec_expand_vec_perm_const_le): Likewise.
21718
21719 2014-03-21 Richard Henderson <rth@twiddle.net>
21720
21721 PR target/60598
21722 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21723 related insns after epilogue_completed.
21724
21725 2014-03-21 Martin Jambor <mjambor@suse.cz>
21726
21727 PR ipa/59176
21728 * cgraph.h (symtab_node): New flag body_removed.
21729 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21730 when removing bodies.
21731 * symtab.c (dump_symtab_base): Dump body_removed flag.
21732 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21733 had their bodies removed.
21734
21735 2014-03-21 Martin Jambor <mjambor@suse.cz>
21736
21737 PR ipa/60419
21738 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21739 in the border.
21740
21741 2014-03-21 Richard Biener <rguenther@suse.de>
21742
21743 PR tree-optimization/60577
21744 * tree-core.h (struct tree_base): Document nothrow_flag use
21745 in DECL_NONALIASED.
21746 * tree.h (DECL_NONALIASED): New.
21747 (may_be_aliased): Adjust.
21748 * coverage.c (build_var): Set DECL_NONALIASED.
21749
21750 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21751
21752 * expr.c (expand_expr_real_1): Remove outdated comment.
21753
21754 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21755
21756 PR middle-end/60597
21757 * ira.c (adjust_cleared_regs): Call copy_rtx on
21758 *reg_equiv[REGNO (loc)].src_p before passing it to
21759 simplify_replace_fn_rtx.
21760
21761 PR target/60568
21762 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21763 into CONST, put pic register as first operand of PLUS. Use
21764 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21765
21766 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21767
21768 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21769
21770 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21771
21772 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21773 around for store forwarding issue in the FPU on the UT699.
21774 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21775 loads and operations if -mfix-ut699 is specified.
21776 (divtf3_hq): Tweak attribute.
21777 (sqrttf2_hq): Likewise.
21778
21779 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21780
21781 * calls.c (store_one_arg): Remove incorrect const qualification on the
21782 type of the temporary.
21783 * cfgexpand.c (expand_return): Likewise.
21784 * expr.c (expand_constructor): Likewise.
21785 (expand_expr_real_1): Likewise.
21786
21787 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21788
21789 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21790 of parts.
21791
21792 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21793
21794 PR target/60039
21795 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21796
21797 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21798
21799 * config/arm/aarch-common-protos.h
21800 (alu_cost_table): Fix spelling of "extend".
21801 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21802
21803 2014-03-19 Richard Biener <rguenther@suse.de>
21804
21805 PR middle-end/60553
21806 * tree-core.h (tree_type_common): Re-order pointer members
21807 to reduce recursion depth during GC walks.
21808
21809 2014-03-19 Marek Polacek <polacek@redhat.com>
21810
21811 PR sanitizer/60569
21812 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21813 before accessing it.
21814
21815 2014-03-19 Richard Biener <rguenther@suse.de>
21816
21817 PR lto/59543
21818 * lto-streamer-in.c (input_function): In WPA stage do not drop
21819 debug stmts.
21820
21821 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21822
21823 PR tree-optimization/60559
21824 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21825 with build_zero_cst assignment.
21826
21827 2014-03-18 Kai Tietz <ktietz@redhat.com>
21828
21829 PR rtl-optimization/56356
21830 * sdbout.c (sdbout_parms): Verify that parms'
21831 incoming argument is valid.
21832 (sdbout_reg_parms): Likewise.
21833
21834 2014-03-18 Richard Henderson <rth@redhat.com>
21835
21836 PR target/60562
21837 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21838 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21839 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21840
21841 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21842
21843 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21844 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21845 Italicize plugin event names in description. Explain that
21846 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21847 Remind that no GCC functions should be called after PLUGIN_FINISH.
21848 Explain what pragmas with expansion are.
21849
21850 2014-03-18 Martin Liska <mliska@suse.cz>
21851
21852 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21853 gimple call statement is update.
21854 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21855 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21856
21857 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21858
21859 PR sanitizer/60557
21860 * ubsan.c (ubsan_instrument_unreachable): Call
21861 initialize_sanitizer_builtins.
21862 (ubsan_pass): Likewise.
21863
21864 PR sanitizer/60535
21865 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21866 varpool_finalize_decl instead of rest_of_decl_compilation.
21867
21868 2014-03-18 Richard Biener <rguenther@suse.de>
21869
21870 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21871 by using bitmap_and_compl instead of bitmap_and_compl_into.
21872 (df_rd_transfer_function): Likewise.
21873
21874 2014-03-18 Richard Biener <rguenther@suse.de>
21875
21876 * doc/lto.texi (fresolution): Fix typo.
21877
21878 2014-03-18 Richard Biener <rguenther@suse.de>
21879
21880 * doc/invoke.texi (flto): Update for changes in 4.9.
21881
21882 2014-03-18 Richard Biener <rguenther@suse.de>
21883
21884 * doc/loop.texi: Remove section on the removed lambda framework.
21885 Update loop docs with recent changes in preserving loop structure.
21886
21887 2014-03-18 Richard Biener <rguenther@suse.de>
21888
21889 * doc/lto.texi (-fresolution): Document.
21890
21891 2014-03-18 Richard Biener <rguenther@suse.de>
21892
21893 * doc/contrib.texi: Adjust my name.
21894
21895 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21896
21897 PR ipa/58721
21898 * internal-fn.c: Include diagnostic-core.h.
21899 (expand_BUILTIN_EXPECT): New function.
21900 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21901 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21902 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21903 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21904 IFN_BUILTIN_EXPECT.
21905 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21906 Revert 3 argument __builtin_expect code.
21907 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21908 * gimple-fold.c (gimple_fold_call): Likewise.
21909 * tree.h (fold_builtin_expect): New prototype.
21910 * builtins.c (build_builtin_expect_predicate): Add predictor
21911 argument, if non-NULL, create 3 argument __builtin_expect.
21912 (fold_builtin_expect): No longer static. Add ARG2 argument,
21913 pass it through to build_builtin_expect_predicate.
21914 (fold_builtin_2): Adjust caller.
21915 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21916 * internal-fn.def (BUILTIN_EXPECT): New.
21917
21918 2014-03-18 Tobias Burnus <burnus@net-b.de>
21919
21920 PR ipa/58721
21921 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21922 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21923 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21924
21925 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21926
21927 PR ipa/58721
21928 * predict.c (combine_predictions_for_bb): Fix up formatting.
21929 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21930 fill what it points to if non-NULL.
21931 (tree_predict_by_opcode): Adjust caller, use the predictor.
21932 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21933
21934 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21935
21936 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21937 proper constant for the store mode.
21938
21939 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21940
21941 * symtab.c (change_decl_assembler_name): Fix transparent alias
21942 chain construction.
21943
21944 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21945
21946 * config/aarch64/aarch64.c: Correct the comments about the
21947 aarch64 stack layout.
21948
21949 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21950
21951 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21952 check for GF_OMP_FOR_KIND_FOR.
21953
21954 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21955
21956 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21957 ymm and zmm register names.
21958
21959 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21960
21961 PR target/60516
21962 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21963 note creation for the 2010-08-31 changes.
21964
21965 2014-03-17 Marek Polacek <polacek@redhat.com>
21966
21967 PR middle-end/60534
21968 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21969 as -fno-tree-loop-vectorize.
21970 (expand_omp_simd): Likewise.
21971
21972 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21973
21974 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21975 (eligible_for_call_delay): New prototype.
21976 * config/sparc/sparc.c (tls_call_delay): Rename into...
21977 (eligible_for_call_delay): ...this. Return false if the instruction
21978 cannot be put in the delay slot of a branch.
21979 (eligible_for_restore_insn): Simplify.
21980 (eligible_for_return_delay): Return false if the instruction cannot be
21981 put in the delay slot of a branch and simplify.
21982 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21983 put in the delay slot of a branch.
21984 * config/sparc/sparc.md (fix_ut699): New attribute.
21985 (tls_call_delay): Delete.
21986 (in_call_delay): Reimplement.
21987 (eligible_for_sibcall_delay): Rename into...
21988 (in_sibcall_delay): ...this.
21989 (eligible_for_return_delay): Rename into...
21990 (in_return_delay): ...this.
21991 (in_branch_delay): Reimplement.
21992 (in_uncond_branch_delay): Delete.
21993 (in_annul_branch_delay): Delete.
21994
21995 2014-03-14 Richard Henderson <rth@redhat.com>
21996
21997 PR target/60525
21998 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21999 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22000 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22001 (floathi splitters): Remove.
22002 (float<SWI48x>xf2): New pattern.
22003 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22004 code that tried to handle DImode for 32-bit, but which was excluded
22005 by the pattern's condition. Drop allocation of stack temporary.
22006 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22007 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22008 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22009 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22010 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22011 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22012 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22013 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22014 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22015 (*float<SWI48x><X87MODEF>2_i387): Remove.
22016 (all float _with_temp splitters): Remove.
22017 (*float<SWI48x><MODEF>2_i387): New pattern.
22018 (*float<SWI48><MODEF>2_sse): New pattern.
22019 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22020 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22021
22022 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22023 Marek Polacek <polacek@redhat.com>
22024
22025 PR middle-end/60484
22026 * common.opt (dump_base_name_prefixed): New Variable.
22027 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22028 if x_dump_base_name_prefixed is already set, set it at the end.
22029
22030 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22031
22032 PR rtl-optimization/60508
22033 * lra-constraints.c (get_reload_reg): Add new parameter
22034 in_subreg_p.
22035 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22036 Pass the new parameter values.
22037
22038 2014-03-14 Richard Biener <rguenther@suse.de>
22039
22040 * common.opt: Revert unintented changes from r205065.
22041 * opts.c: Likewise.
22042
22043 2014-03-14 Richard Biener <rguenther@suse.de>
22044
22045 PR middle-end/60518
22046 * cfghooks.c (split_block): Properly adjust all loops the
22047 block was a latch of.
22048
22049 2014-03-14 Martin Jambor <mjambor@suse.cz>
22050
22051 PR lto/60461
22052 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22053 and simplify it.
22054
22055 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22056
22057 PR target/59396
22058 * config/avr/avr.c (avr_set_current_function): Pass function name
22059 through default_strip_name_encoding before sanity checking instead
22060 of skipping the first char of the assembler name.
22061
22062 2014-03-13 Richard Henderson <rth@redhat.com>
22063
22064 PR debug/60438
22065 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22066 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22067 * config/i386/i386-protos.h: Likewise.
22068 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22069 in the expander instead of a splitter.
22070 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22071 any possibility of requiring a memory.
22072 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22073 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22074 (fp branch splitters): Update for ix86_split_fp_branch.
22075 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22076 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22077 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22078 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22079 (*fop_<MODEF>_3_i387): Likewise.
22080 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22081 (splitters for the fop_* register patterns): Remove.
22082 (fscalexf4_i387): Rename from *fscalexf4_i387.
22083 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22084
22085 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22086
22087 PR tree-optimization/59779
22088 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22089 type for bitsize and maxsize instead of HOST_WIDE_INT.
22090
22091 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22092
22093 PR rtl-optimization/57320
22094 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22095 the CFG after thread_prologue_and_epilogue_insns.
22096
22097 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22098
22099 PR rtl-optimization/57189
22100 * lra-constraints.c (process_alt_operands): Disfavor spilling
22101 vector pseudos.
22102
22103 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22104
22105 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22106
22107 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22108
22109 PR tree-optimization/59025
22110 PR middle-end/60418
22111 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22112 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22113
22114 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22115
22116 PR target/60486
22117 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22118 calls of avr_out_plus_1.
22119
22120 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22121
22122 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22123 BB's single pred and update the father loop's latch info later.
22124
22125 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22126
22127 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22128 (VEC_M): Likewise.
22129 (VEC_N): Likewise.
22130 (VEC_R): Likewise.
22131 (VEC_base): Likewise.
22132 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22133 registers, we need to swap double words in little endian mode.
22134
22135 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22136 to be a container mode for 128-bit integer operations added in ISA
22137 2.07. Unlike TImode and PTImode, the preferred register set is
22138 the Altivec/VMX registers for the 128-bit operations.
22139
22140 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22141 declarations.
22142 (rs6000_split_128bit_ok_p): Likewise.
22143
22144 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22145 macros for creating ISA 2.07 normal and overloaded builtin
22146 functions with 3 arguments.
22147 (BU_P8V_OVERLOAD_3): Likewise.
22148 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22149 for use as overloaded functions.
22150 (VPERM_1TI_UNS): Likewise.
22151 (VSEL_1TI): Likewise.
22152 (VSEL_1TI_UNS): Likewise.
22153 (ST_INTERNAL_1ti): Likewise.
22154 (LD_INTERNAL_1ti): Likewise.
22155 (XXSEL_1TI): Likewise.
22156 (XXSEL_1TI_UNS): Likewise.
22157 (VPERM_1TI): Likewise.
22158 (VPERM_1TI_UNS): Likewise.
22159 (XXPERMDI_1TI): Likewise.
22160 (SET_1TI): Likewise.
22161 (LXVD2X_V1TI): Likewise.
22162 (STXVD2X_V1TI): Likewise.
22163 (VEC_INIT_V1TI): Likewise.
22164 (VEC_SET_V1TI): Likewise.
22165 (VEC_EXT_V1TI): Likewise.
22166 (EQV_V1TI): Likewise.
22167 (NAND_V1TI): Likewise.
22168 (ORC_V1TI): Likewise.
22169 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22170 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22171 overloaded builtin.
22172 (VADDUQM): Likewise.
22173 (VSUBCUQ): Likewise.
22174 (VADDEUQM): Likewise.
22175 (VADDECUQ): Likewise.
22176 (VSUBEUQM): Likewise.
22177 (VSUBECUQ): Likewise.
22178
22179 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22180 __int128_t and __uint128_t types.
22181 (__uint128_type): Likewise.
22182 (altivec_categorize_keyword): Add support for vector __int128_t,
22183 vector __uint128_t, vector __int128, and vector unsigned __int128
22184 as a container type for TImode operations that need to be done in
22185 VSX/Altivec registers.
22186 (rs6000_macro_to_expand): Likewise.
22187 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22188 to support 128-bit integer instructions vaddcuq, vadduqm,
22189 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22190 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22191
22192 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22193 for V1TImode, and set up preferences to use VSX/Altivec registers.
22194 Setup VSX reload handlers.
22195 (rs6000_debug_reg_global): Likewise.
22196 (rs6000_init_hard_regno_mode_ok): Likewise.
22197 (rs6000_preferred_simd_mode): Likewise.
22198 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22199 (easy_altivec_constant): Likewise.
22200 (output_vec_const_move): Likewise.
22201 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22202 simple move.
22203 (rs6000_expand_vector_extract): Likewise.
22204 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22205 addressing.
22206 (rs6000_const_vec): Add support for V1TImode.
22207 (rs6000_emit_le_vsx_load): Swap double words when loading or
22208 storing TImode/V1TImode.
22209 (rs6000_emit_le_vsx_store): Likewise.
22210 (rs6000_emit_le_vsx_move): Likewise.
22211 (rs6000_emit_move): Add support for V1TImode.
22212 (altivec_expand_ld_builtin): Likewise.
22213 (altivec_expand_st_builtin): Likewise.
22214 (altivec_expand_vec_init_builtin): Likewise.
22215 (altivec_expand_builtin): Likewise.
22216 (rs6000_init_builtins): Add support for V1TImode type. Add
22217 support for ISA 2.07 128-bit integer builtins. Define type names
22218 for the VSX/Altivec vector types.
22219 (altivec_init_builtins): Add support for overloaded vector
22220 functions with V1TImode type.
22221 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22222 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22223 external function.
22224 (rs6000_split_128bit_ok_p): Likewise.
22225 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22226 __int128_t and vector __uint128_t.
22227
22228 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22229 and mode attributes.
22230 (VSX_M): Likewise.
22231 (VSX_M2): Likewise.
22232 (VSm): Likewise.
22233 (VSs): Likewise.
22234 (VSr): Likewise.
22235 (VSv): Likewise.
22236 (VS_scalar): Likewise.
22237 (VS_double): Likewise.
22238 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22239
22240 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22241 we support the ISA 2.07 128-bit integer arithmetic instructions.
22242 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22243 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22244 and TImode types for use with the builtin functions.
22245 (V1TI_type_node): Likewise.
22246 (unsigned_V1TI_type_node): Likewise.
22247 (intTI_type_internal_node): Likewise.
22248 (uintTI_type_internal_node): Likewise.
22249
22250 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22251 128-bit builtin functions.
22252 (UNSPEC_VADDEUQM): Likewise.
22253 (UNSPEC_VADDECUQ): Likewise.
22254 (UNSPEC_VSUBCUQ): Likewise.
22255 (UNSPEC_VSUBEUQM): Likewise.
22256 (UNSPEC_VSUBECUQ): Likewise.
22257 (VM): Add V1TImode to vector mode iterators.
22258 (VM2): Likewise.
22259 (VI_unit): Likewise.
22260 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22261 (altivec_vaddcuq): Likewise.
22262 (altivec_vsubuqm): Likewise.
22263 (altivec_vsubcuq): Likewise.
22264 (altivec_vaddeuqm): Likewise.
22265 (altivec_vaddecuq): Likewise.
22266 (altivec_vsubeuqm): Likewise.
22267 (altivec_vsubecuq): Likewise.
22268
22269 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22270 mode iterators.
22271 (BOOL_128): Likewise.
22272 (BOOL_REGS_OUTPUT): Likewise.
22273 (BOOL_REGS_OP1): Likewise.
22274 (BOOL_REGS_OP2): Likewise.
22275 (BOOL_REGS_UNARY): Likewise.
22276 (BOOL_REGS_AND_CR0): Likewise.
22277
22278 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22279 128-bit integer builtin support.
22280 (vec_vadduqm): Likewise.
22281 (vec_vaddecuq): Likewise.
22282 (vec_vaddeuqm): Likewise.
22283 (vec_vsubecuq): Likewise.
22284 (vec_vsubeuqm): Likewise.
22285 (vec_vsubcuq): Likewise.
22286 (vec_vsubuqm): Likewise.
22287
22288 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22289 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22290 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22291 128-bit integer add/subtract to ISA 2.07.
22292
22293 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22294
22295 * config/arc/arc.c (arc_predicate_delay_insns):
22296 Fix third argument passed to conditionalize_nonjump.
22297
22298 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22299
22300 * config/aarch64/aarch64-builtins.c
22301 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22302 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22303 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22304 instead of __builtin_lfloor.
22305 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22306
22307 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22308
22309 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22310 (tree_ssa_ifcombine_bb_1): New function.
22311 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22312 is an empty forwarder block to then_bb or vice versa and then_bb
22313 and else_bb are effectively swapped.
22314
22315 2014-03-12 Christian Bruel <christian.bruel@st.com>
22316
22317 PR target/60264
22318 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22319 REG_CFA_DEF_CFA note.
22320 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22321 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22322
22323 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22324
22325 PR tree-optimization/60454
22326 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22327
22328 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22329
22330 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22331 Do not define target_cpu_default2 to generic.
22332 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22333 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22334 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22335
22336 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22337 Marc Glisse <marc.glisse@inria.fr>
22338
22339 PR tree-optimization/60502
22340 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22341 instead of build_low_bits_mask.
22342
22343 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22344
22345 PR middle-end/60482
22346 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22347 if there are multiple uses, but op doesn't live on E edge.
22348 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22349 clobber stmts before __builtin_unreachable.
22350
22351 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22352
22353 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22354 hard_frame_pointer_rtx.
22355 * cse.c (cse_insn): Remove volatile check.
22356 * cselib.c (cselib_process_insn): Likewise.
22357 * dse.c (scan_insn): Likewise.
22358
22359 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22360
22361 * config/arc/arc.c (conditionalize_nonjump): New function,
22362 broken out of ...
22363 (arc_ifcvt): ... this.
22364 (arc_predicate_delay_insns): Use it.
22365
22366 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22367
22368 * config/arc/predicates.md (extend_operand): During/after reload,
22369 allow const_int_operand.
22370 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22371 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22372 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22373 to "i".
22374 (umulsi3_highpart_i): Likewise.
22375
22376 2014-03-11 Richard Biener <rguenther@suse.de>
22377
22378 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22379 Add asserts to guard possible wrong-code bugs.
22380
22381 2014-03-11 Richard Biener <rguenther@suse.de>
22382
22383 PR tree-optimization/60429
22384 PR tree-optimization/60485
22385 * tree-ssa-structalias.c (set_union_with_increment): Properly
22386 take into account all fields that overlap the shifted vars.
22387 (do_sd_constraint): Likewise.
22388 (do_ds_constraint): Likewise.
22389 (get_constraint_for_ptr_offset): Likewise.
22390
22391 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22392
22393 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22394 (nios2_compute_frame_layout):
22395 Add calculation of cfun->machine->fp_save_offset.
22396 (nios2_expand_prologue): Correct setting of frame pointer register
22397 in prologue.
22398 (nios2_expand_epilogue): Update recovery of stack pointer from
22399 frame pointer accordingly.
22400 (nios2_initial_elimination_offset): Update calculation of offset
22401 for eliminating to HARD_FRAME_POINTER_REGNUM.
22402
22403 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22404
22405 PR ipa/60457
22406 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22407 cgraph_get_create_node on VAR_DECLs.
22408
22409 2014-03-10 Richard Biener <rguenther@suse.de>
22410
22411 PR middle-end/60474
22412 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22413
22414 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22415
22416 * config/vms/vms.opt (vms_float_format): New variable.
22417
22418 2014-03-08 Tobias Burnus <burnus@net-b.de>
22419
22420 * doc/invoke.texi (-fcilkplus): Update implementation status.
22421
22422 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22423 Richard Biener <rguenther@suse.de>
22424
22425 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22426 consistently accross all TUs.
22427 (run_gcc): Enable -fshort-double automatically at link at link-time
22428 and disallow override.
22429
22430 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22431
22432 PR target/58271
22433 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22434 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22435 if they can't be used.
22436
22437 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22438
22439 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22440 for Solaris 11/x86 ld.
22441 * configure: Regenerate.
22442
22443 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22444
22445 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22446 (LIB_TLS_SPEC): Save as ld_tls_libs.
22447 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22448 (HAVE_AS_IX86_TLSLDM): New test.
22449 * configure, config.in: Regenerate.
22450 * config/i386/i386.c (legitimize_tls_address): Fall back to
22451 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22452 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22453 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22454 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22455
22456 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22457
22458 * common.opt (fira-loop-pressure): Mark as optimization.
22459
22460 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22461
22462 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22463 an OpenMP mappable type.
22464
22465 2014-03-06 Matthias Klose <doko@ubuntu.com>
22466
22467 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22468 MULTILIB_OSDIRNAMES is not defined.
22469
22470 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22471 Meador Inge <meadori@codesourcery.com>
22472
22473 PR target/58595
22474 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22475 (arm_legitimize_address): Call legitimize_tls_address for any
22476 arm_tls_referenced_p expression, handle constant addend. Call it
22477 before testing for !TARGET_ARM.
22478 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22479
22480 2014-03-06 Richard Biener <rguenther@suse.de>
22481
22482 PR middle-end/60445
22483 PR lto/60424
22484 PR lto/60427
22485 Revert
22486 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22487
22488 * tree-streamer.c (record_common_node): Assert we don't record
22489 nodes with type double.
22490 (preload_common_node): Skip type double, complex double and double
22491 pointer since it is now frontend dependent due to fshort-double option.
22492
22493 2014-03-06 Richard Biener <rguenther@suse.de>
22494
22495 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22496 or -fno-lto is specified and the linker has full plugin support.
22497 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22498 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22499 * lto-wrapper.c (merge_and_complain): Merge compile-time
22500 optimization levels.
22501 (run_gcc): And pass it through to the link options.
22502
22503 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22504
22505 PR debug/60381
22506 Revert:
22507 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22508 PR debug/59992
22509 * cselib.c (remove_useless_values): Skip to avoid quadratic
22510 behavior if the condition moved from...
22511 (cselib_process_insn): ... here holds.
22512
22513 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22514
22515 PR plugins/59335
22516 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22517 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22518
22519 PR plugins/59335
22520 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22521 (TM_H): Add x86-tune.def.
22522
22523 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22524
22525 * config/aarch64/aarch64.c (generic_tunings):
22526 Use cortexa57_extra_costs.
22527
22528 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR lto/60404
22531 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22532 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22533 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22534 cost for in_lto_p.
22535
22536 2014-03-04 Heiher <r@hev.cc>
22537
22538 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22539 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22540
22541 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22542
22543 * config/i386/predicates.md (const2356_operand): Change to ...
22544 (const2367_operand): ... this.
22545 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22546 const2367_operand.
22547 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22548 (*avx512pf_scatterpf<mode>sf): Ditto.
22549 (avx512pf_scatterpf<mode>df): Ditto.
22550 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22551 (*avx512pf_scatterpf<mode>df): Ditto.
22552 * config/i386/i386.c (ix86_expand_builtin): Update
22553 incorrect hint operand error message.
22554
22555 2014-03-04 Richard Biener <rguenther@suse.de>
22556
22557 * lto-section-in.c (lto_get_section_data): Fix const cast.
22558
22559 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22560
22561 * tree-streamer.c (record_common_node): Assert we don't record
22562 nodes with type double.
22563 (preload_common_node): Skip type double, complex double and double
22564 pointer since it is now frontend dependent due to fshort-double option.
22565
22566 2014-03-04 Richard Biener <rguenther@suse.de>
22567
22568 PR lto/60405
22569 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22570 (lto_input_toplevel_asms): Likewise.
22571 * lto-section-in.c (lto_get_section_data): Instead do it here
22572 for every section.
22573
22574 2014-03-04 Richard Biener <rguenther@suse.de>
22575
22576 PR tree-optimization/60382
22577 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22578 dead PHIs a reduction.
22579
22580 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22581
22582 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22583 hint value.
22584 (_mm_prefetch): Move out of GCC target("sse") pragma.
22585 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22586 GCC target("prfchw") pragma.
22587 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22588 for locality <= 2.
22589 * config/i386/i386.c (ix86_option_override_internal): Enable
22590 -mprfchw with -mprefetchwt1.
22591
22592 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22593
22594 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22595 Mark as varying.
22596
22597 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22598
22599 * opts.h (CL_PCH_IGNORE): Define.
22600 * targhooks.c (option_affects_pch_p):
22601 Return false for options that have CL_PCH_IGNORE set.
22602 * opt-functions.awk: Process PchIgnore.
22603 * doc/options.texi: Document PchIgnore.
22604
22605 * config/arc/arc.opt (misize): Add PchIgnore property.
22606
22607 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22608
22609 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22610 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22611 constraint on constants to permit them being loaded into
22612 GENERAL_REGS or BASE_REGS.
22613
22614 2014-03-03 Nick Clifton <nickc@redhat.com>
22615
22616 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22617 anti-cacnonical alternatives.
22618 (negandhi3_real): New pattern.
22619 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22620
22621 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22622
22623 * config/avr/avr-mcus.def: Remove atxmega16x1.
22624 * config/avr/avr-tables.opt: Regenerate.
22625 * config/avr/t-multilib: Regenerate.
22626 * doc/avr-mmcu.texi: Regenerate.
22627
22628 2014-03-03 Tobias Grosser <tobias@grosser.es>
22629 Mircea Namolaru <mircea.namolaru@inria.fr>
22630
22631 PR tree-optimization/58028
22632 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22633 scalar dimensions.
22634
22635 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22636
22637 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22638 not handled by recognizers.
22639
22640 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22641
22642 PR middle-end/60175
22643 * function.c (expand_function_end): Don't emit
22644 clobber_return_register sequence if clobber_after is a BARRIER.
22645 * cfgexpand.c (construct_exit_block): Append instructions before
22646 return_label to prev_bb.
22647
22648 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22649
22650 * config/rs6000/constraints.md: Document reserved use of "wc".
22651
22652 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22653
22654 PR ipa/60150
22655 * ipa.c (function_and_variable_visibility): When dissolving comdat
22656 group, also set all symbols to local.
22657
22658 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22659
22660 PR ipa/60306
22661
22662 Revert:
22663 2013-12-14 Jan Hubicka <jh@suse.cz>
22664 PR middle-end/58477
22665 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22666
22667 2014-03-02 Jon Beniston <jon@beniston.com>
22668
22669 PR bootstrap/48230
22670 PR bootstrap/50927
22671 PR bootstrap/52466
22672 PR target/46898
22673 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22674 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22675 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22676 (simple_return, *simple_return): New patterns
22677 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22678 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22679
22680 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22681
22682 * dwarf2out.c (gen_subprogram_die): Tidy.
22683
22684 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22685
22686 PR target/60071
22687 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22688 (*mov_t_msb_neg_negc): ... this new insn.
22689
22690 2014-02-28 Jason Merrill <jason@redhat.com>
22691
22692 PR c++/58678
22693 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22694 function.
22695
22696 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22697
22698 PR c++/60314
22699 * dwarf2out.c (decltype_auto_die): New static.
22700 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22701 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22702 (is_cxx_auto): Likewise.
22703
22704 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22705
22706 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22707 we are not using general regs only.
22708
22709 2014-02-28 Richard Biener <rguenther@suse.de>
22710
22711 PR target/60280
22712 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22713 previous fix and only allow to remove trivial pre-headers
22714 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22715 (remove_forwarder_block): Properly update the latch of a loop.
22716
22717 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22718
22719 PR debug/59992
22720 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22721 (cselib_preserved_hash_table): New.
22722 (preserve_constants_and_equivs): Move preserved vals to it.
22723 (cselib_find_slot): Look it up first.
22724 (cselib_init): Initialize it.
22725 (cselib_finish): Release it.
22726 (dump_cselib_table): Dump it.
22727
22728 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22729
22730 PR debug/59992
22731 * cselib.c (remove_useless_values): Skip to avoid quadratic
22732 behavior if the condition moved from...
22733 (cselib_process_insn): ... here holds.
22734
22735 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22736
22737 PR debug/57232
22738 * var-tracking.c (vt_initialize): Apply the same condition to
22739 preserve the CFA base value.
22740
22741 2014-02-28 Joey Ye <joey.ye@arm.com>
22742
22743 PR target/PR60169
22744 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22745 if reload in progress or completed.
22746
22747 2014-02-28 Tobias Burnus <burnus@net-b.de>
22748
22749 PR middle-end/60147
22750 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22751 NAMELIST_DECL.
22752
22753 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22754
22755 * doc/tm.texi.in (Condition Code Status): Update documention for
22756 relative locations of cc0-setter and cc0-user.
22757
22758 2014-02-27 Jeff Law <law@redhat.com>
22759
22760 PR rtl-optimization/52714
22761 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22762 into two independent simple sets, if I3 is a jump, ensure the
22763 pattern we place into I3 is a (set (pc) ...).
22764
22765 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22766 Jeff Law <law@redhat.com>
22767
22768 PR rtl-optimization/49847
22769 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22770 are in different blocks.
22771 * doc/tm.texi (Condition Code Status): Update documention for
22772 relative locations of cc0-setter and cc0-user.
22773
22774 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22775
22776 PR target/59222
22777 * lra.c (lra_emit_add): Check SUBREG too.
22778
22779 2014-02-27 Andreas Schwab <schwab@suse.de>
22780
22781 * config/m68k/m68k.c (m68k_option_override): Disable
22782 -flive-range-shrinkage for classic m68k.
22783 (m68k_override_options_after_change): Likewise.
22784
22785 2014-02-27 Marek Polacek <polacek@redhat.com>
22786
22787 PR middle-end/59223
22788 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22789 -Wmaybe-uninitialized.
22790
22791 2014-02-27 Alan Modra <amodra@gmail.com>
22792
22793 PR target/57936
22794 * reload1.c (emit_input_reload_insns): When reload_override_in,
22795 set old to rl->in_reg when rl->in_reg is a subreg.
22796
22797 2014-02-26 Richard Biener <rguenther@suse.de>
22798
22799 PR bootstrap/60343
22800 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22801
22802 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22803
22804 * common/config/i386/predicates.md (const1256_operand): Remove.
22805 (const2356_operand): New.
22806 (const_1_to_2_operand): Remove.
22807 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22808 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22809 (*avx512pf_gatherpf<mode>sf): Ditto.
22810 (avx512pf_gatherpf<mode>df): Ditto.
22811 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22812 (*avx512pf_gatherpf<mode>df): Ditto.
22813 (avx512pf_scatterpf<mode>sf): Ditto.
22814 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22815 (*avx512pf_scatterpf<mode>sf): Ditto.
22816 (avx512pf_scatterpf<mode>df): Ditto.
22817 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22818 (*avx512pf_scatterpf<mode>df): Ditto.
22819 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22820
22821 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22822
22823 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22824 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22825 (_mm512_mask_testn_epi64_mask): Move to ...
22826 * config/i386/avx512cdintrin.h: Here.
22827 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22828 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22829 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22830 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22831 TARGET_AVX512F from TARGET_AVX512CD.
22832
22833 2014-02-26 Richard Biener <rguenther@suse.de>
22834
22835 PR ipa/60327
22836 * ipa.c (walk_polymorphic_call_targets): Properly guard
22837 call to inline_update_overall_summary.
22838
22839 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22840
22841 PR target/60280
22842 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22843 and latches only if requested. Fix latch if it is removed.
22844 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22845 LOOPS_HAVE_PREHEADERS.
22846
22847 2014-02-25 Andrew Pinski <apinski@cavium.com>
22848
22849 * builtins.c (expand_builtin_thread_pointer): Create a new target
22850 when the target is NULL.
22851
22852 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22853
22854 PR rtl-optimization/60317
22855 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22856 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22857 * lra-assigns.c: Include params.h.
22858 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22859 other reload pseudos considerations.
22860
22861 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22862
22863 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22864 to use canonical form for nor<mode>3.
22865
22866 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22867
22868 PR target/55426
22869 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22870 conversions.
22871
22872 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22873
22874 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22875 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22876 (ix86_handle_option): Handle OPT_mprefetchwt1.
22877 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22878 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22879 PREFETCHWT1 CPUID.
22880 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22881 OPTION_MASK_ISA_PREFETCHWT1.
22882 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22883 (PTA_PREFETCHWT1): New.
22884 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22885 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22886 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22887 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22888 (*prefetch_avx512pf_<mode>_: Change into ...
22889 (*prefetch_prefetchwt1_<mode>: This.
22890 * config/i386/i386.opt (mprefetchwt1): New.
22891 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22892 (_mm_prefetch): Handle intent to write.
22893 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22894
22895 2014-02-25 Richard Biener <rguenther@suse.de>
22896
22897 PR middle-end/60291
22898 * emit-rtl.c (mem_attrs_htab): Remove.
22899 (mem_attrs_htab_hash): Likewise.
22900 (mem_attrs_htab_eq): Likewise.
22901 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22902 (init_emit_once): Do not allocate mem_attrs_htab.
22903
22904 2014-02-25 Richard Biener <rguenther@suse.de>
22905
22906 PR lto/60319
22907 * lto-opts.c (lto_write_options): Output non-explicit conservative
22908 -fwrapv, -fno-trapv and -fno-strict-overflow.
22909 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22910 (run_gcc): And pass them through.
22911
22912 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22913
22914 * sel-sched.c (calculate_new_fences): New parameter ptime.
22915 Calculate it as a maximum over all fence cycles.
22916 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22917 Print the final schedule timing when sched_verbose.
22918
22919 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22920
22921 PR rtl-optimization/60292
22922 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22923 bit fot the fence instruction.
22924
22925 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22926
22927 * calls.h: Fix typo in comment.
22928
22929 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22930
22931 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22932 adjusting offsetable addresses.
22933
22934 2014-02-24 Guozhi Wei <carrot@google.com>
22935
22936 * sparseset.h (sparseset_pop): Fix the wrong index.
22937
22938 2014-02-24 Walter Lee <walt@tilera.com>
22939
22940 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22941 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22942 triplet.
22943 * common/config/tilegx/tilegx-common.c
22944 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22945 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22946 (LINK_SPEC): Ditto.
22947 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22948 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22949 (tilegx_gimplify_va_arg_expr): Handle big endian.
22950 (tilegx_expand_unaligned_load): Ditto.
22951 (tilegx_expand_unaligned_store): Ditto.
22952 (TARGET_RETURN_IN_MSB): New.
22953 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22954 (TARGET_ENDIAN_DEFAULT): New.
22955 (TARGET_BIG_ENDIAN): Handle big endian.
22956 (BYTES_BIG_ENDIAN): Ditto.
22957 (WORDS_BIG_ENDIAN): Ditto.
22958 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22959 (ENDIAN_SPEC): New.
22960 (EXTRA_SPECS): New.
22961 * config/tilegx/tilegx.md (extv): Handle big endian.
22962 (extzv): Ditto.
22963 (insn_st<n>): Ditto.
22964 (insn_st<n>_add<bitsuffix>): Ditto.
22965 (insn_stnt<n>): Ditto.
22966 (insn_stnt<n>_add<bitsuffix>):Ditto.
22967 (vec_interleave_highv8qi): Handle big endian.
22968 (vec_interleave_highv8qi_be): New.
22969 (vec_interleave_highv8qi_le): New.
22970 (insn_v1int_h): Handle big endian.
22971 (vec_interleave_lowv8qi): Handle big endian.
22972 (vec_interleave_lowv8qi_be): New.
22973 (vec_interleave_lowv8qi_le): New.
22974 (insn_v1int_l): Handle big endian.
22975 (vec_interleave_highv4hi): Handle big endian.
22976 (vec_interleave_highv4hi_be): New.
22977 (vec_interleave_highv4hi_le): New.
22978 (insn_v2int_h): Handle big endian.
22979 (vec_interleave_lowv4hi): Handle big endian.
22980 (vec_interleave_lowv4hi_be): New.
22981 (vec_interleave_lowv4hi_le): New.
22982 (insn_v2int_l): Handle big endian.
22983 (vec_interleave_highv2si): Handle big endian.
22984 (vec_interleave_highv2si_be): New.
22985 (vec_interleave_highv2si_le): New.
22986 (insn_v4int_h): Handle big endian.
22987 (vec_interleave_lowv2si): Handle big endian.
22988 (vec_interleave_lowv2si_be): New.
22989 (vec_interleave_lowv2si_le): New.
22990 (insn_v4int_l): Handle big endian.
22991 * config/tilegx/tilegx.opt (mbig-endian): New option.
22992 (mlittle-endian): New option.
22993 * doc/install.texi: Document tilegxbe-linux.
22994 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22995
22996 2014-02-24 Martin Jambor <mjambor@suse.cz>
22997
22998 PR ipa/60266
22999 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23000 there are no parameter descriptors.
23001
23002 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23003
23004 PR rtl-optimization/60268
23005 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23006 initialization to ...
23007 (sched_rgn_init): ... here.
23008 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23009
23010 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23011
23012 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23013 names.
23014
23015 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23016
23017 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23018 definition.
23019
23020 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23021
23022 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23023 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23024
23025 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23026
23027 * config/microblaze/predicates.md: Add cmp_op predicate.
23028 * config/microblaze/microblaze.md: Add branch_compare instruction
23029 which uses cmp_op predicate and emits cmp insn before branch.
23030 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23031 to microblaze_expand_conditional_branch and consolidate logic.
23032 (microblaze_expand_conditional_branch): emit branch_compare
23033 insn instead of handling cmp op separate from branch insn.
23034
23035 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23036
23037 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23038 to permit subregs.
23039
23040 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23041
23042 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23043 define_insn with define_expand and new define_insn
23044 *altivec_lve<VI_char>x_internal.
23045 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23046 and new define_insn *altivec_stve<VI_char>x_internal.
23047 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23048 prototype.
23049 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23050 lve*x built-ins.
23051 (altivec_expand_stvex_be): New function.
23052
23053 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23054
23055 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23056 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23057 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23058 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23059
23060 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23061
23062 PR target/60298
23063 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23064 instead of emit_move_insn.
23065
23066 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23067
23068 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23069 vspltw with vsldoi.
23070 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23071 gen_altivec_vsumsws.
23072
23073 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23074
23075 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23076 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23077 (altivec_lvxl_<mode>): New define_expand incorporating
23078 -maltivec=be semantics where needed.
23079 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23080 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23081 semantics where needed.
23082 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23083 (altivec_stvx_<mode>): New define_expand incorporating
23084 -maltivec=be semantics where needed.
23085 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23086 VM2 iterator instead of V4SI.
23087 (altivec_stvxl_<mode>): New define_expand incorporating
23088 -maltivec=be semantics where needed.
23089 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23090 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23091 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23092 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23093 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23094 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23095 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23096 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23097 ALTIVEC_BUILTIN_STVXL.
23098 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23099 (altivec_expand_stvx_be): Likewise.
23100 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23101 (altivec_expand_lvx_be): Likewise.
23102 (altivec_expand_stvx_be): Likewise.
23103 (altivec_expand_builtin): Add cases for
23104 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23105 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23106 (altivec_init_builtins): Add definitions for
23107 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23108 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23109
23110 2014-02-21 Catherine Moore <clm@codesourcery.com>
23111
23112 * doc/invoke.texi (mvirt, mno-virt): Document.
23113 * config/mips/mips.opt (mvirt): New option.
23114 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23115
23116 2014-02-21 Richard Biener <rguenther@suse.de>
23117
23118 PR tree-optimization/60276
23119 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23120 (STMT_VINFO_MIN_NEG_DIST): New macro.
23121 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23122 STMT_VINFO_MIN_NEG_DIST.
23123 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23124 made for negative dependence distances still hold.
23125
23126 2014-02-21 Richard Biener <rguenther@suse.de>
23127
23128 PR middle-end/60291
23129 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23130 DECL_INITIAL for globals not in the current function context.
23131
23132 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23133
23134 PR tree-optimization/56490
23135 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23136 * tree-ssa-uninit.c: Include params.h.
23137 (compute_control_dep_chain): Add num_calls argument, return false
23138 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23139 num_calls to recursive call.
23140 (find_predicates): Change dep_chain into normal array,
23141 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23142 variable and adjust compute_control_dep_chain caller.
23143 (find_def_preds): Likewise.
23144
23145 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23146
23147 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23148 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23149
23150 2014-02-21 Nick Clifton <nickc@redhat.com>
23151
23152 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23153 (pushhi1): Likewise.
23154 (popqi1): Add mode to pre_dec.
23155 (pophi1): Likewise.
23156
23157 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23158
23159 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23160 mode for mask of V8SFmode permutation.
23161
23162 2014-02-20 Richard Henderson <rth@redhat.com>
23163
23164 PR c++/60272
23165 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23166 a new pseudo for OLDVAL.
23167
23168 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23169
23170 PR target/57896
23171 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23172 gen_reg_rtx if d->testing_p.
23173 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23174 if d->testing_p and we will certainly return true.
23175 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23176 if d->testing_p.
23177
23178 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23179
23180 * emit-rtl.c (gen_reg_rtx): Assert that
23181 crtl->emit.regno_pointer_align_length is non-zero.
23182
23183 2014-02-20 Richard Henderson <rth@redhat.com>
23184
23185 PR c++/60272
23186 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23187 on failure the store back into EXPECT.
23188
23189 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23190 Sandra Loosemore <sandra@codesourcery.com>
23191
23192 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23193 * config/nios2/nios2.c (nios2_function_profiler): Add
23194 -fPIC (flag_pic == 2) support.
23195 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23196 (nios2_large_offset_p): New function.
23197 (nios2_unspec_reloc_p): Move up position, update to use
23198 nios2_large_offset_p.
23199 (nios2_unspec_address): Remove function.
23200 (nios2_unspec_offset): New function.
23201 (nios2_large_got_address): New function.
23202 (nios2_got_address): Add large offset support.
23203 (nios2_legitimize_tls_address): Update usage of removed and new
23204 functions.
23205 (nios2_symbol_binds_local_p): New function.
23206 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23207 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23208 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23209 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23210 processing for (const (unspec ...)).
23211 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23212
23213 2014-02-20 Richard Biener <rguenther@suse.de>
23214
23215 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23216 doing the substitution.
23217 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23218
23219 2014-02-20 Martin Jambor <mjambor@suse.cz>
23220
23221 PR ipa/55260
23222 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23223 info when checking whether lattices are bottom.
23224
23225 2014-02-20 Richard Biener <rguenther@suse.de>
23226
23227 PR middle-end/60221
23228 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23229 regions at -O0.
23230
23231 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23232
23233 PR ipa/58555
23234 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23235 parameter specifying the scaling.
23236 (inline_call): Update.
23237 (want_inline_recursively): Guard division by zero.
23238 (recursive_inlining): Update.
23239 * ipa-inline.h (clone_inlined_nodes): Update.
23240
23241 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23242
23243 PR target/60204
23244 * config/i386/i386.c (classify_argument): Pass structures of size
23245 64 bytes or less in register.
23246
23247 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23248 Kirill Yukhin <kirill.yukhin@intel.com>
23249
23250 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23251 (_mm_rcp28_round_ss): Ditto.
23252 (_mm_rsqrt28_round_sd): Ditto.
23253 (_mm_rsqrt28_round_ss): Ditto.
23254 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23255 (_mm_rcp14_round_ss): Ditto.
23256 (_mm_rsqrt14_round_sd): Ditto.
23257 (_mm_rsqrt14_round_ss): Ditto.
23258 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23259 the first input operand, get rid of match_dup.
23260 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23261 attribute to sse.
23262 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23263 Ditto.
23264 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23265 operand as the first input operand, set type attribute.
23266 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23267 Set type attribute.
23268 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23269 operand as the first input operand, set type attribute.
23270
23271 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23272
23273 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23274 bit of zero.
23275
23276 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23277
23278 PR target/60207
23279 * config/i386/i386.c (construct_container): Remove TFmode check
23280 for X86_64_INTEGER_CLASS.
23281
23282 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23283
23284 PR target/59794
23285 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23286 only when -Wpsabi is enabled.
23287
23288 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23289
23290 PR target/59799
23291 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23292 passing arrays in registers are the same as for structs, so remove the
23293 special case for them.
23294
23295 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23296
23297 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23298 destination type, extract only the valid bits if the source type is not
23299 integral and has a different mode.
23300
23301 2014-02-19 Richard Biener <rguenther@suse.de>
23302
23303 PR ipa/60243
23304 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23305 for all calls.
23306
23307 2014-02-19 Richard Biener <rguenther@suse.de>
23308
23309 PR ipa/60243
23310 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23311 (ipa_modify_call_arguments): Emit an argument load explicitely and
23312 preserve virtual SSA form there and for the replacement call.
23313 Do not update SSA form nor free dominance info.
23314
23315 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23316
23317 * ipa.c (function_and_variable_visibility): Also clear WEAK
23318 flag when disolving COMDAT_GROUP.
23319
23320 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23321
23322 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23323 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23324 not devirtualizing.
23325 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23326 do more sanity checks.
23327 (detect_type_change): Return true when giving up early.
23328 (compute_complex_assign_jump_func): Fix type parameter of
23329 ipa_set_ancestor_jf.
23330 (compute_complex_ancestor_jump_func): Likewise.
23331 (update_jump_functions_after_inlining): Fix updating of
23332 ancestor function.
23333 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23334
23335 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23336
23337 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23338 inline clones when edge disappears.
23339
23340 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23341
23342 PR target/60203
23343 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23344 Split 64-bit moves into 2 patterns. Do not allow the use of
23345 direct move for TDmode in little endian, since the decimal value
23346 has little endian bytes within a word, but the 64-bit pieces are
23347 ordered in a big endian fashion, and normal subreg's of TDmode are
23348 not allowed.
23349 (mov<mode>_64bit_dm): Likewise.
23350 (movtd_64bit_nodm): Likewise.
23351
23352 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23353
23354 PR tree-optimization/60174
23355 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23356 statement of an SSA_NAME that occurs in an abnormal PHI node.
23357
23358 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23359
23360 PR sanitizer/60142
23361 * final.c (SEEN_BB): Remove.
23362 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23363 (final_scan_insn): Don't force_source_line on second
23364 NOTE_INSN_BASIC_BLOCK.
23365
23366 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23367
23368 PR target/60205
23369 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23370 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23371 (type_natural_mode): Warn ABI change when %zmm register is not
23372 available for AVX512F vector value passing.
23373
23374 2014-02-18 Kai Tietz <ktietz@redhat.com>
23375
23376 PR target/60193
23377 * config/i386/i386.c (ix86_expand_prologue): Use value in
23378 rax register as displacement when restoring %r10 or %rax.
23379 Fix wrong offset when restoring both registers.
23380
23381 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23382
23383 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23384 assertion with conditional return.
23385
23386 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23387 Uros Bizjak <ubizjak@gmail.com>
23388
23389 PR driver/60233
23390 * config/i386/driver-i386.c (host_detect_local_cpu): If
23391 YMM state is not saved by the OS, also clear has_f16c. Move
23392 CPUID 0x80000001 handling before YMM state saving checking.
23393
23394 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23395
23396 PR rtl-optimization/58960
23397 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23398 factored out from ...
23399 (sched_init): ... here.
23400 (free_global_sched_pressure_data): New, factored out from ...
23401 (sched_finish): ... here.
23402 * sched-int.h (free_global_sched_pressure_data): Declare.
23403 * sched-rgn.c (nr_regions_initial): New static global.
23404 (haifa_find_rgns): Initialize it.
23405 (schedule_region): Disable sched-pressure for the newly
23406 generated regions.
23407
23408 2014-02-17 Richard Biener <rguenther@suse.de>
23409
23410 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23411 release SSA defs of pattern stmts.
23412
23413 2014-02-17 Richard Biener <rguenther@suse.de>
23414
23415 * tree-inline.c (expand_call_inline): Release the virtual
23416 operand defined by the call we are about to inline.
23417
23418 2014-02-17 Richard Biener <rguenther@suse.de>
23419
23420 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23421
23422 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23423 Ilya Tocar <ilya.tocar@intel.com>
23424
23425 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23426 arguments order in builtin.
23427 (_mm512_permutexvar_epi64): Ditto.
23428 (_mm512_mask_permutexvar_epi64): Ditto
23429 (_mm512_maskz_permutexvar_epi32): Ditto
23430 (_mm512_permutexvar_epi32): Ditto
23431 (_mm512_mask_permutexvar_epi32): Ditto
23432
23433 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23434
23435 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23436 (p8_vmrgow): Likewise.
23437
23438 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23439
23440 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23441 endian targets.
23442
23443 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23444
23445 PR target/60203
23446 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23447 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23448 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23449 using direct move instructions on ISA 2.07. Also adjust
23450 instruction length for 64-bit.
23451 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23452 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23453
23454 2014-02-15 Alan Modra <amodra@gmail.com>
23455
23456 PR target/58675
23457 PR target/57935
23458 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23459 find_replacement on parts of insn rtl that might be reloaded.
23460
23461 2014-02-15 Richard Biener <rguenther@suse.de>
23462
23463 PR tree-optimization/60183
23464 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23465 (tree_ssa_phiprop): Calculate and free post-dominators.
23466
23467 2014-02-14 Jeff Law <law@redhat.com>
23468
23469 PR rtl-optimization/60131
23470 * ree.c (get_extended_src_reg): New function.
23471 (combine_reaching_defs): Use it rather than assuming location of REG.
23472 (find_and_remove_re): Verify first operand of extension is
23473 a REG before adding the insns to the copy list.
23474
23475 2014-02-14 Roland McGrath <mcgrathr@google.com>
23476
23477 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23478 * configure: Regenerated.
23479 * config.in: Regenerated.
23480 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23481 instead of ASM_SHORT.
23482
23483 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23484 Richard Earnshaw <rearnsha@arm.com>
23485
23486 PR rtl-optimization/59535
23487 * lra-constraints.c (process_alt_operands): Encourage alternative
23488 when unassigned pseudo class is superset of the alternative class.
23489 (inherit_reload_reg): Don't inherit when optimizing for code size.
23490 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23491 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23492 modes not less than 4 for Thumb1.
23493
23494 2014-02-14 Kyle McMartin <kyle@redhat.com>
23495
23496 PR pch/60010
23497 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23498
23499 2014-02-14 Richard Biener <rguenther@suse.de>
23500
23501 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23502 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23503 Do not strip INDIRECT_REFs.
23504
23505 2014-02-14 Richard Biener <rguenther@suse.de>
23506
23507 PR lto/60179
23508 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23509 DECL_FUNCTION_SPECIFIC_TARGET.
23510 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23511 * tree-streamer-out.c (pack_ts_target_option): Remove.
23512 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23513 (write_ts_function_decl_tree_pointers): Do not stream
23514 DECL_FUNCTION_SPECIFIC_TARGET.
23515 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23516 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23517 (lto_input_ts_function_decl_tree_pointers): Do not stream
23518 DECL_FUNCTION_SPECIFIC_TARGET.
23519
23520 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23521
23522 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23523 (get_initial_def_for_induction, vectorizable_induction): Ignore
23524 debug stmts when looking for exit_phi.
23525 (vectorizable_live_operation): Fix up condition.
23526
23527 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23528
23529 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23530 nreverse() because it changes the content of original tree list.
23531
23532 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23533
23534 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23535 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23536
23537 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23538
23539 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23540 GNU coding standards.
23541
23542 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23543
23544 PR debug/60152
23545 * dwarf2out.c (gen_subprogram_die): Don't call
23546 add_calling_convention_attribute if subr_die is old_die.
23547
23548 2014-02-13 Sharad Singhai <singhai@google.com>
23549
23550 * doc/optinfo.texi: Fix order of nodes.
23551
23552 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23553
23554 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23555 operands[2], not operands[3].
23556
23557 2014-02-13 Richard Biener <rguenther@suse.de>
23558
23559 PR bootstrap/59878
23560 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23561 mention the possibility of an in-tree build.
23562 (CLooG): Update recommended version to 0.18.1, mention the
23563 possibility of an in-tree build and clarify that the ISL
23564 bundled with CLooG does not work.
23565
23566 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23567
23568 PR target/43546
23569 * expr.c (compress_float_constant): If x is a hard register,
23570 extend into a pseudo and then move to x.
23571
23572 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23573
23574 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23575 caused by bad second argument to warning_at() with -mhotpatch and
23576 nested functions (e.g. with gfortran).
23577
23578 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23579
23580 * opts.c (option_name): Remove "enabled by default" rider.
23581
23582 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23583
23584 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23585
23586 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23587 Uros Bizjak <ubizjak@gmail.com>
23588
23589 PR target/60151
23590 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23591 * configure: Regenerated.
23592
23593 2014-02-12 Richard Biener <rguenther@suse.de>
23594
23595 * vec.c (vec_prefix::calculate_allocation): Move as
23596 inline variant to vec.h.
23597 (vec_prefix::calculate_allocation_1): New out-of-line version.
23598 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23599 (vec_prefix::m_has_auto_buf): Rename to ...
23600 (vec_prefix::m_using_auto_storage): ... this.
23601 (vec_prefix::calculate_allocation): Inline the easy cases
23602 and dispatch to calculate_allocation_1 which doesn't need the
23603 prefix address.
23604 (va_heap::reserve): Use gcc_checking_assert.
23605 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23606 m_using_auto_storage.
23607 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23608 member and adjust.
23609 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23610 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23611 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23612
23613 2014-02-12 Richard Biener <rguenther@suse.de>
23614
23615 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23616 when we found a dependence.
23617
23618 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23619
23620 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23621 common code...
23622 (maybe_fold_stmt): ... into this new function.
23623 * omp-low.c (lower_omp): Update comment.
23624
23625 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23626 last use.
23627
23628 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23629 dereference.
23630
23631 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23632
23633 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23634 identifiers in comments.
23635 (cortexa53_extra_costs): Likewise.
23636 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23637 (cortexa7_extra_costs): Likewise.
23638 (cortexa12_extra_costs): Likewise.
23639 (cortexa15_extra_costs): Likewise.
23640 (v7m_extra_costs): Likewise.
23641
23642 2014-02-12 Richard Biener <rguenther@suse.de>
23643
23644 PR middle-end/60092
23645 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23646 of posix_memalign being successful.
23647 (lower_stmt): Restrict lowering of posix_memalign to when
23648 -ftree-bit-ccp is enabled.
23649
23650 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23651
23652 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23653 arg_loc.
23654 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23655
23656 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23657
23658 PR rtl-optimization/60116
23659 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23660 other_insn once the combination has been validated.
23661
23662 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23663
23664 PR lto/59468
23665 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23666 and wrapper.
23667 * ipa-devirt.c: Include demangle.h
23668 (odr_violation_reported): New static variable.
23669 (add_type_duplicate): Update odr_violations.
23670 (maybe_record_node): Add completep parameter; update it.
23671 (record_target_from_binfo): Add COMPLETEP parameter;
23672 update it as needed.
23673 (possible_polymorphic_call_targets_1): Likewise.
23674 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23675 rename FINAL to COMPLETE.
23676 (record_targets_from_bases): Sanity check we found the binfo;
23677 fix COMPLETEP updating.
23678 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23679 parameter, fix computing of COMPLETEP.
23680 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23681 at LTO time do demangling.
23682 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23683 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23684 parameter.
23685 (gimple_get_virt_method_for_binfo): Likewise.
23686 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23687 gimple_get_virt_method_for_vtable): Update prototypes.
23688
23689 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23690
23691 PR target/49008
23692 * genautomata.c (add_presence_absence): Fix typo with
23693 {final_}presence_list.
23694
23695 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23696
23697 PR target/60137
23698 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23699 for VSX/Altivec vectors that land in GPR registers.
23700
23701 2014-02-11 Richard Henderson <rth@redhat.com>
23702 Jakub Jelinek <jakub@redhat.com>
23703
23704 PR debug/59776
23705 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23706 around drhs if type conversion to lacc->type is not useless.
23707
23708 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23709
23710 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23711 tuning struct.
23712 (cortex-a57.cortex-a53): Likewise.
23713 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23714
23715 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23716
23717 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23718 arm_restrict_it.
23719
23720 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23721
23722 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23723 add_options_for_arm_vfp3.
23724
23725 2014-02-11 Jeff Law <law@redhat.com>
23726
23727 PR middle-end/54041
23728 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23729 object with an undesirable mode.
23730
23731 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23732
23733 PR libgomp/60107
23734 * config/i386/sol2-9.h: New file.
23735 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23736 *-*-solaris2.9*): Use it.
23737
23738 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23739
23740 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23741 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23742
23743 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23744
23745 * config/microblaze/microblaze.c: Extend mcpu version format
23746
23747 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23748
23749 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23750
23751 2014-02-10 Richard Henderson <rth@redhat.com>
23752
23753 PR target/59927
23754 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23755 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23756 ms-abi vs -mno-accumulate-outgoing-args.
23757 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23758 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23759 respect to ms-abi.
23760
23761 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23762
23763 PR middle-end/60080
23764 * cfgexpand.c (expand_asm_operands): Attach source location to
23765 ASM_INPUT rtx objects.
23766 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23767
23768 2014-02-10 Nick Clifton <nickc@redhat.com>
23769
23770 * config/mn10300/mn10300.c (popcount): New function.
23771 (mn10300_expand_prologue): Include saved registers in stack usage
23772 count.
23773
23774 2014-02-10 Jeff Law <law@redhat.com>
23775
23776 PR middle-end/52306
23777 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23778 when changing the SET_DEST of a prior insn to avoid an input reload.
23779
23780 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23781
23782 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23783 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23784 -mcall-openbsd, or -mcall-linux.
23785 (CC1_ENDIAN_BIG_SPEC): Remove.
23786 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23787 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23788 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23789 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23790 and %cc1_endian_default.
23791 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23792
23793 2014-02-10 Richard Biener <rguenther@suse.de>
23794
23795 PR tree-optimization/60115
23796 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23797 MEM_REF handling. Properly verify that the accesses are not
23798 out of the objects bound.
23799
23800 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23801
23802 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23803 coretex to cortex.
23804
23805 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23806
23807 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23808 proper constants and fix formatting.
23809 (possible_polymorphic_call_targets): Fix formatting.
23810
23811 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23812 Ilya Tocar <ilya.tocar@intel.com>
23813
23814 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23815 (_mm512_loadu_epi32): Renamed into...
23816 (_mm512_loadu_si512): This.
23817 (_mm512_storeu_epi32): Renamed into...
23818 (_mm512_storeu_si512): This.
23819 (_mm512_maskz_ceil_ps): Removed.
23820 (_mm512_maskz_ceil_pd): Ditto.
23821 (_mm512_maskz_floor_ps): Ditto.
23822 (_mm512_maskz_floor_pd): Ditto.
23823 (_mm512_floor_round_ps): Ditto.
23824 (_mm512_floor_round_pd): Ditto.
23825 (_mm512_ceil_round_ps): Ditto.
23826 (_mm512_ceil_round_pd): Ditto.
23827 (_mm512_mask_floor_round_ps): Ditto.
23828 (_mm512_mask_floor_round_pd): Ditto.
23829 (_mm512_mask_ceil_round_ps): Ditto.
23830 (_mm512_mask_ceil_round_pd): Ditto.
23831 (_mm512_maskz_floor_round_ps): Ditto.
23832 (_mm512_maskz_floor_round_pd): Ditto.
23833 (_mm512_maskz_ceil_round_ps): Ditto.
23834 (_mm512_maskz_ceil_round_pd): Ditto.
23835 (_mm512_expand_pd): Ditto.
23836 (_mm512_expand_ps): Ditto.
23837 * config/i386/i386.c (ix86_builtins): Remove
23838 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23839 (bdesc_args): Ditto.
23840 * config/i386/predicates.md (const1256_operand): New.
23841 (const_1_to_2_operand): Ditto.
23842 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23843 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23844 (*avx512pf_gatherpf<mode>sf): Ditto.
23845 (avx512pf_gatherpf<mode>df): Ditto.
23846 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23847 (*avx512pf_gatherpf<mode>df): Ditto.
23848 (avx512pf_scatterpf<mode>sf): Ditto.
23849 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23850 (*avx512pf_scatterpf<mode>sf): Ditto.
23851 (avx512pf_scatterpf<mode>df): Ditto.
23852 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23853 (*avx512pf_scatterpf<mode>df): Ditto.
23854 (avx512f_expand<mode>): Removed.
23855 (<shift_insn><mode>3<mask_name>): Change predicate type.
23856
23857 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23858
23859 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23860 not at the end of datarefs vector use ordered_remove to avoid
23861 reordering datarefs vector.
23862
23863 PR c/59984
23864 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23865 mark local addressable non-static vars as GOVD_PRIVATE
23866 instead of GOVD_LOCAL.
23867 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23868 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23869 than copying them.
23870
23871 PR middle-end/60092
23872 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23873 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23874 assume_aligned or alloc_align attributes.
23875 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23876 arguments. Handle also assume_aligned and alloc_align attributes.
23877 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23878 calls to functions with assume_aligned or alloc_align attributes.
23879 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23880
23881 2014-02-08 Terry Guo <terry.guo@arm.com>
23882
23883 * doc/invoke.texi: Document ARM -march=armv7e-m.
23884
23885 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23886
23887 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23888 flag on __cilkrts_rethrow builtin.
23889
23890 PR ipa/60026
23891 * ipa-cp.c (determine_versionability): Fail at -O0
23892 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23893 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23894
23895 Revert:
23896 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23897
23898 PR ipa/60026
23899 * tree-inline.c (copy_forbidden): Fail for
23900 __attribute__((optimize (0))) functions.
23901
23902 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23903
23904 * varpool.c: Include pointer-set.h.
23905 (varpool_remove_unreferenced_decls): Variables in other partitions
23906 will not be output; be however careful to not lose information
23907 about partitioning.
23908
23909 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23910
23911 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23912 lookup in the vtable constructor.
23913
23914 2014-02-07 Jeff Law <law@redhat.com>
23915
23916 PR target/40977
23917 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23918 define_insn_and_split.
23919
23920 * ipa-inline.c (inline_small_functions): Fix typos.
23921
23922 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23923
23924 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23925 (s390_can_use_return_insn): Declare.
23926 * config/s390/s390.h (EPILOGUE_USES): Define.
23927 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23928 instructions.
23929 (s390_chunkify_start): Handle return JUMP_LABELs.
23930 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23931 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23932 (s390_can_use_return_insn): New functions.
23933 (s390_fix_long_loop_prediction): Handle conditional returns.
23934 (TARGET_SET_UP_BY_PROLOGUE): Define.
23935 * config/s390/s390.md (ANY_RETURN): New code iterator.
23936 (*creturn, *csimple_return, return, simple_return): New patterns.
23937
23938 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23939
23940 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23941 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23942 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23943 REG_CFA_RESTORE list when deciding not to restore a register.
23944
23945 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23946
23947 * config/s390/s390.c: Include tree-pass.h and context.h.
23948 (s390_early_mach): New function, split out from...
23949 (s390_emit_prologue): ...here.
23950 (pass_data_s390_early_mach): New pass structure.
23951 (pass_s390_early_mach): New class.
23952 (s390_option_override): Create and register early_mach pass.
23953 Move to end of file.
23954
23955 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23956
23957 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23958 to match for the exit block.
23959
23960 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23961
23962 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23963 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23964 Reject misaligned operands.
23965
23966 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23967
23968 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23969
23970 2014-02-07 Richard Biener <rguenther@suse.de>
23971
23972 PR middle-end/60092
23973 * gimple-low.c (lower_builtin_posix_memalign): New function.
23974 (lower_stmt): Call it to lower posix_memalign in a way
23975 to make alignment info accessible.
23976
23977 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23978
23979 PR c++/60082
23980 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23981 __builtin_setjmp_receiver.
23982
23983 2014-02-07 Richard Biener <rguenther@suse.de>
23984
23985 PR middle-end/60092
23986 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23987 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23988 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23989 Handle BUILT_IN_POSIX_MEMALIGN.
23990 (find_func_clobbers): Likewise.
23991 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23992 (call_may_clobber_ref_p_1): Likewise.
23993
23994 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23995
23996 PR ipa/59918
23997 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23998 sanity check.
23999
24000 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24001
24002 PR ipa/59469
24003 * lto-cgraph.c (lto_output_node): Use
24004 symtab_get_symbol_partitioning_class.
24005 (lto_output_varpool_node): likewise.
24006 (symtab_get_symbol_partitioning_class): Move here from
24007 lto/lto-partition.c
24008 * cgraph.h (symbol_partitioning_class): Likewise.
24009 (symtab_get_symbol_partitioning_class): Declare.
24010
24011 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24012
24013 * ggc.h (ggc_internal_cleared_alloc): New macro.
24014 * vec.h (vec_safe_copy): Handle memory stats.
24015 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24016 * target-globals.c (save_target_globals): Likewise.
24017
24018 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24019
24020 PR target/60077
24021 * expr.c (emit_move_resolve_push): Export; be bit more selective
24022 on when to clear alias set.
24023 * expr.h (emit_move_resolve_push): Declare.
24024 * function.h (struct function): Add tail_call_marked.
24025 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24026 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24027 * config/i386/i386.md (TImode move expander): De not call
24028 ix86_expand_push.
24029 (FP push expanders): Preserve memory attributes.
24030 * config/i386/sse.md (push<mode>1): Remove.
24031 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24032 (ix86_expand_push): Remove.
24033 * config/i386/mmx.md (push<mode>1): Remove.
24034
24035 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24036
24037 PR rtl-optimization/60030
24038 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24039 lopart with paradoxical subreg before shifting it up by hprec.
24040
24041 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24042
24043 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24044 Remove extra newline at end of file.
24045 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24046 (arm_issue_rate): Handle cortexa57.
24047 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24048 (cortex-a57.cortex-a53): Likewise.
24049
24050 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24051
24052 PR target/59575
24053 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24054 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24055 bitmask.
24056 (arm_expand_prologue): Adjust all callers.
24057 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24058 info, registers also at the lowest numbered registers side. Use
24059 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24060 XEXP.
24061
24062 PR debug/59992
24063 * var-tracking.c (adjust_mems): Before adding a SET to
24064 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24065
24066 2014-02-06 Alan Modra <amodra@gmail.com>
24067
24068 PR target/60032
24069 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24070 change SDmode to DDmode when lra_in_progress.
24071
24072 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24073
24074 PR middle-end/59150
24075 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24076 free_data_ref on the dr first, and before goto again also set dr
24077 to the next dr. For simd_lane_access, free old datarefs[i] before
24078 overwriting it. For get_vectype_for_scalar_type failure, don't
24079 free_data_ref if simd_lane_access.
24080
24081 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24082
24083 PR target/60062
24084 * tree.h (opts_for_fn): New inline function.
24085 (opt_for_fn): Define.
24086 * config/i386/i386.c (ix86_function_regparm): Use
24087 opt_for_fn (decl, optimize) instead of optimize.
24088
24089 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24090
24091 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24092 for SYMBOL_REF in large memory model.
24093
24094 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24095
24096 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24097 and crypto support.
24098 (cortex-a57): Likewise.
24099 (cortex-a57.cortex-a53): Likewise.
24100
24101 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24102 Kugan Vivekanandarajah <kuganv@linaro.org>
24103
24104 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24105 unaligned_access.
24106 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24107
24108 2014-02-06 Richard Biener <rguenther@suse.de>
24109
24110 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24111 set_loop_copy and initialize_original_copy_tables.
24112
24113 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24114
24115 * config/aarch64/aarch64-simd.md
24116 (aarch64_ashr_simddi): Change QI to SI.
24117
24118 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24119 Jakub Jelinek <jakub@redhat.com>
24120
24121 PR middle-end/60013
24122 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24123 of the dataflow.
24124
24125 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24126
24127 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24128 CODE_FOR_altivec_vpku[hw]um to
24129 CODE_FOR_altivec_vpku[hw]um_direct.
24130 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24131 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24132 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24133 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24134
24135 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24136
24137 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24138 generation for -maltivec=be.
24139 (altivec_vsumsws): Simplify redundant test.
24140
24141 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24142
24143 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24144 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24145 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24146 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24147 gen_altivec_vpkuwum.
24148 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24149 BYTES_BIG_ENDIAN.
24150 (altivec_vpks<VI_char>ss): Likewise.
24151 (altivec_vpks<VI_char>us): Likewise.
24152 (altivec_vpku<VI_char>us): Likewise.
24153 (altivec_vpku<VI_char>um): Likewise.
24154 (altivec_vpku<VI_char>um_direct): New (copy of
24155 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24156 internal use).
24157 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24158 target is little endian and -maltivec=be is not specified.
24159 (*altivec_vupkhs<VU_char>_direct): New (copy of
24160 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24161 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24162 target is little endian and -maltivec=be is not specified.
24163 (*altivec_vupkls<VU_char>_direct): New (copy of
24164 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24165 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24166 little endian and -maltivec=be is not specified.
24167 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24168 little endian and -maltivec=be is not specified.
24169
24170 2014-02-05 Richard Henderson <rth@redhat.com>
24171
24172 PR debug/52727
24173 * combine-stack-adj.c: Revert r206943.
24174 * sched-int.h (struct deps_desc): Add last_args_size.
24175 * sched-deps.c (init_deps): Initialize it.
24176 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24177 contain REG_ARGS_SIZE notes.
24178
24179 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24180
24181 * lto-cgraph.c (asm_nodes_output): Make global.
24182 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24183 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24184 (driver_handle_option): Handle OPT_fwpa.
24185
24186 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24187
24188 PR ipa/59947
24189 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24190 a comment typo and formatting issue. If odr_hash hasn't been
24191 created, return vNULL and set *completep to false.
24192
24193 PR middle-end/57499
24194 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24195 bb with no successors.
24196
24197 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24198
24199 PR target/59718
24200 * doc/invoke.texi (-march): Clarify documentation for ARM.
24201 (-mtune): Likewise.
24202 (-mcpu): Likewise.
24203
24204 2014-02-05 Richard Biener <rguenther@suse.de>
24205
24206 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24207 when not vectorizing because of too many alias checks.
24208 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24209 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24210
24211 2014-02-05 Nick Clifton <nickc@redhat.com>
24212
24213 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24214 accept extended registers in any mode when compiling for the MN10300.
24215
24216 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24217
24218 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24219 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24220 sanitization attributes.
24221 (can_inline_edge_p): Likewise.
24222 (sanitize_attrs_match_for_inline_p): New function.
24223
24224 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24225
24226 * ipa-prop.c (detect_type_change): Shor circuit testing of
24227 type changes on THIS pointer.
24228
24229 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24230
24231 PR target/59777
24232 * config/pa/pa.c (legitimize_tls_address): Return original address
24233 if not passed a SYMBOL_REF rtx.
24234 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24235 addresses.
24236 (pa_emit_move_sequence): Simplify TLS source operands.
24237 (pa_legitimate_constant_p): Reject all TLS constants.
24238 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24239 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24240
24241 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24242
24243 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24244 groups when we know they are controlled by LTO.
24245 * varasm.c (default_binds_local_p_1): If object is in other partition,
24246 it will be resolved locally.
24247
24248 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24249
24250 * config/host-linux.c (linux_gt_pch_use_address): Don't
24251 use SSIZE_MAX because it is not always defined.
24252
24253 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24254
24255 PR bootstrap/59913
24256 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24257 threshold for pseudo splitting.
24258 (update_ebb_live_info): Process call argument hard registers and
24259 hard registers from insn definition too.
24260 (max_small_class_regs_num): New constant.
24261 (inherit_in_ebb): Update live hard regs through EBBs. Update
24262 reloads_num only for small register classes. Don't split for
24263 outputs of jumps.
24264
24265 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24266
24267 PR ipa/60058
24268 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24269 is non-null.
24270
24271 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24272
24273 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24274 visibility is safe.
24275
24276 2014-02-04 Marek Polacek <polacek@redhat.com>
24277
24278 * gdbinit.in (pel): Define.
24279
24280 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24281
24282 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24283 behavior.
24284
24285 2014-02-04 Richard Biener <rguenther@suse.de>
24286
24287 PR lto/59723
24288 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24289 in function context local.
24290 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24291 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24292 similar to LTO_imported_decl_ref.
24293
24294 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24295
24296 PR tree-optimization/60002
24297 * cgraphclones.c (build_function_decl_skip_args): Clear
24298 DECL_LANG_SPECIFIC.
24299
24300 PR tree-optimization/60023
24301 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24302 false to gsi_replace.
24303 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24304 has been in some EH region and vec_stmt could throw, add
24305 vec_stmt into the same EH region.
24306 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24307 has no lhs, ignore it.
24308 * internal-fn.c (expand_MASK_LOAD): Likewise.
24309
24310 PR ipa/60026
24311 * tree-inline.c (copy_forbidden): Fail for
24312 __attribute__((optimize (0))) functions.
24313
24314 PR other/58712
24315 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24316 is set, copy one less argument.
24317 (expand_simd_clones): Don't subtract clone_info->inbranch
24318 from simd_clone_struct_alloc argument.
24319
24320 PR rtl-optimization/57915
24321 * recog.c (simplify_while_replacing): If all unary/binary/relational
24322 operation arguments are constant, attempt to simplify those.
24323
24324 PR middle-end/59261
24325 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24326 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24327
24328 2014-02-04 Richard Biener <rguenther@suse.de>
24329
24330 PR tree-optimization/60012
24331 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24332 TBAA disambiguation to all DDRs.
24333
24334 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24335
24336 PR target/59788
24337 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24338 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24339
24340 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24341
24342 PR ipa/59882
24343 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24344
24345 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24346
24347 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24348 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24349
24350 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24351
24352 PR ipa/59831
24353 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24354 to figure out targets of polymorphic calls with known decl.
24355 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24356 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24357 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24358 (get_polymorphic_call_info): ... here.
24359 (get_polymorphic_call_info_from_invariant): New function.
24360
24361 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24362
24363 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24364 lookup via vtable pointer; check for type consistency
24365 and turn inconsitent facts into UNREACHABLE.
24366 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24367 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24368 type inconsistent querries; return UNREACHABLE instead.
24369
24370 2014-02-03 Richard Henderson <rth@twiddle.net>
24371
24372 PR tree-opt/59924
24373 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24374 already processed this node.
24375 (normalize_one_pred_1): Pass along mark_set.
24376 (normalize_one_pred): Create and destroy a pointer_set_t.
24377 (normalize_one_pred_chain): Likewise.
24378
24379 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24380
24381 PR gcov-profile/58602
24382 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24383
24384 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24385
24386 PR ipa/59831
24387 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24388 -fno-devirtualize; try to devirtualize by the knowledge of
24389 virtual table pointer given by aggregate propagation.
24390 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24391 (ipa_print_node_jump_functions): Dump also offset that
24392 is relevant for polymorphic calls.
24393 (determine_known_aggregate_parts): Add arg_type parameter; use it
24394 instead of determining the type from pointer type.
24395 (ipa_compute_jump_functions_for_edge): Update call of
24396 determine_known_aggregate_parts.
24397 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24398 (gimple_get_virt_method_for_binfo): ... here; simplify using
24399 vtable_pointer_value_to_vtable.
24400 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24401 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24402 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24403 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24404 POINTER_PLUS_EXPR.
24405 (vtable_pointer_value_to_binfo): ... here.
24406 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24407
24408 2014-02-03 Teresa Johnson <tejohnson@google.com>
24409
24410 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24411 redef of outer loop index variable.
24412
24413 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24414
24415 PR c++/53017
24416 PR c++/59211
24417 * doc/extend.texi (Function Attributes): Typo.
24418
24419 2014-02-03 Cong Hou <congh@google.com>
24420
24421 PR tree-optimization/60000
24422 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24423 if the vectorized statement is a store. A store statement can only
24424 appear at the end of pattern statements.
24425
24426 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24427
24428 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24429 (ix86_option_override_internal): Default long double to 64-bit for
24430 32-bit Bionic and to 128-bit for 64-bit Bionic.
24431
24432 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24433 TARGET_LONG_DOUBLE_128 is true.
24434 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24435
24436 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24437 (mlong-double-64): Negate -mlong-double-128.
24438 (mlong-double-128): New option.
24439
24440 * config/i386/i386-c.c (ix86_target_macros): Define
24441 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24442
24443 * doc/invoke.texi: Document -mlong-double-128.
24444
24445 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24446
24447 PR rtl-optimization/60024
24448 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24449
24450 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24451
24452 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24453
24454 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24455
24456 PR rtl-optimization/57662
24457 * sel-sched.c (code_motion_path_driver): Do not mark already not
24458 existing blocks in the visiting bitmap.
24459
24460 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24461
24462 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24463 on the insn being emitted.
24464
24465 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24466 Will Deacon <will.deacon@arm.com>
24467
24468 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24469
24470 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24471
24472 * config/arm/arm-tables.opt: Regenerate.
24473
24474 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24475
24476 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24477 for vector types other than V16QImode.
24478 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24479 define_expand, and call altivec_expand_vec_perm_le when producing
24480 code with little endian element order.
24481 (*altivec_vperm_<mode>_internal): New insn having previous
24482 behavior of altivec_vperm_<mode>.
24483 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24484 altivec_expand_vec_perm_le when producing code with little endian
24485 element order.
24486 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24487 behavior of altivec_vperm_<mode>_uns.
24488
24489 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24490
24491 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24492 (altivec_vsumsws): Add handling for -maltivec=be with a little
24493 endian target.
24494 (altivec_vsumsws_direct): New.
24495 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24496 gen_altivec_vsumsws.
24497
24498 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24499
24500 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24501 vtable_pointer_value_to_binfo): New functions.
24502 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24503 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24504
24505 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24506
24507 * config/nios2/nios2.md (load_got_register): Initialize GOT
24508 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24509 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24510
24511 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24512
24513 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24514 preserverd by passthrough, do not propagate the type.
24515
24516 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24517
24518 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24519 (mips_atomic_assign_expand_fenv): New function.
24520 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24521
24522 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24523
24524 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24525 (__builtin_mips_set_fcsr): Likewise.
24526 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24527 MIPS_USI_FTYPE_VOID.
24528 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24529 (mips16_expand_set_fcsr): Likewise.
24530 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24531 (mips16_set_fcsr_stub): Likewise.
24532 (mips16_get_fcsr_one_only_stub): New class.
24533 (mips16_set_fcsr_one_only_stub): Likewise.
24534 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24535 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24536 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24537 (hard_float): New availability predicate.
24538 (mips_builtins): Add get_fcsr and set_fcsr.
24539 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24540 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24541 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24542 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24543 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24544 patterns.
24545
24546 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24547
24548 * config/mips/mips.c (mips_one_only_stub): New class.
24549 (mips_need_mips16_rdhwr_p): Replace with...
24550 (mips16_rdhwr_stub): ...this new variable.
24551 (mips16_stub_call_address): New function.
24552 (mips16_rdhwr_one_only_stub): New class.
24553 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24554 (mips_output_mips16_rdhwr): Delete.
24555 (mips_finish_stub): New function.
24556 (mips_code_end): Use it to handle rdhwr stubs.
24557
24558 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24559
24560 PR target/60017
24561 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24562 when calculating size of integer atomic types.
24563
24564 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24565
24566 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24567
24568 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24569
24570 PR tree-optimization/60003
24571 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24572 * profile.c (branch_prob): Use gimple_call_builtin_p
24573 to check for BUILT_IN_SETJMP_RECEIVER.
24574 * tree-inline.c (copy_bb): Call notice_special_calls.
24575
24576 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24577
24578 PR bootstrap/59985
24579 * lra-constraints.c (process_alt_operands): Update reload_sum only
24580 on the first pass.
24581
24582 2014-01-31 Richard Henderson <rth@redhat.com>
24583
24584 PR middle-end/60004
24585 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24586 until after else_eh is processed.
24587
24588 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24589
24590 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24591 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24592 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24593 in smmintrin.h, remove them.
24594 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24595 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24596 * config/i386/i386.md (ROUND_SAE): Fix value.
24597 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24598 (const48_operand): New.
24599 * config/i386/subst.md (round), (round_expand): Use
24600 const_4_or_8_to_11_operand.
24601 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24602
24603 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24604
24605 * config/i386/constraints.md (Yk): Swap meaning with k.
24606 * config/i386/i386.md (movhi_internal): Change Yk to k.
24607 (movqi_internal): Ditto.
24608 (*k<logic><mode>): Ditto.
24609 (*andhi_1): Ditto.
24610 (*andqi_1): Ditto.
24611 (kandn<mode>): Ditto.
24612 (*<code>hi_1): Ditto.
24613 (*<code>qi_1): Ditto.
24614 (kxnor<mode>): Ditto.
24615 (kortestzhi): Ditto.
24616 (kortestchi): Ditto.
24617 (kunpckhi): Ditto.
24618 (*one_cmplhi2_1): Ditto.
24619 (*one_cmplqi2_1): Ditto.
24620 * config/i386/sse.md (): Change k to Yk.
24621 (avx512f_load<mode>_mask): Ditto.
24622 (avx512f_blendm<mode>): Ditto.
24623 (avx512f_store<mode>_mask): Ditto.
24624 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24625 (avx512f_storedqu<mode>_mask): Ditto.
24626 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24627 Ditto.
24628 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24629 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24630 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24631 (avx512f_maskcmp<mode>3): Ditto.
24632 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24633 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24634 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24635 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24636 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24637 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24638 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24639 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24640 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24641 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24642 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24643 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24644 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24645 (vec_extract_lo_<mode>_maskm): Ditto.
24646 (vec_extract_hi_<mode>_maskm): Ditto.
24647 (avx512f_vternlog<mode>_mask): Ditto.
24648 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24649 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24650 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24651 (avx512f_<code>v8div16qi2_mask): Ditto.
24652 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24653 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24654 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24655 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24656 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24657 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24658 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24659 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24660 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24661 (avx512cd_maskb_vec_dupv8di): Ditto.
24662 (avx512cd_maskw_vec_dupv16si): Ditto.
24663 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24664 (avx512f_vpermi2var<mode>3_mask): Ditto.
24665 (avx512f_vpermi2var<mode>3_mask): Ditto.
24666 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24667 (*avx512f_gathersi<mode>): Ditto.
24668 (*avx512f_gathersi<mode>_2): Ditto.
24669 (*avx512f_gatherdi<mode>): Ditto.
24670 (*avx512f_gatherdi<mode>_2): Ditto.
24671 (*avx512f_scattersi<mode>): Ditto.
24672 (*avx512f_scatterdi<mode>): Ditto.
24673 (avx512f_compress<mode>_mask): Ditto.
24674 (avx512f_compressstore<mode>_mask): Ditto.
24675 (avx512f_expand<mode>_mask): Ditto.
24676 * config/i386/subst.md (mask): Change k to Yk.
24677 (mask_scalar_merge): Ditto.
24678 (sd): Ditto.
24679
24680 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24681
24682 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24683
24684 2014-01-31 Richard Biener <rguenther@suse.de>
24685
24686 PR middle-end/59990
24687 * builtins.c (fold_builtin_memory_op): Make sure to not
24688 use a floating-point mode or a boolean or enumeral type for
24689 the copy operation.
24690
24691 2014-01-30 DJ Delorie <dj@redhat.com>
24692
24693 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24694 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24695 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24696 whenever main() has an epilogue.
24697
24698 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24699
24700 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24701 unused variable "field".
24702 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24703 (vsx_mergeh_<mode>): Likewise.
24704 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24705 (altivec_vmrghh): Likewise.
24706 (altivec_vmrghw): Likewise.
24707 (altivec_vmrglb): Likewise.
24708 (altivec_vmrglh): Likewise.
24709 (altivec_vmrglw): Likewise.
24710 (altivec_vspltb): Add missing uses.
24711 (altivec_vsplth): Likewise.
24712 (altivec_vspltw): Likewise.
24713 (altivec_vspltsf): Likewise.
24714
24715 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24716
24717 PR target/59923
24718 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24719 frame related instructions.
24720
24721 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24722
24723 PR rtl-optimization/59959
24724 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24725 any reload of register whose subreg is invalid.
24726
24727 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24728
24729 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24730 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24731 Add missing return type - void.
24732
24733 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24734
24735 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24736 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24737 remove element index adjustment for endian (now handled in vsx.md
24738 and altivec.md).
24739 (altivec_expand_vec_perm_const): Use
24740 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24741 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24742 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24743 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24744 define_expand and a new define_insn *altivec_vspltb_internal;
24745 adjust for -maltivec=be on a little endian target.
24746 (altivec_vspltb_direct): New.
24747 (altivec_vsplth): Divide into a define_expand and a new
24748 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24749 little endian target.
24750 (altivec_vsplth_direct): New.
24751 (altivec_vspltw): Divide into a define_expand and a new
24752 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24753 little endian target.
24754 (altivec_vspltw_direct): New.
24755 (altivec_vspltsf): Divide into a define_expand and a new
24756 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24757 a little endian target.
24758
24759 2014-01-30 Richard Biener <rguenther@suse.de>
24760
24761 PR tree-optimization/59993
24762 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24763 can propagate form the earlier stmt and avoid the transform
24764 when the intermediate result is needed.
24765
24766 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24767
24768 * README.Portability: Fix typo.
24769
24770 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24771
24772 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24773 comparison_operator with ordered_comparison_operator.
24774
24775 2014-01-30 Nick Clifton <nickc@redhat.com>
24776
24777 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24778 Rename to mn10300_store_multiple_regs.
24779 * config/mn10300/mn10300.c: Likewise.
24780 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24781 store_multiple_regs.
24782 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24783 Call mn10300_store_multiple_regs.
24784
24785 2014-01-30 Nick Clifton <nickc@redhat.com>
24786 DJ Delorie <dj@redhat.com>
24787
24788 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24789 %fp 2 to keep registers after it properly word-aligned.
24790 (rl78_alloc_physical_registers_umul): Handle the case where both
24791 input operands are the same.
24792
24793 2014-01-30 Richard Biener <rguenther@suse.de>
24794
24795 PR tree-optimization/59903
24796 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24797 check properly.
24798
24799 2014-01-30 Jason Merrill <jason@redhat.com>
24800
24801 PR c++/59633
24802 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24803
24804 PR c++/59645
24805 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24806
24807 2014-01-30 Richard Biener <rguenther@suse.de>
24808
24809 PR tree-optimization/59951
24810 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24811
24812 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24813
24814 PR target/59784
24815 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24816 SFmode to DFmode case.
24817
24818 2014-01-29 DJ Delorie <dj@redhat.com>
24819
24820 * config/msp430/msp430.opt (-minrt): New.
24821 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24822 if -minrt given.
24823 (ENDFILE_SPEC): Likewise.
24824
24825 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24826
24827 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24828 (estimate_function_body_sizes): Use it.
24829
24830 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24831
24832 PR c++/58561
24833 * dwarf2out.c (is_cxx_auto): New.
24834 (is_base_type): Use it.
24835 (gen_type_die_with_usage): Likewise.
24836
24837 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24838
24839 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24840 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24841 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24842 -maltivec=be with LE targets.
24843 (vsx_mergeh_<mode>): Likewise.
24844 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24845 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24846 (altivec_vmrghb): Replace with define_expand and new
24847 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24848 (altivec_vmrghb_direct): New define_insn.
24849 (altivec_vmrghh): Replace with define_expand and new
24850 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24851 (altivec_vmrghh_direct): New define_insn.
24852 (altivec_vmrghw): Replace with define_expand and new
24853 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24854 (altivec_vmrghw_direct): New define_insn.
24855 (*altivec_vmrghsf): Adjust for endianness.
24856 (altivec_vmrglb): Replace with define_expand and new
24857 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24858 (altivec_vmrglb_direct): New define_insn.
24859 (altivec_vmrglh): Replace with define_expand and new
24860 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24861 (altivec_vmrglh_direct): New define_insn.
24862 (altivec_vmrglw): Replace with define_expand and new
24863 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24864 (altivec_vmrglw_direct): New define_insn.
24865 (*altivec_vmrglsf): Adjust for endianness.
24866 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24867 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24868 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24869 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24870 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24871 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24872 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24873 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24874
24875 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24876
24877 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24878 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24879 whitespace.
24880
24881 2014-01-29 Richard Biener <rguenther@suse.de>
24882
24883 PR tree-optimization/58742
24884 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24885 associate_pointerplus_align.
24886 (associate_pointerplus_diff): New function.
24887 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24888 and associate_pointerplus_diff.
24889
24890 2014-01-29 Richard Biener <rguenther@suse.de>
24891
24892 * lto-streamer.h (LTO_major_version): Bump to 3.
24893 (LTO_minor_version): Reset to 0.
24894
24895 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24896
24897 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24898 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24899 (arm_file_start): Generate correct asm header for armv7ve.
24900 * config/arm/bpabi.h: Add multilib support for armv7ve.
24901 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24902 and cortex-a15 to armv7ve.
24903 * config/arm/t-aprofile: Add multilib support for armv7ve.
24904 * doc/invoke.texi: Document -march=armv7ve.
24905
24906 2014-01-29 Richard Biener <rguenther@suse.de>
24907
24908 PR tree-optimization/58742
24909 * tree-ssa-forwprop.c (associate_plusminus): Return true
24910 if we changed sth, defer EH cleanup to ...
24911 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24912 (simplify_mult): New function.
24913
24914 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24915
24916 PR middle-end/59917
24917 PR tree-optimization/59920
24918 * tree.c (build_common_builtin_nodes): Remove
24919 __builtin_setjmp_dispatcher initialization.
24920 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24921 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24922 instead of gsi_after_labels + manually skipping debug stmts.
24923 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24924 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24925 * tree-inline.c (copy_edges_for_bb): Remove
24926 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24927 argument. Ignore computed_goto_p stmts. Don't call
24928 make_abnormal_goto_edges. If a call might need abnormal edges
24929 for non-local gotos, see if it already has an edge to
24930 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24931 with true argument, don't do anything then, otherwise add
24932 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24933 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24934 caller.
24935 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24936 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24937 (lower_stmt): Don't set data->calls_builtin_setjmp.
24938 (lower_builtin_setjmp): Adjust comment.
24939 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24940 * tree-cfg.c (found_computed_goto): Remove.
24941 (factor_computed_gotos): Remove.
24942 (make_goto_expr_edges): Return bool, true for computed gotos.
24943 Don't call make_abnormal_goto_edges.
24944 (build_gimple_cfg): Don't set found_computed_goto, don't call
24945 factor_computed_gotos.
24946 (computed_goto_p): No longer static.
24947 (make_blocks): Don't set found_computed_goto.
24948 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24949 (make_edges): If make_goto_expr_edges returns true, push bb
24950 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24951 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24952 vector. Record mapping between bbs and OpenMP regions if there
24953 are any, adjust make_gimple_omp_edges caller. Call
24954 handle_abnormal_edges.
24955 (make_abnormal_goto_edges): Remove.
24956 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24957 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24958 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24959 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24960 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24961 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24962 filling *region also set *region_idx to (*region)->entry->index.
24963
24964 PR other/58712
24965 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24966 For REGs set ORIGINAL_REGNO.
24967
24968 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24969
24970 * doc/md.texi: Mention that a target shouldn't implement
24971 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24972 than hi/lo pair.
24973
24974 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24975
24976 PR tree-optimization/59594
24977 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24978 a copy of the datarefs vector rather than the vector itself.
24979
24980 2014-01-28 Jason Merrill <jason@redhat.com>
24981
24982 PR c++/53756
24983 * dwarf2out.c (auto_die): New static.
24984 (gen_type_die_with_usage): Handle C++1y 'auto'.
24985 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24986 on definition.
24987
24988 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24989
24990 PR target/59672
24991 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24992 (SPEC_X32): Likewise.
24993 (SPEC_64): Likewise.
24994 * config/i386/i386.c (ix86_option_override_internal): Turn off
24995 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24996 for TARGET_16BIT.
24997 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24998 * config/i386/i386.h (TARGET_16BIT): New macro.
24999 (TARGET_16BIT_P): Likewise.
25000 * config/i386/i386.opt: Add m16.
25001 * doc/invoke.texi: Document -m16.
25002
25003 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25004
25005 PR preprocessor/59935
25006 * input.c (location_get_source_line): Bail out on when line number
25007 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25008
25009 2014-01-28 Richard Biener <rguenther@suse.de>
25010
25011 PR tree-optimization/58742
25012 * tree-ssa-forwprop.c (associate_plusminus): Handle
25013 pointer subtraction of the form (T)(P + A) - (T)P.
25014
25015 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25016
25017 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25018 at const_int_cost.
25019
25020 2014-01-28 Richard Biener <rguenther@suse.de>
25021
25022 Revert
25023 2014-01-28 Richard Biener <rguenther@suse.de>
25024
25025 PR rtl-optimization/45364
25026 PR rtl-optimization/59890
25027 * var-tracking.c (local_get_addr_clear_given_value): Handle
25028 already cleared slot.
25029 (val_reset): Handle not allocated local_get_addr_cache.
25030 (vt_find_locations): Use post-order on the inverted CFG.
25031
25032 2014-01-28 Richard Biener <rguenther@suse.de>
25033
25034 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25035
25036 2014-01-28 Richard Biener <rguenther@suse.de>
25037
25038 PR rtl-optimization/45364
25039 PR rtl-optimization/59890
25040 * var-tracking.c (local_get_addr_clear_given_value): Handle
25041 already cleared slot.
25042 (val_reset): Handle not allocated local_get_addr_cache.
25043 (vt_find_locations): Use post-order on the inverted CFG.
25044
25045 2014-01-28 Alan Modra <amodra@gmail.com>
25046
25047 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25048 * configure.ac <recursive call for build != host>: Define
25049 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25050 and LD_FOR_BUILD too.
25051 * configure: Regenerate.
25052
25053 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25054
25055 * config/i386/i386.c (get_builtin_code_for_version): Separate
25056 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25057 Broadwell from Haswell.
25058
25059 2014-01-27 Steve Ellcey <sellcey@mips.com>
25060
25061 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25062 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25063 * config/mips/mips.c (mips_option_override): Change setting
25064 of TARGET_DSP.
25065 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25066 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25067 Change from Mask to Var.
25068
25069 2014-01-27 Jeff Law <law@redhat.com>
25070
25071 * ipa-inline.c (inline_small_functions): Fix typo.
25072
25073 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25074
25075 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25076 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25077 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25078 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25079 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25080 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25081 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25082 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25083 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25084 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25085 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25086 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25087 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25088 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25089 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25090 (_mm512_storeu_epi64): Ditto.
25091 (_mm512_cmpge_epi32_mask): Ditto.
25092 (_mm512_cmpge_epu32_mask): Ditto.
25093 (_mm512_cmpge_epi64_mask): Ditto.
25094 (_mm512_cmpge_epu64_mask): Ditto.
25095 (_mm512_cmple_epi32_mask): Ditto.
25096 (_mm512_cmple_epu32_mask): Ditto.
25097 (_mm512_cmple_epi64_mask): Ditto.
25098 (_mm512_cmple_epu64_mask): Ditto.
25099 (_mm512_cmplt_epi32_mask): Ditto.
25100 (_mm512_cmplt_epu32_mask): Ditto.
25101 (_mm512_cmplt_epi64_mask): Ditto.
25102 (_mm512_cmplt_epu64_mask): Ditto.
25103 (_mm512_cmpneq_epi32_mask): Ditto.
25104 (_mm512_cmpneq_epu32_mask): Ditto.
25105 (_mm512_cmpneq_epi64_mask): Ditto.
25106 (_mm512_cmpneq_epu64_mask): Ditto.
25107 (_mm512_expand_pd): Ditto.
25108 (_mm512_expand_ps): Ditto.
25109 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25110 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25111 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25112 * config/i386/i386.c (ix86_builtins): Add
25113 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25114 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25115 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25116 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25117 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25118 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25119 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25120 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25121 IX86_BUILTIN_PMOVUSQW512_MEM.
25122 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25123 __builtin_ia32_pmovsqd512mem_mask,
25124 __builtin_ia32_pmovqd512mem_mask,
25125 __builtin_ia32_pmovusqw512mem_mask,
25126 __builtin_ia32_pmovsqw512mem_mask,
25127 __builtin_ia32_pmovqw512mem_mask,
25128 __builtin_ia32_pmovusdw512mem_mask,
25129 __builtin_ia32_pmovsdw512mem_mask,
25130 __builtin_ia32_pmovdw512mem_mask,
25131 __builtin_ia32_pmovqb512mem_mask,
25132 __builtin_ia32_pmovusqb512mem_mask,
25133 __builtin_ia32_pmovsqb512mem_mask,
25134 __builtin_ia32_pmovusdb512mem_mask,
25135 __builtin_ia32_pmovsdb512mem_mask,
25136 __builtin_ia32_pmovdb512mem_mask.
25137 (bdesc_args): Add __builtin_ia32_expanddf512,
25138 __builtin_ia32_expandsf512.
25139 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25140 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25141 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25142 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25143 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25144 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25145 (avx512f_<code>v8div16qi2_mask_store): This.
25146 (avx512f_expand<mode>): New.
25147
25148 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25149
25150 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25151 New.
25152 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25153 (_mm512_prefetch_i32scatter_pd): Ditto.
25154 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25155 (_mm512_prefetch_i64scatter_pd): Ditto.
25156 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25157 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25158 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25159 (_mm512_prefetch_i32scatter_ps): Ditto.
25160 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25161 (_mm512_prefetch_i64scatter_ps): Ditto.
25162 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25163 * config/i386/i386-builtin-types.def: Define
25164 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25165 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25166 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25167 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25168 IX86_BUILTIN_SCATTERPFQPD.
25169 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25170 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25171 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25172 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25173 __builtin_ia32_scatterpfqps.
25174 (ix86_expand_builtin): Expand new built-ins.
25175 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25176 fix memory access data type.
25177 (*avx512pf_gatherpf<mode>_mask): Ditto.
25178 (*avx512pf_gatherpf<mode>): Ditto.
25179 (avx512pf_scatterpf<mode>): Ditto.
25180 (*avx512pf_scatterpf<mode>_mask): Ditto.
25181 (*avx512pf_scatterpf<mode>): Ditto.
25182 (GATHER_SCATTER_SF_MEM_MODE): New.
25183 (avx512pf_gatherpf<mode>df): Ditto.
25184 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25185 (*avx512pf_scatterpf<mode>df): Ditto.
25186
25187 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25188
25189 PR bootstrap/59934
25190 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25191 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25192 reached.
25193
25194 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25195
25196 * common/config/arm/arm-common.c
25197 (arm_rewrite_mcpu): Handle multiple names.
25198 * config/arm/arm.h
25199 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25200
25201 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25202
25203 * gimple-builder.h (create_gimple_tmp): Delete.
25204
25205 2014-01-27 Christian Bruel <christian.bruel@st.com>
25206
25207 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25208 words comparisons.
25209
25210 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25211
25212 * config/pa/pa.md (call): Generate indirect long calls to non-local
25213 functions when outputing 32-bit code.
25214 (call_value): Likewise except for special call to buggy powf function.
25215
25216 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25217 portable runtime and PIC indirect calls.
25218 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25219 and PIC call sequences. Use ldo instead of blr to set return register
25220 in PIC call sequence.
25221
25222 2014-01-25 Walter Lee <walt@tilera.com>
25223
25224 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25225 avoid clobbering a live register.
25226
25227 2014-01-25 Walter Lee <walt@tilera.com>
25228
25229 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25230 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25231 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25232 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25233
25234 2014-01-25 Walter Lee <walt@tilera.com>
25235
25236 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25237 arguments on even registers.
25238 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25239 STACK_BOUNDARY.
25240 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25241 (BIGGEST_ALIGNMENT): Ditto.
25242 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25243
25244 2014-01-25 Walter Lee <walt@tilera.com>
25245
25246 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25247 insns before bundling.
25248 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25249
25250 2014-01-25 Walter Lee <walt@tilera.com>
25251
25252 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25253 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25254 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25255
25256 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25257
25258 * config/mips/constraints.md (kl): Delete.
25259 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25260 define expands, using...
25261 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25262 instructions for MIPS16.
25263 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25264 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25265
25266 2014-01-25 Walter Lee <walt@tilera.com>
25267
25268 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25269 (clzdi2): Ditto.
25270 (ffsdi2): Ditto.
25271
25272 2014-01-25 Walter Lee <walt@tilera.com>
25273
25274 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25275 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25276
25277 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25278
25279 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25280 Handle XOR.
25281
25282 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25283
25284 * print-rtl.c (in_call_function_usage): New var.
25285 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25286 EXPR_LIST mode as mode and not as reg note name.
25287
25288 PR middle-end/59561
25289 * cfgloopmanip.c (copy_loop_info): If
25290 loop->warned_aggressive_loop_optimizations, make sure
25291 the flag is set in target loop too.
25292
25293 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25294
25295 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25296 flag_cilkplus.
25297 * builtins.def: Likewise.
25298 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25299 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25300 * ira.c (ira_setup_eliminable_regset): Likewise.
25301 * omp-low.c (gate_expand_omp): Likewise.
25302 (execute_lower_omp): Likewise.
25303 (diagnose_sb_0): Likewise.
25304 (gate_diagnose_omp_blocks): Likewise.
25305 (simd_clone_clauses_extract): Likewise.
25306 (gate): Likewise.
25307
25308 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25309
25310 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25311 correction for little endian...
25312 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25313 here.
25314
25315 2014-01-24 Jeff Law <law@redhat.com>
25316
25317 PR tree-optimization/59919
25318 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25319 for non-returning calls.
25320
25321 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25322
25323 * common/config/aarch64/aarch64-common.c
25324 (aarch64_rewrite_mcpu): Handle multiple names.
25325 * config/aarch64/aarch64.h
25326 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25327
25328 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25329
25330 * input.c (add_file_to_cache_tab): Handle the case where fopen
25331 returns NULL.
25332
25333 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25334
25335 PR target/59929
25336 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25337 from push operand if code of push isn't PRE_DEC.
25338
25339 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25340
25341 PR target/59909
25342 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25343 -mquad-memory-atomic. Update -mquad-memory documentation to say
25344 it is only used for non-atomic loads/stores.
25345
25346 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25347 -mquad-memory or -mquad-memory-atomic switches.
25348
25349 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25350 -mquad-memory-atomic to ISA 2.07 support.
25351
25352 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25353 to separate support of normal quad word memory operations (ldq, stq)
25354 from the atomic quad word memory operations.
25355
25356 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25357 support to separate non-atomic quad word operations from atomic
25358 quad word operations. Disable non-atomic quad word operations in
25359 little endian mode so that we don't have to swap words after the
25360 load and before the store.
25361 (quad_load_store_p): Add comment about atomic quad word support.
25362 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25363 options printed with -mdebug=reg.
25364
25365 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25366 -mquad-memory-atomic as the test for whether we have quad word
25367 atomic instructions.
25368 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25369 or -mp8-vector are used, allow byte/half-word atomic operations.
25370
25371 * config/rs6000/sync.md (load_lockedti): Insure that the address
25372 is a proper indexed or indirect address for the lqarx instruction.
25373 On little endian systems, swap the hi/lo registers after the lqarx
25374 instruction.
25375 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25376 insure the address is valid for the lqarx instruction.
25377 (store_conditionalti): Insure that the address is a proper indexed
25378 or indirect address for the stqcrx. instruction. On little endian
25379 systems, swap the hi/lo registers before doing the stqcrx.
25380 instruction.
25381 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25382 insure the address is valid for the stqcrx. instruction.
25383
25384 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25385 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25386 type of quad memory support is available.
25387
25388 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25389
25390 PR regression/59915
25391 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25392 there is a danger of looping.
25393
25394 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25395
25396 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25397 force flag_ira_loop_pressure if set via command line.
25398
25399 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25400
25401 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25402 (ashr_simd): New builtin handling DI mode.
25403 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25404 (aarch64_sshr_simddi): New match pattern.
25405 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25406 (vshrd_n_s64): Likewise.
25407 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25408
25409 2014-01-23 Nick Clifton <nickc@redhat.com>
25410
25411 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25412 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25413 favour of mcu specific scripts.
25414 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25415 430x multilibs.
25416
25417 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25418 Alex Velenko <Alex.Velenko@arm.com>
25419
25420 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25421 (vaddv_s16): Likewise.
25422 (vaddv_s32): Likewise.
25423 (vaddv_u8): Likewise.
25424 (vaddv_u16): Likewise.
25425 (vaddv_u32): Likewise.
25426 (vaddvq_s8): Likewise.
25427 (vaddvq_s16): Likewise.
25428 (vaddvq_s32): Likewise.
25429 (vaddvq_s64): Likewise.
25430 (vaddvq_u8): Likewise.
25431 (vaddvq_u16): Likewise.
25432 (vaddvq_u32): Likewise.
25433 (vaddvq_u64): Likewise.
25434 (vaddv_f32): Likewise.
25435 (vaddvq_f32): Likewise.
25436 (vaddvq_f64): Likewise.
25437 (vmaxv_f32): Likewise.
25438 (vmaxv_s8): Likewise.
25439 (vmaxv_s16): Likewise.
25440 (vmaxv_s32): Likewise.
25441 (vmaxv_u8): Likewise.
25442 (vmaxv_u16): Likewise.
25443 (vmaxv_u32): Likewise.
25444 (vmaxvq_f32): Likewise.
25445 (vmaxvq_f64): Likewise.
25446 (vmaxvq_s8): Likewise.
25447 (vmaxvq_s16): Likewise.
25448 (vmaxvq_s32): Likewise.
25449 (vmaxvq_u8): Likewise.
25450 (vmaxvq_u16): Likewise.
25451 (vmaxvq_u32): Likewise.
25452 (vmaxnmv_f32): Likewise.
25453 (vmaxnmvq_f32): Likewise.
25454 (vmaxnmvq_f64): Likewise.
25455 (vminv_f32): Likewise.
25456 (vminv_s8): Likewise.
25457 (vminv_s16): Likewise.
25458 (vminv_s32): Likewise.
25459 (vminv_u8): Likewise.
25460 (vminv_u16): Likewise.
25461 (vminv_u32): Likewise.
25462 (vminvq_f32): Likewise.
25463 (vminvq_f64): Likewise.
25464 (vminvq_s8): Likewise.
25465 (vminvq_s16): Likewise.
25466 (vminvq_s32): Likewise.
25467 (vminvq_u8): Likewise.
25468 (vminvq_u16): Likewise.
25469 (vminvq_u32): Likewise.
25470 (vminnmv_f32): Likewise.
25471 (vminnmvq_f32): Likewise.
25472 (vminnmvq_f64): Likewise.
25473
25474 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25475
25476 * config/aarch64/aarch64-simd.md
25477 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25478 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25479 (*aarch64_mul3_elt<mode>): Likewise.
25480 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25481 (*aarch64_mul3_elt_to_64v2df): Likewise.
25482 (*aarch64_mla_elt<mode>): Likewise.
25483 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25484 (*aarch64_mls_elt<mode>): Likewise.
25485 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25486 (*aarch64_fma4_elt<mode>): Likewise.
25487 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25488 (*aarch64_fma4_elt_to_64v2df): Likewise.
25489 (*aarch64_fnma4_elt<mode>): Likewise.
25490 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25491 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25492 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25493 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25494 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25495 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25496 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25497 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25498 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25499
25500 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25501
25502 * config/aarch64/aarch64-simd.md
25503 (aarch64_be_checked_get_lane<mode>): New define_expand.
25504 * config/aarch64/aarch64-simd-builtins.def
25505 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25506 New builtin definition.
25507 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25508 Use new safe be builtin.
25509
25510 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25511
25512 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25513 New define_insn.
25514 (aarch64_be_st1<mode>): Likewise.
25515 (aarch_ld1<VALL:mode>): Define_expand modified.
25516 (aarch_st1<VALL:mode>): Likewise.
25517 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25518 (UNSPEC_ST1): Likewise.
25519
25520 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25521
25522 * config/microblaze/microblaze.md: Add trap insn and attribute
25523
25524 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25525
25526 PR preprocessor/58580
25527 * input.h (location_get_source_line): Take an additional line_size
25528 parameter.
25529 (void diagnostics_file_cache_fini): Declare new function.
25530 * input.c (struct fcache): New type.
25531 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25532 New static constants.
25533 (diagnostic_file_cache_init, total_lines_num)
25534 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25535 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25536 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25537 (get_next_line, read_next_line, goto_next_line, read_line_num):
25538 New static function definitions.
25539 (diagnostic_file_cache_fini): New function.
25540 (location_get_source_line): Take an additional output line_len
25541 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25542 read_line_num.
25543 * diagnostic.c (diagnostic_finish): Call
25544 diagnostic_file_cache_fini.
25545 (adjust_line): Take an additional input parameter for the length
25546 of the line, rather than calculating it with strlen.
25547 (diagnostic_show_locus): Adjust the use of
25548 location_get_source_line and adjust_line with respect to their new
25549 signature. While displaying a line now, do not stop at the first
25550 null byte. Rather, display the zero byte as a space and keep
25551 going until we reach the size of the line.
25552 * Makefile.in: Add vec.o to OBJS-libcommon
25553
25554 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25555 Ilya Tocar <ilya.tocar@intel.com>
25556
25557 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25558 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25559 (__builtin_ia32_kmov16): Ditto.
25560 * config/i386/i386.md (UNSPEC_KMOV): New.
25561 (kmovw): Ditto.
25562
25563 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25564
25565 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25566 (_mm512_storeu_si512): Ditto.
25567
25568 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25569
25570 PR target/52125
25571 * rtl.h (get_referenced_operands): Declare.
25572 * recog.c (get_referenced_operands): New function.
25573 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25574 operands have been referenced when recording LO_SUM references.
25575
25576 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25577
25578 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25579
25580 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25581
25582 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25583 Enable for generic and recent AMD targets.
25584
25585 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25586
25587 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25588 ARG_SIZE note when adjustment was eliminated.
25589
25590 2014-01-22 Jeff Law <law@redhat.com>
25591
25592 PR tree-optimization/59597
25593 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25594 in file. Accept new argument REGISTERING and use it to modify
25595 dump output appropriately.
25596 (register_jump_thread): Corresponding changes.
25597 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25598 thread paths involving joiner blocks. Add code to dump cancelled
25599 jump threading paths.
25600
25601 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25602
25603 PR rtl-optimization/59477
25604 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25605 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25606
25607 2014-01-22 Tom Tromey <tromey@redhat.com>
25608
25609 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25610 PARAMS.
25611 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25612
25613 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25614
25615 PR rtl-optimization/59896
25616 * lra-constraints.c (process_alt_operands): Check unused note for
25617 matched operands of insn with no output reloads.
25618
25619 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25620
25621 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25622 (mips_move_from_gpr_cost): Likewise.
25623
25624 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25625
25626 PR rtl-optimization/59858
25627 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25628 ira_class_hard_regs_num.
25629 (process_alt_operands): Increase reject for dying matched operand.
25630
25631 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25632
25633 PR target/59003
25634 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25635 smaller than size, perform several stores or loads and stores
25636 at dst + count - size to store or copy all of size bytes, rather
25637 than just last modesize bytes.
25638
25639 2014-01-20 DJ Delorie <dj@redhat.com>
25640
25641 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25642 that CLOBBERs are REGs before propogating their values.
25643
25644 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25645
25646 PR middle-end/59789
25647 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25648 (cgraph_inline_failed_type): New function.
25649 * cgraph.h (DEFCIFCODE): Add type.
25650 (cgraph_inline_failed_type_t): New enum.
25651 (cgraph_inline_failed_type): New prototype.
25652 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25653 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25654 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25655 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25656 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25657 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25658 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25659 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25660 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25661 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25662 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25663 OPTIMIZATION_MISMATCH.
25664 * tree-inline.c (expand_call_inline): Emit errors during
25665 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25666
25667 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25668
25669 PR target/59685
25670 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25671 mode attribute in insn output.
25672
25673 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25674
25675 * output.h (output_constant): Delete.
25676 * varasm.c (output_constant): Make private.
25677
25678 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25679
25680 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25681
25682 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25683
25684 PR middle-end/59860
25685 * tree.h (fold_builtin_strcat): New prototype.
25686 * builtins.c (fold_builtin_strcat): No longer static. Add len
25687 argument, if non-NULL, don't call c_strlen. Optimize
25688 directly into __builtin_memcpy instead of __builtin_strcpy.
25689 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25690 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25691
25692 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25693
25694 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25695 for SImode_address_operand operands, having only a REG argument.
25696
25697 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25698
25699 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25700 loader name using mbig-endian.
25701 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25702
25703 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25704
25705 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25706 (-mtune): Likewise.
25707 (-mcpu): Likewise.
25708
25709 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25710
25711 * config/aarch64/aarch64-protos.h
25712 (aarch64_cannot_change_mode_class_ptr): Declare.
25713 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25714 aarch64_cannot_change_mode_class_ptr): New.
25715 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25716 backend hook aarch64_cannot_change_mode_class.
25717
25718 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25719
25720 * common/config/aarch64/aarch64-common.c
25721 (aarch64_handle_option): Don't handle any option order logic here.
25722 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25723 selected_cpu, warn on architecture version mismatch.
25724 (aarch64_override_options): Fix parsing order for option strings.
25725
25726 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25727 Iain Sandoe <iain@codesourcery.com>
25728
25729 PR bootstrap/59496
25730 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25731 warning. Amend comment to reflect current functionality.
25732
25733 2014-01-20 Richard Biener <rguenther@suse.de>
25734
25735 PR middle-end/59860
25736 * builtins.c (fold_builtin_strcat): Remove case better handled
25737 by tree-ssa-strlen.c.
25738
25739 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25740
25741 * config/aarch64/aarch64.opt
25742 (mcpu, march, mtune): Make case-insensitive.
25743
25744 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25745
25746 PR target/59880
25747 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25748 if operands[1] is a REG or ZERO_EXTEND of a REG.
25749
25750 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25751
25752 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25753
25754 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25755
25756 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25757 long non-pic millicode calls.
25758
25759 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25760
25761 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25762
25763 2014-01-19 Kito Cheng <kito@0xlab.org>
25764
25765 * builtins.c (expand_movstr): Check movstr expand done or fail.
25766
25767 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25768 H.J. Lu <hongjiu.lu@intel.com>
25769
25770 PR target/59379
25771 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25772 to DImode for zero-extended addresses.
25773
25774 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25775
25776 PR rtl-optimization/57763
25777 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25778 on the new indirect jump_insn and increment LABEL_NUSES (label).
25779
25780 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25781
25782 PR bootstrap/59580
25783 PR bootstrap/59583
25784 * config.gcc (x86_archs): New variable.
25785 (x86_64_archs): Likewise.
25786 (x86_cpus): Likewise.
25787 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25788 --with-arch/--with-cpu= options.
25789 Support --with-arch=/--with-cpu={nehalem,westmere,
25790 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25791
25792 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25793
25794 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25795 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25796
25797 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25798
25799 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25800
25801 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25802
25803 PR target/58944
25804 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25805 clear cpp_get_options (parse_in)->warn_unused_macros for
25806 ix86_target_macros_internal with cpp_define.
25807
25808 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25809
25810 * jump.c (delete_related_insns): Keep (use (insn))s.
25811 * reorg.c (redundant_insn): Check for barriers too.
25812
25813 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25814
25815 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25816
25817 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25818
25819 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25820 call to $$dyncall when TARGET_LONG_CALLS is true.
25821
25822 2014-01-17 Jeff Law <law@redhat.com>
25823
25824 * ree.c (combine_set_extension): Temporarily disable test for
25825 changing number of hard registers.
25826
25827 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25828
25829 PR middle-end/58125
25830 * ipa-inline-analysis.c (inline_free_summary):
25831 Do not free summary of aliases.
25832
25833 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25834
25835 PR middle-end/59706
25836 * gimplify.c (gimplify_expr): Use create_tmp_var
25837 instead of create_tmp_var_raw. If cond doesn't have
25838 integral type, don't add the IFN_ANNOTATE builtin at all.
25839
25840 2014-01-17 Martin Jambor <mjambor@suse.cz>
25841
25842 PR ipa/59736
25843 * ipa-cp.c (prev_edge_clone): New variable.
25844 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25845 Also resize prev_edge_clone vector.
25846 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25847 (ipcp_edge_removal_hook): New function.
25848 (ipcp_driver): Register ipcp_edge_removal_hook.
25849
25850 2014-01-17 Andrew Pinski <apinski@cavium.com>
25851 Steve Ellcey <sellcey@mips.com>
25852
25853 PR target/59462
25854 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25855 of operator mode.
25856
25857 2014-01-17 Jeff Law <law@redhat.com>
25858
25859 PR middle-end/57904
25860 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25861 so that pass_ccp runs first.
25862
25863 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25864
25865 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25866 (ix86_adjust_cost): Use !TARGET_XXX.
25867 (do_reorder_for_imul): Likewise.
25868 (swap_top_of_ready_list): Likewise.
25869 (ix86_sched_reorder): Likewise.
25870
25871 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25872
25873 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25874 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25875 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25876 (intel_memset): New. Duplicate slm_memset.
25877 (intel_cost): New. Duplicate slm_cost.
25878 (m_INTEL): New macro.
25879 (processor_target_table): Add "intel".
25880 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25881 with PROCESSOR_INTEL for "intel".
25882 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25883 PROCESSOR_SILVERMONT.
25884 (ix86_issue_rate): Likewise.
25885 (ix86_adjust_cost): Likewise.
25886 (ia32_multipass_dfa_lookahead): Likewise.
25887 (swap_top_of_ready_list): Likewise.
25888 (ix86_sched_reorder): Likewise.
25889 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25890 instead of TARGET_OPT_AGU.
25891 * config/i386/i386.h (TARGET_INTEL): New.
25892 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25893 (processor_type): Add PROCESSOR_INTEL.
25894 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25895 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25896
25897 2014-01-17 Marek Polacek <polacek@redhat.com>
25898
25899 PR c/58346
25900 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25901 size is zero.
25902
25903 2014-01-17 Richard Biener <rguenther@suse.de>
25904
25905 PR tree-optimization/46590
25906 * opts.c (default_options_table): Add entries for
25907 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25908 all enabled at -O1 but not for -Og.
25909 * common.opt (fbranch-count-reg): Remove Init(1).
25910 (fmove-loop-invariants): Likewise.
25911 (ftree-pta): Likewise.
25912
25913 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25914
25915 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25916 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25917 decls to at least the GCC 4.8 used alignments.
25918
25919 PR fortran/59440
25920 * tree-nested.c (convert_nonlocal_reference_stmt,
25921 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25922 of GIMPLE_BIND stmts, adjust associated decls.
25923
25924 2014-01-17 Richard Biener <rguenther@suse.de>
25925
25926 PR tree-optimization/46590
25927 * vec.h (vec<>::bseach): New member function implementing
25928 binary search according to C89 bsearch.
25929 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25930 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25931 bitmap pointer again. Make accesses_in_loop a flat array.
25932 (mem_ref_obstack): New global.
25933 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25934 (mark_ref_stored): Likewise.
25935 (ref_indep_loop_p_2): Likewise.
25936 (set_ref_stored_in_loop): New helper function.
25937 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25938 (memref_free): Adjust.
25939 (record_mem_ref_loc): Simplify.
25940 (gather_mem_refs_stmt): Adjust.
25941 (sort_locs_in_loop_postorder_cmp): New function.
25942 (analyze_memory_references): Sort accesses_in_loop after
25943 loop postorder number.
25944 (find_ref_loc_in_loop_cmp): New function.
25945 (for_all_locs_in_loop): Find relevant cluster of locs in
25946 accesses_in_loop and iterate without recursion.
25947 (execute_sm): Avoid uninit warning.
25948 (struct ref_always_accessed): Simplify.
25949 (ref_always_accessed::operator ()): Likewise.
25950 (ref_always_accessed_p): Likewise.
25951 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25952 loop postorder numbers here.
25953 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25954 numbers.
25955
25956 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25957
25958 PR c++/57945
25959 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25960 on decls for which assemble_alias has been called.
25961
25962 2014-01-17 Nick Clifton <nickc@redhat.com>
25963
25964 * config/msp430/msp430.opt: (mcpu): New option.
25965 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25966 (msp430_option_override): Parse target_cpu. If the MCU name
25967 matches a generic string, clear target_mcu.
25968 (msp430_attr): Allow numeric interrupt values up to 63.
25969 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25970 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25971 option.
25972 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25973 Add mcpu matches.
25974 * config/msp430/msp430.md (popm): Use %J rather than %I.
25975 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25976 (addhi_cy_i): Use immediate_operand for operand 2.
25977 * doc/invoke.texi: Document -mcpu option.
25978
25979 2014-01-17 Richard Biener <rguenther@suse.de>
25980
25981 PR rtl-optimization/38518
25982 * df.h (df_analyze_loop): Declare.
25983 * df-core.c: Include cfgloop.h.
25984 (df_analyze_1): Split out main part of df_analyze.
25985 (df_analyze): Adjust.
25986 (loop_inverted_post_order_compute): New function.
25987 (loop_post_order_compute): Likewise.
25988 (df_analyze_loop): New function avoiding whole-function
25989 postorder computes.
25990 * loop-invariant.c (find_defs): Use df_analyze_loop.
25991 (find_invariants): Adjust.
25992 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25993
25994 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25995
25996 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25997 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25998
25999 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26000
26001 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26002 traversal when removing references.
26003
26004 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26005
26006 PR ipa/59775
26007 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26008
26009 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26010
26011 PR middle-end/56791
26012 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26013 pushing a reload for an autoinc when we had previously reloaded an
26014 inner part of the address.
26015
26016 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26017
26018 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26019 field.
26020 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26021 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26022 when not giving up or versioning for alias only because of
26023 loop->safelen.
26024 (vect_analyze_data_ref_dependences): Set to true.
26025 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26026 is a GIMPLE_PHI.
26027 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26028 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26029 to the condition.
26030
26031 PR middle-end/58344
26032 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26033
26034 PR target/59839
26035 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26036 operand 0 predicate for gathers, use a new pseudo as subtarget.
26037
26038 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26039
26040 PR middle-end/59609
26041 * lra-constraints.c (process_alt_operands): Add printing debug info.
26042 Check absence of input/output reloads for matched operands too.
26043
26044 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26045
26046 PR rtl-optimization/59835
26047 * ira.c (ira_init_register_move_cost): Increase cost for
26048 impossible modes.
26049
26050 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26051
26052 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26053
26054 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26055
26056 PR target/59780
26057 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26058 non-register objects. Use gen_(high/low)part more consistently.
26059 Fix assertions.
26060
26061 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26062
26063 PR target/59844
26064 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26065 endian support, remove tests for WORDS_BIG_ENDIAN.
26066 (p8_mfvsrd_3_<mode>): Likewise.
26067 (reload_gpr_from_vsx<mode>): Likewise.
26068 (reload_gpr_from_vsxsf): Likewise.
26069 (p8_mfvsrd_4_disf): Likewise.
26070
26071 2014-01-16 Richard Biener <rguenther@suse.de>
26072
26073 PR rtl-optimization/46590
26074 * lcm.c (compute_antinout_edge): Use postorder iteration.
26075 (compute_laterin): Use inverted postorder iteration.
26076
26077 2014-01-16 Nick Clifton <nickc@redhat.com>
26078
26079 PR middle-end/28865
26080 * varasm.c (output_constant): Return the number of bytes actually
26081 emitted.
26082 (output_constructor_array_range): Update the field size with the
26083 number of bytes emitted by output_constant.
26084 (output_constructor_regular_field): Likewise. Also do not
26085 complain if the total number of bytes emitted is now greater
26086 than the expected fieldpos.
26087 * output.h (output_constant): Update prototype and descriptive comment.
26088
26089 2014-01-16 Marek Polacek <polacek@redhat.com>
26090
26091 PR middle-end/59827
26092 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26093 it is error_mark_node.
26094
26095 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26096
26097 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26098 VALID_AVX256_REG_OR_OI_MODE.
26099
26100 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26101
26102 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26103 current procedure should be profiled.
26104
26105 2014-01-15 Andrew Pinski <apinski@cavium.com>
26106
26107 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26108 of moving from/to the STACK_REG register class.
26109
26110 2014-01-15 Richard Henderson <rth@redhat.com>
26111
26112 PR debug/54694
26113 * reginfo.c (global_regs_decl): Globalize.
26114 * rtl.h (global_regs_decl): Declare.
26115 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26116 reserved via global_regs.
26117
26118 2014-01-15 Teresa Johnson <tejohnson@google.com>
26119
26120 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26121
26122 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26123
26124 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26125 and vmulosh rather than call gen_vec_widen_smult_*.
26126 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26127 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26128 (vec_widen_smult_even_v16qi): Likewise.
26129 (vec_widen_umult_even_v8hi): Likewise.
26130 (vec_widen_smult_even_v8hi): Likewise.
26131 (vec_widen_umult_odd_v16qi): Likewise.
26132 (vec_widen_smult_odd_v16qi): Likewise.
26133 (vec_widen_umult_odd_v8hi): Likewise.
26134 (vec_widen_smult_odd_v8hi): Likewise.
26135 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26136 vmuloub rather than call gen_vec_widen_umult_*.
26137 (vec_widen_umult_lo_v16qi): Likewise.
26138 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26139 vmulosb rather than call gen_vec_widen_smult_*.
26140 (vec_widen_smult_lo_v16qi): Likewise.
26141 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26142 rather than call gen_vec_widen_umult_*.
26143 (vec_widen_umult_lo_v8hi): Likewise.
26144 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26145 rather than call gen_vec_widen_smult_*.
26146 (vec_widen_smult_lo_v8hi): Likewise.
26147
26148 2014-01-15 Jeff Law <law@redhat.com>
26149
26150 PR tree-optimization/59747
26151 * ree.c (find_and_remove_re): Properly handle case where a second
26152 eliminated extension requires widening a copy created for elimination
26153 of a prior extension.
26154 (combine_set_extension): Ensure that the number of hard regs needed
26155 for a destination register does not change when we widen it.
26156
26157 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26158
26159 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26160 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26161 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26162 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26163 (avr-*-rtems*): Likewise.
26164 (bfin*-rtems*): Likewise.
26165 (moxie-*-rtems*): Likewise.
26166 (h8300-*-rtems*): Likewise.
26167 (i[34567]86-*-rtems*): Likewise.
26168 (lm32-*-rtems*): Likewise.
26169 (m32r-*-rtems*): Likewise.
26170 (m68k-*-rtems*): Likewise.
26171 (microblaze*-*-rtems*): Likewise.
26172 (mips*-*-rtems*): Likewise.
26173 (powerpc-*-rtems*): Likewise.
26174 (sh-*-rtems*): Likewise.
26175 (sparc-*-rtems*): Likewise.
26176 (sparc64-*-rtems*): Likewise.
26177 (v850-*-rtems*): Likewise.
26178 (m32c-*-rtems*): Likewise.
26179
26180 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26181
26182 PR rtl-optimization/59511
26183 * ira.c (ira_init_register_move_cost): Use memory costs for some
26184 cases of register move cost calculations.
26185 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26186 instead of BB frequency.
26187 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26188 * lra-assigns.c (find_hard_regno_for): Ditto.
26189
26190 2014-01-15 Richard Biener <rguenther@suse.de>
26191
26192 PR tree-optimization/59822
26193 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26194 (vectorizable_load): Use it to hoist defs of uses of invariant
26195 loads out of the loop.
26196
26197 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26198 Kugan Vivekanandarajah <kuganv@linaro.org>
26199
26200 PR target/59695
26201 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26202 truncation.
26203
26204 2014-01-15 Richard Biener <rguenther@suse.de>
26205
26206 PR rtl-optimization/59802
26207 * lcm.c (compute_available): Use inverted postorder to seed
26208 the initial worklist.
26209
26210 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26211
26212 PR target/59803
26213 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26214 ADDR_REGS for invalid symrefs in non-PIC code.
26215
26216 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26217
26218 PR other/58712
26219 * builtins.c (determine_block_size): Initialize *probable_max_size
26220 even if len_rtx is CONST_INT.
26221
26222 2014-01-14 Andrew Pinski <apinski@cavium.com>
26223
26224 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26225 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26226 (cortexa53_tunings): Likewise.
26227 (aarch64_sched_issue_rate): New function.
26228 (TARGET_SCHED_ISSUE_RATE): Define.
26229
26230 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26231
26232 * ira-costs.c (find_costs_and_classes): Add missed
26233 ira_init_register_move_cost_if_necessary.
26234
26235 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26236
26237 PR target/59787
26238 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26239
26240 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26241
26242 PR target/59794
26243 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26244 to indicate if type is used for function return value. Warn ABI
26245 change if the vector mode isn't available for function return value.
26246 (ix86_function_arg_advance): Pass false to type_natural_mode.
26247 (ix86_function_arg): Likewise.
26248 (ix86_gimplify_va_arg): Likewise.
26249 (function_arg_32): Don't warn ABI change.
26250 (ix86_function_value): Pass true to type_natural_mode.
26251 (ix86_return_in_memory): Likewise.
26252 (ix86_struct_value_rtx): Removed.
26253 (TARGET_STRUCT_VALUE_RTX): Likewise.
26254
26255 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26256
26257 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26258 converting a conditional jump into a conditional return.
26259
26260 2014-01-14 Richard Biener <rguenther@suse.de>
26261
26262 PR tree-optimization/58921
26263 PR tree-optimization/59006
26264 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26265 hoisting invariant stmts.
26266 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26267 invariant loads on the preheader edge if possible.
26268
26269 2014-01-14 Joey Ye <joey.ye@arm.com>
26270
26271 * doc/plugin.texi (Building GCC plugins): Update to C++.
26272
26273 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26274
26275 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26276 (_mm_rcp28_round_ss): Ditto.
26277 (_mm_rsqrt28_round_sd): Ditto.
26278 (_mm_rsqrt28_round_ss): Ditto.
26279 (_mm_rcp28_sd): Ditto.
26280 (_mm_rcp28_ss): Ditto.
26281 (_mm_rsqrt28_sd): Ditto.
26282 (_mm_rsqrt28_ss): Ditto.
26283 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26284 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26285 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26286 (IX86_BUILTIN_RCP28SD): Ditto.
26287 (IX86_BUILTIN_RCP28SS): Ditto.
26288 (IX86_BUILTIN_RSQRT28SD): Ditto.
26289 (IX86_BUILTIN_RSQRT28SS): Ditto.
26290 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26291 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26292 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26293 (ix86_expand_special_args_builtin): Expand new FTYPE.
26294 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26295 (srcp14<mode>): Make insn unary.
26296 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26297 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26298 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26299 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26300 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26301 Fix rounding: make it SAE only.
26302 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26303 Ditto.
26304 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26305 Ditto.
26306 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26307 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26308 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26309 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26310 (round_saeonly_mask_scalar_operand4): Ditto.
26311 (round_saeonly_mask_scalar_op3): Ditto.
26312 (round_saeonly_mask_scalar_op4): Ditto.
26313
26314 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26315
26316 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26317 Implement -maltivec=be for vec_insert and vec_extract.
26318
26319 2014-01-10 DJ Delorie <dj@redhat.com>
26320
26321 * config/msp430/msp430.md (call_internal): Don't allow memory
26322 references with SP as the base register.
26323 (call_value_internal): Likewise.
26324 * config/msp430/constraints.md (Yc): New. For memory references
26325 that don't use SP as a base register.
26326
26327 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26328 "an integer without a # prefix"
26329 * config/msp430/msp430.md (epilogue_helper): Use it.
26330
26331 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26332
26333 PR target/59617
26334 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26335 AVX512F gather builtins.
26336 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26337 on gather decls with INTEGER_TYPE masktype.
26338 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26339 directly into the builtin rather than hoisting it before loop.
26340
26341 PR tree-optimization/59387
26342 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26343 (scev_const_prop): If folded_casts and type has undefined overflow,
26344 use force_gimple_operand instead of force_gimple_operand_gsi and
26345 for each added stmt if it is assign with
26346 arith_code_with_undefined_signed_overflow, call
26347 rewrite_to_defined_overflow.
26348 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26349 gimple-fold.h instead.
26350 (arith_code_with_undefined_signed_overflow,
26351 rewrite_to_defined_overflow): Moved to ...
26352 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26353 rewrite_to_defined_overflow): ... here. No longer static.
26354 Include gimplify-me.h.
26355 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26356 rewrite_to_defined_overflow): New prototypes.
26357
26358 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26359
26360 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26361
26362 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26363
26364 * builtins.c (get_object_alignment_2): Minor tweak.
26365 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26366
26367 2014-01-13 Christian Bruel <christian.bruel@st.com>
26368
26369 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26370 optimized non constant lengths.
26371
26372 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26373
26374 PR libgomp/59194
26375 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26376 load as __atomic_load_N if possible.
26377
26378 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26379
26380 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26381 target parameter.
26382 (rs6000_expand_builtin): Adjust call.
26383
26384 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26385
26386 PR target/58115
26387 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26388 * config/rs6000/rs6000.c: Include target-globals.h.
26389 (rs6000_set_current_function): Instead of doing target_reinit
26390 unconditionally, use save_target_globals_default_opts and
26391 restore_target_globals.
26392
26393 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26394 FPSCR.
26395 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26396 (rs6000_expand_builtin): Handle mffs and mtfsf.
26397 (rs6000_init_builtins): Define mffs and mtfsf.
26398 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26399 (rs6000_mffs): New pattern.
26400 (rs6000_mtfsf): New pattern.
26401
26402 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26403
26404 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26405 Start narrowing with START. Apply candidate-use pair
26406 and check overall cost in narrowing.
26407 (iv_ca_prune): Pass new argument.
26408
26409 2014-01-10 Jeff Law <law@redhat.com>
26410
26411 PR middle-end/59743
26412 * ree.c (combine_reaching_defs): Ensure the defining statement
26413 occurs before the extension when optimizing extensions with
26414 different source and destination hard registers.
26415
26416 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26417
26418 PR ipa/58585
26419 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26420 vtables into the type inheritance graph.
26421
26422 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26423
26424 PR rtl-optimization/59754
26425 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26426 modes in the REGNO != REGNO case.
26427
26428 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26429
26430 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26431
26432 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26433
26434 PR tree-optimization/59745
26435 * tree-predcom.c (tree_predictive_commoning_loop): Call
26436 free_affine_expand_cache if giving up because components is NULL.
26437
26438 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26439 GC in payload of target_globals struct instead of allocating them on
26440 the heap and the larger structs separately using GC.
26441 * target-globals.h (struct target_globals): Make regs, hard_regs,
26442 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26443 of GTY((skip)) and change type to void *.
26444 (reset_target_globals): Cast loads from those fields to corresponding
26445 types.
26446
26447 2014-01-10 Steve Ellcey <sellcey@mips.com>
26448
26449 PR plugins/59335
26450 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26451 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26452 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26453
26454 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26455
26456 PR target/59744
26457 * aarch64-modes.def (CC_Zmode): New flags mode.
26458 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26459 represents an equality.
26460 (aarch64_get_condition_code): Handle CC_Zmode.
26461 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26462
26463 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26464
26465 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26466 extraction in good case.
26467
26468 2014-01-10 Richard Biener <rguenther@suse.de>
26469
26470 PR tree-optimization/59374
26471 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26472 checking after SLP discovery. Mark stmts not participating
26473 in any SLP instance properly.
26474
26475 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26476
26477 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26478 when handling a SET rtx.
26479
26480 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26481
26482 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26483 (cortex-a57): Likewise.
26484 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26485
26486 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26487
26488 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26489 non-iwmmxt builtins.
26490
26491 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26492
26493 PR ipa/58252
26494 PR ipa/59226
26495 * ipa-devirt.c record_target_from_binfo): Take as argument
26496 stack of binfos and lookup matching one for virtual inheritance.
26497 (possible_polymorphic_call_targets_1): Update.
26498
26499 2014-01-10 Huacai Chen <chenhc@lemote.com>
26500
26501 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26502 kernel strings for Loongson-2E/2F/3A.
26503
26504 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26505
26506 PR middle-end/59670
26507 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26508 is_gimple_call before calling gimple_call_internal_p.
26509
26510 2014-01-09 Steve Ellcey <sellcey@mips.com>
26511
26512 * Makefile.in (TREE_FLOW_H): Remove.
26513 (TREE_SSA_H): Add file names from tree-flow.h.
26514 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26515 * tree.h: Remove tree-flow.h reference.
26516 * hash-table.h: Remove tree-flow.h reference.
26517 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26518 reference with tree-ssa-loop.h.
26519
26520 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26521
26522 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26523 default element-order behavior for -maltivec.
26524 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26525 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26526 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26527 when targeting big endian, at least for now.
26528 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26529
26530 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26531
26532 PR middle-end/47735
26533 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26534 var satisfies use_register_for_decl, just take into account type
26535 alignment, rather than decl alignment.
26536
26537 PR tree-optimization/59622
26538 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26539 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26540 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26541 Don't devirtualize for inplace at all. For targets.length () == 1,
26542 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26543
26544 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26545
26546 * config/i386/i386.md (cpu): Remove the unused btver1.
26547
26548 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26549
26550 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26551
26552 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26553
26554 PR target/58115
26555 * tree-core.h (struct target_globals): New forward declaration.
26556 (struct tree_target_option): Add globals field.
26557 * tree.h (TREE_TARGET_GLOBALS): Define.
26558 (prepare_target_option_nodes_for_pch): New prototype.
26559 * target-globals.h (struct target_globals): Define even if
26560 !SWITCHABLE_TARGET.
26561 * tree.c (prepare_target_option_node_for_pch,
26562 prepare_target_option_nodes_for_pch): New functions.
26563 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26564 * config/i386/i386.c: Include target-globals.h.
26565 (ix86_set_current_function): Instead of doing target_reinit
26566 unconditionally, use save_target_globals_default_opts and
26567 restore_target_globals.
26568
26569 2014-01-09 Richard Biener <rguenther@suse.de>
26570
26571 PR tree-optimization/59715
26572 * tree-cfg.h (split_critical_edges): Declare.
26573 * tree-cfg.c (split_critical_edges): Export.
26574 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26575
26576 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26577
26578 * cfgexpand.c (expand_stack_vars): Optionally disable
26579 asan stack protection.
26580 (expand_used_vars): Likewise.
26581 (partition_stack_vars): Likewise.
26582 * asan.c (asan_emit_stack_protection): Optionally disable
26583 after return stack usage.
26584 (instrument_derefs): Optionally disable memory access instrumentation.
26585 (instrument_builtin_call): Likewise.
26586 (instrument_strlen_call): Likewise.
26587 (asan_protect_global): Optionally disable global variables protection.
26588 * doc/invoke.texi: Added doc for new options.
26589 * params.def: Added new options.
26590 * params.h: Likewise.
26591
26592 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26593
26594 PR rtl-optimization/59724
26595 * ifcvt.c (cond_exec_process_if_block): Don't call
26596 flow_find_head_matching_sequence with 0 longest_match.
26597 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26598 non-active insns if !stop_after.
26599 (try_head_merge_bb): Revert 2014-01-07 changes.
26600
26601 2014-01-08 Jeff Law <law@redhat.com>
26602
26603 * ree.c (get_sub_rtx): New function, extracted from...
26604 (merge_def_and_ext): Here.
26605 (combine_reaching_defs): Use get_sub_rtx.
26606
26607 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26608
26609 * cgraph.h (varpool_variable_node): Do not choke on null node.
26610
26611 2014-01-08 Catherine Moore <clm@codesourcery.com>
26612
26613 * config/mips/mips.md (simple_return): Attempt to use JRC
26614 for microMIPS.
26615 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26616
26617 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26618
26619 PR rtl-optimization/59137
26620 * reorg.c (steal_delay_list_from_target): Call update_block for
26621 elided insns.
26622 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26623
26624 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26625
26626 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26627 two duplicate entries.
26628
26629 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26630
26631 Revert:
26632 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26633
26634 * config/mips/mips.c (mips_truncated_op_cost): New function.
26635 (mips_rtx_costs): Adjust test for BADDU.
26636 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26637
26638 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26639
26640 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26641 (*baddu_si): ...this new pattern.
26642
26643 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26644
26645 PR ipa/59722
26646 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26647
26648 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26649
26650 PR middle-end/57748
26651 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26652 inner_reference_p.
26653 (expand_expr, expand_normal): Adjust.
26654 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26655 inner_reference_p. Use inner_reference_p to expand inner references.
26656 (store_expr): Adjust.
26657 * cfgexpand.c (expand_call_stmt): Adjust.
26658
26659 2014-01-08 Rong Xu <xur@google.com>
26660
26661 * gcov-io.c (gcov_var): Move from gcov-io.h.
26662 (gcov_position): Ditto.
26663 (gcov_is_error): Ditto.
26664 (gcov_rewrite): Ditto.
26665 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26666 only part to libgcc/libgcov.h.
26667
26668 2014-01-08 Marek Polacek <polacek@redhat.com>
26669
26670 PR middle-end/59669
26671 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26672
26673 2014-01-08 Marek Polacek <polacek@redhat.com>
26674
26675 PR sanitizer/59667
26676 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26677
26678 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26679
26680 PR rtl-optimization/59649
26681 * stor-layout.c (get_mode_bounds): For BImode return
26682 0 and STORE_FLAG_VALUE.
26683
26684 2014-01-08 Richard Biener <rguenther@suse.de>
26685
26686 PR middle-end/59630
26687 * gimple.h (is_gimple_builtin_call): Remove.
26688 (gimple_builtin_call_types_compatible_p): New.
26689 (gimple_call_builtin_p): New overload.
26690 * gimple.c (is_gimple_builtin_call): Remove.
26691 (validate_call): Rename to ...
26692 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26693 check return types.
26694 (validate_type): New static function.
26695 (gimple_call_builtin_p): New overload and adjust.
26696 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26697 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26698 (gimple_fold_stmt_to_constant_1): Likewise.
26699 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26700
26701 2014-01-08 Richard Biener <rguenther@suse.de>
26702
26703 PR middle-end/59471
26704 * gimplify.c (gimplify_expr): Gimplify register-register type
26705 VIEW_CONVERT_EXPRs to separate stmts.
26706
26707 2014-01-07 Jeff Law <law@redhat.com>
26708
26709 PR middle-end/53623
26710 * ree.c (combine_set_extension): Handle case where source
26711 and destination registers in an extension insn are different.
26712 (combine_reaching_defs): Allow source and destination registers
26713 in extension to be different under limited circumstances.
26714 (add_removable_extension): Remove restriction that the
26715 source and destination registers in the extension are the same.
26716 (find_and_remove_re): Emit a copy from the extension's
26717 destination to its source after the defining insn if
26718 the source and destination registers are different.
26719
26720 PR middle-end/59285
26721 * ifcvt.c (merge_if_block): If we are merging a block with more than
26722 one successor with a block with no successors, remove any BARRIER
26723 after the second block.
26724
26725 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26726
26727 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26728
26729 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26730
26731 PR target/59652
26732 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26733 for 14-bit register offsets when INT14_OK_STRICT is false.
26734
26735 2014-01-07 Roland Stigge <stigge@antcom.de>
26736 Michael Meissner <meissner@linux.vnet.ibm.com>
26737
26738 PR 57386/target
26739 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26740 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26741
26742 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26743
26744 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26745 -mcpu.
26746
26747 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26748
26749 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26750 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26751 rtx is const0_rtx or not.
26752
26753 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26754
26755 PR target/58115
26756 * target-globals.c (save_target_globals): Remove this_fn_optab
26757 handling.
26758 * toplev.c: Include optabs.h.
26759 (target_reinit): Temporarily restore the global options if another
26760 set of options are in force.
26761
26762 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26763
26764 PR rtl-optimization/58668
26765 * cfgcleanup.c (flow_find_cross_jump): Don't count
26766 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26767 to determine what is counted.
26768 (flow_find_head_matching_sequence): Use active_insn_p to determine
26769 what is counted.
26770 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26771 counting change.
26772 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26773 determine what is counted.
26774
26775 PR tree-optimization/59643
26776 * tree-predcom.c (split_data_refs_to_components): If one dr is
26777 read and one write, determine_offset fails and the write isn't
26778 in the bad component, just put the read into the bad component.
26779
26780 2014-01-07 Mike Stump <mikestump@comcast.net>
26781 Jakub Jelinek <jakub@redhat.com>
26782
26783 PR pch/59436
26784 * tree-core.h (struct tree_optimization_option): Change optabs
26785 type from unsigned char * to void *.
26786 * optabs.c (init_tree_optimization_optabs): Adjust
26787 TREE_OPTIMIZATION_OPTABS initialization.
26788
26789 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26790
26791 PR target/59644
26792 * config/i386/i386.h (struct machine_function): Add
26793 no_drap_save_restore field.
26794 * config/i386/i386.c (ix86_save_reg): Use
26795 !cfun->machine->no_drap_save_restore instead of
26796 crtl->stack_realign_needed.
26797 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26798 this function clears frame_pointer_needed. Set
26799 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26800 and DRAP reg is needed.
26801
26802 2014-01-06 Marek Polacek <polacek@redhat.com>
26803
26804 PR c/57773
26805 * doc/implement-c.texi: Mention that other integer types are
26806 permitted as bit-field types in strictly conforming mode.
26807
26808 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26809
26810 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26811 is newly allocated.
26812
26813 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26814
26815 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26816
26817 2014-01-06 Martin Jambor <mjambor@suse.cz>
26818
26819 PR ipa/59008
26820 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26821 to int.
26822 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26823
26824 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26825
26826 PR debug/59350
26827 PR debug/59510
26828 * var-tracking.c (add_stores): Preserve the value of the source even if
26829 we don't record the store.
26830
26831 2014-01-06 Terry Guo <terry.guo@arm.com>
26832
26833 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26834
26835 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26836
26837 PR bootstrap/59541
26838 * config/darwin.c (darwin_function_section): Adjust return values to
26839 correspond to optimisation changes made in r206070.
26840
26841 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26842
26843 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26844 from prefetch_block tune setting.
26845 (nocona_cost): Correct size of prefetch block to 64.
26846
26847 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26848
26849 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26850 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26851 used to save the static chain register in the computation of the offset
26852 from which the FP registers need to be restored.
26853
26854 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26855
26856 PR tree-optimization/59519
26857 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26858 ICE if get_current_def (current_new_name) is already non-NULL, as long
26859 as it is a phi result of some other phi in *new_exit_bb that has
26860 the same argument.
26861
26862 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26863 or vmovdqu* for misaligned_operand.
26864 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26865 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26866 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26867 aligned_mem for AVX512F masked aligned load and store builtins and for
26868 non-temporal moves.
26869
26870 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26871
26872 PR tree-optimization/59651
26873 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26874 Address range for negative step should be added by TYPE_SIZE_UNIT.
26875
26876 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26877
26878 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26879 overlapping registers also for registers other than the stack pointer.
26880
26881 2014-01-03 Marek Polacek <polacek@redhat.com>
26882
26883 PR other/59661
26884 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26885 __builtin_FILE.
26886
26887 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26888
26889 PR target/59625
26890 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26891 asm goto as jump.
26892
26893 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26894 (push splitter): Use <P:MODE_SIZE> instead of
26895 GET_MODE_SIZE (<P:MODE>mode).
26896 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26897 (mov -1, reg peephole2): Likewise.
26898 * config/i386/sse.md (*mov<mode>_internal,
26899 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26900 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26901 *<code><mode>3, *andnot<mode>3<mask_name>,
26902 <mask_codefor><code><mode>3<mask_name>): Likewise.
26903 * config/i386/subst.md (mask_mode512bit_condition,
26904 sd_mask_mode512bit_condition): Likewise.
26905
26906 2014-01-02 Xinliang David Li <davidxl@google.com>
26907
26908 PR tree-optimization/59303
26909 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26910 (dump_predicates): Better output format.
26911 (pred_equal_p): New function.
26912 (is_neq_relop_p): Ditto.
26913 (is_neq_zero_form_p): Ditto.
26914 (pred_expr_equal_p): Ditto.
26915 (pred_neg_p): Ditto.
26916 (simplify_pred): Ditto.
26917 (simplify_preds_2): Ditto.
26918 (simplify_preds_3): Ditto.
26919 (simplify_preds_4): Ditto.
26920 (simplify_preds): Ditto.
26921 (push_pred): Ditto.
26922 (push_to_worklist): Ditto.
26923 (get_pred_info_from_cmp): Ditto.
26924 (is_degenerated_phi): Ditto.
26925 (normalize_one_pred_1): Ditto.
26926 (normalize_one_pred): Ditto.
26927 (normalize_one_pred_chain): Ditto.
26928 (normalize_preds): Ditto.
26929 (normalize_cond_1): Remove function.
26930 (normalize_cond): Ditto.
26931 (is_gcond_subset_of): Ditto.
26932 (is_subset_of_any): Ditto.
26933 (is_or_set_subset_of): Ditto.
26934 (is_and_set_subset_of): Ditto.
26935 (is_norm_cond_subset_of): Ditto.
26936 (pred_chain_length_cmp): Ditto.
26937 (convert_control_dep_chain_into_preds): Type change.
26938 (find_predicates): Ditto.
26939 (find_def_preds): Ditto.
26940 (destroy_predicates_vecs): Ditto.
26941 (find_matching_predicates_in_rest_chains): Ditto.
26942 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26943 (is_pred_expr_subset): Ditto.
26944 (is_pred_chain_subset_of): Ditto.
26945 (is_included_in): Ditto.
26946 (is_superset_of): Ditto.
26947
26948 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26949
26950 Update copyright years.
26951
26952 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26953
26954 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26955 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26956 config/arc/arc.md, config/arc/arc.opt,
26957 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26958 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26959 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26960 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26961 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26962 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26963 vtable-verify.c, vtable-verify.h: Use the standard form for the
26964 copyright notice.
26965
26966 2014-01-02 Tobias Burnus <burnus@net-b.de>
26967
26968 * gcc.c (process_command): Update copyright notice dates.
26969 * gcov-dump.c: Ditto.
26970 * gcov.c: Ditto.
26971 * doc/cpp.texi: Bump @copying's copyright year.
26972 * doc/cppinternals.texi: Ditto.
26973 * doc/gcc.texi: Ditto.
26974 * doc/gccint.texi: Ditto.
26975 * doc/gcov.texi: Ditto.
26976 * doc/install.texi: Ditto.
26977 * doc/invoke.texi: Ditto.
26978
26979 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26980
26981 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26982
26983 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26984
26985 * config/i386/sse.md (*mov<mode>_internal): Guard
26986 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26987
26988 PR rtl-optimization/59647
26989 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26990 new_rtx into UNSIGNED_FLOAT rtxes.
26991 \f
26992 Copyright (C) 2014 Free Software Foundation, Inc.
26993
26994 Copying and distribution of this file, with or without modification,
26995 are permitted in any medium without royalty provided the copyright
26996 notice and this notice are preserved.